<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3" -->
<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/"
	>

<channel>
	<title>3:30</title>
	<link>http://www.3thirty.net/blog</link>
	<description>almost there.</description>
	<pubDate>Tue, 19 Jan 2010 11:24:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
	<language>en</language>
			<item>
		<title>Installing ssh2 PHP extension under OSX</title>
		<link>http://www.3thirty.net/blog/?p=52</link>
		<comments>http://www.3thirty.net/blog/?p=52#comments</comments>
		<pubDate>Tue, 03 Nov 2009 04:11:24 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=52</guid>
		<description><![CDATA[ After migrating to my new mac, I found I needed to reinstall the ssh2 PHP extension:
Fatal error:  Call to undefined function ssh2_connect() in /Users/ethan/Sites/myfile.php on line 40
Since this is the second time I&#8217;ve had to do this now, and it took a bit of head scratching both times, I figured I&#8217;d document how [...]]]></description>
			<content:encoded><![CDATA[<p> After migrating to my new mac, I found I needed to reinstall the ssh2 PHP extension:</p>
<blockquote><p><strong>Fatal error</strong>:  Call to undefined function ssh2_connect() in <strong>/Users/ethan/Sites/myfile.php</strong> on line <strong>40</strong></p></blockquote>
<p>Since this is the second time I&#8217;ve had to do this now, and it took a bit of head scratching both times, I figured I&#8217;d document how to install this extension under Mac OS 10.6&#8230;  <a href="http://www.3thirty.net/blog/?p=52#more-52" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=52</wfw:commentRss>
		</item>
		<item>
		<title>Update: TPG Usage Widget</title>
		<link>http://www.3thirty.net/blog/?p=50</link>
		<comments>http://www.3thirty.net/blog/?p=50#comments</comments>
		<pubDate>Thu, 20 Aug 2009 10:26:07 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[TPG Usage Widget]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=50</guid>
		<description><![CDATA[A very minor update to make the widget work with the recent change to the TPG site (seems someone decided they should refer to Downloads instead of Download).
Download TPG Widget version 1.11
Note that previous versions of the widget are no longer functional
]]></description>
			<content:encoded><![CDATA[<p>A very minor update to make the widget work with the recent change to the TPG site (seems someone decided they should refer to<strong> </strong>Download<strong>s</strong> instead of Download).</p>
<p><strong><a href="http://www.3thirty.net/blog/wp-content/uploads/2009/08/tpg-111.zip" title="TPG Widget version 1.11">Download TPG Widget version 1.11</a></strong></p>
<p>Note that previous versions of the widget are no longer functional</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=50</wfw:commentRss>
		</item>
		<item>
		<title>Enabling Diagnostics in TPG Widget</title>
		<link>http://www.3thirty.net/blog/?p=48</link>
		<comments>http://www.3thirty.net/blog/?p=48#comments</comments>
		<pubDate>Thu, 06 Nov 2008 12:13:55 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[TPG Usage Widget]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=48</guid>
		<description><![CDATA[To enable diagnostics for the TPG widget:

Open ~/Library/Widgets/TPG.wdgt/TPG.js in a text editor
Change the first line of code (past the documentation and revision historyFrom:
// global debug variable
var _debug = false;
To:
// global debug variable
var _debug = true;

Save and quit
On the dashboard, close the TPG widget and then add it again
Check /var/log/system.log (via the terminal, or the console [...]]]></description>
			<content:encoded><![CDATA[<p>To enable diagnostics for the TPG widget:</p>
<ol>
<li>Open ~/Library/Widgets/TPG.wdgt/TPG.js in a text editor</li>
<li>Change the first line of code (past the documentation and revision historyFrom:
<pre>// global debug variable
var _debug = false;</pre>
<p>To:</p>
<pre>// global debug variable
var _debug = <span style="color: blue; font-weight: bold">true</span>;</pre>
</li>
<li>Save and quit</li>
<li>On the dashboard, close the TPG widget and then add it again</li>
<li>Check /var/log/system.log (via the terminal, or the <strong>console </strong>app) for entries marked with <strong>3thirty</strong>.
<p><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/11/picture-1.png" title="Example of logfile entries in console app"><img src="http://www.3thirty.net/blog/wp-content/uploads/2008/11/picture-1.png" alt="Example of logfile entries in console app" height="253" width="500" /></a></p>
<p>This will show the username that has been recorded, and the values that are used to calculate the usage meters</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>simple bc widget</title>
		<link>http://www.3thirty.net/blog/?p=45</link>
		<comments>http://www.3thirty.net/blog/?p=45#comments</comments>
		<pubDate>Wed, 22 Oct 2008 12:45:15 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=45</guid>
		<description><![CDATA[I&#8217;ve knocked up a simple calculator dashboard widget for OS X. It doesn&#8217;t look that pretty, but it utilises the power of bc, and provides a quick and easy front end for it.

The release notes:

/*
 * Simple bc Widget * URL: http://www.3thirty.net/simple-bc
 * Author: Ethan Smith
 * Created: 22/10/08
 *
 * Simple dashborad calculator utilising the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve knocked up a simple calculator dashboard widget for OS X. It doesn&#8217;t look that pretty, but it utilises the power of bc, and provides a quick and easy front end for it.</p>
<p style="text-align: center"><img src="http://www.3thirty.net/blog/wp-content/uploads/2008/10/picture-2.png" alt="simple bc screenshot" /></p>
<p>The release notes:</p>
<pre style="background-color: white; font-size: 7pt">
/*
 * Simple bc Widget * URL: http://www.3thirty.net/simple-bc
 * Author: Ethan Smith
 * Created: 22/10/08
 *
 * Simple dashborad calculator utilising the baisc calculator, bc. This is really just an interface that
 * passes exactly what you enter to the bc command and prints out the result. The idea behind this widget
 * is to make it really quick and easy to perform simple calculations.
 *
 * Some of the things that this widget does (aka why this is better than the commandline):
 *	- Typing anywhere on the widget will start typing in the sum box
 *	- Pressing enter will perform the calculation
 *	- Pressing escape will clear the textfield
 *	- Starting a calculation with an arithmetic operator (+-/*) will perform the calculation against
 *	  the previous result
 *	- The "previous result variable" allows you to substitute the previous result at any point in
 *	  the current calculation (note that this can be a single letter or a longer word, but you'll have
 *	  all sorts of problems if you try to use a number!)
 *
 * Some of the bc features that are known to work:
 *	- Enter almost anything and bc will do it's best to make a calculation out of it
 *			Example "xyz + 14 - ff * 2 - (v + c)" = 14
 *	- multiline calculations are supported, with a semicolon between each calculation. The results
 *	  will also be separated by semicolons.
 *			Example: "10+4; 10+5;" = 14;15
 *	- variable assignment works. Just be careful that variable names don't get trodden on by the
 *	  "previous result variable".
 *			Example: "x=12; x=x+48; x-10" = 50
 *
 * Notes on the implementation of bc:
 *	- this widget really just passes through the calculation almost exactly as entered. Try running
 *	  bc from the commandline, see "man bc" or http://en.wikipedia.org/wiki/Bc_(Unix) for more
 *	- the scale (number of decimal places) is set to 3 by the widget
 */</pre>
<p><strong><big><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/10/simple-bc.zip" title="Simple BC">Download simple-bc</a></strong> widget for OS X</big> <small>(zip, 48kb)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=45</wfw:commentRss>
		</item>
		<item>
		<title>BikeJournal Facebook App - Monthly Graphs</title>
		<link>http://www.3thirty.net/blog/?p=36</link>
		<comments>http://www.3thirty.net/blog/?p=36#comments</comments>
		<pubDate>Sat, 06 Sep 2008 13:51:36 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[BikeJournal Facebook App]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=36</guid>
		<description><![CDATA[Released a new feature today. As requested, we are now storing and graphing monthly total distance for the current year. This is only available on the BikeJournal Tab on your profile


The current month actual figure is shown in red, and the grey bar behind it is the projection, assuming that you continue riding at the [...]]]></description>
			<content:encoded><![CDATA[<p>Released a new feature today. As requested, we are now storing and graphing monthly total distance for the current year. This is only available on the BikeJournal Tab on your profile</p>
<p><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/09/graph-thumb.png" title="BikeJournal Facebook Graph"></a></p>
<p style="text-align: center"><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/09/graph-thumb.png" title="BikeJournal Facebook Graph"><img src="http://www.3thirty.net/blog/wp-content/uploads/2008/09/graph-thumb.png" alt="BikeJournal Facebook Graph" /></a></p>
<p>The current month actual figure is shown in red, and the grey bar behind it is the projection, assuming that you continue riding at the rate you have been so far for the month, so this figure will get more accurate the closer we get to the end of the month.</p>
<p>You can see this in action on my <a href="http://www.new.facebook.com/board.php?status=256&amp;uid=5050403414#/profile.php?id=575933181&amp;v=app_5050403414&amp;viewas=575933181">BikeJournal Tab</a> or by adding BikeJournal to your profile tabs.</p>
<p>Hope everyone enjoys the new feature - let me know your thoughts and any suggestions!</p>
<p>If you&#8217;re not using this app yet, check it out at <a href="http://apps.facebook.com/bikejournal">http://apps.facebook.com/bikejournal</a>; you&#8217;ll need to be a member of <a href="http://www.bikejournal.com">BikeJournal.com</a> too, of course.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=36</wfw:commentRss>
		</item>
		<item>
		<title>BikeJournal Facebook App Update</title>
		<link>http://www.3thirty.net/blog/?p=34</link>
		<comments>http://www.3thirty.net/blog/?p=34#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:51:27 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[BikeJournal Facebook App]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=34</guid>
		<description><![CDATA[I&#8217;ve made some updates to the BikeJournal Facebook App - some performance improvements and have added a new Tab View.

This Tab View also shows the two leaderboards - Yellow Jersey with the top 5 users for the month by distance, and Green Jersey for the top 5 riders with by average speed. If you don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve made some updates to the <a href="http://apps.facebook.com/bikejournal">BikeJournal Facebook App</a> - some performance improvements and have added a new <strong>Tab View</strong>.</p>
<p><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/08/picture-3.png" title="BikeJournal Facebook App - Tab Screenshot"><img src="http://www.3thirty.net/blog/wp-content/uploads/2008/08/picture-3.png" alt="BikeJournal Facebook App - Tab Screenshot" style="border: 1px solid silver; padding-right: 1em; padding-bottom: 1em" align="left" height="413" width="421" /></a></p>
<p>This Tab View also shows the two leaderboards - Yellow Jersey with the top 5 users for the month by distance, and Green Jersey for the top 5 riders with by average speed. If you don&#8217;t record distance or speed for your rides, you won&#8217;t be included in these leaderboards.</p>
<p>To add the  Tab view to your profile, log in to your profile and click the <strong>+</strong> button and select BikeJournal. It&#8217;s that easy.</p>
<p>Get in touch if you have any questions or feedback about this!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=34</wfw:commentRss>
		</item>
		<item>
		<title>Update: TPG Usage Widget</title>
		<link>http://www.3thirty.net/blog/?p=31</link>
		<comments>http://www.3thirty.net/blog/?p=31#comments</comments>
		<pubDate>Wed, 06 Aug 2008 10:15:21 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Projects]]></category>

		<category><![CDATA[TPG Usage Widget]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=31</guid>
		<description><![CDATA[Download TPG Widget for OSX (version 1.10, 92kb)

Fixed major bug in percentage calculations that was causing us to always use the 10% warning, 20% critical limits
Modified horizontalIndicator behaviour - don&#8217;t show critical unless we are over the critical limit. Basically, this has the effect of &#8220;rounding down&#8221; from critical to warning, which is useful, given [...]]]></description>
			<content:encoded><![CDATA[<p><big><strong><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/08/tpg-110.zip">Download TPG Widget for OSX</a></strong></big> <small>(version 1.10, 92kb)</small></p>
<ul>
<li>Fixed major bug in percentage calculations that was causing us to <em>always</em> use the 10% warning, 20% critical limits</li>
<li>Modified horizontalIndicator behaviour - don&#8217;t show critical unless we are <em>over</em> the critical limit. Basically, this has the effect of &#8220;rounding down&#8221; from critical to warning, which is useful, given the granularity of the indicator I&#8217;m using</li>
<li>Removed target percentage, it&#8217;s unnecessary</li>
<li>Fixed minor bug with clicking on the two targets in quick succession</li>
</ul>
<p>I think it&#8217;s time to update this page with product info and revision history, instead of having separate posts for each update&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=31</wfw:commentRss>
		</item>
		<item>
		<title>Update: TPG Usage Widget</title>
		<link>http://www.3thirty.net/blog/?p=28</link>
		<comments>http://www.3thirty.net/blog/?p=28#comments</comments>
		<pubDate>Sun, 03 Aug 2008 08:03:07 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[TPG Usage Widget]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=28</guid>
		<description><![CDATA[This version introduces two new features:

Click on the current usage value to see the current target
Notification if there&#8217;s a new version available on the back of the widget

Download TPG Usage Widget for OSX (version 1.8, 92kb)
It&#8217;s also now available from the Apple Dashboard Widgets site
3 updates in one week! Maybe I should stay off the [...]]]></description>
			<content:encoded><![CDATA[<p>This version introduces two new features:</p>
<ul>
<li>Click on the current usage value to see the current target</li>
<li>Notification if there&#8217;s a new version available on the back of the widget</li>
</ul>
<p><strong><big><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/08/tpg-18.zip">Download TPG Usage Widget for OSX</a></big></strong> <small>(version 1.8, 92kb)</small></p>
<p>It&#8217;s also now available from the <a href="http://www.apple.com/downloads/dashboard/status/tpgusage.html">Apple Dashboard Widgets site</a></p>
<p>3 updates in one week! Maybe I should stay off the booze more often <img src='http://www.3thirty.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>That said, this version clears out all the todos I had on my list for this widget. So unless there&#8217;s any bugs, I don&#8217;t anticipate any new versions for a while, but let me know if there are any problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=28</wfw:commentRss>
		</item>
		<item>
		<title>Update: TPG Usage Widget</title>
		<link>http://www.3thirty.net/blog/?p=25</link>
		<comments>http://www.3thirty.net/blog/?p=25#comments</comments>
		<pubDate>Sat, 02 Aug 2008 03:42:27 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Projects]]></category>

		<category><![CDATA[TPG Usage Widget]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=25</guid>
		<description><![CDATA[Update: Make sure you get the latest version of the widget!
Another minor update to fix some display issues that may show up at the very end and start of the billing cycles.
What&#8217;s changed this time:

Fixed bug in calculating offpeak usage (typo). Previously, offpeak was always green
If you&#8217;re over your total limit for the month, default [...]]]></description>
			<content:encoded><![CDATA[<p><big><strong>Update: Make sure you get the <a href="http://www.3thirty.net/tpgwidget">latest version</a> of the widget!</strong></big></p>
<p>Another minor update to fix some display issues that may show up at the very end and start of the billing cycles.</p>
<p>What&#8217;s changed this time:</p>
<ul>
<li>Fixed bug in calculating offpeak usage (typo). Previously, offpeak was always green</li>
<li>If you&#8217;re over your total limit for the month, default to 75% warning and 90% critical for color coding. Otherwise, the entire bar is green</li>
<li>Fixed display bug: the short horizontal usage bars don&#8217;t have the granularity to show really small percentages (eg at the start of the billing period). So, we overwrite them with some friendlier values (10% of total for warning, 15% for critical). It&#8217;s less accurate, but clearer than showing a single red light</li>
<li>Don&#8217;t save empty values for settings (ensure the widget won&#8217;t forget your username or password)</li>
</ul>
<ul>
<li>Removed unnecessary saveSettings call</li>
<li>Converted all ints to floats, so we keep fractions of gb/mb</li>
</ul>
<p><big><strong><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/08/tpg-16.zip">Download TPG Usage Widget for OSX</a> </strong></big><small>(version 1.6, 96kb)</small></p>
<p>And if anyone was wondering, yes, you <em>can</em> use <a href="http://subversion.tigris.org">subversion</a> to manage a <a href="ttp://developer.apple.com/tools/dashcode/">Dashcode</a> widget project&#8230;</p>
<p> <a href="http://www.3thirty.net/blog/?p=25#more-25" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=25</wfw:commentRss>
		</item>
		<item>
		<title>Update: TPG Usage Widget</title>
		<link>http://www.3thirty.net/blog/?p=23</link>
		<comments>http://www.3thirty.net/blog/?p=23#comments</comments>
		<pubDate>Sun, 27 Jul 2008 05:51:54 +0000</pubDate>
		<dc:creator>ethan</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Projects]]></category>

		<category><![CDATA[TPG Usage Widget]]></category>

		<guid isPermaLink="false">http://www.3thirty.net/blog/?p=23</guid>
		<description><![CDATA[Update: Make sure you get the latest version of the widget!
Another update to the TPG Usage Widget for Mac OS X.
This fixes a pretty major bug with the calculation of red and yellow sections on the indicators; I assumed that everyone&#8217;s TPG billing cycles were monthly, like mine so was calculating usage to the end [...]]]></description>
			<content:encoded><![CDATA[<p><big><strong>Update: Make sure you get the <a href="http://www.3thirty.net/tpgwidget">latest version</a> of the widget!</strong></big></p>
<p>Another update to the TPG Usage Widget for Mac OS X.</p>
<p>This fixes a pretty major bug with the calculation of red and yellow sections on the indicators; I assumed that everyone&#8217;s TPG billing cycles were monthly, like mine so was calculating usage to the end of the current month, rather than looking at the actual expiry date. This caused some pretty confusing indicators showing usage in the red when they should have been in the green.</p>
<p>This should be fixed now, but since I&#8217;ve only tested this for my account, please let me know if you notice any weirdness.</p>
<p>Version 1.4 changes:</p>
<ul>
<li>Fixed bug in calculating &#8220;target usage&#8221; - not everyone has a billing cycle that coincides with the end of the month!</li>
<li>Now displays &lt; 1 day as &#8220;today&#8221; (I saw 0, and maybe a negative on my installation last month)</li>
<li>Added option to click on the expiry date (or days) and change mode. Note that once this option is set, the widget will not override it (unless the mac is restarted or the widget is reinstalled)</li>
</ul>
<p><strong><a href="http://www.3thirty.net/blog/wp-content/uploads/2008/07/tpg-14.zip">Download TPG Usage Widget</a> </strong>(version 1.4, 96kb)</p>
<p><small style="color: silver">Confused? Maybe this fineprint from Apple will help: &#8220;Mac OS X 10.4 Tiger is required. If you&#8217;re using Safari, click the download link. When the widget download is complete, Show Dashboard, click the Plus sign to display the Widget Bar and click the widget&#8217;s icon in the Widget Bar to open it. If you&#8217;re using a browser other than Safari, click the download link. When the widget download is complete, unarchive it and place it in /Library/Widgets/ in your home folder. Show Dashboard, click the Plus sign to display the Widget Bar and click the widget&#8217;s icon in the Widget Bar to open it.&#8221;</small></p>
<p><small style="color: silver">No? Didn&#8217;t think so. Just leave a comment and I&#8217;ll help you out</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3thirty.net/blog/?feed=rss2&amp;p=23</wfw:commentRss>
		</item>
	</channel>
</rss>
