Home

pat's blog

Nginx + PHP-FPM + Drupal = FAST SITE

Finally put in place the new web server. I think it works pretty well

Below are the stats for linuxcolumbus.

Document Path: /
Document Length: 23524 bytes

Concurrency Level: 4
Time taken for tests: 3.968 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 12007500 bytes
HTML transferred: 11762000 bytes
Requests per second: 126.02 [#/sec] (mean)
Time per request: 31.740 [ms] (mean)
Time per request: 7.935 [ms] (mean, across all concurrent requests)

Doctor it hurts when I do this. Well, then don't do that.

From the BBC:

Apple has released official advice for iPhone 4 owners to overcome the problem of the device losing signal when held by the lower left corner.

Steve Jobs responded to a query about the problem from one owner by saying: "Just avoid holding it in that way."

http://news.bbc.co.uk/2/hi/technology/8761240.stm

I have a term for stuff like this: Junk.

Product Review: CradlePoint MBR 1000

Got to configure a CradlePoint MBR-1000 for a friend last night.

Installed the 4G modem driver for a Sprint 4G WiMax card with no issues. Worked with friend's VOIP phone so he can now travel and have shared Internet where ever he goes.

This device rocks.

linky

Sadness at Foxconn

Foxconn suicides: 'Workers feel quite lonely'

http://news.bbc.co.uk/2/hi/world/asia_pacific/10182824.stm && http://news.yahoo.com/s/time/20100526/wl_time/08599199162000

Is your iPhone/iPad really worth that?

This makes me sad, because there is nothing I can do.

CSS Text Cut Out

Linux Columbus
Linux Columbus
Couple of divs, relative positioning, and hiding the overflow is all it takes. View source to see layout.

Foxconn busted breaking Linux --- Boycott Foxconn

Nxdomain due to partial tinydns data file published to secondary

I publish my domains from a central server via http and grab the file via wget. Well, that turned out to be a problem when the vps host for one of my off network dns's had a network hick-up during the transfer, and wget happily wrote the partial file and the script happily regenerated the data.cdb.

To fix this I reworked the script and added a checksum to verify the that the file was the same. If the checksum doesn't match, the tinydns cdb file is not regenerated.


#!/bin/sh

DATAFILE="data"
DATAFILE_TEMP="data.temp"
FILENAME_MD5="datacheck.md5"
HOST="example.com"
HOST_DIR="" #I have my data file on a completely different server than tinydns
USER=""

#Make temp backup copy
cp data data.backup
cp data.cdb data.cdb.backup

#scp data file
scp $USER@$HOST:/$HOST_DIR/$DATAFILE $DATAFILE_TEMP

#verify checksum
#datacheck.php is a simple script to display a md5sum of the data file
curl http://$HOST/$HOSTDIR/datacheck.php -o $FILENAME_MD5

LOCAL_MD5=`md5sum $DATAFILE_TEMP | cut -d" " -f1`
REMOTE_MD5=`cat $FILENAME_MD5`

#if matches then transfer is ok so we can mv the file and make to rebuild the cdb
if [ $LOCAL_MD5 = $REMOTE_MD5 ]; then
mv -f $DATAFILE_TEMP $DATAFILE
make
else
echo "Failed md5 sum (L:R) $LOCAL_MD5:$REMOTE_MD5 on " `date +%Y%m%d%N` >> log
fi

Since this uses scp you will need to create your public/private keys to log in without a password. Of course you should use a non-root account for that part.

I couldn't find a way to use regexp's in this script. Oh well, maybe next time.

That is all. Have fun.

Lxer: Let's not talk about Ubuntu

How can a place that is about Linux news be so Linux distribution unfriendly? Not the site itself, but the people who comment. Seems that it should rename itself Lxer: Let's not talk about Ubuntu. Oh no, now I've gone and equated Linux with Ubuntu.

Convicted Monopolist Microsoft up to same old tricks

Once again Microsoft is interfering the pc market by declaring that in order to sell a UMPC, it must meet specifications that they set. What a joke.

Convicted Monopolist Microsoft

Ubuntu 8.04

Just booted my laptop off the newest Ubuntu . Good to see everything worked, including the 3-d effects on the Intel GM965 graphics controller.