<?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>ball of lightning [dot] com &#187; windows</title>
	<atom:link href="http://balloflightning.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://balloflightning.com</link>
	<description>Hitting more home runs than Julio Lugo since 2002...</description>
	<lastBuildDate>Tue, 08 Nov 2011 03:41:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Symbolic links (symlinks) in Windows 7 or Vista</title>
		<link>http://balloflightning.com/2011/01/symbolic-links-symlinks-in-windows-7-or-vista/</link>
		<comments>http://balloflightning.com/2011/01/symbolic-links-symlinks-in-windows-7-or-vista/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 02:55:43 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[symlinks]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://balloflightning.com/?p=128</guid>
		<description><![CDATA[One feature that was notoriously absent from Windows until recently was the ability to create symbolic links. A symbolic link is merely a small piece of code that is put in some physical location (DIR1) which tells the operating system to move somewhere else (DIR2) when software attempts to access DIR1. I use this feature [...]]]></description>
			<content:encoded><![CDATA[<p>One feature that was notoriously absent from Windows until recently was the ability to create <a href="http://en.wikipedia.org/wiki/Symbolic_link">symbolic links</a>. A symbolic link is merely a small piece of code that is put in some physical location (DIR1) which tells the operating system to move somewhere else (DIR2) when software attempts to access DIR1. I use this feature regularly in OS X or other Linux distributions, mainly as a way to sync files through <a href="http://db.tt/WR2MzbB">Dropbox</a> without having to messily move where my software stores my files, although I also like shortening the absolute path to various directories that look like they were named by a scientist having too much fun with alphabet magnets on the fridge.</p>
<p>In Unix speak, this is quite easy&#8211; open up a terminal window and type:</p>
<p><code>ln -s /PATHTO/DIR2/ /PATHTO/DIR1/</code></p>
<p>This has finally been added in Windows Vista and Windows 7, but remains somewhat sloppy and confusing. Here is a very brief reference for those trying to do a similar thing in Windows, with emphasis on the flags.</p>
<p><code>mklink \PATHTO\DIR1\file.txt \PATHTO\DIR2\file.txt</code></p>
<p>You will be returned with:</p>
<p><code>symbolic link created for \PATHTO\DIR1\file.txt <<===>> /PATHTO\DIR2\file.txt</code></p>
<p>This is the most basic entry for creating a symlink between <em>files</em>. The one issues? This creates a <em>soft link</em> (essentially the same as creating a shortcut in Windows Explorer). If I am doing something like <a href="index.php?p=62">syncing my Keepass database</a>, I will actually break this symlink because the software will not be forwarded to the file on a basic level&#8211; it will merely sit in the folder and go &#8220;where the hell is my database?&#8221; and either create a blank one or give some other error message.</p>
<p>To solve this problem we need to use the <strong>/H</strong> flag which tells Windows to create a <em>hard link</em>. A hard link physically points to the secondary location. You’ll want to use this option if you are trying to trick an application into looking for a different directory. For me, <em>most of the time.</em></p>
<p><code>mklink <strong>/H</strong> \PATHTO\DIR1\file.txt \PATHTO\DIR2\file.txt</code></p>
<p>Now that&#8217;s how to symlink <em>files</em>&#8211; you need additional flags for <em>directories</em>. <strong>/D</strong> tells Windows that you are creating directory links, not file links. If you only use /D you will create a soft link. <strong>/J</strong> instructs the OS to create a &#8220;junction&#8221; which is (functionally) the equivalent of the hard links discussed above. In most cases I find myself using /D and /J before the link and target.</p>
<p><code>mklink <strong>/D /J</strong> \PATHTO\DIR1\ \PATHTO\DIR2\</code></p>
<p>Also remember, if you type &#8220;mklnk&#8221; at the command prompt, you will be returned with basic instructions for using the functions described above:</p>
<p><code>C:\Users\balloflightning>mklink<br />
MKLINK [[/D] | [/H] | [/J]] Link Target</p>
<p>        /D      Creates a directory symbolic link.  Default is a file<br />
                symbolic link.<br />
        /H      Creates a hard link instead of a symbolic link.<br />
        /J      Creates a Directory Junction.<br />
        Link    specifies the new symbolic link name.<br />
        Target  specifies the path (relative or absolute) that the new link<br />
                refers to.</code></p>
<p>Hopefully the above helps demystify the procedure a bit, however.</p>
]]></content:encoded>
			<wfw:commentRss>http://balloflightning.com/2011/01/symbolic-links-symlinks-in-windows-7-or-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Timed shutdown in Windows?</title>
		<link>http://balloflightning.com/2010/05/timed-shutdown-in-windows/</link>
		<comments>http://balloflightning.com/2010/05/timed-shutdown-in-windows/#comments</comments>
		<pubDate>Sun, 23 May 2010 03:53:56 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[down]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[shut]]></category>
		<category><![CDATA[shutdown]]></category>
		<category><![CDATA[timed]]></category>
		<category><![CDATA[timer]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://balloflightning.com/?p=81</guid>
		<description><![CDATA[I recently came across the issue where I was syncing a large number of files to my Dropbox computer at my office&#8211; unfortunately, I had an appointment I needed to get to and couldn&#8217;t spend an hour waiting for 4,000 files to get uploaded. My options were to shut the computer down (and not have [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across the issue where I was syncing a large number of files to my <a href="http://www.dropbox.com">Dropbox</a> computer at my office&#8211; unfortunately, I had an appointment I needed to get to and couldn&#8217;t spend an hour waiting for 4,000 files to get uploaded.  My options were to shut the computer down (and not have access to the files until the next day) or leave the computer running all night (with logged in credentials).  Or were they?  Few people know that Windows actually has a <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/shutdown.mspx?mfr=true">built in shutdown timer</a> within the DOS prompt.</p>
<p><a title="In case you REALLY need help, here's a link!" href="http://commandwindows.com/runline.htm">Press the start button, click on Run, and type &#8220;cmd.&#8221;</a> Press enter.</p>
<p>The shutdown flag allows you to shut down (or restart) either a local or remote machine.  Used without parameters it merely logs the user off.  However you can add&#8230;</p>
<p><strong>-l</strong><strong> </strong><strong>: </strong>Logs off the current user, this is also the defualt. -m <em>ComputerName</em> takes precedence.</p>
<p><strong>-s </strong><strong>: </strong>Shuts down the local computer.</p>
<p><strong>-r</strong><strong> </strong><strong>: </strong>Reboots after shutdown.</p>
<p><strong>-a</strong><strong> </strong><strong>: </strong>Aborts shutdown. Ignores other parameters, except <strong>-l</strong> and <em>ComputerName</em>. You can only use <strong>-a</strong> during the time-out period.</p>
<p><strong>-f</strong><strong> </strong><strong>: </strong>Forces running applications to close.</p>
<p><strong>-m </strong><strong>[</strong><strong>\\</strong><strong><em>ComputerName</em></strong><strong>] </strong><strong>: </strong>Specifies the computer that you want to shut down.</p>
<p><strong>-t</strong><strong> </strong><strong><em>xx</em></strong><strong> </strong><strong>: </strong>Sets the timer for system shutdown in <em>xx</em> seconds. The default is 20 seconds.</p>
<p><strong>-c</strong><strong> </strong><strong>&#8220;</strong><strong><em>message</em></strong><strong>&#8220;</strong><strong> </strong><strong>: </strong>Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.</p>
<p><strong>-d</strong><strong> [</strong><strong>u</strong><strong>][</strong><strong>p</strong><strong>]</strong><strong>:</strong><strong><em>xx</em></strong><strong>:</strong><strong><em>yy</em></strong><strong> </strong><strong>: </strong>Lists the reason code for the shutdown. The following table lists the different values.</p>
<p>For example, when you use the command window and type&#8230;</p>
<p>shutdown -s -f -t 3600</p>
<p>&#8230; it shuts down the machine (-s) while forcing applications to close (-f) in one hour (-t 3600).  Helpful for situations like the one I outlined above or when you are streaming a movie to an external monitor and don&#8217;t feel like getting out of bed after realizing &#8220;Jeez, even <em>pirating</em> <a title="Couples Retreat - Wikipedia" href="http://en.wikipedia.org/wiki/Couples_Retreat">Couples Retreat</a> was a huge waste of time.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://balloflightning.com/2010/05/timed-shutdown-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically sync KeePass passwords between a PC and Mac (or even Linux)</title>
		<link>http://balloflightning.com/2010/01/automatically-sync-keepass-passwords-between-a-pc-and-mac-or-even-linux/</link>
		<comments>http://balloflightning.com/2010/01/automatically-sync-keepass-passwords-between-a-pc-and-mac-or-even-linux/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 22:42:36 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[keepass]]></category>
		<category><![CDATA[keepassx]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://balloflightning.com/?p=62</guid>
		<description><![CDATA[For the last few months I&#8217;ve been investigating some of the eminent password storage software out there. And encryption is really nice, but honestly, one of the most glaringly obvious uses would be so that I wouldn&#8217;t have to use the same passwords over and over again for websites that don&#8217;t store &#8220;critical data&#8221; (banking, [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few months I&#8217;ve been investigating some of the eminent password storage software out there.  And encryption is really nice, but honestly, one of the most glaringly obvious uses would be so that I wouldn&#8217;t have to use the same passwords over and over again for websites that don&#8217;t store &#8220;critical data&#8221; (banking, identification, etc.) but require accounts to be set up for online use.</p>
<p>While I was enamored with 1Password (and still am) the biggest hurdle to it&#8217;s adoption is that I own a PC and a Mac (<a href="http://balloflightning.com/2009/02/dual-partition-a-usb-drive-for-time-machine-and-windows/">remember</a>?).  Syncing the password database between computers is therefore a necessity, and syncing across operating systems (XP/7 to OS X and vice versa) even moreso.  This was certainly doable with KeePass and KeePassX, although KeePassX didn&#8217;t support a global auto-type hotkey.  A password storage system is rendered virtually useless if every single time I have to log into a different web page I have to bring up the KeePassX window; copy my information to the clipboard, bring the focus back to FireFox, and type it in.  Well, good news!  An <a href="http://www.keepassx.org/forum/viewtopic.php?f=5&#038;t=1920">updated (albeit currently unsupported) version of KeePass (based on v0.4.1)</a> adds auto-type functionality!</p>
<p>So now that we have auto-type everywhere, how to sync so we can use our KeePass databases everywhere we go?  Well it&#8217;s very easy.</p>
<p>1.) If you aren&#8217;t using Dropbox yet, start.  Go to <a href="http://db.tt/WR2MzbB">Dropbox</a> (click this link if you plan on following this tutorial, it&#8217;s the balloflightning&#8217;s referral!), set up and account, download the software, and set it up so both (or however many you have) machines are synced.  Create a folder somewhere in your Dropbox scheme (by default under Documents -> My Dropbox) called &#8220;KeePass.&#8221;<br />
2.) Download and install KeePassX (Mac) <a href="http://www.keepassx.org/forum/viewtopic.php?f=5&#038;t=1920">here</a>.  Download and install KeePass <strong>Classic </strong>(Windows) <a href="http://keepass.info/download.html">here</a>.  <em>Note: We need to download the &#8220;classic&#8221; version because KeePassX still uses the old .kdb format instead of the new .kdbx.  While we can set triggers in the new Windows version to automatically pop out a .kdb version AND a .kdbx every time we edit a password on that computer, we can&#8217;t edit .kdb&#8217;s on the Mac and automatically import them into KeePass on the Windows box.  And that makes syncing unfun.</em><br />
3.) On the Windows box (you can do it the other direction, too, but I found the Windows KeePass interface to be a bit more intuitive) open KeePass and create a new database.  Set a &#8220;master password&#8221; and repeat.  Don&#8217;t let this password suck too much; after all, you&#8217;ll be MINIMIZING the number of passwords you have to remember&#8211; at the very least you can do a good job coming up with a solid password that gives access to&#8211; well&#8211; everything else.  Use a key file, too, if you&#8217;d like, but I find it unnecessary; it&#8217;s always something you can add later.<br />
4.) Click &#8220;save as&#8221; and save the .kdb file to the directory you previously created within your dropbox scheme.  Temporarily close KeePass on Windows and open KeePassX on the Mac.  Browse to the newly created (and synced) database file and click open.  Enter password.  Try creating a few keys.  Save.  Close.<br />
5.) Re-open the Windows version.  Now you should only be prompted for the password (no browsing needed) and you should see your KeePass passwords in Windows.  Congrats; you&#8217;ve done the heavy lifting!</p>
<p>A few notes; this will work between a PC/Linux or Linux/Mac as well.  The same general steps apply although you will need the KeePass <a href="http://www.keepassx.org/downloads">repo for your Linux flavor or you can compile from source</a>.  If you are a Linux user, I figure you probably don&#8217;t really need directions on how to do that.  Second, KeePass (and therefore KeePassX) don&#8217;t automatically update the database while the program is running.  Therefore, when you are adding keys be careful not to add different keys on different computers while both are still open.  Dropbox handles conflicts well but you will lose some keys depending on what was open and what was being edited at the time.  As a rule of thumb, when I first started migrating to KeePass I never had it running on more than one computer at a time.  Once you have a stable database, it&#8217;s fine to have multiple instances going at once (it will typically ask to open in &#8220;read-only&#8221; anyways).</p>
<p>You can turn auto-type on and off by doing the following:<br />
Windows:  Tools -> Options -> Advanced tab -> Auto-Type button (lower right).<br />
Mac:  KeePassX -> Preferences -> Advanced</p>
<p>Some final notes to get auto-type running flawlessly on your computer.  As a general practice, I had two lines to the comments of every key.</p>
<p>Auto-Type-Window: *balloflightning.com*</p>
<p>This aids KeePass/X in finding the window you want to auto-type in.  I&#8217;ve found great success with the Firefox add-on &#8220;<a href="https://addons.mozilla.org/en-US/firefox/addon/9231">Hostname</a>&#8221; which puts the domain name of the current web-site in the title bar.  It may add a bit of clutter to your windows, but it provides you a surefire way to make sure KeePass/X is only auto-typing in the proper Firefox window/tab.  The &#8216;*&#8217; are wildcards, signifying KeePass/X will find whatever window has XXXXX balloflightning.com XXXXX in it.  Obviously, you change the hostname between the &#8216;*&#8217; to whatever key you are storing (i.e., paypal.com, ebay.com, etc.)</p>
<p>Auto-Type: {USERNAME}{TAB}{PASSWORD}{ENTER}</p>
<p>This is the custom sequence for the target window.  {USERNAME} and {PASSWORD} are the stored username and password, {TAB} is&#8230; well&#8230; tab and {ENTER} is also self-explanatory.  In some cases you may be forced to modify this (for example, I have to add a {TAB} after {USERNAME} every once in a while because the websites have a &#8220;click here to remember me&#8221; form.</p>
<p><img src="/images/keepasssync1.png" alt="Example Keepass custom sequence and target window" /></p>
<p>Some people will find that in OS X, tabbing will result in certain portions of forms (checkboxes, radio buttons, dropdowns, etc.) being skipped.  This creates a bit of a problem here because the sequences will then not match between Windows and Mac.  Solution?</p>
<p>1.) Open System Preferences<br />
2.) Go to Keyboard &#038; Mouse<br />
3.) Select &#8220;All controls&#8221; for full keyboard access</p>
<p><img src="/images/keepasssync2.png" alt="Setting tabs in Firefox to include all forms" /></p>
<p>For a Firefox-only solution, you can also add / change the accessibility.tabfocus Firefox option via about:config to one of the following:  <strong>3</strong> to be able to tab to form controls or <strong>7</strong> to be able to tab to everything</p>
]]></content:encoded>
			<wfw:commentRss>http://balloflightning.com/2010/01/automatically-sync-keepass-passwords-between-a-pc-and-mac-or-even-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>&#8220;Use Printer Offline&#8221;</title>
		<link>http://balloflightning.com/2009/11/use-printer-offline/</link>
		<comments>http://balloflightning.com/2009/11/use-printer-offline/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 05:23:22 +0000</pubDate>
		<dc:creator>Colin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://balloflightning.com/?p=52</guid>
		<description><![CDATA[Lately, I have been unable to print from my old (yet rock solid) Brother MFC-210C. The sequence of events is thus. 1.) The printer is automatically selected to &#8220;use printer offline.&#8221; 2.) Upon deselecting &#8220;use printer offline,&#8221; the print status of any documents in the queue is changed to &#8220;Error &#8211; printing&#8221; at which point [...]]]></description>
			<content:encoded><![CDATA[<p>Lately, I have been unable to print from my old (yet rock solid) <a href="http://www.brother-usa.com/mfc/ModelDetail.aspx?ProductID=MFC210C">Brother MFC-210C</a>.  The sequence of events is thus.</p>
<p>1.)  The printer is automatically selected to &#8220;use printer offline.&#8221;<br />
2.)  Upon deselecting &#8220;use printer offline,&#8221; the print status of any documents in the queue is changed to &#8220;Error &#8211; printing&#8221; at which point anything in the queue will hang.<br />
3.)  The printer will reset itself to &#8220;use printer offline&#8221; upon power cycle or OS reboot, therefore leading to an endless cycle of 1, 2, and 3.</p>
<p>It turns out my issue was in the <a href="http://www.iogear.com/">IOGEAR</a> USB hub I use.  I&#8217;m not sure if Windows 7 is having trouble dealing with the drivers (it was working in XP about a week ago) or the hub is just flat-out fried.  Either way, I&#8217;ve seen a lot of threads on Google with the same problem but lack a resolution.  Here&#8217;s one more thing to try, even if it&#8217;s a &#8220;well, duh.&#8221;  If that doesn&#8217;t work, it can&#8217;t hurt to go with the always popular &#8220;reinstall the driver.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://balloflightning.com/2009/11/use-printer-offline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

