Linux Fu: Miller The Killer Makes CSV No Pest

Historically, one of the nice things about Unix and Linux is that everything is a file, and files are just sequences of characters. Of course, modern practice is that everything is not a file, and there is a proliferation of files with some imposed structure. However, if you’ve ever worked on old systems where your file access was by the block, you’ll appreciate the Unix-like files. Classic tools like awk, sed, and grep work with this idea. Files are just characters. But this sometimes has its problems. That’s the motivation behind a tool called Miller, and I think it deserves more attention because, for certain tasks, it is a lifesaver.

The Problem

Consider trying to process a comma-delimited file, known as a CSV file. There are a lot of variations to this type of file. Here’s one that defines two “columns.” I’ve deliberately used different line formats as a test, but most often, you get one format for the entire file:

Slot,String 
A,"Hello" 
"B",Howdy 
"C","Hello Hackaday" 
"D","""Madam, I'm Adam,"" he said." 
E 100,With some spaces!
X,"With a comma, or two, even"

Continue reading “Linux Fu: Miller The Killer Makes CSV No Pest”

Fiberglass Mesh For Stronger 3D Prints

There are many clever ways to make stronger 3D prints, be they by the use of special slicing algorithms or by unusual filaments. [Brtv-z] has taken a more straightforward tack, by making glass-reinforced prints using painters fiberglass mesh tape.

It’s a laborious technique that involves stopping the print to manually place the fiberglass at each successive millimeter of print. The resulting test piece comes off the print bed festooned with fiberglass mesh, and once it’s been trimmed, he subjects it to some tests which you’ll see in the video below the break(Russian language, but there are subtitles).

The tests are fairly rough and ready involving a hammer (we winced at the hammering in a vice, but of course this piece isn’t forged steel!) and standing on a flat piece of print balanced between two blocks. As you’d expect, the reinforced piece appears the stronger, but these tests would benefit from a calibrated set-up to quantify the strength.

So if you’re of a mind to experiment, this certainly seems like an accessible if rather tedious way to make glass reinforced 3D prints. If you then want to characterize them, remember this can be done with a bit of farmyard engineering if you have nothing better.

Continue reading “Fiberglass Mesh For Stronger 3D Prints”

Mouse Enjoys Its Freedom

Although it took a little while to standardize on the two-button-with-scroll-wheel setup, most computers have used a mouse or mouse-like device to point at objects on the screen since the 80s. But beyond the standard “point and click” features of the mouse, there have been very few ground-breaking innovations beyond creature comforts. At least, until the “Space Mushroom” mouse from [Shinsaku Hiura] hit our tips line.

This mouse throws away most of the features a typical mouse might have in favor of a joystick-like interface that gives it six degrees of freedom instead of the usual two — while still being about mouse-sized and held in the hand. It doesn’t even have a way of mapping motion directly to movements on the screen. Instead, it maps each degree of freedom to a similar movement of the mouse itself using these three joystick sensors physically linked together, with some underlying programming to translate each movement into the expected movement on the screen.

While this might not replace a standard mouse for every use case anytime soon, it does seem to have tremendous benefit in 3D modeling software, CAD, or anything where orienting a virtual object is the primary goal. Plus, since there’s no limit to the number of mice that can be attached to a computer (beyond USB limitations) this mouse could easily be used in conjunction with a normal mouse much like macro keyboards being used alongside traditional ones.

Continue reading “Mouse Enjoys Its Freedom”