1,812 karma · joined Sep 13, 2020 (6y ago) · 361 submissions
https://hardwarehacks.org
comment 1y ago · link · parent
I recall a DSP class where there was an exam with a question like (not exactly this):
> What does the following code print?
> `printf("Hello, world!");`
If you responded with:
> Hello, world!
...which - of course - the whole class did, you got the question wrong.
If you responded with:
> "Hello, world!"
...which is actually not what that would print, you got the question right.
A small band of us went to the professor and noted that, in fact, `printf("Hello, world!")` does not print the quotes. But he wanted us to show that it printed a string, and we denote strings by quotes.
This was something that we learned to do just for him - all strings had to be enclosed by quotes, to denote that they were strings. As far as I'm concerned, it served no practical purpose; we never had to differentiate strings like "Hello" from ['H', 'e', 'l', 'l', 'o', 0] or other representations.
A better example of how this could go - and not one that had anywhere near the same stakes - was a question on the entrance exam for my college radio station:
> What is the airspeed velocity of an unladen swallow?
I got this question right by answering, "Ni!"
(edit: formatting)
comment 1y ago · link · parent
There are lots of reasons - maybe the senior engineers are overburdened with other work (or don't care), maybe the project manager or team lead wasn't asking if the junior needed help, or maybe the junior was lying about their progress.
Either way, a story that goes for eight weeks feels excessive. Much, to your point, taking eight weeks to figure out that there was a bad part feels excessive. My counterpoint is that teams don't typically operate like labs. In a college lab, the objective is for you, specifically, to succeed. In an engineering team, the objective is for the entire team to succeed. That means the more senior engineers are expected to help the more junior engineers. They might directly coach, or they might write better documentation. I don't believe that dynamic is present in a lab setting.
comment 1y ago · link · parent
We had a first-semester freshman year course that all incoming students were required to take. The first assignment in that class was an essay, pretty typical stuff, I don't even remember what about.
A day after handing it in, roughly half of the class would be given a formal academic citation for plagiarism. That half of the class hadn't cited their sources. "This one time only", the citation could be removed if the students re-submitted an essay with a bibliography.
While it was obvious, in hindsight, that the point of the exercise was to get you to understand that the university took plagiarism seriously, especially with the "this one time only" string attached, it felt dishonest in that nobody ever came out and said so. I luckily wasn't on the receiving end of one of those citations, but I can only imagine the panic of a typical first-semester freshman being formally accused of plagiarism.
comment 1y ago · link · parent
We frequently say, don't blame the tools, it's you. That pushes "blame the tools" outside of the Overton window, and when we need to blame a tool, we're looked at like we have five heads.
Ten years ago, I was dealing with a bizarre problem in RHEL where we'd stand up an EC2 instance with 4GB of memory, have 4.4GB of memory reported to the system, and be able to use 3.6GB of it. I spent _a long_ time trying to figure out what was going on. (This was around the time we started using Node.js at that company, and needed 4GB of RAM just for Jenkins to run Webpack, and we couldn't justify the expensive of 8GB nodes.)
I did a deep dive into how the BIOS advertises memory to the system, how Linux maps it, and so forth, before finally filing a bug with Red Hat. 36 hours later, they identified a commit in the upstream kernel, which they forgot to cherry-pick into the RHEL kernel.
That's a very human mistake, and not one I dreamed the humans at Red Hat - the ones far smarter than me, making far more money than me - could ever make! Yet here we were, and I'd wasted a bunch of time convinced that a support ticket was not the right way to go.
comment 1y ago · link · parent
That said...
I graduated with a 3.2 GPA, after being the stereotypical "gifted" student up through high school. A 3.2 is, apparently, still decent. However, I did feel a bit of a twinge seeing my peers walk at graduation with with cords, bents, and other regalia, where I just had my standard-issue black robe.
It had less to do with my grade in this particular class, and more to do with the fact that I had a part-time engineering job - 10-20 hours a week - and was making money. When you've spent a couple of years being broke, having an extra few hundred dollars per month was a big deal. Enough so that I didn't really care about putting the extra effort in for A's - that extra time was time better spent working. B's were fine if I could afford to take my girlfriend out to dinner every month.
In the years since then, it seems like this was a good decision. That job became full-time after college, and I stayed there six years. At the end of six years, nobody really cared about my college GPA. At the end of nine years (when I next looked for a job), I didn't even bother listing it on my resume.
comment 1y ago · link · parent
Coincidentally, I've been knee-deep in some problems that I've applied the Cynefin framework to. I'd call this problem "chaotic", where throwing things at the wall might be _more_ effective than working down a suggested or tried-and-true path from an expert. I was pleasantly surprised just a few weeks ago where one of the more junior engineers on my team suggested updating a library - something I hadn't considered at all - to fix an issue we were having. (That library has no changelog; it's proprietary / closed source with no public bug tracker.) Surely enough, they were right, and the problem went away immediately - but I was convinced this was a problem with the data (it was a sporadic type error), not a library problem.
comment 1y ago · link · parent
The course was structured in such a way that you could not move on to the next lab assignment until you completed the one before it. You could complete the lab assignments at your own pace. If you failed the lab, you failed the class, regardless of your grade.
The second or third lab had us characterize the response of a transistor in a DIP-8 package, which was provided to us. If you blew it up, you got a slap on the wrist. That DIP-8 was otherwise yours for the class.
I could _never_ get anything resembling linear output out of my transistor. The lab tech was unhelpful, insisting that it must be something with how I had it wired, encouraging me to re-draw my schematic, check my wires, and so on. It could _never_ be the equipment's fault.
Eight (!) weeks into that ten week class, I found the problem: the DIP was not, in fact, just a transistor. It was a 555 timer that had somehow been mixed in with the transistors.
I went and showed the lab technician. He gave me another one. At this point, I had two weeks to complete eight weeks of lab work, which was borderline impossible. So I made an appointment to see the professor, and his suggestion to me was to drop the class and take it again. Which, of course, would've affected my graduation date.
I chose to take a horrible but passing grade in the lab, finished the class with a C- (which was unusual for me), and went on to pretend that the whole thing never happened.
comment 1y ago · link · parent
I use IronFox and LibreWolf as my daily drivers, but I keep Firefox installed alongside them for the inevitable site that just doesn't behave correctly. Not unlike having to reach for the big blue "E" in the bad old days.
comment 1y ago · link · parent
My particular romance was taking a pair of TV rabbit ears and hanging them out the window by the twin-lead cable, much to my mother's chagrin.
comment 1y ago · link · parent
The champion in that department, though, was the 1986 Volvo 740 that I briefly owned. Those seats were perfect in nearly every way.
comment 1y ago · link · parent
The E30 M3 2-door is indeed there, which actually is not the same vehicle. Much of the body is different between the two cars. The M3 additionally has a high-revving, 4-cylinder engine, whereas the 325is has a pretty standard straight-6. While the M3 has a faster 0-to-60, the 325is has a faster 0-to-30, which is perfect if you want to ride it as a daily driver.
comment 1y ago · link · parent
I've noticed recently that the JavaScript debugger in Firefox can "un-Webpack" (and in some cases un-minify, if I've read the inputs and outputs correctly) the code behind many sites. It's certainly not as approachable as declarative HTML, but I suspect to some enterprising person, that route is still open.
comment 1y ago · link · parent
You are probably expecting me to start listing off all the benefits, how my life is 127% better, I sleep 42 extra minutes each night and so on.
I wish it were that simple.
The good is that, in the three years I've not had Slack installed on my phone, I've missed important night/weekend events exactly twice - and in both cases, they were improper escalations directly to me (we have a pager rotation for this exact scenario).
The bad news is that I still find myself anxious that I'm missing something - because frankly, I probably am, even if it's low-priority. It's kind of like taking out a loan against tomorrow, where I'll have to catch up on a series of decisions that were made without my involvement, or talk someone through what they _should_ have done when I could've simply led them down the right path.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Moving someone across ecosystems isn't always possible, either. While I've made some Linux migrations, and might consider Mac in some others, there are use cases where Windows is a must. Of the Windows installs I'm theoretically in charge of, there's Windows printing to a 20-year-old ribbon printer, Windows "because I need, specifically, QuickBooks Pro 2016", Windows on a cash register (!) that the vendor no longer supports, Windows for an autistic girl who I wouldn't ask to adapt, and so forth.
comment 1y ago · link · parent
Come 2020, I was convinced that the world was going to end. So I simply... turned off the retention rule. One hour of news is around 5GB, but that's a very-high-bitrate MPEG-2 stream with an extra audio channel in Spanish. So I instead wrote a cron job to take that week's news, drop the stuff I don't care about, and H.264 the entire set of them down to 4.7GB, then burn them to a DVD for offline storage, since there's not much value to keeping them online.
By 2022, it was obvious the world was not, in fact, ending, but I never stopped this practice because of how simple it was, and how unobtrusive to store they are. I just make sure a fresh DVD is in the NAS every week, and put the DVDs on a spindle - they collectively take up about as much room as a toaster. I could make that even smaller and simpler if I opted for a portable hard drive.
Occasionally I'll manually toss something interesting in, like the presidential debates, or special coverage of some newsworthy event.
In 20 years, when it comes time to re-burn the earliest of them, maybe I'll make a value judgment on whether that's worth it, but for now it feels like I'd be losing something for not much of a good reason.
comment 1y ago · link · parent
Anything built within the last ten years is, of course, LEED-chic - the building is a glass box.
comment 1y ago · link · parent
But anyway, it at least gives them the context on why they're working on these projects to not make containers run as root.
comment 1y ago · link · parent
It's not my daily driver, but I would absolutely love to one day get another one as a project car - one that's not in such good condition that I'd feel bad removing the engine - and drop an electric motor in it. That likely _would_ become my daily driver. The car's incredibly well made, and a joy to drive.
comment 2y ago · link · parent
A company I used to work for ran a few Super Bowl ads. The level of traffic you get during a Super Bowl ad is immense, and it all comes at you in 30 seconds, before going back to a steady-state value just as quickly. The scale pattern is like nothing else I've ever seen.
Super Bowl ads famously seven million dollars. These are things we simply can't repeat year over year, even if we believed it'd generate the same bump in recognition each time.
comment 2y ago · link · parent
It looks like they've instead made a ring version of the CA-53W, which - in the staggeringly few times I see someone wearing a calculator watch - is usually the one they're wearing.
I still wear a DBC-610 as my daily driver, and I do use the calculator and countdown timer features quite often.
comment 2y ago · link · parent
By this point, Sun hardware was mostly PC-like: it took SATA hard drives, DDR memory, and USB peripherals. You didn't need to issue STOP to get to the `ok` prompt, you just had to do some specifically-timed dance with the (soft) power button.
My guess, based on the company throwing it out, is that they hit the power button, got a blinking red light with no video output, assumed it was dead, and tossed it. At this point, I didn't even know yet that there was an `ok` prompt to get to, and I spent a few hours at the office that night, wrapping my head around the service manual before getting it to dump me to `ok` and let me poke around.
I dreamt for years of restoring it and using it as a NAS (ZFS!), but life got in the way, and I eventually sold it (sufficiently refurbed to be running Solaris 10, but missing things like the side panels and drive cage) for only $250 or so.
comment 2y ago · link · parent
Many ISPs now block inbound port 25, required to receive mail via SMTP. It's quite hard to get an ISP to unblock this. My university wouldn't at all, and I left a laptop under my parents' couch for four years to do it instead. Some time later, Comcast began blocking it as well, and the only way to get it unblocked was to call support, work your way up the phone tree to someone that realized you were talking about inbound rather than outbound (no, this is _not_ a misconfiguration in Outlook), and get them to push a special config to your cable modem, which would be reset whenever another config was auto-pushed, or your modem lost power. You may notice that implies extended downtime when Comcast, my electric service, or my physical operations (read: I unplugged it by accident) suffers a failure.
Many mail servers (e.g. Gmail) require you to have reverse DNS that matches your forward DNS. Getting your ISP to understand what they're asking you to do is... difficult. The last time I changed ISPs, it took about a week to get this done. Comcast batches these updates weekly, and support wanted to double, triple, and quadruple-check that what I was asking for was, indeed, what I was asking for.
There are a bunch of anti-spam measures in effect that use DNS: SPF and DMARC are table stakes for most mail servers (again, e.g. Gmail) to speak to you. I've so far managed to get by without setting up DKIM, but I suspect that's next.
The worst part, by far, is spam blacklists. Many blacklists will already have your IP address listed by policy - you're a _residential IP_, not to be trusted. The Spamhaus PBL, for instance, automatically blocks all Comcast residential IPs. There is nothing you can do about this, and many mail servers will refuse to speak to you if you're on a blacklist.
These days I am paying Comcast an arm and a leg for business-class service, which both gives me unbridled inbound port 25, and also a (luckily!) clean IP on block lists.
comment 2y ago · link · parent
comment 2y ago · link · parent
It'd for sure still be up to content designers to degrade gracefully.
comment 2y ago · link · parent