hack

I invented a word today

Tagged:  •    •  

disasswimble (v) To take a portable elecronic device apart so that it might dry after an unfortunate dunking

Thanks to @jerith for formulating the definition and the true life incident that lead to us discussing it.

disasswimble (v) To take a portable elecronic device apart so that it might dry after an unfortunate dunking.

Dell Vostro A860 NIC and Wi-Fi issues in Ubuntu (Intrepid)

Tagged:  •    •    •    •  

Soon after I had installed Ubuntu 8.10 on my new laptop I realised that something was not well with the networking.

Compiling Emacs

Tagged:  •    •    •    •  

So, I'm back to trying to compile emacs-nt again, having discovered that the required W32 headers are in fact conveniently supplied by Mingw (albeit in a different package). Now I'm getting an "Unknown Processor" error. gcc -dumpmachine tells me I have an arm processor on my PC... perhaps this is the problem o_0

UPDATE: It turns out the Symbian SDK also provides a gcc, and this was in my path before the Mingw one. Hence the strange architecture.

Emacs as an IDE

Tagged:  •    •    •  

At work we recently started using an Eclipse-based IDE. It integrates with a gdb-based debugger, but everything is very unstable and I have to constantly power-cycle the box and programmer that I'm working with.

Since I've been playing with emacs the last few months, I decided to see whether I can get the compilation and debugging working from within emacs. (pause for effect)

Yes, indeed it is possible. (applause)

Beaming files across a network

Tagged:  •  

The following script copies files given in a text file. It preserves the tree structure, and copies it to a base directory. It uses a nifty mkdir-like function that takes a lot of the nitty-gritty out of the process.

import os
import os.path
import shutil

def makepath(path):

""" creates missing directories for the given path and
returns a normalized absolute version of the path.

- if the given path already exists in the filesystem
the filesystem is not modified.

- otherwise makepath creates directories along the given path

Syndicate content