Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,594 karma · joined Dec 4, 2013 (12y ago) · 4,861 submissions

email: I'll add a suitable email one of these days
Submissions

comment 1y ago · link · parent

I rely on these but there's zero loyalty. The moment something better is there, like when Gemini 2.5 Pro showed up, I immediately switch.

That's why I drink the whole tools kool-aid. From TFA:

> In this historical moment, LLMs are good amplifiers and bad one-man-band workers.

That's how I use them: write a function here, explain an error message there. I'm still in control.

I don't depend on LLMs: they just amplify.

I can pull the plug immediately and I'm still able to code, as I was two years ago.

Shall DeepSeek release a free SOTA model? I'll then use that model locally.

It's not because I use LLMs that I have a strong dependency on them.

Just like I was already using JetBrains' IntelliJ IDEA back when many here were still kids (and, yup, it was lightyears better than NetBeans and Eclipse) didn't make me have a strong dependency on JetBrains tools.

I'm back to Emacs and life is good: JetBrains IDEs didn't make me forget how to code, just as LLMs won't.

They're just throwaway tools and are to be regarded as such.

comment 1y ago · link · parent

I'll die on this hill... If may files that are named like this:

    DSC009847.JPG
were actually named like this:

    DSC009847-b3-73ea2364d158.JPG
where "-b3-" means "what's coming before the extension are the first x bits (choose as many hexdigits as you want) of the Blake3 cryptographic hash of the file...

We'd be living in a better world.

I do that for many of my files. Notably family pictures and family movies, but also .iso files, tar/gzip'ed files, etc.

This makes detecting bitflips trivial.

I've create little shellscripts for verification, backups, etc. that work with files having such a naming scheme.

It's bliss.

My world is a better place now. I moved to such a scheme after I had a series of 20 pictures from vacation with old friends that were corrupted (thankfully I had backups, but the concept of "determining which one is the correct file" programmatically is not that easy).

And, yes, it detected one bitflip since I'm using it.

I don't always verify all the checksums: but I've got a script that does random sampling... It picks x% of the files with such a naming scheme and verifies the checksum of these x% of files picked randomly.

It's not incompatible with ZFS: I still run ZFS on my Proxmox server. It's not incompatible with restic/borg/etc. either.

This solves so many issues, including the "How do you know your data is correct?" (answer is: "Because I've already looked that family movie after the cryptographic hash was added to its name").

Not a panacea but doesn't hurt and it's really not much work.

comment 1y ago · link · parent

> So you could either use readonly media (like Blurays) or PULL is mandatory.

Or like someone already commented you can use a server that allows push but doesn't allow to mess with older files. You can for example restrict ssh to only the scp command and the ssh server can moreover offer a chroot'ed environment to which scp shall copy the backups. And the server can for example daily rotate that chroot.

The push can then push one thing: daily backups. It cannot log in. It cannot overwrite older backups.

Short of a serious SSH exploit where the ransomware could both re-configure the server to accept all ssh (and not just scp) and escape the chroot box, the ransomware is simply not destroying data from before the ransomware found its way on the system.

My backup procedure does that for the one backup server that I have on a dedicated server: a chroot'ed ssh server that only accepts scp and nothing else. It's of course just one part of the backup procedure, not the only thing I rely on for backups.

P.S: it's not incompatible with also using read-only media

comment 1y ago · link · parent

> ... we won't be left with an enduring and useful piece of infrastructure adding a trillion dollars to the global economy annually.

I'm not drinking the AGI kool-aid but I use LLMs daily. We pay not one but two AI subscriptions at home (including Claude).

It's extremely useful. From translation to proof-reading to synthetizing to expanding on something to writing little dumb functions to helping with spreadsheet formulas to documenting code to writing commit messages to helping find movie names (when I only remember very partially the plot) etc.

How is this not already adding a trillion dollars to the economy?

It's not about the infrastructure: all that counts are the models. They're here to stay. They're not going away.

It's the single biggest time-saver I've ever seen for mundane tasks (and, no, it doesn't write good code: it write shitty pathetic underperforming insecure code... And yet it's still useful for proofs of concept / one-offs / throwaway).

comment 1y ago · link · parent

> Your drives are unencrypted. What's your next step if you come home tonight and find the house ransacked and the server gone?

My drives are encrypted and so are my backups (with backups everywhere). But they're symmetrically encrypted with a password. The backup procedure contains a step verifying that decryption works.

Family knows the password: password is stored at different places on laminated paper (friends and family) but not alongside the backups.

Decryption of the backups is one command at the CLI (both brother and wife knows how to use a CLI and soon the kid shall too: already dabbled with it).

The one command is explained alongside the password, on the same laminated paper as the backups.

Yup I did really think this out, including rehearsals where I, literally, fake my own death (I fake a heart attack) in front of my brother and wife and I have to shut the fuck up while they open a CLI, hook up one of the backup hard disk and decrypt the backups.

Once a year we rehearse.

That way they are confident they can restore the backups. I know they can and I don't need reassuring, but they do (well less and less because know they began realizing I really thought this out).

> The chance of someone breaking into your house is sadly much more likely, and them choosing to take any computers they see is almost a certainty at that point.

Got a house break in years ago, they stole no computers.

> What's your next step if you come home tonight and find the house ransacked and the server gone?

Go to the bank, take of one my backup hard drive. Buy a computer, reinstall Proxmox, a VM, Docker CE, redeploy my infra. They still don't have the Yubikeys on my keychain. They still don't have what's on my phone.

Don't think some people here didn't plan for death / theft / etc.

comment 1y ago · link · parent

> I think about it in terms of what will happen when I die and what I will be inflicting on my family as the ridiculous setups stop working.

I run proxmox too and I've now got a nice little infra at home.

For my family it's simple: I explained them that the infra doesn't matter. The only thing that matter is data. And that there are many, many, many redundant backups of the data and that the backups are functional. That the data are correct (not a single bit missing) and pristine (deduplicated etc.).

Basically 20 years of family pictures and family movies, notarized documents, many proofs of big money transfer (as we now live in an hellhole of KYC/AML where I constantly need to prove money transfer, even when they're so old my banks don't allow me to get that info anymore), all the invoices related to real estate, medical stuff, cars, etc.

My backup procedure uses an intermediary steps that restore the data from the backup and verifies that the data is correct: once that step passes, the backup gets the greenlight. 3-2-1. Even more than 3-2-1.

Cryptographic hashes everywhere, including in filenames: I've got scripts that do verify x% of the files, random sampling style. I'm 100% guaranteed that at least 99.999% of the files are correct. And there are so many backups (online, offline, onsite, offsite, ...), all checksumed. My family won't lose our data. They're literally in various safe and in several countries.

Once I won't be there, they'll have the data up to that point. FWIW both my wife, daughter and brother --although they're not techies-- all happen to be familiar with computers and all took Python lessons. They know what a CLI is.

So even should they have a problem hooking up a hard disk, there's not a world in which they cannot do that:

"LLM> Dear AI, I've got disks with backups of family pictures and notarized documents, how can I access them?"

The world where you couldn't ask that question doesn't exist anymore.

Data of new memories shall be theirs to do deal with though.

P.S: besides that I think homelab'ing is also for convenience and understanding how things (like the network and servers) do work. It's to me more about thinkering and learning than "controlling".

comment 1y ago · link · parent

> Most COBOL applications I’ve seen have been banking and insurance related with few exceptions.

Banking is a big one yup. I think some countries still use COBOL too for computation related to pension payments.

Best paid consultant I ever met was a COBOL dinosaur. The bank fired him then had to crawl at his feet and accept his insane daily fees when he came back as a consultant.

A very good friend of mine worked at a bank on Java code that would generate... COBOL code. Fun stuff.

comment 1y ago · link · parent

> Any installed distribution should have a bootloader signed with its own key that will continue to boot

I'm kinda concerned here: as long as there's no mandatory security upgrade requiring a reboot, I'm the kind of person to reach six months of uptime with my desktop (yup, Linux is that stable, a far cry from Windows).

So I'm concerned about not being about to boot in x months and forgetting why (ah, yes, Microsoft having a key expiring).

Am I correct in my understanding that this only affects my installation media and not my already installed systems?

Lastest Debian stable FWIW.

Oh well, I take it it's going to be mokutil and whatnots when I get back home.

comment 1y ago · link · parent

> What stops the attacker from just editing /etc/rc.securelevel and then doing a normal reboot?

Certainly a full reboot leaves more tracks than no full reboot? So it's harder to hide?

comment 1y ago · link · parent

> Totally tangential, but I love to read post-mortems of people fixing bugs.

I know I already posted it moons ago but... Around 1991 I made a little game, similar to Canon Ball on the MSX (which later on Pang / Buster Bros did copy).

I had one weird case where sometimes the game would crash. Plain crash. But sometimes after playing for 15 minutes and already passing several levels. I just couldn't find it. I couldn't reason about it. I was stuck.

So I decided to rewrite not the entire game but the part dealing with the inputs / game logic to make it 100% deterministic. It took me a long time to do that. Then eventually I could record myself playing: I've record only the player inputs and at which moment they'd happen, which would make for tiny savefiles btw.

And eventually while I was playing and recording, the crash occured. I tried my replay: it worked... It replayed the savefile flawlessly and the game crashed again.

At that point I knew the bug was gone: being able to reproduce a bug in a deterministic way means I was going to fix it.

Turns out it was a dangling pointer (ah, C...): when the hero would catch an extra allowing him to fire two shots at once on screen (usually he'd only be allowed one) and would the first shot kill the last ball on screen, then on the next level the second shot would somehow (due to an error on my part) continue to live its live, eventually corrupting memory.

Fun stuff.

FWIW having deterministic game engines wasn't a thing back then. It became common later on, with games like Age of Empires and Warcraft III etc. using them: it was obvious for savefiles allowing to replay/exchangs games were tinier than tiny: they'd only save at which frame a player input happened and they'd replay the entire game from there [1]

I still have the code to that game, it was surprisingly fun. Someone here already offered help in the past to get it back on its feet. I've also got an executable that runs. I just don't remember how the tooling worked. Still have the BAT files etc. to build it, but not the tools. I really should look into that one of these days but I'm kinda busy with other projects / life.

[1] which also raised another issue: when game engines were upgraded, you could have savefiles only playing on older version of the game, so players would exchanges games and add the version of the game they were destined to

comment 1y ago · link · parent

> But I really wonder whether we've lost something by not making more of an effort to use resources more frugally.

On the desktop we definitely lost responsiveness. Many webpages, even on the speediest, fatest, computer of them all are dog slow compared to what they should be.

Now some pages are fine but the amount of pigs out there is just plain insane.

I like my desktop to be lean and ultra low latency: I'll have tens of windows (including several browsers) and it's super snappy. Switching from one virtual workspace to another is too quick to see what's happening (it take milliseconds and I do it with a keyboard shortcut: reaching for the mouse is a waste of time).

I know what it means to have a system that feels like it's responding instantly as I do have such a system... Except when I browse the web!

And it's really only some (well, a lot of) sites: people who know what they're doing still come up with amazingly fast websites. But it's the turds: those shipping every package under the sun and calling thousands of micro-services, wasting all the memory available because they know jack shit about computer science, that make the Web a painful experience.

And although I use LLMs daily, I see a big overlap between those having the mindset required to produce such turds and those thinking LLMs are already perfectly fine today to replace devs, so I'm not exactly thrilled about the immediate future of the web.

P.S: before playing the apologists for such turd-sites, remember you're commenting on a very lean website. So there's that.

comment 1y ago · link · parent

> Why would anyone develop AI models in the EU?

Not just AI models. The EU only leads in regulations and nothing else and it shows: since 2008 both China and the US have experienced insane GDP growth while the EU has been totally stagnant (inflation adjusted).

I don't think people realize at which speed the EU is falling into oblivion. It's really horrible to witness from inside the EU. Cities are poorer and poorer, high-trust societies are becoming low-trust ones due to rising (imported) poverty and crimes. Cities that used to be beautiful cities now see weekly kidnapping (Paris) and AK47s are fired in Brussels on a weekly basis.

But we should all applaud because AI is going to be regulated and because we're going to be green. Go EU, yay!

Meanwhile people in the EU don't even want to have kids anymore: I honestly have got a hard time figuring out why young people in the EU would even want kids seen the overall atmosphere reigning here now.

So while India, Brazil, China, the US, and many other countries are still going to see growth, I fully expect the EU to keep shooting itself in the foot (like it did with its car industry, destroying it with regulations and handing over the EU EV car market to China).

Those who can do do, losers who cannot do regulate.

comment 1y ago · link · parent

The UK is in the middle of a huge scandal that prompted a national enquiry regarding actual physical harm done to countless teenage girls: in the hundreds for sure, probably in the thousands:

"PM announces national inquiry into grooming gangs"

https://www.bbc.com/news/articles/c7872pngj2qo

Note that the PM eventually bowed and launched a national enquire due to pressure: it's not as if he's a white knight here.

For it was all covered up by local politicians and police (some of which whom, for sure, also abused the girls) for fear of showing certain communities in a bad light (that's the official statement of several police officers as to why the countless reports of rape weren't followed).

It's great to "think about the children" but the UK should first look into why the number of rapes in the UK went 10x from 2000 to now. Ten fold. 10x. In a quarter of a century. What happened to the UK?

So the UK protecting children: remains to be seen.

As a sidenote there feels like there's an hint of posing here by BlueSky too: many call that social network "PedoSky" and the reason for it is many people with very dubious behaviour who couldn't silence their critics on Twitter/X moved to BlueSky. You know which kind of people: those who'll say it's acceptable to be attracted by children as long you don't physically do anything to them, those men wearing women outfit and dancing salaciously under the pretext that it's "art". They are on BlueSky, that's a fact. Hence, maybe, the posturing by BlueSky now.

I see that announcement as a safe haven for pedos teaming up with a government actively involved in the coverup of massive rape rings operation.

But I take it we should all applaud because it's all done in very good faith?

It's Orwellian stuff.

1
575859
163