2008-11-14

Water pump old vs new

From 1994 Sentra GA16DE 1.6L:


new vs old water pump. The old one had been on the car for 5 years and was leaking.


2008-09-25

darcs recorded modifications to ghost files

I was trying to branch out a one year old project, but got a strange error:

$ darcs get +DBMigration DBMigration.copy
Unapplicable patch:
Mon Jul 23 14:53:41 EDT 2007 Yohanes Santoso
* added sisc-1.16.6 external package
darcs: ./src/com/example/DBMigration/Frob1.class: openBinaryFile: does not exist (No such file or directory)



I checked the changelog and found that the second patch on the tree recorded modifications to files that were never added to the repository:


$ darcs changes -s | tail
Mon Jul 23 14:53:41 EDT 2007 Yohanes Santoso
* added sisc-1.16.6 external package

A ./external_package/
A ./external_package/sisc-1.16.6.zip
M ./src/com/example/DBMigration/Frob1.class
M ./src/com/example/DBMigration/Migrate.class
M ./src/com/example/DBMigration/TemplateRepository.class

Mon Jul 23 10:19:02 EDT 2007 Yohanes Santoso
* initial import

A ./src/
A ./src/com/
A ./src/com/example/
A ./src/com/example/DBMigration/
A ./src/com/example/DBMigration/Frob1.java
A ./src/com/example/DBMigration/Migrate.java
A ./src/com/example/DBMigration/TemplateRepository.java


The imported files were the java source files, but somehow that patch recorded modifications to the class files which were never imported.

I tried many ways to fix this so I can get my branch, but found modifying the patches repository directly was the only one that worked.

Patch files are stored in _darcs/patches directory. They are gzip-ed text files. Each represent a changeset (darcs record). I located all the files that contain references to these .class files, and edited them out. It worked!

2008-09-19

Brokers meltdown

Today started with yet another rally. S&P 500 is currently at 105% of yesterday's closing, which itself was also a 105% of the closing on the day before yesterday.

Crazy. Now I'm trying to dump stocks I've been buying on the cheap, but my brokers (tradeking and etrade) websites are absolutely crawling. The tradeking one even crashed briefly.

Come on, come back up quickly, I need to sell my stocks to this frenzied people.

2008-09-04

Which of the following is the largest?

Gish Gallop

Hah! I've been looking for this exact phrase for sometime:

Gish Gallop


it is a debate technique that drowns the opponent in bullshits, lies and half-truths. The opponent is left having to explain and correct the claims lest he is assumed to accept them.

2008-08-14

A much easier way to access Samba share on Linux guest on Windows host

There is a much simpler solution to my earlier's one.

Steps:

  1. Create a VirtualBox's HIF and attach it to the VM.
  2. Set its IP address to, say, 192.168.2.1.
  3. Start the guest OS.
  4. From within the guest OS, give a static address to the HIF, say, 192.168.2.2.
  5. From host OS, make sure you can ping 192.168.2.2
  6. From the guest OS, make sure you can ping 192.168.2.1

This establishes a private network between the host and the guest. The guest is perceived as another node in the network hosting a Samba share.

VirtualBox: Accessing Samba share on Linux guest on Windows host

Environment: VirtualBox 1.6.4 (latest as of 2008-08-14) running on Windows XP SP3. Guest is a Debian GNU/Linux.

The goal is to have the host Windows able to mount a Samba share provided by the guest as long as the Samba instance is running. To accomplish that, we are going to create a loopback adapter interface on the host, use VirtualBox's HIF on the guest, and bridge the two interfaces together.

Steps:

  1. Add a Microsoft Loopback Adapter device (through ControlPanel->Add Hardware).
  2. Create a VirtualBox's HIF and attach it to the VM.
  3. Go to Control Panel->Network Connections.
  4. Highlight the loopback device and the HIF, and right-click 'Create Bridge'.
  5. Go to the newly created bridge's property and set its IP address to, say, 192.168.2.1. The guest OS will be able to contact the host OS with this address.
  6. Start the guest OS.
  7. From within the guest OS, give a static address to the HIF, say, 192.168.2.2.
  8. From host OS, make sure you can ping 192.168.2.2
  9. From the guest OS, make sure you can ping 192.168.2.1
At this point, from the host Windows, you should be able to do this:

net use e: \\192.168.2.2\the_share_name "password_for_share" /user:username_for_share /persistent:no


Update 2008-08-14: You don't have to create a bridge. There's a simpler method.

2008-07-23

Apheresis left me weak

Yesterday a blood donation bus came by the office for the quarterly donation drive. I'd donated whole blood twice before; but this time, the bus had an apheresis machine for doing Double Red Blood Cell process.

Human has an average of 12 units of blood (a unit is 450ml). It is composed primarily of plasma (55%) and red blood cells (45%). A whole blood donation removes one unit of this mixture. A Double Red Blood Cell procedure removes one unit of only RBC, which is about the same amount of RBC removed in 1/4.5= 2.2 whole blood donation.

I had one needle stuck into a vein on the inside of elbow. Blood was first drawn into the machine. It then separated out the whole blood to plasma and RBC. The plasma and some saline were returned to the vein through the same needle. This cycle was repeated four times. The procedure took 40 minutes vs. 30 minutes for whole blood.

When the plasma was being returned, I could feel that it was cold. My fingertips and lips were prickling because of the cold. I was at that point where I would almost start shivering.

I felt weak throughout the day, weaker than after doing whole blood donation. When I got home, I slept almost immediately. I felt good about donating, though.

2008-07-21

Hard red clay soil

Over the weekend, I opened up a patch of the lawn for a vegetable garden. Removing the sod was easily accomplished using a square spade inserted just under the root. I then just jam the spade repeatedly along the sod-soil boundary. It peeled off readily.

After about half an hour of doing this, I realised that that meant my soil was hard as concrete. I immediately reached for the garden fork but tried hard I did, I couldn't make a dent deeper than 3 cm. A digging bar didn't fare much better either at 10 cm.

It was dried clay under the grass. How the grass could survive or how the clay got so dry under the grass was beyond my understanding. Helpful discussions in gardenweb.com pointed out that moist clay soil was easier to work on.

I was not going to waste water hosing down the dry soil. I mulched it instead and am waiting for a rain. Once it gets easier to work with, I'll insert garden fork as deep as I can and lever the soil up. This will allow some air and mulch to drop inside through the crack. The trapped mulch will entice worms to go deeper and till the soil for me.

2008-07-14

Killing a mulberry tree

Killing a mulberry tree is hard. You can cut it down to a stump, but by next month there will be several new sprouts. It has a deep taproot so digging it out is difficult. It is made even more difficult by its propensity for growing near fences.

I have two of them (black mulberry) in my yard on a fence corner. One is quite tall, 5m, the other was about 2.5m. I cut down the shorter one to a stump a year ago because it was so near to the fence post. Earlier this year, I was surprised to see new growths from the stump. That was before I knew the tree was a mulberry tree.

I don't want to use salt to kill the tree because I feel that the salt will affect the area. After all, the salt has to go somewhere. Even if all of the salt is absorbed by the root, when the root decomposes, the salt will leach out.

So I put a thick (3mil) black plastic bag over the stump and weighted the edges. The bag will cause the sun to bake the stump and also deprive it access to sunlight. I'll open it up in October to see if it does the trick.

The taller one will stay for now because it bears fruit and provides shade. I need to ruminate on its fate.



PS.

I had been trying to identify all the trees on the property ever since I bought it. The basswood out front was quite easy to identify and so was the holly tree (it was so distinctive). I used various online tree identification sites to no avail. It was not until wife remarked on the berry-like fruit that I finally know where to start searching: berry trees.

BTW, I found a post in gardenweb site explaining why they grow alongside fence while searching for a way to kill it.