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

Honest question: would it be that bad to mandate and enforce 100% ASCII source files? Arguably every and any Unicode character and, well, arguably even any string of characters can (should?) go to a properties/resources file (properties/resources files which, btw, also greatly simplifies i18n/l10n).

Then build/commit/test hooks could be used to enforce that source code files are indeed 100% ASCII.

I know, I know... Some are going to lament they don't have their shiny Unicode symbols right in their source file. But... It looks like you get what you pay for.

Bruce Schneier wrote it when Unicode came out btw: "Unicode is too complex to ever be secure".

comment 5y ago · link · parent

Depends what you mean by "touch typing". I was typing pretty fast at a young age (young age compared to know) but got my arse handed to me in a speed contest, for fun, at home, by a friend who was a secretary and did learn proper touch typing technique. She was like: "Oh you think you type fast uh?".

So I simply asked her to teach me the proper technique and now, since decades already, I'm touch-typing the proper way.

Having said that: you can be very fast using improper touch-typing technique.

comment 5y ago · link · parent

hmmm not like that here. MacBook Air M1: it's the "living room computer", the one to surf from the couch and I do really dig it but once in a while everything locks up. I don't know why. Sometimes it does unstucks itself while at other times I force it off (and when it's all blocked and I hold the button to turn it off, even that is kinda not very responsive).

I doesn't happen often, once every few days. But it's not anywhere near "Debian Linux" stable (where six months of uptime for a desktop are a regular thing).

comment 5y ago · link · parent

> ... the governments of the world couldn't have imagined a better excuse to violate privacy and personal freedom with COVID-19

On a daily basis in the EU you do really feel how politicians have used Covid-19 to impose a crazy amount of surveillance. If moreover you travel just a bit, the amount of bullshit you have to fill / comply-with and whatnots is just insane.

You drive from, say, France to Belgium: you are supposed to fill online "locator" forms saying where you go from, where you go to, what's the license plate(s) of the car(s) you're using, you have to give the names/address of any intermediate address you're saying at. You can decide to not fill these, but you're taking the risk of serious fines, especially if you happen to contaminate someone.

Non-tecchie people are noticing the increased surveillance too: my wife and kid are flying tomorrow and my wife was telling me earlier today: "The amount of new information you have to give to confirm you plane ticket is becoming crazy".

People do feel they're being watched. Not mentioning the "vaccination pass" you now need to show at many places to be able to enter (as, for example, the restaurants).

I don't personally think the pandemic warranted such a totalitarian crackdown on citizens.

We did obey and suffer the lockdowns. We did get the vaccine. But it certainly doesn't look like we're getting our liberties back.

It is beyond insanity.

comment 5y ago · link · parent

> I sometimes miss good old HDDs, because you could tell if they were busy just by listening. But considering the godawful noise the really fast HDDs made, SSDs are a blessing.

Oh indeed!

I used to run my HDDs in soundproofed enclosures (a company was selling those back in the days) but of course it would make them overheat. So I'd cut a square hole in the HDD enclosure (and through the soundproofing foam inside the enclosure) and then I'd put a large but quiet fan on top of the HDD. This worked great, for years.

Having owned silent computers like the Commodore C64 / C128 and Amiga the switch to the early ultra noisy PC was particularly painful to me. So back when "silent PCs" weren't a thing I made my own: I'd run fans at 7 V instead of 12 (by using the 12 V and 5 V pins to create 7 V), I had my neighbor (electrical engineer) create me a device I'd put into all my PSUs that'd turn the PSU's fan off when the heat wasn't too high (back then this didn't exist: but I wanted one anyway so I had my neighbor "invent" one and I'd then replicate it in all my PSUs) and... When I found these HDD "quietening" enclosures, I ordered so many the company asked me if I wanted to become the official importer for the Benelux area : )

I'd have super quiet "panaflo" fans shipped to me from Japan and I'd replace all my PSU / CPU / tower fans with these quiet fans.

So basically I had quiet PCs before it was a thing.

Nowadays I just buy Be Quiet! PSUs / fans and a well insulated tower and I'm a happy camper. Things got way quieter : )

comment 5y ago · link · parent

Speaking of king / emperors: aren't these term referring to different sizes depending on the country?

For what it's worth I have a "2m x 2m". That's very big for many european countries: it's actually a bit complicated to find mattresses / sheets for such size (typically you need to order them and wait a bit), while if you go with the more standard "180cm x 200cm" you've got sheets and mattresses on display in many shops.

comment 5y ago · link · parent

> ... as of course the authors of these softwares could easily detect such "temporal inconsistencies"

Not easily at all. It was near impossible.

Without access to the Internet it was always impossible for, say, a software from 1999 from being able to tell it was ran in, say, 2005. I had shitloads of "Ghost" (before it became "Norton Ghost") images, ready, with a Windows installation at a specific date. I'd re-image an entire HDD (it was very fast back then when images were small and HDD even smaller, even if they were slow by today's standard) and set the clock of the PC. There was simply no way for a software to then detect we were in 2005 and not 1999.

Without Internet and without any file dated "in the future", there was simply no way to detect any inconsistency.

Back then users where in total control of the hardware and of the PC's clock. There was no way around it.

EDIT: I'm not talking about VMs btw, but running on bare metal, just set, in an undetectable way, at a date in the past.

comment 5y ago · link · parent

$140 billion yen, in TFA. That is big but it's "only" 1.3 billion USD if TFA is correct.

It's also not very clear: the headline on HN says "grew into a $140B titan" but then the sentence says "Keyence reported a record 141.78 billion yen first-half net profit Thursday".

I'm confused.

comment 5y ago · link · parent

> What problems would occur if we were just nat-ing everyone behind those 4 billion IPv4 addresses?

Even with NAT'ing we're running out of IPv4 addresses.

Now I NAT on IPv4 at home, even though my router/ISP supports IPv6. First thing I do on any Linux install at home is get rid of IPv6. I don't see where the problem is. I really don't see why my home machines should have an IPv6 IP: the outside world sees my router's IP and that's it. Now I'm certainly misunderstanding all the benefits and security that IPv6 would bring me at home but meanwhile I'll stay on IPv4 and I really don't see what the problem is either.

comment 5y ago · link · parent

It's like saying ripgrep won't ever replace grep... It's true but for many use cases (for example in many shell scripts) but there are much more people using ripgrep than just its creator.

exa is already several years old and has 15 K thousands stars on Github. Not to mention all the people using it that never bothered to give it a star.

comment 5y ago · link · parent

You can do both. In addition to these two methods I also have a print of that QR code in my car.

comment 5y ago · link · parent

> HN is a bit schizophrenic on this topic.

What if there was a way to send private message, in a decentralized manner, and where it's not even possible to tell if the recipient has actually read the message or not?

There are blockchains using ZK-proofs allowing to do that today. Not only it's decentralized so "fuck corporation surveillance/profiling" but it's also highly unlikely uncle sam and its offsprings can break the elliptic curves and ZK-cryptograhy in use by these blockchains, so "fuck state surveillance" too.

But then it's using the word "blockchain", so HN is pretty much against it.

And instead HN as a whole shall root for "secure" messengers that are leaking metadata like there's no tomorrow while explaining that they're the best thing since sliced bread "because they're easy to use".

Go figure.

comment 5y ago · link · parent

> I've physically seen many police walking around crowded areas with assault rifles in France and Italy.

I confirm in France. I've seen group of policemen (or army?) in the (very crowded) Paris subway stations with dogs and "uzi" weapons.

comment 5y ago · link · parent

> For books and similar long docs: ...

I've worked in the book publishing industry and I've typeset books both using QuarkXPress (now everybody moved on to InDesign) and LaTeX. Using Word to typeset a book is a major PITA. Nobody in the professional book publishing industry is using Word to typeset books (well, ok, maybe 0.1% of masochists out there).

Word is convenient to quickly edit crappy looking documents: it's a document editor. It's not a typesetting program.

comment 5y ago · link · parent

> "Tom, we're all really sorry we didn't become software engineers, I guess we'll all quit our jobs and go back to college," which (rightly) made me feel like an asshole.

The problem is that MS Word kinda require you to be a software engineer to be able to use it and produce a document which does not look like a ransom letter (and even then, it doesn't look great). Word, just like Excel, are extremely complex and complicated software.

Sure, they can be used in a "simple" manner, but god forbid regular users to select something by mistake then click on the wrong button (among the myriad of buttons around).

> I discovered LaTeX + Pandoc, and it created documents that I thought looked much nicer

About any document editor or typesetting program produces documents that are better looking than Word. It's not a thought.

comment 5y ago · link · parent

The first BTC usage I remember (before hearing that it was also used to buy drugs) being talked about was poker players using it to do "person to person" transfer between poker sites. Someone had money on PokerStars and you didn't but wanted some immediately. That person would send you $100 on PokerStars (using a "player to player" transfer) and you'd sent that person 200 BTC (back when BTC was at 50 cents). This was kinda common on poker forums between regulars (sadly I was too dumb to realize the value back then).

Sure it was gambling but it was neither black market nor money laundering.

P.S: an estimated 3% to 5% of the world's GDP is linked to criminal activities. There are hundreds of politicians in the Pandora papers. Money laundering predates cryptocurrencies by a very long time and it's a problem on a whole different scale.

comment 5y ago · link · parent

> You can avoid the risk of destruction by redundantly storing the secret.

Not disagreeing with you but then there are two places (or more) where the secret can be found and your funds stolen. As to having, in addition to that, a hardware wallet makes for yet another potential attack vector: is the hardware wallet unlocked by your fingerprint? Is the fingerprint reader secure? Is it protected by a PIN? How safe is your PIN? Is the HSM in the hardware wallet really unbreakable and really erasing everything after three tries and no attacker can bypass that?

comment 5y ago · link · parent

I don't have any gun but... There are invasive species throughout Europe like wild boards and hunters are doing a great job in saving people's garden and farmer's farms. In France alone there are 5 million people (out of 70) who have a hunting license and more than 1 million that are actively hunting.

comment 5y ago · link · parent

> ... people constantly forget about are motorcycles and the fact that many pedestrian deaths actually happen _outside_ of a city.

They also forget that pedestrian deaths do actually not happen on the highway.

comment 5y ago · link · parent

> so I have been genuinely surprised that there hasn't been any push for diet and exercise over the last 20 months

There's been no official push but there have been individuals whom, upon realizing people were dying due to their lungs clogging up and difficulties breathing, organized into online groups and started exercising a lot.

> Instead, all we see pushed are pills ...

It appeared very early on that there was a gigantic correlation between low vit-D levels and severe Covid-19 complications. Several scientific studies now confirmed this officially. I don't think it's know (yet?) if Vit-D supplementation works or not (it works to raise vit-D levels, but does it help when you then catch Covid-19?) but I don't find it crazy that people, like me, started taking Vit-D (+ K) supplementation.

> ... and shots,

ah yup, RNA shots. I was basically forced to get mines too (even if it's not totally mandatory they're pretty much rammed down your troath in the EU).

The worldwide epidemiological study as to what the consequences of this new kind of vaccine are is ongoing...

Stay tuned ; )

comment 5y ago · link · parent

> Pedestrian fatalities have increased by over 50% since 2010.

2010 in the US was 11.4 death per 100 K population. 2019 is 11.9 / 100 K. So it went a bit up but overall the curve seems to be going down.

> Might the regulatory capture of the car and Highway industries

Highway deaths in, say, France aren't even 10% of the secondary roads + cities deaths. Not sure what the highway has to do with all this.

comment 5y ago · link · parent

> The key here from a government standpoint is Obesity impacts the life of the obese person only.

Not at all. There's a cost to society as a whole and an important cost: it blocks beds in the hospitals, it blocks doctors and an obese person, I take it, does consume more food etc. All these have a cost on society as a whole. Now I'm not saying people shouldn't have a right to smoke, drink alcohol or be obese: that some officials are so dumb they believe the cost of obesity is only to the obese person, I don't doubt it one second. But they're totally wrong.

There is an obesity epidemic both in the US and in Europe. The number of obese kids in Europe keeps going up and up. In the mediterannean countries there are up to 21% of the kids of 6 to 9 years that are already obese (Spain / Italy / Greece / Chyprus etc. When I go to Spain it really shows. It's scary. And it's scarier to see what the parents puts in their basket at the grocery store).

If you then take into account the fact that something like 92% of the obese kids stay obese their entire life, you understand why it's a very serious public health matter.

And if these kids are obese I do believe society, as a whole, has a responsibility. They're being fed junk and hardly anyone cares.

Cars are getting safer by the day. The obesity problem is getting worse by the day.

It's apple to oranges, but if priorities have to be set I know where I'd set them.

comment 5y ago · link · parent

What is amazing to me is that they did scale to 400 million monthly active users with less than 50 engineers... In 2014.

That is: on hardware from seven years ago and older. Which is an eternity in tech. Since then we've seen incredible new hardware come out (EPYC 2 in 2018 for example).

One can wonder: up to how many MAU could a service scale today, on today's hardware, with a small team? And what about tomorrow's hardware...

This is fascinating.

comment 5y ago · link · parent

They can also decide to hardly ever come to the city again. And that is lost revenue for the city.

It's hard to have your cake and it eat too.

comment 5y ago · link · parent

I use ripgrep and more typically rigrep from within Emacs, thanks to "counsel-rg". I configured counsel-rg (as suggested) to not display very long matching lines (for Emacs doesn't like lines that are too long).

It is really very fast.

comment 5y ago · link · parent

> Apart from trying not to write stupid code, I don't even optimize anymore, because coupled with ridiculously fast servers (bare-metal hardware from Hetzner in my case), it's a waste of time.

Inquiring mind wants to know: how do you deploy your Clojure (Script) webapp on your bare server? Just an "uber war" that you drop there? (bare servers at OVH here btw but I know Hetzner is good too)

comment 5y ago · link · parent

I never really thought about six-digits years (I don't really understand what is meant by "by mutual agreement"): is this something in use today and by whom? Who needs six-digits years and only six digit years? I mean: if you're projecting stuff in the future (like, say, continental drift), you'll be stuff at year 99999 and have the exact same problem of wrapping around back to zero when you'd need year 1000000 no?

Or is it "infinite": as in, the spec allows for 8-digits years, 10, etc.?

comment 5y ago · link · parent

How that's a good point: especially that if you DDoS while asking for a ransom, you take the risk that your botnets gets taken down. While if you "discretly" mine CPU (and/or GPU?) mineable cryptocurrencies, you kinda fly under the radar.

comment 5y ago · link · parent

We still hear about DDoS attacks like this once in a while but it seems it's not anywhere near as common as it used to be. What happened? It looks like the bad guys are really having more and more trouble mounting succesful DDoS: how comes? It also looks like, in despair, they're targetting smaller fishes. Why? Smaller botnets? Cloudflare and OVH and the likes just being too good at absorbing everything and anything you can throw at them? Simple firewall rules getting rid of 99% of the crap? What's the reason it's not as prevalent as it used to be?

comment 5y ago · link · parent

What shocks me way more than the rich individuals and family offices having setups allowing them to, legally, pay less taxes is the sheer amount of politicians caught with hidden assets. Assets that were very likely misappropriation of taxpayers money and proceeds from other criminal activities. That and assets from families linked to drug dealing and whatnots.

For example one of the most prominent leftist french politicians, ex- director of the IMF I think, was caught the hand in the cookie jar with tens of millions stashed away, while years ago he was publicly saying that tax evasion should be fought.

We're talking hundreds of politicians.

It's estimated 3% to 5% of the world's GDP is linked to criminal activites: maybe we should the priorities right, and focus on politicians-thieves and drug dealers before hating on those among the rich who legally put their money where they think it's safer? (many in these leaks have done absolutely nothing wrong and it would be nice if everything was not conflated)

Money laundering is illegal. Stealing tax payers money and hiding it is illegal. Selling drugs is illegal. Legally evading taxes is, in many cases, fully legal (tax evasion / tax avoidance: whatever you call it, nothing forces you to pay the most: if you find a legal way to pay less, more power to you as long as you're not a criminal).

1
147148149
162