Python Is All You’ll Ever Need In This Linux Distro

Choosing the perfect Linux distribution that satisfies your personal needs and likings can be an impossible task, and oftentimes requires a hint of Stockholm syndrome as compromise. In extreme cases, you might end up just rolling your own distro. But while frustration is always a great incentive for change, for [Josh Moore] it was rather curiosity and playful interest that led him to create snakeware, a Linux distribution where the entire user space not only runs on Python, but is Python.

Imagine you would boot your Linux system, and instead of the shell of your choice, you would be greeted by an interactive Python interpreter, and everything you do on the system will be within the realms of that interpreter — that’s the gist of snakeware. Now, this might sound rather limiting at first, but keep in mind we’re talking about Python here, a language known for its versatility, with an abundance of packages that get things done quick and easy, which is exactly what [Josh] is aiming for. To get an idea of that, snakeware also includes snakewm, a graphical user interface written with pygame that bundles a couple of simple applications as demonstration, including a terminal to execute Python one-liners.

Note that this is merely a proof of concept at this stage, but [Josh] is inviting everyone to contribute and extend his creation. If you want to give it a go without building the entire system, the GitHub repository has a prebuilt image to run in QEMU, and the window manager will run as regular Python application on your normal system, too. To get just a quick glimpse of it, check the demo video after the break.

Sure, die-hard Linux enthusiasts will hardly accept a distribution without their favorite shell and preferable language, but hey, at least it gets by without systemd. And while snakeware probably won’t compete with more established distributions in the near future, it’s certainly an interesting concept that embraces thinking outside the box and trying something different. It would definitely fit well on a business card.

Continue reading “Python Is All You’ll Ever Need In This Linux Distro”

Teardown: Nabaztag

In 2020 there is nothing novel or exciting about an online device. Even the most capable models are designed to be unobrusive pucks and smart speakers; their function lies in what they do rather than in how they look. In 2005, an Internet connected device was a rare curiosity, a daring symbol of a new age: the “Internet of Things”!

Our fridges were going to suggest recipes based upon their contents, and very few people had yet thought of the implications of an always-on connected appliance harvesting your data on behalf of a global corporation. Into this arena stepped the Nabaztag (from the Armenian for “rabbit”), an information appliance in the form of a stylised French plastic rabbit that could deliver voice alerts, and indicate status alerts by flashing lights and moving its ears.

Continue reading “Teardown: Nabaztag”

Is It A Toy? A Prototype? It’s A Hack!

Some of the coolest hacks do a lot with a little. I was just re-watching a video from [Homo Faciens], who after building a surprisingly capable CNC machine out of junk-bin parts and a ton of ingenuity, was accidentally challenged by Hackaday’s own [Dan Maloney] to take it a step further. [Dan] was only joking when he asked “Can anyone build a CNC machine out of cardboard and paperclips?”, but then [Homo Faciens] replied: cardboard and paperclip CNC plotter. Bam!

My favorite part of the cardboard project is not just the clever “encoder wheel” made of a bolt dipped in epoxy, with enough scraped off that it contacts a paperclip once per rotation. Nor was it the fairly sophisticated adjustable slides and ways that he built to mimic the functionality of the real deal. Nope.

My favorite part of this project is [Norbert] explaining that the machine has backlash here, and it’s got play there, due to frame flex. It is a positive feature of the machine. The same flaws that a full-metal machine would have are all present here, but due to the cheesy construction materials, you can see them with the naked eye instead of requiring a dial indicator. Because it wiggles visible tenths of an inch where a professional mill would wiggle invisible thousandths, that helps you build up intuition for the system.

This device isn’t a “prototype” because there’s no way [Norbert] intends it for serious use. But it surely isn’t just a “toy” either. “Instructional model” makes it sound like a teaching aid, created by a know-it-all master, intended to be consumed by students. If anything, there’s a real sense of exploration, improvisation, and straight-up hacking in this project. I’m sure [Norbert] learned as much from the challenge as we did from watching him tackle it. And it also captures the essence of hacking: doing something unexpected with tech.

Surprise us!

This article is part of the Hackaday.com newsletter, delivered every seven days for each of the last 200+ weeks. It also includes our favorite articles from the last seven days that you can see on the web version of the newsletter.

Want this type of article to hit your inbox every Friday morning? You should sign up!

A Transmission Line Speaker With The Design Work To Back It Up

We love the world of audiophiles here at Hackaday, mostly for the rich vein of outrageous claims over dubious audio products that it generates. We’ve made hay with audiophile silliness in the past, but what we really like above that is a high quality audio project done properly. It’s one thing to poke fun at directional oxygen free gold plated USB cables, but it’s another thing entirely to see a high quality audio project that’s backed up by sound design and theory to deliver the best possible listening. [Davide Ercolano]’s transmission line speakers are a good example, because he’s laid out in detail his design choices and methods in their creation.

Starting with the Thiele-Small parameters of his chosen driver, he simulated the  enclosure using the Hornresp software. As a 3D-printed design he was able to give it paraboloid curves to the convoluted waveguide, making it a much closer approximation to an ideal waveguide than a more traditional rectangular design. In the base is a compartment for an amplifier module, with additional Bluetooth capability.

We’d be curious to know how well 3D printed plastic performs in this application when compared for example to something with more mass. However we like these speakers a lot; this is how a high quality audio project should be approached. We’ve delved into speakers more than once in the past, but if you’re looking for something really unusual then how about an electrostatic?

Open Laser Blaster Shells Out More Bang For The Buck

[a-RN-au-D] was looking for something fun to do with his son and dreamed up a laser blaster game that ought to put him in the running for father of the year. It was originally just going to be made of cardboard, but you know how these things go. We’re happy the design went this far, because that blaster looks fantastic.

Both the blaster and the target run on Arduino Nanos. There’s a 5mW laser module in the blaster, and a speaker for playing the pew pew-related sounds of your choice. Fire away on the blaster button, and the laser hits a light-dependent resistor mounted in the middle of the target. When the target registers a hit, it swings backward on a 9g servo and then returns quickly to vertical for the next shot.

There are some less obvious features that really make this game a hit. The blaster can run in 10-shooter mode (or 6, or whatever you change it to in the code) with a built-in reload delay, or it can be set to fully automatic. If you’re short on space or just get sick of moving the target to different flat surfaces, it can be mounted on the wall instead — the target moves forward when hit and then resets back to flat. Check out the demo video we loaded up after the break.

No printer? No problem — here’s a Node-RED shooting gallery that uses simple wooden targets.

Continue reading “Open Laser Blaster Shells Out More Bang For The Buck”

Rock Out With Toilet Paper Rolls

Singing in the shower is such a common phenomenon, rarely anyone ever bats an eye about it. Singing in the toilet on the other hand is probably going to raise an eyebrow or two, and it’s not for nothing that the Germans euphemistically call it “stilles Örtchen”, i.e. the little silent place. But who are we to judge what you do in the privacy of your home? So if you ever felt a lack of instrumental accompaniment, or forgot to bring your guitar, [Max Björverud] has just the perfect installation for you. (Video, embedded below.)

Inspired by the way bicycle computers determine your speed, [Max] took a set of toilet paper holders, extended each roll holding part with a 3D-printed attachment housing a magnet, and installed a Hall-effect sensor to determine the rolling activity. The rolls’ sensor data is then collected with an Arduino Mega and passed on to a Raspberry Pi Zero running Pure Data, creating the actual sounds. The sensor setup is briefly shown in another video.

Before you grab your pitchforks, [Max] started this project a little while back already, long before toilet paper became an object of abysmal desire. Being an artist in the field of interactive media, this also isn’t his first project of this kind, and you can find some more of his work on his website. So why of all things did we pick this one? Well, what can we say, we definitely have a weakness for strange and unusual musical instruments. And maybe there’s potential for some collaboration here?
Continue reading “Rock Out With Toilet Paper Rolls”

Contest Winners: Machine Learning On All Kinds Of Gadgets

With nearly sixty exciting entries, the Train All the Things contest, presented in partnership with Digi-Key, has drawn to a close and today we are happy to share news of the winning projects. The challenge at hand was to show off a project using some type of Machine Learning and there were plenty of takes on this theme displayed.

Perhaps the most impressive project is the Intelligent Bat Detector by [Tegwyn☠Twmffat] which claims the “ML on the Edge” award. His project, seen above, seeks not only to detect the presence of bats through the sounds they make during echolocation, but to identify the type of bat as well. Having been through a number of iterations, the bat detector, based on Nvidia Jetson Nano and a Raspberry Pi, can classify several types of bats, and a set of house keys (for a “control”). It’s also been impeccably documented and serves as a great example of how to get into machine learning.

The Soldering LIghtsaber takes the “ML Blinky” award for using machine learning in the microcontroller realm. This clever use of the concept seeks one thing: destroying the wait times for your soldering iron to heat up. It takes time to make temperature readings while the iron heats up, if you can do away with this step it speeds things up greatly. By sampling results of different voltages and heating times, machine learning establishes its own guidelines for how to pour electricity into the heating element without checking for feedback, and coming out the other side at the perfect temperature.

Rounding up our final two winners, the AI Powered Bull**** Detector claims the “ML on the Gateway” award, and
Hacking Wearables for Mental Health and More which won in the “ML on the Cloud” category.

The idea behind our illuminated poop emoji project is to detect human speech and make a judgement on whether the comment is valid, or BS. It does this by leveraging a learning set of comments that have previously been identified as BS and making an association with the currently uttered words.

Wearables for mental health is a wonderful project that was previously recognized in the 2018 Hackaday Prize. Economies of scale have made these wearables quite affordable as a way to add a sensor suite to behavior analysis. But of course you need a way to process all of the sensor data, a perfect task for a cloud-based machine learning application.

All four winners received a $100 gift code to Tindie. Don’t forget to check out all of the other interesting projects that were entered in this contest!