Readit News logoReadit News
don-code commented on Locked out: How a gift card purchase destroyed an Apple account   appleinsider.com/articles... · Posted by u/nonfamous
3eb7988a1663 · 3 days ago
This Kafka nightmare is somewhat funny when it does not impact your life, but with increasing centralization, I worry for the future. What happens when an AppleID/Google account in good standing is required to open a bank account? Go grocery shopping? Hold your drivers license? Apply for a job anywhere?

Big tech has repeatedly shown that they are willing to ignore life destroying account workflows so long as they only impact a minority.

don-code · 3 days ago
Sadly, you don't even need to engage directly with these companies to be affected. Case in point: e-mail.

I host my own e-mail. Valid SPF, not on any spam blacklists, good reputation score on my static IP.

At the beginning of November, I lost the ability to send e-mail to Gmail - it was all rejected as, quote, "possibly spammy". Double checked SPF and DMARC... Double checked documentation... Spent time setting up DKIM on my mail server, even though I sent nowhere near enough mail to merit it. Nothing got through for two weeks.

Google Postmaster Tools were totally unhelpful, telling me _that_ I was being blocked, but not _why_ I was being blocked. There is a community support forum where I posted - it hasn't seen a response since I posted in November. There was also a support portal where I could, in theory, contact a human. I sent something in there, and am still awaiting a reply.

Now remember, Gmail isn't just for @gmail.com addresses. Gmail hosts my accountant's domain. Gmail hosts the domain for a club that I'm part of. Gmail hosts friends who also have their own domains. Gmail hosts... well, probably a solid half of the Internet's e-mail.

My only way out of this nightmare was to reach out to a contact at Google, who - having an @google.com e-mail - was also unable to receive e-mail from me, and made the case to the right folks internally that I couldn't send important messages to him. A few days later, I could magically send e-mail to Google again.

Do I have any idea what I did? No. Do I have any idea what they resolved? Also no. Can I prevent it in the future? Who knows!

don-code commented on The C++ standard for the F-35 Fighter Jet [video]   youtube.com/watch?v=Gv4sD... · Posted by u/AareyBaba
don-code · 12 days ago
> All if, else if constructs will contain either a final else clause or a comment indicating why a final else clause is not necessary.

I actually do this as well, but in addition I log out a message like, "value was neither found nor not found. This should never happen."

This is incredibly useful for debugging. When code is running at scale, nonzero probability events happen all the time, and being able to immediately understand what happened - even if I don't understand why - has been very valuable to me.

don-code commented on Atlas Shrugged (2024)   david-jasso.com/2024/04/1... · Posted by u/mnky9800n
wduquette · 20 days ago
I watched this happen from the outside. I bought a Laserjet IV when it was first released; by the time it started to fail, many years later, USB had killed the older printer interfaces. It was a workhorse. I wouldn’t even look at an HP printer today.
don-code · 20 days ago
I likewise have a circa 1997 LaserJet that I refuse to give up. Both the printer and scanner still function flawlessly, every time I need them to - something that few printers today seem capable of.

I switched to 64-bit Windows in 2006. The printer supports PCL drivers, but there are no 64-bit drivers for the scanner. Luckily, I was able to keep it going by running 32-bit Windows in a VM, and passing the parallel port through.

I switched to a laptop without a parallel port in 2019 (thank you, Lenovo, for keeping the parallel port on docks as long as you did). At that point, I bought a JetDirect that supports both printing and scanning over the network. CUPS and SANE both support it out of the box.

don-code commented on Discovering that my smartphone had infiltrated my life   utcc.utoronto.ca/~cks/spa... · Posted by u/walterbell
don-code · 20 days ago
Much like the author, I consider myself to not use my phone too much. That said, it's probably just as far from the truth for me as it is for him.

Microsoft Authenticator is the biggest offender that comes to mind - without it, I cannot work. My company requires that we share our location to access systems (it's to enforce compliance controls that data stays in the country), so I can no longer use an offline MFA strategy like a U2F token or a TOTP key - I _have_ to use Microsoft Authenticator.

don-code commented on Unix v4 Tape Found   discuss.systems/@ricci/11... · Posted by u/greatquux
don-code · a month ago
This seems to be how a lot of modern history is found.

I recently got to talk to a big-ish name in the Boston music scene, who republished one of his band's original 1985 demos after cleaning the signal up with AI. He told me that he found that tape in a bedroom drawer.

don-code commented on Spending time with the material   robinsloan.com/lab/actual... · Posted by u/thomasjb
don-code · 3 months ago
There's a certain meaningfulness ascribed to deliberately taking time for something.

I actively listen to a vinyl record when I cue it up. I let the radio sputter in the background while I work.

I actively read a book when I have a night or weekend to myself. I let Hacker News articles tend to go in one ear and out the other, even if I tell myself I spent some time reading before bed.

I actively figure out what's going on in the world when "what's going on in the world" becomes too dire for me to ignore. I fall asleep to the 10:00 news.

It surprises me _not in the least_ that I'd spend time with something that I want to make time for, and not just something I've allowed to become part of my routine.

don-code commented on Nginx-CGI brings support for CGI to Nginx and angie   github.com/pjincz/nginx-c... · Posted by u/jesprenj
don-code · 4 months ago
I wrote a web application in an internship, circa 2011. I had no existing platform/framework to work with, no mentorship (the team wasn't really prepared to support an intern), and most importantly, an Apache web server running in Cygwin, with no PHP runtime installed. No one as much as told me what language I'd be writing at this job.

The Web development I'd done up to that point consisted of raw HTML/CSS, with some ASP.NET or PHP running on the backend. I'd never written a line of JavaScript in my life.

It was at this point that I "discovered" a winning combination: HTML, CSS, and JavaScript running in the user's browser. The backend was a set of C# applications which wrote to standard out, which could be invoked directly by Apache's mod_cgi, since C# compiles down to Windows executables. There were countless better other solutions at this point - ASP.NET/PHP (as I'd already used). FastCGI, WSGI, and others were all a thing at this point, but I'd never heard of them.

I outputted a JavaScript object (I had no idea what JSON was at the time, or that I was effectively outputting it) and read it back into the browser using a thin wrapper around XMLHttpRequest. I then iterated over the outputm and transformed the data into tables. JQuery was a thing at that point, but likewise, I'd never heard of it.

Say what you will about the job, the team, the mentorship (or lack theorof) - it took them three months before they realized I'd written C# at a Java shop, and at that point the thing was already being used widely across engineering.

The important takeaway here was, that "winning combination" of some minimal JavaScript and CGI was the perfect ratio of simple, approachable, and powerful, to enable me to finish the task at hand, and in a way that (at least until anybody saw the architecture) everybody was thrilled with. It didn't require a deeper understanding of a framework to bootstrap it from nothing. Write an HTTP response to standard out, formatted as an object, and you were on your way.

don-code commented on Hyrum's Law   hyrumslaw.com... · Posted by u/andsoitis
AdamH12113 · 5 months ago
From an API designer's standpoint (especially if that API has paying customers), Hyrum's Law is something that has to be taken into account. But from a user's standpoint, it is engineering malpractice, plain and simple. At the very least, relying on quirks of someone else's implementation is a risk that should be understood and accounted for, and no one has any reasonable grounds for complaint if those quirks suddenly change in a new version.
don-code · 5 months ago
I don't think such usage is malicious, so much as ignorant - it's sometimes hard to know that a behavior _isn't_ part of the API, especially if the API is poorly documented to begin with.

I maintain a number of such poorly-documented systems (you could, loosely, call them "APIs") for internal customers. We've had a number of scenarios where we've found a bug, flagged it as a breaking change (which it is), said "there's _no way_ anybody's depending on that behavior", only to have one or two teams reach out and say yes, they are in fact depending on that behavior.

For that reason, we end up shipping many of those types of changes ship with a "bug flag". The default is to use the correct behavior; the flag changes the behavior to remain buggy, to keep the internal teams happy. It's then up to us to drive the users to change their ways, which.. doesn't always happen efficiently, let's say.

don-code commented on Making Postgres slower   byteofdev.com/posts/makin... · Posted by u/AsyncBanana
vichyvich · 5 months ago
I love this! It would be great to have follow-ups and series of books about how to make things worse, as a way to learn to make things better.

Maybe it could be like O’Reilly, except the covers could have shittily-drawn fantasy animals, e.g. a 7-year-old’s drawing of a unicorn with a head on each side of its body both talking on their AirPods giving away their money to scammers, making PowerPoint slides, eating too much, doing hard drugs, live-streaming on Facebook, and standing on the railroad tracks with a train in the distance.

don-code · 5 months ago
This strategy was actually used during World War II, to ensure pilots could come home safely. Weather forecasting not being what it is today, meteorologists determined what conditions would result in the _most_ lives being lost, then together with mission commanders "designed" missions to simply not meet those conditions.

Source: https://medium.com/butwhatfor/suppose-i-wanted-to-kill-a-lot...

don-code commented on No   olu.online/no/... · Posted by u/mooreds
don-code · 5 months ago
I also "boycott" many such systems, and I completely empathize with the author on not really being sure why I'm doing it. It's, sadly, more for myself than it is in belief that anything will change, because many of these systems are ingrained, and it's not reasonable to expect that the others around me are also going to give them up.

Some examples:

I haven't ordered anything on Amazon since 2014. I hope the rationale is pretty obvious. I lean heavily into brick-and-mortar and especially local stores, where possible (I'm blessed with many local book and music stores). I do use eBay, and occasionally (maybe 1 in 10 purchases) I find out that the seller is actually just doing arbitrage from Amazon - they buy a $10 item on Amazon for $5, and have Amazon ship it to me using the "gift" feature. $5 profit for them; lots of bad feels for me.

I don't subscribe to any of the streaming platforms. I believe that I should have a tangible video that can't be clawed back, so that means buying a lot of DVDs and Blu-rays. Blu-rays, I know, are a tower of cards, since my ability to play them back indefinitely relies on leaked keys. If I want to watch a "Netflix exclusive", like Stranger Things, it means I'm organizing a watch party with friends who have subscriptions, where I'll provide food and beverages to at least attempt to offset that I'm benefiting from a streaming platform.

I listen to a local college radio station, instead of Spotify. I love that there are human DJs curating the playlists. They're creating community (the station actively engages the community), and since they're mostly college students, they're learning a valuable skill for their futures as well. Since laws around public radio prevent them from selling advertisements, I donate to the station in excess of what I'd pay for Spotify, since I value it. For buying music, my preference order is Bandcamp (DRM-free FLAC; the artists actually get a decent cut on the sale), followed by physical CDs (see the tangibility comment, above).

I run my own e-mail - both inbound and outbound. This is because I am stubborn, and have done it for twenty years now. I know Gmail and Outlook are on the receiving end of 90% of the e-mails I send, so they have a copy of most every message. The maintenance makes it a Pyrrhic victory.

I abstain from social media entirely. Hacker News comments are about as "social" as I get in the public sphere these days, as they capture the spirit of what I loved about the Usenet/forum days. I do participate in some professional Slack networks. Much as all of those networks would prefer _not_ to be on Slack, it'd be too hard to up and move the communities.

I could go on, but the gist is that I know these decisions are helping me, more or less exclusively - they don't even register in the overall trend.

u/don-code

KarmaCake day1722September 13, 2020
About
Software Architect @ Abacus Insights. DevOpsDays Boston Organizer.

https://hardwarehacks.org

View Original