<?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>pk stuff</title>
	<atom:link href="http://krnjevic.com/wp/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://krnjevic.com/wp</link>
	<description>I'll be right there ...</description>
	<lastBuildDate>Wed, 07 Mar 2012 23:31:42 +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>Windows Terminal Server: &#8220;Too many connections&#8221;</title>
		<link>http://krnjevic.com/wp/?p=328</link>
		<comments>http://krnjevic.com/wp/?p=328#comments</comments>
		<pubDate>Wed, 07 Mar 2012 23:31:42 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=328</guid>
		<description><![CDATA[There is one backdoor which can be used. Since Windows 2003 there is a little known feature which helps in a &#8220;too many connections&#8221; situation. The Remote Desktop client offers an option which allows you to connect to the console. This gives you a 3rd connection. If someone is logged into the console you have [...]]]></description>
			<content:encoded><![CDATA[<p>There is one backdoor which can be used. Since Windows 2003 there is a little known feature which helps in a &#8220;too many connections&#8221; situation. The Remote Desktop client offers an option which allows you to connect to the console. This gives you a 3rd connection. If someone is logged into the console you have to have the sufficient permissions then the session will be logged out and you can log in. If nobody is logged into the console it will let you log in.</p>
<p>Start -&gt; Run -&gt; CMD<br />
cd \Program Files\Terminal Services Client<br />
mstsc -v:x.x.x.x /console</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=328</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Version Numbering</title>
		<link>http://krnjevic.com/wp/?p=326</link>
		<comments>http://krnjevic.com/wp/?p=326#comments</comments>
		<pubDate>Sun, 26 Feb 2012 21:00:30 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=326</guid>
		<description><![CDATA[I like this: major: Really a marketing decision. Are you ready to call the version 1.0? Does the company consider this a major version for which customers might have to pay more, or is it an update of the current major version which may be free? Less of an R&#38;D decision and more a product [...]]]></description>
			<content:encoded><![CDATA[<p>I like this:</p>
<p><strong>major</strong>: Really a marketing decision. Are you ready to call the version 1.0? Does the company consider this a major version for which customers might have to pay more, or is it an update of the current major version which may be free? Less of an R&amp;D decision and more a product decision.</p>
<p><strong>minor</strong>: Starts from 0 whenever <strong>major</strong> is incremented. +1 for every version that goes public.</p>
<p><strong>release</strong>: Every time you hit a development milestone and release the product, even internally (e.g. to QA), increment this. This is especially important for communication between teams in the organization. Needless to say, never release the same &#8216;release&#8217; twice (even internally). Reset to 0 upon minor++ or major++.</p>
<p><strong>build</strong>: Can be a SVN/Git version, I find that works best.</p>
<p>For larger projects with many components <a title="http://semver.org/" href="http://semver.org/" target="_blank">Semantic Versioning</a> makes sense, though it less end-user friendly.</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=326</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LVM Tricks with a Little Help from kpartx</title>
		<link>http://krnjevic.com/wp/?p=305</link>
		<comments>http://krnjevic.com/wp/?p=305#comments</comments>
		<pubDate>Fri, 24 Feb 2012 08:15:43 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[kpartx]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[lvm2]]></category>
		<category><![CDATA[pvscan]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[vgchange]]></category>
		<category><![CDATA[xen.xvda]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=305</guid>
		<description><![CDATA[Or perhaps it should be: how to retrieve an lvm partition from an xvda partition within an lvm partition. Quite some time ago, I built a CentOS Xen DomU using lvm within an xvda partition. And the whole VM was hosted in yet another lvm partition. While lvm is easy to manage and physical backup [...]]]></description>
			<content:encoded><![CDATA[<p>Or perhaps it should be: how to retrieve an lvm partition from an xvda partition within an lvm partition.</p>
<p>Quite some time ago, I built a CentOS Xen DomU using lvm within an xvda partition. And the whole VM was hosted in yet another lvm partition. While lvm is easy to manage and physical backup and restore is straightforward, accessing the contents of the embedded partition without the VM running is tricky. Luckily, device mapping in Linux is very powerful and can be used recursively (not quite like Haskell or OCaml, but impressive none the less).</p>
<p>This recipe can be applied multiple times to dig deeper into your embedded file systems.</p>
<p>Add the device mappings (assuming the device created is /dev/xvda ):</p>
<pre>kpartx -a /dev/VolGroupXX/LogVolxx</pre>
<p>Kpartx is amazing as it will scan all your lvm volumes and create device mapper entries, which are required for the lvm tools to do their thing.</p>
<p>Scan for physical volumes:</p>
<pre>pvscan</pre>
<p>The above should tell you the physical volumes with LVM partitions (the PV column) along with the volume groups on it (the VG column). Activate the volume group:</p>
<pre>vgchange -ay {VG name from previous step}</pre>
<p>If you have additional embedded LVM, run <strong>vgscan</strong> to discover these, and <strong>vgchange -ay</strong> as required. You may need to repeat the kpartx and pvscan too.</p>
<p>When you eventually get to the volume required, mount it with :</p>
<pre>mount /dev/{VG name}/{LV name} /mnt/xxx ;</pre>
<p>The folks at Citrix have more detail <a title="http://forums.citrix.com/thread.jspa?threadID=288278" href="http://forums.citrix.com/thread.jspa?threadID=288278" target="_blank">here</a>, especially if you&#8217;re running Xen.</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=305</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable IPv6 in RHEL/CentOS 6</title>
		<link>http://krnjevic.com/wp/?p=308</link>
		<comments>http://krnjevic.com/wp/?p=308#comments</comments>
		<pubDate>Thu, 23 Feb 2012 05:17:21 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[tcp]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=308</guid>
		<description><![CDATA[from linuxnet.ch To disable IPv6 in RHEL/CentOS 6.x: Edit /etc/sysconfig/network Change the following: NETWORKING_IPV6=yes to NETWORKING_IPV6=no Edit /etc/modprobe.conf If not present, add the following: alias net-pf-10 off alias ipv6 off Stop the ipv6tables service service ip6tables stop Disable the ipv6tables service chkconfig ip6tables off After rebooting, IPv6 will be disabled.]]></description>
			<content:encoded><![CDATA[<p>from linuxnet.ch</p>
<h5>To disable IPv6 in RHEL/CentOS 6.x:</h5>
<p>Edit <strong>/etc/sysconfig/network<br />
</strong>Change the following:</p>
<pre> NETWORKING_IPV6=yes to
 NETWORKING_IPV6=no</pre>
<p>Edit <strong>/etc/modprobe.conf<br />
</strong>If not present, add the following:</p>
<pre> alias net-pf-10 off
 alias ipv6 off</pre>
<p>Stop the ipv6tables service</p>
<pre> service ip6tables stop</pre>
<p>Disable the ipv6tables service</p>
<pre> chkconfig ip6tables off</pre>
<p>After rebooting, IPv6 will be disabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=308</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 6.2 and LXC</title>
		<link>http://krnjevic.com/wp/?p=301</link>
		<comments>http://krnjevic.com/wp/?p=301#comments</comments>
		<pubDate>Thu, 23 Feb 2012 05:06:51 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[6]]></category>
		<category><![CDATA[6.2]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[lxc]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=301</guid>
		<description><![CDATA[Followed this recipe first, but got bogged down on the home-brew tools and very detailed guest config. However, this blog has the best description and config I&#8217;ve ever seen for bridge networking on CentOS &#8211; worked like a charm. Finally got everything working with these (much simpler) instructions using a centos6 guest from the openvz template [...]]]></description>
			<content:encoded><![CDATA[<p>Followed<a title="http://www.whistl.com/blogs/index.php/blog/?p=416&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1" href="http://www.whistl.com/blogs/index.php/blog/?p=416&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1" target="_blank"> this recipe</a> first, but got bogged down on the home-brew tools and very detailed guest config. However, this blog has the best description and config I&#8217;ve ever seen for bridge networking on CentOS &#8211; worked like a charm.<br />
Finally got everything working with <a title="http://www.techrepublic.com/blog/opensource/how-to-create-lxc-system-containers-to-isolate-services/1299" href="http://www.techrepublic.com/blog/opensource/how-to-create-lxc-system-containers-to-isolate-services/1299" target="_blank">these (much simpler) instructions</a> using a centos6 guest from the openvz template download site.</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=301</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Growl 1.3+</title>
		<link>http://krnjevic.com/wp/?p=294</link>
		<comments>http://krnjevic.com/wp/?p=294#comments</comments>
		<pubDate>Sun, 12 Feb 2012 22:35:06 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[spork]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=294</guid>
		<description><![CDATA[I like Growl notifications for automated builds (and not much else &#8211; does anyone really need more distractions from IM, Facebook, Twitter?). As of version 1.3, Growl is only available through AppStore for $1.99, but the source is still available online. So if you happen to have XCode installed, the following instructions will get you [...]]]></description>
			<content:encoded><![CDATA[<p>I like Growl notifications for automated builds (and not much else &#8211; does anyone really need more distractions from IM, Facebook, Twitter?).</p>
<p>As of version 1.3, Growl is only available through AppStore for $1.99, but the source is still available online. So if you happen to have XCode installed, the following instructions will get you running.</p>
<p>1) You need Mercurial to retrieve Growl source. To Install Mercurial: sudo easy_install pip &amp;&amp; sudo pip install Mercurial</p>
<p>2) In a terminal window:</p>
<pre> cd /tmp
 hg clone https://code.google.com/p/growl/
 cd growl
 open Growl.xcodeproj</pre>
<p>3) In XCode, disable code signing.</p>
<p>4) Back in terminal:</p>
<pre> xcodebuild -project Growl.xcodeproj -target Growl.app -configuration Release
 open build/Release</pre>
<p>5) Copy Growl.app to your Applications folder.</p>
<p>More detailed, illustrated instructions available at: <a href="http://pragmactic-osxer.blogspot.com/2011/11/building-growl.html">http://pragmactic-osxer.blogspot.com/2011/11/building-growl.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=294</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subtitles on XBMC</title>
		<link>http://krnjevic.com/wp/?p=292</link>
		<comments>http://krnjevic.com/wp/?p=292#comments</comments>
		<pubDate>Sun, 30 Oct 2011 03:26:56 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=292</guid>
		<description><![CDATA[Since minidlna doesn&#8217;t serve external subtitle files properly, merge the .srt and .avi files into an mkv file as follows: mkvmerge -v -o movie.mkv movie.avi --sub-charset 0:UTF8 -s 0 -D -A movie.srt A more general purpose script: #!/bin/bash INPUT=$(basename $1 .avi) SRT=$(ls &#124; grep $INPUT.srt) SUB=$(ls &#124; grep $INPUT.sub) SSA=$(ls &#124; grep $INPUT.ssa) if [ [...]]]></description>
			<content:encoded><![CDATA[<p>Since minidlna doesn&#8217;t serve external subtitle files properly, merge the .srt and .avi files into an mkv file as follows:</p>
<pre>mkvmerge -v -o movie.mkv movie.avi --sub-charset 0:UTF8 -s 0 -D -A movie.srt</pre>
<p>A more general purpose script:</p>
<pre><code>#!/bin/bash
INPUT=$(basename $1 .avi)
SRT=$(ls | grep $INPUT.srt)
SUB=$(ls | grep $INPUT.sub)
SSA=$(ls | grep $INPUT.ssa)
if [ "$SRT" != "" ]; then
#    mkvmerge -v -o $INPUT.mkv $1 $INPUT.srt
    mkvmerge -v -o $INPUT.mkv $1 --sub-charset 0:UTF8 -s 0 -D -A $INPUT.srt
#    mkvmerge -v -o $INPUT.mkv $1 $INPUT.eng.srt --sub-charset 0:UTF8 -s 0 -D -A $INPUT.spa.srt
elif [ "$SUB" != "" ]; then
    mkvmerge -v -o $INPUT.mkv $1 $INPUT.sub
elif [ "$SSA" != "" ]; then
    mkvmerge -v -o $INPUT.mkv $1 $INPUT.ssa
else
    mkvmerge -v -o $INPUT.mkv $1
fi</code></pre>
<p>Unfortunately, this still doesn&#8217;t help for PS3, which doesn&#8217;t yet understand mkv.</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=292</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OCaml .ocamlinit</title>
		<link>http://krnjevic.com/wp/?p=288</link>
		<comments>http://krnjevic.com/wp/?p=288#comments</comments>
		<pubDate>Thu, 02 Jun 2011 21:25:01 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=288</guid>
		<description><![CDATA[Here&#8217;s a handy trick I didn&#8217;t know about for launching OCaml: $ cat &#62;&#62; .ocamlinit #use "topfind";; #require "sdl";; #require "sdlvideo";; open Sdl open Sdlvideo;; open Str;; .ocamlinit is sourced from the current directory, falling back to /home/user/.ocamlinit. you can explicitly override it via ocaml -init &#60;filename&#62; &#160;]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a handy trick I didn&#8217;t know about for launching OCaml:</p>
<pre><code>$ cat &gt;&gt; .ocamlinit
#use "topfind";;
#require "sdl";;
#require "sdlvideo";;

open Sdl
open Sdlvideo;;
open Str;;
</code></pre>
<p><code>.ocamlinit</code> is sourced from the current directory, falling back to <code>/home/user/.ocamlinit</code>. you can explicitly override it via <code>ocaml -init &lt;filename&gt;</code></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=288</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s 8 Habits for Effective Managers</title>
		<link>http://krnjevic.com/wp/?p=283</link>
		<comments>http://krnjevic.com/wp/?p=283#comments</comments>
		<pubDate>Sun, 13 Mar 2011 20:02:07 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[manager]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=283</guid>
		<description><![CDATA[Google did a data mining exercise to uncover what makes a good Google manager. and the 8 habits are: Be a good coach Empower your team, don&#8217;t micromanage Express interest in team members&#8217; success and personal wellbeing Don&#8217;t be a sissy: Be productive and results-oriented Be a good communicator and listen to your team Help [...]]]></description>
			<content:encoded><![CDATA[<p>Google did a data mining exercise to uncover what makes a good Google manager. and the 8 habits are:<br />
Be a good coach<br />
Empower your team, don&#8217;t micromanage<br />
Express interest in team members&#8217; success and personal wellbeing<br />
Don&#8217;t be a sissy: Be productive and results-oriented<br />
Be a good communicator and listen to your team<br />
Help your employees with career development<br />
Have a clear vision and strategy for the team<br />
Have key technical skills so you can help the team<br />
3 pitfalls:<br />
Have trouble making a transition to the team<br />
Lack a consistent approach to performance management and career development<br />
Spend too little time managing and communicating</p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=283</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SystemRescueCd</title>
		<link>http://krnjevic.com/wp/?p=274</link>
		<comments>http://krnjevic.com/wp/?p=274#comments</comments>
		<pubDate>Fri, 31 Dec 2010 05:32:24 +0000</pubDate>
		<dc:creator>peterk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[grub2]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[lvm2]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rescue]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://krnjevic.com/wp/?p=274</guid>
		<description><![CDATA[The SystemRescueCd has all sorts of useful tools to restore ailing Linux systems. Check it out at: http://www.sysresccd.org]]></description>
			<content:encoded><![CDATA[<p>The SystemRescueCd has all sorts of useful tools to restore ailing Linux systems.<br />
Check it out at: <a title="http://www.sysresccd.org/" href="http://www.sysresccd.org/">http://www.sysresccd.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://krnjevic.com/wp/?feed=rss2&#038;p=274</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

