<?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</title>
	<atom:link href="http://cmikavac.net/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>Swarm Intelligence in HTML5 Canvas</title>
		<link>http://cmikavac.net/2011/10/22/swarm-intelligence-in-html5-canvas/</link>
		<comments>http://cmikavac.net/2011/10/22/swarm-intelligence-in-html5-canvas/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 09:26:50 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[intelligence]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[swarm]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=1159</guid>
		<description><![CDATA[Swarm Intelligence - I wanted to visualize different ways of particles following each other for some time now but have never really gotten to the point of doing it until one day, I was browsing through lots of amazing things people have made using HTML5 Canvas. One of these things was Daniel Puhes Liquid Particles canvas thingy [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-1160" title="swarm" src="http://cmikavac.net/wp-content/uploads/swarm-300x184.jpg" alt="" width="300" height="184" /></p>
<p><a title="swarm intelligence" href="http://swarm.cmikavac.net/">Swarm Intelligence</a> - I wanted to visualize different ways of particles following each other for some time now but have never really gotten to the point of doing it until one day, I was browsing through lots of amazing things people have made using HTML5 Canvas. One of these things was Daniel Puhes <a title="liquid particles" href="http://www.spielzeugz.de/html5/liquid-particles.html">Liquid Particles</a> canvas thingy which immediately reminded me of my idea and I thought &#8211; why not try and do it using HTML5 canvas? I wanted to try canvas out a little bit anyway. So, I asked Daniel for permission to use his code as an &#8220;engine&#8221; for my idea and he was ok with that. Thanks Daniel! He also made some more pretty cool stuff so go and <a title="Daniel's lab" href="http://www.spielzeugz.de/lab/">check that out</a> if you want.</p>
<p>So I took his code, refactored it a fair bit, made it so that particles follow each other instead of following the mouse and that&#8217;s how <a title="swarm intelligence" href="http://swarm.cmikavac.net/">Swarm Intelligence</a> was born. I do know that this is not real AI but I don&#8217;t care, I just like to call it that way anyways. :)</p>
<p>At the moment there are three different algorithms that make particles follow each other:</p>
<ul>
<li><strong>swarm</strong> &#8211; each particle targets a random particle from the swarm and follows it for next 5000-10000 canvas refresh cycles. after that, it randomly finds a new one and follows it for next 5000-10000 refresh cycles and so on</li>
<li><strong>tail</strong> &#8211; each particle targets a different random particle on each canvas refresh cycle and follows it for a single refresh cycle after which it targets a new random particle and then follows than one for a single refresh cycle and so on</li>
<li><strong>lead</strong> &#8211; all particles follow the same (single) particle which moves randomly inside the canvas a bit faster than all the other particles</li>
</ul>
<p>Algorithms change randomly over time but can also be changed manually by clicking  the left mouse button somewhere inside the canvas. I also introduced some chaos into the system so it wouldn&#8217;t stabilize itself over time. For example, every now and then some particles get randomly blown away from the swarm a little bit. Also, after some time all the particles will get blown away at the same time. I plan to add two or three more following algorithms when I get the time. One of them will be following the nearest particle but I will have to come up with one bad-ass algorithm to not kill the performance. Soon I guess. Or not. :D</p>
<p>Algorithm indicator in the top left corner of the canvas introduced some performance problems. Apparently, <em><a title="canvas drawtext" href="http://simonsarris.com/blog/322-canvas-drawtext-considered-harmful">drawing text</a></em> inside canvas is very, very poorly implemented in all browsers except Chromium. The problem I had was that I would redraw a line of text inside canvas on each refresh cycle (every 70ms) which slowed it down a fair bit if you tried to run it in anything else except Chromium. Redrawing the text on each cycle wasn&#8217;t really necessary since the text stays the same most of the time so what I did was &#8211; on top of the old canvas frame I added a new one which redraws text only when the following algorithm gets changed. That turned out to be a pretty good solution.</p>
<p>Nothing more to say about this small experiment I guess.. except &#8211; enjoy it! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2011/10/22/swarm-intelligence-in-html5-canvas/feed/</wfw:commentRss>
		<slash:comments>0</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>My first open-source code contribution &#8211; spilp</title>
		<link>http://cmikavac.net/2011/09/17/my-first-open-source-code-contribution-spilp/</link>
		<comments>http://cmikavac.net/2011/09/17/my-first-open-source-code-contribution-spilp/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 09:20:16 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web.log]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[spilp]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=979</guid>
		<description><![CDATA[&#8220;Spilp is a simple Python script that takes IIS logs, parses them and creates statistical reports which can be used to discover unusual IP activity more easily.&#8221; &#8216;Been working on this one for some time now and finally everything I wanted to implement is in place. The whole thing is released under GNU GPL v3 license [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-980" title="spilp" src="http://cmikavac.net/wp-content/uploads/spilp.jpg" alt="simple python IIS log parser" width="239" height="68" /></p>
<p><em>&#8220;<strong><a title="simple python IIS log parser" href="http://code.google.com/p/spilp/">Spilp</a></strong> is a simple Python script that takes IIS logs, parses them and creates statistical reports which can be used to discover unusual IP activity more easily.&#8221;</em></p>
<p>&#8216;Been working on this one for some time now and finally everything I wanted to implement is in place. The whole thing is released under GNU GPL v3 license for everybody to enjoy. You can <strong>download</strong> the script <a title="spilp download" href="http://code.google.com/p/spilp/downloads/list">here</a>. Below is a list of spilp features with links to sample reports.</p>
<p><span class="Apple-style-span" style="font-size: 20px; font-weight: bold;">Features:</span></p>
<ul>
<li>extracts a <a href="http://cmikavac.net/download/spilp/generated_reports/hitsPerIp_110916.txt" rel="nofollow">list of IP addresses</a> with number of hits they made sorted by number of hits</li>
<li>extracts a <a href="http://cmikavac.net/download/spilp/generated_reports/closeIps_110916.txt" rel="nofollow">list of &#8220;close&#8221; IP addresses</a> that made a certain number of hits</li>
<li>extracts a <a href="http://cmikavac.net/download/spilp/generated_reports/agentHits_110916.txt" rel="nofollow">list of user agents</a> sorted by number of hits</li>
<li>extracts a <a href="http://cmikavac.net/download/spilp/generated_reports/methodHits_110916.txt" rel="nofollow">list of cs-method hits</a> (GET method excluded)</li>
<li>extracts a list of file hits sorted by number of hits</li>
<ul>
<li>.pdf, .doc, .xls, .ppt (<a href="http://cmikavac.net/download/spilp/generated_reports/documentDownloads_110916.txt" rel="nofollow">document files</a>) + <a href="http://cmikavac.net/download/spilp/generated_reports/documentDownloadsExtended_110916.txt" rel="nofollow">extended version</a></li>
<li>.js, .htm, .asp (<a href="http://cmikavac.net/download/spilp/generated_reports/webFilesHits_110916.txt" rel="nofollow">web files</a>) + <a href="http://cmikavac.net/download/spilp/generated_reports/webFilesHitsExtended_110916.txt" rel="nofollow">extended version</a></li>
</ul>
<li>extracts extended information for document and web file hits</li>
<ul>
<li>includes timestamps, client IP addresses, methods, ports, user agent details and http status codes</li>
</ul>
<li>extracts a <a href="http://cmikavac.net/download/spilp/generated_reports/hitsByStatus_110916.txt" rel="nofollow">list of &#8220;unusual&#8221; http status code hits</a> sorted by number of hits</li>
<ul>
<li>client IP address list</li>
<li>a list of files hit by an IP and number of hits for that file</li>
</ul>
<li>filtering results (include or exclude filtering &#8211; works in &#8220;either-or&#8221; way)</li>
<ul>
<li>ability to auto-generate an IP range list as a filter</li>
</ul>
<li>reverse DNS country lookup using MaxMinds<a href="http://code.google.com/p/spilp/w/edit/MaxMinds">?</a> GeoIP country downloadable database</li>
<ul>
<li>additional info in certain reports</li>
<li>filtering results by country of origin (as a separate filtering option using spilpconf.py file)</li>
</ul>
<li>ability to process large amount of IIS log files</li>
<li>CONFIG file for performance and output tweaking</li>
</ul>
<div>Rejoice!</div>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2011/09/17/my-first-open-source-code-contribution-spilp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to generate an IP range list in Python?</title>
		<link>http://cmikavac.net/2011/09/11/how-to-generate-an-ip-range-list-in-python/</link>
		<comments>http://cmikavac.net/2011/09/11/how-to-generate-an-ip-range-list-in-python/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 20:03:50 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=967</guid>
		<description><![CDATA[Here&#8217;s a short Python snippet that generates a list of IP addresses based on IP range. Nothing fancy, but could come in handy if you ever need it somewhere in your code. Enjoy! 12345678910111213141516171819202122def ipRange&#40;start_ip, end_ip&#41;: &#160; &#160;start = list&#40;map&#40;int, start_ip.split&#40;&#34;.&#34;&#41;&#41;&#41; &#160; &#160;end = list&#40;map&#40;int, end_ip.split&#40;&#34;.&#34;&#41;&#41;&#41; &#160; &#160;temp = start &#160; &#160;ip_range = &#91;&#93; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="python" src="http://cmikavac.net/wp-content/uploads/python.png" alt="" width="300" height="101" /><br />
Here&#8217;s a short Python snippet that generates a list of IP addresses based on IP range. Nothing fancy, but could come in handy if you ever need it somewhere in your code. Enjoy!</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: #ff7700;font-weight:bold;">def</span> ipRange<span style="color: black;">&#40;</span>start_ip<span style="color: #66cc66;">,</span> end_ip<span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp;start <span style="color: #66cc66;">=</span> <span style="color: #008000;">list</span><span style="color: black;">&#40;</span><span style="color: #008000;">map</span><span style="color: black;">&#40;</span><span style="color: #008000;">int</span><span style="color: #66cc66;">,</span> start_ip.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;.&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp;end <span style="color: #66cc66;">=</span> <span style="color: #008000;">list</span><span style="color: black;">&#40;</span><span style="color: #008000;">map</span><span style="color: black;">&#40;</span><span style="color: #008000;">int</span><span style="color: #66cc66;">,</span> end_ip.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;.&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp;temp <span style="color: #66cc66;">=</span> start<br />
&nbsp; &nbsp;ip_range <span style="color: #66cc66;">=</span> <span style="color: black;">&#91;</span><span style="color: black;">&#93;</span><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;ip_range.<span style="color: black;">append</span><span style="color: black;">&#40;</span>start_ip<span style="color: black;">&#41;</span><br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">while</span> temp <span style="color: #66cc66;">!=</span> end:<br />
&nbsp; &nbsp; &nbsp; start<span style="color: black;">&#91;</span><span style="color: #ff4500;">3</span><span style="color: black;">&#93;</span> +<span style="color: #66cc66;">=</span> <span style="color: #ff4500;">1</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">for</span> i <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: black;">&#40;</span><span style="color: #ff4500;">3</span><span style="color: #66cc66;">,</span> <span style="color: #ff4500;">2</span><span style="color: #66cc66;">,</span> <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">if</span> temp<span style="color: black;">&#91;</span>i<span style="color: black;">&#93;</span> <span style="color: #66cc66;">==</span> <span style="color: #ff4500;">256</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp<span style="color: black;">&#91;</span>i<span style="color: black;">&#93;</span> <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">0</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp<span style="color: black;">&#91;</span>i-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span> +<span style="color: #66cc66;">=</span> <span style="color: #ff4500;">1</span><br />
&nbsp; &nbsp; &nbsp; ip_range.<span style="color: black;">append</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;.&quot;</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span><span style="color: #008000;">map</span><span style="color: black;">&#40;</span><span style="color: #008000;">str</span><span style="color: #66cc66;">,</span> temp<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span> &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">return</span> ip_range<br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<br />
<span style="color: #808080; font-style: italic;"># sample usage </span><br />
ip_range <span style="color: #66cc66;">=</span> ipRange<span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;192.168.1.0&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #483d8b;">&quot;192.171.3.25&quot;</span><span style="color: black;">&#41;</span><br />
<span style="color: #ff7700;font-weight:bold;">for</span> ip <span style="color: #ff7700;font-weight:bold;">in</span> ip_range:<br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">print</span><span style="color: black;">&#40;</span>ip<span style="color: black;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2011/09/11/how-to-generate-an-ip-range-list-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merging multiple Nessus scans (Python script)</title>
		<link>http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/</link>
		<comments>http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 08:06:00 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[nessus]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[reports]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=865</guid>
		<description><![CDATA[If you for any reason have the need to merge / combine a few Nessus scans into a single *.nessus file, you can do so using this simple Python script. Since *.nessus files are basically just XML files with a different extension, what this script does is it finds all the *.nessus files in the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-959" title="nessus" src="http://cmikavac.net/wp-content/uploads/nessus.jpg" alt="nessus" width="160" height="155" /></p>
<p>If you for any reason have the need to merge / combine a few Nessus scans into a single *.nessus file, you can do so using this simple Python script. Since *.nessus files are basically just XML files with a different extension, what this script does is it finds all the *.nessus files in the current folder, finds all the &#8220;ReportHost&#8221; XML nodes accumulating them into a single report.nessus file which is then exported to nss_report folder.</p>
<p>Note that <strong>scans must be of the same type</strong> (same plugins must be used), but they can be from different subnets or different parts of the same subnet.</p>
<p>How to use it? &#8211; Put the script and all your *.nessus files into a same folder, run the script, import nss_report/report.nessus into Nessus &#8211; and there you have it, all the hosts are in one place..</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 />23<br />24<br />25<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.2</span><br />
<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 />
first <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">1</span><br />
<span style="color: #ff7700;font-weight:bold;">for</span> fileName <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;.&quot;</span><span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #483d8b;">&quot;.nessus&quot;</span> <span style="color: #ff7700;font-weight:bold;">in</span> fileName:<br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">print</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;:: Parsing&quot;</span><span style="color: #66cc66;">,</span> fileName<span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">if</span> first:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mainTree <span style="color: #66cc66;">=</span> etree.<span style="color: black;">parse</span><span style="color: black;">&#40;</span>fileName<span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;report <span style="color: #66cc66;">=</span> mainTree.<span style="color: black;">find</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'Report'</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;first <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">0</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">else</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tree <span style="color: #66cc66;">=</span> etree.<span style="color: black;">parse</span><span style="color: black;">&#40;</span>fileName<span style="color: black;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff7700;font-weight:bold;">for</span> element <span style="color: #ff7700;font-weight:bold;">in</span> tree.<span style="color: black;">findall</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'.//ReportHost'</span><span style="color: black;">&#41;</span>:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report.<span style="color: black;">append</span><span style="color: black;">&#40;</span>element<span style="color: black;">&#41;</span>&nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #ff7700;font-weight:bold;">print</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;:: =&gt; done.&quot;</span><span style="color: black;">&#41;</span> &nbsp; &nbsp;<br />
&nbsp; &nbsp;<br />
<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #483d8b;">&quot;nss_report&quot;</span> <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;.&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;nss_report&quot;</span><span style="color: black;">&#41;</span><br />
&nbsp; &nbsp;<br />
<span style="color: #dc143c;">os</span>.<span style="color: black;">mkdir</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;nss_report&quot;</span><span style="color: black;">&#41;</span><br />
mainTree.<span style="color: black;">write</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;nss_report/report.nessus&quot;</span><span style="color: #66cc66;">,</span> encoding<span style="color: #66cc66;">=</span><span style="color: #483d8b;">&quot;utf-8&quot;</span><span style="color: #66cc66;">,</span> xml_declaration<span style="color: #66cc66;">=</span><span style="color: #008000;">True</span><span style="color: black;">&#41;</span></div></td></tr></tbody></table></div>
<p>If you have any questions, just drop a comment bellow..</p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/feed/</wfw:commentRss>
		<slash:comments>1</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>o trzalicama</title>
		<link>http://cmikavac.net/2010/12/22/o-trzalicama/</link>
		<comments>http://cmikavac.net/2010/12/22/o-trzalicama/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 18:26:41 +0000</pubDate>
		<dc:creator>pootzko</dc:creator>
				<category><![CDATA[music]]></category>
		<category><![CDATA[web.log]]></category>
		<category><![CDATA[fffuuu]]></category>
		<category><![CDATA[trzalice]]></category>

		<guid isPermaLink="false">http://cmikavac.net/?p=730</guid>
		<description><![CDATA[(19:05:53) perovodokotlić: evo opet se dogodilo to (19:05:57) perovodokotlić: ono kad ti padne nešto na pod ispod tebe (19:05:58) perovodokotlić: i nestane (19:06:04) perovodokotlić: trzalica (19:06:06) perovodokotlić: nema je (19:06:08) pootzko: :D (19:06:10) perovodokotlić: pala mi je pod noge i nema je niiigdje (19:06:12) pootzko: trzalice pogotovo (19:06:16) pootzko: one kad padnu (19:06:24) pootzko: otvore [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff9900;"><span style="font-size: x-small;">(19:05:53) </span>perovodokotlić:</span> evo opet se dogodilo to<br />
 <span style="color: #ff9900;"><span style="font-size: x-small;">(19:05:57) </span>perovodokotlić: </span>ono kad ti padne nešto na pod ispod tebe<br />
 <span style="color: #ff9900;"><span style="font-size: x-small;">(19:05:58) </span>perovodokotlić: </span>i nestane<br />
 <span style="color: #ff9900;"><span style="font-size: x-small;">(19:06:04) </span>perovodokotlić:</span> trzalica<br />
 <span style="color: #ff9900;"><span style="font-size: x-small;">(19:06:06) </span>perovodokotlić:</span> nema je<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:06:08) </span>pootzko: </span>:D<br />
 <span style="color: #ff9900;"><span style="font-size: x-small;">(19:06:10) </span>perovodokotlić:</span> pala mi je pod noge i nema je niiigdje<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:06:12) </span>pootzko: </span>trzalice pogotovo<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:06:16) </span>pootzko: </span>one kad padnu<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:06:24) </span>pootzko:</span> otvore neki procjep u prostorno vremenskom kontinuumu<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:06:31) </span>pootzko:</span> i odu u neki paralelni svemir<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:06:34) </span>pootzko:</span> never to be found again<br />
 <span style="color: #ff9900;"><span style="font-size: x-small;">(19:06:39) </span>perovodokotlić:</span> hahaha<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:07:59) </span>pootzko:</span> i šarafi isto<br />
 <span style="color: #987945;"><span style="font-size: x-small;">(19:08:00) </span>pootzko:</span> i neposlušne nikadprobavljene kokice</p>
<p><br class="spacer_" /></p>
<p>spontani red guglanja&#8230;</p>
<p><img class="alignnone size-full wp-image-735" title="guitar_pick1" src="http://cmikavac.net/wp-content/uploads/guitar_pick1.jpg" alt="" width="500" height="378" /></p>
<p>&#8230;i red slučajnog dalekointernetskog očitoistomišljenika</p>
<p><img class="alignnone size-full wp-image-736" title="guitar_pick2" src="http://cmikavac.net/wp-content/uploads/guitar_pick2.jpg" alt="" width="500" height="234" /></p>
<p><em>~<a title="ragetoons" href="http://ragetoons.com/">ragetoons</a> + ~<a title="mylifecomics" href="http://mylifecomics.wordpress.com/">mylifecomics</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://cmikavac.net/2010/12/22/o-trzalicama/feed/</wfw:commentRss>
		<slash:comments>2</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>
	</channel>
</rss>

