<?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; admin</title>
	<atom:link href="http://www.cybermilitia.net/author/admin/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>Windows Mojave goes public</title>
		<link>http://www.cybermilitia.net/2009/11/09/windows-mojave-goes-public/</link>
		<comments>http://www.cybermilitia.net/2009/11/09/windows-mojave-goes-public/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 15:57:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows mojave]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=87</guid>
		<description><![CDATA[Windows 7 was recently released to public, and there was much rejoicing. IT columnists still haven&#8217;t grown tired of singing its praises, and the public&#8217;s collective brain is like an empty cave that echoes the general noise. The main reason for this, many of us feel uncomfortably in the back of our heads, is the [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 7 was recently released to public, and there was much rejoicing.</p>
<p>IT columnists still haven&#8217;t grown tired of singing its praises, and the public&#8217;s collective brain is like an empty cave that echoes the general noise.</p>
<p>The main reason for this, many of us feel uncomfortably in the back of our heads, is the low bar set by its predecessor &#8211; Windows Vista.<br />
When Vista was released, everybody got their undies in a bunch. They wrote the OS off faster than the metaphorical one legged man in a butt kicking contest.</p>
<p><span id="more-87"></span>Microsoft pleaded hard, but were shouted back at like the <em>evil little meanies</em> we all know them to be.<br />
Their theory?<br />
The OS is not as bad as the popular opinion makes it out to be.<br />
Since there&#8217;s no point fighting popular opinion, they needed, instead, to come up with a replacement, and soon. There was too much at stake &#8211; it was all or nothing.</p>
<p>So they did a small experiment they called the “<a title="The &quot;Mojave Experiment&quot;" href="http://www.microsoft.com/windows/mojave-experiment/">Mojave experiment</a>”.<br />
The premise &#8211; give everyday users computers loaded with a <em>new version of Windows</em> &#8211; codename “Mojave”, and get their opinion of this OS as compared to Windows Vista.</p>
<p>The average pre-demo score for Windows Vista was 4.4.<br />
The average post-demo score for the new operating system codenamed Windows “Mojave” was 8.5.<br />
Infact, 94% of respondents rated the “new operating system” codenamed Windows “Mojave” higher than they initially rated Windows Vista before the demo &#8211; not a single one of them rated “Mojave” lower.<br />
Now comes the fun part &#8211; Windows Mojave was actually Windows Vista &#8211; the only difference, for the users that took part in the experiment, was the name.</p>
<p>With the success of this small scale experiment under their belt, Microsoft decided to go big &#8211; by releasing Windows 7.</p>
<p>Apart from a revamped taskbar, there really isn&#8217;t much difference between Windows 7 and Vista. Windows 7 is fully compatible with drivers written for Windows Vista and heck, they even have the same major version number for the underlying kernel! (Windows Vista was build 6.0, Windows 7 is build 6.1 &#8230; not 7.0)<br />
What was released as Windows 7 might as well have been a major(?) service pack for Windows Vista. Windows XP Service Pack 2, anyone? But, honestly, would that be good enough for a public that have already had an opinion formed for them?</p>
<p>Let&#8217;s admit it, Microsoft have proved their point &#8211; they were right about Windows Vista all along &#8211; the only real problem with Windows Vista was that of public perception.<br />
They didn&#8217;t waste anymore of their time and effort trying to reason with the mob mentality.</p>
<p>They yielded &#8211; they buried Vista before everyone&#8217;s eyes, then secretly exhumed it and gave it an alias &#8211; with great success.</p>
<p>“We know Windows Vista was a bad product and all, but here&#8217;s one that&#8217;s much better &#8211; it&#8217;s called <span style="text-decoration: line-through;">Windows Mojave</span> Windows 7”</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2009/11/09/windows-mojave-goes-public/feed/</wfw:commentRss>
		<slash:comments>0</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>Expensive growing kids</title>
		<link>http://www.cybermilitia.net/2009/02/19/expensive-growing-kids/</link>
		<comments>http://www.cybermilitia.net/2009/02/19/expensive-growing-kids/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 00:20:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[advertisement]]></category>
		<category><![CDATA[complan]]></category>
		<category><![CDATA[health drink]]></category>
		<category><![CDATA[television]]></category>
		<category><![CDATA[tv ad]]></category>

		<guid isPermaLink="false">http://www.cybermilitia.net/?p=44</guid>
		<description><![CDATA[If you watch television, you&#8217;re sure to have seen the advertisements for numerous health drinks. These health drinks supply today&#8217;s children with all the nutrients that they&#8217;d otherwise never even hear about, much less have as a part of their diet. Vitamins Alpha through Omega, minerals and elements that don&#8217;t even figure in the periodic [...]]]></description>
			<content:encoded><![CDATA[<p>If you watch television, you&#8217;re sure to have seen the advertisements for numerous health drinks. These health drinks supply today&#8217;s children with all the nutrients that they&#8217;d otherwise never even hear about, much less have as a part of their diet.<br />
<span id="more-44"></span>Vitamins Alpha through Omega, minerals and elements that don&#8217;t even figure in the periodic table, and mostly a lot of pseudo-scientific babble &#8211; let&#8217;s face it &#8230; you need all of those to avoid growing up to be a total loser. After all, who can argue with the word of the &#8220;Department of Nutrition&#8221; (from a Complan ad, as seen on TV!) ?</p>
<p>Deeply concerned by the way natural food was killing their kids, hundreds of good looking mothers march upto the said &#8220;Department of Nutrition&#8221; &#8230; they want blood &#8230; er, answers !<br />
Scared out of his wits, the guy with a stethoscope around his neck (evidently, a doctor) reveals the sensational findings of a research &#8220;carried out over a period of three years on hundreds of kids&#8221; &#8211; <em>kids who drank Complan grew twice as fast as those who didn&#8217;t</em>.</p>
<p>You heard it here first folks ! Why, you ask ?<br />
I&#8217;m pretty sure it&#8217;s some sort of government conspiracy. &#8220;They&#8221; don&#8217;t want us to know about the findings of a &#8220;research&#8221; that conclusively proves that regular food is just not good enough for modern kids. The outing of this &#8220;research&#8221; would mean the end of all naturally grown food, and by extension, the end of all involved in the sham of a business called farming.</p>
<p>What the advertisement doesn&#8217;t tell us is about the protocols used in the alleged &#8220;research&#8221;.<br />
Were the children from the two groups (A &#8211; those who consumed Complan, and B &#8211; those who didn&#8217;t) equal in all other respects ?<br />
I&#8217;ll bet the groups were divided based on the children&#8217;s existing diets. Here is the pitfall -</p>
<p>Group A &#8211; kid drinks Complan regularly -&gt; kid is probably from a well-to-do family -&gt; kid probably has a better overall diet, notwithstanding his Complan intake.<br />
Group B &#8211; kid doesn&#8217;t drink Complan -&gt; kid is probably from a poor family -&gt; kid is probably malnourished anyway.</p>
<p>Honestly, which well-to-do family doesn&#8217;t get their kids some health drink or the other ?</p>
<p>Anyway, just like the helicopter moms in the TV ad, I&#8217;m utterly outraged at the way mother nature has failed to provide us with sustenance.<br />
Thanks to health drinks, today&#8217;s kids can have proper nutrition &#8211; provided it&#8217;s the right brand &#8230; <img src='http://www.cybermilitia.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybermilitia.net/2009/02/19/expensive-growing-kids/feed/</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>

