<?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>Cyber Militia &#187; Tutorials</title>
	<atom:link href="http://www.cybermilitia.net/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cybermilitia.net</link>
	<description>The genius spilleth over ...</description>
	<lastBuildDate>Tue, 27 Sep 2011 17:56:21 +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>Simplest XHTML 1.0 strict alternative to target=&#8221;_blank&#8221;</title>
		<link>http://www.cybermilitia.net/2011/09/27/simplest-xhtml-1-0-strict-alternative-to-target_blank/</link>
		<comments>http://www.cybermilitia.net/2011/09/27/simplest-xhtml-1-0-strict-alternative-to-target_blank/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 17:53:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[alternative]]></category>
		<category><![CDATA[new tab]]></category>
		<category><![CDATA[new window]]></category>
		<category><![CDATA[open link]]></category>
		<category><![CDATA[target blank]]></category>
		<category><![CDATA[xhtml 1.0 strict]]></category>
		<category><![CDATA[xhtml strict]]></category>
		<category><![CDATA[xhtml valid]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=106</guid>
		<description><![CDATA[The most common method of having a link open in a new window i.e., target=&#8221;_blank&#8221; is invalid markup as per XHTML 1.0 strict. If, like me, you are a stickler for valid strict markup, here&#8217;s the easiest solution to maintain markup validity when you must have your links open in a new window/tab. Old markup - [...]]]></description>
			<content:encoded><![CDATA[<p>The most common method of having a link open in a new window i.e., <span class="Apple-style-span" style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;">target=&#8221;_blank&#8221; </span>is invalid markup as per XHTML 1.0 strict.</p>
<p>If, like me, you are a stickler for valid strict markup, here&#8217;s the easiest solution to maintain markup validity when you must have your links open in a new window/tab.</p>
<p><span id="more-106"></span></p>
<p>Old markup -</p>
<pre>&lt;a
href="http://www.cybermilitia.net"
title="Cyber Militia"<span style="color: #ff0000;">
target="_blank"</span>&gt;
The most awesome site !
&lt;/a&gt;</pre>
<p>&nbsp;</p>
<p>new XHTML 1.0 strict valid markup -</p>
<pre>&lt;a
href="http://www.cybermilitia.net"
title="Cyber Militia"<span style="color: #339966;">
onclick="window.open(this.href, '_blank');return false;"</span>&gt;
The most awesome site !
&lt;/a&gt;</pre>
<p>&nbsp;</p>
<p>All done with a wee-bit of javascript.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2011/09/27/simplest-xhtml-1-0-strict-alternative-to-target_blank/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Bulk FLAC to AAC encode tool</title>
		<link>http://www.cybermilitia.net/2011/04/18/bulk-flac-to-aac-encode-tool/</link>
		<comments>http://www.cybermilitia.net/2011/04/18/bulk-flac-to-aac-encode-tool/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 16:06:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[aac]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[bulk]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[flac to aac]]></category>
		<category><![CDATA[flac to m4a]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[nero]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=101</guid>
		<description><![CDATA[I recently had to encode my whole music archive (FLAC files) to AAC (m4a) to put on my Windows phone 7 &#8211; at a bitrate lower than I keep them at on my desktop. As there doesn&#8217;t seem to exist an AAC equivalent of tool like oggdropXPd, I had to write a script to do [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to encode my whole music archive (FLAC files) to AAC (m4a) to put on my Windows phone 7 &#8211; at a bitrate lower than I keep them at on my desktop.<br />
As there doesn&#8217;t seem to exist an AAC equivalent of tool like <a href="http://www.rarewares.org/ogg-oggdropxpd.php">oggdropXPd</a>, I had to write a script to do this myself.</p>
<p>I thought of sharing it as it might be useful to others as well.</p>
<p><span id="more-101"></span>It will look for FLAC files in the given folder (and sub-folders) and encode them to AAC (m4a) using Nero AAC encoder, whilst retaining all tags.</p>
<p>You basically just have to -</p>
<ol>
<li>Unzip the file and create a shortcut to AACEnc.bat on your desktop (or wherever you wish).</li>
<li>Drag-and-drop any folder that contains FLAC files on this shortcut.</li>
</ol>
<p>Notes -</p>
<ul>
<li>It uses the free Nero AAC encoder (included in the Zip file).</li>
<li><del>By default, any FLAC files will be deleted after they are encoded. Edit the script to change this behaviour (more specifically, delete line 11)</del>. Based on feedback, I&#8217;ve updated the script &#8211; It will no longer delete the original FLAC files.</li>
<li>The quality setting (decimal value between 0-1, 1 being the best quality) is configurable (more specifically line 2 in the script).</li>
</ul>
<p>Download it <a title="Bulk AAC Encoder script" href="http://www.cybermilitia.net/wp-content/uploads/2011/04/AACEnc.zip">here</a>.</p>
<p>p.s. &#8211; I&#8217;ve included the required freeware tools &#8220;flac.exe&#8221;, &#8220;NeroAACEnc.exe&#8221; etc. in the Zip file.</p>
<p>Please feel free to leave comments if you have any.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2011/04/18/bulk-flac-to-aac-encode-tool/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Make &#8220;Windows Explorer&#8221; taskbar icon open &#8220;My Computer&#8221; instead of &#8220;Libraries&#8221;</title>
		<link>http://www.cybermilitia.net/2010/10/05/make-windows-explorer-taskbar-icon-open-my-computer-instead-of-libraries/</link>
		<comments>http://www.cybermilitia.net/2010/10/05/make-windows-explorer-taskbar-icon-open-my-computer-instead-of-libraries/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 10:21:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[instead of libraries]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[my computer]]></category>
		<category><![CDATA[pin]]></category>
		<category><![CDATA[pin my computer]]></category>
		<category><![CDATA[server 2008 r2]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows taskbar icon]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=95</guid>
		<description><![CDATA[The default &#8220;Windows Explorer&#8221; icon on the taskbar in Windows 7 &#38; Windows Server 2008 R2 opens the &#8220;Libraries&#8221; by default. Now, I&#8217;m not sure about you, but I would much rather it opened up &#8220;My Computer&#8221; instead. Fortunately, it&#8217;s a very simple change. Right click on the &#8220;Windows Explorer&#8221; icon in the taskbar, now [...]]]></description>
			<content:encoded><![CDATA[<p>The default &#8220;Windows Explorer&#8221; icon on the taskbar in Windows 7 &amp; Windows Server 2008 R2 opens the &#8220;Libraries&#8221; by default.</p>
<p>Now, I&#8217;m not sure about you, but I would much rather it opened up &#8220;My Computer&#8221; instead.</p>
<p>Fortunately, it&#8217;s a very simple change.</p>
<p><span id="more-95"></span>Right click on the &#8220;Windows Explorer&#8221; icon in the taskbar, now right click &#8220;Windows Explorer&#8221; in the menu, and click &#8220;Properties&#8221;.</p>
<p><img class="alignnone size-full wp-image-97" title="windows explorer taskbar icon properties" src="http://www.cybermilitia.net/wp-content/uploads/2010/10/windows_explorer_icon_properties_01.jpg" alt="windows explorer taskbar icon properties" width="384" height="145" /></p>
<p>In the properties dialog-box that opens up, the &#8220;Target&#8221; field would read -<br />
<span style="color: #ff0000;">%windir%\explorer.exe</span></p>
<p>Change it to -<br />
<span style="color: #339966;">%windir%\explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}</span></p>
<p><span style="color: #339966;"><img class="alignnone size-full wp-image-98" title="windows explorer taskbar icon properties" src="http://www.cybermilitia.net/wp-content/uploads/2010/10/windows_explorer_icon_properties_02.jpg" alt="windows explorer taskbar icon properties" width="335" height="130" /></span></p>
<p>Click &#8220;OK&#8221; and you&#8217;re done !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2010/10/05/make-windows-explorer-taskbar-icon-open-my-computer-instead-of-libraries/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Sony DRU-880S RPC-1 &amp; bitsetting firmwares</title>
		<link>http://www.cybermilitia.net/2010/09/30/sony-dru-880s-rpc-1-bitsetting-firmwares/</link>
		<comments>http://www.cybermilitia.net/2010/09/30/sony-dru-880s-rpc-1-bitsetting-firmwares/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 19:19:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bitsetting]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[DRU-880S]]></category>
		<category><![CDATA[DRU880S]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[region free]]></category>
		<category><![CDATA[rpc-1]]></category>
		<category><![CDATA[rpc1]]></category>
		<category><![CDATA[sony]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=93</guid>
		<description><![CDATA[My old LG DVD burner died (after an honourable 3 year long service), and I bought a new one &#8211; Sony DRU-880S. Now the first thing I wanted to do was upgrade the firmware to the &#8220;latest&#8221; (read, &#8220;patched&#8221;) version. I go to Sony website, and sure enough, the device isn&#8217;t even listed there. About [...]]]></description>
			<content:encoded><![CDATA[<p>My old LG DVD burner died (after an honourable 3 year long service), and I bought a new one &#8211; Sony DRU-880S.</p>
<p>Now the first thing I wanted to do was upgrade the firmware to the &#8220;latest&#8221; (read, &#8220;patched&#8221;) version.<br />
I go to <a title="Sony Optiarc website" href="http://www.sony-optiarc.us/en/support-service/">Sony website</a>, and sure enough, the device isn&#8217;t even listed there.</p>
<p><span id="more-93"></span>About 10 searches and a couple of online translations later I learned, on a Korean website no less, that the DRU-880S is just the retail packaged clone of Sony Optiarc AD-7260S.</p>
<p>The AD-7260S is a OEM drive that&#8217;s been around longer, consequently finding a firmware for it is a whole lot easier.</p>
<p>Use <a title="NEC Binflash" href="http://binflash.cdfreaks.com/">NECWinFlash</a> to flash one of the ROMs onto your drive.</p>
<p>&nbsp;</p>
<p>You can find the Official 1.01 firmware <a title="Latest firmware for Sony Optiarc DRU-880S &amp; AD-7260S" href="http://sony-optiarc.us/en/support-service/downloads/fw_dvd-writer-ad-series.html">here</a>.<br />
Go <a title="RPC-1 &amp; bitsetting patched firmware for Sony Optiarc DRU-880S &amp; AD-7260S" href="http://liggydee.cdfreaks.com/page/en/Optiarc-AD-7260S/">here</a> for the patched firmwares (RPC-1, bitsetting etc.).</p>
<p>I&#8217;m running the RPC-1 patched version myself &#8211; works like a charm.</p>
<p>&nbsp;</p>
<p>EDIT &#8211; Applying the ROMs listed above will rename your drive to &#8220;AD-7260S&#8221;<br />
If you&#8217;d rather keep the original name, use one of the ROMs listed below -</p>
<p><a title="Sony DRU-880S original v1.60 ROM" href="http://rapidshare.com/files/2712113958/DRU-880S-1.60-orig.zip" target="_blank">Original DUS-880S v1.60 ROM</a><br />
<a title="Sony DRU-880S RPC-1 v1.60 ROM" href="http://rapidshare.com/files/2623633437/DRU-880S-1.60-rpc1.zip" target="_blank">RPC-1 patched version of the DRU-880S v1.60 ROM</a> (I&#8217;ve personally tested this one, works great)</p>
<p>(don&#8217;t remember where I found these, sorry if I didn&#8217;t give credit where due)</p>
<p>p.s. &#8211; As is customary, I must disclaim any and all responsibility for whatever damage you may cause/suffer by following the advice posted here. You know how it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2010/09/30/sony-dru-880s-rpc-1-bitsetting-firmwares/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Downloading from Megaupload (premium) with any download manager</title>
		<link>http://www.cybermilitia.net/2010/03/28/downloading-from-megaupload-premium-with-any-download-manager/</link>
		<comments>http://www.cybermilitia.net/2010/03/28/downloading-from-megaupload-premium-with-any-download-manager/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 01:43:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[download manager]]></category>
		<category><![CDATA[flashget]]></category>
		<category><![CDATA[free download manager]]></category>
		<category><![CDATA[getright]]></category>
		<category><![CDATA[internet download manager]]></category>
		<category><![CDATA[megaupload]]></category>
		<category><![CDATA[megaupload premium]]></category>
		<category><![CDATA[mgr_dl.php]]></category>
		<category><![CDATA[premium]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=89</guid>
		<description><![CDATA[This tutorial is about using any download manager to download files from Megaupload using your Premium account &#8211; be it Flashget, Getright, Free download manager (FDM), Internet download manager (IDM) etc. Megaupload&#8217;s FAQ states &#8211; &#8220;While you can use any of the major download managers, we recommend that you use Mega Manager instead.&#8221; Partly true. [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial is about using <span style="text-decoration: underline;">any</span> download manager to download files from Megaupload using your Premium   account &#8211; be it Flashget, Getright, Free download manager (FDM), Internet download manager (IDM) etc.</p>
<p>Megaupload&#8217;s FAQ states &#8211; &#8220;While you can use any of the major download managers, we recommend that you use   Mega Manager instead.&#8221; Partly true.<br />
<span id="more-89"></span><br />
With most other file hosting services, you just put in your login/password into your download manager, paste your list of links and that&#8217;s that.<br />
This approach with Megaupload, on the other hand, will download html codes instead of actual files &#8211; even with the &#8220;Direct downloads&#8221; option selected in your account settings.</p>
<p>This leaves us with two options -</p>
<ol>
<li>Either use &#8220;Mega manager&#8221;. Ugh ! Or &#8230;</li>
<li>Use the method described below (even though it involves a little more work than usual)</li>
</ol>
<p>I found several articles discussing this on the internet, but all of them involve generating the actual download link in a browser and putting this link in the download manager &#8211; one file at a time (e.g., using Flashgot).<br />
With the method described below, you&#8217;ll be able to queue your link list with minimal effort &#8211; no browser required!</p>
<p>For our preferred download manager, we use the same technique that Mega manager uses -</p>
<ol>
<li>Login to Megaupload premium account using Internet explorer.</li>
<li>Go to your cookies storage folder (<span style="color: #0000ff;">Run -&gt; cookies</span> for XP, <span style="color: #0000ff;">C:\users\&lt;username&gt;\AppData\Roaming\Microsoft\Windows\Cookies</span> for Vista/Win7)</li>
<li>Locate and open the megaupload cookie file &lt;username&gt;@megaupload[<span style="color: #0000ff;">x</span>].txt (<span style="color: #0000ff;">x</span> would be some number)</li>
<li>This file contains your username/password hash. Within its contents, look for the part that looks something like this -<br />
&#8230;&lt;lot-of-crap-here&gt;<span style="color: #993366;">user</span><span style="color: #ff0000;">&lt;32-character-user-password-hash&gt;</span><span style="color: #993366;">megaupload.com<span style="color: #000000;">&lt;some-more-crap-here&gt;&#8230;<br />
Make a note of this <span style="color: #ff0000;">&lt;32-character-user-password-hash&gt;</span> </span></span></li>
<li>To download megaupload links with any download manager, we need to modify the link like so -<br />
original link -<br />
http://www.megaupload.com/<span style="color: #0000ff;">?d=UXP1JGLK</span><br />
modified link for download manager -<br />
http://www.megaupload.com/<span style="color: #339966;">mgr_dl.php</span><span style="color: #0000ff;">?d=UXP1JGLK</span><span style="color: #339966;">&amp;u=</span><span style="color: #ff0000;">&lt;32-character-user-password-hash&gt;</span></li>
</ol>
<p>You need to do steps 1-4 only once.</p>
<p>For step 5, you can use the <a title="Excel to convert regular megaupload links to ones usable in download manager" href="http://www.cybermilitia.net/wp-content/uploads/2010/03/MU.xls">attached excel</a> to covert normal megaupload links into links usable in your download manager.</p>
<p>Please note that the <span style="color: #ff0000;">&lt;32-character-user-password-hash&gt;</span> is the hash of your unique username/password combination &#8211; sharing it is equivalent of sharing your username/password. (which, in case you didn&#8217;t already know, is in violation of Megaupload&#8217;s terms of service, and can lead to your premium account getting blocked).<br />
p.s. &#8211; Please leave a comment if it worked for you !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2010/03/28/downloading-from-megaupload-premium-with-any-download-manager/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress multi blog hosting</title>
		<link>http://www.cybermilitia.net/2009/09/27/wordpress-multi-blog-hosting/</link>
		<comments>http://www.cybermilitia.net/2009/09/27/wordpress-multi-blog-hosting/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 14:46:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[multi-blog]]></category>
		<category><![CDATA[multiple blogs]]></category>
		<category><![CDATA[symbolic links]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=83</guid>
		<description><![CDATA[If you manage multiple wordpress based blogs, you know it can be quite a chore. Keeping the installations up-to-date is cumbersome. Add to that the time and effort spent keeping all the plugins up-to-date and you&#8217;re spending quite a lot of time there already. Thankfully, there are several options that, if you find them suitable, [...]]]></description>
			<content:encoded><![CDATA[<p>If you manage multiple wordpress based blogs, you know it can be quite a chore.<br />
Keeping the installations up-to-date is cumbersome. Add to that the time and effort spent keeping all the plugins up-to-date and you&#8217;re spending quite a lot of time there already.<br />
Thankfully, there are several options that, if you find them suitable, can make your job easier.</p>
<p>I&#8217;m going to talk about the one that worked the best for me &#8211; the one using symbolic links.<br />
<span id="more-83"></span><br />
I had on my hands multiple blogs each with different owner/author and different databases.</p>
<p>All I had to do was -</p>
<ol>
<li>put all standard wordpress files into a directory above the level that the individual blogs were located &#8211; these files will now be shared by all blogs (make sure the path&#8217;s accessible to php for includes)</li>
<li>remove all standard files/folders (except wp-config.php) from each of the individual blog&#8217;s docroot</li>
<li>in each individual blog&#8217;s doc root, create symlinks pointing to all standard files &amp; folders within the shared wordpress directory.</li>
<li>add to the each individual wp-config.php the following line -
<pre style="padding-left: 30px;"><span style="color: #339966;">define('ABSPATH', dirname(__FILE__) . '/');</span></pre>
</li>
<li>in the shared wp-load.php, change -
<pre style="padding-left: 30px;"><span style="color: #339966;">define( 'ABSPATH', dirname(__FILE__) . '/' );</span></pre>
<p>to read -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">define( 'ABSPATH', $_SERVER["DOCUMENT_ROOT"] . '/');</span></pre>
</li>
</ol>
<p>the directory structure of each individual blog&#8217;s docroot looks like so -</p>
<p><a href="http://www.cybermilitia.net/wp-content/uploads/2009/09/cmi-htdocs.png"><img class="size-thumbnail wp-image-84" title="individual blog's doc root" src="http://www.cybermilitia.net/wp-content/uploads/2009/09/cmi-htdocs-150x150.png" alt="individual blog's doc root" width="150" height="150" /></a></p>
<p>If you wish to share a few plugins and themes, but keep a few different plugins/themes on different blogs, this can be done in the same way.<br />
In each blog&#8217;s doc root, don&#8217;t create a symlink to the whole shared wp-content. Rather symlink the individual plugin or themes folders instead.<br />
like so -</p>
<p><a href="http://www.cybermilitia.net/wp-content/uploads/2009/09/cmi-wp-content.png"><img class="size-full wp-image-85" title="individual blog's wp-content directory" src="http://www.cybermilitia.net/wp-content/uploads/2009/09/cmi-wp-content-150x40.png" alt="individual blog's wp-content directory" width="150" height="40" /></a></p>
<p>It may be a good idea to have all plugins/themes inside the shared wp-content instead of in individual blog&#8217;s wp-content, and symlink them back into individual blogs as required. This makes updating the plugins etc. easier. (I share all-in-one-seo-pack and google-sitemap-generator across multiple blogs)</p>
<p>Now to update wordpress (for all the blogs), just extract the new wordpress files overwriting the shared wordpress directory!<br />
The shared plugins can be updated across the board in the same way !</p>
<p>This blog is now running with this hack, leave a comment if you notice something not working correctly. (I tested and found comments to be working fine <img src='http://www.cybermilitia.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
<p>p.s. &#8211; The shared wordpress files are owned by root and are not writable by individual blog, and security is maintained by suexec&#8217;d php.<br />
This might mean that plugin installation/update might now work from within the wp-admin area&#8217;s UI. You&#8217;ll have to do it from command line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2009/09/27/wordpress-multi-blog-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropbear, SFTP and passwordless logins in Debian</title>
		<link>http://www.cybermilitia.net/2009/02/28/dropbear-on-debian/</link>
		<comments>http://www.cybermilitia.net/2009/02/28/dropbear-on-debian/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 00:12:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disable root]]></category>
		<category><![CDATA[dropbear]]></category>
		<category><![CDATA[dropbear sftp]]></category>
		<category><![CDATA[key pair]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[passwordless login]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=53</guid>
		<description><![CDATA[This tutorial will walk you through the installation of dropbear and getting SFTP and passwordless authentication working on a Debian system. Dropbear is a lightweight SSH server and client . It implements SSH2 protocol, just like OpenSSH, but without all the bells and whistles. So much so that it doesn&#8217;t even come bundled with SFTP [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will walk you through the installation of dropbear and getting SFTP and passwordless authentication working on a Debian system.</p>
<p>Dropbear is a lightweight SSH server and client . It implements SSH2 protocol, just like OpenSSH, but without all the bells and whistles. So much so that it doesn&#8217;t even come bundled with SFTP capability.<br />
But we can use the SFTP server that comes bundled with OpenSSH to work with Dropbear.<br />
<span id="more-53"></span>Let&#8217;s begin -</p>
<p>It&#8217;s always a good idea to update &amp; upgrade your installation first -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# apt-get update
</span><span style="color: #339966;">:~# apt-get upgrade</span></pre>
<p>First we need to install OpenSSH, if you don&#8217;t already have it (only to use its SFTP server with dropbear) -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# apt-get install openssh-server</span></pre>
<p>Now let&#8217;s install Dropbear -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# apt-get install dropbear</span></pre>
<p>Dropbear gets installed, but it is disabled by default. To enable it, edit <span style="color: #339966;">/etc/default/dropbear</span> and -</p>
<p>modify the line -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">NO_START=1</span></pre>
<p>to read -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">NO_START=0</span></pre>
<p>You can optionally change the listening port (22 by default) by editing the <span style="color: #339966;">DROPBEAR_PORT</span> variable in the same file. It&#8217;s recommended that you do this, for enhanced security. Remember to also change the port number that you connect to in your SSH/SFTP client.</p>
<p>Now that we&#8217;ve enabled Dropbear, we need to disable OpenSSH.</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# mv /etc/rc2.d/S16ssh /etc/rc2.d/K16ssh</span></pre>
<p>finally -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# /etc/init.d/ssh stop
</span><span style="color: #339966;">:~# /etc/init.d/dropbear start</span></pre>
<p>Now, without closing your existing SSH connection, open a new SSH session and make sure your SSH client can connect and show you the username/password prompt. If it doesn&#8217;t work and you logout your current connection &#8211; you&#8217;ll be left without access to your server.<br />
Once you&#8217;re sure it all works, you can logout and login again to end all OpenSSH processes, and let Dropbear takeover SSH responsibilities.<br />
If you check your resource usage, before and after, you should be able to notice the difference now <img src='http://www.cybermilitia.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Also, since we haven&#8217;t uninstalled OpenSSH, Dropbear will be able to serve SFTP with the OpenSSH&#8217;s SFTP server. This is located at /usr/lib/openssh/sftp-server , and symlinked as /usr/lib/sftp-server.<br />
If you want, you can also backup the sftp-server binary, remove openssh-server package and put the binary back at /usr/lib/sftp-server &#8211; and dropbear will still be able to serve SFTP with it.</p>
<p>Now that Dropbear is up and running, let&#8217;s setup private/public key pair based passwordless authentication for the root user &#8211; it&#8217;s convenient and just as secure (if not more so).</p>
<p>Let&#8217;s generate a key pair for SSH use -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# ssh-keygen</span></pre>
<p>the default paths are good for use with Dropbear.<br />
Don&#8217;t enter a passphrase if you don&#8217;t want to have to enter it everytime you login to SSH or do SFTP.</p>
<p>Now we must authorise the generated public key for SSH use -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# cat /root/.ssh/id_rsa.pub &gt;&gt; /root/.ssh/authorized_keys</span></pre>
<p>and copy the private key to your local machine.</p>
<p>*hint* At this point, you can use SFTP to copy this file <img src='http://www.cybermilitia.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>It is now safe to delete the generated key pair -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# rm /root/.ssh/id_rsa
</span><span style="color: #339966;">:~# rm /root/.ssh/id_rsa.pub</span></pre>
<p>Now you can point your SSH/SFTP client to use the private key to allow password-less login.</p>
<p>If, like me, you&#8217;re using PuTTY (or WinSCP) &#8211; you&#8217;ll need to convert the private key to PuTTY compatible <em>.ppk</em> format.<br />
To do this, <a title="Download PuTTYGen" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">download PuTTYGen</a>.<br />
Once you run PuTTYGen, select &#8220;Conversions&#8221; -&gt; &#8220;Import key&#8221; and import the private key file.<br />
Next, click &#8220;Save private key&#8221; and save the converted private key in PuTTY&#8217;s own format.<br />
This converted private key can now be used with PuTTY client (Connection -&gt; SSH -&gt; Auth -&gt; &#8220;Private key file for authentication&#8221;), and with WinSCP for passwordless login to SFTP.</p>
<p>Lastly, we need to disable password login for root in Dropbear. To do this, edit the file <span style="color: #339966;">/etc/default/dropbear</span> and -<br />
edit the line -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">DROPBEAR_EXTRA_ARGS=""</span></pre>
<p>to read -</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">DROPBEAR_EXTRA_ARGS="-g"</span></pre>
<p>and then</p>
<pre style="padding-left: 30px;"><span style="color: #339966;">:~# /etc/init.d/dropbear restart</span></pre>
<p>And we&#8217;re all done !</p>
<p>A lightweight replacement SSH server with SFTP and passwordless logins for root !<br />
All with the usual ease of Debian and apt.</p>
<p>p.s. &#8211; You can use these switches in dropbear configuration -</p>
<ul>
<li>Disallow root logins -
<pre><span style="color: #339966;">DROPBEAR_EXTRA_ARGS="-w"

</span></pre>
</li>
<li>Disable password logins -
<pre><span style="color: #339966;">DROPBEAR_EXTRA_ARGS="-s"

</span></pre>
</li>
<li>Disable password logins for root -
<pre><span style="color: #339966;">DROPBEAR_EXTRA_ARGS="-g"

</span></pre>
</li>
<li>or any combination thereof, like -
<pre><span style="color: #339966;">DROPBEAR_EXTRA_ARGS="-w -s"</span></pre>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2009/02/28/dropbear-on-debian/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Synchronize Outlook Express and Thunderbird</title>
		<link>http://www.cybermilitia.net/2007/08/15/synchronize-outlook-express-and-thunderbird/</link>
		<comments>http://www.cybermilitia.net/2007/08/15/synchronize-outlook-express-and-thunderbird/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 03:18:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[eml]]></category>
		<category><![CDATA[export mail]]></category>
		<category><![CDATA[outlook express]]></category>
		<category><![CDATA[smartsave]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[synchronise]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=31</guid>
		<description><![CDATA[I normally use Outlook Express for my email. And I was only playing around with Thunderbird the other day, when I accidentally hit &#8220;Get Messages&#8221; without first configuring Thunderbird to &#8220;Leave mail on the server&#8221; &#8230; So here I was, with Thunderbird holding hostage the mail that belongs in my Outlook Express. Thus began my [...]]]></description>
			<content:encoded><![CDATA[<p>I normally use Outlook Express for my email.<br />
And I was only playing around with Thunderbird the other day, when I accidentally hit &#8220;Get Messages&#8221; without first configuring Thunderbird to &#8220;Leave mail on the server&#8221; &#8230;<br />
So here I was, with Thunderbird holding hostage the mail that belongs in my Outlook Express.<br />
<span id="more-31"></span>Thus began my little research to accomplish some sort of working synchronization between the two email clients.<br />
Thunderbird does have a nice little &#8220;Import from Outlook Express&#8221; feature builtin, but, as far as I know, there&#8217;s no direct way of importing mail from Thunderbird into Outlook Express (Outlook express 6 was out much before Thunderbird, so no surprises there).</p>
<p>From what I know of these two applications, I can think of the following (not thoroughly tested) ways of synchronizing your mailboxes in Thunderbird and Outlook Express :</p>
<p><strong>Outlook Express to Thunderbird</strong><br />
If you have Outlook express and Thunderbird on different machines &#8211; Copy the Outlook Express mailbox files to the machine with Thunderbird at the corresponding path.</p>
<p>These files are located at &#8211; C:\Documents and Settings\&lt;yourprofilename&gt;\Local Settings\Application Data\Identities\{some-random-16-char-guid-here}\Microsoft\Outlook Express\</p>
<p>Now from within Thunderbird » Import » Mail » Outlook Express.</p>
<p>You may have to create an identical folder structure in the Outlook express of the machine that runs Thudnerbird.</p>
<p><strong>Thunderbird to Outlook Express</strong></p>
<p>Download and install <a title="Download SmartSave Thunderbird Extension" href="https://addons.mozilla.org/en-US/thunderbird/addon/2887">SmartSave Thunderbird Extension</a> &#8211; an extension that lets you export multiple mails in one go.</p>
<p>Right Click » Export (the folders/messages that you want to sync into Outlook express).</p>
<p>A bunch of .eml files will be created.<br />
If you have Outlook express and Thunderbird on different machines, copy these files to the machine with Outlook Express.</p>
<p>Select all and drag these files into the corresponding folder inside Outlook express.</p>
<p>That is, the files from Thunderbird&#8217;s inbox into Outlook Express&#8217; inbox; those from Thunderbird&#8217;s sentbox into Outlook Express&#8217; sentbox and so on. (There&#8217;s no compulsion, but it doesn&#8217;t make much sense otherwise &#8230;)</p>
<p>If you find that the above doesn&#8217;t work for you or know of a better way of doing the same &#8211; let me know (you know where to leave a message)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2007/08/15/synchronize-outlook-express-and-thunderbird/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Video capture for beginners</title>
		<link>http://www.cybermilitia.net/2007/07/16/video-capture-for-beginners/</link>
		<comments>http://www.cybermilitia.net/2007/07/16/video-capture-for-beginners/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 17:30:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[video capture]]></category>
		<category><![CDATA[video compression]]></category>
		<category><![CDATA[virtualdub]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=27</guid>
		<description><![CDATA[One of my friends recently wanted my help with recording a web telecast for viewing offline. I thought it would be a good idea to write a small tutorial about it. To capture good quality video without sacrificing a huge amount of disk space, we must compress it before storing it onto the disk. One [...]]]></description>
			<content:encoded><![CDATA[<p>One of my friends recently wanted my help with recording a web telecast for viewing offline. I thought it would be a good idea to write a small tutorial about it.</p>
<p>To capture good quality video without sacrificing a huge amount of disk space, we must compress it before storing it onto the disk.<br />
<span id="more-27"></span>One popular codec for compressing video is the DivX codec.<br />
It&#8217;s compatible with almost all video editing/capturing software.<br />
<a title="DivX homepage" href="http://www.divx.com/">DivX homepage</a><br />
<a title="Download DivX" href="http://download.divx.com/divx/DivXInstaller.exe">Download DivX</a></p>
<p>For video editing/capturing, I recommend VirtualDub.<br />
Virtual dub allows editing/converting/capturing video files with a variety of professional features.<br />
<a title="VirtualDub homepage" href="http://www.virtualdub.org/">VirtualDub homepage</a><br />
<a title="Download VirtualDub" href="http://prdownloads.sourceforge.net/virtualdub/VirtualDub-1.6.15.zip">Download VirtualDub</a></p>
<p>First, you&#8217;ll need to install both these software.To begin Video capture, fire up VirtualDub, and select &#8220;Capture AVI&#8221; from the File menu.</p>
<p>Next We need to set the Video Capture source :</p>
<p>All &#8220;Video for Windows&#8221; (VFW) compatible video devices connected to your computer should be available here.Thus you can capture video from sources like webcams, TV tuners, camcorders &#8230; basically almost any device that works with a computer.</p>
<p>Next we set the location to save the created video file :</p>
<p>Now to set up video compression :</p>
<p>You can also optionally configure advanced compression settings for the selected codec at this point (Select &#8220;Configure&#8221; at this dialogbox).</p>
<p>If you have your devices&#8217;s audio output connected to your computer&#8217;s line-in input, you may also want to configure audio compression at this point :</p>
<p>That&#8217;s it !<br />
Just hit &#8220;F5&#8243; to start video capture, hit &#8220;Esc&#8221; to stop it.</p>
<p>Also note that if the device is not recognized by VirtualDub or doesn&#8217;t work with it for some reason, you can probably still capture compressed video using the software that came with your device.<br />
Just look around for a option to set the compression codec for capture, and select DivX.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2007/07/16/video-capture-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

