<?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>Just answer the F*#king question &#187; Useful stuff</title>
	<atom:link href="http://www.jatfq.com/archives/category/usefull-stuff/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jatfq.com</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jan 2012 15:45:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Updating windows 7 bootcamp Broadcom drivers</title>
		<link>http://www.jatfq.com/archives/166</link>
		<comments>http://www.jatfq.com/archives/166#comments</comments>
		<pubDate>Sun, 29 Jan 2012 15:44:01 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
				<category><![CDATA[Useful stuff]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/?p=166</guid>
		<description><![CDATA[Updates the current broadcom drivers which work slightly faster. Get from the HP site]]></description>
			<content:encoded><![CDATA[<p><a href="http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=ca&#038;lc=en&#038;dlc=en&#038;softwareitem=ob-80585-1"></a>Updates the current broadcom drivers which work slightly faster. Get from the HP site</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166&amp;title=Updating+windows+7+bootcamp+Broadcom+drivers" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166&amp;title=Updating+windows+7+bootcamp+Broadcom+drivers" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166&amp;title=Updating+windows+7+bootcamp+Broadcom+drivers" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166&amp;title=Updating+windows+7+bootcamp+Broadcom+drivers" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166&amp;title=Updating+windows+7+bootcamp+Broadcom+drivers', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166&amp;title=Updating+windows+7+bootcamp+Broadcom+drivers" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F166&amp;title=Updating+windows+7+bootcamp+Broadcom+drivers" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/166/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone disabling background mode for OS4</title>
		<link>http://www.jatfq.com/archives/164</link>
		<comments>http://www.jatfq.com/archives/164#comments</comments>
		<pubDate>Thu, 31 Mar 2011 13:43:28 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
				<category><![CDATA[XCode  / C]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/?p=164</guid>
		<description><![CDATA[Add to your info.plist UIApplicationExitsOnSuspend = true]]></description>
			<content:encoded><![CDATA[<p>Add to your info.plist</p>
<p><code>UIApplicationExitsOnSuspend = true</code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164&amp;title=iPhone+disabling+background+mode+for+OS4" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164&amp;title=iPhone+disabling+background+mode+for+OS4" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164&amp;title=iPhone+disabling+background+mode+for+OS4" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164&amp;title=iPhone+disabling+background+mode+for+OS4" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164&amp;title=iPhone+disabling+background+mode+for+OS4', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164&amp;title=iPhone+disabling+background+mode+for+OS4" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F164&amp;title=iPhone+disabling+background+mode+for+OS4" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/164/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the iPhone status bar color</title>
		<link>http://www.jatfq.com/archives/161</link>
		<comments>http://www.jatfq.com/archives/161#comments</comments>
		<pubDate>Thu, 31 Mar 2011 13:41:22 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
				<category><![CDATA[XCode  / C]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/?p=161</guid>
		<description><![CDATA[Either in the info.plist UIStatusBarStyle = UIStatusBarStyleBlackOpaque or [application setStatusBarStyle:UIStatusBarStyleBlackOpaque];]]></description>
			<content:encoded><![CDATA[<p>Either in the info.plist</p>
<p><code>UIStatusBarStyle = UIStatusBarStyleBlackOpaque</code></p>
<p>or</p>
<p><code>[application setStatusBarStyle:UIStatusBarStyleBlackOpaque];</code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161&amp;title=Changing+the+iPhone+status+bar+color" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161&amp;title=Changing+the+iPhone+status+bar+color" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161&amp;title=Changing+the+iPhone+status+bar+color" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161&amp;title=Changing+the+iPhone+status+bar+color" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161&amp;title=Changing+the+iPhone+status+bar+color', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161&amp;title=Changing+the+iPhone+status+bar+color" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F161&amp;title=Changing+the+iPhone+status+bar+color" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/161/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>String non alpha-numeric characters from a NSString</title>
		<link>http://www.jatfq.com/archives/153</link>
		<comments>http://www.jatfq.com/archives/153#comments</comments>
		<pubDate>Fri, 01 Oct 2010 12:25:05 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
				<category><![CDATA[XCode  / C]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/?p=153</guid>
		<description><![CDATA[NSCharacterSet *nonalphanumericSet = [[ NSCharacterSet alphanumericCharacterSet ] invertedSet ]; NSString * endingString = [[@"sdfsd*&#038;*(*(SD&#038;((SD" componentsSeparatedByCharactersInSet:nonalphanumericSet] componentsJoinedByString:@""];]]></description>
			<content:encoded><![CDATA[<p><code>NSCharacterSet *nonalphanumericSet = [[ NSCharacterSet alphanumericCharacterSet ] invertedSet ];<br />
NSString * endingString = [[@"sdfsd*&#038;*(*(SD&#038;((SD" componentsSeparatedByCharactersInSet:nonalphanumericSet] componentsJoinedByString:@""]; </code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153&amp;title=String+non+alpha-numeric+characters+from+a+NSString" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153&amp;title=String+non+alpha-numeric+characters+from+a+NSString" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153&amp;title=String+non+alpha-numeric+characters+from+a+NSString" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153&amp;title=String+non+alpha-numeric+characters+from+a+NSString" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153&amp;title=String+non+alpha-numeric+characters+from+a+NSString', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153&amp;title=String+non+alpha-numeric+characters+from+a+NSString" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F153&amp;title=String+non+alpha-numeric+characters+from+a+NSString" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/153/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow ZLIB compression in CURL and PHP</title>
		<link>http://www.jatfq.com/archives/149</link>
		<comments>http://www.jatfq.com/archives/149#comments</comments>
		<pubDate>Fri, 06 Aug 2010 13:05:27 +0000</pubDate>
		<dc:creator>Sime</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jatfq.com/?p=149</guid>
		<description><![CDATA[function file_get_contents_utf8($URL) { $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_HEADER, 1); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_HTTPHEADER, array("Accept-Encoding: gzip, deflate","Accept: */*")); $ret = curl_exec($c); curl_close($c); if(strpos($ret, "\r\n\r\n")){ $add = 4; }else{ $add = 0; } $m_body = substr($ret, strpos($ret, "\r\n\r\n")+$add ); $m_header = substr($ret, 0, -strlen($m_body)); if(strstr($m_header,"Content-Encoding: gzip")){ $contents = gzinflate(substr($m_body,10)); }else{ [...]]]></description>
			<content:encoded><![CDATA[<p><code>function file_get_contents_utf8($URL)<br />
    {<br />
        $c = curl_init();<br />
        curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);<br />
	 curl_setopt($c, CURLOPT_HEADER,         1);<br />
	 curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);<br />
        curl_setopt($c, CURLOPT_URL, $URL);<br />
	 curl_setopt($c, CURLOPT_HTTPHEADER, array("Accept-Encoding: gzip, deflate","Accept: */*"));<br />
        $ret = curl_exec($c);<br />
        curl_close($c);</p>
<p>	if(strpos($ret, "\r\n\r\n")){<br />
		$add = 4;<br />
	}else{<br />
		$add = 0;<br />
	}</p>
<p>	$m_body   = substr($ret, strpos($ret, "\r\n\r\n")+$add );<br />
	$m_header = substr($ret, 0, -strlen($m_body));</p>
<p>	if(strstr($m_header,"Content-Encoding: gzip")){<br />
		$contents =  gzinflate(substr($m_body,10));<br />
	}else{<br />
		$contents = $m_body;<br />
	}</p>
<p>        if ($contents) return $contents;<br />
            else return FALSE;<br />
    }</code></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149&amp;title=Allow+ZLIB+compression+in+CURL+and+PHP" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149&amp;title=Allow+ZLIB+compression+in+CURL+and+PHP" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149&amp;title=Allow+ZLIB+compression+in+CURL+and+PHP" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149&amp;title=Allow+ZLIB+compression+in+CURL+and+PHP" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149&amp;title=Allow+ZLIB+compression+in+CURL+and+PHP', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149&amp;title=Allow+ZLIB+compression+in+CURL+and+PHP" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.jatfq.com%2Farchives%2F149&amp;title=Allow+ZLIB+compression+in+CURL+and+PHP" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.jatfq.com/archives/149/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

