Getting Linux Process List Without Forking Using Just A Bash Script

The ps command is extremely useful when you want to get some quick information on active system processes (hence the name), especially followed by piping it into grep and kin for some filtering. One gotcha is of course that ps doesn’t run in the current shell process, but is forked off into its own process, so what if everything goes wrong and you absolutely need to run ps aux on a system that is completely and utterly out of fresh process IDs to hand out? In that scenario, you fortunately can write a shell script that does the same, but all within the same shell, as [Isabella Bosia] did, with a Bash shell script.

The how and why is mostly covered in the shell script itself, using detailed comments. Initially the hope was to just read out and parse the contents of /proc/<pid>/status, but that doesn’t have details like CPU%. The result is a bit more parsing to get the desired result, as well as a significant amount of cussing in the comments. Even if it’s not entirely practical, as the odds of ending up on a system with zero free PIDs are probably between zero and NaN, but as an ‘entertaining’ job interview question and example of all the fun things one can do with shell scripting it’s definitely highly recommended.

A black and brown planner opened like a laptop. Inside is a greyscale eink phone inside a brown piece of MDF on top, and a black keyboard fills the bottom half.

Foliodeck Squeezes A Writerdeck Into A Planner

When it comes to writing, sometimes a computer or smartphone is just too distracting to keep on task. [vagabondvivant] found this to be the case and rolled their own distraction-free writing tool, the Foliodeck.

With the increasing availability of parts for cyberdecks, it’s not too surprising to see we’re seeing the emergence of the writerdeck. Typically designed to be a no frills word processing device, they are designed to help their creators focus on writing and not be subject to the myriad notifications present trying to work with a more general computing device or smartphone.

In this case, [vagabondvivant] took a classy looking planner folio and removed its paper management components to leave a fabric and leather shell. The heart of the assembly is a HiSense A5 eink smartphone magnetically attached to a piece of MDF cut to mate the phone to the planner shell. A 10 Ah powerbank slots into the MDF below the keyboard which is also magnetically attached, and the whole thing zips up nicely. Future improvements are planned like a hinge, so it doesn’t have to be propped against something and a custom-built mechanical keyboard.

This isn’t the first writerdeck we’ve seen, and we’ve seen some other writer-focused decks and typewriter replacements.

Continue reading “Foliodeck Squeezes A Writerdeck Into A Planner”

Three different keyboard devices with greyscale LCDs on top are on a white table. In the back left is a beige one with grey keys, front and center is a black model, and to the right is a translucent blue model with black keys being held up by a hand.

A Brief History Of AlphaSmart

There are a handful of gadgets that do one thing so well that they become cult classics long after the company that made them has moved on or closed up shop. [This Does Not Compute] takes us through the history of the AlphaSmart word processor which started as an educational tool, but finds itself in many a writer’s bag today.

The original AlphaSmart bears more than a passing resemblance to its Apple contemporaries since the company was founded by two Apple engineers. The Cupertino company didn’t see the value in the concept, but didn’t lean on any non-competes to keep the pair from pursuing the idea on their own time either. What resulted was a dead simple word processor that could be had for 1/5 of what a new computer typically cost in the era, which was particularly attractive for the target market of schools.

After several successful years, the pressure of PDAs and then smartphones from one side and cheaper laptops from the other meant school districts no longer wanted single-purpose devices when they could have a fully-fledged computing experience for students. We wonder if that was the right call, with so many now wanting distraction-free devices, but it was the end of the road for the company either way.

Our own [Kristina Panos] and [Tom Nardi] have shown us the guts of the Neo and of one of its competitors, the Writer, respectively. If you have a Neo of your own in need of replacement keycaps, you can print them.

Continue reading “A Brief History Of AlphaSmart”

Hacker Tactic: Multi-Design Panels

Last time, we talked about single-PCB-design panels, all the cool aspects of it, including some cost savings and handling convenience. Naturally, you might wonder, and many did – can you put multiple different PCBs on a single panel? The answer is “yes, without a doubt!” The tool we used last time, KiKit, will not be as helpful here, so we’ll be looking elsewhere.

Making multi-PCB panels can help you save money, naturally, but it can also make your assembly a whole lot easier, and it can bring you hacking to a whole new level. It sure helped with mine! You might have already learned that some fabs scoff at multi-design panels and add surcharges. Well, you’ll be delighted to learn that there are more hacker-friendly fabs out there, too.

Developing PCBs In Bulk

So far, I’ve worked on about 300 different PCB designs, with half of them available in my monorepo. I’ve assembled and tested just about half of these. You might guess that this would cost a lot of money, and that assembly would take a fair bit of time, but I have some tricks up my sleeve. For a start, you can easily order PCBs 10-12 times more cheaply if you do multi-panel.

Continue reading “Hacker Tactic: Multi-Design Panels”

A Soviet Cassette Recorder Receiving Some Love

For those of us who lived in the capitalist west during the Cold War, there remains a fascination to this day about the Other Side. The propaganda we were fed as kids matched theirs in describing the awful things on the other side of the wall, something that wasn’t borne out when a decade or so later in the 1990s we met people from the former communist side and found them unsurprisingly to be just like us. It’s thus still of interest to have a little peek into Eastern Bloc consumer electronics, something we have the chance of courtesy of [DiodeGoneWild], who’s fixing a 1980s Soviet cassette recorder.

The model in question is a Vesna 309, and it has some audio issues and doesn’t turn the tape. It gets a teardown, the motor is cleaned up inside, and a few capacitor and pot cleanups later it’s working again. But the interest lies as much in the machine itself as it does in the repair, as it’s instructive to compare with a Western machine of the same period.

We’re told it would have been an extremely expensive purchase for a Soviet citizen, and in some ways such as the adjustable level control it’s better-specified than many of our equivalents. It’s based upon up-to-date components for its era, but the surprise comes in how comparatively well engineered it is. A Western cassette deck mechanism would have been a much more sketchy affair than the substantial Soviet one, and its motor would have been a DC part with a simple analogue speed controller rather than the brushless 3-phase unit in the Vesna. Either we’re looking at the cassette deck for senior comrades only, or the propaganda was wrong — at least about their cassette decks. The full video is below, and if you’re hungry for more it’s not the first time we’ve peered into electronics from the eastern side of the Iron Curtain.

Continue reading “A Soviet Cassette Recorder Receiving Some Love”

An Antenna To Throw You For A Loop

It is one of Murphy’s laws, we think, that you can’t get great things when you need them. Back in the heyday of shortwave broadcasting, any of us would have given a week’s pay for even a low-end receiver today. Digital display? Memory? Digital filtering? These days, you have radios, and they aren’t terribly expensive, but there isn’t much to listen to. Making matters worse, it isn’t easy these days to string wires around in your neighborhood for a variety of reasons. Maybe you don’t have a yard, or you have deed restrictions, or your yard lacks suitable space or locations. This problem is so common that there are a crop of indoor antennas that seem attractive. Since I don’t often tune in shortwave and I don’t want to have to reset my antenna after every storm, I decided to look at the Tecsun AN-48X along with a YouLoop clone from China. Let’s start with the Tecsun. Continue reading “An Antenna To Throw You For A Loop”

A Look At The Intel N100 Radxa X4 SBC

Recently Radxa released the X4, which is an SBC containing not only an N100 x86_64 SoC but also an RP2040  MCU connected to a Raspberry Pi-style double pin header. The Intel N100 is one of a range of Alder Lake-N SoCs which are based on a highly optimized version of the Skylake core, first released in 2015. These cores are also used as ‘efficiency’ cores in Intel’s desktop CPUs. Being x86-based, this means that the Radxa X4 can run any Linux, Windows and other OS from either NVMe (PCIe 3.0 x4) or eMMC storage. After getting his hands on one of these SBCs, [Bret] couldn’t wait to take a gander at what it can do.

Installing Windows 11 and Debian 12 on a 500 GB NVMe (2230) SSD installed on the X4 board worked pretty much as expected on an x86 system, with just some missing drivers for the onboard Intel 2.5 Gbit Ethernet and WiFi, depending on the OS, but these were easily obtained via the Intel site and installed. The board comes with an installed RTC battery and a full-featured AMI BIOS, as well as up to 16 GB of LPPDR5 RAM.

Using the system with the Radxa PoE+ HAT via the 2.5 Gbit Ethernet port also worked a treat once using a quality PoE switch, even with the N100’s power level set to 15 Watt from the default 6. The RP2040 MCU on the mainboard is connected to the SoC using both USB 2.0 and UART, according to the board schematic. This means that from the N100 all of the Raspberry Pi-style pins can be accessed, making it in many ways a more functional SBC than the Raspberry Pi 5, with a similar power envelope and cost picture.

At $80 USD before shipping for the 8 GB (no eMMC) version that [Bret] looked at one might ask whether an N100-based MiniPC could be competitive, albeit that features like PoE+  and integrated RPi-compatible header are definite selling points.