2008-08-14

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.

2008-06-17

3rd run

2.72 miles at 35 minutes. 314 calories.

2008-06-16

4 days later, ran longer

This is the second time I went running. This time I managed to do 2.5 miles in 30 minutes.
It was such a marked improvement. Last time, I stopped after 23 minutes because of exhaustion. This time, I actually sprinted in the last minute and could still go on for a long time if I wanted. But I didn't want to force myself yet, so I stopped at 30 minutes, just as I planned.

This is such a nice surprise. I regularly ran 9 years ago for 6 months but could never break the 2 miles or 20 minutes ceiling no matter how hard I tried. Back then I was still smoking 1 pack a day too.

Now, 9 years older at 32, I am doing better than ever!

Aching body -- starting to exercise

This coming Winter, I want to be fit enough to ski through Whitetail Mountain's Exhibition in the middle of February from top to bottom without stopping. The moguls will be big and the trenches deep. I've never been able to do it without stopping at least once.

So, I started running last Thursday. 1.75 miles in 23 minutes. I followed up with various weight exercises: wirst curl, bicep curl, tricep curl, shoulder dumbell shrug, back extension, bench press.

My body was sore the whole Saturday, but the pain has abated today. I'll do another one tomorrow.

2008-06-06

Vote Verification by Internet

http://ask.slashdot.org/comments.pl?sid=575131&cid=23673725


"
Vote Verification by Internet (Score:4, Interesting)
by srobert (4099) on Thursday June 05, @04:33PM (#23673725)

This is admittedly a little off-topic as it doesn't answer the original poster's questions, but I'd like to see a national system where, when I vote I'm issued a random number. When I get home I can look up my number on the net and it will show how I voted. That way I at least know how my own vote was counted.
"

All it shows is that the system can remember your vote. It does not show that your vote counts.

Katherine Heigl and Ashley Judd look similar?

I found that in many scenes in 27 Dresses, Katherine Heigl looks similar to Ashley Judd, at a glance. May be it's just me.

2008-05-20

Neighbour complained about cat

My neighbour complained about my cat, 'item, digging in her garden. She
wanted me to keep it indoor. Since I can't train it to stay off her
garden, I have no choice but constraint it within mine. I need a
cat-proof fence.

These pages are the ones that interest me most:

http://www.hsus.org/pets/pet_care/cat_care/fence_me_in.html
http://www.purrfectfence.com/default.asp
http://www.catfence.com/index.htm
http://www.feralcat.com/fence.html


Unfortunately, the lowest rate for commercial fencing, at $2/foot, is
still higher than what I am willing to spend.

The do-it-yourself route (last link) seems cheap. I'll go to local
hardware store and calculate the total cost for the materials. If it
is cheaper than $2/foot, then I'll go that route. And if I were to
succeed, I'll post photos.