Linux Fu: Databases Are Next-Level File Systems

It is funny how exotic computer technology eventually either fails or becomes commonplace. At one time, having more than one user on a computer at once was high tech, for example. Then there are things that didn’t catch on widely like vector display or content-addressable memory. The use of mass storage — especially disk drives — in computers, though has become very widespread. But at one time it was an exotic technique and wasn’t nearly as simple as it is today.

However, I’m surprised that the filesystem as we know it hasn’t changed much over the years. Sure, compared to, say, the 1960s we have a lot better functionality. And we have lots of improvements surrounding speed, encoding, encryption, compression, and so on. But the fundamental nature of how we store and access files in computer programs is stagnant. But it doesn’t have to be. We know of better ways to organize data, but for some reason, most of us don’t use them in our programs. Turns out, though, it is reasonably simple and I’m going to show you how with a toy application that might be the start of a database for the electronic components in my lab.

You could store a database like this in a comma-delimited file or using something like JSON. But I’m going to use a full-featured SQLite database to avoid having a heavy-weight database server and all the pain that entails. Is it going to replace the database behind the airline reservation system? No. But will it work for most of what you are likely to do? You bet. Continue reading “Linux Fu: Databases Are Next-Level File Systems” →

ISS Artificial Gravity Study Shows Promise For Long Duration Spaceflight

The International Space Station is humanity’s most expensive gym membership.

Since the earliest days of human spaceflight, it’s been understood that longer trips away from Earth’s gravity can have a detrimental effect on an astronaut’s body. Floating weightless invariably leads to significantly reduced muscle mass in the same way that a patient’s muscles can atrophy if they spend too much time laying in bed. With no gravity to constantly fight against, an astronauts legs, back, and neck muscles will weaken from disuse in as little as a week. While this may not pose an immediate problem during spaceflight, astronauts landing back on Earth in this physically diminished state are at a higher risk of injury.

Luckily this problem can be largely mitigated with rigorous exercise, and any orbiting vessel spacious enough to hold human occupants for weeks or months will by necessity have enough internal volume to outfit it with basic exercise equipment such as a treadmill or a resistance machine. In practice, every space station since the Soviet Union’s Salyut 1 in 1971 has featured some way for its occupants to workout while in orbit. It’s no replacement for being on Earth, as astronauts still return home weaker than when they left, but it’s proven to be the most practical approach to combating the debilitating aspects of long duration spaceflight.

Early NASA concept for creating artificial gravity.

Of course, there’s an obvious problem with this: every hour spent exercising in space is an hour that could be better spent doing research or performing maintenance on the spacecraft. Given the incredible cost of not just putting a human into orbit, but keeping them there long-term, time is very literally money. Which brings us back to my original point: astronauts spending two or more hours each day on the International Space Station’s various pieces of exercise equipment just to stave off muscle loss make it the world’s most expensive gym membership.

The ideal solution, it’s been argued, is to design future spacecraft with the ability to impart some degree of artificial gravity on its passengers through centripetal force. The technique is simple enough: just rotate the craft along its axis and the crew will “stick” to the inside of the hull. Unfortunately, simulating Earth-like gravity in this way would require the vessel to either be far larger than anything humanity has ever launched into space, or rotate at a dangerously high speed. That’s a lot of risk to take on for what’s ultimately just a theory.

But a recent paper from the University of Tsukuba in Japan may represent the first real steps towards the development of practical artificial gravity systems aboard crewed spacecraft. While their study focused on mice rather than humans, the results should go a long way to codifying what until now was largely the stuff of science fiction.

Continue reading “ISS Artificial Gravity Study Shows Promise For Long Duration Spaceflight” →

Intel’s ATX12VO Standard: A Study In Increasing Computer Power Supply Efficiency

The venerable ATX standard was developed in 1995 by Intel, as an attempt to standardize what had until then been a PC ecosystem formed around the IBM AT PC’s legacy. The preceding AT form factor was not so much a standard as it was the copying of the IBM AT’s approximate mainboard and with it all of its flaws.

With the ATX standard also came the ATX power supply (PSU), the standard for which defines the standard voltage rails and the function of each additional feature, such as soft power on (PS_ON).  As with all electrical appliances and gadgets during the 1990s and beyond, the ATX PSUs became the subject of power efficiency regulations, which would also lead to the 80+ certification program in 2004.

Starting in 2019, Intel has been promoting the ATX12VO (12 V only) standard for new systems, but what is this new standard about, and will switching everything to 12 V really be worth any power savings? Continue reading “Intel’s ATX12VO Standard: A Study In Increasing Computer Power Supply Efficiency” →

Electric Vehicles Could Be The Grid Storage Solution We’ve Been Dreaming Of

As nation states grapple with the spectre of environmental and economic losses due to climate change, we’ve seen an ever greater push towards renewable energy sources to replace heavier polluters like coal and natural gas. One key drawback of these sources has always been their intermittent availability, spurring interest in energy storage technologies that can operate at the grid level.

With the rise in distributed energy generation with options like home solar power, there’s been similar interest in the idea of distributed home battery storage. However, homeowners can be reluctant to make investments in expensive batteries that take years to pay themselves off in energy savings. But what if they had a giant battery already, just sitting outside in the driveway? Could electric vehicles become a useful source of grid power storage? As it turns out, Ford wants to make their electric trucks double as grid storage batteries for your home.

Continue reading “Electric Vehicles Could Be The Grid Storage Solution We’ve Been Dreaming Of” →

Hackaday Podcast 121: Crazy Bikes, DIY Flip Dots, EV Mountain Climbing, And Trippy Tripterons

Hackaday editors Mike Szczys and Elliot Williams discuss a great week of hardware hacks. Two delightful mechanical hacks focus on bicycles: one that puts a differential on the front fork, and the other a flywheel between the knees. Elliot was finally impressed by something involving AI — a machine-learning guitar pedal. You’ve heard of a delta bot? The tripteron is similar but with a single rail for the three arms. After a look at flip dots, tiny robots, and solar air planes we close the show geeking out about racing electric vehicles up a hill and stories of the hardware that has made closed captions possible.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (55 MB or so.)

Places to follow Hackaday podcasts:

Continue reading “Hackaday Podcast 121: Crazy Bikes, DIY Flip Dots, EV Mountain Climbing, And Trippy Tripterons” →

Mariner 4: Our First Up-Close Look At Mars

In the grand scheme of things, it wasn’t all that long ago that the entire body of knowledge of our solar system was built solely with Earth-based observations. Turning first their naked eyes to the heavens, and then a succession of increasingly complex and sensitive optical and radio telescopes gathering light from all across the spectrum, our astronomically curious forbears did a commendable job working out the broad strokes of what’s going on in the neighborhood.

But there’s only so much information that can be gathered by instruments operating at the bottom of a roiling ocean of air, so when the opportunity to send instruments to our planetary neighbors began to be possible some 60 years ago, scientists started planning how to accomplish it. What resulted was the Mariner program, a series of interplanetary probes launched between 1962 and 1973 that performed flyby missions of the inner planets.

The list of accomplishments of the Mariner program is long indeed, and the number of firsts achieved by its ten spacecraft is impressive. But it is Mariner 4, the first flyby mission of Mars, which set the stage for a lot of the science being done on and around Mars today, and the first mission where NASA wisely took a “pics or it didn’t happen” approach to planetary science. It was the first time a TV camera had traveled to another world, and it was anything but a sure bet that it would pay dividends.

Continue reading “Mariner 4: Our First Up-Close Look At Mars” →

Know Audio: Start At The Very Beginning

A lot of our projects make noise. It can be something as simple as a microcontroller driving a small speaker or a truly ambitious Hi-Fi project, but common to all of them is the desire to get that sound out in as audible and high-quality a manner as possible. We’ve been known to make fun of the more preposterous side of the Hi-Fi world at times, but behind it all there’s a basis of solid and provable audio engineering that can be brought to bear on almost any project involving sound and electronics. Perhaps it’s time to devote some time to a series exploring the topic, and what better place to start than the ultimate destination for all that sound. Any Hi-Fi is only as good as the ears of the person listening to it, so in out journey through the world of audio that’s where we’ll start. Continue reading “Know Audio: Start At The Very Beginning” →