chxo internets RSS

A network of memes,
by Chris Snyder

See also
CHXO Internet
twitter.com/64

Archive

Sep
1st
Wed
permalink

EC2 on EBS: Taming the Amazon

I upgraded my old Debian 4 AMI to Debian 5 yesterday, and switched it from S3 storage to the more permanent (and more easily clone-able!) EBS.

With EBS-backed instances, we can finally have a boot drive that doesn’t go away if the instance gets hosed! There is dancing in my street.

Create a bootable EBS AMI from a running instance is more pro, but Creating an Amazon EC2 EBS AMI from a running instance is more helpful. Take your pick, but do not use dd to copy an active file system. My sshd_config ended up with a bit of syslog in it somehow, what a nightmare.

permalink

Beware of the default Apache 2 config for PHP

Ilia Alshanetsky points out that AddHandler is the wrong directive to use for executable file types like PHP, because Apache could execute the file bad.php.jpeg (I haven’t tested this yet, but plan to).

The safer directive is apparently AddType:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Jul
20th
Tue
permalink

Firefox Audio Fail

You would think that if your browser doesn’t support playing audio/mp3 content using an html5 <audio> tag, it would do the right thing and fall back to the fallback markup under it.

Consider the following html5 markup:

<audio controller=”controller”>
  <source src=”sound.mp3” type=”audio/mp3”>
  <a href=”sound.mp3”>Click here to play audio</a>
</audio> 

I’m just getting started with html5, but it seems to me that a browser should embed an audio controller if sources of type audio/mp3 are supported, and fall back to the link if not.

Firefox (which doesn’t support mp3) embeds the controller, but shows a big red X because it can’t play the file.

So I ask you, internets, am I misinterpreting the standard?

Jul
7th
Wed
permalink
Jun
21st
Mon
permalink
I call it a Parks Remix. For obvious reasons. The park green is #2d802d. See previous post for the original map colors.

I call it a Parks Remix. For obvious reasons. The park green is #2d802d. See previous post for the original map colors.

permalink
New MTA NYC Transit Subway map, June, 2010.
Why are the parks olive? Is anyone else bothered by the un-greening of New York parks?
See next post for a greener version.

New MTA NYC Transit Subway map, June, 2010.

Why are the parks olive? Is anyone else bothered by the un-greening of New York parks?

See next post for a greener version.

Jun
11th
Fri
permalink

List of blocked ports in Safari

One of my colleagues likes to use port 6667 for his development environment. As in, when he tests his code, he connects to a url like https://dev.example.org:6667/

He recently noticed that Safari and Google Chrome restrict access to that port. Apparently when you allow a browser to connect to arbitrary ports, an attacker can craft a form that will submit arbitrary data to any port. I mean, duh, right? That’s why internet services should require authentication, something we’ve known since the 90s. But Mozilla’s page on the topic gives the example of submitting email directly to a mail server behind your firewall, which is apparently a problem for someone, somewhere. So they block a bunch of ports in the browser.

Since you can’t disable the port restrictions in WebKit (like you can in Firefox), developers should know what ports are blocked so that they don’t try to put web services on them. You can find the full list of restricted ports in Safari by looking at the WebKit source code file KURL.cpp. Search for “blockedPortsList”. It’s currently at line 1705 but that will change.

Looks like my colleague will need to pick a new favorite port number, like 5234 or something.

May
29th
Sat
permalink

Desalinization Update

IEEE Spectrum explores Eight [Present and Future] Technologies for Drinkable Seawater. Portfolios like this are why I subscribe to Spectrum. Way to scratch that infrastructure nerd itch!

I especially like the idea of the microbial fuel cell, which takes advantage of excess electrons generated by contaminant-eating bacteria.

I mean, whoa. Contaminant-eating bacteria that generate electricity. I think we have a replacement dream technology for flying cars in the 21st Century!

Apr
17th
Sat
permalink

Multiple file upload, the HTML5 way

This is rocking my world:

<input type="file" name="upload[]" multiple="true">

It does exactly what you think it does, allowing a single file input to upload multiple files in one request, without js or flash.

Available today in Firefox, Safari, and Chrome. Thank you!

Apr
15th
Thu
permalink

Chrome isn’t a secure browser yet

In Chrome Phishing, Robert Hanson blows the lid off the “Google knows what it’s doing so Chrome is secure” idea. He argues that Chrome has a long way to go before it’s a mature browser, free of easily-exploitable holes.

Remember the old username-looks-like-web-site-in-the-url trick? http://gmail.google.com@evil.net/ is an example.

Try it in Chrome. Now try it in Firefox. Security is hard, even for Google.