<?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>cmikavac.net &#187; tips &amp; tricks</title>
	<atom:link href="http://cmikavac.net/category/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://cmikavac.net</link>
	<description>pootzkos brlog</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:13:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to add a YouTube channel feed to Google Reader?</title>
		<link>http://cmikavac.net/2012/01/14/how-to-add-a-youtube-channel-feed-to-google-reader/</link>
		<comments>http://cmikavac.net/2012/01/14/how-to-add-a-youtube-channel-feed-to-google-reader/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 10:01:06 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[google reader]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=1394</guid>
		<description><![CDATA[Before they rehauled Google Reader for G+ you could import a YouTube channel feeds into your Google Reader just by copying and pasting channels link into Google Reader, no problem. A link that looks like this used to work: http://www.youtube.com/user/CHANNEL_NAME But, now it doesn&#8217;t work any more (I wonder why they broke it and why [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1395" title="rss" src="http://cmikavac.net/wp-content/uploads/rss.png" alt="rss" width="230" height="230" /></p>
<p>Before they rehauled Google Reader for G+ you could import a YouTube channel feeds into your Google Reader just by copying and pasting channels link into Google Reader, no problem. A link that looks like this used to work:</p>
<blockquote><p>http://www.youtube.com/user/CHANNEL_NAME</p></blockquote>
<p>But, now it doesn&#8217;t work any more (I wonder why they broke it and why isn&#8217;t it fixed?).. Fortunately I was left with some of the older YT feeds that still worked so I looked at how their links look now. What you can now do to import channels into Google Reader is to use this link form:</p>
<blockquote><p>http://gdata.youtube.com/feeds/base/users/CHANNEL_NAME/uploads?alt=rss&amp;v=2&amp;orderby=published&amp;amp</p></blockquote>
<p>Make sure to replace CHANNEL_NAME with your desired channel name and there you have it.</p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2012/01/14/how-to-add-a-youtube-channel-feed-to-google-reader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Making sound files for REminiscence (Flashback) work</title>
		<link>http://cmikavac.net/2011/09/25/making-sound-files-for-reminiscence-flashback-work/</link>
		<comments>http://cmikavac.net/2011/09/25/making-sound-files-for-reminiscence-flashback-work/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 11:24:48 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[amiga]]></category>
		<category><![CDATA[flashback]]></category>
		<category><![CDATA[reminiscence]]></category>
		<category><![CDATA[retro]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=1043</guid>
		<description><![CDATA[As REminiscence README indicates (&#8220;To hear background music during polygonal cutscenes with the PC version, you&#8217;ll need to copy the .mod files of the Amiga version&#8221;), you will have to copy Flashback sound files into the DATA directory within your REminiscence directory. They can be obtained here. After you have downloaded and extracted the files, you [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1044" title="flashback" src="http://cmikavac.net/wp-content/uploads/flashback.png" alt="" width="320" height="256" /></p>
<p>As <a title="reminiscence" href="http://cyxdown.free.fr/reminiscence/">REminiscence</a> README indicates (<em>&#8220;To hear background music during polygonal cutscenes with the PC version, you&#8217;ll need to copy the .mod files of the Amiga version&#8221;</em>), you will have to copy Flashback sound files into the DATA directory within your REminiscence directory. They can be obtained <a title="sound files" href="http://wiibrew.org/wiki/REminiscence">here</a>. After you have downloaded and extracted the files, you will rename them as follows:</p>
<blockquote>
<pre>ascenseur -----&gt; mod.flashback-ascenseur
ceinture ------&gt; mod.flashback-ceinturea
chute ---------&gt; mod.flashback-chute
debut ---------&gt; mod.flashback-jungle
desinteg ------&gt; mod.flashback-desintegr
donneobj ------&gt; mod.flashback-donneobjt
fin -----------&gt; mod.flashback-fin
game_over -----&gt; mod.flashback-game_over
holocube ------&gt; mod.flashback-holocube
intro ---------&gt; mod.flashback-introb
journal -------&gt; mod.flashback-options1
level4 --------&gt; mod.flashback-teleporta
logo ----------&gt; mod.flashback-logo
memoire -------&gt; mod.flashback-memoire
missions ------&gt; mod.flashback-missionca
missions2 -----&gt; mod.flashback-fin2
options -------&gt; mod.flashback-options2
planetexplo ---&gt; mod.flashback-teleport2
reunion -------&gt; mod.flashback-reunion
taxi ----------&gt; mod.flashback-taxi
voyage --------&gt; mod.flashback-voyage</pre>
</blockquote>
<p>If you did everything properly, you should hear this beautiful music after you launch REminiscence (and all the other music clips throughout the game of course).. Voila!</p>
<p><iframe src="http://www.youtube.com/embed/f0nieImnM5U" frameborder="0" width="400" height="233"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2011/09/25/making-sound-files-for-reminiscence-flashback-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing multiple elements from a list in Python</title>
		<link>http://cmikavac.net/2011/07/07/filtering-and-removing-multiple-elements-from-a-list-in-python/</link>
		<comments>http://cmikavac.net/2011/07/07/filtering-and-removing-multiple-elements-from-a-list-in-python/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 16:42:44 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[removal]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=841</guid>
		<description><![CDATA[Let&#8217;s say you need to filter a Python list and remove all elements that match a given criteria. If you wanted to remove a single element, you could just use &#8216;del list[i]&#8216; (example). But if you wanted to remove multiple elements this might be a problem since you would be modifying and iterating over the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-962" title="python" src="http://cmikavac.net/wp-content/uploads/python.png" alt="" width="300" height="101" /><br />
Let&#8217;s say you need to filter a Python list and remove all elements that match a given criteria. If you wanted to remove a single element, you could just use &#8216;del list[i]&#8216; (<a title="del statement" href="http://docs.python.org/py3k/tutorial/datastructures.html#the-del-statement">example</a>). But if you wanted to remove multiple elements this might be a problem since you would be modifying and iterating over the list at the same time (keeping track of list indexes can become very confusing, very fast).</p>
<p>A simple solution to this problem would be to keep record of all list elements (indexes) that need to be removed, and to remove tham afterwards. Also, one other thing to be wary about is that the removal process should be done in reverse because otherwise you would shift all the elements to the &#8216;left&#8217; every time you removed an element from a list and you would (again) have to keep track of list indexes.</p>
<p>A simple function example:</p>
<div class="codecolorer-container python dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:537px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">matchingFilter <span style="color: #66cc66;">=</span> <span style="color: black;">&#91;</span><span style="color: #483d8b;">'criteria1'</span><span style="color: #66cc66;">,</span> <span style="color: #483d8b;">'criteria2'</span><span style="color: black;">&#93;</span><br />
<br />
<span style="color: #ff7700;font-weight:bold;">def</span> criteriaFiltering<span style="color: black;">&#40;</span>aList<span style="color: #66cc66;">,</span> matchingFilter<span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp;deletionIndexes <span style="color: #66cc66;">=</span> <span style="color: black;">&#91;</span><span style="color: black;">&#93;</span><br />
&nbsp; &nbsp;i <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">0</span><br />
<br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">for</span> listLine <span style="color: #ff7700;font-weight:bold;">in</span> aList:<br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">for</span> match <span style="color: #ff7700;font-weight:bold;">in</span> matchingFilter:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">if</span> match <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #008000;">str</span><span style="color: black;">&#40;</span>listLine<span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">continue</span> &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">else</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deletionIndexes.<span style="color: black;">append</span><span style="color: black;">&#40;</span>i<span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">break</span> <br />
&nbsp; &nbsp; &nbsp; i +<span style="color: #66cc66;">=</span> <span style="color: #ff4500;">1</span><br />
<br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">for</span> number <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #008000;">reversed</span><span style="color: black;">&#40;</span>deletionIndexes<span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">del</span> listLines<span style="color: black;">&#91;</span>number<span style="color: black;">&#93;</span><br />
<br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">return</span> aList</div></td></tr></tbody></table></div>
<p>This might not be the fastest &#8216;algorithm&#8217; to do the job, but it works well enough for me..</p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2011/07/07/filtering-and-removing-multiple-elements-from-a-list-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove &#8216;lastsaid&#8217; history and chat logs from Pidgin</title>
		<link>http://cmikavac.net/2011/03/04/how-to-remove-lastsaid-history-and-chat-logs-from-pidgin/</link>
		<comments>http://cmikavac.net/2011/03/04/how-to-remove-lastsaid-history-and-chat-logs-from-pidgin/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 14:56:20 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[removal]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=801</guid>
		<description><![CDATA[Turning on History plugin in Pidgin will insert the last conversation into your current conversation. All this lastsaid entries can be found somewhere inside of blist.xml file which is located in your Pidgin conf directory (/home/username/.purple directory in GNU/Linux (not sure about where it is in MS Windows though)). This is convinient if you want [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-965" title="pidgin" src="http://cmikavac.net/wp-content/uploads/pidgin-e1315769003436.png" alt="" width="195" height="90" /></p>
<p>Turning on <em>History plugin</em> in Pidgin will insert the last conversation into your current conversation. All this <em>lastsaid</em> entries can be found somewhere inside of blist.xml file which is located in your Pidgin conf directory (/home/username/.purple directory in GNU/Linux (not sure about where it is in MS Windows though)).</p>
<p>This is convinient if you want to view what was written before you accidentialy closed the chat window or if you forgot what were you last talking about with someone and if you want that information quickly. But, it is not convinient at all if you want to wipe it along with chat logs since <em>lastsaid</em> entries are at a different location and are not the only entries that can be found in blist.xml so you can&#8217;t just remove that file either. If you use a couple of protocols and have more than just a few buddies, removing lastsaid lines from blist.xml manually would probably prove to be pain in the ass.</p>
<p>So, what every curious programmer does in case he doesn&#8217;t have a feature he wants/needs? &#8211; He just makes it. :D Since I started playing with Python, I decided to create a small py3k script I could use every once in a while to completely wipe both <em>lastsaid</em> history and chat logs from Pidgin.</p>
<p>What you need to do to make this script work is &#8211; you need to put it into your Pidgin conf directory (just put it into a file called something.py) and after that just run the script (you need to have <a title="python" href="http://www.python.org/">python</a> installed on your machine to run this script).</p>
<div class="codecolorer-container python dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:537px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">#! /usr/bin/env python3</span><br />
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">xml</span>.<span style="color: black;">etree</span>.<span style="color: black;">ElementTree</span> <span style="color: #ff7700;font-weight:bold;">as</span> etree<br />
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">shutil</span><br />
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span><br />
<br />
<span style="color: #808080; font-style: italic;"># deletes 'lastsaid' blist.xml entries</span><br />
<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">exists</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;blist.xml&quot;</span><span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp;tree <span style="color: #66cc66;">=</span> etree.<span style="color: black;">parse</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;blist.xml&quot;</span><span style="color: black;">&#41;</span><br />
<br />
&nbsp; &nbsp;buddies <span style="color: #66cc66;">=</span> tree.<span style="color: black;">findall</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;.//buddy&quot;</span><span style="color: black;">&#41;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">for</span> buddy <span style="color: #ff7700;font-weight:bold;">in</span> buddies:<br />
&nbsp; &nbsp; &nbsp; nodes <span style="color: #66cc66;">=</span> buddy.<span style="color: black;">findall</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;setting&quot;</span><span style="color: black;">&#41;</span> &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">for</span> node <span style="color: #ff7700;font-weight:bold;">in</span> nodes:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">if</span> node.<span style="color: black;">attrib</span> <span style="color: #66cc66;">==</span> <span style="color: black;">&#123;</span><span style="color: #483d8b;">&quot;type&quot;</span>: <span style="color: #483d8b;">&quot;string&quot;</span><span style="color: #66cc66;">,</span><span style="color: #483d8b;">&quot;name&quot;</span>: <span style="color: #483d8b;">&quot;lastsaid&quot;</span><span style="color: black;">&#125;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buddy.<span style="color: black;">remove</span><span style="color: black;">&#40;</span>node<span style="color: black;">&#41;</span><br />
<br />
tree.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;blist.xml&quot;</span><span style="color: black;">&#41;</span><br />
<br />
<br />
<span style="color: #808080; font-style: italic;"># deletes chat log files if they exist</span><br />
<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">exists</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;logs&quot;</span><span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp;<span style="color: #dc143c;">shutil</span>.<span style="color: black;">rmtree</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;logs&quot;</span><span style="color: black;">&#41;</span></div></td></tr></tbody></table></div>
<p>I hope this helps. Also, if you have any questions/problems with the script, feel free to drop a comment..</p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2011/03/04/how-to-remove-lastsaid-history-and-chat-logs-from-pidgin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN over SSH in kdesvn</title>
		<link>http://cmikavac.net/2010/12/18/svn-over-ssh-in-kdesvn/</link>
		<comments>http://cmikavac.net/2010/12/18/svn-over-ssh-in-kdesvn/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 21:55:15 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[kdesvn]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=755</guid>
		<description><![CDATA[This one might just spare you about 2-3 hours of your time doing SVN+SSH kdesvn googling. One would think it would work out-of-the-box, but it doesn&#8217;t. To get kdesvn to work with SSH, there is one small undocumented trick &#8211; using an environment variable (as if you were using command line SVN+SSH). To do that, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-759" title="kdesvn" src="http://cmikavac.net/wp-content/uploads/kdesvn.png" alt="" width="350" height="253" /><br class="spacer_" /></p>
<p>This one might just spare you about 2-3 hours of your time doing SVN+SSH kdesvn googling. One would think it would work out-of-the-box, but it doesn&#8217;t. To get kdesvn to work with SSH, there is one small undocumented trick &#8211; using an environment variable (as if you were using command line SVN+SSH). To do that, put the following line into your .bashrc:</p>
<p><div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:537px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SVN_SSH</span>=<span style="color: #ff0000;">&quot;ssh -l &lt;your_remote_ssh_username&gt;&quot;</span></div></td></tr></tbody></table></div>
</p>
<p>If you try using SVN+SSH without it, kdesvn will try to login to remote server using your current username (the one you are using on your local machine). Of course, each time unsuccessfully because it&#8217;s not the right username. After that, go to <strong><em>Subversion-&gt;General-&gt;Checkout a repository</em></strong>, and enter:</p>
<p><div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:537px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">svn</span>+ssh:<span style="color: #000000; font-weight: bold;">//</span>path_to_your_svn_repository</div></td></tr></tbody></table></div>
</p>
<p>&#8230;in the URL field. Also, choose the target directory and check any other desired options. After that, just bookmark the connection and you&#8217;re all set up.</p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2010/12/18/svn-over-ssh-in-kdesvn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GEdit FTP browsing / editing under KDE (using GNOME bookmarks without Nautilus)</title>
		<link>http://cmikavac.net/2010/12/18/gedit-ftp-browsing-editing-using-gnome-bookmarks-under-kde-without-nautilus/</link>
		<comments>http://cmikavac.net/2010/12/18/gedit-ftp-browsing-editing-using-gnome-bookmarks-under-kde-without-nautilus/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 18:38:24 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=677</guid>
		<description><![CDATA[Problem with using GEdit (v2.30.4 in the moment of writing this post) for FTP browsing/editing under KDE (if you don&#8217;t have Nautilus installed in your KDE) is that since it is a GNOME app &#8211; you need a way to somehow manage your connections which is usualy done through Nautilus by using GNOME bookmarks (the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-705" title="gedit" src="http://cmikavac.net/wp-content/uploads/gedit.png" alt="" width="250" height="189" /></p>
<p>Problem with using GEdit (v2.30.4 in the moment of writing this post) for FTP browsing/editing under KDE (if you don&#8217;t have Nautilus installed in your KDE) is that since it is a GNOME app &#8211; you need a way to somehow manage your connections which is usualy done through Nautilus by using GNOME bookmarks (the ones you would create by going to <strong><em>Places -> Connect to Server</em></strong>) and at the moment there is no way to create this bookmarks from within GEdit.</p>
<p>Anyway, you can do the same thing by editing .gtk-bookmarks file located in your home folder even if you don&#8217;t have Nautilus installed. Here&#8217;s a few examples of what you can put inside:</p>
<p><div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:537px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ftp://username@domain/ bookmark_name<br />
ftp://username@domain/:3322 bookmark_name<br />
ftp://username%40domain@domain/ bookmark_name<br />
ftp://username@domain/folder_path_option/ bookmark_name<br />
sftp://username@domain/ bookmark_name</div></td></tr></tbody></table></div>
</p>
<p>The first one is just a regular FTP login bookmark. The second one uses a different port than the default one. The third one is for usernames containing @ (like in the image below) which you have to replace with %40 to differentiate them from @ for domain association. The fourth one uses the folder_path_option like in picture below and the fifth one is for using sFTP. Of course, you can combine all this together depending on your needs&#8230; </p>
<p><img class="alignnone size-medium wp-image-714" title="nautilus_bookmark" src="http://cmikavac.net/wp-content/uploads/nautilus_bookmark.jpg" alt="" width="300" height="274" /></p>
<p> Browsing/editing directly from GEdit is much faster than using Filezilla which prompts for uploading every time after you edit and save the file which is kinda annoying, or for example using Krusader which works well with FTP, but if you use sFTP &#8211; then it edits files localy instead of online so you have to save them as a new file and upload them again&#8230; You get the drift. </p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2010/12/18/gedit-ftp-browsing-editing-using-gnome-bookmarks-under-kde-without-nautilus/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; Kako u WordPressu blokirati IE6?</title>
		<link>http://cmikavac.net/2010/12/09/wordpress-kako-u-wordpressu-blokirati-ie6/</link>
		<comments>http://cmikavac.net/2010/12/09/wordpress-kako-u-wordpressu-blokirati-ie6/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 08:37:32 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[blokiranje]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=1144</guid>
		<description><![CDATA[Microsoft Internet Explorer 6 već dugo vremena zadaje glavobolje web developerima &#8211; traži posebne setove pravila kako bi se elementi u njemu pravilno prikazali, ne podržava brojne moderne tehnologije web izrade, nedostaju mu brojna sigurnosna svojstva koja se u današnjem svijetu smatraju standardom&#8230; Srećom, postoje načini da se korisnike ovog zastarjelog browsera probudi iz zimskog [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-1146" title="stopie6" src="http://cmikavac.net/wp-content/uploads/stopie6-300x225.png" alt="" width="300" height="225" /></p>
<p>Microsoft Internet Explorer 6 već dugo vremena zadaje glavobolje web developerima &#8211; traži posebne setove pravila kako bi se elementi u njemu pravilno prikazali, ne podržava brojne moderne tehnologije web izrade, nedostaju mu brojna sigurnosna svojstva koja se u današnjem svijetu smatraju standardom&#8230;</p>
<p>Srećom, postoje načini da se korisnike ovog zastarjelog browsera probudi iz zimskog sna i ukaže im se na to da postoji i nešto novije, ugodnije, bolje. Naravno, netko će se javiti i reći da se u korporativnim okruženjima još uvijek može naći IE6. Osobno kažem &#8211; pa šta, vrijeme je da se to promjeni, koliko je još potrebno čekati? Naravno, stvar je izbora, ali ne mislite li da bi tehnologiju umjesto pasivnog čekanja trebalo gurati naprijed, odbacujući ono što ne valja? Živio Darwinizam!</p>
<p>Nedavno sam gledao kakva rješenja za problem zvan IE6 nude WordPress plugin-ovi, a zahtjevi koje sam imao bili su zapravo vrlo jednostavni. Nisam želio JavaScript koji će se polutransparentno učitati preko postojeće stranice omogućujući da se ispod njega nazire što se na stranici nalazi i da ga se može lako zaobići. Želio sam redirect na posebnu podstranicu koja će korisnika upozoriti na to da koristi zastarjeli softver. Također, želio sam da ta podstranica korisniku izbaci ikone sa prijedlozima za download nekolicine najnovijih i najpopularnijih browsera.</p>
<p>Nakon par isprobanih pluginova, zaključio sam kako <a title="stop ie6" href="http://wordpress.org/extend/plugins/stop-ie6/">Stop IE6</a> zadovoljava moje zahtjeve te kako uz to ima i zgodan dizajn. Osim toga, još mi je jedna sitnica upala u oko &#8211; Stop IE6 je stvorio domaći developer <a title="Alen Cvitković" href="http://www.alencvitkovic.com/">Alen Cvitković</a> kojemu se (ukoliko ovo čita (ili ne)) ujedno želim i zahvaliti na pisanju dotičnog plugina.</p>
<p>Pridružite se i vi i gurnite web i uspavane korisnike korak naprijed za &#8216;opće dobro&#8217;. ;)</p>
<p><em>Ovaj post je bio napisan za <a title="wpskola" href="http://www.wpskola.com">WordPress Školu</a> koja je ugašena.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2010/12/09/wordpress-kako-u-wordpressu-blokirati-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; Uvjetna CAPTCHA</title>
		<link>http://cmikavac.net/2010/11/20/wordpress-uvjetna-captcha/</link>
		<comments>http://cmikavac.net/2010/11/20/wordpress-uvjetna-captcha/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 08:33:05 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[komentari]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=1136</guid>
		<description><![CDATA[Prvi korak u obrani od spama kod wordpressa svakako je instalacija Akismeta, no što kada Akismet zakaže i valjane komentare označi kao spam? Ručno provjeravati stotine spam komentara u potrazi za nekoliko ispravnih? Pa i ne baš&#8230; samim time gubi se smisao spam filtera, hm? Upoznajte - Conditional CAPTCHA plugin. Conditional CAPTCHA može se koristiti kao komplement Akismetu [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1137" title="captcha" src="http://cmikavac.net/wp-content/uploads/captcha.jpg" alt="" width="300" height="170" /></p>
<p>Prvi korak u obrani od spama kod wordpressa svakako je instalacija Akismeta, no što kada Akismet zakaže i valjane komentare označi kao spam? Ručno provjeravati stotine spam komentara u potrazi za nekoliko ispravnih? Pa i ne baš&#8230; samim time gubi se smisao spam filtera, hm? Upoznajte - <a title="conditional CAPTCHA" href="http://wordpress.org/extend/plugins/wp-conditional-captcha/">Conditional CAPTCHA</a> plugin.</p>
<p>Conditional CAPTCHA može se koristiti kao komplement Akismetu koji će ukoliko Akismet određeni komentar označi kao spam izbaciti CAPTCHA-u te na taj način izvršiti dodatnu provjeru radi li se stvarnoj osobi ili spamu. Ukoliko &#8216;komentator&#8217; ne prođe CAPTCHA provjeru, komentar se automatski odbacuje ili šalje u trash spremnik. U slučaju uspješnog prolaska provjere komentar se ili automatski odobrava ili odlazi u spam spremnik gdje čeka da ga provjerite. Naravno, obični korisnici neće niti primjetiti da postoji CAPTCHA ukoliko ne ostave previše sumnjiv komentar, jer ih u slučaju normalnog sadržaja Akismet neće niti označiti kao spam te se samim time neće aktivirati niti CAPTCHA provjera. Prednost ovog pristupa nad isključivim korištenjem Akismeta je u tome da u spam spremniku više nećete imati stotine komentara kroz koje treba proći i provjeriti ih za &#8216;false positives&#8217; već eventualno tek nekoliko komada. Uz to, Conditional CAPTCHA plugin dozvoljava korištenje obične CAPTCHA-e ili <a title="reCAPTCHA" href="http://www.google.com/recaptcha">reCAPTCHA</a>-e koju je moguće dodatno stilizirati putem CSS-a.</p>
<p>Sretno komentiranje i pazite što pišete&#8230; ;)</p>
<p><em>Ovaj post je bio napisan za <a title="wpskola" href="http://www.wpskola.com">WordPress Školu</a> koja je ugašena.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2010/11/20/wordpress-uvjetna-captcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sony Playstation gamepad as remote controller on Linux?</title>
		<link>http://cmikavac.net/2010/10/07/sony-playstation-gamepad-as-remote-controller-on-linux/</link>
		<comments>http://cmikavac.net/2010/10/07/sony-playstation-gamepad-as-remote-controller-on-linux/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 13:26:22 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[gamepad]]></category>
		<category><![CDATA[jostick]]></category>
		<category><![CDATA[joypad]]></category>
		<category><![CDATA[playstation]]></category>
		<category><![CDATA[qjoypad]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=550</guid>
		<description><![CDATA[You have an old PS gamepad somewhere in your closet collecting dust and you would like to use it as a remote controller on your Linux box? Is it possible? Yes. The first thing you&#8217;ll ned is one of these PS-to-USB adapters: They&#8217;re quite cheap, and you can probably find one in your local electronics [...]]]></description>
			<content:encoded><![CDATA[<p>You have an old PS gamepad somewhere in your closet collecting dust and you would like to use it as a remote controller on your Linux box? Is it possible? Yes. The first thing you&#8217;ll ned is one of these PS-to-USB adapters:</p>
<p><img class="alignnone size-full wp-image-552" title="ps_to_usb" src="http://cmikavac.net/wp-content/uploads/ps_to_usb.jpg" alt="" width="246" height="186" /></p>
<p>They&#8217;re quite cheap, and you can probably find one in your local electronics supply store for the price of about 5-8€. You could also get one for a <a title="pstousb" href="http://shop.ebay.com/?_from=R40&amp;_trksid=p3907.m570.l1313&amp;_nkw=playstation+to+usb&amp;_sacat=See-All-Categories">very small price</a> on eBay&#8230; After acquiring one, the question is &#8211; which application to use with PS gamepad? I found <a title="qjoypad" href="http://qjoypad.sourceforge.net/">QJoyPad</a> to work pretty well &#8211; it&#8217;s easy to configure and it will automaticaly recognize your gamepad, so that&#8217;s one less thing for you to worry about. Just get it from your distros repositories (or if you&#8217;re out of luck &#8211; get the <a title="qjoypad source" href="http://qjoypad.sourceforge.net/#download">source code</a> and compile it by yourself).</p>
<p>I configured it for some basic desktop maneuvering. For example so that I could command VLC from my bed not having to get up each time to turn the volume up or down, or if I want to rewind a part of a video, put some music on, read email&#8230; This is how I configured the buttons, perhaps it will help:</p>
<p><img class="alignnone size-full wp-image-557" title="qjoypad" src="http://cmikavac.net/wp-content/uploads/qjoypad.jpg" alt="" width="376" height="334" /></p>
<p>Holding &#8220;shift&#8221; or &#8220;ctrl&#8221; buttons + &#8220;left&#8221; or &#8220;right&#8221; keyes is for rewinding videos, L2 and R2 buttons are for volume&#8230; You can even set zooming in your Compiz to work with ctrl+alt+left/right &#8211; so you could zoom in read all this tiny letters from a distance (for example if you want to choose a song in your favorite audio player or whatever). You also get &#8220;space&#8221; for pausing multimedia&#8230;</p>
<p>I also wanted to use analog stick instead of a mouse, but it was just too fast and too responsive in the beginning. But, what you can do is you can also set its sensitivity and treshold up to suit your needs. You&#8217;ll need some time to get used to clicking around with analog but it gets easier after aiming at everyones forheads during a few movies. :D</p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2010/10/07/sony-playstation-gamepad-as-remote-controller-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YouTube Repeat Bookmarklet</title>
		<link>http://cmikavac.net/2010/10/03/youtube-repeat-bookmarklet/</link>
		<comments>http://cmikavac.net/2010/10/03/youtube-repeat-bookmarklet/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 23:21:26 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[repeat]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=507</guid>
		<description><![CDATA[Need a YouTube repeat button? Well, YouTube still doesn&#8217;t provide us with one&#8230; but you can use this simple javascript bookmarklet I made which will redirect you from any YouTube video to YouTube repeat service in a very quick and simple way &#8211; no more manual &#8216;repeat&#8217; URL insertions&#8230; Just drag this link onto your [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-519" title="ytrpt" src="http://cmikavac.net/wp-content/uploads/ytrpt.gif" alt="" width="251" height="149" /></p>
<p>Need a YouTube repeat button?</p>
<p>Well, YouTube <strong>still</strong> doesn&#8217;t provide us with one&#8230; but you can use this simple javascript bookmarklet I made which will redirect you from any YouTube video to <a title="youtube repeat" href="http://youtuberepeat.com/">YouTube repeat</a> service in a very quick and simple way &#8211; no more manual &#8216;repeat&#8217; URL insertions&#8230; Just drag this link onto your bookmark toolbar and click on it whenever you&#8217;re viewing a video you want to put on repeat. Rejoice!</p>
<p style="text-align: center;"><span style="font-size: xx-large;"><span style="font-size: large;">drag &gt;&gt;</span><strong> </strong></span><strong><span style="font-size: xx-large;"><a href="javascript:%20var%20yturl%20=%20document.URL;%20document.location%20=%20yturl.replace(&quot;youtube&quot;,&quot;youtuberepeat&quot;);">♺</a></span></strong><span style="font-size: xx-large;"><strong> </strong><span style="font-size: large;">&lt;&lt; this</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2010/10/03/youtube-repeat-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

