<?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>@vicox&#039;s blog &#187; Programming</title>
	<atom:link href="http://blog.vicox.net/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vicox.net</link>
	<description>Hey, you found my blog!</description>
	<lastBuildDate>Thu, 09 Jun 2011 22:16:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>SysPeek &#8211; A System Monitor Indicator for Ubuntu</title>
		<link>http://blog.vicox.net/2011/06/09/syspeek-a-system-monitor-indicator-for-ubuntu/</link>
		<comments>http://blog.vicox.net/2011/06/09/syspeek-a-system-monitor-indicator-for-ubuntu/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 22:16:10 +0000</pubDate>
		<dc:creator>@vicox</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Indicator]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[system monitor]]></category>

		<guid isPermaLink="false">http://blog.vicox.net/?p=166</guid>
		<description><![CDATA[I&#8217;ve always used the build-in system monitor applet in Gnome to keep an eye on what&#8217;s going on system-wise (I run a lot of application/web server locally for developing). But I never liked the look &#038; feel of the applet. Nevertheless, it was there &#8211; so I used it. As Ubuntu finally dropped support for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always used the build-in system monitor applet in Gnome to keep an eye on what&#8217;s going on system-wise (I run a lot of application/web server locally for developing). But I never liked the look &#038; feel of the applet. Nevertheless, it was there &#8211; so I used it.</p>
<p>As Ubuntu finally dropped support for panel applets, I thought there should be a system monitor indicator, that fits in well with the panel style and the other indicators. So as little side project, I developed my own indicator. Here is what I came up with.<br />
<div id="attachment_167" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.vicox.net/wp-content/uploads/2011/06/syspeek.png"><img src="http://blog.vicox.net/wp-content/uploads/2011/06/syspeek.png" alt="SysPeek System Monitor Indicator" title="syspeek" width="500" height="300" class="size-full wp-image-167" /></a><p class="wp-caption-text">SysPeek</p></div></p>
<p>The icon shows the CPU load. It is actually 10 icons, so for every 10% CPU load another icon is shown.</p>
<div id="attachment_168" class="wp-caption aligncenter" style="width: 321px"><a href="http://blog.vicox.net/wp-content/uploads/2011/06/syspeek-icons.png"><img src="http://blog.vicox.net/wp-content/uploads/2011/06/syspeek-icons.png" alt="SysPeek icons" title="syspeek-icons" width="311" height="36" class="size-full wp-image-168" /></a><p class="wp-caption-text">SysPeek icons from 0% to 100%</p></div>
<p>By clicking on it, it reveals more information about memory, swap, disk and network traffic. It is not configurable yet, but that&#8217;s the next on the todo list. The disk usage is, at the moment, for whatever disk <em>/home</em> is mounted on.</p>
<p>The project lives in Launchpad: <a href="https://launchpad.net/syspeek">https://launchpad.net/syspeek</a></p>
<p><strong>I&#8217;ve also set up a PPA for easy installation:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> apt-add-repository ppa:vicox<span style="color: #000000; font-weight: bold;">/</span>syspeek <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> syspeek</pre></div></div>

<p>Or download the .deb directly: <a href="https://launchpad.net/~vicox/+archive/syspeek/+files/syspeek_0.2~natty1_all.deb">syspeek_0.2~natty1_all.deb</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vicox.net/2011/06/09/syspeek-a-system-monitor-indicator-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSF StackOverflowError (faces-config.xml)</title>
		<link>http://blog.vicox.net/2010/10/28/jsf-faces-config-xml-stackoverflowerror/</link>
		<comments>http://blog.vicox.net/2010/10/28/jsf-faces-config-xml-stackoverflowerror/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 15:06:04 +0000</pubDate>
		<dc:creator>@vicox</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[stackoverflowerror]]></category>

		<guid isPermaLink="false">http://blog.vicox.net/?p=160</guid>
		<description><![CDATA[I was getting a java.lang.StackOverflowError in my JSF Application. Putting &#8220;version=2.0&#8243; into the faces-config tag fixed it. Thank you Hazem! &#60;faces-config xmlns=&#34;http://java.sun.com/xml/ns/javaee&#34; xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34; xsi:schemaLocation=&#34;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd&#34; version=&#34;2.0&#34;&#62; &#60;/faces-config&#62;]]></description>
			<content:encoded><![CDATA[<div id="attachment_161" class="wp-caption alignnone" style="width: 510px"><br />
<img src="http://blog.vicox.net/wp-content/uploads/2010/10/version-big.png" alt="" title="version-big" width="500" height="120" class="alignnone size-full wp-image-161" /><br />
<p class="wp-caption-text">faces-config.xml</p></div>
<p>I was getting a java.lang.StackOverflowError in my JSF Application. Putting &#8220;version=2.0&#8243; into the faces-config tag fixed it. Thank you <a href="http://www.jroller.com/HazemBlog/entry/jsf_ri_2_0_1">Hazem</a>!</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;faces-config</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/javaee&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd&quot;</span></span>
<span style="color: #009900;">              <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;2.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/faces-config<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.vicox.net/2010/10/28/jsf-faces-config-xml-stackoverflowerror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About Todo Lists and Indicators</title>
		<link>http://blog.vicox.net/2010/05/26/about-todo-lists-and-indicators/</link>
		<comments>http://blog.vicox.net/2010/05/26/about-todo-lists-and-indicators/#comments</comments>
		<pubDate>Wed, 26 May 2010 02:23:21 +0000</pubDate>
		<dc:creator>@vicox</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[GTK]]></category>
		<category><![CDATA[Indicator]]></category>

		<guid isPermaLink="false">http://blog.vicox.net/?p=66</guid>
		<description><![CDATA[Indicators were introduced in Ubuntu with version 9.10 and will sooner or later replace the notification area. Some programs like Rhythmbox, Gwibber and Evolution are already using indicators instead of notification icons (at least in Ubuntu). An indicator is basically an icon in your panel, that tells you something about the state of the program. For example, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.markshuttleworth.com/archives/347">Indicators</a> were introduced in Ubuntu with version 9.10 and will sooner or later replace the notification area. Some programs like Rhythmbox, Gwibber and Evolution are already using indicators instead of notification icons (at least in Ubuntu).</p>
<p>An indicator is basically an icon in your panel, that tells you something about the state of the program. For example, the messaging indicator turns green when you get an email.</p>
<p>But, you can also interact with the indicator. By clicking on the icon, a menu pops up where you can start playing music, jump to your music player, go to your inbox, quit an application, etc.</p>
<p>Here are two indicators, that are new in Ubuntu 10.04.</p>
<div id="attachment_68" class="wp-caption alignnone" style="width: 410px"><img class="size-full wp-image-68" title="soundindicator" src="http://blog.vicox.net/wp-content/uploads/2010/05/soundindicator.png" alt="Sound Indicator" width="400" height="125" /><p class="wp-caption-text">Sound Indicator</p></div>
<div id="attachment_69" class="wp-caption alignnone" style="width: 410px"><img class="size-full wp-image-69" title="memenu" src="http://blog.vicox.net/wp-content/uploads/2010/05/memenu.png" alt="Me Menu" width="400" height="200" /><p class="wp-caption-text">Me Menu</p></div>
<p>What&#8217;s special about these indicators, is that they have a volume slider and a text entry field. Usually you don&#8217;t find that in a menu. That&#8217;s cool, they put application functionality into the indicator. No need to locate or open Gwibber to post a new tweet. Just click on the Me Menu, type and hit enter.</p>
<p>Then I made this mockup.</p>
<div id="attachment_74" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-74" title="todocator" src="http://blog.vicox.net/wp-content/uploads/2010/05/todocator.png" alt="Todocator" width="450" height="250" /><p class="wp-caption-text">Todocator</p></div>
<p>It&#8217;s a simple todo list. Yes, there are already a lot of of todo apps, <a href="http://live.gnome.org/Tasque">Tasque</a> for example. But these applications are too complicated. You can set a due date, set a colour, group tasks or even create sub tasks. It&#8217;s a lot of work to manage your todo list. I want to work <em>on</em> my tasks, not on <em>managing</em> my tasks.</p>
<p>Also, a lot of tasks come from email or your browser. If I get an email that says &#8220;Do this&#8221;, I don&#8217;t copy that email into my todo list. Too much work. Instead, I move it into an email folder, called TODO. If I read something on the internet that leads to something I want to or must do, I use <a href="http://readitlaterlist.com/">Read it later</a>.</p>
<p>So &#8220;Try Lubuntu&#8221; in the mockup, actually wouldn&#8217;t be in my todo list, because I would save the website in <em>Read it later</em>, or I just download the ISO to my download folder, which also serves as a todo list.</p>
<p>As I made this mockup, I had a simple todo list for basic things in mind. Similar to a Post-it note on your desk, or a shopping list. Quick adding, quick strikethrough. I think an indicator would be perfect for this.</p>
<h3>Ok let&#8217;s code&#8230;</h3>
<p>As it turns out, the programming part is not as easy as it looks. The menu that pops up, when you click on an indicator, is a GTK Menu. And you can&#8217;t put text entry fields or markup-ed text (strikethrough) into a GTK Menu or a GTK MenuItem. You&#8217;ll have to build a custom widget.</p>
<p>Because I don&#8217;t have a desktop programming background, and I&#8217;m new to GTK, I&#8217;m still in the process of figuring out how to accomplish this in Python. Any tips or references would be appreciated.</p>
<p>I think it would be great, if there was a library, some sort of GTK extension, that helps an app developer to put widgets like entry fields, sliders, etc into menus. I can imagine a lot of programs would benefit by this.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vicox.net/2010/05/26/about-todo-lists-and-indicators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

