Archimedes Would Have Known Better If He Could Count To A Million

Today is March 14th, or Pi Day because 3.14 is March 14th rendered in month.day date format. A very slightly better way to celebrate the ratio of a circle’s circumference to its diameter is July 22nd, or 22/7 written in day/month order, a fractional approximation of pi that’s been used for thousands of years and is a better fit than 3.14. Celebrating Pi Day on July 22nd also has the advantage of eschewing middle-endian date formatting.

But Pi Day is completely wrong. We should be celebrating Tau Day, to celebrate the ratio of the circumference to the radius instead of the diameter. That’s June 28th, or 6.283185…. Nonetheless, today is Pi Day and in the absence of something truly new and insightful — we’re still waiting for someone to implement a spigot algorithm in 6502 assembly, by the way — this is a fantastic opportunity to discuss something tangentially related to pi, the history of mathematics, and the idea that human knowledge builds upon itself in an immense genealogy stretching back to the beginning of history.

This is our Pi Day article, but instead of complaining about date formats, or Tau, we’re going to do something different. This is how you approximate pi with the Monte Carlo method, and how anyone who can count to a million can get a better approximation of one the fundamental constants of the Universe than Archimedes.

Continue reading “Archimedes Would Have Known Better If He Could Count To A Million”

Stephanie Kwolek: Saving Lives With Kevlar

Like most accidents, it happened in an instant that seemed to last an eternity. I had been felling trees for firewood all afternoon, and in the waning light of a cold November day, I was getting ready to call it quits.

Almost a really bad day in the woods.

There was one tiny little white pine sapling left that I wanted to clear, no thicker than my arm. I walked over with my Stihl MS-290, with a brand new, razor sharp chain. I didn’t take this sapling seriously — my first mistake — and cut right through it rather than notching it. The tree fell safely, and I stood up with both hands on the saw. Somehow I lost my footing, swiveled, and struck my left knee hard with the still-running chainsaw. It kicked my knee back so hard that it knocked me to the ground.

In another world, that would likely have a been a fatal injury. I was alone, far from the house, and I would have had mere minutes to improvise a tourniquet before bleeding out. But as fate would have it, I was protected by my chainsaw chaps, full of long strands of the synthetic fiber Kevlar.

The chain ripped open the chaps, pulled the ultra-strong fibers out, and instantly jammed the saw. I walked away feeling very stupid, very lucky, and with not a scratch on me. Although I didn’t realize it at the time,  I owed my life to Stephanie Kwolek.

Continue reading “Stephanie Kwolek: Saving Lives With Kevlar”

Lost In Space: How Materials Degrade In Space

Hackaday readers are well aware of the problems caused by materials left exposed to the environment over time, whether that be oxidized contact pads on circuit boards or plastics made brittle from long exposure to the sun’s UV rays.

Now consider the perils faced by materials on the International Space Station (ISS), launched beginning in 1998 and planned to be used until 2028. That’s a total of 30 years in an environment of unfiltered sunlight, extreme temperatures, micrometeoroids, and even problems caused by oxygen. What about the exposure faced by the newly launched Tesla Roadster, an entirely non-space hardened vehicle on a million-year orbit around the sun? How are the materials which make up the ISS and the Roadster affected by the harsh space environment?

Fortunately, we’ve been doing experiments since the 1970s in Earth orbit which can give us answers. The missions and experiments themselves are as interesting as the results so let’s look at how we put materials into orbit to be tested against the rigors of space.

Continue reading “Lost In Space: How Materials Degrade In Space”

How To Test A B-52 Against EMP: Project ATLAS-I

Audacious times generate audacious efforts, especially when national pride and security are perceived to be at stake. Such was the case in the 1950s and 1960s, with the Space Race that started with a Russian sphere whizzing around the planet and ended with Neil Armstrong’s footprint on the Moon. But at the same time, other efforts were underway to answer big questions of national import, such as determining how durable the United States’ strategic assets were, and whether they could withstand the known effects of electromagnetic pulse (EMP), a high-intensity burst of electromagnetic energy that could potentially disable a plane in flight. Finding out just what an EMP could do to a plane would take big engineering and a large forest’s worth of trees.

Continue reading “How To Test A B-52 Against EMP: Project ATLAS-I”

Linux Fu: Regular Expressions

If you consider yourself a good cook, you may or may not know how to make a souffle or baklava. But there are certain things you probably do know how to do that form the basis of many recipes. For example, you can probably boil water, crack an egg, and brown meat. With Linux or Unix systems, you can make the same observation. You might not know how to set up a Wayland server or write a kernel module. But there are certain core skills like file manipulation and editing that will serve you no matter what you do. One of the pervasive skills that often gives people trouble is regular expressions. Many programs use these as a way to specify search patterns, usually in text strings such as files.

If you aren’t comfortable with regular expressions, that’s easy to fix. They aren’t that hard to learn and there are some great tools to help you. Many tools use regular expressions and the core syntax is the same. The source of confusion is that the details beyond core syntax have variations.

Let’s look at the foundation you need to understand regular expression well.

Continue reading “Linux Fu: Regular Expressions”

The Pontoon Bridge Being Floated As An NYC Transit Fix

New York City’s L train carries about 400,000 passengers a day, linking Manhattan and Brooklyn and bringing passengers along 14th Street, under the East River, and through the neighborhoods of Williamsburg, Bushwick, Ridgewood, Brownsville, and Canarsie. About 225,000 of these passengers pass through the Canarsie Tunnel, a two-tube cast iron rail tunnel built below the East River between Manhattan and Brooklyn in 1924. Like many other New York City road and subway tunnels, the Canarsie Tunnel was badly damaged when Hurricane Sandy’s storm surge inundated the tubes with million of gallons of salt water. Six years later, the impending closure of the tunnel is motivating New Yorkers to develop their own ambitious infrastructure ideas.

Continue reading “The Pontoon Bridge Being Floated As An NYC Transit Fix”

Evolution Of The Worlds Oldest Computer Festival

The Trenton Computer Festival (TCF) doesn’t have the name recognition of big technology conferences like DEF CON or HOPE. It’s not even as well known as smaller more localized conferences like DerbyCon, ShmooCon, or the Hackaday Superconference. In fact, there’s a good chance that most readers have never even heard of TCF. But despite not holding a place in the hacker lexicon, TCF has plenty to boast about. Its played host to technology luminaries from Bill Gates to Richard Stallman, and now in its 43rd year, holds the title as the longest continually running technology festival in the world.

Bill Gates giving the keynote at TCF in 1989

When originally conceived in 1976, the show was devoted to the dawning age of the personal computer, but since then has evolved into a celebration of technology as a whole. When TCF kicks off on March 17th, there won’t be a media blitz or huge corporate sponsorship. There won’t be a simultaneous online stream of the event, and the only badges worn by speakers or attendees will be of the paper variety.

What you will find at TCF is a full schedule of talks given by people who are passionate about technology in its varied forms. These run the gamut from quantum computing to lock picking, from Arduino to Space Shuttle avionics.

At the heart of TCF is co-founder and current Chair Dr Allen Katz. I recently had the opportunity to speak with Dr Katz about the challenges of running a conference of this type, and the secret to keeping relevant in a wildly changing technology landscape.

Continue reading “Evolution Of The Worlds Oldest Computer Festival”