July 2010
4 posts
XML is like violence — if it doesn’t solve your problems, you are not using...
– http://nokogiri.org/
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 ...
eats →
precision in statistics →
June 2010
1 post
“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!”
May 2010
4 posts
That old copier still holds a picture of your... →
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...
When you don’t create things, you become defined by your tastes rather than...
– Why the Lucky Stiff
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...
Pot, meet kettle: a response to Steve Jobs' letter... →
April 2010
3 posts
The Last Psychiatrist: Why Is There So Much... →
Auto-appendectomy in the Antarctic: case report --... →
March 2010
3 posts
Administrative Debris →
PaNu - PāNu Blog - “Cardio” Causes Heart Disease. →
Canadians Also Win Gold For Synchronized Peeing... →
February 2010
3 posts
Rise in solar activity all but certain to mess... →
January 2010
2 posts
The life of a designer is a life of fight. Fight against the ugliness. Just like...
– Massimo Vignelli - Helvetica
Offline book lending costing us bazillions... →
December 2009
9 posts
The meaning of open →
Rails STI
I recently started using Single Table Inheritance in a Rails project. It works pretty well for the most part, until you start trying to reference the type attribute in the parent class.
>> o.type
warning: Object#type is deprecated; use Object#class
This will probably cause you all type of madness until you track it down.
You can work around by calling o[‘type’] or o[:type]...
The End of Chiropractic →
Sprint fed customer GPS data to cops over 8... →
Scientists Create Artificial Meat →
djmount is cool
/me swoons
# apt-get install djmount
# djmount -o allow_other /mnt/upnp/
$ vlc /mnt/upnp/PlayOn (carmen)/Hulu/TV Episodes/A/Arrested Development/s1e02: Top Banana.mpg
awesome!
November 2009
16 posts
absolute beast →
1 tag
irb/console not saving in ruby 1.8.7
In case you don’t read Japanese.
Index: lib/irb/ext/save-history.rb
===================================================================
--- lib/irb/ext/save-history.rb (revision 23644)
+++ lib/irb/ext/save-history.rb (working copy)
@@ -51,7 +51,7 @@
include Readline
def HistorySavingAbility.create_finalizer
- proc do
+ at_exit do
if num = IRB.conf[:SAVE_HISTORY] and...
Birds! →
ode to my wife
yum
3 tags
Information Porn (aka I think I'm in love...) →
Beautiful charts and thorough analysis. Make sure you check out the gallery and the animations.
When you just can't take seeing another "kernel:...
and nothing else seems to work. You’ve already tried:
http://ericmason.net/2008/09/amazon-ec2-and-4gb-seg-fixup/
http://groups.google.com/group/emm-ruby/browse_thread/thread/1b9beffe8fa694a7
etc…
mv /usr/bin/gcc /usr/bin/gcc.orig
mv /usr/bin/g++ /usr/bin/g++.orig
echo '#!/bin/sh' > /usr/bin/gcc
echo '#!/bin/sh' > /usr/bin/g++
echo 'exec gcc.orig -mno-tls-direct-seg-refs $@'...
4 tags
Install Ubuntu Version of rdiff-backup on your...
Find the right version (rdiff-backup_1.2.7-1ubuntu2 in our case)
wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rdiff-backup/rdiff-backup_1.2.7-1ubuntu2.dsc
wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rdiff-backup/rdiff-backup_1.2.7.orig.tar.gz
wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rdiff-backup/rdiff-backup_1.2.7-1ubuntu2.diff.gz
Unpack and patch
unp...