[-] dan@upvote.au 58 points 1 week ago

The worst is when you expect an existing test to fail, but it passes, and it turns out the test wasn't actually properly testing the code. Fixing the test finds a bunch of broken edge cases.

[-] dan@upvote.au 52 points 4 weeks ago

It seems like there's a correlation between people that refer to women as "females" and people that don't treat women well.

[-] dan@upvote.au 52 points 3 months ago* (last edited 3 months ago)

Seems like a TCP/IP stack issue rather than a browser issue... 0.0.0.0 is not supposed to be a valid address (in fact, no IPv4 address with 0 as the first octet is a valid destination IP). The network stack should be dropping those packets.

0.0.0.0 is only valid in a few use cases. When listening for connections, it means "listen on all IPs". This is a placeholder that the OS handles - it doesn't literally use that IP. Also, it's used as the source address for packets where the system doesn't have an IP yet (eg for DHCP). That's it.

[-] dan@upvote.au 65 points 3 months ago* (last edited 3 months ago)

Firefox still doesn't have a native vertical tab bar.

At least the extension APIs are powerful enough to have an extension that does a decent job (or even a great job, in the case of extensions like Sidebery), plus there's a way to hide the regular top tabs. That's not the case with Chrome - all the Chrome vertical tab extensions feel kinda janky and the regular top tabs are still visible.

You could also use a Firefox fork like Floorp that has native support for tree-style tabs.

[-] dan@upvote.au 54 points 4 months ago* (last edited 4 months ago)

At my workplace, we use the string @nocommit to designate code that shouldn't be checked in. Usually in a comment:

// @nocommit temporary for testing
apiKey = 'blah';
// apiKey = getKeyFromKeychain(); 

but it can be anywhere in the file.

There's a lint rule that looks for @nocommit in all modified files. It shows a lint error in dev and in our code review / build system, and commits that contain @nocommit anywhere are completely blocked from being merged.

(the code in the lint rule does something like "@no"+"commit" to avoid triggering itself)

[-] dan@upvote.au 62 points 4 months ago* (last edited 4 months ago)

28,000,000 watts

That's usually written as 28MW. I know some Americans don't like metric much, but one of the points of metric is that you don't ever need to write that many zeroes - you just need to use the right prefix (kilo, mega, giga, tera, etc) on the unit.

[-] dan@upvote.au 58 points 4 months ago* (last edited 4 months ago)

Friendly reminder to not use freemail accounts (Hotmail, Gmail, Yahoo, etc) for anything important. It's very hard to get any sort of support as your account is seen as low-priority. Also, always use your own domain so that it's easy to move to a different provider in the future, without having to change your email address.

FastMail and MXRoute are good options. MXRoute has good Black Friday sales and all their plans include unlimited email address and domains (you're just limited by total disk space).

Microsoft's paid plan is decent too. $70/year for a personal account or $100/year for a family account (up to 6 people) and it includes the Office suite, 1TB cloud storage, and email.

[-] dan@upvote.au 58 points 4 months ago

Blu-ray also has much higher quality than streaming services.

In fact, the only way to stream a movie in Blu-ray quality is by using something like Real Debrid, with a fast connection since the bitrate can reach ~100Mbps at times. There's no legally licensed way to do it. Seems like a missed opportunity IMO.

[-] dan@upvote.au 59 points 4 months ago* (last edited 4 months ago)

There's a bunch of stuff in Chrome that's special-cased to only allow Google to access it.

Not sure if it's still there, but many years ago I was trying to figure out how to do something that some Google webapp was doing (can't remember which one). I think it was something to do with popping up a chromeless window - that is, a new window with no address bar or browser chrome, just some HTML content.

Turns out the Chromium codebase had a hard-coded allowlist that only allowed *.google.com to use the API!

Edit: my memory was a bit wrong. It was this: https://stackoverflow.com/a/11614605. The Hangouts extension was allowlisted to use the functionality, but if any other extension wanted to use it, the user had to enable an experimental setting.

[-] dan@upvote.au 58 points 9 months ago

At my workplace, we have a lint rule that reports an error if @nocommit is anywhere in the file, plus a commit hook that blocks all commits with @nocommit anywhere in them. It works well and has saved me a few times.

Works pretty well, except the lint rule and its associated tests have to do something like "@no"+"commit" to avoid triggering it,

[-] dan@upvote.au 64 points 9 months ago

I think some people don't understand that software can be complete/finished and not need any more updates unless a bug is reported. Software doesn't have an expiry date.

[-] dan@upvote.au 59 points 1 year ago

This is why we need Mozilla.

view more: ‹ prev next ›

dan

joined 1 year ago