<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Stuff too big to tweet, not big enough to blog.</description><title>Cuppa Caffeinated Code</title><generator>Tumblr (3.0; @caffeinatedcode)</generator><link>http://cuppa.caffeinatedcode.com/</link><item><title>I’m at Local 123 cafe with my buddy jch (coffee is...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_kuvnesUmZ81qayd9ro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I’m at Local 123 cafe with my buddy &lt;a target="_blank" href="http://whatcodecraves.com"&gt;jch&lt;/a&gt; (coffee is &lt;b&gt;excellent&lt;/b&gt; here, btw), and just completed a db migration to postgresql 8.4.2 from 8.2.13. Thing is, I didn’t upgrade on production— I recovered to a failover server, then switched to make the other postgres the primary. So now &lt;a target="_self" href="http://caffeinatedcode.com"&gt;caffeinatedcode.com&lt;/a&gt; is working on a true two-tier setup.&lt;br/&gt;&lt;br/&gt;It was interesting to test a backup-recovery, and I am glad to see that it is relatively painless to do so. There’s a lot of fear when upgrading, especially when skipping ahead two major revisions. Who knows what they changed. In this case, it was good to work with parallel db’s and hardly any downtime at all.&lt;/p&gt;</description><link>http://cuppa.caffeinatedcode.com/post/289652895</link><guid>http://cuppa.caffeinatedcode.com/post/289652895</guid><pubDate>Fri, 18 Dec 2009 18:11:00 -0800</pubDate></item><item><title>Simple backup shell script</title><description>&lt;a href="http://pastie.org/748119"&gt;Simple backup shell script&lt;/a&gt;: &lt;p&gt;Found in an old drive archive, this script would get cron’d and rip to CD every day. I’m sure there’s more elegant solutions, but this did the job well.&lt;/p&gt;
&lt;pre&gt;#!/bin/sh &lt;br/&gt;# NAME:         sys_backup.sh&lt;br/&gt;# &lt;br/&gt;# DESCRIPTION: 	A cool backup script that burns the system files to a CDRW&lt;br/&gt;# 		This script originally runs on RH9 with a 40x CDRW drive.&lt;br/&gt;# 		Requires a CDRW media in drive at all times (min 4x RW)&lt;br/&gt;#&lt;br/&gt;# ORIGINAL AUTHOR:	Kris Resellmo&lt;br/&gt;#&lt;br/&gt;# MODIFIED:     $Date: 2003/10/09 00:52:58 $&lt;br/&gt;#               $Author: dennis $&lt;br/&gt;#               $Revision: 1.1 $&lt;br/&gt;&lt;br/&gt;# General script vars&lt;br/&gt;NOWDATE=`date "+%Y-%m-%d_%H%M"`&lt;br/&gt;ISONAME=peerview.iso&lt;br/&gt;&lt;br/&gt;# Directories to back up &lt;br/&gt;DB_ARCHIVE_DIR=/bu/database_backup&lt;br/&gt;REPOSITORY_DIR=/bu/repository_backup&lt;br/&gt;&lt;br/&gt;# Location of backups &lt;br/&gt;BACKUPDIR=/cdrw_temp/data &lt;br/&gt;BACKUPTEMPDIR=/cdrw_temp &lt;br/&gt;&lt;br/&gt;# TAR arguments &lt;br/&gt;TARARGS="cf -" &lt;br/&gt;&lt;br/&gt;#####&lt;br/&gt;# Script start&lt;br/&gt;echo "$NOWDATE System backup script started."&lt;br/&gt;&lt;br/&gt;# Remove previous backup files&lt;br/&gt;echo "Cleaning up previous backup gzipped files..."&lt;br/&gt;rm -f $BACKUPDIR/*.gz&lt;br/&gt;#rm -f $BACKUPTEMPDIR/$ISONAME&lt;br/&gt;echo "Cleanup done."&lt;br/&gt;&lt;br/&gt;# Archive files &lt;br/&gt;echo "Now tar gzipping $DB_ARCHIVE_DIR"&lt;br/&gt;tar $TARARGS $DB_ARCHIVE_DIR | gzip &gt; $BACKUPDIR/db_$NOWDATE.tar.gz&lt;br/&gt;echo "Now tar gzipping $RESPOSITORY_DIR"&lt;br/&gt;NOWDATE=`date "+%Y-%m-%d_%H%M"`&lt;br/&gt;tar $TARARGS $REPOSITORY_DIR | gzip &gt; $BACKUPDIR/cvs_$NOWDATE.tar.gz&lt;br/&gt;&lt;br/&gt;# make ISO &lt;br/&gt;# delete old ISO if it exists &lt;br/&gt;if [ -f "$BACKUPTEMPDIR/$ISONAME" ] &lt;br/&gt;then&lt;br/&gt;   echo "Deleting previous backup ISO file at $BACKUPTEMPDIR" &lt;br/&gt;   rm -f $BACKUPTEMPDIR/$ISONAME &lt;br/&gt;fi &lt;br/&gt;&lt;br/&gt;echo "Creating new ISO image..." &lt;br/&gt;mkisofs -r $BACKUPDIR &gt; $BACKUPTEMPDIR/$ISONAME &lt;br/&gt;&lt;br/&gt;# burn cd and blank old disc &lt;br/&gt;echo "Now burning CD image to media..."&lt;br/&gt;cdrecord speed=4 dev=0,0,0 blank=fast -multi -data $BACKUPTEMPDIR/$ISONAME&lt;br/&gt;&lt;br/&gt;# Finish up&lt;br/&gt;echo "Finished backup of system at `date "+%Y-%m-%d_%H%M"`"&lt;/pre&gt;</description><link>http://cuppa.caffeinatedcode.com/post/288172185</link><guid>http://cuppa.caffeinatedcode.com/post/288172185</guid><pubDate>Thu, 17 Dec 2009 17:03:00 -0800</pubDate><category>script</category><category>shell</category><category>code</category><category>backup</category></item><item><title>LEGO my EGO</title><description>&lt;a href="http://hipsforhire.ning.com/profiles/blogs/lego-my-ego-the-place-of-ego"&gt;LEGO my EGO&lt;/a&gt;: &lt;p&gt;Most notable part of this article for me: “People will continue to do what they do, say what they say, and believe what they believe. You really do not have much, if any, control over the thoughts of others.”&lt;/p&gt;</description><link>http://cuppa.caffeinatedcode.com/post/288102146</link><guid>http://cuppa.caffeinatedcode.com/post/288102146</guid><pubDate>Thu, 17 Dec 2009 16:05:00 -0800</pubDate><category>ego,</category><category>social media</category><category>narcissists</category></item><item><title>PHP Security Release</title><description>&lt;a href="http://www.php.net/archive/2009.php#id2009-12-17-1"&gt;PHP Security Release&lt;/a&gt;: &lt;p&gt;PHP 5.2.12 released with many “security enhancements and fixes”. Personally, I think uninstalling PHP is the best security for your webserver.&lt;/p&gt;</description><link>http://cuppa.caffeinatedcode.com/post/288010314</link><guid>http://cuppa.caffeinatedcode.com/post/288010314</guid><pubDate>Thu, 17 Dec 2009 14:46:00 -0800</pubDate><category>patch</category><category>php sux</category><category>security</category><category>vulnerability</category></item><item><title>Coders: Avoid HFCS, pure cane sugar is what you seek. Fructose =...</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_kupueaqj6x1qayd9ro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Coders: Avoid HFCS, pure cane sugar is what you seek. Fructose = bad: &lt;a target="_blank" href="http://j.mp/6dYgVf"&gt;&lt;a href="http://j.mp/6dYgVf" target="_blank"&gt;http://j.mp/6dYgVf&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://cuppa.caffeinatedcode.com/post/285199412</link><guid>http://cuppa.caffeinatedcode.com/post/285199412</guid><pubDate>Tue, 15 Dec 2009 14:55:00 -0800</pubDate><category>coding life</category><category>imbibe</category></item><item><title>So much good stuff</title><description>&lt;p&gt;There’s so much being built upon in JEE6 as I watch the Sun Java Virtual Conference today on JEE6 and Glassfish v3.&lt;/p&gt;
&lt;p&gt;&lt;a target="_blank" href="https://glassfish.dev.java.net/downloads/v3-final.html"&gt;Glassfish&lt;/a&gt; is a pretty kickass appserver from initial previews. And it’s surprisingly easy to get up and running.&lt;/p&gt;
&lt;p&gt;All the memories I’ve had of EJB are wiped away with the new EJB 3.1 spec.&lt;/p&gt;</description><link>http://cuppa.caffeinatedcode.com/post/285152473</link><guid>http://cuppa.caffeinatedcode.com/post/285152473</guid><pubDate>Tue, 15 Dec 2009 14:17:10 -0800</pubDate></item></channel></rss>

