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

<channel>
	<title>Krunoslav Husak's playground</title>
	<atom:link href="http://h00s.net/site/feed/" rel="self" type="application/rss+xml" />
	<link>http://h00s.net/site</link>
	<description>"Bow before me, for I am root."</description>
	<pubDate>Sun, 15 Aug 2010 18:29:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Git: Reverting back to specific commit</title>
		<link>http://h00s.net/site/git/git-reverting-back-to-specific-commit/</link>
		<comments>http://h00s.net/site/git/git-reverting-back-to-specific-commit/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 18:29:49 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://h00s.net/site/?p=175</guid>
		<description><![CDATA[If you want to revert to specific commit (with known commit SHA hash), do this:
Find which commit do you want to revert to:


git log

Revert to specific commit:


# reset the index to the desired tree, for example 0ea59eb95218
git reset 0ea59eb95218
# move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}
git commit -m &#34;Revert to [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to revert to specific commit (with known commit SHA hash), do this:<br />
Find which commit do you want to revert to:</p>
<pre name="code" class="python">

git log
</pre>
<p>Revert to specific commit:</p>
<pre name="code" class="python">

# reset the index to the desired tree, for example 0ea59eb95218
git reset 0ea59eb95218
# move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}
git commit -m &quot;Revert to 0ea59eb95218&quot;
# Update working copy to reflect the new commit
git reset --hard
</pre>
<p>Solution written by <a href="http://stackoverflow.com/users/19563/charles-bailey">Charles Bailey</a> on <a href="http://stackoverflow.com/questions/1895059/git-revert-to-a-commit-by-sha-hash">stackoverflow.com</a>. Thanks Charles!</p>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/git/git-reverting-back-to-specific-commit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Displaying Tweets on 20&#215;4 serial LCD</title>
		<link>http://h00s.net/site/uncategorized/displaying-tweets-on-lcd/</link>
		<comments>http://h00s.net/site/uncategorized/displaying-tweets-on-lcd/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 14:29:04 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://h00s.net/site/?p=152</guid>
		<description><![CDATA[How about this? Displaying your friends Twitter timeline on 20&#215;4 LCD display. I hate myself because of my fanatic checking for my friends new tweets. Come on, you know the drill  So, for me to actually do some work, I wrote script for displaying those tweets on small LCD. This is how it works: [...]]]></description>
			<content:encoded><![CDATA[<p>How about this? Displaying your friends Twitter timeline on 20&#215;4 LCD display. I hate myself because of my fanatic checking for my friends new tweets. Come on, you know the drill <img src='http://h00s.net/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> So, for me to actually do some work, I wrote script for displaying those tweets on small LCD. This is how it works: when there are new (unseen) tweets, script  turns LCD&#8217;s backlight on, display all new tweets (if there is more then one new tweet, each is displayed for 5sec) and after that turn backlight off. Simple!</p>
<p>For this to work, I&#8217;m using Ubuntu 9.04, Ruby 1.8.7 and <a href="http://www.siliconcraft.net/products.htm">Siliconcraft&#8217;s</a> serial LCD (SC2004). For interaction with Twitter service I&#8217;m using my own (very simple) Twitter Ruby class and another one for interacting with LCD. Twittlcd.rb script is using those classes and every 3 min checks for new Tweets.</p>
<p>This is how it looks like:<br />
<a href="http://h00s.net/site/wp-content/uploads/2009/08/twittlcd-1.jpg" rel="thumbnail"><img src="http://h00s.net/site/wp-content/uploads/2009/08/twittlcd-1-300x172.jpg" alt="Twittlcd 1" title="Twittlcd 1" width="300" height="172" class="alignleft size-medium wp-image-167" /></a></p>
<p><a href="http://h00s.net/site/wp-content/uploads/2009/08/twittlcd-2.jpg" rel="thumbnail"><img src="http://h00s.net/site/wp-content/uploads/2009/08/twittlcd-2-300x161.jpg" alt="Twittlcd 2" title="Twittlcd 2" width="300" height="161" class="alignleft size-medium wp-image-170" /></a></p>
<div style="clear:both;"></div>
<p>Source code:<br />
<a href="http://h00s.net/twittlcd.tar.gz">twittlcd.tar.gz</a><br />
<a href="http://h00s.net/twittlcd.zip">twittlcd.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/uncategorized/displaying-tweets-on-lcd/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using PS3 BD Remote with Ubuntu Linux - Part 2</title>
		<link>http://h00s.net/site/python/using-ps3-bd-remote-with-ubuntu-linux-part-2/</link>
		<comments>http://h00s.net/site/python/using-ps3-bd-remote-with-ubuntu-linux-part-2/#comments</comments>
		<pubDate>Fri, 29 May 2009 15:26:43 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[PS3]]></category>

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

		<guid isPermaLink="false">http://h00s.net/site/?p=113</guid>
		<description><![CDATA[Here it is. Part 2 of using PS3 remote with Ubuntu. In this part I will finally show you how to do something useful with remote. So, here is what we want to control with remote:

multimedia keys: previos/next song, up/down volume
cycle thru opened windows with alt-tab
open/close applications (music player, tv application, &#8230;)
whatever else you want [...]]]></description>
			<content:encoded><![CDATA[<p>Here it is. Part 2 of using PS3 remote with Ubuntu. In this part I will finally show you how to do something useful with remote. So, here is what we want to control with remote:
<ul>
<li>multimedia keys: previos/next song, up/down volume</li>
<li>cycle thru opened windows with alt-tab</li>
<li>open/close applications (music player, tv application, &#8230;)</li>
<li>whatever else you want and is controllable with keyboard or from script</li>
</ul>
<p>Let&#8217;s get to work. I assume you have done all the &#8220;work&#8221; from part 1. If not, do it <a href="http://h00s.net/site/ubuntu/using-ps3-bd-remote-with-ubuntu-linux/">now</a>. Next, we need library to emulate keyboard keypresses:</p>
<pre name="code" class="html">

sudo apt-get install python-virtkey
</pre>
<p>I wrote a small wrapper around python-virtkey for easier using. Download it from <a href="http://github.com/h00s/ps3bdremote/tree/master">github</a>. Also, download all other scripts from there because we gonna need them in couple of minutes.</p>
<p><strong>Using VirtualKey:</strong><br />
You&#8217;ll be using three methods from VirtualKey: press_key, hold_key, release_key, toggle_key. Hold_key is method for pressing some key and holding it pressed. Release_key is for releasing pressed key. Press_key is like you pressed some key and immediately after that released it. Small examples:</p>
<pre name="code" class="python">

from virtualkey import VirtualKey
keys = VirtualKey()
# pressing &quot;a&quot; button
keys.press_key(&quot;a&quot;)
# pressing ctrl-c (holding control while pressing &quot;c&quot;)
keys.press_key([&quot;ctrl_left&quot;, &quot;c&quot;])
# holding alt and pressing tab
keys.toggle_key(&quot;alt_left&quot;)
keys.press_key(&quot;tab&quot;);
keys.press_key(&quot;tab&quot;);
keys.toggle_key(&quot;alt_left&quot;)
</pre>
<p>You can try example script (also from <a href="http://github.com/h00s/ps3bdremote/tree/master">ps3bdremote github</a>) which demonstrate how to use VirtualKey:</p>
<pre name="code" class="python">

python virtualkey-test.py
</pre>
<p><strong>Using remote:</strong><br />
<a href="http://h00s.net/site/wp-content/uploads/2009/05/ps3bdremote.jpg" rel="thumbnail"><img src="http://h00s.net/site/wp-content/uploads/2009/05/ps3bdremote-thumb.jpg" alt="ps3bdremote-thumb" title="ps3bdremote-thumb" width="160" height="144" class="alignleft size-full wp-image-134" /></a>Finally, let&#8217;s map keys to remote so we can use it. On the left picture (click to zoom it) you can see how I mapped keys. You can, of course, change it as you like.</p>
<p>Enough talking, let&#8217;s test it!</p>
<pre name="code" class="html">

python ps3-remote.py
</pre>
<p>You can add additional &#8220;actions&#8221;:</p>
<pre name="code" class="html">

elif command == &quot;stop&quot;:
   keys.press_key(&quot;xf86audiostop&quot;)
</pre>
<p>All key definitions are in virtualkey.py file.</p>
<p><strong>Known issues:</strong></p>
<ul>
<li>pairing - you still need to pair with remote before using. If you know how to solve this, please help <img src='http://h00s.net/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> and leave a comment</li>
<li>alt+tab - you&#8217;ll have to use two keys for alt+tab. First, press square as this holds alt key. After that, press triangle which simulates pressing tab key. Press square again to release pressed alt. This has to be done this way because there is no information from remote what key is released, just that <em>some</em> key is released</li>
</ul>
<p>So, this is it. Download scripts from <a href="http://github.com/h00s/ps3bdremote/tree/master">github</a> and enjoy. Again, your feedback is very appreciated. If you like or hate this script(s), leave a comment <img src='http://h00s.net/site/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> Also, If you want to help and improve scripts. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/python/using-ps3-bd-remote-with-ubuntu-linux-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using PS3 BD Remote with Ubuntu Linux</title>
		<link>http://h00s.net/site/ubuntu/using-ps3-bd-remote-with-ubuntu-linux/</link>
		<comments>http://h00s.net/site/ubuntu/using-ps3-bd-remote-with-ubuntu-linux/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 14:46:00 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[Python]]></category>

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

		<guid isPermaLink="false">http://h00s.net/site/?p=73</guid>
		<description><![CDATA[(There is now 2nd part of this post. Check it out.)
So, you want to use PS3 BD (bluetooth) remote with your computer which is running Ubuntu. Great. Here you can find all the information needed to accomplish this. All the scripts are written by me so your feedback is very appreciated. I&#8217;m using D-Link DBT-122 [...]]]></description>
			<content:encoded><![CDATA[<p><em>(There is now 2nd part of this post. <a href="http://h00s.net/site/python/using-ps3-bd-remote-with-ubuntu-linux-part-2/">Check it out.</a>)</em></p>
<p>So, you want to use PS3 BD (bluetooth) remote with your computer which is running Ubuntu. Great. Here you can find all the information needed to accomplish this. All the scripts are written by me so your feedback is very appreciated. I&#8217;m using D-Link DBT-122 Bluetooth adapter (all bluetooth adapters should work) with already mentioned PS3 BD Remote (Model CECHZR1E) on Ubuntu 8.10 (Intrepid Ibex).</p>
<p>First of all, you need to install all the required applications:
<pre name="code" class="html">

sudo apt-get install bluez-utils python-bluez
</pre>
<p>Next, we need to find out bluetooth address of remote. On remote press <strong>start+enter</strong> and on computer start hcitool for scanning bluetooth devices:
<pre name="code" class="html">
hcitool scan
</pre>
<p>You will get output similar to this:
<pre name="code" class="html">

Scanning ...
	00:82:7C:B9:14:7A	BD Remote Control
</pre>
<p>Copy address of remote as we will need it in a second. If the scanning command provide no results, you should try it several times.<br />
Next, download required scripts and extract them:
<pre name="code" class="html">

wget http://h00s.net/ps3bdremote.tar.gz
tar xvzf ps3bdremote.tar.gz
cd ps3bdremote
</pre>
<p>Now open ps3bdremote-test.py file (<em>gedit ps3bdremote-test.py</em>) and change address of remote (approx. 27th line) to match the address you did get with hcitool:</p>
<pre name="code" class="python">

remote = ps3bdremote.PS3BDRemote(&quot;00:82:7C:B9:14:7A&quot;)
</pre>
<p>That&#8217;s all configuring. Let&#8217;s test it. On remote again press start+enter and start the testing script:</p>
<pre name="code" class="html">

python ps3bdremote-test.py
</pre>
<p>Output should be similar to this:</p>
<pre name="code" class="html">

Trying to connect to PS3 BD Remote...
Trying to connect to PS3 BD Remote...
Trying to connect to PS3 BD Remote...
Connected
</pre>
<p>If you have problems connecting to remote, terminate script. Press start+enter and immediatly after that start testing script. Eventually, it will connect with remote. After that press buttons on your remote and it will display pressed keys:</p>
<pre name="code" class="html">

audio
releasedbutton
play
releasedbutton
eject
releasedbutton
</pre>
<p>That&#8217;s it. Now it would be cool if you could use these buttons to play/pause player on your computer, start tvtime etc. Well, you can. I will explain how in next post. To be continued <img src='http://h00s.net/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Scripts: <a href="http://h00s.net/ps3bdremote.tar.gz">ps3bdremote.tar.gz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/ubuntu/using-ps3-bd-remote-with-ubuntu-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>jQuery: animating table rows</title>
		<link>http://h00s.net/site/jquery/jquery-animating-table-rows/</link>
		<comments>http://h00s.net/site/jquery/jquery-animating-table-rows/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 23:04:50 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[jquery]]></category>

		<category><![CDATA[Add new tag]]></category>

		<guid isPermaLink="false">http://h00s.net/site/?p=64</guid>
		<description><![CDATA[Animating table rows (fading in/out, sliding in/out&#8230;) is easy. For example let&#8217;s use this table:


&#60;table&#62;
    &#60;tr id=&#34;row1&#34;&#62;
        &#60;td&#62;column 1&#60;/td&#62;&#60;td&#62;columnd 2&#60;/td&#62;
    &#60;/tr&#62;
&#60;/table&#62;

And javascript code:


$(&#039;#row1&#039;).fadeOut();

And it works! Well, not exactly. It works in Firefox, Safari, Chrome but not in IE (what a surprise). In [...]]]></description>
			<content:encoded><![CDATA[<p>Animating table rows (fading in/out, sliding in/out&#8230;) is easy. For example let&#8217;s use this table:</p>
<pre name="code" class="html">

&lt;table&gt;
    &lt;tr id=&quot;row1&quot;&gt;
        &lt;td&gt;column 1&lt;/td&gt;&lt;td&gt;columnd 2&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</pre>
<p>And javascript code:</p>
<pre name="code" class="javascript">

$(&#039;#row1&#039;).fadeOut();
</pre>
<p>And it works! Well, not exactly. It works in Firefox, Safari, Chrome but not in IE (what a surprise). In Internet Explorer it does not animate instead it just hide it/show it without any animation. Solution is: you have to animate not entire row but row&#8217;s columns:</p>
<pre name="code" class="javascript">

$(&#039;#row1&#039;).find(&#039;td&#039;).fadeOut();
</pre>
<p>So, if you want to animate rows or columns depending on browser you could do something like this:</p>
<pre name="code" class="javascript">

if ($.browser.msie)
{
    $(&#039;#row1&#039;).find(&#039;td&#039;).fadeOut();
}
else
{
    $(&#039;#row1&#039;).fadeOut();
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/jquery/jquery-animating-table-rows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hard lockups on Ubuntu 8.04 with NVidia</title>
		<link>http://h00s.net/site/ubuntu/hard-lockups-on-ubuntu-804-with-nvidia/</link>
		<comments>http://h00s.net/site/ubuntu/hard-lockups-on-ubuntu-804-with-nvidia/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 20:41:34 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://h00s.net/site/?p=48</guid>
		<description><![CDATA[Recently, I experienced a lot of hard lockups on my desktop computer running Ubuntu 8.04. When lock up occurred, everything just halted. I couldn&#8217;t ssh to it to restart, everything just stops. Only hard reset would help. Computer specs are: MB Gigabyte P35-DS3R, Core2Duo 2.33Ghz, 2GB RAM, NVidia 7900GS&#8230;
What was the problem? NVidia drivers. And [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I experienced a lot of hard lockups on my desktop computer running Ubuntu 8.04. When lock up occurred, everything just halted. I couldn&#8217;t ssh to it to restart, everything just stops. Only hard reset would help. Computer specs are: MB Gigabyte P35-DS3R, Core2Duo 2.33Ghz, 2GB RAM, NVidia 7900GS&#8230;</p>
<p>What was the problem? <strong>NVidia</strong> drivers. And speedstep/<strong>powernowd</strong>. When computer was in idle state, processor worked at 2.0GHz, under the load it worked at 2.33GHz. Sometimes when frequency changed, computer crashed due to NVidia drivers.</p>
<p>Here&#8217;s the solution:<br />
Disable powernowd. Quick and dirty fix is to edit:</p>
<pre name="code" class="html">
/etc/init.d/powernowd
</pre>
<p>After #! /bin/sh in new line add exit 0 so it looks like:</p>
<pre name="code" class="html">
#! /bin/sh
exit 0
# Init script for powernowd
#
### BEGIN INIT INFO
...
</pre>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/ubuntu/hard-lockups-on-ubuntu-804-with-nvidia/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Isolating users in FTP 7 using Active Directory</title>
		<link>http://h00s.net/site/windows/isolating-users-in-ftp-7-using-active-directory/</link>
		<comments>http://h00s.net/site/windows/isolating-users-in-ftp-7-using-active-directory/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 16:18:16 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://h00s.net/site/?p=47</guid>
		<description><![CDATA[This is quick guide for setting up isolated users in FTP 7 (Windows 2008) using Active Directory. Isolating users using Active Directory is very handy when you want to give FTP access to user&#8217;s documents which are redirected to server.
Back in Windows 2003 setting user&#8217;s home FTP dir was done using iisftp.vbs script. In Windows [...]]]></description>
			<content:encoded><![CDATA[<p>This is quick guide for setting up isolated users in FTP 7 (Windows 2008) using Active Directory. Isolating users using Active Directory is very handy when you want to give FTP access to user&#8217;s documents which are redirected to server.</p>
<p>Back in Windows 2003 setting user&#8217;s home FTP dir was done using iisftp.vbs script. In Windows 2008 script is not available and this is one way you can do it using FTP 7:</p>
<p><strong>1.</strong> Remove currently installed FTP 6 (Server Manager → Roles → Web Server (IIS) → Remove Role Services. Unselect FTP Publishing Service and IIS 6 Management Compatibility to remove).</p>
<p><strong>2.</strong> Download and install FTP 7 (<a href="http://is.gd/YVg">http://is.gd/YVg</a> for x86 and <a href="http://is.gd/YVi">http://is.gd/YVi</a><span id="smallink"> for x86_64 architecture). </span><span>IIS 7.0 must be installed.</span></p>
<p><strong>3.</strong> Create new FTP site:</p>
<ul>
<li>In IIS Manager, click on your server. In actions pane click on &#8220;Add FTP site&#8230;&#8221;</li>
<li>Choose name for you ftp site name. For physical path you can choose c:\inetpub\wwwroot. Chosen path actually doesn&#8217;t matter as it will be set for each user separately using AD.</li>
<li>IP address, virtual host and SSL set as desired</li>
<li>Authentication set to basic and authorization to all users</li>
</ul>
<p><strong>4.</strong> Define user&#8217;s home directory:</p>
<ul>
<li>Download and install <a href="http://is.gd/10ll">FTP User Editor for Active Directory</a></li>
<li>Using editor, select user(s) and define his FTP Root and FTP dir</li>
</ul>
<p><strong>Only</strong> users which have their FTP Root and FTP dir set will have access to FTP.</p>
<p>I think this is my first Windows related blog post without my whining and complaining <img src='http://h00s.net/site/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/windows/isolating-users-in-ftp-7-using-active-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ping.fm Ruby Class</title>
		<link>http://h00s.net/site/ruby/pingfm-ruby-class/</link>
		<comments>http://h00s.net/site/ruby/pingfm-ruby-class/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 20:25:17 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://h00s.net/site/?p=45</guid>
		<description><![CDATA[Ping.fm is simple service for updating multi social networks. Ping.fm currently supports 18 social networks and custom url. Although it&#8217;s in beta, it works great.
Updating is possible thru variety of services/tools: AOL instant messenger, GTalk, iPhone Web app&#8230; Developer API is also available and it&#8217;s subject of this blog post.
I wrote a Ping.fm Ruby Class [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:left;" title="pingfm" src="http://h00s.net/site/wp-content/uploads/2008/07/pingfm.png" alt="" width="220" height="106" />Ping.fm is simple service for updating multi social networks. Ping.fm currently supports 18 social networks and custom url. Although it&#8217;s in beta, it works great.</p>
<p>Updating is possible thru variety of services/tools: AOL instant messenger, GTalk, iPhone Web app&#8230; Developer API is also available and it&#8217;s subject of this blog post.</p>
<p>I wrote a Ping.fm Ruby Class which acts as a wrapper for Ping.fm API. Using ping.fm class is easy (you&#8217;ll need a API key as well as user app key):</p>
<pre name="code" class="ruby">

require &quot;pingfm&quot;
pingfm = Pingfm.new(&quot;abcde&quot;, &quot;12345&quot;)
# abcde is API key and 12345 user app key
puts pingfm.validate()[&quot;status&quot;]
# return OK if successful, otherwise FAIL
</pre>
<p>Posting is also easy:</p>
<pre name="code" class="ruby">

require &quot;pingfm&quot;
pingfm = Pingfm.new(&quot;abcde&quot;, &quot;12345&quot;)
pingfm.post(&quot;this is posted to all my services&quot;)
</pre>
<p>Class supports all Ping.fm API calls. All methods are well documented.<br />
You can grab Ping.fm Ruby Class here:<br />
<a href="http://h00s.net/dev/ruby/pingfm/pingfm.rb.tar.gz">pingfm.rb.tar.gz</a><br />
<a href="http://h00s.net/dev/ruby/pingfm/pingfm.rb.zip">pingfm.rb.zip</a></p>
<p>You can also get refactored version of Ping.fm Ruby Class done by Dale Campbell at <a href="http://github.com/Oshuma/pingfm/">http://github.com/Oshuma/pingfm/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/ruby/pingfm-ruby-class/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zakrpa za VMWare Workstation 6.0.3 na Ubuntu 8.04</title>
		<link>http://h00s.net/site/ubuntu/zakrpa-za-vmware-workstation-603-na-ubuntu-804/</link>
		<comments>http://h00s.net/site/ubuntu/zakrpa-za-vmware-workstation-603-na-ubuntu-804/#comments</comments>
		<pubDate>Sat, 03 May 2008 11:39:07 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://h00s.net/site/?p=44</guid>
		<description><![CDATA[Prilikom instalacije VMWare Workstationa na Ubuntuu 8.04 dolazi do greške kod kompajliranja vmmon modula i instalacija se prekida:


include/asm/bitops_32.h:9:2: error: #error only &#60;linux/bitops.h&#62; can be included directly
make[2]: *** [/tmp/vmware-config1/vmmon-only/common/cpuid.o] Error 1
make[1]: *** --_module_/tmp/vmware-config1/vmmon-only-- Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic&#039;
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only&#039;
Unable to build the vmmon module. 

Problem je što je u 2.6.24 [...]]]></description>
			<content:encoded><![CDATA[<p>Prilikom instalacije VMWare Workstationa na Ubuntuu 8.04 dolazi do greške kod kompajliranja vmmon modula i instalacija se prekida:</p>
<pre name="code" class="html">

include/asm/bitops_32.h:9:2: error: #error only &lt;linux/bitops.h&gt; can be included directly
make[2]: *** [/tmp/vmware-config1/vmmon-only/common/cpuid.o] Error 1
make[1]: *** --_module_/tmp/vmware-config1/vmmon-only-- Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic&#039;
make: *** http://vmmon.ko Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only&#039;
Unable to build the vmmon module. 
</pre>
<p>Problem je što je u 2.6.24 kernelu došlo do nekih promjena i nije moguće više <em>includati</em> bitops.h iz asm direktorija već iz linux.</p>
<p>Rješenje je dakle da se prije instalacije zamjeni linija u izvornom kodu vmmon modula iz #include &#8220;asm/bitops.h&#8221; u #include &#8220;linux/bitops.h&#8221;.</p>
<p>Kako bi olakšao ovaj posao, složio sam malu zakrpu koja rješava ovaj problem a koju možete skinuti na kraju posta. Uputstvo je jednostavno:</p>
<ol>
<li>otklonite trenutnu (potrganu) instalaciju VMWare Workstationa (vmware-uninstall.pl)</li>
<li>raspakirajte vmware arhivu</li>
<li>u vmware-distrib direktorij raspakirajte zakrpu</li>
<li>pokrenite zakrpu (./vmware-patch.sh)</li>
<li>pokrenite instalaciju VMWarea (sudo ./vmware-install.pl)</li>
</ol>
<p>Zakrpa: <a href="http://h00s.net/vmware-patch.tar.gz">vmware-patch.tar.gz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/ubuntu/zakrpa-za-vmware-workstation-603-na-ubuntu-804/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shell history</title>
		<link>http://h00s.net/site/ubuntu/shell-history/</link>
		<comments>http://h00s.net/site/ubuntu/shell-history/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 09:18:36 +0000</pubDate>
		<dc:creator>h00s</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

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

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

		<guid isPermaLink="false">http://h00s.net/site/?p=43</guid>
		<description><![CDATA[Na Planet Ubuntuu se pojavio trend postavljanja vlastitih shell historya odnosno popis najčešće korištenih naredbi. Nema razloga zašto se ja ne bih priključio tom trendu  


$ history&#124;awk &#039;{a[$2]++ } END{for(i in a)\
{print a[i] &#34; &#34; i}}&#039;&#124;sort -rn&#124;head
90 exit
88 cd
79 ssh
66 ls
51 bzr
22 sudo
19 vim
18 python
13 ping
6 script/server

]]></description>
			<content:encoded><![CDATA[<p>Na <a href="http://planet.ubuntu.com/">Planet Ubuntuu</a> se pojavio trend postavljanja vlastitih shell historya odnosno popis najčešće korištenih naredbi. Nema razloga zašto se ja ne bih priključio tom trendu <img src='http://h00s.net/site/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<pre name="code" class="html">

$ history|awk &#039;{a[$2]++ } END{for(i in a)\
{print a[i] &quot; &quot; i}}&#039;|sort -rn|head
90 exit
88 cd
79 ssh
66 ls
51 bzr
22 sudo
19 vim
18 python
13 ping
6 script/server
</pre>
]]></content:encoded>
			<wfw:commentRss>http://h00s.net/site/ubuntu/shell-history/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
