<?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>boolean.co.nz &#187; Twitter</title>
	<atom:link href="http://boolean.co.nz/blog/category/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://boolean.co.nz/blog</link>
	<description>Where there is more to logic than TRUE or FALSE</description>
	<lastBuildDate>Sun, 29 Jan 2012 03:16:33 +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>OSX Lion 10.7.2 Tweetdeck Crashes</title>
		<link>http://boolean.co.nz/blog/osx-tweetdeck-crashes/704/</link>
		<comments>http://boolean.co.nz/blog/osx-tweetdeck-crashes/704/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 00:24:52 +0000</pubDate>
		<dc:creator>Boolean</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://boolean.co.nz/blog/?p=704</guid>
		<description><![CDATA[Tweetdeck has been crashing on startup recently, &#8211; seemingly without any kind of pattern. At first I attributed this to OSX Lion related issues, but sometimes having Firefox or Chrome open seemed to solve the problem. I have finally tracked down the underlying issue to Adobe Air, the framework powering Tweetdeck and many other applications. [...]]]></description>
			<content:encoded><![CDATA[<p>Tweetdeck has been crashing on startup recently, &#8211; seemingly without any kind of pattern. At first I attributed this to OSX Lion related issues, but sometimes having Firefox or Chrome open seemed to solve the problem.</p>
<p>I have finally tracked down the underlying issue to Adobe Air, the framework powering Tweetdeck and many other applications. In fact it is the switching software for late model Macbook Pros toggling between the discrete and integrated graphics cards. Launching Firefox or Chrome forces the graphics card to switch to discrete mode, solving the autoswitching and crashing on startup error.</p>
<p>You can manually change the setting to solve the problem by navigating to System Preferences -> Energy Saver. Uncheck the Automatic Graphics Switching at the top of the preferences dialog.</p>
<p>A better fix however is to use <a href="http://codykrieger.com/gfxCardStatus" title="gfxCardStatus" target="_blank">gfxCardStatus</a> which is a menu bar application for OSX that allows users of dual-GPU 15&#8243; and 17&#8243; MacBook Pros to view which GPU is in use at a glance, and switch between them on-demand.</p>
<p><strong>Update 29/01/2012</strong><br />
I have discovered that VMWareFusion does not play nicely at all with gfxCardStatus. Fusion <em>will</em> work if you disable dynamic switching and force the use of the discrete GPU but if you change between the two, expect major issues. I&#8217;m disabling gfxCardStatus before launching Fusion to avoid the problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://boolean.co.nz/blog/osx-tweetdeck-crashes/704/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP URL Shortening</title>
		<link>http://boolean.co.nz/blog/php-url-shortening/463/</link>
		<comments>http://boolean.co.nz/blog/php-url-shortening/463/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 15:22:37 +0000</pubDate>
		<dc:creator>Boolean</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://boolean.co.nz/blog/?p=463</guid>
		<description><![CDATA[A current Twitter related project involves quite a few URLs and because Twitter limits you to only 140 characters per post shortening a link can be very rewarding. There are a multitude of URL shortening services on the internet and whilst perhaps not producing the shortest links, TinyURL.com requires no account in order to use [...]]]></description>
			<content:encoded><![CDATA[<table>
<tr>
<td><img src="http://boolean.co.nz/blog/wp-content/uploads/2009/03/php-logo.png" alt="" title="php-logo" width="203" height="107" class="aligncenter size-full wp-image-61" /></td>
</tr>
</table>
<p>A current Twitter related project involves quite a few URLs and because Twitter limits you to only 140 characters per post shortening a link can be very rewarding.</p>
<table>
<tr>
<td>
<img src="http://boolean.co.nz/blog/wp-content/uploads/2010/11/TinyURL_logo.png" alt="" title="TinyURL_logo" width="200" height="52" class="alignleft size-full wp-image-493" /></td>
<td>There are a multitude of URL shortening services on the internet and whilst perhaps not producing the shortest links, TinyURL.com requires no account in order to use it via PHP which makes for a very simple query:</td>
</tr>
</table>
<div class="codesnip-container" >function getTinyUrl($url) {<br />
    return file_get_contents(&#8220;http://tinyurl.com/api-create.php?url=&#8221;.$url);<br />
}</div>
<p><br/></p>
<table>
<tr>
<td><img src="http://boolean.co.nz/blog/wp-content/uploads/2010/11/bitly_logo1.png" alt="" title="bitly_logo" width="179" height="98" class="alignleft size-full wp-image-496" />
</td>
<td>bit.ly is another popular URL shortener, however it does require an easily obtainable API key. The code is below:</td>
</tr>
</table>
<div class="codesnip-container" >function getBitly($url) {<br />
    $query = file_get_contents(&#8220;http://api.bit.ly/v3/shorten?login=YOUR_LOGIN&#038;;apiKey=YOUR_APIKEY&#038;longUrl=&#8221;.$url.&#8221;&#038;format=xml&#8221;);<br />
    $element = new SimpleXmlElement($query);<br />
    $bitlyurl = $element->data->url;<br />
    if($bitlyurl){<br />
        return $bitlyurl;<br />
    } else {<br />
        return &#8217;0&#8242;;<br />
    }<br />
}</div>
<p>Dont forget to change YOUR_LOGIN and YOUR_APIKEY to your own values. I&#8217;m sure you dont need any help with usage, but as always comment if you have any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://boolean.co.nz/blog/php-url-shortening/463/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Twitter Application started</title>
		<link>http://boolean.co.nz/blog/new-twitter-application-started/426/</link>
		<comments>http://boolean.co.nz/blog/new-twitter-application-started/426/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 03:11:41 +0000</pubDate>
		<dc:creator>Boolean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://boolean.co.nz/blog/?p=426</guid>
		<description><![CDATA[It has been quiet on the development front recently, however a new personal project is in the works. Stay tuned for news, revelations, and beta invites!]]></description>
			<content:encoded><![CDATA[<table>
<tr>
<td>
<img src="http://boolean.co.nz/blog/wp-content/uploads/2010/07/twitter-logo.jpg" alt="" title="Twitter-Logo" width="298" height="136" class="aligncenter size-full wp-image-427" />
</td>
</tr>
</table>
<p>It has been quiet on the development front recently, however a new personal project is in the works.</p>
<p>Stay tuned for news, revelations, and beta invites!</p>
]]></content:encoded>
			<wfw:commentRss>http://boolean.co.nz/blog/new-twitter-application-started/426/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

