Someone Set Us Up The Compiler Bomb

Despite the general public’s hijacking of the word “hacker,” we don’t advocate doing disruptive things. However, studying code exploits can often be useful both as an academic exercise and to understand what kind of things your systems might experience in the wild. [Code Explainer] takes apart a compiler bomb in a recent blog post.

If you haven’t heard of a compiler bomb, perhaps you’ve heard of a zip bomb. This is a small zip file that “explodes” into a very large file. A compiler bomb is a small piece of C code that will blow up a compiler — in this case, specifically, gcc. [Code Explainer] didn’t create the bomb though, that credit goes to [Digital Trauma].

Continue reading “Someone Set Us Up The Compiler Bomb”

Bringing Back A Spectrum’s Rails

The Sinclair ZX Spectrum was to most Brits the computer to own in the early 1980s, it might not have had all the hardware features of its more expensive competitors but it had the software library that they lacked. Games came out for the Spectrum first, and then other platforms got them later. If you didn’t have a rubber keyboard and a Sinclair logo, you were nothing in the playground circa 1984. That low price though meant that in true Sinclair tradition a number of corners had been cut in the little micro’s design. Most notably in its power supply, all the various rails required by the memory chips came from a rather insubstantial single-transistor oscillator that is probably the most common point of failure for these classic machines.

[Tynemouth Software] had an Issue 2 Spectrum with a missing -5V rail, and has detailed both the power supply circuit used on these machines and the process of faultfinding and repairing this one. A single transistor oscillator drives a little ferrite-spool transformer from which the various supplies are rectified and filtered. Similar circuits appear in multiple generations of Sinclair hardware, where we might nowadays use a little switching regulator chip.

We’re taken through the various stages of faultfinding this particular circuit, and the culprit is found to be a faulty Zener diode. It’s certainly not the last dead Spectrum that will cross an enthusiast’s bench, but at least in this case, the fault was less obtuse than they sometimes can be in this much-loved but sometimes frustrating machine.

Sinclair enthusiasts might also appreciate the great man’s earliest work.

Universal music translation network

Facebook’s Universal Music Translator

Star Trek has its universal language translator and now researchers from Facebook Artificial Intelligence Research (FAIR) has developed a universal music translator. Much of it is based on Google’s WaveNet, a version of which was also used in the recently announced Google Duplex AI.

Universal music translator architectureThe inspiration for it came from the human ability to hear music played by any instrument and to then be able to whistle or hum it, thereby translating it from one instrument to another. This is something computers have had trouble doing well, until now. The researchers fed their translator a string quartet playing Haydn and had it translate the music to a chorus and orchestra singing and playing in the style of Bach. They’ve even fed it someone whistling the theme from Indiana Jones and had it translate the tune to a symphony in the style of Mozart.

Shown here is the architecture of their network. Note that all the different music is fed into the same encoder network but each instrument which that music can be translated into has its own decoder network. It was implemented in PyTorch and trained using eight Tesla V100 GPUs over a total of six days. Efforts were made during training to ensure that the encoder extracted high-level semantic features from the music fed into it rather than just memorizing the music. More details can be found in their paper.

So if you want to hear how an electric guitar played in the style of Metallica might have been translated to the piano by Beethoven then listen to the samples in the video below.

Continue reading “Facebook’s Universal Music Translator”

Budget Dehydrator Gives Your Damp Filament A Second Chance

If you’ve had the misfortune of leaving your 3D printer filament out on a muggy day or, heaven forbid: showering with it, it’s probably soaked up quite a bit of moisture. Moisture will do more than just make your printer sound like Rice Crispies, it’ll ruin surface finishes and cause the filament to string into thin wisps between separate geometries on the same layer. Luckily for us, though, both [SafetyGlassesRequired] and [Joe Mike Terranella] give us the breakdown on taking a pair of snippers and about $40 in cash to start drying out our filament far away from the possibility of ruining any nearby kitchen ovens.

If you’ve been circling the 3D printer community for a while, you might have already heard about this trick. But with the arrival of a curiously-culinary-looking contraption called PrintDry, we can’t let the elephant in the room keep silent for much longer. Rather than risk our own pennies and leave ourselves stranded with a device that only makes the jerky on the box cover, [SafetlyGlassesRequired] and [Joe Mike Terranella] kindly prove our suspicions for us once and for all: a food dehydrator works perfectly for drying all that filament that we left out in the rain!

Clumsiness aside, a dehydrator isn’t a bad investment in the long run. Not only can we keep our supply dry, we might just be able to give all that freebie filament (that we dug out of the trash) a second life by resetting it to a clean, dry state.

These dehyrdators will toast all that moisture out of your filament, but it wont keep them dry whilst printing. For that problem, you’ll need to summon a heated drybox like this one.

[Joe Mike’s] solution will run us about $40. If you can do better, let us know in the comments.

Continue reading “Budget Dehydrator Gives Your Damp Filament A Second Chance”

Servo Becomes Mini Linear Actuator

RC servos are a common component in many robotics projects, but [Giovanni Leal] needed linear motion instead of the rotary actuation that servos normally offer. The 3D Printed Mini Linear Actuator was developed as a way to turn a mini servo into a linear actuator, giving it more power in the process.

A servo uses a potentiometer attached to the output shaft in order to sense position, and the internal electronics take care of driving the motor to move the shaft to the desired angle. [Giovanni] took apart an economical mini servo and after replacing the motor with a 100:1 gear motor and using it to power a compact 3D printed linear actuator, he used the servo’s potentiometer to read the linear actuator’s position. As a result, the linear actuator can exert considerably more force than the original servo while retaining exactly the same servo interface. You can see one being assembled and tested in the video embedded below, which is part of [Giovanni]’s entry for The 2018 Hackaday Prize.

Continue reading “Servo Becomes Mini Linear Actuator”

Buck Converter Efficiency

We always appreciate when someone takes the time to build something and then demonstrates what different design choices impact using the real hardware. Sure, you can work out the math and do simulations, but there’s something about having real hardware that makes it tangible. [Julian Ilett] recently posted two videos that fit this description. He built a buck converter and made measurements about its efficiency using different configurations.

The test setup is simple. He monitors the drive PWM with a scope and has power meters on the input and output. That makes it easy to measure the efficiency since it is just the ratio of the power output to input. You can see the two videos, below.

Continue reading “Buck Converter Efficiency”

Print Your Own Filament

Ask anyone with a 3D printer what they make the most. They’ll probably say “trash.” There are extra pieces, stuff that oozes out of the extruder, support material, parts that didn’t stick to the bed, or just parts that needed a little tweaking to get right. No matter what you do, you are going to wind up with a lot of scraps. It would be great if you could recycle all this, and [3D Printing Nerd] looks at the FelFil Evo Filament extruder that promises it can do just that. You can see the video below.

As you’d expect, the device is a motorized auger that extrudes filament through a hot end not dissimilar to your printer’s hot end. You have to run a bag of special material through it first to clean out the plastic path. After that, you can create filament from standard pellets or pieces of old plastic.

Continue reading “Print Your Own Filament”