Better HN
topnewbestaskshowjobs
Log inSign up

naranha

375 karma · joined Feb 18, 2013 (13y ago) · 148 submissions

Submissions

comment 5mo ago · link · parent

It would be interesting to know if the same is true for Intel/AMD. I have one NVIDIA PC and the desktop - not even Games - feels very sluggish on GNOME - I haven't tried KDE yet. On the contrary, my AMD gaming rig subjectively feels very snappy, but I have never measured it.

comment 8mo ago · link · parent

The only interface that works for me efficiently with LLMs is the chatbot interface. I rather copy and paste snippets into the chat box than have IDEs and other tools guess what I might want to ask AI.

The first thing I do with these integration is look how I can remove them.

comment 1y ago · link · parent

It's still common in IT departments to enter the domain administrator password to join a computer to a domain or install software on a client machine. This seems insane to me, you can just fake the windows gui in a Fullscreen application and keylog the password - even using a web browser. I think AD is a relic of the 90s that should be retired

comment 1y ago · link · parent

Now do one with ECC!

comment 1y ago · link · parent

If the browser has 1080 vertical pixels, the scrollbars has max say 1000 possible positions. According to my napkin math* if you scroll over 100 uuids per second it would take up to ~1.7 septillion or ~1 700 000 000 000 000 000 000 000 years to scroll to an uuid of which you know the position if you hit the spot exactly on the scrollbar.

* https://www.wolframalpha.com/input?i=ROUND%5B2%5E122%2F1000%...

Edit: Use 122 bit instead of 128 due to UUIDv4

comment 1y ago · link · parent

Not OP, but I have converted a couple of projects from knex to kysely recently. With Typescript kysely is much better. With kysely-codegen you can generate typescript types for a pre existing schema too.

comment 2y ago · link · parent

Stuff becomes legacy not because of the language, but because of outdated libraries or frameworks or unavailable/uninterested developers. For me PHP is legacy, because I refused to work on PHP codebases, except I find someone who's willing to do the job for me.

comment 2y ago · link · parent

At least couchdb is also append only with vacuum. So it's maybe not completely outdated.

comment 2y ago · link · parent

I build an internal project using CouchDB2 as a backend in 2017 and it's still used today. CouchDB definitely surpassed my expectations in what has been possible to do with it. Its biggest advantages are that data sync is effortless and that it uses HTTP as a protocol, so you can communicate directly with it from a web application.

comment 2y ago · link · parent

uuidv7 will be supported in PostgreSQL 17, at which point generation should be as fast as uuidv4, or if you implement it in pgsql now it will be as fast as the proposed ULID algorithm.

Insert performance could be even better, iirc for BTree Indexes monotonic increasing values are better than random ones, but feel free to correct me on that ;)

comment 2y ago · link · parent

idk, when I want productivity I go with nodejs these days. lodash for some quick data crunching and pg or mariadb for db access using promises simply beats native php functions. with express you can spawn a http server in under 10 lines, while with php you need to setup apache/nginx or docker.

at some point in the past PHP was the most productive tool for some quick & dirty coding, but not anymore for me.

comment 2y ago · link · parent

In the graphics benchmarks it performs mostly worse than the 5600g/5700g. That's pretty disappointing 3 years later.

comment 2y ago · link · parent

Does this stay compatible with the old uuid column type, as uuidv7() uses the same 128 bit format as gen_random_uuid()?

That would mean it's easy to update old apps, as we would only have to change the default value for the columns.

comment 2y ago · link · parent

Awesome, this might be just what I needed! I need to run vscode and it seems to be possible if you launch it with --enable-features=UseOzonePlatform --ozone-platform=wayland . I'll play around with it the next days, thanks!

comment 2y ago · link · parent

Remote desktop is not quite there yet it feels. It's the only reason to still use X imho.

comment 2y ago · link · parent

Thanks for the statistics, that's interesting. It can also be misleading, from what I could find, less than 10% of traffic deaths occur on motorways vs. rural/city roads and motorway deaths have actually been decreasing in France steadily since 1990 (this is only from a quick Google search).

Edit: According to the OECD itf (random source I found on the internet ;)) Germany had 317 deaths on motorways vs 201 in France in 2022.

https://www.itf-oecd.org/sites/default/files/germany-road-sa... https://www.itf-oecd.org/sites/default/files/france-road-saf...

comment 2y ago · link · parent

I'd take the French highway over the Autobahn any day. Yes it costs money, but people are driving in a much more civilized manner and they are well maintained.

comment 2y ago · link · parent

I did similar trips through Germany when I was just old enough to drive. One time I was driving 200 in the left lane and a truck changed lanes just in front of me, because the driver didn't expect me to drive this fast.

I had to do an emergency break maneuver and almost crashed into the truck. Only then it dawned on me that driving this much faster than the other vehicles is very dangerous. To me it is completely nuts that this is allowed. If you want to drive fast, you can always drive on race tracks...

I rarely went over 130kmh since then, nowadays I mostly cruise at 100-110kmh, because it is the ecological sweet spot of my car and in general it's less stressful.

comment 3y ago · link · parent

I guess it's fine as long as it isn't running in untrusted durectories. I'd take downloads out and documents in by default.

comment 3y ago · link · parent

Thanks, I disabled it! I'm on the A52. I use the double tap feature often enough, but I guess I can live with the lack of convenience, thanks ;)

comment 3y ago · link · parent

Well I have to now, because the screen also stopped working 90% of the time, except when I put it in the freezer for 15 minutes. Just 2 months that the phone is conveniently out of warranty. I guess it's the last Samsung Phone I'll ever buy.

comment 3y ago · link · parent

There is a large button underneath the number pad where you enter your PIN and it says Emergency Call. It works even when the SIM is still locked.

comment 3y ago · link · parent

No, I can't turn it off and it was always from a locked screen, I think it's a legal requirement in the EU. I now keep my phone always with the screen turned away from my leg in my pocket and that seems to prevent it well enough, even though I still often get to almost calling 911 when I take it out of my pocket with my hand.

comment 3y ago · link · parent

They are so lucky. My Samsung Phone already called 911 several times, while I had it in my pocket. And every time I have to explain why. I guess I'll get a Pixel next time.

comment 3y ago · link · parent

For my lazy self it would be nice to have a gif of how it looks without having to run it on my machine.

comment 3y ago · link · parent

Sorry I meant to write protection against data corruption (checksums)

comment 3y ago · link · parent

- ZFS with data loss protection

- Ceph with data loss protection

- Any filesystem on linux-md without data loss protection, BTRFS on linux-md on synology

comment 3y ago · link · parent

This article shows that it pays off to diversify. Invest in all low carbon tech. -isms, be it pro- or anti-nuclearism get us nowhere and poison the public debate.

comment 3y ago · link · parent

Not really, rich people don't care about carbon taxes.
12345