Better HN
topnewbestaskshowjobs
Log inSign up

doodlesdev

3,169 karma · joined Nov 9, 2020 (6y ago) · 852 submissions

Hi, how's your day?

https://www.doodlesdev.com

Submissions

comment 3y ago · link · parent

The problem is PBKDF2 isn't as memory intensive, it's really easy to parallelize on a modern GPU thus making it a much worse PBKDF than Argon2id. Increasing iteration count is just a bandaid over this problem, you also need to have control over memory usage.

comment 3y ago · link · parent

There is a trick for collapsible sidebars where you can use a checkbox and style the sidebar display conditionally based on the checkbox :checked pseudo-selector, AFAIK this is the only way to make this style of sidebar without JavaScript. [0][1][2]

[0]: https://www.digitalocean.com/community/tutorials/css-collaps...

[1]: https://webdevtrick.com/css-sidebar-menu/

[2]: https://webdevtrick.com/demos/css-sideout-menu/

comment 3y ago · link · parent

I was pretty sure it was, it was using ext4 as the default then I imagine? Anyways, the change then was that ZFS is not an option anymore instead of stopping being the default.

comment 3y ago · link · parent

Ubuntu Lunar Lobster now also uses BTRFS instead of ZFS by default with the new Flutter-based installer. It's also the suggested FS for Arch and Gentoo.

comment 3y ago · link · parent

Life pro tip: Disable JavaScript.

comment 3y ago · link · parent

Here you go:

https://github.com/cockroachdb/cockroach/issues/52009

Not only deprecated, but completely removed a few years ago as seen in:

https://github.com/cockroachdb/cockroach/issues/69150

comment 3y ago · link · parent

Like this?

https://alexanderell.is/posts/wikipedia-over-whatsapp/

https://news.ycombinator.com/item?id=31463249

I'm sure I've seen what you're describing done before to make use of free WhatsApp in mobile plans in some countries, just can't find it, although I remember that one of the limitations found was rate limiting by WhatsApp, which is to be expected.

comment 3y ago · link · parent

It needs to be Chromium 113+, otherwise you'll have to enable webGPU in the browser flags like I have for Firefox.

comment 3y ago · link · parent

   > WebGPU is supported in your browser!

   > Uncaught (in promise) DOMException: WebGPU is not yet available in Release or Beta builds.
Anyone using Chromium care to chime in?

If no one chimes in I might set up a Chromium browser up just to take a look at this, seems pretty cool.

comment 3y ago · link · parent

   > addition of zfs, snap, livepatch, lxd, and dropping 32bit support.
Also ZFS being dropped from the installer in the new Lunar Lobster release which uses a Flutter-based installer for some reason. BTRFS is the new default if I'm not mistaken.

comment 3y ago · link · parent

Or Debian Testing really. It might not be as polished out of the box but it's a pretty solid and stable experience. Or really any other well mantained Linux distribution, just anything but Ubuntu for the desktop. On the server I get it, ufw is convenient, snaps are not a bad thing in that scenario, LTS releases and extended support are all great if you're not a RedHat shop.

comment 3y ago · link · parent

https://archive.ph/Rv8Yc

comment 3y ago · link · parent

https://archive.ph/y7y9E

464.

Codeium Chat – Free forever AI coding assistant(codeium.com ↗)

2 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

Oh that makes more sense. Still, if GIMP had this kind of temp autosave you wouldn't have lost these files since you could've opened the .xcg of the relevant file and then export. Overall the best workflow with these applications is to always save the project file, in GIMP, Photoshop, or Affinity.

comment 3y ago · link · parent

So:

- You didn't save your file

- You didn't export your file

- You ignored GIMP's warning about it

And somehow it's the program's fault? I guess they could implement some form of temporary autosave like some office applications do, but that comes with its own can of worms (i.e. stuff you really didn't want to save staying on your drive).

comment 3y ago · link · parent

AFAIK GIMP does not use GTK's builtin file chooser, specifically because it lacked image thumbnails up until recently.

comment 3y ago · link · parent

Please provide an icon that makes sense on other platforms for the shortcut on the right bottom, not everyone uses Macs! Overall, pretty cool idea, how is Vercel gonna handle API costs for this? I imagine this is pretty expensive to run, specially considering GPT4 access.

Also, I have to link this here because I thought it was too funny:

https://play.vercel.ai/r/G9y3eXJ

edit: Oh I just hit the token limit, I guess that's how you're dealing with cost lol. Something I was gonna suggest is that maybe answers should be cached to prevent repeated calls to the same API when the prompt hasn't changed, this could potentially increase the amount of tests I could do.

469.

First US surgery transmitted live via Google Glass (2013)(medicalxpress.com ↗)

1 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

More context: https://meta.wikimedia.org/wiki/Wikis_World

This led me down a rabbit hole and just now I realized Wikipedia is open source [0], not sure if I'm the only one who didn't know that, but there it goes. Of course, I was aware that the framework they use is open-source [1] and developed by them, just didn't know the website itself was too.

[0]: https://gerrit.wikimedia.org/r/c/wikimedia/portals/+/908683

[1]: https://www.mediawiki.org/wiki/MediaWiki

471.

Water3D(oimo.io ↗)

3 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

Honestly, I think Safari doesn't get enough _hate_. It's the last browser that's not evergreen and tied to operating system updates. That's the biggest pain point as a developer when trying to support Safari.

Instead of having to support the last 5 versions of the browser you have to go back and support versions that are YEARS out of date regarding web standards and implementations, so even when Safari does add an upcoming feature you have to wait a few years before all users actually update their macOS to get these new features.

A quick example I just grabbed is AVIF support [0]. Safari has technically already added full support for this image encoding, the problem however is that you NEED to be on macOS 13 for even partial support, and full support only appeared later. If you look at the usage statistics at [0] you'll see that most Safari users are still not on the newer versions. It's even worse on iOS regarding some things, where even mundane features for Flexbox might not be available bug-free to all your users.

Rant over.

[0]: https://caniuse.com/avif

473.

How to Do Bare Metal Backup and Recovery(backblaze.com ↗)

1 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

You can use Flatpaks to basically solve this issue. Most applications nowadays are already available as Flatpaks, the ones that aren't probably have been reviewed by your distribution. Stick to official repositories and there shouldn't be any worries really. Of course for the average user this kind of discipline might be impossible, but for power-users out there: https://firejail.wordpress.com/

You could also play a bit with writing SELinux or AppArmor policies, although I grant that most people don't give a fuck and just want to get their computing done.

Opting for a Wayland-compliant display server instead of XOrg will also provide you with similar benefits such as preventing applications from capturing your key-presses without you knowing or recording your screen without your permission.

edit: I have no idea how I forgot about this, but immutable file systems are a thing now and they work pretty well, you can go for something such as Fedora Kinoite [0], Fedora Silverblue [1][2], OpenSUSE MicroOS [3], or VanillaOS [4] where all applications you install will be Flatpaks.

[0]: https://docs.fedoraproject.org/en-US/emerging/

[1]: https://docs.fedoraproject.org/en-US/fedora-silverblue/

[2]: https://silverblue.fedoraproject.org/

[3]: https://microos.opensuse.org/

[4]: https://vanillaos.org/

comment 3y ago · link · parent

They do. I use Linux exclusively recently and in the last year I played:

- Slime Rancher

- Stanley Parable

- Fallout 3, New Vegas, 4

- The Forest

- Counter Strike

- Heavily modded Minecraft

- Arma 3

- Insurgency

- Insurgency: Sandstorm

- Squad

- Red Dead Redemption 2

- The Witcher 3

- Kerbal Space Program

- Papers, Please

- DOOM

- My Summer Car

- Portal 2

- Others I don't remember

The number of games that don't work on Linux is shrinking every day, DXVK and Wine are getting way too good. Take a look at proton DB for reference on compatibility [0]. You can input your Steam profile and it will show you how many of your games are playable and in what state. Currently in the Top 100 played games on Steam 78% of them are rated either Platinum or Gold. In the top 1000 that drops a bit to 75%, with only 3% of them being unplayable.

Oh yeah and all the games I've listed I played on Wayland (except the competitive shooters) :)

[0]: https://www.protondb.com/

comment 3y ago · link · parent

Depends on when you tried it and what you mean by them being ugly. I personally prefer fonts and font rendering in GNOME over Windows nowadays, specially in high-ish dpi displays. I haven't opened a single config file since installing Fedora on my machine last year (except for vimrc, emacs.d, etc.), although if you are a power user you might have to play with some CLI once in a while. Selection of distribution and desktop environment is everything, it makes or breaks your Linux experience so take a look around and maybe live boot one through a USB drive to see if ticks your fancies.

comment 3y ago · link · parent

   > What if I want to move my own drive somewhere else?
That's the fun part: you don't. Move the contents somewhere else, format the drive, and move them back. Also another cool feature: if the TPM stops working for some reason you lose all your data! (unless you have offsite backups, which you should anyways). I'm saying this kinda jokingly but this really is a feature of keeping the keys in your TPM, in a lot of situations this is a desired behavior.

Be aware that in the case of Bitlocker specifically Microsoft "conveniently" saves your encryption key on their "cloud", so you don't really need the TPM to decrypt stuff, which of course goes completely against the purpose of storing the key there in the first place. Oh yeah, also: DON'T trust Bitlocker, it's absolutely compromised if you are using an SSD which provides firmware "encryption". [0][1]

[0]: https://www.tomshardware.com/news/crucial-samsung-ssd-encryp...

[1]: https://twitter.com/matthew_d_green/status/10594413723175813...

478.

Hard Drive Cost per Gigabyte over the Years(backblaze.com ↗)

3 points · by doodlesdev · 3y ago · discuss

comment 3y ago · link · parent

This table is actually insane. Just from this I would say that HEVC wins if it were to have even comparable quality. It's unfortunate the industry will have to stay with AV1 for now due to HEVC being patent encumbered and because of Google's massive push to force everyone to start using it.

   Encoding Time        | Decoding Time

   HEVC 2h 34min        | 1min 14sec

   AV1 18h 54min        | 1min 42sec

   VVC 2 days 10h 35min | 2h 42sec

comment 3y ago · link · parent

https://archive.ph/o4It6
1
151617
29