Better HN
topnewbestaskshowjobs
Log inSign up

don-code

1,812 karma · joined Sep 13, 2020 (6y ago) · 361 submissions

President, Boston DevOps Network

https://hardwarehacks.org

Submissions

comment 4y ago · link · parent

I was personally surprised that maintainers would "be brave" at all with a codebase as widely used as the Linux kernel - just as much as to hear Linus suggest that this sort of thing happens time and time again.

comment 4y ago · link · parent

While I certainly appreciate what both the author of this project and the WINE community have put together, how far _have_ we come? My last copy of Photoshop (albeit Photoshop 7, pre-Creative Suite) in the late 2000s worked just fine under WINE, installer and all. I honestly don't know what drift has happened since then - maybe Adobe has made this purposefully difficult in some way?

comment 4y ago · link · parent

For what it's worth, I use a Zenfone 8 and regularly get 2-3 days of battery life off it. I came from older, sanely-sized HTC phones, and am actually pretty happy with it - I was lucky to get a day off any of the prior three HTC phones (Sensation, M8, 10) that I had.

comment 4y ago · link · parent

This actually gave me some new context on why Web technologies can be slow: fast as the runtime might have become, it spends useless cycles converting hex to ASCII, thrashing the stack, and so on. I wonder if it wouldn't be faster to encrypt the JavaScript code, and use something like the existing Widevine DRM to distribute the keys.

comment 4y ago · link · parent

Coffee ended up being much more than just the beverage for me. I've never been the type of person to pay for coffee at a coffee shop each morning, which took most of the social aspect of it away. And at the time, I was buying, yes, bad coffee - specifically, the second-cheapest espresso roast that turned out to be made by Folgers, in spite of what the front of the tin said.

It was actually a local radio station (WERS Boston) that got me into a similarly local coffee roaster (Atomic Coffee). I got a bag of their coffee with a donation to the station, and I was hooked. Enough so that I now take friends to their cafe to hang out, and work with them to cater the coffee for an event I help run every year.

What's more, a number of my coworkers are coffee drinkers - sometimes, we'll bring in coffee to share; sometimes, we'll discuss the merits and demerits of such-and-such single origin blend; sometimes, there will be holy wars about the use of a moka pot versus a Chemex, or whole-bean with a burr grinder versus pre-ground. But all in good fun.

comment 4y ago · link · parent

While not cooking, per se, Grocy (https://grocy.info/) is able to store recipes organized by ingredients, and do interesting things like tell you what you can cook without running to the store.

comment 4y ago · link · parent

While I can't speak to either the iPhone or the Walkman, the quality of the digital-to-analog converter is significantly more important than raw horsepower or other capabilities. Where they're analog devices, there's much less to be said about the "it's just zeroes and ones" argument.

Some older devices I've owned had good-quality DACs - a Palm Treo being the best. My current ThinkPad has a downright awful DAC, to the point where music sounds _better_ over my Bluetooth headphones (Audio-Technica ATH-M50xBT) than when plugged straight in. The quality issues are even more egregious for the cheap dock I use for my work MacBook Pro, which puts out so much electrical noise over the headphone jack as to be annoying even in in Zoom calls.

comment 4y ago · link · parent

> Slack prioritises whoever is first to reply and no one wants to read a 50+ message thread to figure out if they have relevant input.

My personal belief is that Slack provides a perverse incentive to reply quickly, rather than thoughtfully. There's a time and place for quick communications, but the majority of discussions I have over Slack feel that they'd be better served by thoughtful requests with equally (if not more) thoughtful responses.

E-mail was great at this: the extra overhead (if it could be called that, but I digress) of writing an e-mail encouraged information density in that e-mail - I want to convey my point in the least number of round trips possible, and likewise, have my question answered in the least number of round trips possible. Slack does away with this; round trips so easy as to be common, and in fact we have sites like nohello.com showing that the trend towards round-trips isn't helpful.

comment 4y ago · link · parent

You may enjoy reading Neal Stephenson's _Anathem_.

comment 4y ago · link · parent

In addition to just loading and querying data, spreadsheets are great as database mocks in integration tests. I long ago used XLSQL (note: there is a new XLSQL project unrelated to this one) to mock an Oracle database: https://sourceforge.net/projects/xlsql/.

comment 4y ago · link · parent

It might be overkill, but you could run https://zoneminder.com/ in unauthenticated mode, with a single webcam as an input. It'd at least give you a nice Web interface, as opposed to some other solutions which use raw streams over HTTP/RTSP that aren't approachable in a Web browser.

comment 4y ago · link · parent

> Imagine if mass-storage devices were cheap enough that you could afford 307 gigabytes for a single movie. Your hardware would still have to support a sustained data rate of 1 Mbyte per second to play it back.

I recently bought a $20 flash drive to store the entire contents of a my friend's late-2000s PC with a 250GB hard drive on. Didn't think much of it.

(Yes, I know the article is from 1994.)

comment 4y ago · link · parent

There's an awkward, intermediate step, sort of like what we had with 1G cellular: while the signalling was all digital (but not IP), the actual voice payload was carried on a dynamically-provisioned analog channel.

We had Merlins at my parents' store when I was growing up, and an interesting artifact of the analog channel was that some analog data was possible. For instance, we hung a fax off one of the Merlins (14.4k was fine); I likewise got get 33.6k off it when I plugged in my modem, but could never get 56k. In hindsight, that's because 56k actually requires the line to support digital signalling, which the Merlin did not.

comment 4y ago · link · parent

One of my engineering professors still has a Web 1.0 site, "best viewed in Netscape Communicator 4.0 or higher at 16 or 24-bit color". It's actively updated, but hasn't fundamentally changed since the late 90s - some pages still have the Netscape Composer generator tags in them. (For further frame of reference: I last had a reason to go to it over ten years ago now, but still bring it up as a talking piece.

https://people.rit.edu/meseec/

comment 4y ago · link · parent

As a Bostonian myself, I'm getting used to the idea that we're the exception, rather than the rule. I typically _do_ see these things when I travel within the country. But I'm increasingly seeing it as a "Boston success" rather than a "San Francisco problem" or "Austin problem" or "Seattle problem", because it seems more like a default state, given the current way of things.

That said, I'm not sure what to attribute that to. It could be the broad availability of drug rehab and housing services. It could be that the climate is inhospitable to living on the street for the majority of the year. For all I know, it could be an aftershock of the city's love affair with redlining, effectively putting me away from where I would see it.

comment 4y ago · link · parent

I recently had an opportunity to build an application on top of Lambda@Edge (AWS's equivalent of Cloudflare workers). The prevailing wisdom there was to make use of regional services, like S3 and DynamoDB, from the edge. That, of course, makes my edge application depend on calls to a larger, further away point of presence.

While it's possible to distribute state to many AWS regions and select the closest one, I ended up going a different route: packaging state alongside the application. Most of the application's state was read-only, so I ended up packaging the application state up as JSON alongside the deployment bundle. At startup, it'd then statically read the JSON into memory - this performance penalty only happens at startup, and as long as the Lambda functions are being called often (in our case they are), requests are as fast as a memory read.

When the state does need to get updated, I just redeploy the application with the new state.

That strategy obviously won't work if you need "fast" turnaround on your state being in sync at all points of presence, or if users can update that state as part of your application's workflow.

comment 4y ago · link · parent

I'm curious if you've ultimately found your mentor's behavior to be a net positive, or net negative, in your career.

One of the engineers under me often expresses his discontent that I won't give him answers, either. I think he's more than able to get to those answers on his own, and that the value he'll derive from learning how to learn is vastly greater than the value of being able to complete his work faster. On the other hand, he's given me the feedback that the method is excessively socratic at best, and flat-out frustrating at worst.

comment 4y ago · link · parent

The hedonic treadmill is at work here. I recently cut caffeine entirely, and while the initial few weeks were awful, I don't feel now that I'm at any significant disadvantage with regards to where I started.

I also worked for a company where energy drinks and coffee became part of my diet, then left of my own volition. Then I left, and they're still doing just fine in spite of none of my team hitting caffeine anywhere near as heavily, so I assume the feeling that I'd get fired or somehow disciplined is/was all in my head.

comment 4y ago · link · parent

I had an experience a few years ago, retrieving old data from SyQuest drives. I was unsuccessful getting even a single bit recovered: several drives and several disks ultimately produced zero overlap in readability.

comment 4y ago · link · parent

I'm impressed - but not necessarily surprised - by the amount of inline guidance that the system gave. These systems must have been cumbersome to wrap one's head around, more so when there was little precedent for using them. The designers, who likely were quite technical for their time, took those extra steps to understand the frames of reference of the users, and explain the system from that frame.

Contrast to today, where user interfaces have largely lost the discoverability principle, and help is often asking someone else who's ridden the wave to where we are today.

comment 4y ago · link · parent

Mail self-hoster here. There's an additional wrinkle, which luckily you may never encounter in the public cloud space: in addition to typically being unable to _send_ mail from residential Internet connections, it's many times also not possible to _receive_ mail on a residential Internet connection.

On the outbound side, many accepters of mail will deny mail from SMTP servers on a residential IP address, as provided by the Spamhaus Policy Block List (https://www.spamhaus.org/pbl/) or equivalent. Unfortunately, there's not much one can do to get off this list - ISPs self-publish their own residential IP space onto it. In order to self-host from home, business-class service or higher is in order. Or, again, use the public cloud, and hope your compute instance's IP isn't on some other block list.

On the inbound side, though, many ISPs block inbound port 25. Since that's the agreed-upon port for mail receipt, there's no real way around this. Several times while I self-hosted off residential, I was able to call Comcast support and ask for the ban to be lifted, but not before fighting through several layers of level one support asking me to configure my mail client differently. The real kicker, though, is any time my modem was rebooted (I owned my modem, too!), I had to call in and request it _again_. My (very small local) ISP in upstate New York also performed this blocking, but _would not_, in the face of any complaining, lift the block.

comment 4y ago · link · parent

I was convinced that I was looking at a legitimate error message from IIS until I read it.

comment 4y ago · link · parent

There's a running joke about the Indy that it's the Indigo (its much-more-expensive brother) without the "go".

comment 4y ago · link · parent

Minimodem is a similar piece of software, but much more flexible. Depending on the quality of your link, you can adjust the symbol rate, as well as the frequencies to signal 1's and 0's.

Still (as said before) not more useful to me than as a weekend project. I used it a few times with my CB radios to see how far I could transmit 1200 and 300 baud.

comment 4y ago · link · parent

I am not a parent, but this seems like a good practice to get a child in the habit of, anyway: separating out your devices for work and school. Much like I wouldn't log into personal Slack groups on my work laptop (I learned that lesson!), I wouldn't try to conduct personal work on a school laptop.

comment 4y ago · link · parent

Basic debugging knowledge is helpful, but I've found the ability to think about distributed, networked systems all the way down at the system level to be extremely helpful. We all encounter systems that are ill-documented, or complete black boxes, but peering at them with tools like `strace` / `jstack` (when a service is doing something itself with data) and `tcpdump` (when a service is asking another service to do something) opens up all sorts of possibilities.

Yes, distributed tracing tools do a much better job of this, but it's not always a given that a service will be instrumented. The generic tools (almost) always work.

comment 4y ago · link · parent

While I've successfully used this method for public APIs, I ran into an interesting one not long ago: where authentication is performed _by IP address_.

I have a switch (I think a TP-Link TL-SG1016PE) with PoE - and a finnicky PoE device that periodically needs a reboot, so I figured I'd replay turning the port on and off in the Web interface. Notably, logging in does not issue me any authentication token, but I can still turn the port on and off - and can still do it via `curl`, too. But as soon as I try it on another machine? Access denied!

(Yes, I could just fake the login process the same way, but that was more work than I had time for.)

comment 4y ago · link · parent

I have a "neat trick" of putting a blanket over myself such that my hands and laptop keyboard are both underneath, but the screen is sticking out. Then I run a cryptominer to generate some heat. Inside of five minutes, I'm pretty warm!

comment 4y ago · link · parent

We've definitely found use cases for higher-width buses, but seemingly less so for operating on 128-bit integers and pointers, like this article is describing.

Take for instance VLIW architectures (Itanium used 64-bit registers but 128-bit instructions; you packed two ops into an instruction), vector extensions (AVX-512 uses 512-bit registers to hold multiple integers from 16 to 64 bits long) - we've long known these to be viable strategies for long word lengths in a CPU. But the ability to operate on a 128-bit integer directly doesn't seem to have a use case yet.

comment 4y ago · link · parent

I have a hard time calling these "upgrades". I had a TI-83 (not Plus) in high school - the Plus gave us ROM, the TI-84 gave us USB, and the TI-84 CE gave us a color screen, which are all creature comforts at best. It's on par with what we'd think of "upgrades" circa Apple II -> Apple IIe.

I _would_ call moving from a TI-83 to the TI nSpire CAS an upgrade - there's a whole host of things that the nSpire can do which the TI-83 can't, like symbolic calculations and matrix math with complex values. I'd also bet it can emulate a TI-84 faster than a native TI-84.

1
789
13