<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>For Your Lungs Only</title>
	<atom:link href="http://www.foryourlungsonly.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.foryourlungsonly.net</link>
	<description>Everything you wanted to know about web development, espresso, typography, nicotine, user interface design, whiskey, javascript, php, cascading style sheets, css hacks, beer, prototype, jquery, mysql, usability and accessiblity (but were afraid to ask)</description>
	<lastBuildDate>Mon, 14 Jun 2010 22:08:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Saved Password Recovery</title>
		<link>http://www.foryourlungsonly.net/2010/04/24/saved-password-recovery/</link>
		<comments>http://www.foryourlungsonly.net/2010/04/24/saved-password-recovery/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 03:19:32 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=90</guid>
		<description><![CDATA[Have you forgotten a password that is saved in a program but you can&#8217;t find any hack to retrieve it?  Try this tool out Revealer. Revealer works with Windows 2000,XP, Vista and 7 with most programs and can save you a lot of time scouring through old emails or asking annoyed colleagues.]]></description>
			<content:encoded><![CDATA[<p>Have you forgotten a password that is saved in a program but you can&#8217;t find any hack to retrieve it?  Try this tool out <a href="http://www.rekenwonder.com/revealer.htm">Revealer</a>.</p>
<p>Revealer works with Windows 2000,XP, Vista and 7 with most programs and can save you a lot of time scouring through old emails or asking annoyed colleagues.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2010/04/24/saved-password-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP, Javascript and WordPress English to Spanish Language Translation Samples</title>
		<link>http://www.foryourlungsonly.net/2010/04/24/php-javascript-and-wordpress-english-to-spanish-language-translation-samples/</link>
		<comments>http://www.foryourlungsonly.net/2010/04/24/php-javascript-and-wordpress-english-to-spanish-language-translation-samples/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 03:13:16 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[gnu gpl]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress plugins]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=117</guid>
		<description><![CDATA[First off, download the gTranslate PHP class and read about it. Now let&#8217;s start to play with it. Let&#8217;s start off simple: &#60;?php require("GTranslate.php"); try { $gt = new Gtranslate; echo "Translating [Hello World] from English to German =&#62; ".$gt-&#62;english_to_german("hello world")."&#60;br/&#62;"; echo "Translating [Ciao mondo] Italian to English =&#62; ".$gt-&#62;it_to_en("Ciao mondo")."&#60;br/&#62;"; } catch (GTranslateException $ge) [...]]]></description>
			<content:encoded><![CDATA[<p>First off, <a href="http://gtranslate-api-php.googlecode.com/files/gtranslate-api-php-0.7.5.zip">download the gTranslate PHP class</a> and <a href="http://code.google.com/p/gtranslate-api-php/">read about it</a>. Now let&#8217;s start to play with it.</p>
<p>Let&#8217;s start off simple:<span id="more-117"></span></p>
<pre><em>&lt;?php
require("GTranslate.php");
try {
	$gt = new Gtranslate;
	echo "Translating [Hello World] from English to German =&gt; ".$gt-&gt;english_to_german("hello world")."&lt;br/&gt;";
	echo "Translating [Ciao mondo] Italian to English =&gt; ".$gt-&gt;it_to_en("Ciao mondo")."&lt;br/&gt;";
} catch (GTranslateException $ge)  {
	echo $ge-&gt;getMessage();
}
?&gt;</em></pre>
<p><strong>Create a Function to Detect Language:</strong><br />
First Example for Ben&#8217;s Translator Plugin (Using a Session Variable):</p>
<pre><em>&lt;?php
function translateThis ($myText) {
	$pageURL = 'http';
	if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
		$pageURL .= "://";
	if ($_SERVER["SERVER_PORT"] != "80") {
		$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
	} else {
		$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
	}
	//return $pageURL;
	$myVal = substr($pageURL, 0, 28);
	if ($myVal == "http://welovecakephp.com/es/") {
		$_SESSION['pLang'] = "ES";
	} else {
		$_SESSION['pLang'] = "EN";
	}
	if ($_SESSION['pLang'] == "ES") {
		require("GTranslate.php");
		/*
			these variable can be used in conjunction with JS dynamic content to make translated content easier
			ie: change image folders/forms/etc basically things that WordPress plugins might screw up
		*/
		$myLang = "es";
		$myLangDir = "/es";
		try {
			$gt = new Gtranslate;
			$gt-&gt;setRequestType('curl');
			echo $gt-&gt;en_to_es($myText);
		} catch (GTranslateException $ge) {
			echo $ge-&gt;getMessage();
		}
	} else {
		$myLang = "en";
		$myLangDir = "";
	}
}
?&gt;</em></pre>
<p><em>Second example (Using a Cookie):</em></p>
<pre><em>&lt;?php if ($_COOKIE['pLang'] != "English") { $_SESSION['pLang'] = "ES"; } else { $_SESSION['pLang'] = "EN"; }?&gt;</em></pre>
<p><strong>Sample Usage</strong></p>
<pre><em>&lt;?php
	$myVar = "This is a test of language translation, not word by word but instead this translates the intended meaning";
	translateThis($myVar);
?&gt;</em></pre>
<p>Of course you can change settings within this to suit your translation needs and this is a single use setup but it suited the purpose for which I needed it. I hope this helps you out, cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2010/04/24/php-javascript-and-wordpress-english-to-spanish-language-translation-samples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now You&#8217;re Being Ridiculous: Featuring William Golden</title>
		<link>http://www.foryourlungsonly.net/2009/08/05/now-youre-being-rediculous-featuring-william-golden/</link>
		<comments>http://www.foryourlungsonly.net/2009/08/05/now-youre-being-rediculous-featuring-william-golden/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:58:29 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[i came as a rant]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/2009/08/05/now-youre-being-rediculous-featuring-william-golden/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object data="http://fightingwithforks.com/wp/wp-content/plugins/wordtube/player.swf" name="WT1" id="WT1" type="application/x-shockwave-flash" height="520" width="512"><param value="opaque" name="wmode"><param value="always" name="allowscriptaccess"><param value="true" name="allowfullscreen"><param value="file=http://fightingwithforks.com/wp/wp-content/plugins/wordtube/myextractXML.php?id=0&amp;volume=80&amp;bufferlength=5&amp;frontcolor=281F19&amp;lightcolor=281F19&amp;screencolor=281F19&amp;skin=http%3A%2F%2Ffightingwithforks.com%2Fvideo%2Fstijl%2Fstijl.swf&amp;shuffle=false&amp;playlistsize=200&amp;playlist=bottom" name="flashvars"></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2009/08/05/now-youre-being-rediculous-featuring-william-golden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Simple Shell Script to Create a Custom php.ini on Dreamhost&#8217;s Shared Host</title>
		<link>http://www.foryourlungsonly.net/2009/07/28/a-simple-shell-script-to-create-a-custom-php-ini-on-dreamhosts-shared-host/</link>
		<comments>http://www.foryourlungsonly.net/2009/07/28/a-simple-shell-script-to-create-a-custom-php-ini-on-dreamhosts-shared-host/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 16:24:40 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=104</guid>
		<description><![CDATA[While shared hosts offer great service for little cost there can be problems with sites timing out when uploading large files or you would like to be in more control of your server a bit. Just change the value for site and you&#8217;ll be off to the races. There are some other values you can [...]]]></description>
			<content:encoded><![CDATA[<p>While shared hosts offer great service for little cost there can be problems with sites timing out when uploading large files or you would like to be in more control of your server a bit. Just change the value for site and you&#8217;ll be off to the races. There are some other values you can customize to your needs but only edit and use this script if you know what you&#8217;re doing. This was created so I could upload some large files over a 20MB line so if your connection is slower or would like to allow users with slower connections to upload such large files, toy with the time settings a bit till you find the proper values for your system &amp; connection. I take no responsibility for anyone who uses this script, if you break your server contact support and beg them for help. Or ask me and I&#8217;ll see what we can do, cheers!</p>
<p>Onto the script!<span id="more-104"></span></p>
<blockquote>
<pre># stop on errors
set -e

# set the site for which you want to setup the custom php.ini
SITE=yoursite.com

# copy the php.ini to modify
mkdir $HOME/${SITE}/cgi-bin
cp /etc/php5/cgi/php.ini $HOME/${SITE}/cgi-bin/php.ini
cat &lt;&lt; EOF &gt; $HOME/${SITE}/cgi-bin/php-wrapper.fcgi
#!/bin/sh
exec /dh/cgi-system/php5.cgi $*
EOF
chmod 755 $HOME/${SITE}/cgi-bin
chmod 755 $HOME/${SITE}/cgi-bin/php-wrapper.fcgi
chmod 640 $HOME/${SITE}/cgi-bin/php.ini

# search and replace the php.ini
#!/bin/sh
INIFILE="$HOME/${SITE}/cgi-bin/php.ini"
rsync -a /dh/cgi-system/php5.cgi "$CGIFILE"
perl -p -i -e '
s/.*post_max_size.*/post_max_size = 100M/;
s/.*upload_max_filesize.*/upload_max_filesize = 100M/;
s/.*max_execution_time.*/max_execution_time = 1200/;
s/.*max_input_time.*/max_input_time = 1200/;
s/.*memory_limit.*/memory_limit = 250M/;
' "$INIFILE"

# create the new htaccess or append the handlers to your current .htaccess
FILE=.htaccess
cat &gt;&gt; $HOME/${SITE}/${FILE} &lt;&lt; EOF
Options +ExecCGI
AddHandler php5-cgi .php
Action php-cgi /cgi-bin/php-wrapper.fcgi
Action php5-cgi /cgi-bin/php-wrapper.fcgi
EOF</pre>
</blockquote>
<p><a title="Custom PHP.ini on Dreamhost's Shared Hosting" href="http://www.foryourlungsonly.net/wp-content/uploads/2009/07/customphp.sh">Download the script</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2009/07/28/a-simple-shell-script-to-create-a-custom-php-ini-on-dreamhosts-shared-host/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress Google Sitemap Generator Plugin mktime() Error Resolved</title>
		<link>http://www.foryourlungsonly.net/2009/07/24/wordpress-google-sitemap-generator-plugin-mktime-error-resolved/</link>
		<comments>http://www.foryourlungsonly.net/2009/07/24/wordpress-google-sitemap-generator-plugin-mktime-error-resolved/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 17:00:29 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[gnu gpl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=102</guid>
		<description><![CDATA[If you use the Google Sitemap Generator Plugin for WordPress and receive the following error using WordPress 2.8+ you are not alone: Warning: mktime() expects parameter 1 to be long, string given in/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2438 A solution for this was posted in the WordPress forums and is posted below: Find and edit the plugin [...]]]></description>
			<content:encoded><![CDATA[<p>If you use the <a title="Google Sitemap Generator Plugin for WordPress" href="http://www.arnebrachhold.de/redir/sitemap-home/">Google Sitemap Generator Plugin for WordPress</a> and receive the following error using <a href="http://wordpress.org">WordPress</a> 2.8+ you are not alone:</p>
<blockquote><p>Warning: mktime() expects parameter 1 to be long, string given in/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 2438</p></blockquote>
<p><a href="http://wordpress.org/support/topic/281175#post-1112393">A solution for this</a> was posted in the WordPress forums and is posted below:</p>
<ol>
<li>Find and edit the plugin file sitemap-core.php then go to line number 2438</li>
<li>Comment out the old line:
<ul>
<li>
<blockquote><p>//return mktime($hour, $min, $sec, $month, $day, $year);</p></blockquote>
</li>
</ul>
</li>
<li>Then paste this on the next line:
<ul>
<li>
<blockquote><p>return mktime(doubleval( $hour), $min, $sec, $month, $day, doubleval($year));</p></blockquote>
</li>
</ul>
</li>
<li>So the two lines should look like this:
<ul>
<li>
<blockquote><p>//return mktime($hour, $min, $sec, $month, $day, $year);<br />
return mktime(doubleval( $hour), $min, $sec, $month, $day, doubleval($year));</p></blockquote>
</li>
</ul>
</li>
<li>Save the file and attempt to rebuild sitemap once more and this time it should work like a charm!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2009/07/24/wordpress-google-sitemap-generator-plugin-mktime-error-resolved/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Need reliable high speed internet?</title>
		<link>http://www.foryourlungsonly.net/2009/07/22/need-reliable-high-speed-internet/</link>
		<comments>http://www.foryourlungsonly.net/2009/07/22/need-reliable-high-speed-internet/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 16:47:49 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[eff]]></category>
		<category><![CDATA[i came as a rant]]></category>
		<category><![CDATA[net neutrality]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=100</guid>
		<description><![CDATA[If you are in favor of defending net neutrality, enjoy solid uptime or want an alternative to Comcast here are two services I have used which work wonderfully. AT&#038;T U-verse Great fiber optic package with combined internet, TV and VOIP services with solid uptime. AT&#38;T is a corporate defender of net neutrality. They also have [...]]]></description>
			<content:encoded><![CDATA[<p>If you are in favor of defending <a href="http://en.wikipedia.org/wiki/Network_neutrality">net neutrality</a>, enjoy solid uptime or want an alternative to <a href="http://spicytunas.com/wp-content/uploads/2008/12/comcast-blows-logo.jpg" rel='lytebox[need-reliable-high-speed-internet]'>Comcast</a> here are two services I have used which work wonderfully.</p>
<h2><a href="https://uverse1.att.com/un/launchAMSS.do">AT&#038;T U-verse</a></h2>
<p>Great fiber optic package with combined internet, TV and VOIP services with solid uptime. AT&amp;T is a corporate defender of net neutrality. They also have reasonable DSL speeds for lower cost and their tech support are some of the smartest I have been on the end of the line with. I previously had their Elite DSL package and regular phone while living in Costa Mesa, CA and never had the net connection drop once. Plus they allow you to run a web server out of your home if you feel so inclined. This is not the story with Comcast which can be helpful for setting a small gaming server or creating a local web server to show off updates on projects without having to upload to a development site or email links. This also allows your clients to see the most recent version of their projects, which my clients loved.</p>
<h2><a href="http://verizon.com/fios">Verizon FiOS</a></h2>
<p>True fiber optic connection until the fiber optic line hits your residence where the signal is converted to copper wires but it hauls and is well worth it. If I remember correctly for internet and VOIP services the bill came out to around $80 a month and once the &#8216;Spicoli&#8217; installers replaced a bad conversion box it never went down and remained a solid service. I think with the TV services our bill would have rounded out to around $125 so its not a bad deal. Unfortunately, I had some issues using port forwarding for my home web server, Verizon does not support Net Neutrality (Obama does though) and their tech support is rather poor. But once things are setup its very self maintaining, just use your own router and use theirs to act only as modem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2009/07/22/need-reliable-high-speed-internet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Talk and WinAmp Issue Resolved!</title>
		<link>http://www.foryourlungsonly.net/2009/01/23/google-talk-and-winamp-issue-resolved/</link>
		<comments>http://www.foryourlungsonly.net/2009/01/23/google-talk-and-winamp-issue-resolved/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 17:33:18 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[eff]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[random mess]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=78</guid>
		<description><![CDATA[So there&#8217;s this wonderful problem that came about with WinAmp and Google Talk. If you try to &#8220;Show current music track&#8221; in Google Talk while WinAmp is playing some music it will have a cardiac arrest, freeze up and force to CTRL+ALT+DEL it into oblivion. I tried logging into Google Talk via Gmail to change [...]]]></description>
			<content:encoded><![CDATA[<p>So there&#8217;s this wonderful problem that came about with WinAmp and Google Talk. If you try to &#8220;Show current music track&#8221; in Google Talk while WinAmp is playing some music it will have a cardiac arrest, freeze up and force to CTRL+ALT+DEL it into oblivion. I tried logging into Google Talk via Gmail to change the status message to something else or even opening iTunes (which works wonderfully with Google Talk I would like to add!) just to get Google Talk to stop freezing up. I searched the internets and found some advice around forums and here is what I found that worked for me in less steps than were posted on almost all the forums:</p>
<p>Option 1:</p>
<ol>
<li>Close Winamp and Google Talk (also any other music player type programs)</li>
<li>Download and run one of the following files:
<ul>
<li><a title="Google Talk (GTalk) and WinAmp Current Music Track NOw Playing Issue Solution for Windows XP" href="/experiments/WinAmp_GoogleTalk_Fix.bat" target="_blank">For Windows Vista 32 bit (x86), Windows 7 32 bit (x86), Windows XP (x86) and earlier versions of Windows</a></li>
<li><a title="Google Talk (GTalk) and WinAmp Current Music Track NOw Playing Issue Solution for Windows Vista 64 bit and Windows 7 64 bit" href="/experiments/WinAmp_GoogleTalk_Fix_VistaWin7.bat" target="_blank">For Windows XP 64 bit Vista 64 bit and Windows 7 64 bit versions</a></li>
</ul>
</li>
<li>You&#8217;re Done! (hopefully)</li>
</ol>
<p>Option 2:</p>
<ol>
<li>Close Winamp and Google Talk (also any other music player type programs)</li>
<li>Go to the Start Menu (bottom left corner of your screen), click on &#8220;Run&#8221; and paste in the following: C:\Program Files\Winamp\ then hit Enter or click &#8220;Ok&#8221;</li>
<li>A new window will open and inside of this new window select &#8220;File&#8221; then &#8220;New&#8221; then &#8220;Text Document&#8221;</li>
<li>Change the new text document&#8217;s name to &#8220;winamp.m3u&#8221; and re-open Winamp and Google Talk</li>
</ol>
<p>Hope this was helpful, cheers!</p>
<p>EDIT: 2010-04-20<br />
I have added versions for 64 bit versions of Windows (XP, Vista and 7)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2009/01/23/google-talk-and-winamp-issue-resolved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slide N&#8217; Hide jQuery Navigation Accordion Slider</title>
		<link>http://www.foryourlungsonly.net/2008/11/12/slide-n-hide-jquery-navigation-accordion-slider/</link>
		<comments>http://www.foryourlungsonly.net/2008/11/12/slide-n-hide-jquery-navigation-accordion-slider/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 01:48:52 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[eff]]></category>
		<category><![CDATA[gnu gpl]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=37</guid>
		<description><![CDATA[View Example View Source Code A simple vertical jQuery accordion with much room for growth. In future version I would like to use a few additional lines of JS to create a cleaner structure but even if only as an example this is a good start. I made a horizontal accordion as well but all [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.foryourlungsonly.net/experiments/slide_n_hide.php3">View Example</a><br />
<a href="http://foryourlungsonly.net/experiments/slide_n_hide.phps">View Source Code</a></p>
<p>A simple vertical jQuery accordion with much room for growth. In future version I would like to use a few additional lines of JS to create a cleaner structure but even if only as an example this is a good start. I made a horizontal accordion as well but all things will be made public in due time.</p>
<p>This script creates a cooking and remembers which section was last opened therefore making it a great homepage piece or miniature site navigation.</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2008/11/12/slide-n-hide-jquery-navigation-accordion-slider/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox 3 Closes All Open Tabs on Exit Problem and Forgets To Ask What You Wanted</title>
		<link>http://www.foryourlungsonly.net/2008/11/12/firefox-3-close-open-opens-on-exit-problem/</link>
		<comments>http://www.foryourlungsonly.net/2008/11/12/firefox-3-close-open-opens-on-exit-problem/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 01:07:20 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[i came as a rant]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=59</guid>
		<description><![CDATA[Firefox is a priceless debugging tool for web developers. However, when it stops functioning properly, daily tasks &#38; work become more complicated. One day Firefox stopped asking if I wanted to restore my tabs when the program closed. After being annoyed for quite sometime I thought about restoring FireFox to its defaults settings. Windows XP/2000/Vista: [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox is a priceless debugging tool for web developers. However, when it stops functioning properly, daily tasks &amp; work become more complicated.</p>
<p>One day Firefox stopped asking if I wanted to restore my tabs when the program closed. After being annoyed for quite sometime I thought about restoring FireFox to its defaults settings.</p>
<blockquote><p><strong>Windows XP/2000/Vista:</strong></p>
<p>firefox -safe-mode</p>
<p>&#8220;C:\Program Files\Mozilla Firefox\firefox.exe&#8221; -safe-mode</p>
<p>OR</p>
<p>Start &gt; All Programs &gt; Mozilla Firefox (folder) &gt; Mozilla Firefox Safe Mode</p>
<p><strong>Linux:</strong></p>
<p>/path/to/firefox/firefox -safe-mode</p>
<p><strong>Mac OS X:</strong></p>
<p>/Applications/Firefox.app/Contents/MacOS/firefox -safe-mode</p></blockquote>
<p>Now, while it is true that somewhere along the way I may have inadvertently unchecked &#8220;No, don&#8217;t ask me again&#8221; the problem was nonetheless frustrating. So, if Firefox does not remember what tabs you had open before on closing it just follow those steps above.</p>
<p>That is unless you don&#8217;t want it to remember what tabs were open, browsing history, passwords, cookies, etc because you were looking at skeevy porn or browsing the Jars of Clay &#8216;Eternal Fanclub of best Friends Forever&#8217;, then you probably shouldn&#8217;t be using Firefox. <em>Use Internet Explorer and get the viruses God intended your computer be infected with.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2008/11/12/firefox-3-close-open-opens-on-exit-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flickr + PHP + XML + Flash = Fun</title>
		<link>http://www.foryourlungsonly.net/2008/11/12/flickr-php-xml-flash-fun/</link>
		<comments>http://www.foryourlungsonly.net/2008/11/12/flickr-php-xml-flash-fun/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 00:51:42 +0000</pubDate>
		<dc:creator>Jonathan Harriot</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[gnu gpl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.foryourlungsonly.net/?p=46</guid>
		<description><![CDATA[PHPFlickr is a really neat little package that makes implementation of Flickr&#8217;s API quick and painless. I tried various techniques to create a slideshow for a client with LyteBox to enlarge the images but I slowly grew tired of the animation and the functionality that almost no one for this specific project would use. So [...]]]></description>
			<content:encoded><![CDATA[<p>PHPFlickr is a really neat little package that makes implementation of Flickr&#8217;s API quick and painless. I tried various techniques to create a slideshow for a client with LyteBox to enlarge the images but I slowly grew tired of the animation and the functionality that almost no one for this specific project would use. So I grabbed a small SWF slideshow from my toolbox and went to work creating a simple script to grab the photos and output the image URI I needed without creating bulky code. Here is what I came up with to make this easier for myself:<span id="more-46"></span></p>
<pre><code>&lt;?
photosets_getPhotos($photoset_id, NULL, NULL, 15, 1);

	// create a random interval for the timer between 6 and 10 seconds
	$randomnumber= rand(6,10);

	// create an array to output as xml
	$xml_output = "\n";
	foreach ((array)$photos['photo'] as $photo) {
		$xml_output .= "<img alt="" />buildPhotoURL($photo, "medium") . "\" ";
		$xml_output .= "/&gt;\n";
		$i++;
	}
	$xml_output .= "\n";
	echo $xml_output;

	// you're done!
?&gt;</code></pre>
<p>Simple and straight forward.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foryourlungsonly.net/2008/11/12/flickr-php-xml-flash-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.357 seconds -->
<!-- Cached page served by WP-Cache -->
