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”

The Challenges Of Shipping From China – Life Of A Flailing Tube Man

Last summer was an exercise in developing a completely different kind of product from my normal wheelhouse; a costume. My Halloween costume had been so popular that I decided to have a go at commercializing it, and that took me on a path into manufacturing that I hadn’t yet taken; shipping by boat from China. The short version is it’s a ridiculously difficult mess. Continue reading “The Challenges Of Shipping From China – Life Of A Flailing Tube Man”

The Largest Aircraft Ever Built Will Soon Launch Rockets To Space

Deep in the mojave, the largest aircraft ever made will soon be making test flights. This is the Stratolaunch, and it’s measured the largest to ever fly based on wingspan. The Stratolaunch was constructed out of two 747s, and is designed for a single purpose: as a mobile launch platform for orbital rockets.

There are a couple of ways to measure the size of an aircraft. The AN-225 Mriya has the highest payload capacity, but only one of those was ever built (though that might change soon). The Spruce Goose was formerly the largest aircraft by wingspan, but it only flew once, and only in ground effect. The Stratolaunch is in another category entirely. This is an aircraft that contains some of the largest composite structures on the planet. Not only can you park a school bus between the fuselages of the Stratolaunch, you can strap that school bus to the plane and carry it up to 30,000 feet.

But why build this astonishing aircraft? The reasons go back more than a decade, and the end result is a spaceplane.

Continue reading “The Largest Aircraft Ever Built Will Soon Launch Rockets To Space”

Selling Everything, Moving To Asia, And Setting Up A Company

Today I don’t have a hack for you. I have a story, one that I hope will prove useful to a few of you who are considering a move to Asia to chase opportunities here.

Seven years ago, I was a pretty stereotypical starving hacker. I had five jobs: A full-time dead-end job in biotech, and four part-time or contract gigs that were either electronic hardware design or programming. I worked perhaps 50 hours a week, and was barely past the poverty line – I was starting to wonder why I spent so much time in school. I saw the economic growth in Asia as an attractive but risky opportunity.

Check out that image above…France? No, this is Shenzhen and let’s face it: many exciting things are made there (even the copies). After a short visit to the region, I decided to take that risk but not in Shenzhen. I sold everything I owned and moved from Canada to Vietnam and started a company. Over the last seven years things have worked out well, although I certainly wish I had known more about the process before I got on a plane. This article is about the general path I took to get where I am. Obviously I don’t know the legal framework of every country in Asia, but speaking in generalities I hope that I can cover some interesting points for the curious and adventurous.

Continue reading “Selling Everything, Moving To Asia, And Setting Up A Company”

Two Bit Circus Took The Tech We Love And Built An Amusement Park

Carnival games are simple to pick up, designed to provide a little bit of entertainment in exchange for your game ticket. Given that the main point is just to have some silly fun with your friends, most game vendors have little reason to innovate. But we are people who play with microcontrollers and gratuitous LEDs. We look at these games and imagine bringing them into the 21st century. Well, there’s good news: the people of Two Bit Circus have been working along these lines, and they’re getting ready to invite the whole world to come and play with them.

“Interactive Entertainment” is how Two Bit Circus describe what they do, by employing the kinds of technology that frequent pages of Hackaday. But while we love hacks for their own sake here, Two Bit Circus applies them to amuse and engage everyone regardless of their technical knowledge. For the past few years they’ve been building on behalf of others for events like trade shows and private parties. Then they worked to put together their own event, a STEAM Carnival to spread love of technology, art, and fun. The problem? They are only temporary and for a limited audience, hence the desire for a permanent facility open to the public. Your Hackaday scribe had the opportunity to take a peek as they were putting on the finishing touches.

Continue reading “Two Bit Circus Took The Tech We Love And Built An Amusement Park”

The First Vending Machine Hacked Liquor Laws: The Puss And Mew

It is fair to say that many technologies have been influenced by human vices. What you may not realize is that vending machines saw their dawn in this way, the first vending machine was created to serve booze. Specifically, it was created to serve gin, the tipple of choice of the early 18th century. it was created as a hack to get around a law that made it harder to sell alcoholic drinks. It was the first ever vending machine: the Puss and Mew.

Continue reading “The First Vending Machine Hacked Liquor Laws: The Puss And Mew”

Kathleen Booth: Assembling Early Computers While Inventing Assembly

Imagine having to program your computer by rewiring it. For a brief period of time around the mid-1940s, the first general-purpose electronic computers worked that way. Computers like ENIAC initially had no internal storage for code. Programming it involved manipulating thousands of switches and cables. The positions of those switches and cables were the program.

Kathleen Booth began working on computers just as the idea of storing the program internally was starting to permeate through the small set of people building computers. As a result, she was one of the first programmers to work on software and is credited with inventing assembly language. But she also got her hands dirty with the hardware, having built a large portion of the computers which she programmed. She also did some early work with natural language processing and neural networks. And this was all before 1962, making her truly a pioneer. This then is her tale.

Continue reading “Kathleen Booth: Assembling Early Computers While Inventing Assembly”