<?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>Cuvedev.net &#124; Klaas Cuvelier &#187; Cuvedev</title>
	<atom:link href="http://www.cuvedev.net/category/cuvedev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cuvedev.net</link>
	<description>This is the personal blog and thoughts of Klaas Cuvelier, a young webdeveloper from Ghent</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:52:43 +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>Tethering on jailbroken iPhone 3G with IOS 4.2.1</title>
		<link>http://www.cuvedev.net/2010/12/tethering-on-jailbroken-iphone-3g-with-ios-4-2-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tethering-on-jailbroken-iphone-3g-with-ios-4-2-1</link>
		<comments>http://www.cuvedev.net/2010/12/tethering-on-jailbroken-iphone-3g-with-ios-4-2-1/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 11:37:47 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[nohomepage]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[4.2.1]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[jailbroken]]></category>
		<category><![CDATA[mobistar]]></category>
		<category><![CDATA[tethering]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=4506</guid>
		<description><![CDATA[I was able to enable tethering on my iPhone 3G with IOS 4.2.1. To do so, I had to jailbreak my iPhone and install Cydia. Using redsn0w 0.9.6b4 it was a piece of cake. Attention, I have an iPhone 3G, so this is a full jailbreak, not a tethered jailbreak. I haven&#8217;t tested this with [...]]]></description>
			<content:encoded><![CDATA[<p>I was able to enable tethering on my iPhone 3G with IOS 4.2.1.<br />
To do so, I had to jailbreak my iPhone and install Cydia. Using <a href="http://www.iphone-storage.de/redsn0w_mac_0.9.6b4.zip">redsn0w 0.9.6b4</a> it was a piece of cake. Attention, I have an iPhone 3G, so this is a full jailbreak, not a tethered jailbreak. I haven&#8217;t tested this with a tethered jailbreak.<br />
If you haven&#8217;t jailbroken your phone yet, <a href="http://www.redmondpie.com/jailbreak-ios-4.2.1-iphone-4-3gs-3g-ipad-ipod-touch-with-redsn0w-0.9.6b4-guide/">here&#8217;s a guide</a>.</p>
<p>Once you&#8217;ve jailbroken your phone, install <em>openSSH</em> (using Cydia), so you can ssh into your device.<br />
Don&#8217;t forget to change your root password (<a href="http://isource.com/2009/11/05/how-to-change-the-iphones-root-password/">more info on this here</a>)!</p>
<p>Now to enable tethering, you&#8217;ll have to install an application called <a href="http://www.redmondpie.com/enable-tethering-natively-on-iphone-4-3gs-3g-ios-4.0.1-with-tetherme/">TetherMe</a>. You can buy and install it on your iPhone using Cydia or you can look for the installer on the internet and do it for free (illegally off course).</p>
<p>If you want to do it for free, I&#8217;ll make it easy for you, you can download it here: <a href="http://letitbit.net/download/1525508/59471.53730c79e98fee96c0bf6633eb51/TetherMe-xsellize.deb.html">TetherMe-xsellize.deb</a><br />
When you have the .deb file, scp it onto your iPhone, and install it using ssh (instructions below).</p>
<p>To ssh and scp to your phone you&#8217;ll need the IP-address of your phone.<br />
Go to <em>Settings</em> &gt; <em>Wi-Fi</em> and click on the white arrow in the blue circle of the network you&#8217;re connected to, you&#8217;re IP-address should on the info page you get.<br />
Then, on your computers console do this:<br />
<code><br />
$ scp Downloads/TetherMe-xsellize.deb root@192.168.100.118:/private/var/mobile<br />
</code><br />
Replace the IP-address above with yours and enter your root password (if you haven&#8217;t changed it, its <em>alpine</em>).</p>
<p>Then ssh into your iPhone to install it:<br />
<code><br />
$ ssh root@192.168.100.118<br />
</code><br />
And install the file:<br />
<code><br />
# cd /private/var/mobile/<br />
# dpkg -i TetherMe-xsellize.deb<br />
</code></p>
<p>When it&#8217;s installed you should reboot your iPhone, and tethering should be enabled.</p>
<p><small><br />
Disclaimer:<br />
I don&#8217;t encourage jailbreaking iPhones and installing illegal software. I&#8217;m just pointing out it <em>can</em> be done.<br />
Also I don&#8217;t take any responsibility for anything if you fuck up your iPhone<br />
</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/12/tethering-on-jailbroken-iphone-3g-with-ios-4-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So, I made a clock</title>
		<link>http://www.cuvedev.net/2010/10/so-i-made-a-clock/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=so-i-made-a-clock</link>
		<comments>http://www.cuvedev.net/2010/10/so-i-made-a-clock/#comments</comments>
		<pubDate>Sun, 24 Oct 2010 19:06:14 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[analog]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[digit]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=3776</guid>
		<description><![CDATA[So yes, I made a clock. In JavaScript (and HTML). It&#8217;s not just another JavaScript analog or digital clock, it&#8217;s actually a clock which is easy to read and it&#8217;s based on this design: QLOCKTWO by Biegert&#38;Funk. I think it&#8217;s a cool way to display time. When I considered buying the clock, I was shocked when [...]]]></description>
			<content:encoded><![CDATA[<p>So yes, I made a clock. In JavaScript (and HTML).<br />
It&#8217;s not just another JavaScript analog or digital clock, it&#8217;s actually a clock which is easy to read and it&#8217;s based on this design: <a href="http://www.qlocktwo.com/index.php?lang=en" target="_blank">QLOCKTWO by Biegert&amp;Funk</a>.</p>
<p>I think it&#8217;s a cool way to display time. When I considered buying the clock, I was shocked when I saw the price. So I though it would be a nice challenge to make it myself, in JavaScript.</p>
<p>Here is the result:<br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/10/clock.png" rel="lightbox[3776]"><img class="alignnone size-medium wp-image-3777" title="clock" src="http://www.cuvedev.net/wp-content/uploads/2010/10/clock-300x297.png" alt="" width="300" height="297" /></a></p>
<p>And you can <a href="http://www.cuvedev.net/whattimeisit" target="_blank">see it in action here</a>.</p>
<p>I am in particular proud of the <a href="http://www.cuvedev.net/whattimeisit/clock.js" target="_blank">JavaScipt code</a>. The clock is &#8220;built&#8221; with text predefined text strings, and right strings are highlighted using a &#8220;logic&#8221; for the selected language. In this way it is fairly easy to add new languages (at this time only Dutch and English are available). I used the PrototypJS-library because I&#8217;m used to it, and it shortened my code drastically.</p>
<p>Tested in:<br />
- Google Chrome 8<br />
- Firefox 3.6 and 4.0<br />
- Safari 5<br />
- Internet Explorer 8</p>
<p>Update:<br />
And this is what it looks like on an iPad:<br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/10/small.jpg" rel="lightbox[3776]"><img src="http://www.cuvedev.net/wp-content/uploads/2010/10/small-300x200.jpg" alt="" title="small" width="300" height="200" class="alignnone size-medium wp-image-3848" /></a><br />
still pretty expensive for &#8220;just a clock&#8221;, but already cheaper than the qlocktwo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/10/so-i-made-a-clock/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress plugin: Authentication</title>
		<link>http://www.cuvedev.net/2010/07/wordpress-plugin-authentication/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-plugin-authentication</link>
		<comments>http://www.cuvedev.net/2010/07/wordpress-plugin-authentication/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 11:52:30 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=901</guid>
		<description><![CDATA[So, I finally submitted my first plugin to the WordPress plugin base. It&#8217;s a plugin which add functionality to request visitors authentication before the website can be viewed. It doesn&#8217;t use HTTP Authentication, just php and html. You can choose to use the WordPress authentication functionality to login, or give a password yourself. Try it [...]]]></description>
			<content:encoded><![CDATA[<p>So, I finally submitted my first plugin to the WordPress plugin base.</p>
<p>It&#8217;s a plugin which add functionality to request visitors authentication before the website can be viewed. It doesn&#8217;t use HTTP Authentication, just php and html.<br />
You can choose to use the WordPress authentication functionality to login, or give a password yourself.</p>
<p>Try it out, and give some feedback.</p>
<p><a href="http://wordpress.org/extend/plugins/basic-authentication/">Link to Basic Authentication plugin</a></p>
<p>Screenshot:<br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/07/screenshot-1.png" rel="lightbox[901]"><img class="alignnone size-medium wp-image-903" title="Basic Authentication options" src="http://www.cuvedev.net/wp-content/uploads/2010/07/screenshot-1-300x280.png" alt="options" width="300" height="280" /></a></p>
<p>&nbsp;</p>
<p>&#8211; Update:</p>
<p>Now compatible with WordPress 3.3</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/07/wordpress-plugin-authentication/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>Boxee on Ubuntu Lucid Minimal on Asrock ION 330</title>
		<link>http://www.cuvedev.net/2010/06/boxee-on-ubuntu-lucid-minimal-on-asrock-ion-330/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=boxee-on-ubuntu-lucid-minimal-on-asrock-ion-330</link>
		<comments>http://www.cuvedev.net/2010/06/boxee-on-ubuntu-lucid-minimal-on-asrock-ion-330/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 14:14:27 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Boxee]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.4]]></category>
		<category><![CDATA[330]]></category>
		<category><![CDATA[asrock]]></category>
		<category><![CDATA[ion]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[minimal]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[nvidia.ko]]></category>
		<category><![CDATA[restricted]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=224</guid>
		<description><![CDATA[Yesterday I performed a clean install from Ubuntu Lucid Lynx Minimal on my Asrock Ion 330. I followed this guide like I did last time (for an earlier version of Ubuntu Minimal) but I encountered some problems. Here&#8217;s how I solved them. In chapter &#8220;Updating the computer&#8221;, change in the sources.list hardy or intreprid or jaunty by [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Yesterday I performed a clean install from <a href="http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-i386/current/images/netboot/mini.iso">Ubuntu Lucid Lynx Minimal</a> on my Asrock Ion 330.<br />
I followed <a href="http://forums.boxee.tv/showthread.php?t=5644">this guide</a> like I did last time (for an earlier version of Ubuntu Minimal) but I encountered some problems.</p>
<p>Here&#8217;s how I solved them.</p>
<p>In chapter &#8220;Updating the computer&#8221;, change in the sources.list hardy or intreprid or jaunty by &#8220;lucid&#8221;.<br />
No problems in &#8220;Install sound&#8221;.</p>
<p>The real problems came in &#8220;Installing the graphical environment&#8221;.<br />
When I wanted to install the latest driver for my <a href="http://uk.download.nvidia.com/XFree86/Linux-x86/256.35/NVIDIA-Linux-x86-256.35.run">ION graphics card</a> I always got this error:</p>
<blockquote><p>ERROR: Unable to load the kernel module &#8216;nvidia.ko&#8217;. This is most likely<br />
because the kernel module was built using the wrong kernel source files.<br />
Please make sure you have installed the kernel source files for your<br />
kernel; on Red Hat Linux systems, for example, be sure you have the<br />
&#8216;kernel-source&#8217; rpm installed. If you know the correct kernel source<br />
files are installed, you may specify the kernel source path with the<br />
&#8216;&#8211;kernel-source-path&#8217; commandline option.</p></blockquote>
<p>It took me a while before I found this solution:<br />
Make the file (or edit the file if it already exists)  /etc/default/linux-restricted-modules-common<br />
and add this content:</p>
<blockquote><p>DISABLED_MODULES=&#8221;nv nvidia_new&#8221;</p></blockquote>
<p>Now you should be able to run the installer without problems.</p>
<p>Another small problem was, logging in automatically. In earlier releases of Ubuntu you had to change some commands in /etc/event.d/tty1 (according to the guide mentioned earlier), but in Ubuntu Lucid, the event.d folder doesn&#8217;t exist anymore, and you have to put it in /etc/init/ instead. </p>
<p>Good Luck!</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/06/boxee-on-ubuntu-lucid-minimal-on-asrock-ion-330/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Updates Like-buttons and static header</title>
		<link>http://www.cuvedev.net/2010/06/updates-like-buttons-and-static-header/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updates-like-buttons-and-static-header</link>
		<comments>http://www.cuvedev.net/2010/06/updates-like-buttons-and-static-header/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 18:07:36 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Netlog]]></category>
		<category><![CDATA[Userscript]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[static]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[userscript]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=213</guid>
		<description><![CDATA[Since Netlog version 6 is live on most languages, it was time to update my userscripts for Netlog. So here are the updated versions for the Facebook Like-buttons and the static header. Facebook Like-buttons: The buttons now appear under the user skinbar on all profile pages (blogs, photos, sets, &#8230;) from users, groups and brands. [...]]]></description>
			<content:encoded><![CDATA[<p>Since Netlog version 6 is live on most languages, it was time to update my userscripts for Netlog.<br />
So here are the updated versions for the <a href="#likebuttons">Facebook Like-buttons</a> and the <a href="#staticheader">static header</a>.</p>
<p><u><strong><a name="likebuttons" style="text-decoration: none">Facebook Like-buttons:</a></strong></u><br />
The buttons now appear under the user skinbar on all profile pages (blogs, photos, sets, &#8230;) from users, groups and brands.<br />
There still is an issue with ajax browsing, but I&#8217;ll try to fix that as soon as possible.<br />
<a href="#downloads">Download</a><br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/06/likebutton.png" title="Like button on Netlog" rel="lightbox[213]"><br />
<img width="300px" src="http://www.cuvedev.net/wp-content/uploads/2010/06/likebutton.png" title="Like button on Netlog" /><br />
</a></p>
<p><u><strong><a name="staticheader" style="text-decoration: none">Static header:</a></strong></u><br />
No remarks here, just download and enjoy!<br />
<a href="#downloads">Download</a><br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/06/staticheader.png" title="Static header on Netlog" rel="lightbox[213]"><br />
<img width="300px" src="http://www.cuvedev.net/wp-content/uploads/2010/06/staticheader.png" title="Static header on Netlog" /><br />
</a></p>
<p><a name="downloads" style="text-decoration: none">Downloads:</a><br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/06/netlog6_like_0.2.user.js">Like Buttons (netlog6_like_0.2.user.js)</a><br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/06/netlog6_topbar_0.1.user.js">Static Header (netlog6_topbar_0.1.user.js)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/06/updates-like-buttons-and-static-header/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Facebook Like-button on Netlog</title>
		<link>http://www.cuvedev.net/2010/05/netlog-like-button/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=netlog-like-button</link>
		<comments>http://www.cuvedev.net/2010/05/netlog-like-button/#comments</comments>
		<pubDate>Mon, 03 May 2010 12:26:06 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Netlog]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Userscript]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[like]]></category>
		<category><![CDATA[userscript]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=197</guid>
		<description><![CDATA[I just finished another userscript/greasemonkey script for Netlog. Since Facebook made their &#8216;like&#8217; button public, I thought it would be a nice idea, to share your favorite photos, links, videos and blogs from Netlog, on facebook. This might direct more visitors to Netlog, and some may even be convinced to register. Download below. Watch out, [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished another userscript/greasemonkey script for Netlog.<br />
Since Facebook made their &#8216;like&#8217; button public, I thought it would be a nice idea, to share your favorite photos, links, videos and blogs from Netlog, on facebook.<br />
This might direct more visitors to Netlog, and some may even be convinced to register.</p>
<p>Download below. Watch out, it&#8217;s still in beta.<br />
One known bug is that the script doesn&#8217;t really work together with the ajax photo browsing.</p>
<p>Note, make sure your Netlog profile and the item you&#8217;re liking is accessible when not logged-in (otherwise Facebook can&#8217;t handle it)</p>
<p><strong>Screenshots</strong>:<br />
<a title="Like button on Netlog" href="http://www.cuvedev.net/wp-content/uploads/2010/05/screenshot_facebook_like_netlog1.jpg" rel="lightbox[197]"><br />
<img title="Like button on Netlog" src="http://www.cuvedev.net/wp-content/uploads/2010/05/screenshot_facebook_like_netlog1.jpg" alt="" width="300px" /><br />
</a><br />
<a title="Like button on Netlog" href="http://www.cuvedev.net/wp-content/uploads/2010/05/screenshot_facebook_like_netlog2.jpg" rel="lightbox[197]"><br />
<img title="Like button on Netlog" src="http://www.cuvedev.net/wp-content/uploads/2010/05/screenshot_facebook_like_netlog2.jpg" alt="" width="300px" /><br />
</a><br />
<a title="Like button on Netlog" href="http://www.cuvedev.net/wp-content/uploads/2010/05/screenshot_facebook_like_netlog3.jpg" rel="lightbox[197]"><br />
<img title="Like button on Netlog" src="http://www.cuvedev.net/wp-content/uploads/2010/05/screenshot_facebook_like_netlog3.jpg" alt="" /><br />
</a></p>
<p><strong>Tested</strong> on Firefox 3.6.3 and Chrome 5.0.375.28 dev<br />
Note: Firefox users need the <a href="http://www.greasespot.net/" target="_blank">Greasemonkey</a> plugin!</p>
<p>Enjoy!</p>
<p><strong>Download</strong>:<br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/05/netlog_like.user.js" target="_blank">netlog_like.user.js (0.4, beta)</a></p>
<p><strong>UPDATE: </strong><br />
<a href="http://www.cuvedev.net/2010/06/updates-like-buttons-and-static-header/">Newer version available</a></p>
<p>Thx to <a href="http://beta.nl.netlog.com/d_jochen" target="_blank">Jochen Delabie</a> and <a href="http://www.jurriaanpersyn.com" target="_blank">Oemebamo</a> for the remarks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/05/netlog-like-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gowalla API Class (php)</title>
		<link>http://www.cuvedev.net/2010/04/gowalla-api-class/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gowalla-api-class</link>
		<comments>http://www.cuvedev.net/2010/04/gowalla-api-class/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 21:59:46 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[api]]></category>
		<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[gowalla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[class]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=181</guid>
		<description><![CDATA[I just quickly made a class for accessing the Gowalla API because I needed it myself. I looked for an existing class on the internet but could only find some crappy stuff on Google Code. So I decided to make one myself. The use of the class is fairly simple. Include the class file (don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I just quickly made a class for accessing the <a href="http://gowalla.com/" target="_blank">Gowalla</a> <a href="http://gowalla.com/api/explorer" target="_blank">API</a> because I needed it myself. I looked for an existing class on the internet but could only find some crappy stuff on Google Code.<br />
So I decided to make one myself.</p>
<p><strong>The use</strong> of the class is fairly simple. Include the class file (don&#8217;t forget to add you <a href="http://gowalla.com/api/keys" target="_blank">API-key</a>), make an instance and do your calls.<br />
The class internally uses CURL to do the requests to the server and returns the data as an <a href="http://php.net/manual/en/language.types.array.php" target="_blank">associative array</a>.<br />
I tried to document the methods enough so it&#8217;s easy to use them.</p>
<p><strong>Example</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>?php
<span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'./class.gowalla.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$gowalla</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GowallaAPI<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$events</span>	 <span style="color: #339933;">=</span> <span style="color: #000088;">$gowalla</span><span style="color: #339933;">---&gt;</span><span style="color: #004000;">getSpotEvents</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">846403</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$events</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'activity'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$event</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// do stuff }</span>
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></pre></div></div>

<p>Feel free to <a href="http://www.cuvedev.net/wp-content/uploads/2010/04/gowalla.zip" target="_blank"><strong>download</strong></a><strong> and comment</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/04/gowalla-api-class/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Boxee python dev</title>
		<link>http://www.cuvedev.net/2010/04/boxee-python-dev/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=boxee-python-dev</link>
		<comments>http://www.cuvedev.net/2010/04/boxee-python-dev/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 15:33:05 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Boxee]]></category>
		<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[dialog]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[onload]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[setlabel]]></category>
		<category><![CDATA[textbox]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=156</guid>
		<description><![CDATA[Boxee may be &#8220;the best way to enjoy entertainment from the Internet and computer on your TV&#8221; (according tor their website), the developers documentation isn&#8217;t all that great. Not everything is well-documented and the (python) API doesn&#8217;t always do what&#8217;s expected, which makes developing own plugins not that easy. It isn&#8217;t also always possible to [...]]]></description>
			<content:encoded><![CDATA[<p>Boxee may be <em>&#8220;the best way to enjoy entertainment from the Internet and computer on your TV&#8221;</em> (according tor <a href="http://www.boxee.tv" target="_blank">their website</a>), the developers documentation isn&#8217;t all that great. Not everything is well-documented and the (python) API doesn&#8217;t always do what&#8217;s expected, which makes developing own plugins not that easy.<br />
It isn&#8217;t also always possible to find the right solution with Google. Maybe because not all that much people are developing plugins for Boxee (or the don&#8217;t care to share) or because Google doesn&#8217;t index it well.</p>
<p>So I decided to share the things I found. Let&#8217;s hope google indexes them well and I&#8217;m able to help some fellow developers.</p>
<p><strong>Textbox + SetLabel:</strong><br />
If you have a <a href="http://developer.boxee.tv/Textbox_Control">textbox</a>, it is not possible to change the label via python in an easy way.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">mc.<span style="color: black;">GetActiveWindow</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">GetLabel</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span><span style="color: #008000;">id</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>.<span style="color: black;">SetLabel</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'text'</span><span style="color: black;">&#41;</span></pre></div></div>

<p>and</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">mc.<span style="color: black;">GetActiveWindow</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">GetControl</span><span style="color: black;">&#40;</span><span style="color: black;">&#91;</span><span style="color: #008000;">id</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>.<span style="color: black;">SetLabel</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'text'</span><span style="color: black;">&#41;</span></pre></div></div>

<p>don&#8217;t work on a Textbox, and</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">GetTextbox<span style="color: black;">&#40;</span><span style="color: black;">&#91;</span><span style="color: #008000;">id</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>doesn&#8217;t exist.<br />
Setting the label can be done this way:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">xbmc.<span style="color: black;">executebuiltin</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'Control.SetLabel([id],[text])'</span><span style="color: black;">&#41;</span></pre></div></div>

<p>and you&#8217;ll have to replace every comma (,) with $COMMA</p>
<p><strong>Onload-tag with a dialog</strong><br />
I&#8217;ve experienced some troubles with the onload-tag in windows with type=&#8221;dialog&#8221;. If you have a <em>normal</em> window, and load a dialog-window in a onclick method with this code, the onload of the dialog won&#8217;t work until you close the dialog:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">&lt;![CDATA[ mc.ActivateWindow(14001) ]]&gt;</span></pre></div></div>

<p>The way to solve this is to dump the python code to load the dialog and just do this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">	ActivateWindow(14001)</pre></div></div>

<p><strong>Python import gives errors:</strong></p>
<p>It took me a while to figure out, but this error:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">18:54:51 T:2963869696 M:410439680  NOTICE: --<span style="color: #ddbb00;">&amp;gt;</span>Python Interpreter Initialized<span style="color: #ddbb00;">&amp;lt;</span>--
18:54:51 T:2963869696 M:410439680  NOTICE: Traceback (most recent call last):
18:54:51 T:2963869696 M:410439680  NOTICE:   File &quot;&quot;, line 2, in ?
18:54:51 T:2963869696 M:410439680  NOTICE: ImportError
18:54:51 T:2963869696 M:410439680  NOTICE: :
18:54:51 T:2963869696 M:410439680  NOTICE: No module named xxxxxxx
18:54:51 T:2963869696 M:410439680   ERROR: Scriptresult: Error</pre></div></div>

<p>Was caused by a bad window-id. Boxee window-id&#8217;s should be between 14000 and 14099</p>
<p><strong>Close a window with type=&#8221;dialog&#8221;:</strong><br />
If you have opened a window with type=&#8221;dialog&#8221;, it isn&#8217;t possible to close the window with this code:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">CloseWindow(14001)</pre></div></div>

<p>Instead you have to do this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">Dialog.Close(14001)</pre></div></div>

<p>You can also add the &#8220;force&#8221; option (True/False), adding this option will skip all animations.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/04/boxee-python-dev/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Boxee StuBru Plugin</title>
		<link>http://www.cuvedev.net/2010/04/boxee-stubru-plugin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=boxee-stubru-plugin</link>
		<comments>http://www.cuvedev.net/2010/04/boxee-stubru-plugin/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 19:52:52 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[Boxee]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[stubru]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/2010/04/boxee-stubru-plugin/</guid>
		<description><![CDATA[So &#8230; I finally finished my first Boxee plugin. Funny tough, it&#8217;s non of my previously planned plugins. Today I got the inspiration to make ¬†a small but handy plugin. Studio Brussel was airing &#8220;De zwaarste lijst&#8221;, a list of hard rock and metal music tonight, and I thought it would nice to listen to [...]]]></description>
			<content:encoded><![CDATA[<p>So &#8230; I finally finished my first Boxee plugin. Funny tough, it&#8217;s non of my previously planned plugins.<br />
Today I got the inspiration to make ¬†a small but handy plugin. <a href="http://www.stubru.be">Studio Brussel</a> was airing &#8220;De zwaarste lijst&#8221;, a list of hard rock and metal music tonight, and I thought it would nice to listen to it with Boxee because it uses my Logitech Z-5500. &#8216;Nuff said right?</p>
<p>So here it is. It&#8217;s extremely basic, but it does what it was supposed to do, play stubru music.<br />
Download and enjoy!</p>
<p><a href="http://www.cuvedev.net/wp-content/uploads/2010/04/stubru.zip">Download my stubru boxee plugin</a></p>
<p>Tested on Boxee Beta for OSX and Ubuntu.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/04/boxee-stubru-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netlog static header</title>
		<link>http://www.cuvedev.net/2010/03/netlog-static-header/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=netlog-static-header</link>
		<comments>http://www.cuvedev.net/2010/03/netlog-static-header/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 17:40:52 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Cuvedev]]></category>
		<category><![CDATA[Netlog]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[static]]></category>
		<category><![CDATA[userscript]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=143</guid>
		<description><![CDATA[Since the Netlog chatbar disappeared from the bottom of the screen, there&#8217;s no easy way to quickly navigate to another page or add content or whatever when you&#8217;re not at the top of the page. If only the current header would be static &#8230; With this userscript it is: Click to install: netlog_topbar_1.1.user.js (latest version) [...]]]></description>
			<content:encoded><![CDATA[<p>Since the Netlog chatbar disappeared from the bottom of the screen, there&#8217;s no easy way to quickly navigate to another page or add content or whatever when you&#8217;re not at the top of the page.<br />
If only the current header would be static &#8230;</p>
<p>With this userscript it is:<br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/04/netlog_topbar_1.1.user.js">Click to install: netlog_topbar_1.1.user.js</a> (latest version)<br />
<a href="http://www.cuvedev.net/wp-content/uploads/2010/03/netlog_topbar.user.js">Click to install: netlog_topbar.user.js</a> (older version)</p>
<p><strong>UPDATE: </strong><br />
<a href="http://www.cuvedev.net/2010/06/updates-like-buttons-and-static-header/">Newer version available</a></p>
<p>Tested in Firefox 3.6 and Chromium 5.0</p>
<p><strong>Update:</strong><br />
A new version is out (v1.1).</p>
<p>Changes:<br />
- In this version the new tabs in People and Logs are visible.<br />
- There&#8217;s a Netlog version check. The header isn&#8217;t static in v4, only in v5.<br />
- This version also works better with MagicDebug</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/03/netlog-static-header/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

