<?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>Brooks Moses: Notes on Divergent Simulations &#187; Assorted Tinkering</title>
	<atom:link href="http://notes.dpdx.net/category/assorted-tinkering/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.dpdx.net</link>
	<description>Fluid Dynamics, Computer Simulations, and Assorted Tinkering</description>
	<lastBuildDate>Tue, 06 May 2008 05:23:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Daylight Saving Time updates for Windows 2000 and 98</title>
		<link>http://notes.dpdx.net/2007/03/14/daylight-saving-time-updates-for-windows-2000-and-98/</link>
		<comments>http://notes.dpdx.net/2007/03/14/daylight-saving-time-updates-for-windows-2000-and-98/#comments</comments>
		<pubDate>Thu, 15 Mar 2007 05:37:53 +0000</pubDate>
		<dc:creator>Brooks</dc:creator>
				<category><![CDATA[Assorted Tinkering]]></category>

		<guid isPermaLink="false">http://notes.dpdx.net/2007/03/14/daylight-saving-time-updates-for-windows-2000-and-98/</guid>
		<description><![CDATA[I just found out today, when I turned my laptop on, that Microsoft&#8217;s &#8220;Windows Update&#8221; updates for Windows 2000 do not include a fix to make it compatible with the new version of Daylight Saving Time.  (And, yes, apparently &#8220;Saving&#8221; is correct and &#8220;Savings&#8221; incorrect.  I didn&#8217;t know that before.)  Apparently since [...]]]></description>
			<content:encoded><![CDATA[<p>I just found out today, when I turned my laptop on, that Microsoft&#8217;s &#8220;Windows Update&#8221; updates for Windows 2000 do not include a fix to make it compatible with the new version of Daylight Saving Time.  (And, yes, apparently &#8220;Saving&#8221; is correct and &#8220;Savings&#8221; incorrect.  I didn&#8217;t know that before.)  Apparently since it&#8217;s not a security issue, they feel no need to actually do anything much about it.</p>
<p>There are, however, solutions.  First, there&#8217;s the <a href="http://support.microsoft.com/kb/914387">semi-official Microsoft solution</a>, which involves some really hairy poking around in the system registry.  (And, by &#8220;really hairy&#8221;, I mean that it looks signficantly more so than poking around in the system registry usually is.)</p>
<p>There&#8217;s also a handy little freeware utility that does those changes for you automatically, created by the fellow who runs IntelliAdmin.com.  His blog post describing it is <a href="http://www.intelliadmin.com/blog/2007/01/unofficial-windows-2000-daylight.html">here</a>, and the actual download is <a href="http://www.intelliadmin.com/DaylightSavingFix.exe">here</a>.  I tried it out, and as far as I can tell it worked perfectly (aside from not actually closing the window when done).  He suggests setting your clock ahead to November to watch the time flip over to see if it worked, but it&#8217;s easier just to go into the &#8220;Time&#8221; control panel that you get from right-clicking on the clock and selecting &#8220;Adjust Date/Time&#8221;, and looking at the &#8220;Time Zone&#8221; panel to make sure it says &#8220;Pacific Daylight Time&#8221; (or whatever) rather than &#8220;Pacific Standard Time&#8221; for the time zone.</p>
<p>For those of you still running Windows 98, he also wrote a fix for that, even though there isn&#8217;t an official Microsoft solution at all.  The blog post about that one is <a href="http://www.intelliadmin.com/blog/2007/02/windows-98-me-dst-patch.html">here</a>, and the download is <a href="http://www.intelliadmin.com/DaylightSavingFix98.exe">here</a>.</p>
<p>It&#8217;s an interesting observation on advertising, too.  It probably took him a day or so to code up this program and test it, and he&#8217;s now got a first-page Google hit for people looking for a solution to one of the bigger problems of the month &#8212; and people like me are passing around links to his blog, too.  You just can&#8217;t buy advertising that good.</p>
<p>(The <a href="http://www.intelliadmin.com/blog/default.htm">rest of his blog</a> looks fairly interesting, too, if you&#8217;re doing Windows administration.  <a href="http://www.intelliadmin.com/blog/2007/02/create-date-and-time-stamp-in-your_15.html">This little trick for automatically putting the current date in a filename</a> is particularly neat, for instance.)</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.dpdx.net/2007/03/14/daylight-saving-time-updates-for-windows-2000-and-98/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Time synchronization in a VMWare box running GNU/Linux</title>
		<link>http://notes.dpdx.net/2007/03/07/time-synchronization-in-a-vmware-box-running-gnulinux/</link>
		<comments>http://notes.dpdx.net/2007/03/07/time-synchronization-in-a-vmware-box-running-gnulinux/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 09:11:48 +0000</pubDate>
		<dc:creator>Brooks</dc:creator>
				<category><![CDATA[Assorted Tinkering]]></category>

		<guid isPermaLink="false">http://notes.dpdx.net/2007/03/07/time-synchronization-in-a-vmware-box-running-gnulinux/</guid>
		<description><![CDATA[For a lot of the GCC and GNU Fortran development work that I&#8217;m doing, it&#8217;s much more convenient to work on a GNU/Linux box &#8212; the compilation process is set up in a way that is rather slow on Windows (even under Cygwin), and so testing changes is much quicker under Linux.  On the [...]]]></description>
			<content:encoded><![CDATA[<p>For a lot of the GCC and GNU Fortran development work that I&#8217;m doing, it&#8217;s much more convenient to work on a GNU/Linux box &#8212; the compilation process is set up in a way that is rather slow on Windows (even under Cygwin), and so testing changes is much quicker under Linux.  On the other hand, my main computer runs Windows, and I don&#8217;t want to be running two computers all the time, much less be rebooting all the time.  Thus, I&#8217;m running a GNU/Linux installation &#8212; Debian stable, to be precise &#8212; in a VMWare virtual machine.  I can access the files on it via Samba and Windows file sharing almost as easily as files directly on my disk, and PuTTY is one of the nicest terminal windows I&#8217;ve used, and it generally is quite a nice way to do things.</p>
<p>One particularly nice feature is that, since all of the GNU/Linux stuff is operating in a single process on the Windows side, it&#8217;s easy to set the whole thing to a priority of BelowNormal, and thus even when I&#8217;ve got a compilation running and taking up as much CPU as it can hog, it doesn&#8217;t slow down anything else I&#8217;m doing at all.  And it turns out that there&#8217;s enough slack in the system that this doesn&#8217;t give it any noticable lag in the terminals, even.</p>
<p>The one problem with that is that it completely confuses the software clock on the operating system in the virtual machine, though.  When I&#8217;ve been using the CPU heavily on the Windows side of things, I&#8217;ve seen the GNU/Linux time lose 10 minutes out of 15!  VMWare does a nice job of keeping the hardware clock up-to-date, but Debian is set up so that everything depends on the software clock, which only gets synchronized to the hardware clock on bootup.  It&#8217;s not a critical problem, really, but it&#8217;s somewhat annoying to have to remember that a file date of three days ago (or whatever) means &#8220;a minute ago&#8221;.</p>
<p>The right solution to this is not <tt>ntpdate</tt> or some other NTP solution.  The Windows clock is already synchronized over the network, and the VMWare virtual hardware clock is synchronized to that (I presume), and so there&#8217;s no need for adding extra traffic to the network.  (Especially since it&#8217;s dialup, and disconnected from the internet and any NTP servers half the time.) Nor is the solution something like <tt>adjtimex</tt>, which tweaks the speed of the software clock; the time skew is a function of Windows-side computer load, and thus quite random, and a static speed tweak is not much of an improvement.</p>
<p>Instead, a better solution is <tt>hwclock --hctosys</tt>, which synchronizes the software clock to the hardware clock.  Because the skew is quite large and needs correction quite often (and because <tt>cron</tt> is using the skewed software clock for timing, and thus loses time), I added the following to my root crontab:<br />
<code><br />
* * * * * /sbin/hwclock --hctosys<br />
</code></p>
<p>So far, it seems to be working beautifully.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.dpdx.net/2007/03/07/time-synchronization-in-a-vmware-box-running-gnulinux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>On replacing the right light bulb.</title>
		<link>http://notes.dpdx.net/2006/04/29/on-replacing-the-right-light-bulb/</link>
		<comments>http://notes.dpdx.net/2006/04/29/on-replacing-the-right-light-bulb/#comments</comments>
		<pubDate>Sun, 30 Apr 2006 02:58:56 +0000</pubDate>
		<dc:creator>Brooks</dc:creator>
				<category><![CDATA[Assorted Tinkering]]></category>

		<guid isPermaLink="false">http://notes.dpdx.net/2006/04/29/on-replacing-the-right-light-bulb/</guid>
		<description><![CDATA[A few days ago, the front left turn signal in my wife&#8217;s Geo Metro stopped working, and so one of my chores today was to replace it.  I went down to the garage with a pair of screwdrivers and the new bulb, expecting that it would be a pretty simple repair.
A 1997 Geo Metro [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, the front left turn signal in my wife&#8217;s Geo Metro stopped working, and so one of my chores today was to replace it.  I went down to the garage with a pair of screwdrivers and the new bulb, expecting that it would be a pretty simple repair.</p>
<p>A 1997 Geo Metro is one of the cars with an integrated headlight-and-signal-light unit that&#8217;s accessed from the front corner of the engine compartment, so I popped the hood and went to work.  The lens is held on by a couple of obvious clips, so I removed those.  No luck; obviously there was something else that needed to be unfastened on the bottom, too.  The next obvious thing to undo were a couple of large screws holding the entire light unit on.  I removed those, and still no luck — there was something holding it on the outside bottom corner, which I couldn&#8217;t figure out how to get to.</p>
<p>This, I concluded, was the appropriate time to read the documentation, in the form of the owner&#8217;s manual.  The owners manual explained that one didn&#8217;t actually remove the lens or the housing at all, but replaced the bulbs by reaching in behind the light housing, unfastening the socket, and pulling it out.  It went on to say — and this is only a mild paraphrase — &#8220;Reaching the socket to unfasten it is actually physically impossible unless you are a leprechaun.  You will want to take your car to the dealer and let them do it.&#8221;  Back to plan A.</p>
<p>Some more investigation found the third screw holding the headlight unit in place, hidden in a cavity behind the bumper that I could either look into or reach into at any given time, but not both.  So I removed that while contemplating the pipes running across the ceiling, and pulled out the headlight unit, and pulled the socket out of the now-accessible back of it, and discovered a small light bulb entirely unlike the one that the parts store had sold me to replace it.</p>
<p>A small light bulb which, to all appearances, seemed perfectly intact and functional.</p>
<p>Some further testing of the corresponding lights on the other side of the car informed me that what I had just gone to all of that effort to access was not, in fact, the turn signal light at all, but merely the parking light, which was just as functional as it appeared.</p>
<p>So, thus enlightened, I reassembled the headlight unit with only slightly less effort than had been required to disassemble it, and then replaced the actual turn signal bulb, which is in the middle of the front bumper behind a lens that&#8217;s held in place by two quite obvious and quite visible screws that are, as it turns out, entirely trivial to remove and replace.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.dpdx.net/2006/04/29/on-replacing-the-right-light-bulb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing AC power plugs in various HP and Compaq laptops</title>
		<link>http://notes.dpdx.net/2006/03/18/fixing-ac-power-plugs-in-various-hp-and-compaq-laptops/</link>
		<comments>http://notes.dpdx.net/2006/03/18/fixing-ac-power-plugs-in-various-hp-and-compaq-laptops/#comments</comments>
		<pubDate>Sat, 18 Mar 2006 21:48:41 +0000</pubDate>
		<dc:creator>Brooks</dc:creator>
				<category><![CDATA[Assorted Tinkering]]></category>

		<guid isPermaLink="false">http://notes.dpdx.net/2006/03/18/fixing-ac-power-plugs-in-various-hp-and-compaq-laptops/</guid>
		<description><![CDATA[(This is a slightly-edited repost of an article I wrote elsewhere, back in 2004.)
Some time ago, I posted a comment on This Is Broken, noting my frustration with motherboard-mounted AC power jacks on laptops, and noting that I had fixed a couple of them by following some online directions.  Several people asked me to [...]]]></description>
			<content:encoded><![CDATA[<p>(This is a slightly-edited repost of an article I wrote elsewhere, back in 2004.)</p>
<p>Some time ago, I posted a comment on <a href="http://broken.typepad.com">This Is Broken</a>, noting my frustration with motherboard-mounted AC power jacks on laptops, and noting that I had fixed a couple of them by following some online directions.  Several people asked me to explain further, and I decided it would be useful to write up a more detailed explanation of how I did it.</p>
<p>First, the keywords: My experience is with a Compaq Presario 1210 laptop (which is very similar to the Compaq 1600 series), and a pair of HP Pavilion xf235 laptops, but this should apply to most similar laptops; the advice is mostly generic.</p>
<p>The problem, in short, is that most laptops have their AC power jacks hard-mounted to the motherboard just like any other soldered-on component, and for many of them this is the only structural connection. Unlike most other components, though, power jacks regularly get yanked on when someone steps on the power cord or such, and the solder joints (or the mounting tabs, which after all are pretty thin metal) start to fatigue, and eventually they crack. At this point, the laptop will only charge if the plug is twiddled &#8220;just so&#8221; (if at all), and doesn&#8217;t work reliably.</p>
<p>The official solution, of course, is to replace the motherboard &#8212; which fixes the symptom, but not the overall design problem. On a laptop with a street value of $300, this is also not an economical solution. But it does mean that you don&#8217;t really have anything to lose if you toast the motherboard trying to fix it yourself.</p>
<p>So. Enough preamble. Here&#8217;s how I fixed the problem.</p>
<p><span id="more-12"></span></p>
<p>DISCLAIMER: THIS IS A DESCRIPTION OF HOW I DID THIS REPAIR. FOLLOW THESE INSTRUCTIONS AT YOUR OWN RISK, AND USE YOUR OWN JUDGEMENT; I MAKE NO WARRANTY THAT YOU WILL HAVE A WORKING LAPTOP WHEN YOU FINISH. SOME MINOR STEPS HAVE BEEN OMITTED.</p>
<p>On the Compaq, I used the solution that I found on <a href="http://www.delanoscientific.com/cpq1675.html">http://www.delanoscientific.com/cpq1675.html</a>. Essentially, you take a three-inch strand of some form of heavy-but-flexible two-conductor wire &#8212; that site recommends a good grade of speaker wire, but I happened to have a dead iBook power supply that I salvaged some wire from &#8212; and solder a socket on the end of it that matches the plug on the power cord, feed it through the original power jack hole in the case, and solder the other end to the motherboard where the original power jack used to be. One trick is to tie a knot in this new pigtail just inside the case, so that pulling on it only pulls on the knot, rather than pulling on the solder connections.</p>
<p>On the two HP Pavilion computers, I found a better solution. There is a hole in the case, right next to where the power jack goes, that&#8217;s intended for a PS/2 keyboard or mouse plug on other versions of the laptop. However, it&#8217;s unused and blanked off, which makes it a great place to put a case-mounted power jack &#8212; and it turns out that a standard 1/2&#8243;-diameter panel-mount jack fits perfectly. I used a Philmore No. 248 &#8220;DC Power Jack&#8221;, which has 2.5mm x 5.5mm pin and socket diameters, thereby matching the original plug. While you&#8217;re at the electronics shop, get a decent soldering iron and a power supply for it that lets you control the temperature. If you haven&#8217;t done much soldering before, find some sort of discarded computer-board junk that you can practice on.</p>
<p>Here&#8217;s what the new case-mounted jack looks like when it&#8217;s installed; the original power jack hole is just to the left of it:</p>
<p><center><img src="http://www.stanford.edu/~bmoses/Power_Jack_1.jpg"></center></p>
<p>Actually doing the replacement took me about two hours, on the last one I did. The time-consuming part is that you need to completely disassemble the laptop to remove the motherboard. This starts (on the HP Pavilion computers) with gently popping out the panel above the keyboard that has the CD playback and volume controls on it, and continuing by removing every screw you come across. A digital camera is a very useful timesaver here; photograph the screwdriver pointing to every screw you remove, put the screw next to a number on a numbered piece of paper, and photograph it there &#8212; then, go through the photos backwards and you have a detailed set of reassembly instructions.</p>
<p>When you have the motherboard all the way out, the next step is to remove the remnants of the old power jack, and solder on some one-inch-long wires (or the pigtail, if you&#8217;re not using a case-mounted jack; remember to feed it through the case first!) in its place.</p>
<p>Here, it&#8217;s worth noting that the original power jack has three pins, and acts somewhat like a switch. One pin goes to the ground, and becomes connected to the power-adaptor ground when the adaptor is plugged in to the laptop. The second pin is the +19.5V (or whatever the power voltage is) line; when the adaptor is not plugged in, it becomes connected to the ground pin. The third pin is a logic pin for determining when the adaptor is connected; it is open-circuit when the adaptor is not plugged in, and connected to the ground pin when it is.  (Unfortunately, I didn&#8217;t keep a record of which pin goes with which connection to post here; sorry.)</p>
<p>This could theoretically be problematic with the pigtail-mounted socket, as that socket only has two connections &#8212; the logic line for sensing whether the adaptor is connected does not exist. I simply ignored this problem on the Compaq laptop, and the computer seemed to work fine; it may or may not work properly on other computers. On the case-mounted jack, there are three lines, so this is not an issue.</p>
<p>Meanwhile, speaking of the case-mounted jack for the HP Pavilion laptops, there&#8217;s the issue of attaching it in the case. Remove the blanking plate from the case by appropriate means (I did this by grinding off the heat-swaged mounting pins), and install the jack in the hole that this leaves. You&#8217;ll need to remove a bit of material from the inside top of the jack to prevent interference with the top half of the case later; now is a good time to do that. Also, if you want to be fancy, you can cut a small rectangle out of the blanking plate and superglue it in place to cover the old power-jack hole.</p>
<p>Anyhow, you then reinstall the motherboard (with its new wiring) in the case, and &#8212; if using the case-mounted jack &#8212; connect the wires to the jack. On the HP Pavilions, make sure the wires aren&#8217;t over the LEDS immediately behind it on the motherboard; there are clear-plastic &#8220;light pipes&#8221; that have to go on top of those, and the wires can easily get in the way. Then reassamble the laptop, and that&#8217;s &#8220;all there is to it&#8221;.</p>
<hr/>
<p>In comments on the original version, someone mentioned that <a href="http://www.laptopjacks.com/index.php">http://www.laptopjacks.com</a> sells exact replacements for the original laptop power jacks, if you want to go that route, though they&#8217;re rather more expensive than the generic parts.  Other people mentioned repairing the following laptops (which I&#8217;ll list for the sake of Google) with this advice: HP Pavillion 1150, Compaq Presario 1685, HP ze1115, HP xt412, HP Pavilion ZE43xx series, Compaq 2195US, and a Compaq 2100.  I&#8217;m particularly entertained by the fellow from Montana with the Compaq 2100; he couldn&#8217;t find the right replacement fitting, and so ended up using a trailer-hitch plug set from the local truck stop.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.dpdx.net/2006/03/18/fixing-ac-power-plugs-in-various-hp-and-compaq-laptops/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>
