<?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"
	>

<channel>
	<title>XhochY english flavoured stories</title>
	<atom:link href="http://xhochy.org/en/feed/" rel="self" type="application/rss+xml" />
	<link>http://xhochy.org/en</link>
	<description>more british....</description>
	<pubDate>Sun, 10 Aug 2008 12:30:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Programming with the WiiMote (II)</title>
		<link>http://xhochy.org/en/2008/08/10/programming-with-the-wiimote-ii/</link>
		<comments>http://xhochy.org/en/2008/08/10/programming-with-the-wiimote-ii/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 12:30:40 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[bluetooth]]></category>

		<category><![CDATA[bluez]]></category>

		<category><![CDATA[cwiid]]></category>

		<category><![CDATA[led]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[python]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[wii]]></category>

		<category><![CDATA[wiimote]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=92</guid>
		<description><![CDATA[I will use in the following posts Ubuntu Linux (8.04) as operating system, that I&#8217;ll give some specific tips only for it, on other systems some things might work different, but the code should work without modification everywhere. At first we need to install some software requirements, the python wrapper for the WiiMote and for [...]]]></description>
			<content:encoded><![CDATA[<p>I will use in the following posts Ubuntu Linux (8.04) as operating system, that I&#8217;ll give some specific tips only for it, on other systems some things might work different, but the code should work without modification everywhere. At first we need to install some software requirements, the python wrapper for the WiiMote and for general Bluetooth actions the bluez python wrapper:</p>
<blockquote><p>sudo apt-get install python-cwiid python-bluez</p></blockquote>
<p>To start simple, we have to read out the adress of the WiiMote we use, this is done by activating our bluetooth device, pressing 1+2 on the WiiMote and running the following command:</p>
<blockquote><p>hcitool scan</p></blockquote>
<p>After about 10 seconds this will produce an output like this:</p>
<blockquote><p>00:1F:45:8B:22:6F    Nintendo RVL-CNT-01</p></blockquote>
<p>The first of this two columns is the identifier of your WiiMote which we will need for our first python script. For the beginning we only want to connect with our WiiMote and let the LEDs blink. Knowing the Hardware adress of the WiiMotes simplifies the connection via python:</p>
<blockquote><p>import cwiid</p>
<p>wiimote = cwiid.Wiimote(&#8221;00:1F:45:8B:22:6F&#8221;)</p></blockquote>
<p>Now after we connected to the WiiMote via Python(you still need to press 1+2 while the connection is initiated) we want let the LEDs blink. This is done by setting the wiimote.led to valid mask. For example, if you want to turn on the LEDs 1, 3 and 4 this is done via this short code snippet:</p>
<blockquote><p>wiimote.led = cwiid.LED1_ON | cwiid.LED3_ON | cwiid.LED4_ON</p></blockquote>
<p>To let them blink, we put all in this in a never-ending while loop and get the following whole script:</p>
<pre>import cwiid
import time

wiimote = cwiid.Wiimote("00:1F:45:8B:22:6F")

while True:
    time.sleep(0.1)
    s.led = cwiid.LED1_ON | cwiid.LED4_ON
    time.sleep(0.1)
    s.led = cwiid.LED2_ON | cwiid.LED3_ON</pre>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Programming%20with%20the%20WiiMote%20%28II%29&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F08%2F10%2Fprogramming-with-the-wiimote-ii%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Programming with the WiiMote (II)";
		a2a_linkurl="http://xhochy.org/en/2008/08/10/programming-with-the-wiimote-ii/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/08/10/programming-with-the-wiimote-ii/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming with the WiiMote (I)</title>
		<link>http://xhochy.org/en/2008/08/07/programming-with-the-wiimote-i/</link>
		<comments>http://xhochy.org/en/2008/08/07/programming-with-the-wiimote-i/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:55:41 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[acceleration]]></category>

		<category><![CDATA[bluetooth]]></category>

		<category><![CDATA[camera]]></category>

		<category><![CDATA[ir]]></category>

		<category><![CDATA[led]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[python]]></category>

		<category><![CDATA[rumble]]></category>

		<category><![CDATA[school]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[wiimote]]></category>

		<category><![CDATA[wmgui]]></category>

		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=90</guid>
		<description><![CDATA[This year we will make a workshop at my school about programming with the WiiMote. In parallel to this workshop I will give a small round-up every week on our process in the form of a tutorial. Things mentioned in this tutorial are not all from the workshop since this article is published before any [...]]]></description>
			<content:encoded><![CDATA[<p>This year we will make a workshop at my school about programming with the WiiMote. In parallel to this workshop I will give a small round-up every week on our process in the form of a tutorial. Things mentioned in this tutorial are not all from the workshop since this article is published before any meeting of our workshop.</p>
<p>As the first step, we want just see what information the WiiMote provides. We are using the programm &#8220;WMGui&#8221;. The WiiMote is connected to use with this program by the following:</p>
<ol>
<li>Turn on the bluetooth of you PC</li>
<li>Start wmgui</li>
<li>Press the buttons 1 and 2 of the WiiMote simultaneously to make it discoverable</li>
<li>Choose File-&gt;Connect in the wmgui-menu</li>
</ol>
<p>By default only the Buttons section is enabled, here a button is highlighted green if it is pressed. You could press any button without fear, at the moment they do not modify anything. The most interesting thing on the WiiMote for a common user are the acceleration sensors which we could enable by Settings-&gt;Acc Data. <strong><em>X, Y, Z</em></strong> show the acceleration in the different coordinate directions. <em><strong>Acc</strong></em> shows the acceleration of the motion in all directions. <strong><em>Roll </em></strong>shows the position of the WiiMote, exactly its sidewards position, 0 is when it rests upside up on the table. <em><strong>Pitch</strong></em> shows the position on the other axis(front/back). There are only 2 values of positioning since the WiiMote could only be turned on two axes, front up/down or turning sidewards. People already knowing more about the WiiMote will be more interested in the IR camera which is activated through Settings-&gt;IR Data. If you want to play a bit, take a look under Controls-&gt;&#8230;, this gives you the probability to switch on the different LEDs on the WiiMote and to let it <strong>rumble</strong>!</p>
<p>Keep up for coming posts getting into detail with the WiiMote, we will start programming <img src='http://xhochy.org/en/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Programming%20with%20the%20WiiMote%20%28I%29&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F08%2F07%2Fprogramming-with-the-wiimote-i%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Programming with the WiiMote (I)";
		a2a_linkurl="http://xhochy.org/en/2008/08/07/programming-with-the-wiimote-i/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/08/07/programming-with-the-wiimote-i/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Update on Schoorbs Versioning</title>
		<link>http://xhochy.org/en/2008/08/05/update-on-schoorbs-versioning/</link>
		<comments>http://xhochy.org/en/2008/08/05/update-on-schoorbs-versioning/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 18:52:41 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[changes]]></category>

		<category><![CDATA[christmas]]></category>

		<category><![CDATA[major]]></category>

		<category><![CDATA[release]]></category>

		<category><![CDATA[schoorbs]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[versioning]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=85</guid>
		<description><![CDATA[Since there will be major changes in the next Schoorbs release, I will introduce a new versioning system for Schoorbs which will be the same as Ubuntu has(&#60;year&#62;.&#60;month&#62;). I want to do this now to confuse as less people as possible since Schoorbs user base is growing at the moment, but still is small. The [...]]]></description>
			<content:encoded><![CDATA[<p>Since there will be major changes in the next Schoorbs release, I will introduce a new versioning system for Schoorbs which will be the same as Ubuntu has(&lt;year&gt;.&lt;month&gt;). I want to do this now to confuse as less people as possible since Schoorbs user base is growing at the moment, but still is small. The next release will include changes which really makes a cut and after that there will be a big difference between Schoorbs and MRBS (but for compability reasons we&#8217;ll still use the same DB layout since this has be proven as good (but not as perfect)). So the next upcoming release will be either 8.10, 8.11 or 8.12. I can not say at the moment in which month it ships since there are more changes than I expected, but I hope to get it out before Christmas.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Update%20on%20Schoorbs%20Versioning&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F08%2F05%2Fupdate-on-schoorbs-versioning%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Update on Schoorbs Versioning";
		a2a_linkurl="http://xhochy.org/en/2008/08/05/update-on-schoorbs-versioning/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/08/05/update-on-schoorbs-versioning/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Preview of JS Effects in administration of Schoorbs</title>
		<link>http://xhochy.org/en/2008/08/02/preview-of-js-effects-in-adminstration-of-schoors/</link>
		<comments>http://xhochy.org/en/2008/08/02/preview-of-js-effects-in-adminstration-of-schoors/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 21:35:46 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[administration]]></category>

		<category><![CDATA[effects]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[schoorbs]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=81</guid>
		<description><![CDATA[Just to show how the new interface looks like and behaves.


    
    
		a2a_linkname="Preview of JS Effects in administration of Schoorbs";
		a2a_linkurl="http://xhochy.org/en/2008/08/02/preview-of-js-effects-in-adminstration-of-schoors/";
						    
    

	]]></description>
			<content:encoded><![CDATA[<p>Just to show how the new interface looks like and behaves.</p>
<p><object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/Q-sc_tpzRoU&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6&#038;border=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/Q-sc_tpzRoU&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6&#038;border=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="349"></embed></object></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Preview%20of%20JS%20Effects%20in%20administration%20of%20Schoorbs&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F08%2F02%2Fpreview-of-js-effects-in-adminstration-of-schoors%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Preview of JS Effects in administration of Schoorbs";
		a2a_linkurl="http://xhochy.org/en/2008/08/02/preview-of-js-effects-in-adminstration-of-schoors/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/08/02/preview-of-js-effects-in-adminstration-of-schoors/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inspecting Pidgin (II)</title>
		<link>http://xhochy.org/en/2008/08/02/inspecting-pidgin-ii/</link>
		<comments>http://xhochy.org/en/2008/08/02/inspecting-pidgin-ii/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 10:28:35 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[files]]></category>

		<category><![CDATA[grep]]></category>

		<category><![CDATA[library]]></category>

		<category><![CDATA[pidgin]]></category>

		<category><![CDATA[shared]]></category>

		<category><![CDATA[strace]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=79</guid>
		<description><![CDATA[Using strace I wanted to make up some statistics how many files pidgin loads during a 5 second startup time. Using grep and regexes the following is shown:
Attempts to a open file: 2886
Failed Attempts: 1457
Opened(non-failed) for read-only: 1407
Opened(non-failed) for read-only without those from /var/cache: 1371
Shared libraries: 213
PNG-images: 90
ICON-images: 164

    
   [...]]]></description>
			<content:encoded><![CDATA[<p>Using strace I wanted to make up some statistics how many files pidgin loads during a 5 second startup time. Using grep and regexes the following is shown:</p>
<p>Attempts to a open file: 2886</p>
<p>Failed Attempts: 1457</p>
<p>Opened(non-failed) for read-only: 1407</p>
<p>Opened(non-failed) for read-only without those from /var/cache: 1371</p>
<p>Shared libraries: 213</p>
<p>PNG-images: 90</p>
<p>ICON-images: 164</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Inspecting%20Pidgin%20%28II%29&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F08%2F02%2Finspecting-pidgin-ii%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Inspecting Pidgin (II)";
		a2a_linkurl="http://xhochy.org/en/2008/08/02/inspecting-pidgin-ii/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/08/02/inspecting-pidgin-ii/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inspecting Pidgin (I)</title>
		<link>http://xhochy.org/en/2008/08/01/inspecting-pidgin-i/</link>
		<comments>http://xhochy.org/en/2008/08/01/inspecting-pidgin-i/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 00:45:33 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[call]]></category>

		<category><![CDATA[dlopen_doit]]></category>

		<category><![CDATA[do_lookup_x]]></category>

		<category><![CDATA[gprof2dot]]></category>

		<category><![CDATA[graph]]></category>

		<category><![CDATA[oprofile]]></category>

		<category><![CDATA[pidgin]]></category>

		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=76</guid>
		<description><![CDATA[Using OProfile and GProf2Dot I finally made a callgraph for the first 5 seocnds of a Pidgin startup with a simple Yahoo Messenger Account configured(No I&#8217;m not a YIM supporter, this was just the account I used for testing, all my other accounts are to busy to log in/off every 10 seconds(my friends would all [...]]]></description>
			<content:encoded><![CDATA[<p>Using OProfile and <a href="http://code.google.com/p/jrfonseca/wiki/Gprof2Dot">GProf2Dot</a> I finally made a callgraph for the first 5 seocnds of a Pidgin startup with a simple Yahoo Messenger Account configured(No I&#8217;m not a YIM supporter, this was just the account I used for testing, all my other accounts are to busy to log in/off every 10 seconds(my friends would all get annoyed ;-)) This graph shows directly that time is spend in calling do_lookup_x in ld-2.7.so whichs source is in most cases dlopen_doit.</p>
<p><a href="http://static.xhochy.com/gfx/xhochy-org-en-blog/pidgin-2.4.1-20080731-callgraph.png"><img class="alignnone" src="http://static.xhochy.com/gfx/xhochy-org-en-blog/pidgin-2.4.1-20080731-callgraph.thumbnail.png" alt="" width="350" height="104" /></a></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Inspecting%20Pidgin%20%28I%29&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F08%2F01%2Finspecting-pidgin-i%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Inspecting Pidgin (I)";
		a2a_linkurl="http://xhochy.org/en/2008/08/01/inspecting-pidgin-i/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/08/01/inspecting-pidgin-i/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Real boottime measurements</title>
		<link>http://xhochy.org/en/2008/08/01/real-boottime-measurements/</link>
		<comments>http://xhochy.org/en/2008/08/01/real-boottime-measurements/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 00:34:40 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=73</guid>
		<description><![CDATA[Considering the boottime, nearly always people benchmark the time until the login screen shows up, but the enduser is not really only interested how long it takes until he could login, he wants to get as fast as possible to his running desktop and his favourite app running. Due to the last fact I&#8217;m starting [...]]]></description>
			<content:encoded><![CDATA[<p>Considering the boottime, nearly always people benchmark the time until the login screen shows up, but the enduser is not really only interested how long it takes until he could login, he wants to get as fast as possible to his running desktop <strong>and his favourite app running</strong>. Due to the last fact I&#8217;m starting <strong>pidgin</strong> directly with the GNOME session, so that it will as fast as possible available to the user. Here is my bootchart graph only with the optimizations mentioned before in this blog, since I stopped bootchart manually, you should the startup finished at the point where disk and cpu utilization are back to 0%. After substracting the time I needed to enter the harddisk-password(2,5 sec) and the user-password(2sec) you get a startup time of 89 seconds.</p>
<p><a href="http://static.xhochy.com/gfx/xhochy-org-en-blog/hardy-20080731-6.png"><img class="alignnone" src="http://static.xhochy.com/gfx/xhochy-org-en-blog/hardy-20080731-6.thumbnail.png" alt="" width="350" height="372" /></a></p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Real%20boottime%20measurements&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F08%2F01%2Freal-boottime-measurements%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Real boottime measurements";
		a2a_linkurl="http://xhochy.org/en/2008/08/01/real-boottime-measurements/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/08/01/real-boottime-measurements/feed/</wfw:commentRss>
		</item>
		<item>
		<title>YABPT: Do not have a CD in your drive</title>
		<link>http://xhochy.org/en/2008/07/31/yabpt-do-not-have-a-cd-in-your-drive/</link>
		<comments>http://xhochy.org/en/2008/07/31/yabpt-do-not-have-a-cd-in-your-drive/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 20:55:03 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[8.04]]></category>

		<category><![CDATA[boot]]></category>

		<category><![CDATA[cd]]></category>

		<category><![CDATA[drive]]></category>

		<category><![CDATA[hal]]></category>

		<category><![CDATA[performance]]></category>

		<category><![CDATA[time]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[yabpt]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=71</guid>
		<description><![CDATA[Yet another boot performance tip(YABPT): 
To keep it short: While booting your Ubuntu System, you shouldn&#8217;t have a CD in your drive because this causes hald-probe-volume to run for 10 seconds.

    
    
		a2a_linkname="YABPT: Do not have a CD in your drive";
		a2a_linkurl="http://xhochy.org/en/2008/07/31/yabpt-do-not-have-a-cd-in-your-drive/";
						    
    

	]]></description>
			<content:encoded><![CDATA[<p><strong>Yet another boot performance tip(YABPT): </strong></p>
<p>To keep it short: While booting your Ubuntu System, you shouldn&#8217;t have a CD in your drive because this causes hald-probe-volume to run for 10 seconds.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=YABPT%3A%20Do%20not%20have%20a%20CD%20in%20your%20drive&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F07%2F31%2Fyabpt-do-not-have-a-cd-in-your-drive%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="YABPT: Do not have a CD in your drive";
		a2a_linkurl="http://xhochy.org/en/2008/07/31/yabpt-do-not-have-a-cd-in-your-drive/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/07/31/yabpt-do-not-have-a-cd-in-your-drive/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adding CUDA synatx to Nano - Part 2</title>
		<link>http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano-part-2/</link>
		<comments>http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano-part-2/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 19:41:39 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[color]]></category>

		<category><![CDATA[colour]]></category>

		<category><![CDATA[commandline]]></category>

		<category><![CDATA[cuda]]></category>

		<category><![CDATA[editor]]></category>

		<category><![CDATA[file]]></category>

		<category><![CDATA[gnu]]></category>

		<category><![CDATA[nano]]></category>

		<category><![CDATA[nanorc]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=70</guid>
		<description><![CDATA[Just to complete all colourings for CUDA files, I added the missing __*__-specifiers. Builtin types like uint4 will be now coloured too. The magic variables blockIdx, threadIdx, &#8230; and the function syncthreads() will all be handled as something specific but I think the most are only interested in the nanorc-file for colouring CUDA code in [...]]]></description>
			<content:encoded><![CDATA[<p>Just to complete all colourings for CUDA files, I added the missing __*__-specifiers. Builtin types like uint4 will be now coloured too. The magic variables blockIdx, threadIdx, &#8230; and the function syncthreads() will all be handled as something specific but I think the most are only interested in the <a href="http://static.xhochy.com/files/xhochy-org-en-blog/20080711/cu.nanorc">nanorc-file for colouring CUDA code in GNU Nano</a>.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Adding%20CUDA%20synatx%20to%20Nano%20-%20Part%202&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F07%2F11%2Fadding-cuda-synatx-to-nano-part-2%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Adding CUDA synatx to Nano - Part 2";
		a2a_linkurl="http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano-part-2/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adding CUDA synatx to Nano - Part 1</title>
		<link>http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano/</link>
		<comments>http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 09:37:58 +0000</pubDate>
		<dc:creator>xhochy</dc:creator>
		
		<category><![CDATA[Gerneral]]></category>

		<category><![CDATA[color]]></category>

		<category><![CDATA[colour]]></category>

		<category><![CDATA[commandline]]></category>

		<category><![CDATA[cuda]]></category>

		<category><![CDATA[gnu]]></category>

		<category><![CDATA[nano]]></category>

		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://xhochy.org/en/?p=69</guid>
		<description><![CDATA[Since GNU Nano is my favorite editor on the commandline and I am developing things with CUDA at the moment, I wanted to have the comfort of coloured code code. Since CUDA is just C/C++ with some minimal synatx additions, I modifed the C-syntax file which is loacted in /usr/share/nano/c.nanorc in my system.
First we need [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://www.nano-editor.org/">GNU Nano</a> is my favorite editor on the commandline and I am developing things with CUDA at the moment, I wanted to have the comfort of coloured code code. Since CUDA is just C/C++ with some minimal synatx additions, I modifed the C-syntax file which is loacted in <em>/usr/share/nano/c.nanorc</em> in my system.</p>
<p>First we need to tell nano to colour .cu-files too, not only .c, .cpp and &#8230; This is done through adding a <em>u|</em> in front of <em>pp|xx</em> in the line starting with syntax, normally line 3. After that the line should look as following:</p>
<blockquote><p>syntax &#8220;c&#8221; &#8220;\.(c(c|u|pp|xx)?|C)$&#8221; &#8220;\.(h(h|pp|xx)?|H)$&#8221; &#8220;\.ii?$&#8221;</p></blockquote>
<p>For the beginning I included the colouring of the __*__-specifiers and the &lt;&lt;&lt;&#8230;&gt;&gt;&gt; blocks. I hope this block is self-expalining (if there are some problems look at `man nanorc`), you could add this to the end of the file:</p>
<blockquote><p>## CUDA Syntax<br />
color cyan &#8220;\&lt;(__shared__|__global__|__device__|__host__)\&gt;&#8221;<br />
color red,yellow start=&#8221;&lt;&lt;&lt;&#8221; end=&#8221;&gt;&gt;&gt;&#8221;</p></blockquote>
<p>Of course you need not to use the colours I&#8217;ve choosen, feel free to choose your favourite ones, all available colours are listed in `man nanorc`.</p>
<p class="addtoany_share_save_container">
    <a class="a2a_dd addtoany_share_save" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=XhochY%20english%20flavoured%20stories&amp;siteurl=http%3A%2F%2Fxhochy.org%2Fen%2F&amp;linkname=Adding%20CUDA%20synatx%20to%20Nano%20-%20Part%201&amp;linkurl=http%3A%2F%2Fxhochy.org%2Fen%2F2008%2F07%2F11%2Fadding-cuda-synatx-to-nano%2F"><img src="http://xhochy.org/en/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Adding CUDA synatx to Nano - Part 1";
		a2a_linkurl="http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano/";
						    </script>
    <script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://xhochy.org/en/2008/07/11/adding-cuda-synatx-to-nano/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
