<?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>SenseHofstede.nl &#187; programming</title>
	<atom:link href="http://sensehofstede.nl/tag/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://sensehofstede.nl</link>
	<description>Sense&#039;s blog</description>
	<lastBuildDate>Thu, 05 Aug 2010 17:32:10 +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>GUADEC website in Git, using UDStream</title>
		<link>http://sensehofstede.nl/guadec-website-in-git-using-udstream</link>
		<comments>http://sensehofstede.nl/guadec-website-in-git-using-udstream#comments</comments>
		<pubDate>Wed, 14 Apr 2010 07:37:58 +0000</pubDate>
		<dc:creator>Sense Hofstede</dc:creator>
				<category><![CDATA[English Posts]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[guadec]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[udstream]]></category>

		<guid isPermaLink="false">http://www.qense.nl/?p=481</guid>
		<description><![CDATA[For most people 26 July may be far away, but we&#8217;re already working hard to make GUADEC 2010 a great success. My small task is maintaining the website, at http://guadec.org/. It was decided after the last conference that instead of &#8230; <a href="http://sensehofstede.nl/guadec-website-in-git-using-udstream">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For most people 26 July may be far away, but we&#8217;re already working hard to make <abbr title="GNOME Users' And Developers' European Conference">GUADEC</abbr> 2010 a great success. My small task is <a title="GUADEC/2010/Volunteers/Teams/Webmaster - GNOME Live!" rel="external" href="http://live.gnome.org/GUADEC/2010/Volunteers/Teams/Webmaster" target="_blank">maintaining the website</a>, at <a title="GUADEC" rel="external" href="http://guadec.org/" target="_blank">http://guadec.org/</a>.</p>
<p>It was decided after the last conference that instead of coming up with a new website every year we wanted something that would be reusable for several conferences. Koen Martens set up <a title="Open Conference Systems | Public Knowledge Project" rel="external" href="http://pkp.sfu.ca/?q=ocs" target="_blank">Open Conference Systems</a> and the great designer Vinicius Depizzol made a beatiful theme for the website.<span id="more-481"></span></p>
<p>I&#8217;ve been working on maintaining the website, extending the functionality a bit and pushing the code to Git for everyone to access. You can download the code from the <a title="http://git.gnome.org/browse/guadec-web" rel="external" href="http://git.gnome.org/browse/guadec-web" target="_blank">guadec-web</a> module at <em>git.gnome.org</em>. All patches will be considered. We don&#8217;t have a product registered in Bugzilla, but of course mails are welcome.</p>
<p>One of the things I&#8217;ve been working on was adapting <a title="UDStream in Launchpad" href="https://launchpad.net/udstream">UDStream</a> for use on the <abbr title="GNOME Users' And Developers' European Conference">GUADEC</abbr> website. You can see it in action at the &#8216;<a title="Conference Lifestream - GUADEC" href="http://guadec.org/index.php/guadec/index/lifestream" target="_blank">Conference lifestream</a>&#8216; page. I haven&#8217;t pushed the code to Git yet, but that&#8217;s because I&#8217;m also working on integrating OpenStreetMap with the accommodation page.</p>
<p>I&#8217;m unsure whether to file a merge request with the changes I&#8217;ve done to UDStream. I have to admit that I didn&#8217;t change a lot, most of the changes to the theme and changes to the way the JavaScript is included in the HTML file. Does anyone know whether UDStream is going to be used again during the upcoming <abbr title="Ubuntu Developer Summit">UDS</abbr> in Brussels?</p>
]]></content:encoded>
			<wfw:commentRss>http://sensehofstede.nl/guadec-website-in-git-using-udstream/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Giving Transmission the Indicator Application</title>
		<link>http://sensehofstede.nl/giving-transmission-the-indicator-application</link>
		<comments>http://sensehofstede.nl/giving-transmission-the-indicator-application#comments</comments>
		<pubDate>Mon, 15 Feb 2010 08:00:28 +0000</pubDate>
		<dc:creator>Sense Hofstede</dc:creator>
				<category><![CDATA[English Posts]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[transmission]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://qense.nl/?p=430</guid>
		<description><![CDATA[Have got an application? Add an Application Indicator to it! Jorge explains why. We keep track of applications that need support for Indicator Application on Launchpad with the bug tag &#8216;indicator-application&#8216;: the list of bugs against applications that need Indicator &#8230; <a href="http://sensehofstede.nl/giving-transmission-the-indicator-application">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Have got an application? Add an <a title="Application Indicators defined on the Ubuntu Wiki (with code examples)" href="https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators">Application Indicator</a> to it! <a title="Application Indicator Update «  jorge’s stompbox" href="http://castrojo.wordpress.com/2010/02/06/application-indicator-update/">Jorge explains why.</a></p>
<p>We keep track of applications that need support for <a title="Indicator Application on Launchpad" href="https://launchpad.net/indicator-application">Indicator Application</a> on Launchpad with the bug tag &#8216;<em>indicator-application</em>&#8216;: <a title="'indicator-application' Bugs in Ubuntu : Bugs : Ubuntu" href="https://bugs.launchpad.net/ubuntu/+bugs?field.tag=indicator-application">the list of bugs against applications that need Indicator Application support</a>. There are code snippets on <a title="Application Indicators defined on the Ubuntu Wiki (with code examples)" href="https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators">the wiki page of Application Indicator</a> but in this blog post for those who would like to use it in their application.</p>
<p><a href="http://www.facebook.com/photo.php?pid=1071124&amp;l=929ac801ca&amp;id=1138835413"><img class="alignright" title="Transmission with Indicator Application support" src="http://photos-e.ak.fbcdn.net/hphotos-ak-ash1/hs253.ash1/18044_1349766421077_1138835413_1071124_6665985_n.jpg" alt="" width="360" height="225" /></a>I recently added support for Indicator Application to <a title="appindicator-integration : Branches : Lernid" href="https://code.launchpad.net/~qense/lernid/appindicator-integration">Lernid</a>, <a title="Bug #518179 in Bazaar GTK+ Frontends: “ Support Application Indicators”" href="https://launchpad.net/bugs/518179">Bzr-Gtk</a> and <a title="Bug #497882 in transmission (Ubuntu): “Support Application Indicators”" href="https://launchpad.net/bugs/497882">Transmission</a> and am now working on getting it into <a title="Bug #518171 in banshee (Ubuntu): “Support Application Indicators”" href="https://launchpad.net/bugs/518171">Banshee</a>. How do you help Ubuntu with adding support to existing applications? I&#8217;ll try to make that clear in this blog post.<br />
<span id="more-430"></span><br />
<strong>#1.</strong> Find something to work on. <a title="'indicator-application' Bugs in Ubuntu : Bugs : Ubuntu" href="https://bugs.launchpad.net/ubuntu/+bugs?field.tag=indicator-application">That list of bugs against applications that need Indicator Application support</a> is a great place to start looking. Don&#8217;t forget to mark a bug as <em>&#8216;In Progress&#8217;</em> when you&#8217;re <span style="text-decoration: underline;">actively</span> working on it!</p>
<p><strong>#2.</strong> We&#8217;re adding support to an application that is most likely used on more places than just Ubuntu. Therefore you should keep in mind that not only enabling Indicator Application support should be easy, but also disabling it. This means you&#8217;ll have to do some Autotools magic in order to make sure libappindicator is present and it is wanted. At the AppIndicator wiki page there is <a title="DesktopExperienceTeam/ApplicationIndicators #Automake fu - Ubuntu Wiki" href="https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Automake%20fu">an example autotools macro</a>. This should be added to the <em>./configure.ac</em>, which can mostly be found in the project&#8217;s source code root directory.You may have to adapt this in order to make it fit in the existing makefiles.<br />
<strong>NOTICE:</strong> The previously mentioned autotools example was written with the programming language C in mind. When you&#8217;re writing in C# you can reuse the code, but please keep in mind that you should check for <em>&#8216;appindicator-sharp-0.1&#8242;</em> rather than <em>&#8216;appindicator-0.1&#8242;</em>. The whole check isn&#8217;t necessary for Python.</p>
<p><strong>#3.</strong> Now we can start writing the code. Finally! I&#8217;m afraid I have to disappoint you, because the code itself is the least work of the whole procedure. Again, there is a <a title="DesktopExperienceTeam/ApplicationIndicators #Porting Guide for Applications - Ubuntu Wiki" href="https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Porting%20Guide%20for%20Applications">Porting Guide</a> at the wiki page with examples for all supported languages. Those are pretty straightforward, so I won&#8217;t repeat them here, but if you still have questions, don&#8217;t hesitate to leave a comment. Important is that you should use the previously defined autotools variable <em>HAVE_APPINDICATOR</em> (when programming in C) to allow the application to be compiled with a GtkStatusIcon as well, on other systems. You can do that like this:</p>
<pre>
<blockquote>

#ifdef HAVE_APPINDICATOR
 #include &lt;libappindicator/app-indicator.h&gt;
#endif

(other code)

#ifdef HAVE_APPINDICATOR
(Indicator Application code here)
#else
(leave the old GtkStatusIcon code here)
#endif</blockquote>
</pre>
<p><strong>#4.</strong> Now that the code and build macros have been written &#8212; and the <em>configure</em> script and the makefiles regenerated &#8212; and you&#8217;ve tested it (naturally), it&#8217;s time to submit your wonderful patch. Of course you do this on the bug report we&#8217;ve got in Launchpad, but we also would like you to forward the patch upstream. If there was not yet a bug report in the bug tracker of the application you ported, report one and link it to the Launchpad bug report. In the upstream bug report, leave a comment with your patch.</p>
<p>After that you&#8217;re done. Congratulations, you&#8217;ve helped with making the systray cleaner and prettier and more consistent. This makes us happy!</p>
]]></content:encoded>
			<wfw:commentRss>http://sensehofstede.nl/giving-transmission-the-indicator-application/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu Wanted Rewrite finished</title>
		<link>http://sensehofstede.nl/ubuntu-wanted-rewrite-finished</link>
		<comments>http://sensehofstede.nl/ubuntu-wanted-rewrite-finished#comments</comments>
		<pubDate>Sat, 21 Feb 2009 15:48:46 +0000</pubDate>
		<dc:creator>Sense Hofstede</dc:creator>
				<category><![CDATA[English Posts]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ubuntuwanted]]></category>

		<guid isPermaLink="false">http://ubuntero.qense.nl/?p=284</guid>
		<description><![CDATA[I feel empty now I don&#8217;t have to work on rewriting Ubuntu Wanted anymore. I feel so empty I only wrote MVC-pattern rewritten The MVC-pattern is now applied more strictly. in the changelog. After several days of work I know &#8230; <a href="http://sensehofstede.nl/ubuntu-wanted-rewrite-finished">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I feel empty now I don&#8217;t have to work on rewriting Ubuntu Wanted anymore. I feel so empty I only wrote</p>
<blockquote><p>MVC-pattern rewritten<br />
The MVC-pattern is now applied more strictly.</p></blockquote>
<p>in the changelog.<br />
After several days of work I know managed to let the code do roughly the same with 3117 lines of code more, which means the codebase has almost doubled.</p>
<p>Why would I do this? Why would I make such an effort to expand the codebase so much while there doesn&#8217;t change a lot to the external behaviour?<br />
Because now the MVC-pattern is applied strictly and the models can do more than just presenting information it&#8217;s just a matter of connecting wires when you want to add a page. No need for writing lots of queries.<br />
Because of the new store function it&#8217;s going to be a a lot easier to add AJAX functionality and it already makes it easier to update entries.<br />
The data is loaded into Model::data and when you call Model::store() the data is compared to a copy (Model::_data_copy) and all changes are written to the database.</p>
<p>Now on something different: I created a milestone for Ubuntu Wanted called <a title="Milestone usable for The Ubuntu Wanted Project" href="https://launchpad.net/ubuntu-wanted/+milestone/usable">usable</a>, if all bugs and blueprints marked for that milestone are finished/fixed we can start with testing Ubuntu Wanted in a Real Life Situation. I found milestones a lot easier to use than mind maps, so I&#8217;m going to dump the mind map I blogged about earlier in favour of Launchpad.</p>
<p>Lets show some stats! Everyone loves stats!</p>
<p>I let Ohcount examine the branch before and after revision 18, which gave these results:</p>
<p><strong>Before</strong></p>
<blockquote><p>Examining 79 file(s).</p>
<p>Ohloh Line Count Summary</p>
<p>Language          Files       Code    Comment  Comment %      Blank      Total<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-  &#8212;&#8211;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;<br />
php                         31       2173       1020      31.9%        646       3839<br />
css                           9        2122            73        3.3%        185       2380<br />
html                      31          397              9        2.2%         172         578<br />
sql                           1            44             33      42.9%           11           88<br />
javascript              2            16              4       20.0%            2            22<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-  &#8212;&#8211;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;<br />
Total                      74       4752       1139      19.3%       1016       6907</p>
<p>Platforms detected: PHP, SQL, Drupal<br />
Tools detected: None</p></blockquote>
<p><strong>After</strong></p>
<blockquote><p>Examining 118 file(s)..</p>
<p>Ohloh Line Count Summary</p>
<p>Language          Files       Code    Comment  Comment %      Blank      Total<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-  &#8212;&#8211;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;<br />
php                        64       3431       1922      35.9%       1010       6363<br />
css                            9       2122           73         3.3%         185       2380<br />
html                       64        802            18        2.2%         328       1148<br />
sql                             1          46             33      41.8%            11          90<br />
javascript               3           31               8      20.5%             4          43<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-  &#8212;&#8211;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;  &#8212;&#8212;&#8212;<br />
Total                    141      6432       2054       24.2%       1538      10024</p>
<p>Platforms detected: PHP, SQL, Drupal<br />
Tools detected: None</p></blockquote>
<p><strong>If you feel like helping the project out a bit, have a look at the <a title="Milestone usable for The Ubuntu Wanted Project" href="https://launchpad.net/ubuntu-wanted/+milestone/usable">usable milestone</a> page to see if there&#8217;s anything for you.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://sensehofstede.nl/ubuntu-wanted-rewrite-finished/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
