quote 27 Jul
XML is like violence — if it doesn’t solve your problems, you are not using enough of it
text 20 Jul 32GB Vertex Raid0 vs 60GB Vertex2 Raid0

Yes they are faster. Yes I can “feel” a difference. To be frank, things were stupid fast before, now it’s just ridiculous.

claire:~# echo 3 > /proc/sys/vm/drop_caches ;time dd of=/dev/null if=/var/lib/mysql/ibdata1 count=2000 bs=512k
2000+0 records in
2000+0 records out
1048576000 bytes (1.0 GB) copied, 2.05422 s, 510 MB/s

real    0m2.063s
user    0m0.001s
sys     0m0.376s

Real Benchmarks: http://global.phoronix-test-suite.com/index.php?k=profile&u=msch-29322-25051-20258

link 20 Jul eats»
link 20 Jul precision in statistics»
text 22 Jun <3 ngrep

“I wonder what memcached is up to…”

ngrep -W none -T -d any "^(get|set|delete|END|STORED|VALUE|DELETED)" port 11211 | awk '{print $1 " " $2}'

“Thanks ngrep!”

link 18 May That old copier still holds a picture of your backside»
text 18 May Chromium in Debian Unstable/Testing

If you’re unsatisfied with how fast your current browser eats up all your memory, you should probably be running Mr. Leaky himself, chromium-browser. Luckily, he’s fast enough to make us forget about all that wasted memory. But what about profiles and storing our cache in ram? Read on!

First off, let’s install this bad boy:

echo "" >> /etc/apt/sources.list
echo "#chromium" >> /etc/apt/sources.list
echo "deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu lucid main" >> /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu lucid main" >> /etc/apt/sources.list

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4E5E17B5
apt-get update  && apt-get install chromium-browser

Sweet! The following is my launcher script that enables profiles and moves the cache dir to ram:

#!/bin/bash
PROFILE=$1
if [ ! $PROFILE ]
then
  PROFILE="Main"
fi

DATA_DIR="/home/msch/.config/chromium/$PROFILE"
REG_CACHE="$DATA_DIR/Default/Cache"
MEM_CACHE="/tmp/chrome-$PROFILE-cache"

# maybe we're creating a new profile?!
if [ ! -d $DATA_DIR ]
then
  mkdir -p $REG_CACHE
fi

# maybe we just rebooted, let's make sure we move our cache dir to ram!
# /tmp gets mounted tmpfs around here...
if [ ! -d $MEM_CACHE ]
then
  if [ -h $REG_CACHE ]
  then
    rm -f $REG_CACHE
    mkdir $MEM_CACHE
  else
    mv $REG_CACHE $MEM_CACHE
  fi
  ln -s $MEM_CACHE $REG_CACHE
fi

# now can we finally start?
/usr/lib/chromium-browser/chromium-browser --restore-last-session --user-data-dir=$DATA_DIR

Double sweet! Name it something cool (chrome), make it executable (chmod +x chrome), and drop it in your path (mv chrome /usr/local/bin). Now we can create new profiles and launch existing profiles with reckless abandon.

chrome reader
chrome dev
chrome anydangthingiwant

Triple sweet.

quote 15 May
When you don’t create things, you become defined by your tastes rather than ability. Your tastes only narrow and exclude people. so create.
—  Why the Lucky Stiff
text 6 May Installing redshift with vidmode enabled in debian

Why? Cause the packages in testing don’t have vidmode enabled by default. (You only care about this if you don’t have RandR support.)
No, really, why? Cause I want to stop going to bed so late. I’d also prefer not to die from cancer. Maybe this will help…

apt-get source gtk-redshift
cd redshift-1.2/
dpkg-buildpackage -rfakeroot -uc -b
cd ..
dpkg -i gtk-redshift_1.2-2_all.deb redshift_1.2-2_amd64.deb
Now, how best to enjoy?
gtk-redshift -l 38.9:104.8 -t 5500:3400 -m vidmode &
More reading:
http://jonls.dk/redshift/
http://www.stereopsis.com/flux/research.html

Windows/Mac:
http://www.stereopsis.com/flux/

link 30 Apr Pot, meet kettle: a response to Steve Jobs' letter on Flash»

Design inspired by Prashanth Kamalakanthan. Content powered by Tumblr.