Image

How LLMs Can Be Assisted To Do Arithmetic Correctly

One of the most hilarious things you can do with an LLM-based chatbot is to ask it to do calculations. If it’s a well-written chatbot frontend, it can detect requests for arithmetic – like summing 1 and 1 – and pass it on to a dedicated calculator application, even if still cannot correctly count the ‘r’s in ‘strawberry’. This is where [Alvaro Videla] asks the question whether it is at all possible to perform arithmetic with a language model.

Since an LLM at its core is nothing but a vector space of probabilities that a matrix-based inference process uses to create a probabilistic output of tokens you’d not expect a lot of deterministic behavior. How can you do arithmetic without grounding it in some kind of deterministic process?

This is where [Alvaro]’s Rune project comes into play, which is ‘a mechanism-aware JIT compilation project for language-model arithmetic’. Although it is statistically impossible for an LLM to ever correctly perform any random series of arithmetic calculations, you can monitor the internal state of the model and interfere once the parameters of an arithmetic calculation have been identified. By putting the correct result back into the inference process and letting it continue you did not need to rely on external tools.

Ultimately this attempt sort-of worked, but was deemed a failure. It would seem that a language model is the wrong tool after all for replacing the humble calculator.

Image

Epson HX-20 Gets A Drive Upgrade

The Epson HX-20 is sometimes referred to as an early laptop computer. It’s a little odd in its form factor, and in its storage, relying on a microcassette drive to store data. It can be problematic to keep these tapes and drives going after so many decades, so [Andrew Menadue] has been tinkering with a more modern solution.

The replacement drive uses a Raspberry Pi Pico to emulate the original tape drive. The Pico uses a microSD card to store data instead of the magnetic media of old. The device has a small screen for showing status information and four buttons for navigation, allowing the faux drive to be controlled as to what “tape” it’s pretending to be. It’s also possible to use the device to emulate ROM cartridges that could be used with the HX-20 in place of its original tape deck storage solution.

We’ve seen some other old hardware get similar drive upgrades before, too. No surprise, because mechanical drives and media simply don’t last forever. Sometimes you need to build a replacement that’s viable today. Video after the break.

Continue reading “Epson HX-20 Gets A Drive Upgrade”

Image

PCBs Straight From The Magazine

It’s never been easier to get a printed circuit board made. In fact, almost every electronics video out on the internet will incessantly remind you of this fact now. But making a custom PCB wasn’t always as straightforward as sending a KiCad file to a board house. Many DIY methods involve harsh chemicals and tedious processes, but did have the potential benefit of taking much less time than waiting on boards to arrive in the mail. [Bettina Neumryr] is demonstrating one of these older methods, called the toner transfer method, using a circuit that was printed directly in an old magazine.

The first part of the toner transfer method is to create an image that can be printed. Since this circuit came from a magazine, it is first scanned in to a computer and imported into GIMP, where it can be scaled to match the size of the components and then sharpened to make a crisp print. With the image ready, it’s time to print the image onto some toner transfer paper, ensuring that the printer in question is a laser printer which actually uses toner. From there, a sheet of blank copper PCB is prepared and then the toner is transferred by heating, in this case using a laminator. After that its etched, removing all of the copper not protected by the toner, and then the toner itself can be removed which leaves behind the copper traces.

For those of you who were around when toner transfer was in vogue, this video might not have much value. But for anyone who can’t use a board manufacturer for whatever reason or is looking for alternatives, a modern video showing the method could be much more useful and have better context for beginners than videos made a decade or more ago now. Some of those older methods include similar processes using inkjet printers instead, but there are more modern DIY methods as well using lasers or CNC machines too.

Continue reading “PCBs Straight From The Magazine”

Image

Making An Ultra Minimal Cyberdeck

The cool thing about cyberdecks is that you get to design them to suit your personal tastes. [NickZero] wanted an ultra-minimal build, and set about putting together just that.

The build is based around a Raspberry Pi Zero 2W, which has a lighter power draw than the full-fat models at the trade-off of some processing power. Since it’s a W model, it has the benefit of wireless connectivity baked in from the factory. The Pi is paired with a Gherkin 30% layout keyboard kit, which neatly matches the 7″ Waveshare touch display in width. Power is courtesy of a juicy 4000 mAh lithium-ion cell, which is taken care of by an Adafruit Powerboost 1000 charger module. Everything is then laced up together inside a nifty 3D printed case.

It’s a simple cyberdeck, and one that’s probably quite satisfying to use when you get used to the fact that there are no number or modifier keys on the ultra-cut-down keyboard. It’s also a great example of how a bunch of off-the-shelf gear can nonetheless be assembled into quite a cohesive whole. In much the opposite way, we’ve seen some maximalist cyberdeck builds lately, too.

Continue reading “Making An Ultra Minimal Cyberdeck”

Image

Hackaday Podcast Episode 374: Flippin’ Phones, Sexy Spraysers, And Frikkin’ Lasers

Things are back to normal around the Podcast studio, and this week you’ll hear the dulcet tones of Elliot Williams and Kristina Panos.

IImagen Hackaday news, we still have a Frikkin’ Lasers Challenge going on, and now you can even enter your project into it! Join the ranks, won’t you?

Not only do we have a triple mailbag this week, we have another failed attempt at guessing the sound by Kristina. However, [Baron Maximilian von Knuthausen] knew that it was a train, a British one, even. Then it’s on to the hacks, of course, which ought to go far in explaining the show title.

Check out the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Download in lovely MP3.

Continue reading “Hackaday Podcast Episode 374: Flippin’ Phones, Sexy Spraysers, And Frikkin’ Lasers”

Image

Creating Beautiful Light Shows With Soap

We feature a lot of fun projects with LEDs and lasers and all kinds of light effects going on. Most of these are very digital. However, there are a great many ways to make beautiful lighting effects without ones and zeros. The Maelstrom Lamp from [Michele Lorenzi] is a great example of that.

Image
The Maelstrom Lamp is externally decorated to indicate its function. 

The concept is decidedly old-school. The lamp uses a delicate, thin soap film stretched across an aperture as its primary optical element. The varying thickness of the film across its surface leads to constructive and destructive interference when white light passes through it. This creates a kaleidoscope of color; the same effect you might have seen when an oil slick forms in a dirty puddle.

In this case, though, that effect is projected with the aid of a powerful 800-lumen flashlight and some supporting optics. [Michele]’s write-up does a great job of explaining the finer design details that maximize the vibrancy of the effect, from the waviness in the gasket that supports the soap film, to the optics that focus the torch beam.

If you’re looking for some suitably psychedelic lighting effects for your next house party, you really ought to build one of these. We’ve featured some other fun classic lighting effects before, like these wonderful bubble lamps. Continue reading “Creating Beautiful Light Shows With Soap”

Image

This Week In Security: Arch AUR, Steam Marketplace, WordPress All Face Issues, Taco-Themed Coding, And Mythos Makes National News

Starting on June 11, 2026, the Arch User Repository (AUR) was targeted by malware which rapidly compromised over 1,500 packages. The AUR repository allows for abandoned community packages to be taken over by a new maintainer, which was exploited by the attackers to claim ownership.

Once the packages were adopted by the malicious maintainers, the next part should sound familiar: The package build scripts, which are executed by the Arch yay and paru package managers, were modified to install malicious NPM packages (atomic-lockfile and js-digest) each containing the now-usual suite of infostealer malware targeting browser credentials and tokens, SSH private keys, package repository tokens, cloud compute, AI tokens, and crypto wallets.

The malware once installed uses several tricks to cloak itself by renaming processes, and to install systemd services to restart itself, and leveraging eBPF filtering in the kernel to hide the sockets and processes further. It specifically targets browsers and Electron-based applications, which are basically a light-weight Chromium browser disguised as an application anyway. Slack, Discord, Signal, and many more use the Electron wrapper.

A preliminary analysis of the malware is available, which breaks down the exact behavior in more detail and lists the known targets of the malware.

Initially believed to be “only” a few hundred packages, the compromised list eventually grew to over 1500, and additional packages may still be discovered. On June 14, Phoronix reported that a second wave of compromised packages has been found in the AUR repositories, including NeoVim plugins and multiple browsers. The second set of infected packages were compromised in a similar fashion, but with more heavily obfuscated scripts.

Steam Wallpaper Malware

Kaspersky Labs finds that Steam users have been targeted by malware uploaded via a popular animated wallpaper application, “Wallpaper Engine”.

While Valve normally does an admirable job filtering the Steam store, it looks like an exploit has slipped through in “Wallpaper Engine”. Animated wallpapers can be videos, web pages, or full executables themselves. Obviously, being able to run any program masquerading as wallpaper directly is an excellent vector to install malware, so of course this is what happened.

Using the integrated Steam Workshop, which allows users to share game mods and other game content directly, malicious wallpapers install a wide variety of malware including the usual gamut of infostealers, remote access, residential proxy, key logging, and crypto miners. This makes it one of the rare times installing crypto miners almost makes sense, considering most Steam users likely have better than average video cards.

Once a user is infected, the malware also steals the current Steam login credentials, and several instances attempt to then upload additional infected wallpapers to the Steam Workshop under the compromised users identity, completing the supply chain circle of life.

Continue reading “This Week In Security: Arch AUR, Steam Marketplace, WordPress All Face Issues, Taco-Themed Coding, And Mythos Makes National News”