Voided warranty? Liberated is a so much nicer word…

Biltema webcam diagnostics

Here are some diagnostics and logfiles for my Biltema webcam – it obviously doesn’t look like the photo when you get it from Biltema, this one has been warranty liberated and slightly modified.. I’m using Ubuntu 10.04 and Cheese as a webcam application.


(more…)

Manual System Restore fixed “hopeless” XP

A really interesting laptop fell in my hands the other day, it miserably failed to start XP properly – neither normal boot or safe mode worked. Normal boot crashed to a BSOD (blue screen of death) and stated:
“Stop: c0000218 {Registry File Failure} The registry Cannot Load The Hive (File): \SystemRoot\System32\Config\Software Error”

Safe mode just hung at loading mup.sys. Recovery console didn’t work, cause it wouldn’t accept empty as an administrator password (hey – it’s not my laptop, I actually do use a password on my admin account) and booting the XP install cd to do a repair installation was also useless – the installation procedure didn’t even find the older XP installation. Google, Microsoft and random nerds over the net suggested only one thing: Reinstallation.
(more…)

Rescue of my Ubuntu PPC partition

Managed to do something incredibly silly (not to unusual) – got a warning that my /dev/sdf2 was unmountable due to some fsck error – recommended course of action was manually fsck.ext3 testing.
Fsck testing is something always shrouded in dark magic – “may cause massive data loss”, always seems far more dangerous than text messaging on my mobile while driving intoxicated through rush hour traffic.

Anyway – I ran fdisk (I was slightly drunk) to find out which partition was messing around and was told that something was confused about the partition table – do a write to correct fdisk so cunnigly tricked me.
Fdisk and “w” caused an empy partition table to be written to /dev/sdf – thank you oh so very much.
500gb of precious, precious internet material (no pr0n, promise, promise) all gone into binary heaven.

(more…)

Webcam on a servo

Just a little write-up from the old page, lest I forget….

Opened up

Opened up

Mounted on top

Mounted on top

(more…)

Music

Music is good for you. Emilie Autumn is good for you.

Bash for you and me

check every file in a directory if it’s not actuallly a jpg, if so rename it to the same name.jpg

for fil in $(file * | grep JPEG | awk ‘{print $1}’ | sed s/://); do mv $fil $fil.jpg; done;

simple wget loop – nice for leeching stuff..

for ((i=1;i<100;i++)); do wget www.archive.net/$i -r -l2; done;

ping a server to find out if the internetconnection is still around
(takes an ip as argument,should be placed a file I suppose)

#!/bin/bash
ping -c 2 $1 1>/dev/null
if [ "$?" = 1 ]
then
echo “`date` : Network down” >>/home/kitty/ping-log
else
echo “`date` : Network is still up” >>/home/kitty/ping-log
fi

batch rename of files – this example replaces spaces with “-”.  Can be used to replace other stuff in filenames

for filnamn in *; do mv “$filnamn” “`echo $filnamn|sed -e ‘s/\ /-/’`”; done