<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/blog/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://www.roffle.us/blog/feeds/atom10.xml" rel="self" title="Kevin Harrison" type="application/atom+xml" />
    <link href="http://roffle.us/blog/"                        rel="alternate"    title="Kevin Harrison" type="text/html" />
    <link href="http://roffle.us/blog/rss.php?version=2.0"     rel="alternate"    title="Kevin Harrison" type="application/rss+xml" />
    <title type="html">Kevin Harrison</title>
    <subtitle type="html">Practice makes perfect</subtitle>
    <icon>http://roffle.us/blog/templates/default/img/s9y_banner_small.png</icon>
    <id>http://roffle.us/blog/</id>
    <updated>2011-02-17T19:57:23Z</updated>
    <generator uri="http://www.s9y.org/" version="1.3.1">Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://roffle.us/blog/archives/31-Installing-Alternative-PHP-Cache-APC.html" rel="alternate" title="Installing Alternative PHP Cache (APC)" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2011-02-17T19:57:23Z</published>
        <updated>2011-02-17T19:57:23Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=31</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=31</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/31-guid.html</id>
        <title type="html">Installing Alternative PHP Cache (APC)</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Alternative PHP Cache, better known as APC, is a free download that can be installed by using the PECL installer.<br />
<br />
When using Linux, simply pass this command...<br />
<br />
pecl install apc<br />
<br />
After apc installs, the apc.so extension will need to be added to the server's php.ini.<br />
<br />
extension="apc.so"<br />
<br />
Once added, restart apache.<br />
<br />
To be sure that apc installed correctly, simply fire off a phpinfo() and check its output. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/30-Sanatizing-mysql-inputs-with-php.html" rel="alternate" title="Sanatizing mysql inputs with php" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-09-15T16:40:58Z</published>
        <updated>2009-09-15T16:40:58Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=30</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=30</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/30-guid.html</id>
        <title type="html">Sanatizing mysql inputs with php</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                There are multiple options obviously for PHP, and one should use the quoting option provided by the ORM or extension one is using.<br />
<br />
The most common ways are either MySQL/MySQLi or though PDO.<br />
<br />
<blockquote>&lt;?php<br />
//<br />
//MYSQL<br />
//<br />
$conn = mysql_connect(/<strong> AUTH </strong>/);<br />
<br />
//The mysqli driver also provides mysqli_real_escape_string()<br />
$result = mysql_query(sprintf(<br />
    "UPDATE users SET name = '%s'",<br />
    mysql_real_escape_string($_GET['name'])<br />
));<br />
<br />
//<br />
//PDO (Multiple DB Backends)<br />
//<br />
$conn = new PDO(/<strong> DSN </strong>/);<br />
<br />
//PDO::quote(...) alters quoting style depending on the DB driver<br />
//CAVEAT: PDO_ODBC does not properly implement the quote feature<br />
$stmt = $conn->prepare("UPDATE users SET name = :name");<br />
$stmt->execute(array(<br />
    ':name' => $_GET['name'],<br />
));<br />
<br />
//Best practice to typecast values that should always be integers<br />
$rows = $conn->query(sprintf(<br />
    "SELECT id, name FROM users WHERE id = %s",<br />
    $conn->quote((int)$_GET['id'], PDO::PARAM_INT)<br />
));<br />
<br />
?&gt;<br />
</blockquote> 
            </div>
        </content>
        <dc:subject>mysql</dc:subject>
<dc:subject>php</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/27-Traffic-Blocking-ATT-IP-Addresses-with-.htaccess.html" rel="alternate" title="Traffic Blocking - AT&amp;T IP Addresses with .htaccess" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-07-27T07:19:33Z</published>
        <updated>2009-07-27T07:40:31Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=27</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=27</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/27-guid.html</id>
        <title type="html">Traffic Blocking - AT&amp;T IP Addresses with .htaccess</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                If you're upset with <a href="http://roffle.us/blog/archives/23-ATT-Violates-Net-Neutrality-by-blocking-4chan.org.html">AT&amp;T's recent net neutrality violation</a>, perhaps a fellow webmaster, here is a way to protest to AT&amp;T's customer base.<br />
<br />
Open up your trusty .htaccess and paste the following in side.<br />
<br />
<blockquote>order allow, deny<br />
deny from 12.20<br />
deny from 76.192<br />
deny from 68.88<br />
deny from 75<br />
deny from 99.128<br />
allow from all</blockquote><br />
<br />
This unfortunately will produce a hard error. To inform your traffic why this is happening you should create a custom 403 Forbidden error page. Below the allow/deny statement, add another line.<br />
<br />
<blockquote>order allow, deny<br />
deny from 12.20<br />
deny from 76.192<br />
deny from 68.88<br />
deny from 75<br />
deny from 99.128<br />
allow from all<br />
<br />
ErrorDocument 403 /forbidden.html<br />
</blockquote><br />
<br />
Here is something decent to use for the time being. Just save the html code below to forbidden.html and place it into your web root directory.<br />
<br />
<blockquote><br />
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
<p>It has recently come to our attention that AT&amp;T is now blocking a large community of internet users from certain sites. AT&amp;T has denied this as of my writing this, but several reports are streaming in from all over the internet, and AT&amp;T users who have called tech support have reportedly been told that AT&T is, in fact, blocking a few popular message boards on 4chan.org. A website that is ranked as the 4th most popular website on the internet. AT&amp;T thus far has been unable to provide any valid justification as to why they suddenly started to block certain sections of 4chan.</p><br />
<p>This sudden filter on AT&amp;T traffic seems to be no less than their attempt to censor portions of the internet that have been deemed unfit for their customers. The actions of AT&amp;T have removed control from the customers to determine what web pages they can or cannot view. This is a blatant violation of Net Neutrality. AT&T has taken it upon themselves to police the internet on behalf of their customers, who have no say at all in the matter. The choice is simply to let AT&amp;T decide what is best for you to visit on the web, or switch to another provider. The latter may not even be an option for customers in areas where AT&amp;T has no competitors for Internet service.</p><br />
<p>AT&amp;T needs to be advised that the customer will assume their own rights in regards to the type and content of the internet. They cannot be allowed to block even one site. If they are allowed to continue this filtration of web traffic, it is only a matter of time before more websites fall victim to this censorship if nothing is done.</p><br />
<p>We trust that you will agree with us, and hopefully will be able to assist in maintaining the freedom of the internet. We do not need the "Great Firewall of America."</p><br />
<p>If you would like to voice your opinion to AT&amp;T about this, you can call their customer support phone number at 1-800-400-1447 or 1-800-759-8195</p><br />
&lt;/body&gt;&lt;/html&gt;</blockquote> 
            </div>
        </content>
        <dc:subject>att</dc:subject>
<dc:subject>htaccess</dc:subject>
<dc:subject>net-neutrality</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/23-ATT-Violates-Net-Neutrality-by-blocking-4chan.org.html" rel="alternate" title="AT&amp;T Violates Net Neutrality by blocking 4chan.org" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-07-27T06:39:42Z</published>
        <updated>2009-07-28T07:01:42Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=23</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/23-guid.html</id>
        <title type="html">AT&amp;T Violates Net Neutrality by blocking 4chan.org</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                On July 27th, 2009 AT&amp;T took the first shot at "net neutrality" by blocking the popular website "4Chan.org" to all of their customers.<br />
<br />
Several blogs and news providers have already begun reporting this issue:<br />
<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/mashable.com/2009/07/26/report-att-blocking-4chan/');"  href='http://mashable.com/2009/07/26/report-att-blocking-4chan/' target='_blank'>http://mashable.com/</a><br /><a onclick="javascript: pageTracker._trackPageview('/extlink/www.techcrunch.com/2009/07/26/att-blocks-4chan-this-is-going-to-get-ugly/');"  href='http://www.techcrunch.com/2009/07/26/att-blocks-4chan-this-is-going-to-get-ugly/' target='_blank'>http://www.techcrunch.com/</a><br /><a onclick="javascript: pageTracker._trackPageview('/extlink/www.phonenews.com/around-the-network-att-blocks-4chan-and-deals-deals-deals-8518/');"  href='http://www.phonenews.com/around-the-network-att-blocks-4chan-and-deals-deals-deals-8518/' target='_blank'>http://www.phonenews.com/</a><br />
<br />
AT&amp;T customers who have been impacted by this filter are doing everything in their power to reverse it, however, AT&amp;T refuses to comment on the issue at this time. Several thousands of AT&amp;T customers are already in the early stages of starting a boycott if AT&amp;T does not remove their filter on 4chan.org.<br />
<br />
AT&amp;T is taking away our internet freedom, something President Obama claimed he would protect during his presidential campaign! I need your help getting the word out about this issue. This is a topic that should NOT be brushed under a carpet and be forgotten! Contact your local news channels and let them know what AT&amp;T is doing!<br />
<br />
To learn more about net neutrality and how it affects everyone on the internet, check out:<br />
<a onclick="javascript: pageTracker._trackPageview('/extlink/www.savetheinternet.com/');"  href="http://www.savetheinternet.com/">http://www.savetheinternet.com/</a> 
            </div>
        </content>
        <dc:subject>att</dc:subject>
<dc:subject>net-neutrality</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/22-Opera-Unite.html" rel="alternate" title="Opera Unite" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-06-16T08:36:46Z</published>
        <updated>2009-06-16T09:01:11Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=22</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/22-guid.html</id>
        <title type="html">Opera Unite</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I gotta say, when they said they were going to revolutionize the browser today, i thought to myself what could they possibly do to opera that would make me want to use it? There can be nothing of actual use aside from the novelty of using something aside from firefox.<br />
<br />
Oh boy, was I wrong.<br />
<br />
Opera might actually have something, something huge. Apparently, the folks at Opera have been working tirelessly even though they are 5th in browser penetration.<br />
<br />
Opera has integrated an actual webserver into their browser which has never been done before.<br />
<br />
A user can configure the unite service from their browser. It's rather straight forward. Simply enable the Unite service from Opera then right click on any application that you would like to use and click start service. Currently they have a Fridge service, where users can leave little notes on a virtual fridge in the form of a virtual post-it. Along with the fridge, they have a lounge, where people can have a chat, a webserver where people can view a personal web page, and then there is basic file sharing.<br />
<br />
The file sharing is broken into three different categories, Photo Sharing, File Sharing and a Media Player.<br />
<br />
Talk about an easy way for everyone to share their creations.<br />
<br />
Incase anyone is wondering what the server version is of the unite service, the webserver responds as...<br />
<blockquote>200 OK<br />
Date: Tue, 16 Jun 2009 08:46:30 UTC<br />
Server: Opera/ubuntu.kharri1073.operaunite.com<br />
Content-Type: text/html; charset=utf-8<br />
Client-Date: Tue, 16 Jun 2009 08:46:30 GMT<br />
Client-Peer: 213.236.208.34:80<br />
Client-Response-Num: 1<br />
Set-Cookie: unite-session-id=9b4736b661f85d9025507f3a; Max-Age=2073600; path=/</blockquote><br />
<br />
Leave me a message on my fridge... <a onclick="javascript: pageTracker._trackPageview('/extlink/ubuntu.kharri1073.operaunite.com/fridge/');"  href="http://ubuntu.kharri1073.operaunite.com/fridge/" title="My Fridge">http://ubuntu.kharri1073.operaunite.com/fridge/</a> 
            </div>
        </content>
        <dc:subject>opera</dc:subject>
<dc:subject>unite</dc:subject>
<dc:subject>webserver</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/21-Bing-replaces-Microsoft-Live-branding.html" rel="alternate" title="Bing replaces Microsoft Live branding" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-05-28T17:03:38Z</published>
        <updated>2009-05-28T17:03:38Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=21</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=21</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/21-guid.html</id>
        <title type="html">Bing replaces Microsoft Live branding</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Dear Microsoft,<br />
<br />
Can you have any less brand recognition? You're changing focus, names, and ideas way too frequently. How can anyone take you seriously?<br />
<br />
Sincerely,<br />
A former windows user<br />
 
            </div>
        </content>
        <dc:subject>Microsoft</dc:subject>
<dc:subject>search</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/20-Google-News-Colors-Changed.html" rel="alternate" title="Google News' Colors Changed" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-05-15T16:09:35Z</published>
        <updated>2009-05-15T16:25:00Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=20</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/20-guid.html</id>
        <title type="html">Google News' Colors Changed</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I don't know why Google changed the colors of the categories in <a onclick="javascript: pageTracker._trackPageview('/extlink/news.google.com/');"  href="http://news.google.com/">Google news</a> but it looks like they actually regressed.<br />
<br />
Each major category in Google News had their color changed yesterday. Each category is a variant of their classic Google color scheme.<br />
<br />
The news categories now make the website look like it was produced for (or by i can't say) an 8 year old. If you don't read the actual news headlines you may thing it is a page for kids.<br />
<br />
If memory recalls, the categories in <a onclick="javascript: pageTracker._trackPageview('/extlink/web.archive.org/web/20080316180728/http://news.google.com/');"  href="http://web.archive.org/web/20080316180728/http://news.google.com/">Google News used to have</a> a solid background greyish color. The only colors in the category was a top border which used the Google colors.<br />
<br />
Perhaps it's just because it's new change, but the colors just seem too distracting, keeping the user's eyes from the actual news content. If a color wheel is fired up, the colors don't even match the same scheme. The UI team really goofed on that. 
            </div>
        </content>
        <dc:subject>google</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/19-Alien-spaceship-lands-in-Webster,-South-Dakota-Greys-make-contact-HOAX.html" rel="alternate" title="Alien spaceship lands in Webster, South Dakota: Greys make contact HOAX" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-05-13T21:39:54Z</published>
        <updated>2009-05-14T02:22:40Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=19</wfw:comment>
    
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/19-guid.html</id>
        <title type="html">Alien spaceship lands in Webster, South Dakota: Greys make contact HOAX</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                According to the editor in chief at Business Week, John A. Byrne, the story was the result of someone hacking their blog at businessweek.com. He <a onclick="javascript: pageTracker._trackPageview('/extlink/twitter.com/JohnAByrne/status/1787931660');"  href="http://twitter.com/JohnAByrne/status/1787931660">tweeted his response to the story</a>.<br />
<br />
Here is the posting from the original "hacked" story:<br />
<br />
<blockquote>A shocking revelation in the science world has been made today as we are getting reports saying an Alien spacecraft has landed in the small city of Webster, South Dakota.<br />
<br />
Hundreds crowded a parking lot at busy factory outlet as a spherical craft descended from clear skies and made it’s landing on U.S. soil. Witnesses say power within a mile had gone out. Hand held devices, cameras and even vehicles stopped working before the craft made its landing, therefore, many witnesses could not take photographs of the craft.<br />
<br />
The craft along with the crowd was in silence. Many people ran away in fear before the craft even landed. After a short while of watching the craft, witnesses say a part of the door on the lower portion opened up and a ramp came extended out to the ground. Two creatures, approximately 4 feet tall with large heads, large eyes, no noses and a slip for mouth, as described by witnesses, walked down the ramp and onto Earth grounds. The beings were said to have matched the descriptions of an extra-terrestrial species we call "Greys."<br />
<br />
"We felt a sense of relief", said witness, Rob Chan. "We were scared, but we couldn’t move. It was an astonishing site. It felt as if they were trying to communicate with us but we just couldn't understand."<br />
<br />
The beings walked back into the craft as the ramp closed back up behind them and after a few tense moments of waiting, the spaceship silently ascended upwards, moved towards the nearby lake and shot into the sky and that is when it disappeared. It was only a short while after when hand held devices and phones started working again. People started taking pictures of the sky hoping the craft would come back (seen in the picture).<br />
<br />
The fire department and police were called to the scene but could not do anything about what had just happened. Military officials were notified of the incident and the area is being cleared and the area is being tested for possible radioactivity.</blockquote><br />
<br />
The image that was included in the story was that of a large group of people in a parking lot looking area. Why would anyone take a picture of the crowd if there is supposedly some crazy UFO stuff happening?<br />
<br />
Nicely played, Mr. Hacker, but I'm leaning towards a hoax. 
            </div>
        </content>
        <dc:subject>blog</dc:subject>
<dc:subject>security</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/18-Adding-date-to-crontab-mysqldump.html" rel="alternate" title="Adding date to crontab mysqldump" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-04-13T16:17:59Z</published>
        <updated>2009-04-13T16:31:26Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=18</wfw:comment>
    
        <slash:comments>3</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/18-guid.html</id>
        <title type="html">Adding date to crontab mysqldump</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                After mangling some crontabs commands, I finally got the date into mysql exports.<br />
<br />
<blockquote>mysqldump -u database-user -h localhost -pdatabase-password database | gzip -9 > /path/to/backup/directory/database-data`date +%m%d%y`.sql.gz</blockquote><br />
<br />
This command will dump the database, gzip it then add the date to the exported file. Basically if you had problems adding a date to the export file you most likely forgot to add a '\' before the %m, %d, or the %y.<br />
<br />
edit: well it looks like my blog is actually removing the \ before the %m%d%y in the command. It should look like this minus the spaces...<br />
<br />
\ %m \ %d \ %y 
            </div>
        </content>
        <dc:subject>cron</dc:subject>
<dc:subject>linux</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/17-Gigabyte-GA-9IVDP.html" rel="alternate" title="Gigabyte GA-9IVDP" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-04-02T04:41:41Z</published>
        <updated>2009-04-02T23:23:45Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=17</wfw:comment>
    
        <slash:comments>6</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/17-guid.html</id>
        <title type="html">Gigabyte GA-9IVDP</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <div class="serendipity_imageComment_left" style="width: 110px"><div class="serendipity_imageComment_img"><a class='serendipity_image_link' href='http://roffle.us/blog/uploads/gigabyte-ga-9ivdp.jpg' onclick="F1 = window.open('/blog/uploads/gigabyte-ga-9ivdp.jpg','Zoom','height=721,width=1295,top=47,left=0,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes'); return false;"><!-- s9ymdb:1 --><img class="serendipity_image_left" width="110" height="61"  src="http://roffle.us/blog/uploads/gigabyte-ga-9ivdp.serendipityThumb.jpg" alt="Gigabyte GA-9IVDP" /></a></div><div class="serendipity_imageComment_txt">The Google Server with a Gigabyte GA-9IVDP motherboard</div></div>Google finally revealed to the public what their servers are like on the inside. Surprisingly, from a technology standpoint, their servers are using x86 chips with a mixture of AMD and Intel chips. I guess from Google's perspective, they would rather have quantity over quality. Not that x86 chips are bad but with x86-64 available, x86 systems are the most cost effective.<br />
<br />
Attached to each Gigabyte GA-9IVDP (The motherboard's model number might actually be GA-91VDP I can't say if it is a 1 or a capital i) motherboard are two hard drives, which look to be Hitachi Deskstars, eight chips of memory, maximum of 4 gigs each server since the operating system is x86, and a 12 volt battery as their own Uninterruptible Power Supply (<abbr title="Uninterruptible Power Supply">UPS</abbr>). <br />
<br />
Google explains that designing their servers with their own UPS battery is more efficient then having ten on one single UPS. Pretty interesting...<br />
<br />
The real question with the hardware is whether or not Google's servers actually use the same exact parts. Do they know something most of us don't know about the reliability of Hitachi Deskstars? Or how about the Magnetek Power supplies? Perhaps it's time to dig up some stats for this hardware. <a onclick="javascript: pageTracker._trackPageview('/extlink/news.cnet.com/8301-1001_3-10209580-92.html');"  href="http://news.cnet.com/8301-1001_3-10209580-92.html">Thanks cnet</a> for the info. 
            </div>
        </content>
        <dc:subject>google</dc:subject>
<dc:subject>webserver</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/14-Purchase-Brothers-Escape-from-City-17-High-Definition.html" rel="alternate" title="Purchase Brothers - Escape from City 17 - High Definition" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-02-13T21:20:01Z</published>
        <updated>2009-02-17T20:07:04Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=14</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=14</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/14-guid.html</id>
        <title type="html">Purchase Brothers - Escape from City 17 - High Definition</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Check out this awesome high-definition live remake of half-life 2. It is called Escape from City 17, hopefully there is a few more episodes or a full trailer in the works. It is made by a Canadian company called Purchase Brothers. Unfortunately for them, purchasebrothers.com wasn't quite up to the challenge of making the digg front page and the purchasebrothers website has been shutdown for excess bandwidth.<br />
<br />
Aside from that, I can't wait to see their second installment of live-action half-life.<br />
<br />
<object width="700" height="420"><param name="movie" value="http://www.youtube.com/v/q1UPMEmCqZo&hl=en&fs=1&ap=%2526fmt%3D18"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/q1UPMEmCqZo&hl=en&fs=1&ap=%2526fmt%3D18" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="700" height="420"></embed></object> 
            </div>
        </content>
        <dc:subject>city-17</dc:subject>
<dc:subject>half-life</dc:subject>
<dc:subject>movie</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/13-Linux-TAR-Command.html" rel="alternate" title="Linux TAR Command" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2009-02-10T16:39:03Z</published>
        <updated>2009-03-09T15:50:24Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=13</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=13</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/13-guid.html</id>
        <title type="html">Linux TAR Command</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <strong>create:</strong><br />
tar -cvf mystuff.tar mystuff/<br />
tar -czvf mystuff.tgz mystuff/<br />
<strong>extracting:</strong><br />
tar -xvf mystuff.tar<br />
tar -xzvf mystuff.tgz<br />
<strong>testing/viewing:</strong><br />
tar -tvf mystuff.tar<br />
tar -tzvf mystuff.tgz<br />
<br />
Note that .tgz is the same thing as .tar.gz<br />
Tar "tars up" a bunch of files into one "tar-file"<br />
gzip is compression, but only works on one file, so the entire "tarfile" is compressed.<br />
<br />
Also when creating a tar or cpio backup, never, never, never use an "absolute" path -- you have been warned; also linux tar warns you of this too. The problem is that when you want to unpack, you cannot choose where to unpack to, you will be forced to unpack to the "same" absolute path. When creating a tar or cpio you should change the the appropriate directory and tar from there.<br />
<br />
Also when creating a tar or cpio it is general good practice to tar up a directory (appropriately named) which contains your files, rather than just the files. This is good courtesy to anyone unpacking your tarfile.<br />
<br />
If you would like to create a tar file while saving ownership and permissions, add the "p" flag.<br />
<br />
<strong>Creating and saving ownership and permissions:</strong><br />
tar -cpvf mystuff.tar mystuff/<br />
tar -cpzvf mystuff.tgz mystuff/<br />
<br />
Also take note of the following commands:<br />
gzip<br />
gunzip<br />
cat<br />
zcat<br />
bzcat<br />
bzip2<br />
bunzip2<br />
zgrep<br />
bzgrep<br />
<br />
(cd /mydir &&amp; tar -czf - .)|(cd /destdir &&amp; tar -xzvf -)<br />
tar -czf - . | ssh user@dest "(cd /destdir &&amp; tar -xzvf -)"<br />
(cd /mydir &&amp; tar -czf - .) | ssh user@dest "(cd /destdir &&amp; tar -xzvf -)"<br />
<br />
<strong>Errors:</strong><br />
If you receive an error such as the following:<br />
<br />
<pre style="font-size:.9em;line-height:.5em;padding:0;margin:0">[root@localhost test]# ssh user@dest "(cd /rh62/home/kernel &&amp; tar -czvf - linux-2.2.22.tar.bz2)"|tar -xzvf -<br />
user@dest's password:<br />
linux-2.2.22.tar.bz2<br />
linux-2.2.22.tar.bz2<br />
<br />
gzip: stdin: decompression OK, trailing garbage ignored<br />
tar: Child returned status 2<br />
tar: Error exit delayed from previous errors<br />
[root@localhost test]#</pre><br />
<br />
Then try leaving off the compression as follows:<br />
<br />
<pre style="font-size:.9em;line-height:.5em;padding:0;margin:0">[root@localhost test]# ssh user@dest "(cd /rh62/home/kernel &&amp; tar -cvf - linux-2.2.22.tar.bz2)"|tar -xvf -<br />
user@dest's password:<br />
linux-2.2.22.tar.bz2<br />
linux-2.2.22.tar.bz2<br />
[root@localhost test]# echo $?<br />
0<br />
[root@localhost test]# </pre><br />
<br />
<strong>Spaces in your filenames?</strong><br />
Having fun with spaces in the filename or directory name? Here's your answer:<br />
<br />
<pre style="font-size:.9em;line-height:.5em;padding:0;margin:0">find . -type f -name '*jpg' | grep " " | while read REPLY; do<br />
     tar -cf - "$REPLY" | (cd /tmp/jpg &&amp; tar -xvf -)<br />
done</pre><br />
<br />
Bonus:<br />
<br />
<pre style="font-size:.9em;line-height:.5em;padding:0;margin:0">find . -type f | while read REPLY; do<br />
     cp -a "$REPLY" /tmp/jpg/`echo $REPLY \<br />
       | sed -e 's/ /<u>/g' -e 's/\//</u>/g' -e 's/^\._//'`<br />
done<br />
<br />
ssh root@dest 'tar -C / -czf - --exclude ./proc/* --exclude ./dev/pts/* .' > gmaster.tgz<br />
proc and dev was empty for the following command, so I didn't exclude them:<br />
tar -czf - . | ssh user@dest "cat - > k12ltsp.master.tgz"</pre> 
            </div>
        </content>
        <dc:subject>compression</dc:subject>
<dc:subject>gzip</dc:subject>
<dc:subject>linux</dc:subject>
<dc:subject>tar</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/11-Fixing-duplicate-page-titles-in-serendipity.html" rel="alternate" title="Fixing duplicate page titles in serendipity" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2008-11-10T17:19:49Z</published>
        <updated>2009-02-17T20:07:58Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=11</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/11-guid.html</id>
        <title type="html">Fixing duplicate page titles in serendipity</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Google webmaster tools always complained about duplicate page titles for my s9y blog. These pages were generated by serendipity when next page is clicked at the bottom of the home page for blogs that are pagenated. It always bothered me that google didn't like that I had duplicate titles but I never really bothered to think about fixing it.<br />
<br />
I finally got around to a fix...<br />
<blockquote>{if $footer_currentPage != 1 &&amp; $entry_id != true &&amp; $staticpage_content == ''} - Page {$footer_currentPage}{/if}</blockquote><br />
Just place that code into the &lt;title&gt;&lt;/title&gt;<br />
<br />
This change will number page titles whenever a next page is clicked. It will not number pages on single entries, the home page of the blog or on static pages.<br />
<br />
The default title tag in serendipity is<br />
<blockquote>&lt;title&gt;{$head_title|@default:$blogTitle}{if $head_subtitle} - {$head_subtitle}{/if}&lt;/title&gt;</blockquote><br />
just change it to...<br />
<blockquote>&lt;title&gt;{$head_title|@default:$blogTitle}{if $head_subtitle} - {$head_subtitle}{/if}{if $footer_currentPage != 1 &&amp; $entry_id != true &&amp; $staticpage_content == ''} - Page {$footer_currentPage}{/if}&lt;/title&gt;</blockquote><br />
<br />
You can test the results by clicking on next page on the bottom of the <a href="http://roffle.us/blog/" title="blog home">home page of this blog</a>. 
            </div>
        </content>
        <dc:subject>blog</dc:subject>
<dc:subject>serendipity</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/10-Googles-Redirect-Notice.html" rel="alternate" title="Google's Redirect Notice" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2008-10-01T19:41:12Z</published>
        <updated>2009-02-17T20:08:24Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=10</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/10-guid.html</id>
        <title type="html">Google's Redirect Notice</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I just noticed google is not notifying users when a url is being redirected to another url.<br />
<br />
I noticed this with my <a onclick="javascript: pageTracker._trackPageview('/extlink/www.google.com/search?hl=en&amp;safe=off&amp;rlz=1B3GGGL_enUS213US213&amp;q=como+te+llama&amp;btnG=Search');"  href="http://www.google.com/search?hl=en&safe=off&rlz=1B3GGGL_enUS213US213&q=como+te+llama&btnG=Search">como te llama</a> search.<br />
<br />
The first url is a wikipedia.org page. According to google's result, the url points to en.wikipedia.org/wiki/Albert_Hammond,_Jr.'s_second_album.<br />
<br />
When the link is clicked, Google <a onclick="javascript: pageTracker._trackPageview('/extlink/www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FAlbert_Hammond%2C_Jr.%2527s_second_album&amp;ei=PtLjSLzlOKOUggTF37SUDA&amp;usg=AFQjCNH5C1zQ3lKkMnDr5DUBUI_SRlSR_A&amp;sig2=yec78__M0yEnlZdutVTFDg');"  href="http://www.google.com/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FAlbert_Hammond%2C_Jr.%2527s_second_album&ei=PtLjSLzlOKOUggTF37SUDA&usg=AFQjCNH5C1zQ3lKkMnDr5DUBUI_SRlSR_A&sig2=yec78__M0yEnlZdutVTFDg">stops the redirect</a> and asks the user if they would like to be forwarded to the <a onclick="javascript: pageTracker._trackPageview('/extlink/en.wikipedia.org/wiki/Albert_Hammond,_Jr.%27s_second_album');"  href="http://en.wikipedia.org/wiki/Albert_Hammond,_Jr.%27s_second_album">new url</a>.<br />
<br />
I hope this change doesn't stick. A lot of seo is built around redirects. 
            </div>
        </content>
        <dc:subject>google</dc:subject>
<dc:subject>redirects</dc:subject>

    </entry>
    <entry>
        <link href="http://roffle.us/blog/archives/7-Turning-off-Firefoxs-Awesome-Bar.html" rel="alternate" title="Turning off Firefox's Awesome Bar" />
        <author>
            <name>Kevin Harrison</name>
                    </author>
    
        <published>2008-06-17T16:48:40Z</published>
        <updated>2009-02-17T20:08:39Z</updated>
        <wfw:comment>http://roffle.us/blog/wfwcomment.php?cid=7</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://roffle.us/blog/rss.php?version=atom1.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    
    
        <id>http://roffle.us/blog/archives/7-guid.html</id>
        <title type="html">Turning off Firefox's Awesome Bar</title>
        <content type="xhtml" xml:base="http://roffle.us/blog/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                If for some reason you don't like the functionality of the address bar, dubbed the "Awesome Bar," you can disable it.<br />
<br />
In the address bar, "Awesome Bar", go to about:config and set browser.urlbar.matchOnlyTyped to true and browser.urlbar.richResults to false.<br />
<br />
Once set, close and restart Firefox and the awesome bar functionality will be finished. 
            </div>
        </content>
        <dc:subject>config</dc:subject>
<dc:subject>firefox</dc:subject>

    </entry>

</feed>
