contact

Archive for February 18th, 2008

Western Digital MyBook does not power up

Monday, February 18th, 2008

 I recently bought a Western Digital 500GB Mybook and was very pleased. The Firewire 800 is really fast and the automated power up and down is very convenient. I haven’t been to my flat for about three weeks now and was shocked to see that my Mybook would not show any sign of life when I connected it to my Macbook Pro. Pushing the button, using USB or Firewire 400 did not change anything either. No need to throw away your harddrive yet. The solution is simple:

Simply disconnect the power adapter, and all connections to your computer. Then reconnect and it should power up and fulfill its duty.

Using Anchors and GET variables

Monday, February 18th, 2008

Well in general it is impossible to use them both. So http://www.yourdomain.com/yourpage.php?get=fubar#anchor1 is not going to work in most browsers, so we want to forget about that. I solved this problem with a little javascript workaround and an additional GET varibale. So step one is that your links would have to include a get variable “?a=YourAnchor”. Now we dont use the usual anchor but place a div with the id YourAnchor at the position we want the page to jump to. I use some javascript that is called when the page loads and the looks up the div with the id YourAnchor and scrolls the page to its position.

</pre>
<div id="YourAnchor"></div>
onload="go_to('<?php echo $_GET['a']; ?>')"

//in order to call the function simply place the following code in your body tag
<pre>

note that this is quite insecure though.