Troubleshooting A Symlink — A Whodunnit For The Git Record Books

While I normally sport the well-worn fedora of a hard-boiled sysadmin, Sunday mornings I swap that neo-noir accessory for the tech-noir: a pair of pro headphones. This is the tale of the collision of those two roles. An educational caper, dear reader. You see, my weekly gig is to run a Facebook Live Stream, and Facebook just recently began enforcing a new policy: all video streams are required to use encryption. We have Fedora installed on the media machine, and use Open Broadcaster Software (OBS) to stream. It should have been easy to update the stream settings. I made the necessary changes and tested it out — no luck. The error message was less than helpful: “Failed to connect to server”. With a sigh, I took off my headphones, put my sysadmin hat on, and walked out into the digital darkness. It was time to get back to work.

Continue reading “Troubleshooting A Symlink — A Whodunnit For The Git Record Books”

Light The Way To Every Component

How do you organize your stock of components and modules? If an unruly pile of anti-static bags and envelopes from China stuffed into a cardboard box sounds familiar, then you need help from [Dimitris Tassopoulos]. He’s organized his parts into drawers and created a database, then linked it via an ESP8266 and a string of addressable LEDs to light up the individual drawer in which any given component resides. It’s a genius idea, as you can see in action in the video below the break.

Behind the scenes is a web server sitting atop an SQL database, with a PHP front end. It’s running on a Banana Pi board, but it could just as easily be running on any other similar SBC. The ESP8266 has a REST API to which the webserver connects when a component is sought, and from that it knows which LED to light.

The LED strip is not the tape with which most readers will be familiar, but a string of the type we might be more used to as Christmas lights. These have a 100mm spacing between LEDs, allowing them to be easily positioned behind each drawer. The result is a very effective parts inventory system. We’re not entirely sure that it would entirely banish the tide of anti-static bags here, but we’re impressed nevertheless.

Continue reading “Light The Way To Every Component”

Hide Silent, Hide Deep: Submarine Tracking Technologies Of The Cold War

All through the cold war, there was a high-stakes game of cat and mouse in play. Nuclear powers like the United States and the Soviet Union would hide submarines armed with nuclear missiles underwater. The other side would try to know where they were so they could be targeted in the event of war. The common wisdom was that the United States had many high tech gadgets to help track enemy submarines, but that the Soviet Union was way behind in this area. This was proven false when a Soviet Victor-class boat followed a US missile submarine for six days. Now, a recently declassified CIA report shows how the Soviets didn’t use sonar at all but developed their own technology.

There is something fascinating about submarines. Like an old sailing ship, submarines are often out of touch with their command bases and the captain is the final authority. Like a space ship, the submarine has to survive in an inimical environment. I guess in all three cases, the crew doesn’t just use technology, they depend on it.

Although the submarine has some non-military uses, there are probably more military subs than any other type. After all, a sub is as close to a cloaking device as any real-life military vehicle has ever had. Before modern technology offered ways to find submarines using sonar or magnetic anomalies, a completely submerged submarine was effectively invisible.

There was a lot of speculation that the Soviet Union lacked sufficient technology to use sonar  the way the US did. However, in some cases, they had simply developed different types of detection — many of which the West had discarded as impractical.

Continue reading “Hide Silent, Hide Deep: Submarine Tracking Technologies Of The Cold War”

Hackaday Podcast 048: Truly Trustworthy Hardware, Glowing Uranium Marbles, Bitstreaming The USB, Chaos Of Congress

Hackaday editors Elliot Williams and Mike Szczys kick off the first podcast of the new year. Elliot just got home from Chaos Communications Congress (36c3) with a ton of great stories, and he showed off his electric cargo carrier build while he was there. We recount some of the most interesting hacks of the past few weeks, such as 3D-printed molds for making your own paper-pulp objects, a rudimentary digital camera sensor built by hand, a tattoo-removal laser turned welder, and desktop-artillery that’s delivered in greeting-card format.

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!

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 (60 MB or so.)

Continue reading “Hackaday Podcast 048: Truly Trustworthy Hardware, Glowing Uranium Marbles, Bitstreaming The USB, Chaos Of Congress”

Hacking An Arduino NFC Reader With WebUSB

When [gdarchen] wanted to read some NFC tags, he went through several iterations. First, he tried an Electron application, and then a client-server architecture. But his final iteration was to make a standalone reader with an Arduino and use WebUSB to connect to the application on the PC.

This sounds easy, but there were quite a few tricks required to make it work. He had to hack the board to get the NFC reader’s interrupt connected correctly because he was using a Leonardo board. But the biggest problem was enabling WebUSB support. There’s a library, but you have to change over your Arduino to use USB 2.1. It turns out that’s not hard, but there’s a caveat: Once you make this change you will need the WebUSB library in all your programs or Windows will refuse to recognize the Arduino and you won’t be able to easily reprogram it.

Once you fix those things, the rest is pretty easy. The PC side uses node.js. If you back up a level in the GitHub repository, you can see the earlier non-Arduino versions of the code, as well.

If you want to understand all the logic that went into the design, the author also included a slide show that discusses the three versions and their pros and cons. He did mention that he wanted a short-range solution so barcodes and QR codes were out. He also decided against RFID but didn’t really say why.

NFC business cards are a thing. You can also use them to catch some public transportation.

LuaRadio Gives Insight Into SDR

In theory, you shouldn’t need any help to develop a software-defined radio (SDR) application. But in real life you really don’t want to roll your own code every time to read the IQ samples, perform various transformations on them, and then drive audio output. At worst, you’ll use some libraries (perhaps GNU Radio) but usually, you’ll use some higher-level construct such as GNU Radio Companion (GRC). GRC is a bit heavyweight, though, so if you’ve found it daunting before, you might check out some of the material on the LuaRadio website.

We’ve looked at LuaRadio several years ago, but it has undergone a lot of changes since then and has some excellent documentation. Like Lua itself, LuaRadio emphasizes fast scripting. It supports quite a few pieces of common hardware and nearly anything that feeds data through a soundcard.

Continue reading “LuaRadio Gives Insight Into SDR”

[Fran] Is Helping Santa Slay This Year

We know at least one person who ought to make Santa’s ‘nice’ list this year. [Fran] was probably near the top of it already, but sending Santa a handmade greeting card with a fully-functioning guitar amp inside will probably make him rewrite her name in glitter, or silver Sharpie.

This stocking stuffer-sized amp is based around the LM386 and the bare minimum components necessary to make it rock. Everything is dead-bug soldered and sandwiched between two pieces of card stock. The first version with a single 386 sounded okay, but [Fran] wanted it louder, so she added another stage with a second 386. [Fran] glued the rim of the speaker directly to the card so it can act like a cone and give a better sound than the speaker does by itself.

All Santa needs to rock out is his axe and a small interface made of a 1/4″ jack and a 9 V wired to a 3-pin header that plugs into the card. He can take a break from Christmas music and let some of those cookies digest while he jams. Be sure to check out the build video after the break if you want to stay off the ‘naughty’ list.

Want to make your own musical greeting card? If you can program an ATtiny85, you won’t need much more than that to send a smile. If visual art is more your thing, 3D print them a 2D picture.

Continue reading “[Fran] Is Helping Santa Slay This Year”