PLA: The Plastic That Grows

If you’ve ever taken a coast-to-coast car trip across the United States, the one thing that’s sure to impress you is the mind-bogglingly immense amount of corn that we grow here. If you take the northern route — I’ve done it seven times, so I know it by heart — you’ll see almost nothing but corn from Ohio to Montana. The size of the fields is simply staggering, and you’re left wondering, “Do we really eat all this corn?”

The simple answer is no, we don’t. We grow way more corn than we can eat or, once turned into alcohol, drink. We do feed a lot to animals, many of which subsequently end up as burgers or pork chops. But even after all that, and after accounting for exports, we still have a heck of a lot of corn to put to work. There are lots of industrial uses for this surplus corn, though, and chances are pretty good you’ve got an ear or two worth coiled up next to your 3D-printer, in the form of polylactic acid, or PLA.

Continue reading “PLA: The Plastic That Grows”

Doing One Thing, Well: The UNIX Philosophy

The Unix operating system has been around for decades, and it and its lookalikes (mainly Linux) are a critical part of the computing world. Apple’s operating system, macOS, is Unix-based, as are Solaris and BSD. Even if you’ve never directly used one of these operating systems, at least two-thirds of all websites are served by Unix or Unix-like software. And, if you’ve ever picked up a smart phone, chances are it was running either a Unix variant or the Linux-driven Android. The core reason that Unix has been so ubiquitous isn’t its accessibility, or cost, or user interface design, although these things helped. The root cause of its success is its design philosophy.

Good design is crucial for success. Whether that’s good design of a piece of software, infrastructure like a railroad or power grid, or even something relatively simple like a flag, without good design your project is essentially doomed. Although you might be able to build a workable one-off electronics project that’s a rat’s nest of wires, or a prototype of something that gets the job done but isn’t user-friendly or scalable, for a large-scale project a set of good design principles from the start is key.

Continue reading “Doing One Thing, Well: The UNIX Philosophy”

Apollo 12 Was The Lucky Number Among Apollo Disasters

I recently saw Apollo 13 again — this time with the score played live by the Houston Symphony. What a crazy coincidence that thirteen has long been considered an unlucky number and that Apollo 13 would be the one we almost lost. However, Apollo 12 almost became a disaster which — after the ordeal with flight 13 — was largely forgotten.

When all was said and done, Apollo 12 would result in a second manned moon landing in November 1969, just four months after Apollo 11. Commanded by Pete Conrad, Alan Bean accompanied Conrad to the surface while Richard Gordon, Jr. kept the getaway vehicle running. But less than a minute after launch something happened that could have been a disaster. Lightning struck the vehicle.

Continue reading “Apollo 12 Was The Lucky Number Among Apollo Disasters”

Ask Hackaday: Managing Inspiration

For most of us, hacking is a hobby, something to pass a few idle hours and satisfy our need to create. Precious few of us get to live the dream of being paid to tinker; most of us need some kind of day job to pay the bills and support our hacking habits. This necessarily creates an essential conflict, rooted in the fact that we all only have 24 hours to spread around every day: I need to spend my time working so I can afford to hack, but the time I spend working to earn money eats away at my hacking time. That’s some catch, that Catch-22.

From that primary conflict emerges another one. Hacking is a hugely creative process, and while the artist or the author might not see it that way, it’s true nonetheless. Unless we’re straight-up copying someone else’s work, either because they’ve already solved the same problem we’re working on and we just need to get it done, or perhaps we’re just learning a new skill and want to stick to the script, chances are pretty good that we’re hitting the creative juices hard when we build something new. And that requires something perhaps even more limiting than time: inspiration. How you manage inspiration in large part dictates how productive you are in your creative pursuits.

Continue reading “Ask Hackaday: Managing Inspiration”

Intro To Docker: Why And How To Use Containers On Any System

If you have your ear even slightly to the ground of the software community, you’ll have heard of Docker. Having recently enjoyed a tremendous rise in popularity, it continues to attract users at a rapid pace, including many global firms whose infrastructure depends on it. Part of Docker’s rise to fame can be attributed to its users becoming instant fans with evangelical tendencies.

But what’s behind the popularity, and how does it work? Let’s go through a conceptual introduction and then explore Docker with a bit of hands-on playing around.

Continue reading “Intro To Docker: Why And How To Use Containers On Any System”

FOSSCON 2018: Developing The FreedomBox

The modern Internet can be a dangerous place, especially for those who might not have the technical wherewithal to navigate its pitfalls. Whether it’s malware delivered to your browser through a “drive-by” or online services selling your data to the highest bidder, its gotten a lot harder over the last decade or so to use the Internet as an effective means of communication and information gathering without putting yourself at risk.

But those are just the passive threats that we all have to contend with. What if you’re being actively targeted? Perhaps your government has shut down access to the Internet, or the authorities are looking to prevent you from organizing peaceful protests. What if you’re personal information is worth enough to some entity that they’ll subpoena it from your service providers?

It’s precisely for these sort of situations that the FreedomBox was developed. As demonstrated by Danny Haidar at FOSSCON 2018 in Philadelphia, the FreedomBox promises to help anyone deploy a secure and anonymous Internet access point in minutes with minimal user interaction.

It’s a concept privacy advocates have been talking about for years, but with the relatively recent advent of low-cost ARM Linux boards, may finally be practical enough to go mainstream. While there’s still work to be done, the project is already being used to provide Internet gateways in rural India.

Continue reading “FOSSCON 2018: Developing The FreedomBox”

Make Your Python Prettier With Decorators

Many Pythonistas are familiar with using decorators, but far fewer understand what’s happening under the hood and can write their own. It takes a little effort to learn their subtleties but, once grasped, they’re a great tool for writing concise, elegant Python.

This post will briefly introduce the concept, start with a basic decorator implementation, then walk through a few more involved examples one by one.

Continue reading “Make Your Python Prettier With Decorators”