Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,590 karma · joined Dec 4, 2013 (12y ago) · 4,855 submissions

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

comment 5y ago · link · parent

And the example is weird: it explicitly explains you can do with fewer tests if the value is not true. Multiplication by N,U,ERR silently gives 0 as a result.

So multiplication by an ERR is not an error (from what I understand from quickly reading the ref).

comment 5y ago · link · parent

I upvoted you but... How comes Emacs is laggy for you? I'm running a beefy Emacs setup and it is really responsive. If anything Emacs in the nineties was "Eight Megabytes And Constantly Swapping" but... We're in 2021 now and now it's still 8 MB, so it's a rounding error (I'm only exaggerating a bit).

It's one my lightest app: starting Emacs, eval'ing some elisp, and exiting takes... 81 ms. Eighty-one milliseconds. To start an entire Emacs instance from scratch (no "daemon" trickery: a real full Emacs instance), eval'ing "kill emacs" (ok, a small program if any bu still) and exiting.

I don't know which editor, in this day and age, can start and exit in 81 ms (besides vim and nano)?

Launching my full setup takes 1.1s: thousands of lines of elisp configuration.

I'm running the native-comp branch since six months (?): compilation of Emacs itself is a bit of a pain but running it is very smooth.

That's on a 6 or 7 years old Core i7 6700K / 16 GB of RAM. Hardly a speed demon (besides the NVMe M.2 PCIe 3.0 x4 SSD).

Configuration, IIRC, has got a few "tricks" to prevent the usual culprits from slowing Emacs: something to do probably with font-locking on very long lines (?) when I open such a file etc.

But it's overall more than snappy. I use ivy/avy/swiper and burntsushi's rigpgrep integrated into Emacs. Everything is not just fast but really fast.

I cannot even imagine on a modern machine like some AMD 5900X or Apple M1...

comment 5y ago · link · parent

> Distributions ought to ship with it.

You mean install it by default? Even good old Debian stable ships with earlyoom (which I'm ofc using, since I saw it mentioned here once on HN).

comment 5y ago · link · parent

I just bought a friend's (used) Specialized StumpJumper FSR Carbon whatever-thinggy and it doesn't have the bar ends, which saddens me, so I'm adding some immediately.

The thing is: even if it's a mountain bike, there's some moments where I'm riding on a regular, flat, land (path or road) and I do really prefer to have the bar ends then. If I find it way more comfortable: doesn't even have to be for climbing. Just anything that's not "going down" and a bit repetitive: I simply prefer the position with the bar ends.

The argument I've heard against them is indeed what several people mentioned in this thread: you wouldn't want one of the bar ends to hook something and be the cause of a bad fall.

comment 5y ago · link · parent

TOTP issues related to bogus clocks are soooooo common that I've got my own public TOTP "secret" (so not really a secret) which I use to verify that my various devices running TOTP authenticators have the correct time (my phone, wife's phone, an airline/airgapped device running TOTP etc.).

It's so bad that Google's own authenticator has a "time synch" functionality or something like that in the very TOTP app (and it helps!). This speaks volume as to how bad and how not-solved-at-all the issue of drifting/wrong clocks is.

I much prefer U2F.

comment 5y ago · link · parent

I have both my father and my uncle who became dirt poor just by making terribly poor life choices so I've got a very different take on this. They had good jobs but couldn't help screwing it up by: gambling, buying sportcars, overall trying to bite more than they could swallow (houses too big, with monthly mortgage too expensive), etc.

In both cases it ended up with foreclosures / lawyers etc. My brother and I are now sending monthly money to our father because of his bad lifechoices.

And by poor I mean: living in a rusty, broken, RV hidden behind trees, illegally hooked up to electricity (not paying for it) and dumpster diving to find food for his dogs (because of course he was dirt poor but he had to have dogs and rabbits).

I've got friends who have serious issues meeting month's ends yet they buy 5x what I buy online. Every single time I arrive at their home they've got new pointless gadgets bought on Amazon.

There are people spending a fortune, compared to what they make, on packs of cigarettes and daily booze.

When you don't have enough money you don't have a ghetto dog, you don't buy cheap gadgets on Amazon, you don't drink your daily bottle of vodka/whiskey/packs of beer, you don't smoke a pack a day. You don't take a mortgage on a car from a category you can't afford just to keep up with the Joneses when a smaller car would do.

Well, you can... But there are choices and I refuse to accept that there are zero choices. You'll simply never convince me because I've seen it firsthand.

Now I don't tell those around me how they should handle their personal finances but I cannot but think about the many poor decisions I see being made.

And I'm not saying everybody has lots of room: but there are many poor people out there who are poor simply because of their dumb life choices (like my father).

comment 5y ago · link · parent

Oh interesting, I should check that out.

comment 5y ago · link · parent

I wish medium links were simply forbidden on HN.

comment 5y ago · link · parent

All these "simple" text editors like to show how easy it is to use "multiple cursors" to edit several spots at once but... Even though sometimes it's needed it's really usually a terribly bad way to "refactor". Real refactoring is done across multiple files / config files and that's one area where a real IDE excels. And this comes from an Emacs fan (and I do sometimes use "multiple cursors" in Emacs).

I really don't think it's somehow a "selling point" of a text editor to show that you can edit multiple cursor: what you typically want is real refactoring and multiple cursors simply aren't that at all.

comment 5y ago · link · parent

Very nice. Does this work with screen fonts / pixel perfect fonts too? That'd be my biggest gripe with all the OCR tools: what looks like the simplest fonts of them all to OCR are usually the one the less well detected.

For example using tesseract on Linux and trying to OCR the "terminus" font I get better result by first resizing the screenshot to something bigger (and blurry) and even then it's far from perfect OCR'ing. When in the first place it's a pixel perfect font...

(and, yes, there are cases where OCR'ing screen fonts make sense)

comment 5y ago · link · parent

Well yes and no: those staking coins do indeed get more coins but there's still lots of speculation going on. I mean: it's not a given that if, today, with x coins you can buy, say, a laptop tomorrow with x * 2 coins you'll still be able to buy that same laptop.

Stakers do definitely take the volatility risk. They're rewarded by getting more coins.

comment 5y ago · link · parent

In addition to what the others said: if you try to cheat in a proof-of-stake system, your stake is forfeited. Which is kinda the whole point: if someone wants to make a double spent / revert a transaction and gets caught, his stake is destroyed and all the people helping him to try to do his double-spent have their stake destroyed to.

The one issue is "long range attacks": where someone creates a fake chain and then tries to substitute it for the real-chain. In a PoW model you need more PoW than the real chain to mount your attack: that's how PoW chains are protected. In a PoS model not so much.

But Vitalik Buterin (the Ethereum creator) and a few others are pretty sure they've got a working proof-of-stake system.

Time will tell: expensive experiment ongoing!

comment 5y ago · link · parent

> fwiw, this made me spend a few minutes in youtube looking at old c64 and apple and Atari demos. what people ended up doing with those devices - years after they were mainstream - is still crazy to me.

The craziest ever, to me, is the following in 256... bytes. Bytes (including the music ofc, which is the whole point).

https://youtu.be/sWblpsLZ-O8

comment 5y ago · link · parent

We all have the same problems! Roomba 765 (a bit old and noisy, there are quieter models) since two years here: cat and SO's long hairs so I regularly need to use scissors to "free" the rollers.

Thing with the robovacs here: when you empty their bin and see how much dust they catched, you know they're very useful. We buy (and I build) furnitures and arrange our home so that the Roomba can go underneath them. I wouldn't for example buy a sofa under which the Roomba couldn't vaccuum.

comment 5y ago · link · parent

Unlikely to get upvoted here but a used Porsche Panamera with an extended bumper-to-bumper manufacturer warranty. As Doug Demuro says it's cheap, really cheap.

There's not a single brand new car costing, say, 75 K EUR or less that I'd have rather than that because the quality simply ain't there.

The ride comfort, soundsystem, sound insulation, interior quality, how it drives superbly (and can yet be used for some spirited drive if you fancy that), etc.

Best car I ever had. Next one is going to be another used Panamera, probably the plug-in hybrid. I tried the Porsche Taycan (their 100% EV) and it's amazing but I'll wait a bit until you can find used ones at bargain prices.

I'm a big fan of Tesla but, to me, the build quality simply ain't anywhere close: as in... It's not even remotely comparable. They are worlds apart. And as I don't rice at the greenlight, I don't care about the 0-60 perfs.

There's nothing better to cruise at 110 mph on the autobahn or to go pick up the kid at school.

It's high-end luxury with quality materials for less than the price of a new Camry.

https://youtu.be/EAezax2ugQU

By very far my favorite purchase of the last two years+.

comment 5y ago · link · parent

Oh yes. That's the screen I'm rocking. It's pure bliss.

For gamers I'm sure there's better but the 38UC99 is quite something. Now it's already three years old (or even older?) so there's probably better at the same price point now?

comment 5y ago · link · parent

I've got my Aeron since ten years and use it daily. It's still like brand new. I don't think I could sit in any knock off and not immediately notice the difference. It took 30 minutes to set up (ten years ago) and I haven't changed anything since then. I put my hands behind my head and the chair slowly leans back: that's the "easy" trick to configure it properly.

The one main complain I see about it is the frame hurting people's legs / preventing proper blood flow but I think that's people sitting in Aeron chairs not configured properly.

I don't just like the "pellicle mesh" (no sweating) and how great it feels, I also like that it's ten years old and is basically like new despite daily use.

As a funny sidenote: during the first covid lockdown I got stuck for three months not at my home and had to use a really crappy chair (as in: an old chair, not meant for office work at all) and within weeks I developed terrible back pain. It was so bad I had someone lend me one of his Aeron.

comment 5y ago · link · parent

> We got a Breville Barista Express.

Everybody who has one says it's so good. I wanted to buy one but then SO wanted a full-auto. So I bought a Delonghi full auto: apparently Delonghi's build quality went down a few years ago, they're letting the JURA brand the higher end market for full auto machines.

I may still buy a Breville Barista Express just for me.

comment 5y ago · link · parent

I hear you!

A long time ago I was in the US and I used the word "labyrinth" because I didn't know "maze" and, well, in french for a maze we say "labyrinthe"... I still remember the reaction of my american friend, very surprised by my "advanced" english vocabulary.

We native romance language speakers have it easy ; )

comment 5y ago · link · parent

Same here... I very rarely see Firefox crashing or a tab crashing on Linux. It happens once in a very rare while that I see a tab crashing but the whole browser never crashes.

Memory leaks can be bad indeed and here are two tricks that work fine for me: either run Firefox inside a Docker container... Docker container on which I put CPU and RAM quota. It's IMO way easier than try to put resources quota directly on Firefox. The other one: Firefox has zero issues reopening all my tabs, so I simply kill it from the terminal when I see that it's going wild on memory. Now I've got 16 GB and Firefox rarely eats it all and it's usually not sudden: it's a slow bleed over the course of a few days... So when I get to something like 10 GB of memory used by just one Firefox instances (I typically run several Firefox instances, from different user accounts) , I just kill it and restart it, while choosing to reopening all the tabs (usually tens of tabs).

I'm sure there are other methods too but this works fine in my case so I haven't looked much into it.

comment 5y ago · link · parent

All I can say is that that company well deserved Linus Torvald's famous middle finger: "NVidia has been the single worst company we've ever dealt with, so NVidia F--- YOU!"

And they certainly haven't disappointed since back then.

Petty.

comment 5y ago · link · parent

I'm no virologist but of all the places on earth we are supposed to believe that, by cheer coincidence, the outbreak happened in that one city that happens to do research and have patents on lab-modified bat viruses and that it doesn't have anything to do with that lab.

I mean: you seriously cannot make that up.

comment 5y ago · link · parent

> There have been tests showing we cannot hear the difference between minimally lossy audio (e.g. mp3 320kbps) and lossless.

Two things... CD quality (16 bit / 44.1 kHz stereo) was "big" in the eighties but it now makes for really tiny files. 1 TB harddisk and much more are common for consumers. Why are we still even arguing about 320 kbps mp3 when we can have provably bitperfect rips of our CDs, which can serve both as archive and for listening?

The second thing: from the other side of a big room I cannot tell the difference between a 100 dpi color printing of a painting and a 1200 dpi color printing of that same painting. Well... Even if I cannot tell the difference I do prefer to know I have the 1200 dpi print and not the 100 dpi one.

Why would I even take the risk, even I cannot consciously tell the difference, to have something of lesser quality?

mp3 was lots of fun in the Napster days when we were running 28.8 k baud modems and had 3.2 GB HDD. But nowadays I've got 1 TB HDDs... To me the mp3 ship has sailed and won't be missed. It's FLAC and only FLAC. CD quality everywhere. I don't own SACD (maybe I should) but got a lot of CDs. And FLACs are my CD in digital version. mp3s simply aren't.

And that's in 2021. I cannot imagine, say, in 2026. This "mp3 vs flac" argument is never ever going to go back in favor of mp3: as time passes the room it takes to store your music collection as FLAC keeps getting proportionally tinier and tinier.

comment 5y ago · link · parent

> By devouring the udev project...

That's the main issue (not udev specifically but the overall philosophy of trying to make systemd mandatory for as many things as possible).

Any distro adopting systemd is basically forever giving up any hope of moving away from systemd in the future.

I'm still on Debian (Debian user since "Buzz") but I already tried Devuan (Debian fork without systemd) once and may switch to it at some point.

I simply don't like the overall mindset of those pushing systemd.

comment 5y ago · link · parent

> - don't justify text, it doesn't look good

It certainly does look good for books and for LaTeX documents though. For the Web the problem is that it requires learning several new CSS properties and learn about some typesetting issues ("rivers" and "ladders").

The following does definitely look very good to me:

https://generatedcontent.org/post/44751461516/finer-grained-...

We're 25 years in, at some point browsers have to get a proper hyphenation and justification algorithm. With a proper H & J algo and high DPI screen, I don't see why it couldn't look great.

comment 5y ago · link · parent

What's a "turbo XT"? A IBM XT was, what, a 8088 CPU? On which kind of OS was lynx running on a 8088?

I remember running Lynx on Linux using slow modems but these were 386 and 486 PCs. I wonder what was that "turbo XT".

comment 5y ago · link · parent

> Surely someone will point out both can be true but the point is the anti-btc folks seem to be talking out both sides of the mouth

The most beautiful being: "The cryptocurrencies scam should all stop but, please, let us collect all the due taxes on the gains you made".

From that standpoint which one is it: are they legal or illegal? Because it's funny that they both want it to be illegal, yet they want people to pay taxes on the gains they made.

Hypocrites.

comment 5y ago · link · parent

> They would need your private key and your hard drive?

Most people serious about cryptocurrencies do not trust computers/harddrives anymore since years. They use "hardware wallets", which are HSMs with a very small attack surface. It's not impossible that hacks happen but there's a gap so wide between "a Windows 10 computer running some Bitcoin software wallet" and "a Ledger Nano S" hardware wallet that it's basically two different worlds.

Think a Yubikey (with a tiny screen) to cryptographically sign your transaction.

$5 wrench attack still works but compromising your private key(s) by "logging every OS keystroke in the name of telemetry" or "using one of the tens JavaScript 0-day from today" doesn't.

The idea behind these cryptocurrencies hardware wallets is that ANY computer you connect them to is compromised (which is precisely why you're using an hardware wallet) and that, yet, that's not a problem.

I have to say: it's not a bad way to think about computer (in)security.

comment 5y ago · link · parent

I'm wondering too. Now in TFA I read:

"The company paid the hefty ransom in difficult-to-trace cryptocurrency within hours after the attack..."

I don't know why you got "untraceable" and I get "difficult to trace" when reading the article.

Bitcoin ain't exactly difficult to trace. I wonder if Colonial took the "discount" of 30% and paid in Monero or if they paid in Bitcoin.

Oh well it looks at least one company is going to give a bit more sh-t about its IT security ; )

And another thing: often these news are followed, a few weeks/months later by "How the hackers who got a $5m ransom from Colonial got caught".

Waiting for that one...

1
153154155
162