HNHacker News
TopNewBestAskShowJobs

masto

2,119 karma · joined December 13, 2010

Spent a decade in big tech. I'm trying to be better.
submissionscomments
masto··on Serious flaws in SQL (1990)
I spent a past life in a world where it was deemed necessary to perform this kind of interactive database surgery, and I used two techniques to try to mitigate the risk: I had my psql client set to disable autocommit (some people fear this because of leaving locks around, but you pick your poison), and my default user didn't have write access. Neither are perfect, but I ended up not being the person who accidentally deleted a whole table because, as they had explained to me with an annoying "I'm so macho" attitude, they always typed the semicolon first.
masto··on ESPHome
ESPHome is a good start, as it provides a great framework for layering components together. For example, you could assemble what you want out of:

* The display component that handles drawing into a grid of pixels (https://esphome.io/components/display/)

* The text renderer

* addressable_light platform (https://esphome.io/components/display/addressable_light) to create a display matrix on top of an addressable LED driver (https://esphome.io/components/light/neopixelbus)

* An inexpensive 8x32 LED panel (https://www.google.com/search?q=8x32+ws2812b)

* You can make multiples of these, or chain the panels together, for more space

Of course, rather than reinventing any wheels, you can follow guides like https://community.home-assistant.io/t/led-matrix-with-esphom...

There's not a lot of soldering needed, especially if you go the route of repurposing existing hardware like an Ulanzi. It's mostly about making the right data connections and providing the right power.

masto··on Facebook users say 'amen' to bizarre AI-generated images of Jesus
I have friends and relatives on Facebook who repost not these Jesus things, but other categories of similar AI-generated garbage. The ones I've seen the most of are fake houses - elaborate log cabins in the woods with massive swimming pools that melt into the wall if you look too closely, and recently a lot of fake eclipse photos from my more scientifically-minded but not-too-critical-thinking friends.

Like the ones described in this article, they come from pages that churn them out, and they get tens or hundreds of thousands of comments, likes, and reposts. For a while I'd scroll through them looking to see if anybody was saying anything other than "WOW!!", and you'd get the occasional "ur so stupd, this is AI" followed by a bunch of people saying "who cares if it's real or not", etc. I guess there's money somewhere in engagement hacking? I followed one to a web site that claimed to be a design company, but it was just post after post of machine-generated impossible objects, so I don't quite see where any of this is meant to go. (google "volkswagen bus hot tub" to find easy examples)

masto··on ScanAllFish
It was actually Wowbagger the Infinitely Prolonged who decided to insult everyone in the universe, individually, personally, and in alphabetical order, and who briefly showed up while Arthur Dent was stranded in a cave on prehistoric Earth to call him a jerk.
masto··on Pyenv – lets you easily switch between multiple versions of Python
I remember when I was a childish Perl fan trading insults with the childish Python fans of the time, one of the things "they" always chided "us" about was that we had too many different ways to accomplish the same thing...
masto··on Vernor Vinge has died
Vernor Vinge has an outstanding catalog of invention and accomplishments. One of that's threaded through many of his stories and has become even more relevant lately is ubiquitous computing and networking, and in particular augmented reality.

To truly understand the transformative potential of something like a VR headset if technology allowed it to be unobtrusive and omnipresent, one must read Vinge. The idea of consensual reality as portrayed in, e.g., Fast Times at Fairmont High, is kind of mind-blowing.

masto··on We've Been Treating Concussions All Wrong
Scotty from the Strange Parts YouTube channel (fantastic) got a very serious concussion that he struggled to recover from for a long time. He made a few videos about it, and has more on his second channel regarding the interesting treatment he did (e.g. https://www.youtube.com/watch?v=mrNKhgAiR7E). I don't know anything about this stuff so they could be legit or snake oil, but what they do does seem to align with the premise of the article.
masto··on Why does an extraneous build step make my Zig app 10x faster?
I realize one needs a catchy title and some storytelling to get people to read a blog article, but for a summary of the main points:

* This is not about a build step that makes the app perform better

* The app isn't 10x faster (or faster at all; it's the same binary)

* The author ran a benchmark two ways, one of which inadvertently included the time taken to generate sample input data, because it was coming from a pipe

* Generating the data before starting the program under test fixes the measurement

masto··on 2600.network Dialup Service
Sometime around 1999/2000ish, I built a sort of distributed database application. Early web app days, Perl and PostgreSQL on FreeBSD, and almost no JavaScript. It was for fairly sensitive data that the users were a bit squirrely about sharing, so the idea was that you stored all of the bits you owned on your local node, and you could send a remote query to the whole network and each node would execute it, notify the local owner of the data "hey, Sally wants a copy of this record", and they could choose whether or not to send it back.

Some of these installations were located in the middle of nowhere, and in those days we couldn't count on Internet access of any kind. But the company happened to also own a dial-up ISP... so I came up with a system, which I'm kind of proud of even though it was quick a hack. We ended up piggybacking the whole thing on dial-up e-mail using GPG-encrypted attachments. A couple of times a day, each node would call into the ISP and do a standard POP3 and SMTP routine, processing incoming requests and dropping off outgoing ones. Because it wasn't important for it to be real-time, we made the whole thing work asynchronously with the customer only having to supply a phone line.

masto··on We were wizards – a foreword to Learning Perl (1993)
I love this subthread; I've tried to explain this for years and I've concluded it's simply impossible to convey to someone who never experienced it. It's sad, and really frustrating, to just hear the same clueless comments and memes repeated. So I'm glad to see there are still people around who know what it was like to work with a truly expressive language.

About 15 years ago I was put on a Java project that ran for a year with half a dozen developers toiling away (along with an outsourced team that management eventually added to write unit tests). I spent half that time fighting with Eclipse and the other half divided between tearing my hair out trying to wade through the AbstractSpringFactoryInterfaceAbstractFrameworkInjectorAbstractionBuilder nightmare, being lectured at by people who learned everything they know about computers from in-flight magazines that this is the way professional software development is done, waiting for the one person who could actually build the application (which he did partly by unzipping the jar files and manually tweaking their contents), and actually coding.

To my complete lack of surprise, the project never achieved a working milestone and was cancelled. What did surprise me was that a coworker who was sympathetic to my grumbling persuaded the CTO who was trying to rescue the project to let me try it my way. On my own (using Perl and PostgreSQL), in a couple of weeks, I had a fully working prototype. We got the green light to proceed and built the company's flagship product on that stack. It was not my brilliant engineering as much as Perl's extraordinary ability to connect mind and machine (coupled of course with my brilliant engineering) that made it possible. I owe Larry Wall for a huge career boost.

masto··on Ovid's myths of macOS: password entry dialogs and the death of Semele
A nontrivial amount of macOS software, even from large, well-known vendors, has some step during the installation process where it puts up its own dialog asking for your password (and, I strongly suspect, shells out to "sudo" when it gets it).

The line between the things you have to do to use your stuff to get things done, and the things you shouldn't do if you don't want to get scammed or hacked, has gotten blurrier and blurrier. Troy Hunt has written a few "indistinguishable from phishing" articles (e.g. https://www.troyhunt.com/when-bank-communication-is-indistin..., https://www.troyhunt.com/thanks-fedex-this-is-why-we-keep-ge...) and I see more and more of this kind of thing all the time.

masto··on 40 Years of Programming
I too got my start in 1984, when Santa brought me a Commodore 64. I'm not good at remembering things like anniversaries, so I'm glad not only to read this essay, but to be reminded of the occasion.
masto··on Airlines Colluded to Ensure Onboard Food Would Be Awful
It was kind of a weirdly written intro, but I think it was meant to set up "here are some examples of how ridiculous things were before deregulation".
masto··on Fig is sunsetting
Apparently Fig was a terminal enhancement that provided a fancy autocomplete system.
masto··on The Bevy Foundation
Apparently Bevy is a game engine.
masto··on Don't fuck with paste
They're trolling.
masto··on Bob_cassette_rewinder
I was about to make an argument that "there's no DRM" because it's a simple flash memory chip used to keep track of how much detergent is left, and it's totally unencrypted...

But wait, could it be that the reason for the bizarre "xor 0x50" is so that they have a "technological protection measure" in place to trigger anti-circumvention rules? (https://en.wikipedia.org/wiki/Copyright_and_Information_Soci...)

masto··on How we applied fuzzing techniques to cURL
It's a tired argument. Running any program has risks.
masto··on Serving my blog posts as Linux manual pages
I don't know why this particular thing set off my pedanticism. Someone is slightly wrong on the Internet! Maybe because it started right off being needlessly Linux-centric. Or that I thought it would be one thing but it turned out to be a brief demo of content negotiation in NGINX.

In any case, a few pointless things that I seem compelled to say:

* It's not returning roff, as such. Those things like `.TH` are not part of roff, they are part of the macro package for writing man pages. * I was disappointed that there was no markdown-to-roff conversion, which seemed like it was going to be the interesting part of this post. At least use one of the existing ones. * On a similar note, this means that the text isn't really formatted correctly. roff is meant for one sentence per line of input, to distinguish between `.` to end a sentence vs. other uses. * Also also wik, this means that any line starting with a `.` will be interpreted as a command, potentially wreaking havoc.

Or maybe I'm just a grumpy old man.

masto··on Starving to Death on a Full Stomach
Every little bit helps, by definition. At the same time, by distracting us with arguments about plastic straws and meat, the fossil fuel industry shifts the focus off of their enormously outsized contribution to climate change. It can also result in moral license - the feeling that I recycle, so I've done my part.

I'm not suggesting not minimizing your individual impact on the environment (and frankly, the elephant in the room that we can't talk about is the impact of producing children), but at the end of the day, if we keep on dumping carbon and greenhouse gases into the atmosphere, the destruction will continue.

masto··on Apple Vision Pro users reporting cracked outer surfaces
I rushed to buy AppleCare just in case this happens to mine, so.. working as designed?

But seriously, I hope that there will be a repair program for this issue. Right now it's hard for me to be upset at Apple since there are inevitably things you only discover when you have shipped a sufficient number of devices into the real world. They're a big ship to steer, and it's been 2 days since this was first reported. They can't not be aware of it now that it's in the news, but even if they make zero effort to push back or stall, it's going to take a little while just to formulate a response, get all the signoffs, and implement it.

Best case, we'll see a repair program shortly and it will be zero trouble to exchange it for free if this happens. Worst case, it'll be another situation that is only resolved after years of complaints and a class action lawsuit. But I can't in fairness, even wearing my "Apple only cares about money" hat, reasonably argue that are delinquent for not doing that all in under 48 hours.

masto··on Stop postponing things by embracing the mess
The oversimplification and promises that if you just buy their thing you'll have a distraction free life in 14 days really irks me.

I struggled with this stuff for over 40 years. Only last year, after a disastrous crash, did I start learning about ADHD, which finally gave me the language and tools and access to support that I needed to start making a meaningful difference.

Without the understanding that diagnosis gave me, I'd tried every productivity technique and app, and came up with my own ad hoc systems, but they didn't stick and just reinforced the cycle of seeing myself as someone who's just doomed to live the life of a chronic procrastinator, always stressed out and overwhelmed.

A course like this would have done nothing but separate me from some money and give me a temporary feeling that I found the magic answer to everything, leading to disappointment and self hatred when I inevitably dropped it all.

I only have a personal anecdote, but if it sounds familiar, maybe there's some advice buried in it.

masto··on Coding in Vision Pro
To be honest, I'm kind of at that point. At first I was using it every day because it was new and I was curious, then I was using it every day because I wanted to give it a good try, then I was still using it but increasingly thinking "can I find any way in which this is better than just using a computer/iPad?". As of this morning, I'm writing this comment on my laptop, because going into the other room and strapping on googles feels like a chore, not a desirable activity.

I don't regret the purchase; I did not expect it to change my life, and I've actually had my skepticism about spatial computing turned around. I hope there is a future where we can do the same things in a less physically cumbersome way.

masto··on Considerations for a long-running Raspberry Pi
Step 1 is to question why you're using a Raspberry Pi. It's almost never the correct answer.

If there's a really really good reason, step 2 is to get rid of the SD card. Personally, none of mine even have an SD card inserted (ok, one does). I use network boot/NFS for everything. Some people attach other kinds of SSDs.

The one I lied about is a reverse telnet server that has been quietly doing its thing for 4 years without a hitch, apart from the time I had to replace the (PiJuice) backup battery because it was looking a little swole. But I should take the time to at least have a backup of the card ready to swap out when it fails.

masto··on $5 device tests for breast cancer in under 5 seconds: study
Seems like this was originally built for SARS-CoV-2. Here's the paper from 2021: https://pubs.aip.org/avs/jvb/article-abstract/39/3/033202/59...

and then in 2022 for detecting oral cancer: https://pubs.aip.org/avs/jvb/article/41/1/013201/2866658/Hig...

masto··on Apple confirms it's breaking iPhone web apps in the EU on purpose
The question was "What's the benefit for you as a user to side with Apple on things like this?". There's no vitriol there. Jumping to the defense of a trillion dollar corporation seems religious or at least tribalistic to me.

And lest I be dismissed as a hater, I currently own five Apple computers, an iPhone I've upgraded every year since they came out, an iPad, a watch, and a virtu^wspatial computing heads^wdevice. But that's because of the transactional value they provide, not because I believe Apple loves me and has my best interests at heart. They love my money and that's where it ends.

I use several PWAs and I will be very disappointed if this is the stick Apple uses to close the window on this short period of time where we had a reasonably interoperable standard for making "apps" using web technologies. I can run Elk in a browser, but it's suboptimal.

masto··on How I got scammed on Facebook Marketplace (2023)
That was the one. Two for $70 in my case.
masto··on John Walker, founder of Autodesk, has died
There’s a time and a place, man. Well actuallying on an obituary isn’t it.
masto··on John Walker, founder of Autodesk, has died
Me too, though it was more like 25 years. If someone asked me "who is your hero", I would answer John Walker. To be honest, I didn't know all that much about him beyond The Hacker's Diet, his own autobiography/Autodesk File, and the stuff on his web site circa 15-20 years ago. But the things I did know seemed admirable:

* He was an engineer's engineer, and when his company became successful, the impression I got was that he stayed one.

* The Hacker's Diet is a good example - approaching weight loss as a problem to be solved the same as any other: by learning what's known about it and using empiricism and data.

* As far as I can tell, at some point he decided he had achieved all the money he needed so he went off to Switzerland and became a sort of mad scientist, pursuing whatever interested him for the rest of his life. Including things like the hotbits random number generator, where he installed a radiation source in his basement and used it to serve random bits up via a public web API.

None of us are perfect, and it's best not to know too much about one's heroes, so I didn't. I looked up to the John Walker in my mind as the person I want to be when I grow up, and this sad news hits hard.

masto··on How I got scammed on Facebook Marketplace (2023)
I like to think I'm pretty scam-savvy, but it only takes a moment of the holes in the swiss cheese aligning. I saw a recreation of a movie prop that looked like a good gift idea for a friend and made an impulse purchase. Something was nagging at the back of my head and a couple of minutes later I had a sinking feeling that it might be a scam -- sure enough, a little research showed that the product photos were stolen, the original was a limited-run authorized item that sold for 20x what I paid, and I found a forum post where this scam item was being discussed.

The web site I bought from was a single legitimate-looking veneer page with most of its content lifted from templates, and there was no functional tracking or order management anywhere, so I immediately e-mailed them asking to cancel the order, to which they replied that they that the product was "good quality", "you can rest assured that you have it", and that they would charge me a 5% fee to cancel. So I opened a case with PayPal and they closed it saying the transaction was "consistent with my purchase history", whatever that means. I appealed and they doubled down that it was not fraudulent. There are no more buttons to press at that point, but I wrote back again reiterating all of the evidence that they were actively providing a payment service to facilitate fraudulent transactions (the scammer was still around and still advertising the same fake products) and after a long period of silence I suddenly got a refund.

PayPal is not on your side as a customer, especially if you're dealing with a professional scammer who knows how to play the game and string things out. I suspect what happened here was that they got one too many complaints, and if they'd been a little less greedy or more careful, they would have walked away with the bag of money.

← PreviousPage 4 of 11Next →