Shopping for a cheap VPS

It’s still a bit of a Wild West in terms of VPS providers. There is Amazon’s EC2, Rackspace…. and then there is everybody else. Amazon seems to have a “micro” tier for $2.30/mo…. but you have to pay 3 years in advance for it ($83 or $28/yr). Rackspace, on the other hand will only do managed hosting, which means you’re paying almost 5x the price at $11/mo ($132/yr).

Now if you look at some of the…uh, independent VPS hosts, (most of them are probably resellers) prices typically range from around $5.00-$7.50 ($60-$90/yr). This is a volatile market and I won’t attempt to make any suggestions. Slicehost had a $5/mo deal going if you bought 5 years worth of service, but they were swallowed up whole by rackspace about six months ago, and Linode comes highly recommended by many people, but start around $20/mo ($240/yr). That is not “cheap” tier pricing.

There does seem to be a website that keeps (rough) track of the wild west, they are called lowendbox.com and are able to point out some of the cheaper VPS providers. Sadly most of these places look like fly-by-night operations in comparison to the reasonably priced Amazon EC2 micro tier.

In my case, I need to be able to run a python script 6 times an hour, 18 hours a day. That’s it. Unfortunately my GoDaddy hosting account doesn’t really handle the kind of python functionality I need, and has nerfed quite a bit of the PHP5 functionality as well. So here I am, looking at a proper VPS to run some web apps of mine as a service.

Posted in computing, linux | Leave a comment

Flashlights

Dealing with my second power outage tonight, I thought I would highlight my favorite flashlight of all time, this little Brinkmann milled metal flashlight. It’s not tremendously bright, but it’s always worked for me, and most importantly, the batteries never ever run out, even after being left on by accident for days at a time. The mark of a good flashlight should be threefold:

1. Always turns on
2. Batteries never run out
3. More likely to break things than be broken by them

Most LED flashlights these days satisfy the first two, and while you can find some flashlights with solid metal cases, most are just big enough to grasp, but no more. I feel that like many things, their purpose has been nerfed for the purpose of making it fit in a woman’s handbag (see also: the completely useless “mini” umbrella). This one is large enough to gasp, with a decent sized crown that keeps your fingers from obscuring the lens, and also does a superb job of protecting it.

This thing has been with me through seven countries and countless miles and keeps on going. It’s a solid flashlight that I don’t have to worry about breaking. To cover point number 3, I generally try and separate this flashlight from my laptop or other valuables – it’s very likely it will scratch them.

It looks like they’ve updated the model – it now includes a halogen bulb for additional intensity.

Posted in travel | Tagged , | Leave a comment

Libtcod and Roguelikes

Digging around in a friend’s python scripts and editing them for my own use got me thinking about games like Dwarf Fortress, NetHack and even old space trader games like Elite and Freelancer. Generally, Roguelikes are characterized as being text/console based games, with randomly generated dungeons, and often times randomly generated items (an item named “bubbly potion” might heal you in one game, but kill you in the next).

Perhaps the most interesting Roguelike to come along in recent years has been Dwarf Fortress, which has sort of been defining it’s own incredibly complex, detailed sandbox genre. By complex, I mean that some people complain about playing it at an acceptable rate on modern hardware, as they might complain about a more graphically intense game like Battlefield 3.

That said, the seeming simplicity of the game genre would seem to make it rather easy to code one up from scratch, and make your own customizations as you go along. Alternately, if you could find a NetHack-style Roguelike framework, you could take the “rendering engine”, apply your own back end, and create a different genre of game, like a Space Trader perhaps. I was happy to find the Libtcod library.

Libtcod gives you a huge amount of Roguelike features right out of the box, and in about 500 lines of code, you can be up and about scooting your little @ symbol around the screen, fighting monsters and exploring randomly generated dungeons. There’s a great tutorial that will walk you through getting the @ symbol on the screen, to building a randomized dungeon, to fighting monsters in it. You can find the tutorial here. It includes standard features, and in addition things like 24 bit color, alpha transparency and support for bitmaps. It’s a fancy piece of kit. If you want an idea of what it can do, take a look at and download Pyromancer, a visually stunning game built on top of Libtcod.

What blew me away was that in addition to what he’s done with Libtcod (well, he wrote it, afterall!) – is that someone took this graphically intensive ASCII interface – and then built a windowing system – Umbra – on top of it. Let me take you through this again – console, text only game, color 24 bit text only game, application platform.

Umbra looks and feels like this (skip ahead to the 0:55 mark):

Anyways, I am relearning Python, digging through the tutorial bit by bit. It’s written simply enough that you have a functional game by the end of the tutorial, and is modular enough that you can go about modifying bits without too much fear of permanently breaking other things. There is a C++ version, but I am spending a lot of time digging in to Python code these days, and Python feels faster to modify and test than C.

Posted in Games, computing | Tagged , , , , , , , , , , | Leave a comment

Container Bob – Who is he? And what does he represent?

My buddy just sent me a strange message. When he says things like this, it’s usually wise to take note:

just shy of half way down there’s a paragraph about a guy called “Container Bob”
it is possibly one of the most intriguing paragraphs ever written

The Paragraph, from Wired Magazine, reads:

It was hardly the first fishy shipment to pass through Gioia Tauro. Famously, just six weeks after 9/11, workers there heard noises coming from inside a container being transshipped to Nova Scotia via Rotterdam. Inside, police found an Egyptian-born Canadian carrying a Canadian passport, a satellite phone, a cell phone, a laptop, cameras, maps, and security passes to airports in Canada, Thailand, and Egypt. The container’s interior was outfitted with a bed, a water supply, a heater, and a toilet. Nicknamed Container Bob, the man posted bail in Italian court and was never seen again.

Gioia Tauro, is if you’re curious, is one of the busiest ports in the world, somewhere halfway between the Suez Canal and the Strait of Gibraltar, at the toe of Italy’s famous “boot”.
Only two articles about the topic so far:
Posted in Economics, Politics, travel | Tagged , , | Leave a comment

Britain’s Economic Decline and the rise of Mechanized War

I chat regularly with some British guys. One is from England proper, the other actually has roots in Rhodesia but whose family originated in England. I had commented on the fact that England was pretty wealthy right up until the end of World War 2. Both of them responded almost immediately that WWII had bankrupted England. I took this at face value, and assumed they were exaggerating.

After some long reading, it turns out that whole “lend-lease” program we learned about in high school (and then promptly forgot) was due to the fact that we had already sold Europe all of the weapons they could possibly afford, at which point we extended them an apparent infinite line of credit for further weapons, the debt which we immediately forgave at the end of the war. WWI had depleted a full quarter of England’s wealth, and England was for all intents and purposes bankrupt by the end of WWII. England still had to pay the bills and support their economy transitioning away from a wartime economy, which ended up with the US making what today would have been a half a trillion dollar loan to England. That’s roughly equivalent to 2008′s TARP funds.

So yes, war effectively bankrupted England. This brings an interesting question – with modern, mechanized war, is there still a way to affordably go to war? If you look at the great millitary powers of our history – Alexander the Great, the Mongolians, the Romans, Napoleon – they came out on top, made their country incredibly wealthy and were unarguably the peak of their respective civilzations. Even comparably minor skirmishes in mainland Europe didn’t threaten to fully bankrupt nations the way WWII did for Britan.

I’m sitting here wondering, as we spend $20 billion USD a month in Afghanistan, if mechanized armies are only useful as deterrents against invasion. Mobilizing tanks and occupying countries these days is ludicrously expensive. North Korea has a half-starving army 1-million strong, and have not invaded anyone in nearly 50 years but at the same time, nobody’s tried to invade them either. There’s no way North Korea could leverage their creaking fleet of tanks to invade South Korea without causing their country to implode due to the support costs.

And here we are, finally(?) pulling out of Iraq on threat of losing our legal immunity in their country, I wonder – staring down Iraq over an attempted assassination – can we really afford another 10 year mechanized war?

Posted in Economics, Politics | Tagged , , , , , , , | Leave a comment

Currency Markets

In the last six months I found out Google News has a section called “Currency markets”. I’ve added it and it has been interesting to casually follow the problems of Portugal, Ireland, Italy, Greece and Spain.

Here’s three interesting articles from the last 24 hours, regarding currency markets:

This comes after Greece announces they plan on writing off 50% of their debt. These are some huge moves to secure relatively low-risk currency investments, all over the globe. Last month, investors were buying in to Swiss Francs. The Forex markets have always been busy, but in this case we’re talking 5% of Hungary’s GDP being pulled out by foreign banks, and double digits for Brazil’s GDP. In any other situation, one would classify this as economic warfare.

Somewhere, brilliant people sit in think tanks and help make fiscal policy decisions for huge banks. You wouldn’t see this sort of global landslide shift in movement of wealth to safe havens if very smart people were not predicting a serious event happening in Europe in the near future. I think at this point, it is no longer an “if”, but “when” for Greece and the fallout with the Euro.

Posted in Politics | Tagged , , , , , , , , , , , , | Leave a comment

Windows 8 Developer Preview

I’m writing this on Windows 8 right now. It both installs and runs surprisingly well inside of a virtual machine. Actually, it shouldn’t be that surprising; in this day and age most people would rather cautiously install it on a Virtual Box or VMWare instance rather than set up a physical machine to run it. Clearly, someone at Microsoft is aware of this. The developer preview worked flawlessly out of the box on Virtual Box. Hell, I wish Windows 7 installed as smoothly as Win8 preview did.

So far, I am cautiously optimistic about Win8. I can see purchasing Win8 for my mother. She’s more of a “big, squishy buttons” kind of person, and “the desktop” is about as complex of a concept that she wants to deal with during casual computer use. Poking around with it for about 30 minutes, the “Metro” interface seems awkwardly tacked on – you click “control panel” and it gives you a very Metro looking control panel option, but if you click “advanced options” twice, it begrudgingly kicks you back to the desktop and you get the traditional Win7 control panel.

Chrome installed cleanly, as did Steam. In fact, when I installed Steam on Win8, windows asked me which browser I wanted to use to open web pages in a friendly dialog box. I have a Steam chat bot that I use to run various Battlefield admin commands, written in C#. Windows automatically downloaded and installed the correct .net 3.5 package, and while ChewieBot was designed to run on XP, he runs flawlessly on Win8 as well. So of my need cases, Win8 is 3 for 3.

In fact, the only problem I’ve come across (and this is subjective) is the terribad ribbon interface that’s been included on the Explorer file manager. Granted, the ribbon interface is probably ideal for ham-fisted touchscreen users, but it would be nice for so called power users to still have regular drop down menus when you need to use a mouse.

Posted in Games, computing | Leave a comment

Outfitting a sailboat for cruising

I’m helping my friend go over the logistics of outfitting a boat for cruising/live aboard for a long distance trip now for about three months. I’m trying to organize my thoughts here.

There are three general categories for a liveaboard, or any sailboat really: Floating, Moving, Living. In order from most important to least important.

Most important is floating. If your boat isn’t floating it is sinking. The first thing to check is all of the through hull fittings, then through hull valves. Through hull fittings should be SS or Bronze. Valves should be bronze is possible. Some european manufacturers use nickle coated brass which only has a 5 year lifespan in salt water. All boats leak, particularly through the cabin top. If the boat has a bolt-on keel, it might have the “catalina-smile” — keel-hull separation. Check the hull-deck joint for any obvious signs of leaking. Check the chainplates for signs of cracking or soft spots. Make sure the bilge pump works and there isn’t much (if any) oil leaking in to the bilge. Proactive owners have a counter wired in to their bilge pump to see how often it kicks on.

Next most important is moving. Most any boat in any condition will sail moderately well in a light breeze. This may be why owners let their boats sit and rot but still take them out twice a year, because they can get away with it. This isn’t the problem; the problem is sailing in 35 knot winds and 12 foot seas is the problem. You go from 300 lbs of tension in the halyard to roughly 3000lbs of working  tension. In no particular order you need to look at these systems: Rigging (cracked swaging, rusting wire), mast (cracks near rivets, corrosion/bubbling paint near winches), steering (wheel steering wire/chain, lubing), sails (hugely variable in quality depending on the previous owner(s)), the variety of sails (2-3 jibs, main needs 3 reefing points), then there is the engine (time for a new paragraph)

Engine needs to be diesel. An Atomic 4 (gas) at the end of the day is hard to get parts for and is in it’s sunset years in terms of repairability on the go and very few parts suppliers. Engine power is only at the top of the RPM range which is not where you want to rev a 30+ year old engine. The engine should be able to push the boat at hull speed against a 2 knot current in 20mph winds. For a 30′ boat that means you are looking at a 18-30hp diesel, preferably on the higher end of that range. You’re probably looking at a Yanmar, Perkins or Volvo. It shouldn’t leak too much oil, spark plugs should look good, compression should be good (80+psi), oil should be the correct color, should have “explosive” acceleration when manually adjusting the throttle. If it stutters in forward but not reverse, the piston rings are shot (rebuild engine) or valves are sticking (remove the head, replace headgasket while you’re at it), the reason why reverse works is due to the reduction gear in the drive system. Check the engine for “freeze plugs” and make sure they aren’t cracked/”used”. They aren’t actually called freeze plugs, the previous owner just wants you to think that. If the engine needs new freeze plugs there’s a good chance the block is cracked somewhere. Check for oil leaks going in to the bilge – the oil will clog the electric bilge pump faster than you can say “where’s all this water coming from?”. Obviously the engine should start right up, batteries + cables should be in good condition.

New paragraph. Running rigging (ropes) will all have to be replaced. Expect to pay $1.00-$1.50/ft. Expect to buy 200 feet of rope. The reason you’re buying the boat is because the old owner got bored of it, and after 3-7 years of the ropes sitting exposed to the elements, they will need to be replaced. This doesn’t mean you can’t use the lines as spares, but there’s no way you’ll want to be caught dead in a squall with your jib line snapped going to wind. Winches should move freely and easily and should not even give the indication that they might start sticking in six months. Parts are getting harder to come by and you can expect to spend $400 for a very basic two speed winch. All the blocks (pulleys) should run easily (try this after spraying them with some fresh water from a hose). All of them. Blocks are $18-55 generally so you should be very happy with how they work.

Living! You’re going to be spending a lot of time on this boat, what works and what doesn’t? You’re going to want a quarter berth; it provides superior interior storage compared to a double lazarette. The table in the salon should fold down in to a full or queen size bed. All berths need at least 6’6″ of space. Don’t settle for 6’1″; that extra 3″ of spaces makes all the difference in the world. The V-berth should have a hatch in the ceiling. Too many boats put the hatch in the head instead. This creates poor ventilation. Quite a few larger boats also have a second hatch, in the main salon for good ventilation. The head should work well, the holding tank and the hoses attached to it should be in stunningly good shape. There shouldn’t be a bathtub ring around the bottom of the boat. That is a good indicator that any encapsulated wood (tabbed in bulkheads, etc) is possibly rotten below that ring mark. Kitchen appliances should all be there and all work. They should be propane. Your boat should have an external propane locker.

You’ll need (want) a GPS unit; don’t skimp on the $300 model; get the $550-800 model, you will use it a lot. You’ll want a backup hand held model as well. Depth finder should work, as should the water speed indicator. The water pump should work, and again, the bilge pump should work. As should the manual pump out. Either the upholstery is perfect, or your girlfriend/wife is going to demand you reupholster, so factor that in to your budget. The VHS marine radio should work on the first try, or needs to be replaced. Stereo needs an ipod aux input line or similar, or needs to be replaced. All of the doors and cabinets should have metal locking latches that work and do not break.

You should expect to spend $5500-7000 to outfit for cruising. This does not include safety equipment, spinnaker equipment or a dinghy.

Posted in travel | Tagged , , , | 2 Comments

Robert Fulghum

I don’t normally repost other people’s work, especially in full, but we were lucky enough to have Robert Fulghum speak at my middle school near Seattle back in the mid-90s. It’s rare that someone says something you remember from a year ago, but exceedingly rare that an entire story pops in to your head from a decade ago. This is the story he told in front of my school one day.

A story is told by Robert Fulghum, a Unitarian minister, about a seminar he once attended in Greece. On the last day of the conference, the discussion leader walked over to the bright light of an open window and looked out. Then he asked if there were any questions. Fulghum laughingly asked him what was the meaning of life. Everyone in attendance laughed and stirred to leave. However, the leader held up his hand to ask for silence and then responded “I will answer your question.” He took his wallet out of his pocket and removed a small round mirror about the size of a quarter. Then he explained “When I was a small child during World War II, we were very poor and we lived in a remote village. One day on the road, I found the broken pieces of a mirror. A German motorcycle had been wrecked in that place. I tried to find all the pieces and put them together, but it was not possible, so I kept the largest piece. This one. And by scratching it on a stone, I made it round. I began to play with it as a toy and became fascinated by the fact that I could reflect light into dark places where the sun could never shine. It became a game for me to get light into the most inaccessible places that I could find. I kept the little mirror, and as I grew up, I would take it out at idle moments and continue the challenge of the game.

As I became a man, I grew to understand that this was not just a child’s game, but a metaphor of what I could do with my life. I came to understand that I am not the light or the source of the light. But light – be it truth or understanding or knowledge – is there, and it will only shine in many dark places if I reflect it. I am a fragment of a mirror whose whole design and shape I do not know. Nevertheless, with what I have, I can reflect light into the dark places of this world – into the dark places of human hearts – and change some things in some people. Perhaps others seeing it happen will do likewise. This is what I am about. This is the meaning of my life.” (1)

Do we reflect the light of Christ into the darkness of other people’s lives? Will the world be a better place for our having been in it?

From It Was On Fire When I Lay Down On It, by Robert Fulghum. Ivy Books, 988.

Posted in Uncategorized | Leave a comment

The Albatross Around AOL’s Neck

Actually that’s a misnomer. But let’s look at digital music, MP3s, digital distribution and ecommerce for a moment. Apple is a $40 bn company, reshaping their OS (Lion) to reflect their mobile devices (originally the iPod).

From largest to smallest, you have desktops, laptops, iPads, iPhones, iPod Touches, iPods, and mini-iPods. iPods started out working with the desktops via itunes. Then came the miniaturized iPods. Then the now legendary iPhone, which also worked with iTunes. The iPod Touch was launched, which at the time was probably an exploratory push in to tablet territory. By this time, the iTunes Store had been active for some time and Apple was reaping the profits of a fully functional online music retail ecosystem.

Now the iPad exists. I doubted it originally, but Apple is now looking at triple digit growth this year (in a recession, no less), almost exclusively from iPad sales. Board members have commented that it is even eating in to their laptop sales (traditionally 50% of their sales). This is hugely in part due to the fact that iTunes works with everything they sell with a battery in it.

So what does this have to do with AOL? They’re just a third rate news outlet that owns Huffington Post, right? Well at the time of AOL’s aquestion of Nullsoft, maker of Winamp, they had just been purchased by TimeWarner. Prior to that acquisition, Winamp was the de-facto MP3 player from early 1997 when it was released, and awareness of the MP3 was just starting for early adopters, until iTunes took over the PC market sometime in 2005. Physical MP3 players appeared in 2008 with the Diamond Rio 300 PMP, about the size of a cassette walkman.

Then, in March 2000, Justin Frankel released Gnutella on Nullsoft’s ftp servers, the original distributed file sharing platform, precursor to Limewire, Bearshare, and perhaps most famously, BitTorrent. I should know; I wrote the original user manual for it. AOL hastily pulled the files from their servers, but the program had already proliferated, and reverse engineered versions of the program rapidly became available. BitTorrent came along a year later but didn’t hit the big time until around 2003.

So AOL had already bought the original PC MP3 player for $60 million; and Justin Frankel had given them the first bona fide digital distribution platform for free. They’ve sat on this technology for almost 14 years while Apple built their own system from scratch and then built a world class music store/digital distribution platform that is pulling in tens of billions of dollars a year and likely helped coin the usage of “ecosystem” in terms of software integration.

Next came the me-toos of digital music, then free streaming digital radio such as Pandora, Last.fm, Spotify, Mog and more. Yahoo, Microsoft and Best Buy even jumped in to the ring. Netflix streaming, then Hulu and more joined in for streaming video. AOL had it first though. They had the market share, the (seed) of technology to distribute it, and perhaps most importantly, through TimeWarner, they had the licencing to pull it off.

Winamp was more or less perfected by the end of 1998 with full plugin support. Hundreds if not thousands of plugins allowed you to do nearly anything with it. For certain users, it still stands above iTunes in terms of use. Yet AOL failed to ever come close to the $60 million they paid for the program. Someone had seen the future, invested heavily in digital media, but whoever they handed it off to never figured it out. They were expecting someone else to come along with the idea and buy them out, when they’d had the tools to do it all along.

Posted in Arts, computing, music | Tagged , , , , , , , , , , , | 1 Comment