Linux Fu: Moving /usr

Linux has changed. Originally inspired by Unix, there were certain well understood but not well enforced rules that everyone understood. Programs did small things and used pipes to communicate. X Windows servers didn’t always run on your local machine. Nothing in /usr contributed to booting up the system.

These days, we have systemd controlling everything. If you run Chrome on one display, it is locked to that display and it really wants that to be the local video card. And moving /usr to another partition will easily prevent you from booting up, unless you take precautions. I moved /usr and I lived to tell about it. If you ever need to do it, you’ll want to hear my story.

A lot of people are critical of systemd — including me — but really it isn’t systemd’s fault. It is the loss of these principles as we get more programmers and many of them are influenced by other systems where things work differently. I’m not just ranting, though. I recently had an experience that brought all this to mind and, along the way, I learned a few things about the modern state of the boot process. The story starts with a friend giving me an Intel Compute Stick. But the problems I had were not specific to that hardware, but rather how modern Linux distributions manage their start-up process.

Continue reading “Linux Fu: Moving /usr”

TinySA Is A $49 Spectrum Analyzer

The NanoVNA made network analyzers cheap enough for almost everyone. Now you can get a $49 spectrum analyzer to go with it. Is it worth it? Watch [IMSAI Guy]’s video after the break for his opinion. From the tinySA.org website:

  • Spectrum Analyzer with two inputs, high-quality MF/HF/VHF input for 0.1MHZ-350MHz, lesser quality UHF input for 240MHz-960MHz.
  • Switchable resolution bandpass filters for both ranges between 2.6kHz and 640kHz
  • Color display showing 290 scan points covering up to the full low or high-frequency range.
  • Input Step attenuator from 0dB to 31dB for the MF/HF/VHF input.
  • When not used as Spectrum Analyzer it can be used as Signal Generator, MF/HF/VHF sinus output between 0.1MHZ-350MHz, UHF square wave output between 240MHz-960MHz.
  • A built-in calibration signal generator that is used for automatic self-test and low input calibration.
  • Connected to a PC via USB it becomes a PC controlled Spectrum Analyzer
  • Rechargeable battery allowing a minimum of at least 2 hours portable use

A lot of cheap scopes and PC-based scopes can do spectrum analysis, too, of course, so this isn’t as exotic as a VNA. But at this price, having a dedicated instrument might be worth it to you, especially if you don’t care about frequencies below 100 kHz.

There are some limitations, of course, but the price is right. [IMSAI Guy] shows a few oddities that he didn’t like, but overall, it seemed like a good value. If you have a modern scope it may already do this function, or you might be able to do a software solution. If you only need audio frequencies and you want novelty, try some ping pong balls Continue reading “TinySA Is A $49 Spectrum Analyzer”

An Analog IC Design Book Draft

[Jean-Francois Debroux] spent 35 years designing analog ASICs. He’s started a book and while it isn’t finished — indeed he says it may never be — the 180 pages he posted on LinkedIn are a pretty good read.

The 46 sections are well organized, although some are placeholders. There are sections on design flow and the technical aspects of design. Examples range from a square root circuit to a sigma-delta modulator, although some of them are not complete yet. There are also sections on math, physics, common electronics, materials, and tools.

Continue reading “An Analog IC Design Book Draft”

Olaf Lets An ESP32 Listen To The Music

The joys of overengineering a simple gift. [Joren] wanted to create a dress for his daughter’s fourth birthday that would react with lights in sequence for a song from Frozen. The dress and an LED strip, along with a digital microphone and a battery were easy to procure. But how to make it all work? An ESP32 did the trick.

While the project’s name–Olaf–sounds like it was from Frozen, according to the GitHub page it actually means Overly Lightweight Acoustic Fingerprinting. Right. However, as the name implies, it can learn to identify any sound you want.

Continue reading “Olaf Lets An ESP32 Listen To The Music”

SDR Transmitting Gets The Power

Most hobby-grade software defined radio setups don’t transmit. Of the few that do, most of them put out anemic levels around one milliwatt or so. If you want to do something outside of the lab, you’ll need an amplifier and that’s what [Tech Minds] shows how to do in a recent video. (Embedded below.)

The video covers LimeSDR, HackRF, and the Pluto SDR, although the amplifiers should work with any transmitter. The SPF5189Z module is quite cheap and covers 50 MHz to 4 GHz, amplifying everything you throw at it. The downside is that it will amplify everything you throw at it, even parts of the signal you don’t want, such as spurs and harmonics.

Continue reading “SDR Transmitting Gets The Power”

Video Compression Explainer — Like We’re Five-Year-Olds

[Ottverse] has an interesting series in progress to demystify video compression. The latest installment promises to explain discrete cosine transforms as though you were five years old.

We’ll be honest. At five, we probably didn’t know how to interpret this sentence:

…the Discrete Cosine Transform takes a set of N correlated (similar) data-points and returns N de-correlated (dis-similar) data-points (coefficients) in such a way that the energy is compacted in only a few of the coefficients M where M << N.

Still, the explanation is pretty clear and we really liked the analogy with the spheres and the stars in a constellation.

Continue reading “Video Compression Explainer — Like We’re Five-Year-Olds”

A Tale Of Tutor Texts

Have you ever had one of those books that let you choose your own adventure? You know, the book will say “The bully tells you to hand over the secret message. If you want to run away, turn to page 48. If you want to fight him, turn to page 70.” While this is normally a staple of children’s literature, there were a series of training books known as Tutor Texts that used the format to teach technical topics.

In fact, one of these books was my first introduction to computer programming more years ago than I care to admit. But it wasn’t just computer programming. There were titles from the same publisher about trigonometry, slide rules, and even how to play bridge. I own four of these old books and it got me to thinking about how we deliver information on the web. Maybe these books were ahead of their time.

Continue reading “A Tale Of Tutor Texts”