Getting the Huawei E160 to work with Linux
Tue, 09 Sep 2008 16:03 - Daniel - Computer - Comments (8)
Last week I singed a mobile internet contract and received a Huawei E160 USB modem with it. This is pretty much just a Huawei E220 without the cable and an additional card reader. Getting it to work with Linux is pretty simple.
If you connect it at boot up, it will be in the correct mode right away.
If you connect it while the OS is running, it won't be in the right mode. You have to run usb_modeswitch to use it. The E160 shares the settings with the E220.
I tried to use udev to do this automatically, but this doesn't work yet. Maybe I'll find a solution for this.
Tags:
4chan download script
Sun, 31 Aug 2008 22:44 - Daniel - Other - Comments (19)
Downloads all the images from a 4chan image thread. I will probably regret downloading anything from 4chan, but that's not my problem.
Usage: 4chandl <4chan thread url>
Download the script
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: `basename $0` <4chan thread url>"
exit 1
fi
echo "4chan downloader"
echo "Downloading untill canceled or 404'd"
LOC=$(echo "$1" | egrep -o '([0-9]*).html' | sed 's/\.html//g' )
echo "Downloading to $LOC"
if [ ! -d $LOC ]; then
mkdir $LOC
fi
cd $LOC
while [ "1" = "1" ]; do
TMP=`mktemp`
TMP2=`mktemp`
wget -O "$TMP" "$1"
if [ "$?" != "0" ]; then
rm $TMP $TMP2
exit 1
fi
egrep 'http://(img|cgi).4chan.org/[a-z0-9]+/src/(cb-nws/)?([0-9]*).(jpg|png|gif)' "$TMP" -o > "$TMP2"
cat "$TMP2" | sed 's!/cb-nws!!g' > "$TMP"
wget -nc -i $TMP
rm $TMP $TMP2
echo "Waiting 30 seconds befor next run"
sleep 30
done;
Tags: download 4chan shell bash wget grep
Frea, Champion of the Naaru
Sat, 30 Aug 2008 19:34 - Daniel - World of Warcraft - Comments (0)

Yesterday I got the title Champion of the Naaru for my little druid.
Getting the title is pretty hard, considering I had to tank all the heroic instances with only a few epics and not that much tanking experience. Especially the Shattered Halls and Shadow Labyrinth runs took us a long time.
Still, I think the title is worth the effort.
Tags:
New WotLK Build (Update)
Sat, 30 Aug 2008 04:41 - Daniel - World of Warcraft - Comments (0)

Blizzard updated WotLK to 3.0.2.8885 today. This was the first test under real conditions for my automatic update system for my Wrath of the Lick King beta patch mirror.
What should I say? It worked nearly flawless. The next update can come even without me :D.
Also, I expect traffic for this month to be around 700 to 800 GB. I hope that it will go down a bit in September, or I have to take the mirror offline after I hit the traffic cap.
Update
The server apparently crashed at 11:20 today. I guess the connections from CoBlitzProxy are too much for Apache to handle. I mean, we are talking about 30 or more connections per second at peak times. The major cause was probably too many apache processes running, taking up all the memory.
Anyway, I tuned Apache a bit to use less memory, but that only helped a bit. The load was still very high. I was probably only a matter of time until the server crashes again.
Because of this I installed lighty. I hope lighty will do better than apache and handles those connections without using too much CPU power or memory.
Tags:
WotLK mirror
Mon, 25 Aug 2008 14:33 - Daniel - Other - Comments (0)
Tags: