HNHacker News
TopNewBestAskShowJobs

somat

6,340 karma · joined December 30, 2021

Runs the outband public shell accounts at https://www.public.outband.net
submissionscomments
somat··on Why American ambulance rides are so expensive
It may also be telling to figure out why no startup is offering $400 ambulance rides and dominating on volume.
somat··on OpenBSD has a use-after-free allowing local privilege escalation to root
Unbound can do authoritative dns. It is a bit clunky so usually what you do is have NSD for the authoritative parts and unbound for the recursive parts. but unbound has local-zone: stub-zone: forward-zone: auth-zone: directives. I am not the most sophisticated dns admin but I am fairly sure that just unbound by itself can do almost any dns party trick you care to throw at it.
somat··on OpenBSD has a use-after-free allowing local privilege escalation to root
And as a counter example here you have openbsd "we are going to install a bgp daemon on every single device, because you never know when you may need one"

I am not complaining, I like the feeling that I could single handedly rebuild the internet using only what is found in an openbsd base install. But wow, considering the size there is a lot in there. They definitely punch above their weight.

somat··on OpenBSD has a use-after-free allowing local privilege escalation to root
That does not match my experience with obsd. It is not so much minimalism as they are not afraid to reinvent the wheel. A obsd install is full of services, more than most linux installs I have seen.

For example you can imagine my disappointment when I discovered what a pain in the ass it is to get a pflow producer working on linux after doing the first one on openbsd.

somat··on Decoding the obfuscated bash script on a Uniqlo t-shirt
Has anyone ever made a monospace font with dynamic kerning? Which is a silly thing I never thought of until I read the above comment. This sounds nonsensical at first glance(and it may be) but hear me out.

We use monospace fonts for a reason, they stack in a grid nicely. But within the confines of that grid there is room to shift a character left or right a bit which may lead to a nicer to read monospace. (it is equally likely to lead to a hideous mess, every time a letter would shift left it would leave a larger space right)

somat··on Microsoft fire idTech team at Id software
In the devils advocate position. The union is a club you join with dues paid every month, in the sort of vague hope this will get you greater bargaining power with the employer. And it mostly works but there are downsides. If there is any meritocracy left in the corporation it is sucked out, replaced by seniority, that is, the only people that get ahead are those too stupid to leave. You have to maintain a bunch of useless leeches in the union administration. and when the company does poorly it tends to implode violently under the labor burden rather than be able to scale down. (everybody loses their job rather than just a few)
somat··on OpenWrt One – Open Hardware Router
Did WRT mean anything? Wireless RouTer?
somat··on Electric anti-aircraft interceptor drone breaks world air speed record at 434mph
But why?? We have had rocket powered anti-aircraft interceptor drones that go at mach 3 since 1955.
somat··on Installing A/UX 1.1 like it's the 90s
It is sort of the same for DOS. When you start digging around in the source you realize it is only really half an operating system and a surprising amount is done in the BIOS.
somat··on Optimizing an algorithm that's quadratic by design
With regards to the user agent matching it reminds me of the time I loaded the full useragent database(the same data php get_browser() uses) into postgres and landed my first 3+ hour query.

  from log join ua_data on log.useragent ~ ua_data.match_exp
It was intractable to indexing (gin can almost do it. using like instead of ~ but gin only works on pure prefix or suffix matches) so I moved on to better things.
somat··on Weird Al Yankovic Pulled Out of AI Ad Deal: 'I Can't Be the Poster Boy for AI'
Generated content has a real duality to it. I would describe it as It feels great to use. It feels terrible to have it used on you.

Very few people appear happy to receive generated content. It is fun to make however.

We as a society will probably figure this out(and look back fondly on the days of real handcrafted artisanal writing) but for now there is a lot of tension between the two sides.

I know I loose all interest in a thing when I learn it is generated.

somat··on How We Made IPFS Content Publishing 10x Faster
Is that not the same with anything published to the internet. For example I could keep your comment published and available for as long as I had interest in doing so despite any effort you may take to remove it from HN. I mean I guess tech like ipfs and bittorrent try to automate this process(keeping something on the internet as long as there is interest) but you let something out on the internet it could stay there a long while. Or it could go poof and disappear, it depends on how much interest there is in the subject.
somat··on Microsoft reveals why Windows 11 keeps saying a file is in use after closing app
In windows the shadow copy facility is used to sneak files around when they are open. I remember using a utility called "hobocopy" (a sort of pun on the more famous robocopy) that provided a command line user interface around shadow copy to let you move locked files.

In my specific case it was to save youtube videos when it was still a flash player. the video would be cached in a file but that file would be inaccessible because it was "open" hobocopy to the rescue. On linux it would make then delete the file depending on the open file descriptor to keep it around. The way to save it was to relink another name onto the inode. I can't quite remember but on linux I think you could use a /proc entry to get that inode and on obsd I would use fstat to find it and fsdb to make the relink.

As a unix aficionado I despise windows open file locking with a passion. Sure I understand it is probably more correct, An open file could be in any sort of corrupted state the only safe thing to do is default to single access and locking. But it is far more respectful to the user to just let them grab it whenever they want to. corruption be dammed.

somat··on Parse, Don't Validate – In a Language That Doesn't Want You To
Javascript does have structs, it calls them objects.

If I parsed an emailAddress the thing that came out it would look like {'domain':'example.com', 'user':'john-doe'} or emailaddr.domain emailaddr.user and a emailaddr.address method if you like that form. Even if what I parsed ended up as a single string-like field, I would still name that field. emailaddr.address

Salutes for the bit on hiding the constructor, that makes a lot of sense.

It probably does not help anything that in my one attempt at making a javascript web application I did not bother trying to understand how javascript likes it's objects and just forced a python looking model onto it. If any of the web development team saw my code I would definitely get laughed out of the club.

somat··on Parse, Don't Validate – In a Language That Doesn't Want You To
"TypeScript is structurally typed, which means two types with the same shape are the same type. string is string is string"

I don't speak typescript so am probably missing something obvious. but. why would you parse an email(or anything really) into a string? (or string equivalent) When parsed it will end up as a specific email object, that is, something closer to a C struct. What is the articles dance doing?

somat··on How do you keep Web MIDI from crashing a 1983 synthesizer?
I have only messed with midi virtually so don't know much beyond the bit packing. But when you go to actual hardware and cables is there not a rigid speed it should be running at. 30Kbaud or something. That is, why is the interface running too fast and crashing the synth? the synth(no matter how old and limited) should handle the specified 30Kbaud stream all day long.
somat··on Ancient Tablets Show Markets Worked 4k Years Before Economists Explained Them
Isn't this the underlying phenomena as to why free markets outperform managed markets. Because theoretically the controlled market can be much more efficient than the free market, you know, because people don't have to fight each other for their share of the market all the time. But they never are. Why? Because nobody has to understand the market for it to work, everybody just pushes and the market molds itself into the form it needs. Where a controlled market operates under the illusion that it can be understood.
somat··on PlayStation Is Deleting 551 Movies from Customers' Accounts
it's all just silly semantics but even under the highly specific definition in the article I would say water is wet.

the articles definition "a liquid’s ability to maintain contact with a solid surface" Water has this property therefor water is wet.

On the topic of silly semantics, science as a discipline has the tendency to paint itself into linguistic paradoxes where the words does not mean what it means.

An example is "bug" where there is a (sighs) true bug(a very specific type of insect) But the one that really bothers me is Stonehenge. Stonehenge is the origin of the term, it literally means hanging stone. but... they started cataloging other similar circle-of-stone type monuments and calling them henges, a henge got defined to be more specifically a circle of stones with an inner ditch. But Stonehenge has an outer ditch.... So Stonehenge is not a henge... (Sighs again).

somat··on OpenTTD 16.0-Beta1
Simutrans?

Half joking because if you are really into TTD The Simutrans interface feels terible(It looks like TTD but does not feel like TTD, this is often why photoshop people hate the gimp so much) but...

I started with simutrans, and have a hard time with ttd. Their systems disgust me in a way that they probably should not but it is that same bugbear, it looks like simutrans but does not feel like simutrans.

If anyone does try it out, beware pak128. The paks are more like mods that change the goods and price ratios rather than the mere graphics updates that their name would suggest. As someone who plays the hell out of pak64 I can't make a functioning network in pak128. I almost suspect it is broken. The price ratios just never work out. pak192comic however, is easy, fun and looks good.

https://www.simutrans.com it is also free on steam, probably the easiest way to play.

If I had to describe the difference, it is that simutrans tries a little harder with it's systems, it take a little more care to make a functioning network in simutrans. Factories have specific destinations and storage sizes. for example iron ore to steel mill will jam full if you fail to deliver the steel to the car factory and no steel will be made if you fail to deliver the coal it needs. So freight network revenue is fragile until the entire chain is complete. Passenger service is tricky because the passengers want to go somewhere(exactwhere is not specified, you have to treat it statistically). If your network does not go there they won't take your trains. So the ideal is to have service everywhere, but you you have to start small and small pax networks make no money, thus why it is tricky. The money is made on the fast long distance routes, and you take a loss on the slow urban routes just to make sure you have their destination/origin covered.

somat··on WordStar: A Writer's Word Processor (1996)
After reviewing a few options I think "Just print it out" is still the best choice for long term archival. The density is not high however the hardware requirements being just one mark 1 eyeball(hardware that self replicates and has been stable for millions of years) makes it the clear winner in almost every case.
somat··on PlayStation Is Deleting 551 Movies from Customers' Accounts
copyright infringement is not theft, it is also not piracy.

Piracy is a real crime, I am tempted to describe it as theft of goods under transport. But it is probably much more complex than that. It also shares many similarities with organized crime(a company of men decide to ignore the law).

Anyway you slice it, people probably just want the crime to sound(worse/cooler) than it really is. It always sorts of bugs me to equate one of the worst crimes to one of the least. Might as well call it "software rape" at that point. And that is probably closer to the actual crime than piracy.

somat··on PlayStation Is Deleting 551 Movies from Customers' Accounts
There is a good epigram about DRM that goes something like

"Asking a computer to not copy things is like asking water to not be wet."

somat··on A US military exercise to launch a satellite on short notice
Here is a good video on the swift rescue mission.

https://www.youtube.com/watch?v=Up0LNTMPnjI Pegasus to the Rescue: 'The Edge of Feasibility' (Alexander the ok)

somat··on There are a few things that I look back on as my mistakes in the early days
It is also a case of different focus. in retorspect Id had a rather narrow focus. They made solid top tech engines and their games were fun. But very simple. The build engine and later the unreal engine the focus was more on having more fleshed out systems for the game makers to take advantage of. Id's engines feel quite sterile by comparison.
somat··on Windows NT for GameCube/Wii
Does reactos even target powerpc?

Update: no, the answer is no.

It may be possible to port it to other architectures but the only build targets are i386 and amd64. I suspect a powerpc build would be a huge messy project.

somat··on Steam Machine launches today
For bulk shippers the USPS will penalize you if you have... well it was not bad addresses but non-standard addresses. The mail order company I worked for a few years ago put more effort than I expected to normalize and verify addresses met USPS standards. So I guess the penalty made it worth it.
somat··on DHL Set to Transport Goods on New Wind-Powered Cargo Ships
What if we put a large wind turbine on a ship? A sort of modern set of sails if you will.

A mid sized cargo ship has a 50_000Kw engine. A mid sized offshore wind turbine makes 1_000_000Kw. So depending on which way the wind is blowing it could work. Put a diesel electric drive and a full sized engine then use the wind turbine to see how much it could reduce fuel use. I was even having fun dreaming about the incidentals. how hard it would be to build a folding/quick assembly mechanism for the turbine to make harbor/bridge/crane access problems go away. could we duel purpose the wind turbine boom as a crane boom. Would a vertical turbine make sense?

While reading up on wind turbines I ran across the depressing story of the small ferry Hornblower Hybrid. A lot of hype on how environmentally friendly it was in 2008 when it was retrofitted with two vertical turbines. But my first though was "those turbines look awful small" and they are, the best they could do is power the lights not the boat itself. The boat itself was retro fitted in 2024 and lost it's electric drive. https://en.wikipedia.org/wiki/Hornblower_Hybrid

I bet even if it would work from an energy point of view, the extra complexity of the system would make it more expensive than a straight diesel ship from an operations and maintenance point of view.

somat··on Did my old job only exist because of fraud?
That's the paradox that causes the problem, perhaps paradox is not the correct term, conflicting view points?.

From above(the manager of the program) the job is to budget the funds thriftily and fairly, each project getting the amount it needs.

From below(the team working on the project) this feels like you are punished if you are able to save money and rewarded when you waste money.

I suspect this is probably the major problem with having a more command orientated economy. While it should be fairer(free market economies are notoriously unfair). The inversion in incentive hurts performance.

somat··on The Flat Curve Society
I think that the open source systems being behind is sort of the point, they are the baseline. A paid proprietary system must be better than this. An example.

If you want me to pay for your compiler it must be that much better than the compiler I can get for free that allows me much more freedom of agency in how I use it, if it is not I am going to use the free compiler. repeat for operating systems, word processors, databases and now LLM's

somat··on Did my old job only exist because of fraud?
Sometimes(most of the time?) that is the only way to get a pay bump.
← PreviousPage 9 of 34Next →