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

> Did you remove all of these?

So if you can't protect versus all the threats, you may as well not do anything?

comment 3y ago · link · parent

> The best practice is not to allow passwords for root login.

My sshd is configured to not allow passwords logins at all: it's U2F/Yubikey only.

comment 3y ago · link · parent

I see that reasoning very often but I don't agree with it (note that I'm not saying a local exploit is great).

But first I'll start with a question: why don't you (and everybody else for that matter), run everything as root?

Why don't we all search our entire disks for every single executable and then execute chmod 777 on all of them? I mean: that'd make for a good XKCD...

If the idea is that it's game over anyway if there's a local exploit, we may as well just run everything as root right? Why even bother with sudo at all?

> Out of curiosity: What sensitive things does the root account protect on your workstation?

I'm one of those person using several user accounts on my own system. For example my professional account is separated from my personal account (and I do use both simultaneously). One of my browsers (I run several browsers) is in a throwaway user account: clean slate at every launch. Why not?

And a local exploit compromising one user account requires a second exploit to access what's in the other users accounts.

> The only thing root access would give somebody on my machine is to uninstall some random packages or corrupt my install.

Root access could allow the attacker to install a persistent backdoor which would be very hard to detect. Installing a persistent backdoor that can evade detection is incredibly harder to do if all you have is a local exploit.

I take a system on which I have more chances to detect that an exploit happened --even if the exploit did already happen-- any day over one with less chances to detect that an exploit happened.

And even if, for me, a local exploit means it may be too late for some stuff (although having U2F/webauthn and soon passkeys in many important places should limit damages), having a non-compromised root may allow me to detect a local exploit and share my findings with the community. Which has a lot of value too.

comment 3y ago · link · parent

Most of them by very far rely on sudo. I've got a system without sudo. The only way to execute something as root on my system is to log in, using a U2F security key, from a second system (typically a small laptop sitting next to my workstation). That second system is connected to my workstation on a dedicated LAN only used by these two machines. Firewalls on both (for example my workstation only allow SSH in from that one LAN and only from the IP of my laptop on that LAN etc.). The laptop has no Internet access, WiFi disabled (modules prevented from loading, firewall preventing network access, etc.). The laptop's sole purpose is to run command as root on the workstation: it's its sole purpose.

The downside is that I allow "root SSH", contrarily to every single best practice out there. The upside... Well. Is that there's no "sudo" installed on my workstation.

I think no sudo even installed on the machine beats the "never allow root SSH" mantra but YMMV.

(to set up the system I install the system offline, from a Debian installation medium whose checksum and signature I've verified, do my thing as root on the workstation, set up the login using U2F from the laptop, then I "lock myself out" from login as root directly at the workstation by entering a password so long I'll never enter it, something like "neverenterthisrootpasswordanymoreusethelaptopu2fkeyinstead#$bey8rUtIopTY6"*. A bit of pain to enter twice but then I'm good to go)

comment 3y ago · link · parent

> French lawmakers have given French police the legal authority to spy on suspects by remotely activating cameras, microphones, and GPS location functionality on a person’s smartphone and other connected devices

And, technically, how are they going to do that? Oh, wait, maybe the tech already exists, is already operational and is already used by other nation states? It may be a "feature" of all our Android and iOS smartphones.

BTW if it's not I don't know how France actually plans to implement that.

comment 3y ago · link · parent

> please don't say just hello in chat

In a great many chat (as in one-to-many group chat as in, say, IRC -- where the 'C' stands for "chat" btw) it's perfectly okay when people join and start with just "hello".

I think TFA meant to write: "please don't say just hello in PMs to coworkers".

Not all chats revolves around leveraging synergies to maximize shareholders value while at work.

comment 3y ago · link · parent

And let's not forget that Spain is already taxing the rich like crazy. As in: insane crazy. In quite some Spanish regions (not in Madrid, where the tax exists technically but is reduced by 100% so far) there's a yearly tax on wealth that can go as high as 3.5% of your entire net worth. To be paid. Yearly.

You're worth more than 1.3m? Anything above that is already taxed at 1.3 to 1.6% yearly. You're really rich? Be ready to gift 3.5% of your wealth yearly to the spanish state.

There's one million millionaire in Spain, already taxed like mad. I don't know if they could be taxed even more to give that 20K bonus.

One million millionaire to give 20 K to how many million of people? There are, what, about one million people turning 18 each year in Spain? (quick ballpark computation, one official source seems to say its closer to 500 K people turning 18 each year).

So let's take 500 K people turning 18 each year and one million millionaire. This means taking 10 K EUR, yearly, from each millionaire, to hand over to the 18 years old.

Sounds a bit unrealistic to me but then I'm not a politician begging for votes in the upcoming spanish elections.

comment 3y ago · link · parent

> My only wish is that shellcheck had a directive to stop yelling at me starting at a certain line.

But it does no? Shellcheck can be configured to ignore SC by putting a "disable" directive in a config file or even as a comment in your Bash source file. It would work if it's always the same annoying warning / SCxxx message you get.

comment 3y ago · link · parent

Oh!? Even though GP is being a bit pedantic I thought he was correct. Why is "a HTTP server" cromulent here? Do acronyms enjoy special rules? (FWIW english is not my native language)

comment 3y ago · link · parent

> nor is it a literal mile.

The cost problem of the last mile is not for the 2 meters between the fiber router in the home and the living room. The issue with the "last mile" is that it used to be excessively expensive to lay fiber everywhere on the, literally, last mile outside people's home.

I could plug a network card with an SFP port and have actual "fiber to the desktop" for the last three meters at my place but I don't. I'm not sure that these three meters where I run ethernet are called a "last mile" (off by a factor of 530x calling 3 meters compared to a mile) ad mean I don't have FTTH or that the last mile ain't fiber.

> ... most residential bandwidth increasingly comes from wireless techs.

What good does it make to laptops and phones using WiFi if the router is doing 40 Mbps max over DSL? It's once you bump that DSL link to FTTH that suddenly all these wireless devices can enjoy much faster speeds. In all the countries I've lived in people at home used WiFi, even from their phone, instead of 4G because 4G means lots of $$$ / EUR.

I think you're underestimating the gigantic speed boost many people are enjoying thanks to fiber (and not thanks to 4G) now that they're having FTTH.

comment 3y ago · link · parent

Indeed. I had FTTH in Spain, in Andorra 100% of the (tiny) country has FTTH, I'm in the middle of absolutely nowhere in France atm: rural/seaside (about 45 mins to an hour drive to the closest highway) and yet I've got FTTH.

And at my new place in Luxemburg I've got FTTH too.

Fiber to the home is becoming incredibly common in many countries.

My brother had fiber to the home in 2003 already... In Japan (Tokyo).

comment 3y ago · link · parent

This. My car (Porsche Panamera from 2013) runs QNX for its nav+soundsytem. I can stream from bluetooth or use a jack plug but I don't bother: the car's got its own storage for music and, notably, the system takes both .mp3 and .wav files, but not .flac files. So at home I play .flac files but for the car I convert my music to 320 kbps .mp3 (I think I can put about 5000 320 kbps .mp3 in the car). In 2013 Porsche was still putting HDD and not SSD in their cars: some people do the upgrade themselves to a SSD but in my case that would void my extended manufacturer warranty (which I plan to extend up until 15 years / 200 000 km).

Since then, for newer models, the manufacturer has moved the nav+infotainment to Apple's iOS CarPlay. I don't know if QNX is still used for other stuff (like reporting the oil level / warning messages etc.).

comment 3y ago · link · parent

"an MP3 is not a song. It is a numerical representation of a song algorithmically treated to make you ears think you're listening to music but you're not."

This is spot on. And the lie kept being repeatedly sold by tech bros and streaming service who need to lower their cost as much as possible and are, in 2023, still unable to stream lossless music to their audience without losing too much money.

And the tech bros, for the love of tech, keep explaining you how "you cannot tell the difference so you may as well listen to the lossy song instead of the lossless one". But why? Fuck no. Just no. Why the heck would I listen to a 320 kbps mp3 when I can have something simpler and unarguably more correct?

Do I want to go to the Le Louvre museum and see a color print of Mona Lisa, made from a .jpg at 97% quality "because from 1 meter nobody can tell the difference"? For the love of tricking human's eye just as mp3 can trick human's ears? Just screw that mindset of disrespecting humans.

Now a case could be made that "CD audio" ain't "human" either but the CD audio format was created in 1979 (?), then commercialized in the early 80s. This was way before the real tech abuse started. It's an incredibly well conceived format and it's all I need.

"the original kind of tech bros science nerd need to separate from humanity and nature"

They are tricksters. They want to trick my eyes and my ears for the love of Rube-Goldberg algorithms and the complexity deity. They want to trick me behaviorally. They need to sell me ads. They need to track me.

I'm off ranting, I'll now go buy a few audio CDs. Early 80s tech, the best one.

comment 3y ago · link · parent

"Fluent interfaces" are nothing new and can be (and are in some projects) used in Java. When done correctly code completion works fine.

As to whether they're worth the addition trouble or not, I sure as heck don't know.

But it's definitely nothing out of the ordinary.

    blobs = createBlob()
        .withinRange(min,max)
        .excluding(a,b,c)
        .asArray()
There are variations, for example where only the last call actually creates, say, a Blob array and where every intermediate call produces something only allowing the next method to be called, so that the IDE autocompletes nearly everything for you and where you won't be able to compile if you miss a single call.

Don't know if the following link is any good but "fluent interfaces" are 15 years old stuff at least by now I'd say:

https://java-design-patterns.com/patterns/fluentinterface/#e...

comment 3y ago · link · parent

> I can't figure out why I'd buy an exotic car

But the Tesla Plaid ain't pretending to go after exotic supercars. It's pretending to be a luxury car.

A Porsche Panamera however starts at $97 K and you already get a very nice one for the $135 K the Plaid costs. And it's actually a luxury car: it's in another league of quietness (wind noise dominates on the highway and the Panamera is simply much better sound insulated), audio (try a Burmester + double-glazzed windows in a Panamera: it's 1000 Watts and 18 speakers of bliss), way more luxurious, way more comfortable, handles better, gives a much better feedback through the steering wheel, has higher quality material all over the interior, etc.

That's my issue with the Model S: it's a very expensive car and you've got not just a bit but way more luxurious cars in that price range.

Now there's the issue of TCO, image (some don't want to be seen in a Porsche but have no issue driving a $135 K Plaid for example), gasoline vs EV, etc.

All I'm saying is $135 K ain't cheap and for that amount you have actual luxury cars that do drive superbly available.

> I'll never go back

I'll never go back either ; )

comment 3y ago · link · parent

> Java is only slow to start the VM

And it's not even that slow anymore compared to, say, starting the JVM in 2010.

Some numbers for those curious...

On modern hardware launching the JVM to run a program immediately exiting takes less than 100 ms (so does starting Emacs complete with its GUI and running some elisp code exiting Emacs: 80 ms on my Ryzen 7000 series including reading from the M.2 NVMe PCIe 4.0 x4 SSD).

It's once you start loading lots of classes that JVM startup time can be slow.

One example would be a Clojure program doing nothing besides exiting: thousands of Java classes being used and you get into 1.2 seconds territory to do nothing. 12x slower than a Java program doing nothing.

As a sidenote for both Java and Clojure there are now ways to reduce startup time, like using GraalVM (which, for example, Babashka, a natively compiled Clojure interpreter, making Clojure startup so fast it can be used for scripts).

> The JVM is really really good because at one point or another they had basically every luminary in the field working on it.

I agree. The JVM is an impressive piece of machinery and it'll even give you, say, an AIOOBE (ArrayIndexOutOfBoungsException) instead of an exploit if you fuck up.

comment 3y ago · link · parent

> It also fudges how the timestamps appear on the page.

Oh that's interesting, thanks for the explanation! (and a bit weird too but not in a bad way)

comment 3y ago · link · parent

That's weird, I see the same (and I read that thread a few days ago). I see the top comment as from 4 hours ago but then in the user's history it's from 4 days ago.

I'm confused.

comment 3y ago · link · parent

Did the dude bring GH down at some point?

comment 3y ago · link · parent

> ... 95F (35C) at 100% humidity

Last summer in Europe there's been 38C for weeks in several places/countries. I was on the Atlantic side (for once), not even much south, and had 38C. We were cycling daily (without electric assistance) to the beach, under the sun, and had zero AC at home. It was hot but nobody there died. I used my car once while the rest of the group was cycling because I wanted my car's AC and music but that's it. It was very hard to enter a water at 17C (Atlantic side, huge tides, very cold water there) while the temperature was 38C outside but besides that meh.

Is "100% humidity" a value that even make sense? Spain regularly gets 40C+. I lived in Spain about five months a year for five years straight. 35C is really common there.

So I don't get it: "You can die at 28C with 100% humidity". OK, I don't dispute that.

But where do you get 100% humidity?

For example Morocco / Marrakesh is 41C today. It's pretty normal there.

comment 3y ago · link · parent

Not all anarchists are ultra-leftists bent on controlling thoughts through the control of speech. Some even say anarchism is about individual freedom above everything else, including above "minority" groups.

comment 3y ago · link · parent

You connect to IB's TWS API... If you execute your trade there only, wouldn't it be an option to fetch the price in real-time from the IB API and not having to use polygon.io at all?

I have no idea: does IB send the price feed in real time? (they certainly send the data in real-time to TWS as it constantly updates right? But is the order book available through their API?)

Basically and even though I know this was published on polygon.io's blog, would that work by only using IB / TWS's API?

comment 3y ago · link · parent

> And it's not linear wear per pound, either.

If it's not linear then the difference between a 4000 lbs car vs a 3000 lbs one is nothing compared to the damage done by a loaded 80 000 lbs truck.

What I notice, on european highways: it's always the rightmost lane that is deformed. The leftmost lane is never deformed. The aquaplanning risks due to water present in two bands on the lane is always on the rightmost lane. Always, always, always.

Why? Because the rightmost lane is the one trucks do use.

Where I live atm, in the middle of nowhere, there are two things deforming the road: heavy vehicles (I'm not talking about 4000 lbs cars here but tractors / trucks) and... Tree roots. Most of the patches made on the road are due to tree roots lifting the road's concrete.

comment 3y ago · link · parent

> HN user experience in EU is "meh"

It's not: it's super quick, the fastest website I check on a daily basis, by very far. If only all the web could be like this!

Which is user tekmol 's point: "Hacker News is one of the most responsive websites I know. And it is run on a single server somewhere in the USA. While I am in Europe."

HN is great in the EU. If most of the pageloading is just the roundtrip, you've already won, no matter if your users are on the same continent as your unique server or not.

comment 3y ago · link · parent

My favorite is not a building but a furniture: the "LC4" lounge chair. Technically not by Le Corbusier but by someone working for him:

https://en.wikipedia.org/wiki/Chaise_Longue_(Le_Corbusier)

There are many replicas and also "continuation" ones (IIUC modern ones but sold by those having the rights to the model). It's really comfy.

The "LC3" is seen in many films and places really (but to me not very practical):

https://en.wikipedia.org/wiki/Grand_Confort#/media/File:Loun...

So Le Corbusier for furnitures: sure... For buildings: I don't dig the style, way too brutalist too my taste.

comment 3y ago · link · parent

> My Linux is snappy, but I also run the most minimal of things: I run the Awesome Window Manager with no animations.

Same: a very lean Linux install with the Awesome WM, now running on a 7700X (NVMe PCIe 4.0 x4 SSD in my case). I also use one of the keyboard that comes stock with the lowest latency (and I bumped its polling rate because why not).

This feels not just a bit but very snappy.

comment 3y ago · link · parent

> "élitist libertarians"

Why the e acute? "élitist" (used twice in TFA) is not a word in french. The word "élitiste", with an 'e' at the end, exists though. The english word is "elitist" if you ask me.

comment 3y ago · link · parent

> “I'm at that stage in life where I stay out of discussions. Even if you say 1+1=5, you're right - have fun." - Keanu Reeves.

Nice one. I say something more aggressive like: "excuse me, I go back down to earth talking with doctors saving patients' lives and engineers creating the planes in which you fly!".

comment 3y ago · link · parent

They do look quite similar to the "Futuro" or "Futuro pod" from the late 60s:

https://en.wikipedia.org/wiki/Futuro

comment 3y ago · link · parent

> Reggae is so deeply & necessarily intertwined with the religion.

> The forms simply don't make sense when you separate them from their religious context.

As a big reggae fan I totally disagree.

Although there's indeed a lot of roots reggae talking about Selassie and religion, there's also a huge lot of reggae that's not about that. There's even, to me, lots of actual roots reggae that is not about religion but about poor people's struggle.

Lots of reggae is also purely about ganga / smoking (Peter Tosh "Legalize it").

Stuff I listen to... Max Romeo's "Chase the Devil" (and many other Max Romeo songs), Ranking Dread "Superstar" (where he sings about... famous reggae singers), many reggae love songs (Marcia Griffiths "Hold me tight"), John Holt "Police in Helicopter", Horace Andy "Skylarking".

One of my all time favorite: Zap Pow "This is Reggae music". No religion. No poor people's struggle. Just pure reggae sound, with lyrics about... Reggae itself (it's an amazing one, check it out).

There's also more recent anti-consumerist reggae, like Mike Love "Permanent Holidays" (link because this is sooo good):

https://youtu.be/fU7hZ3smj0g

So yeah big disagree. Not all reggae is about religion, far from it.

1
115116117
163