Linux Fu: Mixing Bash And Python

Although bash scripts are regularly maligned, they do have a certain simplicity and ease of creation that makes them hard to resist. But sometimes you really need to do some heavy lifting in another language. I’ll talk about Python, but actually, you can use many different languages with this technique, although you might need a little adaptation, depending on your language of choice.

Of course, you don’t have to do anything special to call another program from a bash script. After all, that’s what it’s mainly used for: calling other programs. However, it isn’t very handy to have your script spread out over multiple files. They can get out of sync and if you want to send it to someone or another machine, you have to remember what to get. It is nicer to have everything in one file.

Continue reading “Linux Fu: Mixing Bash And Python”

TypeMatrix EZ-Reach 2030 Is Better Than Your Laptop Keyboard

Maybe you’re not ready to take the leap into a full-on ergonomic split keyboard. That’s okay, that’s cool, that’s understandable. They’re weird! Especially ones like my Kinesis Advantage with the key bowls and such. But maybe your poor pinkies are starting to get tired and you’re ready to start using your thumbs for more than just the space bar. Or you want to be able to type ‘c’ properly, with your middle finger.

In that case, the TypeMatrix could be the keyboard for you. Or maybe for travel you, because it’s designed as a quasi-ergonomic, orthonormal layout travel keyboard to pair with your laptop, and as such it sits directly over a laptop keyboard without blocking the track pad. (How do people use those things, anyway?)

Of course, you could use this as a desktop keyboard as well, although it’s unfortunate that Control and Shift are stuck on the pinkies. More about that later.

First Impressions

When I saw this keyboard on eBay, I was attracted by two things: the layout, and the dedicated Dvorak light. (And, let’s be honest — the price was right.) I’ve always found myself generally turned off by chocolate bar-style ortholinear keebs because they’re so incredibly cramped, but this one seemed a more acceptable because of the slight split.

The first thing I noticed was the fantastic number pad integration. The different colored keycaps are a nice touch, because the gray makes the number pad stand out, and the red Delete is easy to find since Num Lock is squatting in the upper right corner. Why does Delete always feel like an afterthought on compact keebs? I also like the location of the arrows, and it makes me think of the AlphaSmart NEO layout. Unfortunately, it comes at the cost of burying the right hand Enter down in no-man’s land where you can’t exactly hit it blindly with great accuracy right away. If only you could swap Shift and Enter without messing up the number pad!

Continue reading “TypeMatrix EZ-Reach 2030 Is Better Than Your Laptop Keyboard”

After Years Of Uncertainty, Stratolaunch Flies Again

When Paul Allen founded Stratolaunch in 2011, the hope was to make access to space cheaper and faster. The company’s massive carrier aircraft, the largest plane by wingspan ever to be built, would be able to carry rocket-powered vehicles up into the thin upper atmosphere on short notice under the power of its conventional jet engines. The smaller vehicle, free of the drag it would incur in the denser atmosphere closer to the ground, could then be released and continue its journey to space using smaller engines and less propellant than would have been required for a conventional launch.

But Allen, who died in October of 2018, never got to see his gigantic plane fly. It wasn’t until April 13th, 2019 that the prototype carrier aircraft, nicknamed Roc, finally got to stretch its 117 meter (385 feet) wings and soar over the Mojave Desert. By that time, the nature of spaceflight had changed completely. Commercial companies were putting payloads into orbit on their own rockets, and SpaceX was regularly recovering and reusing their first stage boosters. Facing a very different market, and without Allen at the helm, Stratolaunch ceased operations the following month. By June the company’s assets, including Roc, went on the market for $400 million.

Finally, after years of rumors that it was to be scrapped, Allen’s mega-plane has flown for the second time. With new ownership and a new mission, Stratolaunch is poised to reinvent itself as a major player in the emerging field of hypersonic flight.

Continue reading “After Years Of Uncertainty, Stratolaunch Flies Again”

Genetically Modified Mosquitos: Biohacking For Disease Prevention

Many years ago, I took a summer trip to the Maryland shore with some friends. One of my buddies and I got bored with playing football on the beach, so we decided to take a hike on one of the many trails back into the wooded area behind the dunes. At the trailhead we noticed a prominent sign, warning about the presence of “very aggressive mosquitos” and not to enter without first applying ample insect repellent. We scoffed at the warning as only young idiots could and soldiered on, bare-legged and confident that we’d be fine.

About three minutes into our hike, a small group came pelting down the trail in a panic. “It’s true! Turn back!” they shouted as they flew past us. Undeterred, or at least unwilling to appear that way to each other, we pressed on, only to discover a few minutes later that we were making a substantial blood sacrifice to the next generation of mosquitos on Assateague Island. We couldn’t bear more than a few seconds before turning tail and running back to the beach and jumping into the ocean to get rid of the last few dozen bloodsuckers.

I learned a valuable lesson from that experience, as well as developing a deep and abiding hatred of mosquitos. It turns out I’m in good company — pretty much everyone hates mosquitos, which are not just a nuisance but can be downright dangerous to be around. But if tests with genetically engineered mosquitos currently underway in Florida turn out well, we may be able to finally turn the tide against mosquito-borne diseases, simply by killing all the females before they ever reach adulthood.

Continue reading “Genetically Modified Mosquitos: Biohacking For Disease Prevention”

Ingenuity Completes Fourth Flight On Mars, Gets A New Mission

It’s the same on Mars as it is here — just when you’re getting used to your job, the bosses go and change things up.

At least that’s our read on the situation at Jezero crater, where the Mars Ingenuity helicopter has just had its mission upgraded and extended. In a Friday morning press conference, the Ingenuity flight team, joined by members of the Perseverance team and some NASA brass, made the announcement that Ingenuity had earned an extra 30 sols of flight time, and would be transitioned from a mere “technology demonstrator” to an “operations demonstration” phase. They also announced Ingenuity’s fourth flight, which concluded successfully today, covering 266 meters and staying airborne for 117 seconds.

Continue reading “Ingenuity Completes Fourth Flight On Mars, Gets A New Mission”

Solar And Wind Could Help Support Ethiopia’s Grand Dam Project

Ethiopia is in the midst of a major nation-building project, constructing the Grand Ethiopian Renaissance Dam (GERD). Upon completion, GERD will become the largest hydropower plant in Africa, providing much needed electricity for the country’s growing population.

The project dams the Blue Nile, a river which later flows into neighbouring Sudan, where it merges with the White Nile and then flows on to Egypt. Like all rivers that flow across political boundaries, concerns have been raised about the equitable management of the water resources to the benefit of those upstream and down. Too much water dammed upstream in GERD could have negative effects on Egyptian agriculture reliant on river flows, for example. Efforts are ongoing to find a peaceful solution that suits all parties. Recently, suggestions have been made to supplement the dam’s power output with solar and wind to minimise disruption to the river’s users.

Continue reading “Solar And Wind Could Help Support Ethiopia’s Grand Dam Project”

Alone, But Not Lonely: Remembering Astronaut Michael Collins

With many of the achievements of the Space Race now more than half a century behind us, it’s no wonder that we’re steadily losing the men who rode the rockets of the Mercury, Gemini, and Apollo programs into space. They were all very much in their primes at the time, but no matter what you’ve accomplished in life, even if it includes a trip to the Moon, time eventually catches up to you.

Still, it was quite a shock to learn today that astronaut Michael Collins passed away today at the age of 90. Collins made his trip to the Moon aboard Apollo 11, the mission which would see his crewmates Neil Armstrong and Edwin “Buzz” Aldrin descend to the surface in the Lunar Module Eagle and take the historic first steps on its surface in July of 1969.

Continue reading “Alone, But Not Lonely: Remembering Astronaut Michael Collins”