<?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>x + 3 &#187; Vista</title>
	<atom:link href="http://xplus3.net/tag/vista/feed/" rel="self" type="application/rss+xml" />
	<link>http://xplus3.net</link>
	<description></description>
	<lastBuildDate>Fri, 19 Aug 2011 01:05:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Naming a .htaccess File in Windows</title>
		<link>http://xplus3.net/2009/04/25/naming-a-htaccess-file-in-windows/</link>
		<comments>http://xplus3.net/2009/04/25/naming-a-htaccess-file-in-windows/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 15:17:04 +0000</pubDate>
		<dc:creator>Jonathan Brinley</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[file naming]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://xplus3.net/?p=217</guid>
		<description><![CDATA[Windows likes files to have names. If you tell windows to change the name of a file to &#8220;.htaccess&#8220;, it will complain: &#8220;You must type a file name.&#8221; It seems to think that &#8220;htaccess&#8221; is the file extension for a nameless file. I just stumbled across a workaround, though. Name a file &#8220;.htaccess.&#8221; (notice the extra dot at the end). &#8230; <a href="http://xplus3.net/2009/04/25/naming-a-htaccess-file-in-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Windows likes files to have names. If you tell windows to change the name of a file to &#8220;<code>.htaccess</code>&#8220;, it will complain: &#8220;You must type a file name.&#8221; It seems to think that &#8220;<code>htaccess</code>&#8221; is the file extension for a nameless file.</p>
<p>I just stumbled across a workaround, though. Name a file &#8220;<code>.htaccess.</code>&#8221; (notice the extra dot at the end). Windows (Vista, not XP) will remove the trailing dot and give you a file named &#8220;<code>.htaccess</code>&#8220;.</p>
]]></content:encoded>
			<wfw:commentRss>http://xplus3.net/2009/04/25/naming-a-htaccess-file-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making jEdit Run Correctly on Vista</title>
		<link>http://xplus3.net/2009/01/27/making-jedit-run-correctly-on-vista/</link>
		<comments>http://xplus3.net/2009/01/27/making-jedit-run-correctly-on-vista/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 16:45:02 +0000</pubDate>
		<dc:creator>Jonathan Brinley</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jEdit]]></category>
		<category><![CDATA[UAC]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://xplus3.net/?p=173</guid>
		<description><![CDATA[I recently got a new computer at work, running Windows Vista. I&#8217;ve had Vista on my home computer for almost a year now, and I like it; it improves on XP in many ways. The UAC hadn&#8217;t caused me any issues at home, but it&#8217;s been involved in a few problems on this new computer. I say &#8220;involved&#8221; because the &#8230; <a href="http://xplus3.net/2009/01/27/making-jedit-run-correctly-on-vista/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently got a new computer at work, running Windows Vista. I&#8217;ve had Vista on my home computer for almost a year now, and I like it; it improves on XP in many ways. The <abbr title="User Account Control">UAC</abbr> hadn&#8217;t caused me any issues at home, but it&#8217;s been involved in a few problems on this new computer.</p>
<p>I say &#8220;involved&#8221; because the problems aren&#8217;t really the fault of UAC, but of the programs running afoul of it. We&#8217;ll use my installation of <a href="http://jedit.org/">jEdit</a> as an example.</p>
<h3>Installing jEdit</h3>
<p>I downloaded the Windows installer, ran the EXE, and clicked &#8220;Continue&#8221; and &#8220;Allow&#8221; to let it run as an administrator. Installation went smoothly, and the installer launched the program; so far, so good. I proceed to install a few plugins, set a few preferences, etc.; all is well. Then I reboot my computer after installing some other software&#8230;</p>
<p>When I try to open jEdit again, the program freezes. So I kill the <code>javaw</code> process and try again: same result. Try running it as an administrator: it opens just fine. What&#8217;s going on? I didn&#8217;t have any problems with it on my home computer.</p>
<h3>Tracking Down the Bug</h3>
<p>Now that I have the program open as an administrator, I can look at its activity log. What do I see?</p>
<pre>
Log: user.home=C:\Users\lits
</pre>
<p><code>C:\Users\lits</code> isn&#8217;t my home directory, it&#8217;s <code>C:\Users\jmbrinley</code>. lits is the username for the IT department that initially set up the computer for me. jEdit is trying to access files in another user&#8217;s home directory, and UAC is (rightfully) preventing it.</p>
<p>Where does jEdit get the idea that <code>C:\Users\lits</code> is my home directory? It seems to be related to a <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4787931">six-year-old bug in Java</a>, by which <code>user.home</code> does not necessarily equal the <code>%USERPROFILE%</code> environment variable. It might equal another user&#8217;s home directory, or the home directory of a user that no longer exists, or the former home directory of the current user. There&#8217;s no way to know. It seems I just got lucky when I installed at home.</p>
<h3>The Workaround</h3>
<p>You can work around this by explicitly setting <code>user.home</code> when you launch Java.</p>
<ol>
<li>Find the batch file jEdit made when it installed (probably at <code>C:\Program Files\jEdit\jedit.bat</code>).</li>
<li>After the path to the Java executable (<code>"C:\Windows\system32\javaw.exe"</code> on my system), add the flag <code>-Duser.home=%USERPROFILE%</code> so that the whole batch file looks like:
<pre>@echo off
start "jEdit startup" "C:\Windows\system32\javaw.exe" -Duser.home=%USERPROFILE% -Xmx192M -jar "C:\Program Files\jEdit\jedit.jar" -reuseview %*</pre>
</li>
<li>Find any shortcuts to jEdit, and change the target to <code>"C:\Program Files\jEdit\jedit.bat"</code> (use the path to your batch file, if different).</li>
<li>If you have &#8220;Open with jEdit&#8221; in your Explorer context menu, open your registry and go to <code>HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Open with jEdit\Command</code>. Set the default string to <code>"C:\Program Files\jEdit\jedit.bat" "%1"</code> (again, use the path to your batch file, if different).</li>
</ol>
<p>jEdit should now be in working order. I&#8217;d prefer to set <code>user.home</code> using an environment variable, to fix it across all Java programs, but I haven&#8217;t figured out how to do that, yet. In the meantime, this workaround gets the job done.</p>
]]></content:encoded>
			<wfw:commentRss>http://xplus3.net/2009/01/27/making-jedit-run-correctly-on-vista/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

