<?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>Unified Diff &#187; Random</title>
	<atom:link href="http://www.unifieddiff.com/category/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unifieddiff.com</link>
	<description>crazy hacks with a side of shouting</description>
	<lastBuildDate>Sun, 05 Feb 2012 02:47:32 +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>Vista: Defective By Design</title>
		<link>http://www.unifieddiff.com/2008/04/27/vista-defective-by-design/</link>
		<comments>http://www.unifieddiff.com/2008/04/27/vista-defective-by-design/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 00:40:39 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.robertjcarroll.com/?p=28</guid>
		<description><![CDATA[After ten months, I&#8217;ve had a reasonably pleasant experience with Windows Vista. But I recently had a series of problems that really made me consider switching back to Linux on my desktop. I came home from work Monday to find that my computer had restarted after seventy-two days uptime. I had been in the middle [...]]]></description>
			<content:encoded><![CDATA[<p>After ten months, I&#8217;ve had a reasonably pleasant experience with Windows Vista. But I recently had a series of problems that really made me consider switching back to Linux on my desktop.</p>
<p>I came home from work Monday to find that my computer had restarted after seventy-two days uptime. I had been in the middle of a project the night before so I already wasn&#8217;t happy when I sat down. I tried to launch the Event Viewer to see what had caused the reboot, but got this error:</p>
<p><em>&#8220;Windows cannot access the specified device, path, or file. You may not have appropriate permissions to access the item.&#8221;</em></p>
<p>Now, I&#8217;m running as a least-privileged administrator with UAC enabled. I was never prompted to elevate. In fact, forcing it to elevate did nothing. And because the local administrator account is disabled, by default, I was out of luck.</p>
<p><span id="more-28"></span></p>
<p>I downloaded the <a href="http://home.eunet.no/pnordahl/ntpasswd/">NT Offline Password Cracker</a> and unlocked the local administrator account. This let me at least login with admin privileges. I tried again to launch the Event Viewer, but this time it silently failed. Strangely, starting the Microsoft Management Console and then adding the Event Viewer snap-in worked.</p>
<p>The log showed that several services were failing to start on boot due to insufficient privileges. I opened &#8220;My Computer&#8221; to look at the file ACLs and the label for my boot disk said &#8220;Access Denied&#8221;. Clicking on the icon yielded the same error in a message box.</p>
<p>I ran chkdsk and it found file system corruption. Apparently the security descriptors for the boot volume were corrupted. I downloaded <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&#038;displaylang=en">subinacl</a> and took ownership of the volume root and then granted myself full access. I could at least see my files now, but some directories were still inaccessible. So I fixed permissions at the root and forced propagation through the entire file system tree.</p>
<p>Upon reboot, most services were able to start again. The System Event Notification Service wouldn&#8217;t start because it couldn&#8217;t write to the event logs. So I granted &#8220;Local Service&#8221; full permissions on the logs. Everything seemed to be fixed.</p>
<p>I let Windows install its 3,278,904,732,984 updates and then finally Service Pack 1. After the SP1 installation, I tried to login but was greeted with this little gem:</p>
<p><em>&#8220;The Software Licensing Service reported that the license store contains inconsistent data.&#8221;</em></p>
<p>and then I was automatically logged out. How special. Fortunately I remembered an <a href="/images/hackwin98.gif">old trick</a> from Windows 98 and clicked on the help link in the message box. In the help article was a link to contact technical support. Clicking on that started Internet Explorer. From there, starting Windows Explorer was cake.</p>
<p>I wasn&#8217;t exactly sure what to do since my copy of Windows was genuine. So, I thought, what if I forced Windows to re-activate? I remembered reading several months prior, that it was possible to <a href="http://www.downloadsquad.com/2007/02/26/run-windows-vista-for-120-days-without-activation-key/">&#8220;re-arm&#8221;</a> Windows and set the evaluation clock back to zero. That fixed the licensing error and I didn&#8217;t even have to re-activate.</p>
<p>Everything seemed to finally be working again. Except Windows Update wanted to download and install SP1 again. So, I let it do that and it broke the licensing mechanism again! After fixing that again, Windows Update still thought SP1 wasn&#8217;t installed. I checked the Windows version and sure enough, I was using build 6000! wtf?</p>
<p>In the end, I had to flatten my machine to completely fix everything. I now have Windows installed and up-to-date. I&#8217;m annoyed that I had go to such lengths to re-gain access to my computer. But as a developer, I understand that sometimes software fails. File system corruption isn&#8217;t fun, but it was mostly fixable.</p>
<p>The part that I find really bothersome is that Windows wouldn&#8217;t let me use MY computer with MY licensed installation because something was corrupted. I understand the desire for ISVs to protect their products, but licensing mechanisms can introduce defects and cause undesirable side-effects. Like any operating system, Linux has issues. But there&#8217;s one issue it will never have: failure due to licensing software.</p>
<p>I&#8217;m happy to see the &#8220;reduced functionality mode&#8221; has been eliminated in Vista SP1. But, in following with a <a href="http://draginol.joeuser.com/article/209">good article on the subject</a>, I think Microsoft should spend less time on license enforcement and more time on software quality.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2008/04/27/vista-defective-by-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Playing with SQL Server 2005</title>
		<link>http://www.unifieddiff.com/2006/06/28/sql-server-2005/</link>
		<comments>http://www.unifieddiff.com/2006/06/28/sql-server-2005/#comments</comments>
		<pubDate>Wed, 28 Jun 2006 07:21:14 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.robertjcarroll.com/2006/06/28/sql-server-2005/</guid>
		<description><![CDATA[I recently setup a SQL server, running Microsoft SQL Server 2005 Developer Edition. Installation was smooth, with a prettier interface than SQL 2000. The disk space requirement was a bit high, but not unreasonable. The suite now includes a special management studio that uses the VS IDE. In the past, developers needed to use an [...]]]></description>
			<content:encoded><![CDATA[<p>I recently setup a SQL server, running Microsoft SQL Server 2005 Developer Edition. Installation was smooth, with a prettier interface than SQL 2000. The disk space requirement was a bit high, but not unreasonable.</p>
<p>The suite now includes a special management studio that uses the VS IDE. In the past, developers needed to use an MMC snap-in to manage databases. It was usable, but generic. Features weren&#8217;t obvious and the interface was clumsy. The new feature-rich interface is much more friendly and intuitive.</p>
<p>But the IDE does, however, carry the same massive footprint as Visual Studio. I would have preferred it if they had kept the MMC snap-in for server use. Needing to install the IDE on the server seems silly, considering the amount of use it would get. Overall, though, I&#8217;m impressed with the software.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2006/06/28/sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Vista Beta 2 in VMware</title>
		<link>http://www.unifieddiff.com/2006/06/20/vista-beta2-vmware/</link>
		<comments>http://www.unifieddiff.com/2006/06/20/vista-beta2-vmware/#comments</comments>
		<pubDate>Wed, 21 Jun 2006 03:46:15 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Beta]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.robertjcarroll.com/2006/06/20/vista-beta2-vmware/</guid>
		<description><![CDATA[Like many other developers, I wanted a chance to play with Windows Vista Beta 2. So I downloaded the whopping 3.2 GB DVD image (in twelve minutes). Since I don&#8217;t have a spare machine powerful enough to handle it, I decided to install Vista in a VMware virtual machine. This was, to say the least, [...]]]></description>
			<content:encoded><![CDATA[<p>Like many other developers, I wanted a chance to play with Windows Vista Beta 2. So I downloaded the whopping 3.2 GB DVD image (in twelve minutes). Since I don&#8217;t have a spare machine powerful enough to handle it, I decided to install Vista in a VMware virtual machine. This was, to say the least, not a clean and pleasant experience.</p>
<p>I opened my existing &#8220;Beta 1&#8243; virtual machine with 256 MB of RAM and 8 GB of hard disk space, set the ISO as the boot media, and started it. Setup started, but then presented me with this:</p>
<p><em>The file WinSetup.dll could not be loaded or is corrupt. Setup cannot continue.</em></p>
<p><span id="more-22"></span></p>
<p>Disappointment took hold, but a quick Google search told me that my RAM was insufficient. So I increased it to 512 MB and the problem disappeared. With a renewed hope, I again started setup. This time setup prompted me with a different message:</p>
<p><em>A required CD/DVD device driver is missing. If you have a driver floppy disk, CD, DVD, or USB flash drive, please insert it now.</em></p>
<p>I was stuck, since choosing &#8220;Cancel&#8221; looped back to the prompt. I attempted to search online for any mention of this error, but found nothing relevant. I also attempted to locate suitable drivers, but came up empty again. So I moved on to &#8220;Plan B&#8221;.</p>
<p>I created a new virtual disk, installed Windows XP, and booted into it. I was able to start Windows Vista setup from there without error. I typed my product key and started the installation process. While attempting to copy files,  setup threw up with this error:</p>
<p><em>Setup was unable to locate a locally attached hard drive suitable for holding temporary Setup files.</em></p>
<p>Another quick Google search revealed that this was caused by not having sufficient disk space. I remembered having this problem with Beta 1, so I tried the newest minimum. After three or four attempts, I was finally successful with 25 GB.</p>
<p>Once Vista was installed, it was time to remove the Windows XP virtual disk. So I copied &#8220;bootsect.exe&#8221; from the Vista DVD, onto a floppy disk, and booted with a BartPE CD. I copied &#8220;C:\bootmgr&#8221; and &#8220;C:\Boot\&#8221; to the &#8220;e&#8221; drive and then ran &#8220;bootsect.exe /nt60 /force e:&#8221;. Once I verified that the boot loader was working, I removed the virtual disk and&#8230; tada!&#8230; it worked.</p>
<p align="center"><a href="/images/vistabeta2.png"><img src="/images/vistabeta2t.png"></a></p>
<p>VMware tools installation was smooth, with the exception of the network adapter drivers. Back when I tested Beta 1, the vmxnet driver was not yet compatible with Vista. Following a suggestion from the VMware community, I switched the card to AMD PCnet. Since I had that setup already, I chose to install the driver and let it be. But I am curious if vmxnet works now.</p>
<p>While I realize this is a beta test release, the setup process leaves much to be desired. Development releases should contain more information, not less. Indescript errors are frustrating and difficult to diagnose. Hopefully, the operating system itself is better in this regard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2006/06/20/vista-beta2-vmware/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Active Directory and Linux</title>
		<link>http://www.unifieddiff.com/2006/06/16/active-directory-linux/</link>
		<comments>http://www.unifieddiff.com/2006/06/16/active-directory-linux/#comments</comments>
		<pubDate>Sat, 17 Jun 2006 03:47:50 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Interix/SFU]]></category>
		<category><![CDATA[Kerberos]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.robertjcarroll.com/2006/06/16/active-directory-linux/</guid>
		<description><![CDATA[I maintain several client and server machines that, up until recently, all authenticated users locally. I wanted a more centralized mechanism that could handle the various users and systems on the network. The big catch is that a few key system run Linux while others run Windows. So after doing some research, I turned to [...]]]></description>
			<content:encoded><![CDATA[<p>I maintain several client and server machines that, up until recently, all authenticated users locally. I wanted a more centralized mechanism that could handle the various users and systems on the network. The big catch is that a few key system run Linux while others run Windows. So after doing some research, I turned to Active Directory.</p>
<p>My first chore was to install Windows Server 2003 and configure it to be a domain controller. This part was fairly easy, although a little time-consuming. Once that was working I was able to quickly join the Windows machines to the domain. Now to deal with Linux&#8230; for that I chose Windows Services for Unix. This software alters the AD schema to allow for Unix account attributes. On the Linux machines, I installed OpenLDAP, a Kerberos client, configured PAM&#8230; and voila! Now AD users can authenticate on the Linux machines.</p>
<p>My home-made DHCP/DNS configuration tool, however, was a little trickier. The data for this tool is stored in a MySQL database and accessed via a PHP script. If I wanted to grant someone access to the tool, I needed to first give them a MySQL account. Since Active Directory is basically an LDAP server, I rewrote the authentication mechanism to query AD.</p>
<p>With very little work, I was able to simplify authentication and account management. While this is not new technology, I still feel all warm and fuzzy with a sense of accomplishment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2006/06/16/active-directory-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET Rocks!</title>
		<link>http://www.unifieddiff.com/2006/03/23/dotnet-rocks/</link>
		<comments>http://www.unifieddiff.com/2006/03/23/dotnet-rocks/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 03:30:53 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[DotGNU Portable.NET]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.robertjcarroll.com/2006/03/23/dotnet-rocks/</guid>
		<description><![CDATA[I recently had the impossible task of making one of my applications work on OS X. The school uses Microsoft SQL Server 2000 to house its huge volumes of data. The server is integrated with Active Directory to allow for trusted connections. This means that when a client connects to the server, they need only [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the impossible task of making one of my applications work on OS X. The school uses Microsoft SQL Server 2000 to house its huge volumes of data. The server is integrated with Active Directory to allow for trusted connections. This means that when a client connects to the server, they need only to authenticate locally in the domain. This makes password and privilege maintenance much easier.</p>
<p>The bad part is that only Windows client operating systems are capable of supporting trusted connections (NT Authentication). This means that I can&#8217;t write a program to interface with the database server unless it&#8217;s running on Windows. So when I was asked to make my Windows creation work on a Mac, I was at a loss. Fortunately, I had been writing the suite of tools in VB.NET, so I started investigating the possibility of running a .NET app on OS X.</p>
<p>I found two contenders: <a href="http://www.mono-project.com/">Mono</a> and <a href="http://www.dotgnu.org/">DotGNU Portable .NET</a>. Both projects are free implementations of the .NET standard. Mono doesn&#8217;t seem to have the anti-Microsoft sentiment and was easier to install. Right out of the gate, Mono allowed me to run a .NET app on OS X. PNET complained about ncurses not being installed. While this is probably a simple fix, it was one step that Mono did not require.</p>
<p>The end result? I managed to clone my VB.NET app in C# and make it run smoothly on a Mac. High five for .NET!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2006/03/23/dotnet-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jumping on the Bandwagon</title>
		<link>http://www.unifieddiff.com/2006/01/24/jumping-on-the-bandwagon/</link>
		<comments>http://www.unifieddiff.com/2006/01/24/jumping-on-the-bandwagon/#comments</comments>
		<pubDate>Tue, 24 Jan 2006 14:53:26 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[&#8220;Why would anyone care to read my opinions on a website?&#8221; That was the excuse I used for never having started my own blog. And for the longest time I was comfortable with that. But now-a-days I&#8217;m seeing other computing professionals sharing their thoughts about products, personal projects, and even works-for-hire. Microsoft has a special [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Why would anyone care to read my opinions on a website?&#8221; That was the excuse I used for never having started my own blog. And for the longest time I was comfortable with that.</p>
<p>But now-a-days I&#8217;m seeing other computing professionals sharing their thoughts about products, personal projects, and even works-for-hire. Microsoft has a special <a title="MSDN Blogs" href="http://blogs.msdn.com">blogging site</a> for its employees to blab about company products. I am consistently finding good and helpful information from that website. And that&#8217;s just one of many.</p>
<p>Using the Internet as a publishing platform has definite advantages. Instead of handing prospective employers my resume, I can point them to my website. I tried this approach with my present employer&#8230; and it worked. The other big advantage is a little more altruistic. I know something&#8230; and you can know it, too, if I publish it. The point is that innovation breeds through collaboration.</p>
<p>In following with a <a title="Why Blog?" href="http://www.techuser.net/whyblog.html">good article</a> that I recently read, I&#8217;m going to give this blogging thing a try. I think I shall write about my field &#8212; software systems and information security. These are great topics that I&#8217;m really interested in. And who knows?&#8230; maybe somebody will get something out of my ramblings.</p>
<p>So&#8230; here&#8217;s my blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2006/01/24/jumping-on-the-bandwagon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

