<?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>Trueform &#187; Tech</title>
	<atom:link href="http://www.trueform.co.za/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trueform.co.za</link>
	<description>My one true form</description>
	<lastBuildDate>Wed, 24 Feb 2010 23:54:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Very cool Sun Ad</title>
		<link>http://www.trueform.co.za/2009/12/01/very-cool-sun-ad/</link>
		<comments>http://www.trueform.co.za/2009/12/01/very-cool-sun-ad/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 11:34:54 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[Advertising]]></category>
		<category><![CDATA[Funny]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=199</guid>
		<description><![CDATA[A very cool Sun Ad:

Reminds me of the old Space Pen Joke/Urban Legend
]]></description>
			<content:encoded><![CDATA[<p>A very cool Sun Ad:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/fVMnmTFxAjA&amp;hl=en_GB&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/fVMnmTFxAjA&amp;hl=en_GB&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Reminds me of the old <a href="http://en.wikipedia.org/wiki/Space_Pen#Uses_in_the_U.S._and_Russian_space_programs">Space Pen Joke/Urban Legend</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/12/01/very-cool-sun-ad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Segregation</title>
		<link>http://www.trueform.co.za/2009/11/25/internet-segregation/</link>
		<comments>http://www.trueform.co.za/2009/11/25/internet-segregation/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 15:08:45 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=185</guid>
		<description><![CDATA[Since when has it been ok to Segregate the internet?
What you say? You&#8217;ve no idea what I am talking about? If you&#8217;re&#8217;nt* from the states, you may not know that internet segregation exists. It does though. If you don&#8217;t live in the states, try watching a Hulu clip or try watching something on Comedy Central. [...]]]></description>
			<content:encoded><![CDATA[<p>Since when has it been ok to Segregate the internet?</p>
<p>What you say? You&#8217;ve no idea what I am talking about? If <span style="color: #666699;"><strong><em>you&#8217;re&#8217;nt</em>*</strong></span> from the states, you may not know that internet segregation exists. It does though. If you don&#8217;t live in the states, try watching a Hulu clip or try watching something on Comedy Central. Under normal circumstances, you can&#8217;t! That&#8217;s called internet segregation. You may think, &#8220;Gerard, Lord of darkness, why does this matter, it&#8217;s one site.&#8221; True, but if you understand the true nature of the web, it&#8217;s all interlinked. This detracts from the whole web experience not only on hulu but digg and all sites that reference locked content. There are ways around this though. By using a proxy it can appear as though you are browsing from inside the United States, thus allowing you to watch the content. Hulu however have begun to <a href="http://www.techdirt.com/articles/20091102/0346396760.shtml">shut down content for people using proxies even if they are for a valid reason</a>. All this leads to is people finding other methods to watch the content, namely torrents. Pointless.</p>
<div class="wp-caption alignnone" style="width: 510px"><img title="Hulu blocked from outside the states" src="http://farm3.static.flickr.com/2600/4133956858_df759da440.jpg" alt="Hulu, its pretty gay." width="500" height="218" /><p class="wp-caption-text">Hulu, it&#39;s pointless.</p></div>
<p>Another example of internet segregation is this talk of <a href="http://www.techcrunch.com/2009/11/22/bing-tries-to-buy-the-news/">Microsoft trying to buy the news from News Corp</a>. My current belief is that Google currently hold an information monopoly on the world. Don&#8217;t believe me, check out <a href="https://www.google.com/dashboard/">Google Dashboard</a> and just see how much they know about you. If you are anything like me, it&#8217;s a lot. So if you could ignore my paranoia about Google until the day I get to say, &#8220;I told you so&#8221;, you would see that I am all for removing the Google information monopoly. (Losing it to Microsoft, is another issue all together, but still). Assuming it&#8217;s the actual news and not the news brand that is more important. And assuming it&#8217;s possible to get the same news on the internet from more than a single source. With all this in mind is it a good idea to prevent content being viewed from a specific network. Even if somehow it did make sense, ultimately it would be pointless. All this will do is broaden the the market for something I thought previously useless, search engine aggregators.</p>
<p>These are just more examples of <a href="http://www.trueform.co.za/2009/11/24/david-versus-google/">big business messing up the internet</a>.</p>
<p><span style="color: #666699;"><strong>*you&#8217;re&#8217;nt</strong></span>: <em>contraction for &#8220;you are not&#8221;&#8230; I totally just invented that</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/11/25/internet-segregation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>David Versus Google</title>
		<link>http://www.trueform.co.za/2009/11/24/david-versus-google/</link>
		<comments>http://www.trueform.co.za/2009/11/24/david-versus-google/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 17:06:50 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=172</guid>
		<description><![CDATA[I want to write a post, but I am horribly rushed. I feel I have something really important to say but not enough time to say it in. Instead, I will link to the articles I read which have angered me.
This one: http://www.boingboing.net/2009/11/20/britains-new-interne.html. This is rubbish. If it happens I will leave the UK. I [...]]]></description>
			<content:encoded><![CDATA[<p>I want to write a post, but I am horribly rushed. I feel I have something really important to say but not enough time to say it in. Instead, I will link to the articles I read which have angered me.</p>
<p>This one: <a href="http://www.boingboing.net/2009/11/20/britains-new-interne.html">http://www.boingboing.net/2009/11/20/britains-new-interne.html</a>. This is rubbish. If it happens I will leave the UK. I promise you this. I don&#8217;t like petitions because I don&#8217;t believe they work but  go here to &#8220;help prevent&#8221; this: <a href="http://petitions.number10.gov.uk/dontdisconnectus/">http://petitions.number10.gov.uk/dontdisconnectus/</a></p>
<p>The other post is this: <a href="http://gigaom.com/2009/11/22/should-web-page-speed-influence-google-pagerank/">http://gigaom.com/2009/11/22/should-web-page-speed-influence-google-pagerank/</a>. This is bullshit&#8230; because I say so. The internet is currently a level playing field for everyone, big and small business alike. Are you going to skew it towards those with most cash? Are you Google? Recently I&#8217;ve become A LOT more untrusting of Google.</p>
<p>Ok, it&#8217;s true that one swallow does not make a summer, but these things seem to point to the trend that the internet is now going to become more of a corporately controlled entity? I hope I am wrong.</p>
<p><em>Edit: Also?! Why is my text justified? Justified text?! WTF? This also angers me.</em></p>
<p><em>Update: Ok. I removed the justified text. At least I feel like I have the power to change something.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/11/24/david-versus-google/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sending A PUT request to the Server using Ruby on Rails</title>
		<link>http://www.trueform.co.za/2009/11/11/sending-a-put-request-to-the-server-using-ruby-on-rails/</link>
		<comments>http://www.trueform.co.za/2009/11/11/sending-a-put-request-to-the-server-using-ruby-on-rails/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 18:26:55 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[REST]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=162</guid>
		<description><![CDATA[I have been trying for ages to find out how to send a PUT request to the server using ruby on rails. This page makes no fucking mention of a put() function. I cursed on many occasion.  Here it is. Hope this helps someone.
require &#8216;net/http&#8217;
url  = &#8216;/api/user.xml?id=6&#8242;
post_data = &#8220;&#60;user&#62;&#60;firstname&#62;Freeman&#60;/firstname&#62;&#60;/user&#62;&#8221;
http = Net::HTTP.new(&#8216;www.asdf.com&#8217;)
http.read_timeout = 300 # seconds
http.open_timeout [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying for ages to find out how to send a PUT request to the server using ruby on rails. <a href="http://stdlib.rubyonrails.org/libdoc/net/http/rdoc/classes/Net/HTTP.html">This page</a> makes no fucking mention of a put() function. I cursed on many occasion.  Here it is. Hope this helps someone.</p>
<blockquote><p>require <span style="color: #808080;">&#8216;net/http&#8217;</span><br />
url  = <span style="color: #808080;">&#8216;/api/user.xml?id=6&#8242;</span><br />
post_data = <span style="color: #808080;">&#8220;&lt;user&gt;&lt;firstname&gt;Freeman&lt;/firstname&gt;&lt;/user&gt;&#8221;</span><br />
http = <span style="color: #ff6600;">Net::HTTP</span><span style="color: #993300;">.new</span>(<span style="color: #808080;">&#8216;www.asdf.com&#8217;</span>)<br />
http.read_timeout = <span style="color: #ff0000;">300</span> <span style="color: #008080;"># seconds</span><br />
http.open_timeout = <span style="color: #ff0000;">180</span> <span style="color: #008080;"># seconds</span><br />
resp, data = http.put(url, post_data)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/11/11/sending-a-put-request-to-the-server-using-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Math Captcha?</title>
		<link>http://www.trueform.co.za/2009/11/06/math-captcha/</link>
		<comments>http://www.trueform.co.za/2009/11/06/math-captcha/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 00:06:06 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[Questioning]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=133</guid>
		<description><![CDATA[I am not sure what&#8217;s going on. My confusion comes from two things that as far as I know are correct. The 1st one captchas exist so we can tell if the user is human or machine. The second is that computers are good at doing calculations. I am right? Right?
So, if I am right&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>I am not sure what&#8217;s going on. My confusion comes from two things that as far as I know are correct. The 1st one captchas exist so we can tell if the user is human or machine. The second is that computers are good at doing calculations. I am right? Right?</p>
<p>So, if I am right&#8230; why is this a good idea?</p>
<p><img class="alignnone size-full wp-image-134" title="Captcha" src="http://www.trueform.co.za/wp-content/uploads/2009/11/Untitled-3.png" alt="Captcha" width="459" height="201" /></p>
<p>I am right? Right? What am I missing here&#8230; I could eval that with js easily to get an answer&#8230; and I&#8217;ve seen this captcha in more than one place.</p>
<p>I don&#8217;t know maybe there is some hidden technique I am missing. I would like to hear from you if you can explain.</p>
<p><em><strong>Edit:</strong> The other version of this is asking in words something like &#8220;What is five plus two?&#8221;&#8230; have you ever typed that into google&#8230;? Google is a machine and it knows. Seriously, what&#8217;s going on here?<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/11/06/math-captcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silicon Cape Launch (as seen from twitter)</title>
		<link>http://www.trueform.co.za/2009/10/08/silicon-cape-launch/</link>
		<comments>http://www.trueform.co.za/2009/10/08/silicon-cape-launch/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 11:15:33 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[Silicon Cape]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=94</guid>
		<description><![CDATA[It starts of with Vinny Lingham&#8217;s talk and everyone complaining about how we need money to do what we want. We need VC to this we need VC to do that blah blah&#8230;. You don&#8217;t just get VC. You will get your VC if you have a good product.
The other feeling I got was that [...]]]></description>
			<content:encoded><![CDATA[<p>It starts of with Vinny Lingham&#8217;s talk and everyone complaining about how we need money to do what we want. We need VC to this we need VC to do that blah blah&#8230;. You don&#8217;t just get VC. You will get your VC if you have a good product.</p>
<p>The other feeling I got was that there were too many higher ups just talking and not enough ground level. Get your head out of the clouds (no, not decentralised infrastructure). It&#8217;s not the big guys that are important it&#8217;s the little guys with the big ideas. It&#8217;s the small guys that are the ones who are able to adapt to quickly market fluctuations not the big guys.</p>
<p>Then some props were going to Helen Zille for saying some inspring stuff and a little bit of circle jerking&#8230; not much though.. which is good.</p>
<p>Then ending off with people saying it&#8217;s an awesome conference and one or two tweets saying government needs to do something&#8230;. Are you serious? After all that you are still expecting hand outs from Government? Fuck government, don&#8217;t expect them or anyone to do anything for you. You need to be prepared to go it alone if you need to. If something happens, great! Otherwise, you need to make it happen yourself.</p>
<p>I really do hope the enthusiasm continues&#8230; Change the world. It&#8217;s up to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/10/08/silicon-cape-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plug and play code</title>
		<link>http://www.trueform.co.za/2009/04/26/plug-and-play-code/</link>
		<comments>http://www.trueform.co.za/2009/04/26/plug-and-play-code/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 16:02:57 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Understanding]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=69</guid>
		<description><![CDATA[I am a PHP programmer. Quite a seasoned developer if I say so myself. I have a background in computer science and have been doing commercial programming for almost 5 years now. So I have learnt a lot about programming and programming for the web. One of the things I love in an application is [...]]]></description>
			<content:encoded><![CDATA[<p>I am a PHP programmer. Quite a seasoned developer if I say so myself. I have a background in computer science and have been doing commercial programming for almost 5 years now. So I have learnt a lot about programming and programming for the web. One of the things I love in an application is clean data. So that means trying to make sure no garbage data gets into your database. To do there are a lot of things you can do.</p>
<p>One example of this is email validation. On the surface email validation a simple task. Take the email address your user has typed in, apply some tests to it and make sure it&#8217;s valid. One of the ways to do this is with regular expressions. As with any data filtering or data filtering task, you can do something basic or you can try to cater for all cases. To give you an example of the complexity of email filtering, lets break down the parts of an email address. An email address consists of 3 parts: the user name, the @ symbol and the domain name. Simple enough. But to what extent do you want to make sure it&#8217;s clean? The most basic option is to check that it has those parts in the correct order. A level up from that is to do the previous check and then check that the user name contains only valid email address characters. From that you could also check that that the domain name is made up of two or more part separated by a dot. A step up from that is to do the previous three checks and check that domain has a valid domain extension. One up from that is to do all previous checks and then also check that the domain actually exists and resolves. This is all I am aware of but there might be additional checks you can do.</p>
<p>So anyways for simplicity sake lets just say you want to check the format is correct, the user name has valid characters and the domain name is made up of two or more parts. All of this could be achieved with a regular expression.</p>
<p>If you use PHP as I do, you could easily find a bit of code for this on the internet, hundreds maybe thousands of different iterations of code all claiming to do the same thing: Validate an email address.</p>
<p>The only problem is, I don&#8217;t trust source code found on individual&#8217;s pages on the web. I don&#8217;t know that user&#8217;s credentials. I don&#8217;t know what he knows, I don&#8217;t know what sources he used to build that code. Or if he used sources at all. And because it&#8217;s something that is seemingly so simple, it&#8217;s easy to not do it correctly. Unless it is a trusted library or comes from a person who I know to be of a specific standard, I won&#8217;t use that code. Otherwise, I want to be able to see the references used so that if it comes to it I can check that it claims to do what it says it does. If those references are there my test need to be even more rigorous than I would need for trusted components, meaning that I might as well have written it myself.</p>
<p>I noticed myself doing this the other day. Just a little tech&#8230; sigh&#8230; Tired of writing now. Guess I won&#8217;t be doing what little spell /  sanity check I usually do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/04/26/plug-and-play-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Philosophy of correk thinking</title>
		<link>http://www.trueform.co.za/2009/04/14/philosophy-of-correk-thinking/</link>
		<comments>http://www.trueform.co.za/2009/04/14/philosophy-of-correk-thinking/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 23:44:39 +0000</pubDate>
		<dc:creator>Gerard L. Petersen</dc:creator>
				<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.trueform.co.za/?p=59</guid>
		<description><![CDATA[I started a site called correk thinking. You can find it in the links on the right. The site displays a single message for 24 hours. At 12 o&#8217;clock each night, a new message is displayed. That&#8217;s it. That&#8217;s the whole site, just a single message on a single page. I attempt to make the [...]]]></description>
			<content:encoded><![CDATA[<p>I started a site called correk thinking. You can find it in the links on the right. The site displays a single message for 24 hours. At 12 o&#8217;clock each night, a new message is displayed. That&#8217;s it. That&#8217;s the whole site, just a single message on a single page. I attempt to make the message a positive one.</p>
<p>This site really resonates with me. I started the site hoping that someday someone will happen to come across it, and hopefully on that day the site will be displaying the message that this person needs to hear. Hopefully it will give them the push needed for them to improve their life. It might not happen, it might never happen. I know that what I am hoping for is pure coincidental. You may think I am being silly but I had an experience where this exact thing happened to me. I had been thinking and introspecting on a problem for almost a month. And if I had not been in the exact place at the exact time, I may never have found the answer. And because I knew that finding the solution was pure chance, it really enforced the solution. So, what I am hoping to achieve is improbable but not impossible. I think the idea of it unlikely makes it even more appealing to me.</p>
<p>The site embodies a so much of what I believe in:</p>
<p>Done things for the sake of doing them. One thing I really love about the site is that if it does help someone, there&#8217;s an equal chance that I&#8217;ll never know that I&#8217;ve helped anyone. The site provides no contact details and no way to contact the owner/author. Due to the anonymity of the site (from both my side and the user&#8217;s side), it means helping people just for the sake of helping people, nothing else, no thanks, no recognition, nothing.</p>
<p>Secondly, positive thinking. At the core of the site, it provides a positive thought a day. I believe they way you think and talk to yourself in your head, determines a large part of your success (whatever success may mean to you). Also an added benefit, because I am trying to think of positive thoughts for the site it forces me to think positively at least once a day.</p>
<p>Thirdly, another philosophy I live by and also incorporated into the site is the Buddhist philosophy of the impermanence of all things. Nothing lasts forever. So every message is shown once and never again.</p>
<p>And fourthly, it&#8217;s just a little bit a day, just one line of text. This is my newest philosophy that I have adopted and it has made me a much happier person. For a large part of my life I wanted to be exceptional (hidden under the guise of appearing normal) but I wanted to be exceptional immediately. I wanted results now. This latest philosophy I adopted has taught me patience. Just a little a day.</p>
<p>And that&#8217;s it. <a href="http://correkthinking.com">http://correkthinking.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trueform.co.za/2009/04/14/philosophy-of-correk-thinking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
