<?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</title>
	<atom:link href="http://www.cuvedev.net/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>Wed, 11 Aug 2010 22:40:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress plugin: Authentication</title>
		<link>http://www.cuvedev.net/2010/07/wordpress-plugin-authentication/?utm_source=rss&amp;utm_medium=rss&amp;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[Wordpress]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[plugin]]></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 src="http://www.cuvedev.net/wp-content/uploads/2010/07/screenshot-1-300x280.png" alt="options" title="Basic Authentication options" width="300" height="280" class="alignnone size-medium wp-image-903" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/07/wordpress-plugin-authentication/feed/</wfw:commentRss>
		<slash:comments>25</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&amp;utm_medium=rss&amp;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&amp;utm_medium=rss&amp;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&amp;utm_medium=rss&amp;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[Userscript]]></category>
		<category><![CDATA[script]]></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&amp;utm_medium=rss&amp;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[Cuvedev]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[api]]></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>11</slash:comments>
		</item>
		<item>
		<title>Vrt Internetradio Boxee plugin</title>
		<link>http://www.cuvedev.net/2010/04/vrt-internetradio-boxee-plugin/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=vrt-internetradio-boxee-plugin</link>
		<comments>http://www.cuvedev.net/2010/04/vrt-internetradio-boxee-plugin/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 21:28:48 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Boxee]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[klara]]></category>
		<category><![CDATA[mnm]]></category>
		<category><![CDATA[radio 1]]></category>
		<category><![CDATA[radio 2]]></category>
		<category><![CDATA[radio vlaanderen]]></category>
		<category><![CDATA[stubru]]></category>
		<category><![CDATA[vrt]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/?p=165</guid>
		<description><![CDATA[So, I finally finished my second Boxee plugin. This time I can call it a real plugin, there are options, lists and dialogs. Hooray! The plugin is called &#8220;Vrt Internetradio&#8221;, and it basicly plays internet streams from the VRT (Vlaamse Radio- en Televisieomroeporganisatie). The VRT ¬†owns several radio stations and they provide streams to listen [...]]]></description>
			<content:encoded><![CDATA[<p>So, I finally finished my second Boxee plugin. This time I can call it a <em>real</em> plugin, there are options, lists and dialogs. Hooray!</p>
<p>The plugin is called &#8220;Vrt Internetradio&#8221;, and it basicly plays internet streams from the VRT (Vlaamse Radio- en Televisieomroeporganisatie).<br />
The VRT ¬†owns several radio stations and they provide streams to listen to them via the internet. I took the opportunity to use those to make a Boxee plugin so we all can play them with our beloved Boxee.</p>
<p>There&#8217;s not that much functionality, but I tried to keep the layout simple and tried to give a good user experience (up/down buttons to right controls and such).</p>
<p>Screenshots (click for larger picture) and download link are below , don&#8217;t hesitate to comment ¬†and help me improve the plugin.</p>
<p>The main screen:<br />
<a title="The main screen" href="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_main.png" target="_blank" rel="lightbox[165]"><img title="The main screen" src="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_main.png" alt="The main screen" width="300" /></a></p>
<p>Info about a particular station and substations to play:<br />
<a title="Info about a particular station and substations to play" href="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_station.png" target="_blank" rel="lightbox[165]"><img title="Info about a particular station and substations to play" src="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_station.png" alt="Info about a particular station and substations to play" width="300" /></a></p>
<p>Starting a radiostation:<br />
<a title="Starting a radiostation" href="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_play.png" target="_blank" rel="lightbox[165]"><img title="Starting a radiostation" src="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_play.png" alt="Starting a radiostation" width="300" /></a></p>
<p>The options dialog:<br />
<a title="The options dialog" href="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_options.png" target="_blank" rel="lightbox[165]"><img title="The options dialog" src="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_options.png" alt="The options dialog" width="300" /></a></p>
<p>The about dialog:<br />
<a title="The about dialog" href="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_about.png" target="_blank" rel="lightbox[165]"><img title="The about dialog" src="http://www.cuvedev.net/wp-content/uploads/2010/04/vrt_boxee_about.png" alt="The about dialog" width="300" /></a></p>
<p><a href="http://www.cuvedev.net/wp-content/uploads/2010/04/vrtradio.zip" target="_blank">Download here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/04/vrt-internetradio-boxee-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boxee python dev</title>
		<link>http://www.cuvedev.net/2010/04/boxee-python-dev/?utm_source=rss&amp;utm_medium=rss&amp;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>0</slash:comments>
		</item>
		<item>
		<title>Boxee StuBru Plugin</title>
		<link>http://www.cuvedev.net/2010/04/boxee-stubru-plugin/?utm_source=rss&amp;utm_medium=rss&amp;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&amp;utm_medium=rss&amp;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>
		<item>
		<title>Updates</title>
		<link>http://www.cuvedev.net/2010/03/updates/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=updates</link>
		<comments>http://www.cuvedev.net/2010/03/updates/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 23:47:49 +0000</pubDate>
		<dc:creator>Klaas Cuvelier</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://www.cuvedev.net/2010/03/updates/</guid>
		<description><![CDATA[It&#8217;s been a while I shared something useful with the rest of the world. So for the few people who might read this, here&#8217;s why: I&#8217;ve been rather busy with my job. Since August &#8217;09 I&#8217;m a full time web developer at Netlog NV (in Ghent, Belgium). It&#8217;s a very cool job and I&#8217;m in [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while I shared something useful with the rest of the world. So for the few people who might read this, here&#8217;s why:</p>
<p>I&#8217;ve been rather busy with my job. Since August &#8217;09 I&#8217;m a full time web developer at Netlog NV (in Ghent, Belgium). It&#8217;s a very cool job and I&#8217;m in an awesome team. I learn from them everyday. New approaches, techniques, &#8230;</p>
<p>Also, In November I&#8217;ve won a price together with Cliff Ophalvens, my partner at Netlog during my internship (Now also a colleague at Netlog). Our school nominated our work, so we had to go to Brussel to give a presentation about it.<br />
Out of almost 18.000 graduated &#8216;Bachelors&#8217;, our work won in the category Informatics. Worth mentioning, not?</p>
<p>In my spare time I&#8217;m currently working on several little projects, which will probably be shared on the site when I finished them.¬†Of course¬†after a whole day of work, I most of the time don&#8217;t go right back to my computer screen&#8230; So they&#8217;re not quite finished yet.<br />
But here&#8217;s a little list of stuff I&#8217;m working on (not in real detail):</p>
<ul>
<li>Boxee plugins (I&#8217;ve so much ideas at this moment)</li>
<li> Netbeans plugins</li>
<li>Little PHP Framework</li>
</ul>
<p>So, that&#8217;s about it. Hope to see you soon again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cuvedev.net/2010/03/updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
