Ikiwiki is the superior blogging solution

Posted in Uncategorized on April 18, 2009 by razorvine

Ikiwiki is:

- Faster than WordPress and doesn’t require mysql

- Has better code formating (even though syntax highlighting is still missing)

- Has convenient support for graphiv and math formulas.

This is why i moved this blog here.

Colinux upgrade woes

Posted in Linux with tags , , on April 13, 2009 by razorvine

I just upgraded from colinux 0.7.3 to 0.7.4. The upgrade went smoothly, but udev screwed up my network interfaces on the next boot.

udev: renamed network interface eth1 to eth2
udev: renamed network interface eth0_rename to eth1

Apparently, the upgrade changed the MAC address of my TAP adapter. To solve the issue, i edited udev’s rules file:

diakonos  /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x10ec:0x8029 (ne2k-pci)
#Comment out old rule
#SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="52:54:00:12:34:56", NAME="eth0"

# PCI device 0x1a55:0x0005 (conet)
#adjust NAMEs in new rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:7d:99:00:00",
 ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1a55:0x0005 (conet)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:e1:57:98:e0",
 ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

Cool Art

Posted in Uncategorized on April 12, 2009 by razorvine

mykeamend Steampunk with Lovecraftian influences.  Too bad that there aren’t any high resolution pics available for free…

themiskatonicarchive More of the same.

Pin configurations of various hardware devices

Posted in Bookmarks on April 8, 2009 by razorvine

Useful programmes

Posted in Uncategorized on April 8, 2009 by razorvine

Shiriuspad Convenient note managment and reminder system

Nexusfile Feature rich, orthodox, file manager. Way better than the Windows Explorer.

Notepad++ Best editor i’ve ever tried.

PuttyCyg Putty shell for cygwin. Being fully resizeable,  and allowing easy copy and paste makes it a must have for me.

Winxmove Allows to move windows with ALT+Leftclick, and resize them with ALT+Righclick.

Creating directional graphs with graphviz/dot

Posted in Uncategorized on April 6, 2009 by razorvine

Format:

digraph G{
"Node"->"nextNode";
"Node1"->"nextNode1";
}

Command:

dot -Tpng pathToGraphFile > output.png

Result:

Find large directories

Posted in Linux on March 30, 2009 by razorvine
du -hmx | sort -n -r > ~/du1.txt

Gives folders by size (in MB), sorts them, and prints them to ~/dul.txt

from http://tech.givemethe.net/node/76.

Finding all matches to a Regular Expression

Posted in Perl with tags on March 30, 2009 by razorvine

@matches= $string =~ m/$regex/g;

Debian upgrade woes

Posted in Linux with tags , , on March 24, 2009 by razorvine

Debian is a very reliable OS, in general, but when it lets you down, it lets you fall through all trapdoors right into the spike trap.

I upgraded my debian etch server to the latest stable release (lenny), with the result that my encrypted harddrive failed to mount during the next startup. Unfortunate, because it contained both the root and the home partition. Debian helpfully offered me a busybox session, but with no useful programmes available for bug fixing, it might as well have displayed “HAHA, you’re screwed!!”, instead.

I downloaded the  grml livecd, after knoppix failed to start x  windows on my ancient hardware. GRML is a really nice console based livecd, and it allowed me to mount my harddrive with the following commands:

cryptsetup luksOpen /dev/sda5 debian

/dev/sda5 obviously is my harddrive, whereas debian is the name for the lv group, which is to be created.

cryptsetup decrypts the logical volumes.

vgchange -ay

The above command creates volumes in the group that cryptsetup created. These can now be mounted:

mount /dev/mapper/debian-root /mnt/debian

debian-root is one of the lvs on my hard drive.

Of course, it flat out refused to deal with my network card, sqashing any attempt to introduce a default route with a “no such process” message. So now i have access to all data, but no means to back it up. It’s just that kind of day, today.

Try as i might, networking just won’t budge.  Fortunately, there’s USB.

modeprobe usb-storage

Loaded the required kernel module, after i ensured that the device had been found via

tail /var/log/dmesg

Mounting the usb drive required little effort, afterwards:

mount /dev/sdb1 /mnt/sdb1

Now i can finally start to back up all files on the debian disk and try to figure out what went wrong during the upgrade…

Electronic Letters on Computer Vision and Image Analysis

Posted in Bookmarks, Computer Vision with tags , on March 17, 2009 by razorvine