Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

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

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

comment 4y ago · link · parent

That vid is a very bad example for the vid itself is not running at 50/60 Hz. And that was the whole thing back then: most great game on the Amiga (and the Atari ST) were running at "full frame rate". Arcade games too (except some still amazing ones like Outrun which was 30 fps IIRC).

A parallax a 50 Hz was silky smooth. A video of a game running at 50 Hz that is recorded at 30 fps doesn't do the original game justice.

The link to Shadow of The Beast (Amiga 1989) is much better in that you can configure YouTube to play the vid at 50 Hz.

comment 4y ago · link · parent

> As long as an ICE is a feature people want to their car to have it won't matter that a battery is cheaper.

The EU has voted a complete ban of the sale of new ICE and hybrid cars by 2035. It doesn't matter if ICE is a feature people want or not: it's not going to be an option.

comment 4y ago · link · parent

> A rolling code system in keyless entry systems is to prevent replay attack.

More specifically: rolling codes are used to prevent replay attack while allowing the remote fob to be only a transmitter, not a receiver, which saves on costs.

If there was bi-directional communication there are obviously better ways to secure the fob/car (like regular challenge/response).

comment 4y ago · link · parent

Basically all this, including the pranks too. I fondly remember the huge encyclopedia my great-grandmother (!) offered us.

And the BMX 2000 too: geez, I loved that thing (but was still jealous of that one guy in the neighbourhood on a golden Raleigh Burner).

comment 4y ago · link · parent

> You're not going to stop people from misentering addresses, and many countries have terrible validation or streets that don't exist yet take forever to show.

I live in a place where the official address changed: as in we got a letter (in 2016 I think) from the town hall saying "your address is now ... and you have to ask everybody to mail you at that new address". Well... Most utility bills' systems have been programmed in a way that make it impossible to keep the same "installation ID" (as in the ID on our electrical install) while changing the address. Somehow "the street got a new name" is a case that had never been planned.

The implications are wild (for example the bank refusing to open an account because the official, legal, address doesn't match the address on the utility bill and then the contry's IRS thinking there are shenanigans going on).

That's in a civilized, western EU, country.

It's Brazil (the movie).

comment 4y ago · link · parent

> Ferrari is virtually unchanged since 1947, Porsche is still using exactly the same since 1963. Dom Perignom has never touched a pixel in their logo since their begginings in 1921, same as Dior since 1948.

Porsche didn't update their font (or really not much if they did) but they did update the Porsche crest a few times (the one they slap on the hood / rims / keychains / headrest / etc.) though, but to make it better: at every change they actually made the "Porsche" letters on the crest be closer to the original Porsche font (font which was incredibly modern for the time when it came out: I've got a leaflet from a Porsche 356 from 1955 or so and the font hasn't aged at all).

comment 4y ago · link · parent

> What is the incentive for them to do that?

They could be short trading ETH. They could just want to create havoc. Why did people deface websites long before online ransoms were a thing? I don't think bad people need many incentives to do bad things. I may be wrong of course.

> If the node is secured physically they would need to break into a person's house and decrypt whatever security setup they might have in place.

But that's not how most exploit work. Most exploits, and by very far, are 100% software.

I mean: it's for the very reason that computers aren't devices to be trusted that many are protecting their coins using hardware wallets.

I don't know what software is needed to stake Ethereum but I'm pretty sure it involves a huge software stack.

Seriously: I don't understand how, on one hand, there are people holding the keys to move their ETHs on hardware wallets who are, on the other hand, staking these ETHs on a purely software stack. It makes approximately zero sense to me.

If you're certain your node can be trusted to safely stake your ETHs (as in: there's not risk of your ETHs getting slashed in two), why bother with a hardware wallet? Just keep the private keys that allows to move your ETHs on your node too, because you consider it's safe anyway?

I don't know: I may be all wrong on this but it sure makes no sense to me.

comment 4y ago · link · parent

Wait... Couldn't the same argument be used simply to move coins? "My keys, my coins. If I fuck up by holding my keys on an insecure computer, I deserve my coins to be stolen.".

Yet there are HSM / hardware wallet so that it becomes way harder to "fuck up".

There's a difference between a nefarious actor having its own ETH slashed and a nefarious actor finding a way to have an honest actor's ETH slashed.

Isn't it possible to imagine secure hardware device to stake ETHs instead of having to run validation code on general, insecure, purpose computers which gets owned all the time?

I literally mean that: the same as hardware wallet to stake/validate instead of sign transactions.

I think you got my critique right: I find it's folly to stake on general purpose computers.

comment 4y ago · link · parent

> There are two key equivocation rules a validator must follow, taken from the Gasper paper: > > Double vote - no validator makes two distinct attestations for the same target block > > Surround vote - no validator makes an attestation that surrounds or is surrounded by a previous attestation

Which are both punished by having the saked ETHs being "slashed" (32 ETHs staked, you end up losing 16 of the 32).

I never understood that: it opens a door for a huge attack in that it's now impossible to safely "stake". Ethereum devs says you can safely stake in that staked ETHs aren't at risk of being stolen (the key to stake and to move the ETHs aren't the same, so it's impossible for an attacker to steal the 32 ETHs) but...

An attacker accessing a staking node can, on purpose, double vote or surround vote to get the ETH slashed. The difference between losing 32 ETHs or 16 ETHs is not that big (sure, in the case of slashing at least the attacker doesn't get them, but for the person losing the ETHs, it doesn't make a huge difference).

So it's impossible to stake without risking your ETHs getting slashed, even if the staker is honest.

Here's my prediction: we'll see exactly that attack on slashing nodes, people are going to lose ETHs and we'll see excuses to the tune of "you didn't securize your node well enough".

I do think it should be possible to stake without that risk (just as it is possible to hold the private keys to cryptocurrencies on hardware wallets because, well, computers are all too often insecure).

Here's another prediction: some are going to come up with HSM to stake ETHs (maybe they already exist?). The risk of getting people's ETHs slashed is just too big.

comment 4y ago · link · parent

> The defaults are absolutely awful.

I find them awful too but many people are fine with these defaults.

> There's no package pinning or SemVer so you get what you get, packages sometimes break in mysterious ways. So you write more code to work around various broken stuff in packages.

There's however a way around it which you may like, seen your complaint... What I do, and it's not unheard of but definitely not the most common when it comes to Emacs, is that I load specific versions of packages. And I commit my entire Emacs setup in Git.

So when I upgrade packages (or install new ones) if anything goes wrong I can just checkout/restore a known fully working state.

There are trade offs when versioning your entire "emacs.d" directory but honestly I don't see many downsides. And I share that emacs.d between several user accounts / machines and any change I made are one "git pull" away.

When I start Emacs I don't check for packages / refresh package contents or anything like that: I only do that when I actually plan to upgrade packages (which I do maybe once every six months or so).

> I want to just write code, not write code to make just writing code less of a pain.

I'd say that's kinda a big selling point of Emacs though: you can write elisp code to make anything you do (not just writing code) less of a pain.

comment 4y ago · link · parent

> Here is another idiot "testing" it out in front a school bus.

He's anything but an idiot: it helps raises awareness of the serious issues Tesla self-driving have. He was also obviously ready to act immediately, which he did, and no kids were ever at risk in that vid.

comment 4y ago · link · parent

> When I need to identify myself, depending on the government I have to deal with, I have to use either my "FranceConnect" credentials, or my Belgian e-ID card.

That you even have to identify yourself as often as you do in the EU is a problem the EU countries created. So basically they create a problem (people needing to identify for basically everything: vaccine, going to the restaurant, going to nightclubs, maybe going to the toilet in the future, etc.) and then come up with a solution: "Look, it's going to get easier to identify yourself!" and everybody applauds.

But, wait, why do I need to be identified all the time yet?

comment 4y ago · link · parent

> They are proudly proposing that we outsource government functions to them, promoting the proprietary tech they will use to that end.

Thales is one those supposedly private companies that is actually owned by the french state and french state apparatchiks. The biggest shareholder is the french state itself (26%), then other companies which, surprise, are also partially french state owned. It's all Dassault, Airbus, EADS etc.: they're all basically partially french state owned and own shares of each other. It's the military-industrial complex, french style.

I mean: it's basically the government proposing we outsource government functions to the government.

All that while pretending that Thales is a private company.

comment 4y ago · link · parent

Yeah I much preferred Mercurial from that standpoint. And branches there were correctly named branch. But you kinda, sorta, can get "what should have been called branches but don't exist in Git" by using named tags when you "start a branch" (a real branch I mean, not a Git "branch").

> Mercurial branches don't work like this: they are actually stored as part of each commit, so even with ambiguous commit graphs each commit still has a well-defined branch.

I wonder which operation would not be possible with Git had Git gone that way. And hence I wonder too what's that operation that Git can do and that Mercurial can't.

Honestly switching from Mercurial to Git this weird "branch that aren't branch at all" was the single most WTF feature of Git.

comment 4y ago · link · parent

> Oil shocks, interest rates at 15%. History rhymes.

Except the G-20 average public debt in the 70s was like 30% of the GDP.

We cannot go to interest rates at 15% with countries having 100%+ public debt (as is the case nearly everywhere in Europe for example).

comment 4y ago · link · parent

It's the same with the, even older, CD audio format. Sure, it's lossless and uncompressed but stereo 16-bit 44.1 kHz was a stroke of genius. In 1980.

Some may argue about lossy audio format (as it the nineties called and wanted their 20 GB HDD back) while others may argue about SACD, 24 bit 96 kHz and whatnots but the fact stays: there are engineers out there who came up with the CD audio format in 1980, which is still in use to this day.

I legally and bit-perfectly rip my CDs to FLAC files and it still boggles my mind that it's basically the format from 1980 (FLAC files are lossless and you can re-burn the exact same identical CD, which you can then, if you fancy so, re-rip to the exact same, bit perfect, WAV or FLAC files, rinse & repeat as many times as you want).

Speakers definitely got better. DACs are ubiquitous now. Amps probably got better too. But 16-bit 44.1 kHz stereo lives on since 42 years (40 years commercially). Soon half a century.

"It's like alien technology from the future" indeed.

comment 4y ago · link · parent

> Nordic European winters are horrible, and no amount of amenities can compensate.

Yup... Belgium (and that's not even totally north), where I'm originally from, has 199 days of rain per year. Out of the 166 days left, half of them exhibit a gray sky. Wife and I packed our stuff, put our baby in the car and left for a better life along the Mediterranean sea side six years ago: zero regret.

comment 4y ago · link · parent

I do something a bit special... Instead of naming my script foobarnator (and hence risking that another foobarnator may exist in the future and may clash with my script), I name my script foobarnatorToBeAliased.sh. Then in my list of aliases I alias foobarnator to foobarnatorToBeAliased.sh.

The alias itself looks a bit weird in that to pass arguments to an aliased command you need to use a function (in Bash at least AFACIT) but it all works fine.

As aliases aren't sourced when other scripts are running, I'm sure my scripts/commands ain't ever going to clash with anything.

I've been doing that since years.

It also works fine to add "wrappers" to existing commands: for example to add additional input sanitization catching common mistakes I'm making when calling some commands.

comment 4y ago · link · parent

I still have working HP LaserJet 4+ which I turned into "4M+" by adding a PostScript card (not cartridge but card) and a network card (I'd also add more RAM to these printers).

Once done, you can "netcat" a .ps file directly to the printer's IP. There's beauty in that. I mean, you literally send a postscript file over the ethernet wire and the printer starts printing it. No need for any printer driver. Sure, you don't get a spooler and errors can be ugly (as in printing garbage on lots of pages if you're not quick to stop it) but netcat'ing a PostScript file to a native PostScript printer still feels, today, deeply elegant.

I've got a few of these: they were fantastic printers (but sadly only 600 DPI). Some of mine have printed more than 300 000 pages and are still going strong.

I hadn't done any PostScript programming in a very long time but the other day I made a game for kids at my kid's school: an hexagonal grid with one letter per hexagon and then kids have to find all the kids' names in the grid... I wrote some Clojure code to generate... A .ps file. Because why not.

P.S: as a bonus these LaserJet printer can be made to display the famous "PC LOAD LETTER" message.

comment 4y ago · link · parent

> The DAO hack of 2016 and the decision to go back a few blocks and revert the hack by a few at the top already taught us about the nonsense of 'cOdE iS lAw' years ago and that decentralization being a total lie.

There's been zero rollback to block the attacker's seized ETH in the DAO hack. There was a "cooldown" period during which the attacker couldn't withdraw the fund and during that cooldown period Ethereum's code was modified and everybody had the choice to either run the old code or the new code on its node. People mostly decided to adopt the code preventing the attacker from accessing the stolen ETH while some decided to continue with the original code. So the chain forked into two blockchains: Ethereum and the one that was named "Ethereum Classic" (ETC).

Arguably after the fork ETC was the "original" blockchain (but with its token way less valued) but since then AFAICT the real development has been happening on Ethereum, not Ethereum Classic and so nobody is arguing anymore that Ethereum Classic is the "real Ethereum".

> The move to proof-of-stake will only show that it will get worse.

Why would that be? Instead of rich miners it's now rich HODLers mining blocks but mining is ultra centralized through a few big pools: I don't see how PoS, if it works, would make anything worse than it currently is?

comment 4y ago · link · parent

I started using it because the UI is flawless and because I never installed WhatsApp and I never will. I don't have false hope about the "security" and "privacy" of Telegram that said: but it's a great messaging app which, by now, a huge number of people are using.

At my kid's previous school and at my kid's current school there are parents using Telegram. Sure WhatsApp is still the most common one but Telegram is not unheard off.

700 millions users is quite something.

Hardly a week goes by without Telegram telling me: "xxx joined Telegram". Last week I re-connected with a friend I hadn't talked to in a long time because I saw he just joined Telegram. Said hi to him, sent him a few pictures. I don't know who brought him to Telegram but he ended up using it and he's definitely not a techie.

At this rate in two years they'll have 1 billion users. Maybe it'll even snowball at some point.

This is competition to WhatsApp. 700 million users and growing is not nothing.

comment 4y ago · link · parent

It depends what you're doing but for my "workstation", Devuan is indeed working flawlessly. I'm running it since six months or so on my main PC (a little Ryzen 3700X / 32 GB or RAM) and I'm very happy with it.

Now if you're a sysadmin and have come to rely on systemd and are now locked in, Devuan is obviously not for you. But if you're running Linux on a desktop or on a laptop and aren't a fan of systemd, Devuan is great.

comment 4y ago · link · parent

> The chances of bitcoin going to zero are zero.

I think you're right but I'm pretty sure you missed GP's point...

> You really think there isn't a single person on this planet willing to put in 1-10 million to buy up all the bitcoin?

Of course there are people/companies willing to do this: they'd short squeeze the entire supply if they could but... It's not GP's point: GP's point is that there exist a scenario in which the "work" (the "proof of work") required to find one block would be so expensive compared to the value of BTC that it'd be impossible to ever mine a new block on the blockchain. That's be a "death spiral": a PoW forever too high and nobody willing to put in the $$$ in electricity required to mine one block and let alone the huge number of blocks required before the PoW difficulty is lowered. These blocks would be mined at a gigantic loss. The problem is made worse by the PoW only being able by -75% at most: so should some big miner mine at a loss for a very long time, the -75% difficulty "easing" may not be enough.

If anything, of all the dramatic scenario about Bitcoin since it came out, this death spiral has always been the most concerning one.

Compared to the rest of the whitepaper/code this part of Bitcoin always seemed very weak due to poorly choosen parameters (way too many blocks before the difficulty adjusts itself). This poor choice of parameters may be Bitcoin's eventual downfall.

Now... There's a group of devs who basically control the code and you can bet that should the death spiral happen, these devs would magically agree with miners and big players to "vote" on adopting new parameters / relaunching the chain/mining with a much easier difficulty.

That's why I think you're right: it's highly unlikely BTC would go to zero because there'd be an army of people coming to its rescue. But it's quite a range between $18 K (as I type this) and zero.

comment 4y ago · link · parent

> Why can't you also make a copy at the block level?

I don't know about CDs / BluRays but similar to what user jaywalk answered: back in the floppy disks days some copy-protection relied on physical differences created on purpose on the original game. It could be something as "simple" as damaging a track on purpose, by punching a hole in it. Then the game would try to read the data, any data, from that track. And the read command had to fail. A dumb block level copy wouldn't work: it could of course not physically punch a hole in a floppy disk.

So pirate groups would crack the game and ship a version of the game without the copy protection and these could be copied at will.

comment 4y ago · link · parent

> am I a bad person if I think that people buying the latest hyped NFT deserve to have their 'crypto' drained?

I'll tell you this: the scummy thieves who drain these deserve it even less.

comment 4y ago · link · parent

Why not a FIDO key? The most stupid ones work with just a click (but they do work and they're cheap, so there's that). Then there are slightly less dumb ones that works with your fingerprint. Then there are less stupid ones which are using a PIN to register a new service and another PIN to authenticate yourself to a previously registered service.

comment 4y ago · link · parent

That's why systems correctly designed have not one but two passwords (or PINs), which look identical. You enter either and everything seems to work. But one of the two means "I'm under duress".

If people home-jack me at night, my 24/7 alarm system/monitoring company calls me in the following 45 seconds at most and asks me for my password. If I say "monkey" it means everything is fine, if I say "beetle" it means I'm under duress. When I give either password, the company answers: "OK, sleep well, all is good". But in the later case they call the police and tell them a home-jacking is ongoing. (obviously my two words aren't "monkey" and "beetle", this is just an example).

(as a bonus my alarm system has an anti-jamming system and communicates using several channels)

Banking apps should be the same: they should have one PIN to do regular business and another one where everything looks legit, but you'd only be making fake wire transfer or only allowed tiny withdrawals, showing a small balance.

Some companies (for example my alarm system) and websites (very few but I've seen some) and some HSM (for example cryptocurrencies hardware wallets can decode using two keys, one of them showing a smaller balance than the real one) have seen the light and have such a feature.

I do believe we're still in the stone age when it comes to security. Most people like to post that disastrous XKCD and think the bad guys have forever won thanks to their $5 wrench. I'd hazard a guess: people thinking with that victim mentality aren't the ones coming up with better security systems.

comment 4y ago · link · parent

Oh I didn't explain myself correctly. I've got nothing against the example in the blog post. What I mean is that no matter if Java or Kotlin makes guarantees about null safety, invariability and the type of the object returned, in the end you still have to deal with the glorified GOTO statements that exceptions are.

comment 4y ago · link · parent

The devil is in the details: the capitalize example will badly fail on an empty string right? (substring will throw a StringIndexOutOfBoundsException).

So we guarantee you you'll get a String back. And hear this: we also guarantee you, 100%, it's going to be non null. And we guarantee you that the reference to that non null String is going to be immutable.

Oh but wait: maybe you'll get a RuntimeException instead...

1
136137138
163