Reinventing The Wheel

You’ve got a perfectly working software library to do just exactly what you want. Why aren’t you using it? Some of you are already yelling something about NIH syndrome or reinventing the wheel — I hear you. But at least sometimes, there’s a good enough reason to reinvent the wheel: let’s say you want to learn something.

Mike and I were talking about a cool hack on the podcast: a library that makes a floppy drive work with an Arduino, and even builds out a minimalistic DOS for it. The one thing that [David Hansel] didn’t do by himself was write the FAT library; he used the ever-popular FatFS by [Elm-ChaN]. Mike casually noted that he’s always wanted to write his own FAT library from scratch, just to learn how it works at the fundamental level, and I didn’t even bat an eyelash. Heck, if I had the time, I’d want to do that too!

Look around on Hackaday, and you’ll see tons of hacks where people reinvent the wheel. In this superb soundbar hack, [Michal] spends a while working on the IR protocol by hand until succumbing to the call of IRMP, a library that has it all done for you. But if you read his writeup, he’s not sad; he learned something about IR protocols. This I2C paper tape reader is nothing if not a reinvention of the I2C wheel, but isn’t that the best way to learn?

Yes it is. Think back to the last class you took. The teacher or professor certainly explained something to you in reasonable detail — that’s the job after all. And then you got some homework to do by yourself, and you did it, even though you were probably just going over the same stuff that the prof and countless others have gone through. But by doing it yourself, even though it was “reinventing the wheel”, you learned the material. And I’d wager that you wouldn’t have learned it without.

Of course, when the chips are down and the deadline is breathing hot down your neck, that might be the right time to just include that tried-and-true library. But if you really want to learn something yourself, you have every right to reinvent the wheel.

Hackaday Podcast 117: Chiptunes In An RCA Plug, An Arduino Floppy Drive, $50 CNC, And Wireless Switches

Hackaday editors Mike Szczys and Elliot Williams discuss the latest hacks from around the Internet. 3D-Printed linear rails don’t sound like a recipe for a functional CNC machine but there was one this week that really surprised us. We were delighted by the procedurally generated music from a $0.03 microcontroller inside of an RCA plug (the clever flexible PCB may be the coolest part of that one). There’s an interesting trick to reverse engineering Bluetooth comms of Android apps by running in a VM and echoing to WireShark. And we look at what the buzz is all about with genetically engineered mosquito experiments taking place down in the Florida Keys.

New this week is a game of “What’s that sound?”. Use the form link on the show notes below to send in your answer, one winner will receive a podcast T-shirt.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (~55 MB)

Places to follow Hackaday podcasts:

Continue reading “Hackaday Podcast 117: Chiptunes In An RCA Plug, An Arduino Floppy Drive, $50 CNC, And Wireless Switches”

This Week In Security: BYOVD, Spectre Vx, More Octal Headaches, And ExifTool

I learned a new acronym while reading about a set of flaws in the Dell BIOS update system. Because Dell has patched their driver, but hasn’t yet revoked the signing keys from the previous driver version, it is open to a BYOVD attack.

BYOVD, Bring Your Own Vulnerable Driver, is an interesting approach to Windows privilege escalation. 64-bit versions of Windows have a security feature that blocks unsigned kernel drivers from the kernel. The exploit is to load an older, known-vulnerable driver that still has valid signatures into the kernel, and use the old vulnerabilities to exploit the system. The caveat is that even when a driver is signed, it still takes an admin account to load a driver. So what use is the BYOVD attack, when it takes administrative access to pull off?

SentinelLabs is witholding their proof-of-concept, but we can speculate. The particular vulnerable driver module lives in the filesystem at C:\Windows\Temp, a location that is writable by any process. The likely attack is to overwrite the driver on the filesystem, then trigger a reboot to load the older vulnerable version. If you’re still running Windows on your Dell machines, then make sure to go tend to this issue. Continue reading “This Week In Security: BYOVD, Spectre Vx, More Octal Headaches, And ExifTool”

Julius Sumner Miller Made Physics Fun For Everyone

Let’s face it — for the average person, math and formulas are not the most attractive side of physics. The fun is in the hands-on learning, the lab work, the live action demonstrations of Mother Nature’s power and prowess. And while it’s true that the student must be willing to learn, having a good teacher helps immensely.

Professor Julius Sumner Miller was energetic and enthusiastic about physics to the point of contagiousness. In pictures, his stern face commands respect. But in action, he becomes lovable. His demonstrations are dramatic, delightful, and about as far away from boring old math as possible. Imagine if Cosmo Kramer were a physics professor, or if that doesn’t give you an idea, just picture Doc Brown from Back to the Future (1985) with a thick New England accent and slightly darker eyebrows. Professor Miller’s was a shouting, leaping, arm-waving, whole-bodied approach to physics demonstrations. He was completely fascinated by physics, and deeply desired to understand it as best he could so that he could share the magic with people of all ages.

Professor Miller reached thousands of students in the course of his nearly 40-year teaching career, and inspired millions more throughout North America and Australia via television programs like The Mickey Mouse Club and Miller’s own show entitled Why Is It So? His love for science is indeed infectious, as you can see in this segment about the shock value of capacitors.

Continue reading “Julius Sumner Miller Made Physics Fun For Everyone”

Linux Fu: Mixing Bash And Python

Although bash scripts are regularly maligned, they do have a certain simplicity and ease of creation that makes them hard to resist. But sometimes you really need to do some heavy lifting in another language. I’ll talk about Python, but actually, you can use many different languages with this technique, although you might need a little adaptation, depending on your language of choice.

Of course, you don’t have to do anything special to call another program from a bash script. After all, that’s what it’s mainly used for: calling other programs. However, it isn’t very handy to have your script spread out over multiple files. They can get out of sync and if you want to send it to someone or another machine, you have to remember what to get. It is nicer to have everything in one file.

Continue reading “Linux Fu: Mixing Bash And Python”

TypeMatrix EZ-Reach 2030 Is Better Than Your Laptop Keyboard

Maybe you’re not ready to take the leap into a full-on ergonomic split keyboard. That’s okay, that’s cool, that’s understandable. They’re weird! Especially ones like my Kinesis Advantage with the key bowls and such. But maybe your poor pinkies are starting to get tired and you’re ready to start using your thumbs for more than just the space bar. Or you want to be able to type ‘c’ properly, with your middle finger.

In that case, the TypeMatrix could be the keyboard for you. Or maybe for travel you, because it’s designed as a quasi-ergonomic, orthonormal layout travel keyboard to pair with your laptop, and as such it sits directly over a laptop keyboard without blocking the track pad. (How do people use those things, anyway?)

Of course, you could use this as a desktop keyboard as well, although it’s unfortunate that Control and Shift are stuck on the pinkies. More about that later.

First Impressions

When I saw this keyboard on eBay, I was attracted by two things: the layout, and the dedicated Dvorak light. (And, let’s be honest — the price was right.) I’ve always found myself generally turned off by chocolate bar-style ortholinear keebs because they’re so incredibly cramped, but this one seemed a more acceptable because of the slight split.

The first thing I noticed was the fantastic number pad integration. The different colored keycaps are a nice touch, because the gray makes the number pad stand out, and the red Delete is easy to find since Num Lock is squatting in the upper right corner. Why does Delete always feel like an afterthought on compact keebs? I also like the location of the arrows, and it makes me think of the AlphaSmart NEO layout. Unfortunately, it comes at the cost of burying the right hand Enter down in no-man’s land where you can’t exactly hit it blindly with great accuracy right away. If only you could swap Shift and Enter without messing up the number pad!

Continue reading “TypeMatrix EZ-Reach 2030 Is Better Than Your Laptop Keyboard”

After Years Of Uncertainty, Stratolaunch Flies Again

When Paul Allen founded Stratolaunch in 2011, the hope was to make access to space cheaper and faster. The company’s massive carrier aircraft, the largest plane by wingspan ever to be built, would be able to carry rocket-powered vehicles up into the thin upper atmosphere on short notice under the power of its conventional jet engines. The smaller vehicle, free of the drag it would incur in the denser atmosphere closer to the ground, could then be released and continue its journey to space using smaller engines and less propellant than would have been required for a conventional launch.

But Allen, who died in October of 2018, never got to see his gigantic plane fly. It wasn’t until April 13th, 2019 that the prototype carrier aircraft, nicknamed Roc, finally got to stretch its 117 meter (385 feet) wings and soar over the Mojave Desert. By that time, the nature of spaceflight had changed completely. Commercial companies were putting payloads into orbit on their own rockets, and SpaceX was regularly recovering and reusing their first stage boosters. Facing a very different market, and without Allen at the helm, Stratolaunch ceased operations the following month. By June the company’s assets, including Roc, went on the market for $400 million.

Finally, after years of rumors that it was to be scrapped, Allen’s mega-plane has flown for the second time. With new ownership and a new mission, Stratolaunch is poised to reinvent itself as a major player in the emerging field of hypersonic flight.

Continue reading “After Years Of Uncertainty, Stratolaunch Flies Again”