Archive for the ‘X-Geek’ Category

Stratospheric photos

Monday, August 23rd, 2010

My friends were ultimately successful in their balloon launch yesterday! Tanner Lovelace posted a collection of near-space photographs on his Flickr page.

Amazing work, folks!

Update: Here’s a nice video slideshow of the launch.

High-altitude balloon launch

Saturday, August 21st, 2010

A group of friends is launching a helium balloon to the upper reaches of the atmosphere. Josh Shaffer of the News and Observer wrote a story on it in this morning’s paper.

I am not involved in the project (I’m at the beach now), which kills me because I’ve wanted to do this for a long time. The best I can do is what everyone else can do, which is track the balloon online. Those in Raleigh can see the launch at Horseshoe Farm Park at 8 AM Sunday.

Update 23 August: Success! See the results!

Default dns names

Tuesday, August 17th, 2010

Once upon a time I knew how to configure BIND to send a canned reply for lookups to undefined IP addresses. Thus, a lookup of 192.168.1.16, if not assigned to a hostname, would return as “dhcp-16.example.com.”

Now I can’t remember what BIND option actually did this. Any other sysadmin geeks out there know how to do this?

Update: Found it! It’s the $GENERATE feature. Cool!

Fixing GNU Mailman to handle mimetypes

Wednesday, August 11th, 2010

I host a few neighborhood email lists on my Linux server running the excellent GNU Mailman list server software. Part of my setup involves stripping pictures/documents from emails and storing them in the list archives instead. This way 300 neighbors don’t get a 5 MB attachment emailed out to them: if anyone wants to view the picture/document all they have to do is click on a link in the original email and it will be fetched from the archives.

Tonight I noticed that the MIME type image/pjpeg wasn’t being properly parsed by Mailman’s Scrubber.py script. Having dealt with MIME type problems before, I suspected that the problem wasn’t with Mailman itself but the operating system’s definition of the MIME type.

Sure enough, checking the /etc/mime.types file revealed there was no image/pjpeg type defined. A little more Internet hunting brought me to this post on the Mailman list, confirming the missing mime.type info as the culprit:

On Jan 6, 2010, at 8:18 AM, Ralf Hildebrandt wrote:

> * Ralf Hildebrandt :
>> I have a list where the attachments are removed and stored on the
>> mailman server itself.
>>
>> This works like a charm, but SOME image attachments of the type:
>>
>> image/pjpeg
>>
>> are stored as “attachment.bin” instead of “attachment.jpg”
>>
>> Why?
>> Example below:
>
> adding “image/pjpeg” to /etc/mime.types fixed that:
>
> image/jpeg jpeg jpg jpe
> image/pjpeg jpeg jpg jpe

This is because Mailman uses Python’s mimetypes module to generate the file
name, and I believe that consults /etc/mime.types where available. Since
before you edit Python didn’t know anythig about image/pjpeg, it assumed it was
random binary data, hence the .bin suffix.

-Barry

From what I can find out, image/pjpeg is a type that Microsoft products choose to use instead of the image/jpeg that the rest of the world uses. I guess those crazy Redmonders are just trying to keep us on our toes, eh?

How Skype gets around firewalls

Sunday, July 25th, 2010


Here’s a fascinating description of how the Skype VoIP application can poke holes through firewalls – bypassing your network security. What’s even more eye-opening is that there is little that can be done to block it.

Anyone who has used the popular Internet telephony software Skype knows that it works as smoothly behind a NAT firewall as it does if the PC is connected directly to the Internet. The reason for this is that the inventors of Skype and similar software have come up with a solution.

Naturally every firewall must also let packets through into the local network – after all the user wants to view websites, read e-mails, etc. The firewall must therefore forward the relevant data packets from outside, to the workstation computer on the LAN. However it only does so, when it is convinced that a packet represents the response to an outgoing data packet. A NAT router therefore keeps tables of which internal computer has communicated with which external computer and which ports the two have used.
(more…)

TestDisk for undeleting files

Saturday, July 24th, 2010

My son Travis accidentally deleted a digital movie he took with his camera. He was so disappointed, so I took up the task of trying to undelete the file. If his camera’s SD card was formatted with Linux’s ext3 filesystem his file would be impossible to retrieve.

Fortunately, all digital camera cards are formatted with the tried-and-true MS-DOS vfat filesystem, which makes undeleting files trivial. I even found a Linux tool called TestDisk that can easily retrieve deleted files. In seconds, I had fetched Travis’s deleted file.

If you are a Linux-head like me and need to bring a file back from the dead, try TestDisk!

Could Raleigh’s greenway paths be fiber paths?

Saturday, July 17th, 2010

Capital Area Greenway

I was thinking again (I know, I know. I should stop that bad habit) about Raleigh and the potential for a municipal Internet network (or a Google one). It occurred to me that the miles and miles of greenways Raleigh enjoys would make the perfect place to run a fiber backbone across our city. We’ve got greenways stretching into every corner of our city and more are being built and stitched-together every year. Why not make burying conduit part of every greenway construction project going forward?
(more…)

Is Google stifling municipal broadband investment?

Thursday, July 15th, 2010

I was thinking more about the Google Fiber project today. It occurred to me that Google might actually be doing more to put the brakes on municipal broadband than Time Warner Cable and its cronies ever could.

As long as the possibility is out there that Google may build a network in a certain city, that city won’t be investing in its own broadband infrastructure. Google is guaranteed to disappoint the huge majority of applicants with its selection of a few cities, but nevertheless I can forsee city officials everywhere holding up Google as an excuse not to spend money on developing their own broadband. “Let’s hold off until we hear from Google,” they’ll say.

Google would do well in furthering its “fiber everywhere” cause by not keeping everyone in suspense.

Google creates fiber Internet resource site

Thursday, July 15th, 2010

In response to the overwhelming demand that 1,100 communities showed for the Google Fiber project, Google created the Fiber for Communities website. This site is a collection of resources that is intended to pave the way for communities to acquire fiber Internet.

I really like how Google has positioned this new effort. They know that their fiber project will only serve a handful of communities, leaving many to fend for themselves. By creating this site, Google shows it is committed to sharing its findings and supporting those communities who want to make this jump.
(more…)

Integrating QEMU with your Linux desktop

Tuesday, July 13th, 2010

Here are some handy tips for making QEMU work much better with your Linux desktop. You can now park QEMU on an unused workspace and not have to click in your QEMU window to use your mouse in a QEMU guest.

Integrating QEMU a bit with your desktop

Presently you have to run QEMU with a slightly lower resolution than your real desktop or run it in full-screen mode to get a decent experience out of it. With a patch I have written and a few tricks it can work a bit better.

via Integrating QEMU a bit with your desktop.