AI-Generated Sleep Podcast Urges You To Imagine Pleasant Nonsense

[Stavros Korokithakis] finds the experience of falling asleep to fairy tales soothing, and this has resulted in a fascinating project that indulges this desire by using machine learning to generate mildly incoherent fairy tales and read them aloud. The result is a fantastic sort of automated, machine-generated audible sleep aid. Even the logo is machine-generated!

The Deep Dreams Podcast is entirely machine-generated, including the logo.

The project leverages the natural language generation abilities of OpenAI’s GPT-3 to create fairytale-style content that is just coherent enough to sound natural, but not quite coherent enough to make a sensible plotline. The quasi-lucid, dreamlike result is perfect for urging listeners to imagine pleasant nonsense (thanks to Nathan W Pyle for that term) as they drift off to sleep.

We especially loved reading about the methods and challenges [Stavros] encountered while creating this project. For example, he talks about how there is more to a good-sounding narration than just pointing a text-to-speech engine at a wall of text and mashing “GO”. A good episode has things like strategic pauses, background music, and audio fades. That’s where pydub — a Python library for manipulating audio — came in handy. As for the speech, text-to-speech quality is beyond what it was even just a few years ago (and certainly leaps beyond machine-generated speech in the 80s) but it still took some work to settle on a voice that best suited the content, and the project gradually saw improvement.

Deep Dreams Podcast has a GitLab repository if you want to see the code that drives it all, and you can go to the podcast itself to give it a listen.

Author with book

Learn All About Writing A Published Technical Book, From Idea To Print

Ever wondered what, exactly, goes into creating a technical book? If you’d like to know the steps that bring a book from idea to publication, [Sara Robinson] tells all about it as she explains what went into co-authoring O’Reilly’s Machine Learning Design Patterns.

Her post was written in 2020, but don’t let that worry you, because her writeup isn’t about the book itself so much as it is about the whole book-writing process, and her experiences in going through it. (By the way, every O’Reilly book has a distinctive animal on the cover, and we learned from [Sara] that choosing the cover animal is a slightly mysterious process, and is not done by the authors.)

It turns out that there are quite a few steps that need to happen — like proposals and approvals — before the real writing even starts. The book writing itself is a process, and like most processes to which one is new, things start out slow and inefficient before they improve.

[Sara] also talks a bit about burnout, and her advice on dealing with it is as insightful as it is practical: begin by communicating honestly how you are feeling to the people involved.

Over the years I’ve learned that people will very rarely guess how you’re feeling and it’s almost always better to tell them […] I decided to tell my co-authors and my manager that I was burnt out. This went better than expected.

There is a lot of code in the book, and it has its own associated GitHub repository should you wish to check some of it out.

By the way, [Sara] celebrated publication by making a custom cake, which you can see near the bottom of her blog post. This comes as no surprise seeing as she has previously managed to combine machine learning with her love of making cakes!

World’s Worst I/O Dock Doesn’t Deserve Elegant Fix

Even spendy commercial products can end up being lemons. This is something [Mike Buss] is familiar with, as he had the misfortune of being stuck using what he declares is the world’s worst USB hub, and it’s not even a mystery discount device from overseas: it’s an HP Thunderbolt Dock G2. It is a sort of combination I/O dock and USB hub, and it caused him no end of frustration until he “fixed” it with a crude workaround.

The problems with [Mike]’s dock come down to two major issues. The first is that the USB-C connection will, if moved even the slightest amount, instantly trigger a disconnect from the host computer. Frankly, that sounds like a defect, but that’s not all. The other issue is that the whole top of the device is actually a giant, hyper-sensitive button. Even a stern gaze seems to be enough to cause it to activate. What does the button do? It puts the host computer to sleep; something that we all agree should suffer from as few false activations as possible.

We’ll spoil the surprise by revealing that the “fix” was nothing more than putting a 3D printed enclosure around the troublesome device, as shown in the image above. Keeping the dock covered and perfectly still at least prevents the two aforementioned issues, and that’s good enough for [Mike].

The curious part of all this is just how badly the device’s design affected normal use. We’d suspect a defect or malfunction, but a cursory search of reviews online suggests [Mike]’s experience isn’t unique. It’s certainly not the first poorly-designed product we’ve seen fixed by a new enclosure, but some problems just aren’t worth the effort of a more elegant solution.

Remote MQTT Temperature Sensor Shows How It’s Done

First of all, there are definitely simpler ways to monitor remote temperatures, but [Mike]’s remote MQTT temperature sensor and display project is useful in a few ways. Not only does it lay out how to roll such a system from scratch, but it also showcases system features like solar power.

After all, if one simply wants to monitor temperature that’s easily done, but once one wishes to log those temperatures and use them to trigger other things, then rolling one’s own solution starts to get more attractive. That’s where using someone else’s project as a design reference can come in handy.

[Mike’s] solution uses two Wemos D1 boards: one with a DS18B20 temperature sensor for outdoors, and one with a small OLED screen for an interior display. The external sensor relies on a rechargeable 18650 cell and a solar panel for a hassle-free power supply, and the internal sensor (of which there can be many) has a cute enclosure and is powered by USB. On the back end, a Raspberry Pi running an MQTT gateway and Node Red takes care of the operational side of things. The whole system has been happily running for over two years.

What is MQTT? It is essentially a messaging protocol, and takes care of the whole business of reliably communicating data back and forth between IoT devices. It scales very well and doesn’t need to be hard or intimidating; our own [Elliot Williams] can tell you all about implementing it.

ice fishing tent and antenna in a snowy field

Ice Fishing Tent Makes Winter Ham Radio Comfy

Cross-pollination between different activities and industries can yield some pretty useful techniques or product combinations, and [Steve] shares some details on using ice fishing gear to make winter ham radio activities more comfortable and portable.

Radio operator inside ice fishing tent in winterWith the help of a folding tent shelter, [Steve] was able to create a minimal and self-contained field station that hosted all his needed equipment, and with the help of a small propane heater, stayed quite comfortable during a 24 hour winter event.

For those interested in the radio end of what [Steve] was doing, he goes into detail about the radio equipment and antenna he used, which itself stows easily into a bag and withstood high winds with success. The goal of the event after all was emergency preparedness, and while radio can operate without a wider infrastructure to support it, antenna design is crucial for best results.

As for keeping the operator safe and sound during all this, it turns out that the problem of a pop-up winter shelter that is both light and compact has already been solved by ice fishers; and while it can be fun to roll one’s own solutions, there’s not always a need to re-invent the wheel.

How To Make Laser-cut Decals On The Cheap

Want to make a sweet adhesive decal with a complex design and floating elements, but all you have is a laser cutter and some tape? Good news, because that’s all you need with this method of creating adhesive tape decals on a laser cutter demonstrated by the folks at [Lasers Over Los Angeles]. The overall technique is very similar to creating vinyl decals and using tape transfer to apply them, but is geared towards laser cutters and nice, cheap tape.

This method also makes applying to non-flat surfaces a breeze.

The way it works is this: paper-based tape (such as blue painter’s tape) is laid down in strips on the laser cutter’s honeycomb bed, forming a nice big rectangle big enough for the intended design. Then, the laser cutter cuts vector art into the tape, resulting in an adhesive decal ready to be stuck to some other surface. Transferring is done by using good quality clear packing tape to “pick up” the decal, then move it to where it needs to be.

To do this, one lays strips of packing tape onto the top of the design on the laser bed, then lifts the design up and away. Move the design to its destination (the clear packing tape helps in eyeballing the final position), press the decal onto the final surface, and carefully peel away the clear packing tape. This works because the packing tape sticks only weakly to the back of the painter’s tape; it’s a strong enough bond to hold the decal, but weak enough that the decal will stick to a surface even better.

It’s true that painter’s tape isn’t as durable as vinyl and the color selection is a bit limited, but design-wise one can go as big as the laser bed allows, and the price is certainly right. Plus it’s easily cut by even the most anemic of diode lasers.

Speaking of desktop vinyl cutters, they may have small working areas compared to most laser cutters, but they have some fantastic workshop applications. They can even do home PCB fabrication, by way of knocking out three essential pieces: the etching mask, solder mask, and solder stencil.

Vintage Meter Repair? It’s Easier With X-Rays

Here’s an interesting and detailed teardown and repair of a Keithley 2001 7.5 Digit multimeter that is positively dripping with detail. It’s also not every day that we get to see someone using x-ray imaging to evaluate the extent of PCB damage caused by failed electrolytic capacitors.

Dark area is evidence of damage in the multi-layer PCB.

Sadly, this particular model is especially subject to that exact vintage electronics issue: electrolytic capacitor failure and leakage. These failures can lead to destroyed traces, and this particular unit had a number of them (in addition to a few destroyed diodes, just for good measure.) That’s where the x-ray machine comes in handy, because some of the damage is hidden inside the multi-layer PCBs.

[Shahriar], perhaps best known as [The Signal Path], narrates the entire process of fixing up the high-quality benchtop multimeter in a video, embedded below (or you can skip directly to the x-ray machine being broken out.) [Shahriar] was able to repair the device, thanks in part to it being in relatively good shape, and having the right tools available. Older electronics are not always so cooperative; the older a device is, the more likely one is to run into physical and logical standards that no longer exist.

Continue reading “Vintage Meter Repair? It’s Easier With X-Rays”