<?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>Joe&#039;s blog</title>
	<atom:link href="http://joeo.ws/feed" rel="self" type="application/rss+xml" />
	<link>http://joeo.ws</link>
	<description>random news, thoughts and stories</description>
	<lastBuildDate>Sun, 15 Jan 2012 21:18:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Java&#8217;s HttpClient to send a PUT</title>
		<link>http://joeo.ws/archives/242</link>
		<comments>http://joeo.ws/archives/242#comments</comments>
		<pubDate>Sun, 15 Jan 2012 21:18:19 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://joeo.ws/?p=242</guid>
		<description><![CDATA[After a lot of searching the net, I wrote this method a few weeks back to write a string (or file) to a web server using Java&#8217;s HttpClient.  It seemed ridiculous that I couldn&#8217;t find an example to cut and paste.  So here it is for the next person.   
Cheers.

public boolean [...]]]></description>
			<content:encoded><![CDATA[<p>After a lot of searching the net, I wrote this method a few weeks back to write a string (or file) to a web server using Java&#8217;s HttpClient.  It seemed ridiculous that I couldn&#8217;t find an example to cut and paste.  So here it is for the next person.   </p>
<p>Cheers.</p>
<p><code><br />
public boolean store (final String file) {<br />
  HttpClient client = new HttpClient();<br />
  PutMethod method = new PutMethod("http://localhost:80");</p>
<p>  method.setPath("/path");</p>
<p>  try {<br />
    RequestEntity re = new RequestEntity() {<br />
      @Override<br />
      public boolean isRepeatable() {<br />
        return false;<br />
      }</p>
<p>      @Override<br />
      public void writeRequest(OutputStream outputStream) throws IOException {<br />
        PrintWriter pr = new PrintWriter(outputStream);<br />
        pr.println(file);<br />
        pr.flush();<br />
      }</p>
<p>      @Override<br />
      public long getContentLength() {<br />
        return source.getBytes().length;<br />
      }</p>
<p>      @Override<br />
      public String getContentType() {<br />
        return "application/json";<br />
      }<br />
    };</p>
<p>    method.setRequestEntity(re);</p>
<p>    //Execute the method<br />
    int statusCode = client.executeMethod(method);</p>
<p>    switch(statusCode) {<br />
      case HttpStatus.SC_CREATED:<br />
        return true;</p>
<p>      default:<br />
        log.error("Unhandeled result code {}", statusCode);<br />
        log.error(new String(method.getResponseBody()));<br />
        break;<br />
    }</p>
<p>    return false;<br />
  } catch (HttpException ex) {<br />
    log.error("Fatal protocol violation: {}", ex.getMessage());<br />
    log.error(ex.getMessage(), ex);<br />
  } catch (IOException ex) {<br />
    log.error("Fatal transport error: {}", ex.getMessage());<br />
    log.error(ex.getMessage(), ex);<br />
  } finally {<br />
    // Release the connection.<br />
    method.releaseConnection();<br />
  }</p>
<p>  return false;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/242/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bay Area dot coms</title>
		<link>http://joeo.ws/archives/226</link>
		<comments>http://joeo.ws/archives/226#comments</comments>
		<pubDate>Sun, 25 Sep 2011 01:43:19 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[culture]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://joeo.ws/?p=226</guid>
		<description><![CDATA[So today I spent the afternoon driving around Mountain View.  After going to the Computer History Museum (which was awesome mind you) I stopped by Google, Apple and Facebook world headquarters.  Food for thought, all of the campuses were non-descript.  Nothing like the amazing and older IBM, Oracle or Microsoft campuses.  [...]]]></description>
			<content:encoded><![CDATA[<p>So today I spent the afternoon driving around Mountain View.  After going to the <a href="http://www.computerhistory.org/">Computer History Museum</a> (which was awesome mind you) I stopped by Google, Apple and Facebook world headquarters.  Food for thought, all of the campuses were non-descript.  Nothing like the amazing and older IBM, Oracle or Microsoft campuses.  Google had these what appeared to be free bikes everyplace for general use.  What a neat idea&#8230; anyhow&#8230; what I found most interesting were the kind of cars parked in the parking lots.  Apple and Google might have been anyplace.  Mostly empty said for a few random normal vehicles.  Facebook&#8217;s parking lot on the other hand was chocked full (and I mean really full) of Mini Coopers, Range Rovers and BMWs&#8230; on a Saturday afternoon at that.  </p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/226/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The perception of vendor lock in</title>
		<link>http://joeo.ws/archives/224</link>
		<comments>http://joeo.ws/archives/224#comments</comments>
		<pubDate>Thu, 28 Jul 2011 16:27:16 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://joeo.ws/?p=224</guid>
		<description><![CDATA[So I have this perception of my Android phone being more open and DRM free, and my Apple/iTunes account not being.  I had an interesting experience this morning that I thought was best shared. 
So, I just frustratingly bought an album a second time as apposed to trying to migrate it from my android [...]]]></description>
			<content:encoded><![CDATA[<p>So I have this perception of my Android phone being more open and DRM free, and my Apple/iTunes account not being.  I had an interesting experience this morning that I thought was best shared. </p>
<p>So, I just frustratingly bought an album a second time as apposed to trying to migrate it from my android phone to iTunes.  About 6 months ago I purchased &#8220;O&#8217; Brother Where Art Thou?&#8221; through my phone via Amazon.</p>
<p>I started by plugging my phone into my computer and browsing to the media folder.  Given a list of 1000 or so songs, with no apparent way to grab one &#8216;album&#8217; that I know I purchased from Amazon.  I started browsing around for tools to sort through this, but all I really wanted to do was listen to a few songs from a particular album on my computer and not through my phone.  After about 60 seconds, I&#8217;m just like &#8220;This isn&#8217;t worth it&#8221;.  For 10$, I purchased the album again and had it playing 20 seconds later in iTunes.  </p>
<p>I found it odd.  For all of the openness and DRM freeness of the Android platform, I felt locked in, in this case by the lack of ease of use of the tools.  </p>
<p>In iTunes, to copy an album, I create an MP3 versions of the track and then drag and drop.  Would have taken 30 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/224/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UTF Character encoding in MySQL</title>
		<link>http://joeo.ws/archives/214</link>
		<comments>http://joeo.ws/archives/214#comments</comments>
		<pubDate>Mon, 22 Nov 2010 17:15:05 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[stoopid]]></category>

		<guid isPermaLink="false">http://joeo.ws/?p=214</guid>
		<description><![CDATA[I&#8217;ve had on going issues with mySQL not defaulting to UTF8 and instead using Latin1 constantly.  After searching around a bit on the mySQL forums, I seem to have found a series of settings that put a halt to the problem once and for all.  Just add these settings to your my.cnf file:

[mysqld]
default-character-set=utf8
default-collation=utf8_bin
collation_server=utf8_bin
[mysql]
default-character-set=utf8

Cheers
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had on going issues with mySQL not defaulting to UTF8 and instead using Latin1 constantly.  After searching around a bit on the mySQL forums, I seem to have found a series of settings that put a halt to the problem once and for all.  Just add these settings to your my.cnf file:</p>
<p><code><br />
[mysqld]<br />
default-character-set=utf8<br />
default-collation=utf8_bin<br />
collation_server=utf8_bin<br />
[mysql]<br />
default-character-set=utf8<br />
</code></p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/214/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just look at this Bananagram</title>
		<link>http://joeo.ws/archives/209</link>
		<comments>http://joeo.ws/archives/209#comments</comments>
		<pubDate>Sat, 16 Oct 2010 21:34:45 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[stoopid]]></category>
		<category><![CDATA[bananagram]]></category>

		<guid isPermaLink="false">http://joeo.ws/archives/209</guid>
		<description><![CDATA[Just look at it]]></description>
			<content:encoded><![CDATA[<p><a href="http://plosone-josowski.plos.org:8080/article/info%3Adoi%2F10.1371%2Fjournal.pone.0015385"><img src="http://joeo.ws/wp-content/uploads/2010/10/bannana.jpg" alt="Bananagram" title="Bananagram" width="400" height="239"  /></a></p>
<p>Just look at it</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/209/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comcast VS FCC</title>
		<link>http://joeo.ws/archives/203</link>
		<comments>http://joeo.ws/archives/203#comments</comments>
		<pubDate>Sun, 02 May 2010 22:56:19 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[government]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[world]]></category>
		<category><![CDATA[comcast]]></category>
		<category><![CDATA[fcc]]></category>
		<category><![CDATA[obamapleasefix]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://joeo.ws/archives/203</guid>
		<description><![CDATA[Ouch, I don&#8217;t know how I missed this.  So Comcast wins the right to tell you what data packets (That you paid for) come to your computer first.  
Basically, a site like Hulu (who might have a partnership with Comcast) will work well, but Youtube (Google owned) may not.  They now have [...]]]></description>
			<content:encoded><![CDATA[<p>Ouch, I don&#8217;t know how I missed this.  So <a href="http://www.washingtonpost.com/wp-dyn/content/article/2010/04/06/AR2010040600742.html">Comcast wins the right</a> to tell you what data packets (That you paid for) come to your computer first.  </p>
<p>Basically, a site like Hulu (who might have a partnership with Comcast) will work well, but Youtube (Google owned) may not.  They now have the right to throttle network traffic as <a href="http://tech.slashdot.org/comments.pl?sid=1609108&#038;cid=31752218">they see fit</a>.  This brings up some really interesting implications with the NBC merger.  <a href="http://www.washingtonpost.com/wp-dyn/content/article/2010/02/04/AR2010020404487.html">&#8220;&#8230; when the same company produces the programs and runs the pipes that bring us those programs, we have a reason to be nervous&#8230;&#8221;</a></p>
<p>I would switch ISPs if Comcast wasn&#8217;t the only game in town. How is this not a monopoly?</p>
<p>Obama, please fix this.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/203/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Teamcity status macro for Trac</title>
		<link>http://joeo.ws/archives/202</link>
		<comments>http://joeo.ws/archives/202#comments</comments>
		<pubDate>Tue, 19 May 2009 19:10:16 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[teamcity]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://joeo.ws/archives/202</guid>
		<description><![CDATA[I had a need to print the build status of our teamcity server in trac.  After researching various solutions, I figured a trac macro would best fit.  It was a surprisingly simple solution so I figured I would share it here.
I created a file called &#8220;TeamCityStatus.py&#8221; and placed it into my trac/plugins folder.
from [...]]]></description>
			<content:encoded><![CDATA[<p>I had a need to print the build status of our teamcity server in trac.  After researching various solutions, I figured a trac macro would best fit.  It was a surprisingly simple solution so I figured I would share it here.</p>
<p>I created a file called &#8220;TeamCityStatus.py&#8221; and placed it into my trac/plugins folder.</p>
<blockquote><p>from urllib import urlopen<br />
from trac.wiki.macros import WikiMacroBase</p>
<p>class TeamCityStatusMacro(WikiMacroBase):<br />
    &#8220;&#8221;"Inserts the current build status into the wiki page.&#8221;"&#8221;</p>
<p>    def expand_macro(self, formatter, name, args):<br />
        res=urlopen(&#8217;example.org/teamcity/externalStatus.html?withCss=true&#8217;).read()<br />
        return res</p></blockquote>
<p>Obviously change the URL open line to match your teamcity installed location.  </p>
<p>Then inside any wiki page on your trac site, just place the macro command &#8220;[[TeamCityStatus]]&#8221;.  You should be good to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/202/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oldest object ever observed</title>
		<link>http://joeo.ws/archives/201</link>
		<comments>http://joeo.ws/archives/201#comments</comments>
		<pubDate>Wed, 29 Apr 2009 23:11:38 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[science]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[afterglow]]></category>
		<category><![CDATA[big bang]]></category>
		<category><![CDATA[infrared]]></category>

		<guid isPermaLink="false">http://joeo.ws/archives/201</guid>
		<description><![CDATA[
Occurring only 630 million years after the Big Bang, GRB 090423 detonated so early that astronomers had no direct evidence that anything explodable even existed back then. The faint infrared afterglow of GRB 090423 was recovered by large ground telescopes within minutes of being discovered. The afterglow is circled in the above picture taken by [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://antwrp.gsfc.nasa.gov/apod/image/0904/grb8_gemini.jpg" width="270" height="180" align="center" alt="" hspace="20"/><br/></p>
<blockquote><p>Occurring only 630 million years after the Big Bang, GRB 090423 detonated so early that astronomers had no direct evidence that anything explodable even existed back then. The faint infrared afterglow of GRB 090423 was recovered by large ground telescopes within minutes of being discovered. The afterglow is circled in the above picture taken by the large Gemini North Telescope in Hawaii, USA</p></blockquote>
<p>Craziness.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/201/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>f my life&#8230;</title>
		<link>http://joeo.ws/archives/200</link>
		<comments>http://joeo.ws/archives/200#comments</comments>
		<pubDate>Wed, 15 Apr 2009 17:04:21 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[culture]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[jaded]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[stoopid]]></category>

		<guid isPermaLink="false">http://joeo.ws/archives/200</guid>
		<description><![CDATA[I&#8217;ve found a new pass time.
http://www.fmylife.com/
&#8220;Today, my friend drove me me to catch the 8 pm train. Running late, we screeched into the parking lot at 7:57, stopped the car in a &#8216;no stop&#8217; zone. I said goodbye to my friend, sprinted to my train and barely made it. Then, with the train in motion, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found a new pass time.</p>
<p><a href="http://www.fmylife.com/">http://www.fmylife.com/</a></p>
<p>&#8220;Today, my friend drove me me to catch the 8 pm train. Running late, we screeched into the parking lot at 7:57, stopped the car in a &#8216;no stop&#8217; zone. I said goodbye to my friend, sprinted to my train and barely made it. Then, with the train in motion, I noticed my friend&#8217;s car keys in my hand. FML&#8221;</p>
<p>Other people&#8217;s misery somehow always makes you feel better.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/200/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pepper the Attack cat</title>
		<link>http://joeo.ws/archives/199</link>
		<comments>http://joeo.ws/archives/199#comments</comments>
		<pubDate>Thu, 01 Jan 2009 17:43:56 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[funny]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[philly]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[mailslot]]></category>
		<category><![CDATA[pepper]]></category>

		<guid isPermaLink="false">http://joeo.ws/archives/199</guid>
		<description><![CDATA[
Finally got around to posting this.  It&#8217;s a bit on a long side as I tried to make the video fit the song.  If I knew what I was doing, I would have shortened the song.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="247" height="205" id="viddler_8965b524"><param name="flashvars" value="disablebranding=t" /><param name="movie" value="http://www.viddler.com/simple/8965b524/" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://www.viddler.com/simple/8965b524/" width="247" height="205" type="application/x-shockwave-flash" allowScriptAccess="always" flashvars="disablebranding=t" allowFullScreen="true" name="viddler_8965b524" ></embed></object></p>
<p>Finally got around to posting this.  It&#8217;s a bit on a long side as I tried to make the video fit the song.  If I knew what I was doing, I would have shortened the song.</p>
]]></content:encoded>
			<wfw:commentRss>http://joeo.ws/archives/199/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

