pat's blog
Nginx + PHP-FPM + Drupal = FAST SITE
Submitted by pat on Fri, 2010-08-06 22:53.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.
Submitted by pat on Fri, 2010-06-25 12:35.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.
- Login to post comments
Product Review: CradlePoint MBR 1000
Submitted by pat on Tue, 2010-06-15 11:42.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.
- Login to post comments
Sadness at Foxconn
Submitted by pat on Sun, 2010-06-13 11:37.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.
- Login to post comments
CSS Text Cut Out
Submitted by pat on Sat, 2010-03-13 13:58.Foxconn busted breaking Linux --- Boycott Foxconn
Submitted by pat on Fri, 2008-07-25 12:57.Foxconn deliberately sabotaging their BIOS to destroy Linux ACPI.
Are they just following orders from Bill Gates?
- Login to post comments
Nxdomain due to partial tinydns data file published to secondary
Submitted by pat on Tue, 2008-07-22 23:46.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.
- Login to post comments
Lxer: Let's not talk about Ubuntu
Submitted by pat on Mon, 2008-06-02 01:58.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.
- Login to post comments
Convicted Monopolist Microsoft up to same old tricks
Submitted by pat on Sun, 2008-05-11 17:35.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.
- Login to post comments
Ubuntu 8.04
Submitted by pat on Sat, 2008-04-26 14:46.Just booted my laptop off the newest Ubuntu . Good to see everything worked, including the 3-d effects on the Intel GM965 graphics controller.
- Login to post comments

