<?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>systemBash &#187; Other Code</title>
	<atom:link href="http://systembash.com/tags/code-samples/other/feed/" rel="self" type="application/rss+xml" />
	<link>http://systembash.com</link>
	<description>Technology and System Administration</description>
	<lastBuildDate>Sat, 27 Feb 2010 02:12:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://systembash.com/?pushpress=hub'/>
		<item>
		<title>Copy Files to Many USB Drives Quickly and Easily</title>
		<link>http://systembash.com/content/copy-files-to-many-usb-drives-quickly-and-easily/</link>
		<comments>http://systembash.com/content/copy-files-to-many-usb-drives-quickly-and-easily/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 21:00:51 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[Programs]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[key drive]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[usb drive]]></category>
		<category><![CDATA[usb key drive]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=452</guid>
		<description><![CDATA[
I was recently tasked with copying speaker&#8217;s presentations, files and handouts onto 100s of USB Drives (key drives) for a conference that work is hosting down in Washington, D.C. My first thought was that it was going to be a pain to have to copy/paste the files to each drive. I thought about creating a [...]]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://systembash.com/wp-content/uploads/2009/09/photo.jpg" rel="lightbox" title="The USB Drives"><img src="http://systembash.com/wp-content/uploads/2009/09/photo-300x225.jpg" alt="photo" title="photo" width="300" height="225" class="alignnone size-medium wp-image-453" /></a></center></p>
<p>I was recently tasked with copying speaker&#8217;s presentations, files and handouts onto 100s of USB Drives (key drives) for a conference that work is hosting down in Washington, D.C. My first thought was that it was going to be a pain to have to copy/paste the files to each drive. I thought about creating a batch script to copy the files with a double click. But really, who wants to be doing all of that clicking and/or typing? Work smarter, not harder.</p>
<p>Then I remembered a neat feature that <a href="http://www.2brightsparks.com/syncback/sbse.html">SyncBackSE</a>, a program I use at home for backups, has available. The backup program &#8211; which is basically a file copy process &#8211; can be triggered based on the insert of a drive, whether that be a USB Key Drive or an External Hard Drive. Using the program, the only action you need to do to trigger the copy process is literally plug the drive in. After the machine recognizes the drive and mounts it to a drive letter, the copy process starts automatically.</p>
<p>Here are the directions on how to set this up.</p>
<ol>
<li>
<div style="float: right; padding: 15px 0 15px 15px;"><a href="http://systembash.com/wp-content/uploads/2009/09/photo-1.jpg" rel="lightbox" title="USB Hub"><img src="http://systembash.com/wp-content/uploads/2009/09/photo-1-150x150.jpg" alt="USB Hub" title="USB Hub" width="150" height="150" class="alignnone size-thumbnail wp-image-455" /></a></div>
<p><strong>Prepare your system</strong>. Install <a href="http://www.2brightsparks.com/syncback/sbse.html">SyncBackSE</a>. I have purchased the full program at home, but since I am using this for a limited task you can just install the 30-day trial. Create a folder, on your desktop or location of choice, with the files you want to be copied to the filesystem. Copy files to that folder, this is your &#8220;source directory&#8221;. Plug in as many USB drives as you can, in my case I used a USB hub with two handy top USB ports. Note which letter these drives assign themselves as. </li>
<li><strong>Set up the Source and Destination</strong>. The Source will be the &#8220;source directory&#8221; of any files you wish to copy. The Destination will be the USB Drive Letter. If you are able to plug more than one drive in at a time, you will need to create separate profiles for each one, with differing drive letters. Create them at first or just copy the first profile you make, and switch the Destination Drive on each one.</li>
<p><center>
<div style="margin-left: -20px;"><a href="http://systembash.com/wp-content/uploads/2009/09/usbdrive2.png" title="Source and Destination Settings" rel="lightbox"><img src="http://systembash.com/wp-content/uploads/2009/09/usbdrive2.png" alt="Source and Destination Settings" title="usbdrive2" width="484" height="85" class=" size-full wp-image-460" border=0/></a></div>
<p></center></p>
<li>Modify the profile. <strong>This is where the magic happens.</strong> Under profile setup, go to &#8220;Click for Options&#8221; and check off &#8220;Expert&#8221;. Select When and then &#8220;Insert&#8221;. Check off &#8220;Run this profile when:&#8221; and select the drive letter under &#8220;is inserted into drive&#8221;. Also check off &#8220;Run unattended&#8221; &#8211; this will ensure it does not prompt you when you plug in your drive each time. The other options should remain with <any label>. A summary of these settings is in the figure below.</li>
</ol>
<p><center><a href="http://systembash.com/wp-content/uploads/2009/09/usbdrive3.png" rel="lightbox" title="Settings for Auto Copy"><img src="http://systembash.com/wp-content/uploads/2009/09/usbdrive3-300x86.png" alt="Settings for Auto Copy" title="Settings for Auto Copy" width="300" height="86" class="aligncenter size-medium wp-image-461" /></a></center></p>
<p>That is it! Test by inserting a USB drive. You should see the profile change to &#8220;Running&#8221; then then &#8220;Success&#8221; after files have been completed. The screen will look as follows:</p>
<p><center><a href="http://systembash.com/wp-content/uploads/2009/09/usbdrive1.png" rel="lightbox" title="Final Product"><img src="http://systembash.com/wp-content/uploads/2009/09/usbdrive1-300x53.png" alt="Final Product" title="Final Product" width="300" height="53" class="aligncenter size-medium wp-image-462" /></a></center></p>
<p>In my experience, the part that takes the longest was Windows XP discovering the new drive and then assigning the drive letter. This PC is slow, so I imagine on a faster machine this process would actually be much quicker. I ended up having to re-copy the drives since someone added their handouts in the last minute, but the drive discovery process happened much faster the second time around.  I was able to do about 100 drives in 30 minutes, so this process is actually very speedy and works very well.</p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/copy-files-to-many-usb-drives-quickly-and-easily/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Install SNMP on Tomato Router Firmware and Graph Traffic with Cacti</title>
		<link>http://systembash.com/content/how-to-install-snmp-on-tomato-router-firmware-and-graph-traffic-with-cacti/</link>
		<comments>http://systembash.com/content/how-to-install-snmp-on-tomato-router-firmware-and-graph-traffic-with-cacti/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 01:16:39 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[Programs]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[SNMP]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=406</guid>
		<description><![CDATA[You&#8217;ve flashed your old WRT54G or other vanilla router with the Tomato firmware. This itself turns your router into a lean, mean routing machine with QOS, SSH and more, but let&#8217;s say we want to take it a bit further. What it we want to get some more stats out of it?
In order to do [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve flashed your old WRT54G or other vanilla router with the <a href="http://www.polarcloud.com/tomato">Tomato firmware</a>. This itself turns your router into a lean, mean routing machine with QOS, SSH and more, but let&#8217;s say we want to take it a bit further. What it we want to get some more stats out of it?</p>
<p>In order to do this, we first need to set up a way to pull this information from the router. The best way to do this is to install an SNMP (<strong><span style="text-decoration: underline;">S</span></strong>imple <span style="text-decoration: underline;"><strong>N</strong></span>etwork <strong><span style="text-decoration: underline;">M</span></strong>anagement <strong><span style="text-decoration: underline;">P</span></strong>rotocol) daemon on the system.</p>
<p>The main roadblock we face here is that the system mainly runs in volatile system memory, meaning that every time the system is rebooted the filesystem is reset. Fortunately Tomato provides a way to get around this using CIFS shares. Follow the steps below (as modified from <a href="http://www.linksysinfo.org/forums/showthread.php?t=51064">here</a>) to install an SNMP server on a Tomato router.</p>
<ol>
<li>Create a network (samba, CIFS) share somewhere on the network. This computer must be on all of the time in order for Tomato to run the SNMP server.</li>
<li>Download the snmpd.zip file from one of these locations:<br />
[<a href="http://bok.xs4all.nl/downloads/snmpd.zip">xs4all.nl</a>]<br />
[<a href="http://systembash.com/source/snmpd.zip">systembash</a>]</p>
<p>expand the binary and .conf file into the share or a subdirectory (for example, &lt;share name&gt;/snmp)</p>
<p>MD5 for snmpd binary is ae0d622648efdb8dceb7b3b5a63e23ac</li>
<li style="text-align: center; ">Set up the shared directory on the router. Visit Administration-&gt;CIFS Client. Add the share as follows, with your correct share information:<img class="aligncenter size-full wp-image-428" title="cifs1" src="http://systembash.com/wp-content/uploads/2009/08/cifs11.png" alt="cifs1" width="360" height="258" /></li>
<li>Log into the Tomato router via ssh, and start SNMPd on the router by issuing the command:
<pre>/cifs1/snmp/snmpd -c /cifs1/snmp/snmpd.conf &amp;</pre>
</li>
<li> Test that SNMP is running and can be accessed on another computer on the network. To test it, you can use snmpwalk like so:
<pre>snmpwalk -c public -v 2c &lt;IP Address of Router&gt;</pre>
<p>If it works properly, it will list the available OIDs from the router. You do not need to take note of these, but they will be used in the graphing software later.</li>
<li>Finally, we need to launch the SNMP server when the router is restarted. You do this by adding the command to start it in the area Administration -&gt; Scripts -&gt; Firewall:
<pre>sleep 30
/cifs1/snmp/snmpd -c /cifs1/snmp/snmpd.conf -s &amp;</pre>
<p>This launches the snmp server 30 seconds after the router is started or rebooted.</li>
</ol>
<p>Thats it! SNMP is now running on the router.</p>
<p>Now to add this SNMP host to your graphing software. For this example, I will use <a href="http://www.cacti.net/">Cacti</a>, which I will assume you have already set up. If you need to set it up, please <a href="http://www.cacti.net/documentation.php">follow the directions</a> on the Cacti site for installation.</p>
<p>First, add the router as a new device, using the information below (change IP to suite your needs):</p>
<p><center><img class="aligncenter size-full wp-image-430" title="adddevice" src="http://systembash.com/wp-content/uploads/2009/08/adddevice.png" alt="adddevice" width="338" height="768" /></center></p>
<p>After adding the device, you have several options depending on what sort of data you are looking for. For system information on the router &#8211; for example CPU usage, memory usage, etc; you can go directly to Create -&gt; New Graphs. Select your device and then add the graph you are looking for.</p>
<p>The graph will show as a broken image at first, or a blank graph with &#8220;NaN&#8221; as the data source. Give it a few minutes to update, and the information should start to flow through. The ucd/net options work best, but feel free to experiment.</p>
<p>To get traffic stats on the interface, you first need to &#8220;Walk&#8221; the device.  Go back to your device list, and edit the device you added. Under &#8220;Associated Data Queries&#8221;, Add Data Query, add &#8220;SNMP &#8211; Interface Statistics&#8221; with Re-Index period as &#8220;Uptime goes backwards&#8221;. After adding it you should see under status something like: Success [39 Items, 6 Rows].</p>
<p>Since these data sources are now added, you can go back to Add a new Graph. After selecting the device, you should see a list of these new interfaces. Select the interfaces you wish to graph, and select the graph type (I suggest In/Out bits with Total).</p>
<p>After a few minutes, the data should start filling in. After a while, you will get a graph like this:</p>
<p><center><a href="http://systembash.com/wp-content/uploads/2009/08/graph_image.php1.png"><img src="http://systembash.com/wp-content/uploads/2009/08/graph_image.php1-300x120.png" alt="graph_image.php" title="graph_image.php" width="300" height="120" class="aligncenter size-medium wp-image-435" /></a></center></p>
<p><em>In conclusion</em>, with a little work, you can get enterprise class graphing from your consumer router. The total project took me about 45 minutes, and I was trying to figure out all of the data sources and the correct way to enter everything.</p>
<p>Let me know your experiences, suggestions and corrections!</p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/how-to-install-snmp-on-tomato-router-firmware-and-graph-traffic-with-cacti/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Easy Search and Replace in Multiple Files on Linux Command Line</title>
		<link>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/</link>
		<comments>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/#comments</comments>
		<pubDate>Thu, 07 May 2009 03:10:57 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=365</guid>
		<description><![CDATA[I recently came across a typo that existed in a bunch of html files on my web server. I thought it should be easy enough to change, but since it was in a number of files, editing it by hand would be time consuming. Fortunately, there is an easy, one liner command to replace the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across a typo that existed in a bunch of html files on my web server. I thought it should be easy enough to change, but since it was in a number of files, editing it by hand would be time consuming. Fortunately, there is an easy, one liner command to replace the text in multiple files in a sub directory using recursion.</p>
<pre>grep -lr -e '&lt;oldword&gt;' * | xargs sed -i 's/&lt;oldword&gt;/&lt;newword&gt;/g'</pre>
<p>This command broken down:</p>
<ul>
<li>grep for the word in a files, use recursion (to find files in sub directories), and list only file matches</li>
<li>| xargs passes the results from the grep command to sed</li>
<li>sed -i uses a regular expression (regex) to evaluate the change: s (search) / search word / target word / g (global replace)</li>
</ul>
<p>For more information, see man pages for grep, sed, and xarg. Also it is very handy to learn about <a href="http://www.regular-expressions.info/">regular expressions</a> as they are a valuable tool to any command line programmer!</p>
<h3>Update 2009/7/19:</h3>
<p>Thanks to reader btr we have a great one-line perl command that will perform the same task:</p>
<p>Perl provides a really nice one-line for this kind of thing:</p>
<p><code>perl -p -i -e ’s///g’ *</code></p>
<p>It also provides the option of creating a backup of each file changed:</p>
<p><code>perl -p -i.bak -e ’s///g’ *</code></p>
<p>mnemonic: PIE (”easy as pie”, etc.)<br />
google “perl pie” and you’ll get lots of info for other uses of this technique.</p>
<p><a href="http://www.linux.org/lessons/short/perlpie/perl_pie.html">http://www.linux.org/lessons/short/perlpie/perl_pie.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/easy-search-and-replace-in-multiple-files-on-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Password Protected Folder Gives 404 Not Found in Wordpress Installation Sub-folder.</title>
		<link>http://systembash.com/content/password-protected-folder-gives-404-not-found-in-wordpress-installation-sub-folder/</link>
		<comments>http://systembash.com/content/password-protected-folder-gives-404-not-found-in-wordpress-installation-sub-folder/#comments</comments>
		<pubDate>Tue, 05 May 2009 10:51:02 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=359</guid>
		<description><![CDATA[
Came across this little maddening issue again today after fixing it a few months back. I created a directory that is password protected using a .htaccess file. However, when trying to access this folder or anything under this directory, a File Not Found 404 error from Wordpress is displayed before it even prompts you for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-361" title="Wordpress" src="http://systembash.com/wp-content/uploads/2009/05/icon-wordpress.jpg" alt="Wordpress" width="50" height="50" /></p>
<p>Came across this little maddening issue again today after fixing it a few months back. I created a directory that is password protected using a .htaccess file. However, when trying to access this folder or anything under this directory, a File Not Found 404 error from Wordpress is displayed before it even prompts you for the password. The problem here lays within the main Wordpress .htaccess file</p>
<p>The default .htaccess file for WordPress is:</p>
<p><code># BEGIN wordpress<br />
&amp;lt;IfModule mod_rewrite.c&amp;gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&amp;lt;/IfModule&amp;gt;<br />
# END wordpress</code></p>
<p>This means that if a file is requested from the server, if it is not a file that exists in the server&#8217;s folder directory (!-f) and if it is not a directory that exists in the server&#8217;s folder directories (!-d) then pass the request onto index.php. This way, Wordpress will handle both customized URLs (such as those used for SEO) and also 404 File Not Found errors.</p>
<p>If you set up a password protected folder in a directory included in a Wordpress install, all of a sudden Wordpress takes over that folder and returns a 404 page, like the file doesn&#8217;t exist.</p>
<p>This happens because of a little &#8216;gotcha&#8217; in the apache configuration. Luckily it is an easy fix.</p>
<p>In the password protected folder&#8217;s .htaccess file, you may already have the entries to ask for password access. Before all of that, place the following line:</p>
<p>ErrorDocument 401 /401.html</p>
<p>Then create a 401.html in the main folder, with any text, for example:</p>
<p>PASSWORD PROTECTED FOLDER &#8211; Please enter the correct username/password.</p>
<p>Voila, you can now enter your password protected folder again.</p>
<p>There is another workaround this little error, but since it involves editing the main wordpress .htaccess file, it can be overridden during an upgrade.</p>
<p>Solution found on: <a href="http://www.webmasterworld.com/apache/3688208.htm">http://www.webmasterworld.com/apache/3688208.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/password-protected-folder-gives-404-not-found-in-wordpress-installation-sub-folder/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Simple Redirect Subdomain to a Directory</title>
		<link>http://systembash.com/content/simple-redirect-subdomain-to-a-directory/</link>
		<comments>http://systembash.com/content/simple-redirect-subdomain-to-a-directory/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 01:56:22 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=272</guid>
		<description><![CDATA[If you are running Apache for your web server, and mod_rewrite is installed (this is a pretty typicaly module on all installations) this is actually pretty easy.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.yourdomain\.com
RewriteRule ^(.*)$ http://www\.yourdomain\.com/subdomain/$1 [L]

Add this code to your apache configuration file &#8211; the easiest location is in the .htaccess file in your root web directory. This [...]]]></description>
			<content:encoded><![CDATA[<p>If you are running <a href="http://httpd.apache.org/">Apache</a> for your web server, and <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html">mod_rewrite</a> is installed (this is a pretty typicaly module on all installations) this is actually pretty easy.</p>
<pre class="prettyprint">RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.yourdomain\.com
RewriteRule ^(.*)$ http://www\.yourdomain\.com/subdomain/$1 [L]
</pre>
<p>Add this code to your apache configuration file &#8211; the easiest location is in the .htaccess file in your root web directory. This should redirect the browser with a 302 Found message. </p>
<p>You can do some pretty fancy things with mod_rewrite, but this is simple and gets the job done!</p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/simple-redirect-subdomain-to-a-directory/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Outlook 2003 or 2007 Won&#8217;t Save Hosted Exchange Password</title>
		<link>http://systembash.com/content/outlook-20032007-wont-save-hosted-exchange-password/</link>
		<comments>http://systembash.com/content/outlook-20032007-wont-save-hosted-exchange-password/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 13:04:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[hosted exchange]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=222</guid>
		<description><![CDATA[For many people using hosted Exchange services, password saving problems could plague you. That is mainly because Outlook doesn&#8217;t like it if the Exchange server&#8217;s domain doesn&#8217;t match your domain.
Fortunately there is a way around this, because by the default way it is set up, you would have to enter your password every time you [...]]]></description>
			<content:encoded><![CDATA[<p>For many people using hosted Exchange services, password saving problems could plague you. That is mainly because Outlook doesn&#8217;t like it if the Exchange server&#8217;s domain doesn&#8217;t match your domain.</p>
<p>Fortunately there is a way around this, because by the default way it is set up, you would have to enter your password every time you open up Outlook.</p>
<p>First step is to change the registry key:</p>
<p><code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</code></p>
<p><strong>Change lmcompatibilitylevel to &#8220;2&#8243;</strong></p>
<p>Here is the meanings of these numbers (<a href="http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/76052.mspx?mfr=true">source</a>):</p>
<blockquote><p>0 &#8211; Clients use LM and NTLM authentication, but they never use NTLMv2 session security. Domain controllers accept LM, NTLM, and NTLMv2 authentication.<br />
1 &#8211; Clients use LM and NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controllers accept LM, NTLM, and NTLMv2 authentication.<br />
2 &#8211; Clients use only NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controller accepts LM, NTLM, and NTLMv2 authentication.<br />
3 &#8211; Clients use only NTLMv2 authentication, and they use NTLMv2 session security if the server supports it. Domain controllers accept LM, NTLM, and NTLMv2 authentication.<br />
4 &#8211; Clients use only NTLMv2 authentication, and they use NTLMv2 session security if the server supports it. Domain controller refuses LM authentication responses, but it accepts NTLM and NTLMv2.<br />
5 &#8211; Clients use only NTLMv2 authentication, and they use NTLMv2 session security if the server supports it. Domain controller refuses LM and NTLM authentication responses, but it accepts NTLMv2.</p></blockquote>
<p>I&#8217;ve uploaded a registry file which will automatically make the change <a href="http://systembash.com/scripts/lmcompatibilitylevel.reg">here</a>.</p>
<p>You then need to access the advanced user dialog properties (see <a href="http://systembash.com/content/windows-xp-save-passwords-advanced-user-dialog/">my previous article</a> on this if you do not see a tab in Control Panel -&gt; Users &amp; Accounts dialog). <strong>Click &#8220;Manage Passwords&#8221; and then add a new entry</strong>. This entry should be the Exchange server&#8217;s real name &#8211; the name that pops up in your password prompt windows. In my example, in is MAILXXX.mail.lan.</p>
<p><center><img class="size-full wp-image-224" title="Save Password Dialog" src="http://systembash.com/wp-content/uploads/2008/09/savepasswds.jpg" alt="Advanced User Dialog Save Passwords" width="341" height="309" /></center></p>
<p>Finally, <strong>make sure that the Exchange server&#8217;s local name, MAILXXX.mail.lan, is in your hosts file</strong>. For most Windows XP folks, this is C:\WINDOWS\system32\drivers\etc\hosts.</p>
<p>The format is:</p>
<p><code>69.x.x.x MAILXXX.mail.lan</code></p>
<p>where the real accessible IP address is the first part, and the real Exchange server name is the section part. This allows your PC to locate the &#8220;Real&#8221; Exchange server name over the internet, even though it is not a real exchange server&#8217;s hostname on the internet.</p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/outlook-20032007-wont-save-hosted-exchange-password/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MediaCoder Profile for N800 Video Encoding</title>
		<link>http://systembash.com/content/mediacoder-profile-for-n800-video-encoding/</link>
		<comments>http://systembash.com/content/mediacoder-profile-for-n800-video-encoding/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 19:38:17 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[N800]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[AVI]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[Mediacoder]]></category>
		<category><![CDATA[transcoding]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=184</guid>
		<description><![CDATA[I use MediaCoder for most of my encoding/transcoding of video for playback on my PC and other devices. The N800 has a peculiar set of parameters for it&#8217;s video &#8211; if it doesn&#8217;t match up then it either won&#8217;t play back or will be very choppy.
I ended up selling the N800 but I thought I [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://mediacoder.sourceforge.net/">MediaCoder</a> for most of my encoding/transcoding of video for playback on my PC and other devices. The <a href="http://www.nseries.com/n800">N800</a> has a peculiar set of parameters for it&#8217;s video &#8211; if it doesn&#8217;t match up then it either won&#8217;t play back or will be very choppy.</p>
<p>I ended up selling the N800 but I thought I would pass this profile along to anyone who might use it.</p>
<pre class="prettyprint"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;MediaCoderPrefs&gt;
  &lt;node key="overall"&gt;
    &lt;node key="generic"&gt;
      &lt;node key="autoRevert"&gt;
        &lt;value&gt;Never&lt;/value&gt;
      &lt;/node&gt;
    &lt;/node&gt;
    &lt;node key="ui"&gt;
      &lt;node key="optionTab"&gt;
        &lt;value&gt;3&lt;/value&gt;
      &lt;/node&gt;
      &lt;node key="param"&gt;
        &lt;value&gt;1069,767,47,50&lt;/value&gt;
      &lt;/node&gt;
      &lt;node key="noWelcome"&gt;
        &lt;value&gt;4068&lt;/value&gt;
      &lt;/node&gt;
    &lt;/node&gt;
    &lt;node key="task"/&gt;
    &lt;node key="output"/&gt;
    &lt;node key="tagging"/&gt;
    &lt;node key="subtitle"/&gt;
    &lt;node key="decoding"/&gt;
    &lt;node key="audio"/&gt;
    &lt;node key="video"&gt;
      &lt;node key="format"&gt;
        &lt;value&gt;XviD&lt;/value&gt;
      &lt;/node&gt;
    &lt;/node&gt;
    &lt;node key="container"&gt;
      &lt;node key="format"&gt;
        &lt;value&gt;AVI&lt;/value&gt;
      &lt;/node&gt;
    &lt;/node&gt;
    &lt;node key="mplayer"/&gt;
    &lt;node key="preview"/&gt;
    &lt;node key="plugin"/&gt;
    &lt;node key="presets"/&gt;
    &lt;node key="httpd"/&gt;
    &lt;node key="server"/&gt;
  &lt;/node&gt;
  &lt;node key="audiosrc"&gt;
    &lt;node key="mplayer"/&gt;
    &lt;node key="winamp"/&gt;
    &lt;node key="lame"/&gt;
    &lt;node key="wavefile"/&gt;
  &lt;/node&gt;
  &lt;node key="audioenc"&gt;
    &lt;node key="lame"/&gt;
    &lt;node key="vorbis"/&gt;
    &lt;node key="faac"/&gt;
    &lt;node key="aacplus"/&gt;
    &lt;node key="nero"/&gt;
    &lt;node key="helix"/&gt;
    &lt;node key="helixmp3"/&gt;
    &lt;node key="fraunhofer"/&gt;
    &lt;node key="speex"/&gt;
    &lt;node key="musepack"/&gt;
    &lt;node key="ffmpeg"/&gt;
    &lt;node key="aac3gpp"/&gt;
    &lt;node key="amr"/&gt;
    &lt;node key="wavpack"/&gt;
    &lt;node key="flac"/&gt;
    &lt;node key="ape"/&gt;
    &lt;node key="tta"/&gt;
    &lt;node key="als"/&gt;
    &lt;node key="ofr"/&gt;
    &lt;node key="pcm"/&gt;
    &lt;node key="cli"/&gt;
  &lt;/node&gt;
  &lt;node key="videosrc"&gt;
    &lt;node key="mplayer"/&gt;
    &lt;node key="avisynth"/&gt;
  &lt;/node&gt;
  &lt;node key="videoenc"&gt;
    &lt;node key="xvid"/&gt;
    &lt;node key="x264"/&gt;
    &lt;node key="mencoder"/&gt;
    &lt;node key="ffmpeg"/&gt;
    &lt;node key="theora"/&gt;
    &lt;node key="dirac"/&gt;
    &lt;node key="amv"/&gt;
    &lt;node key="vfw"/&gt;
    &lt;node key="dumper"/&gt;
    &lt;node key="wm"/&gt;
    &lt;node key="remote"/&gt;
  &lt;/node&gt;
  &lt;node key="container"&gt;
    &lt;node key="mp4box"/&gt;
    &lt;node key="matroska"/&gt;
    &lt;node key="mencoder"/&gt;
    &lt;node key="mp4creator"/&gt;
    &lt;node key="atom"/&gt;
    &lt;node key="pmp"/&gt;
    &lt;node key="vcd"/&gt;
  &lt;/node&gt;
  &lt;node key="audiofilter"&gt;
    &lt;node key="resample"/&gt;
    &lt;node key="equalizer"/&gt;
    &lt;node key="channels"/&gt;
    &lt;node key="volume"/&gt;
    &lt;node key="surround"/&gt;
    &lt;node key="compressor"/&gt;
    &lt;node key="delay"/&gt;
    &lt;node key="extraStereo"/&gt;
    &lt;node key="extra"/&gt;
    &lt;node key="shibatch"/&gt;
  &lt;/node&gt;
  &lt;node key="videofilter"&gt;
    &lt;node key="scale"&gt;
      &lt;node key="enabled"&gt;
        &lt;value&gt;true&lt;/value&gt;
      &lt;/node&gt;
      &lt;node key="width"&gt;
        &lt;value&gt;352&lt;/value&gt;
      &lt;/node&gt;
      &lt;node key="height"&gt;
        &lt;value&gt;288&lt;/value&gt;
      &lt;/node&gt;
    &lt;/node&gt;
    &lt;node key="crop"/&gt;
    &lt;node key="expand"/&gt;
    &lt;node key="frame"/&gt;
    &lt;node key="eq"/&gt;
    &lt;node key="postproc"/&gt;
    &lt;node key="rotate"/&gt;
    &lt;node key="itf"/&gt;
    &lt;node key="denoise"/&gt;
    &lt;node key="unsharp"/&gt;
    &lt;node key="delogo"/&gt;
    &lt;node key="screenshot"/&gt;
    &lt;node key="thumb"/&gt;
    &lt;node key="extra"/&gt;
  &lt;/node&gt;
&lt;/MediaCoderPrefs&gt;
</code></pre>
<p>You can also download the file here: <a class="downloadlink" href="/scripts/N800.xml">N800.xml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/mediacoder-profile-for-n800-video-encoding/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
