Archive

Archive for the ‘Technology’ Category

Code review

code_review.jpg

New era

wtf.jpg

What every programmer should know about memory

Very interesting reading for programmers:

http://lwn.net/Articles/250967/

Article by Ulrich Drepper.

Windows Vista jokes

This is what I got today:

windows-rip.jpg

Adobe Audition spectral view problem

I know many people suffer of suddenly disappearing spectral view in Adobe Audition 2 and 3. Here the workaround to solve this problem (found here)

Valid for AA2 and AA3.

Since this problem is related to the audition_settings.xml file, I found this workaround to solve the problem in AA spectral frequency view; note that it’s a workaround, it doesn’t solve the root cause of the problem.

Short description: make the audition_settings.xml file read-only.

Long description:

– Delete audition_settings.xml
– Start AA
– Leave AA running and go to C:\Documents and Settings\ [your name] \ Application Data \ Adobe \ Audition \ 2.0 or 3.0
– right click on the audition_settings.xml (re-created by AA), click properties, and check the read only box.

Spectral frequency display function is restored.

Solving WD My Book standby mode issue

Users all around the world complain on problems when using some models of WD My Book external drives (USB/Firewire) and this is the reason I’m writing this note in English.

I’ve bought my My Book Pro II several days ago with the only aim: I wanted to use it in RAID-1 (mirrored) mode as my external storage and backup. The main problem I’ve faced with was that the drive goes to standby mode 10 minutes after being in the idle state. It means that if the drive was not accessed during 10 minutes its internal controller causes the disks to stop spinning and the drive goes to “sleep mode”. This behavior would seem to be adequate if the user would the only person who accesses the drive. The problem is that different programs and services running in background of your favorite OS (mine is Windows XP) may from time to time request some data from the drive causing its unnecessary awakening. That happens, for example, running software tending to scan logical drives, also when opening Disk Management, etc. In short if you use your computer seriously, you may run into a situation when your My Book starts and stops rotating its disks very frequently that definitely shortens disks lifetime and may lead to disks failure after some time.

If you (like me) are going to use your WD My Book Pro II (or similar My Book model) as an external backup storage and planning to access it rarely (probably several times a day or even not once), there are two ways to solve the above problem. The first and the simpliest one is to disconnect your My Book when you do not need it taking off its USB/Firewire cable. Of course it is not the most elegant solution as it is very inconvenient to force yourself connecting your drive manually each time you need it. And so I’ve found one more much better solution which I’m going to share with you.

The idea behind the solution is that software/OS generally does not try to access drive which does not have a letter assigned to it. So, instead of taking off the cable it is possible to “unmount” the drive from the OS by removing its logical disk letter. And it turns out that this idea can be implemented easily under Windows XP.

Here step by step plan explaing everything:
* connect your My Book normally;
* in “My Computer” notice its drive letter, for example K:
* being in command prompt, run “diskpart” utility;
* list all disk volumes found in your computer by typing “list volume”;
* notice the volume number of you’re My Book and exit diskpart by typing “exit”;
* now create a text file called “show-MyBook.script” containing the following text

select volume = 7
assign letter = k

* now create a text file called “hide-MyBook.script” containing the following text

select volume = 7
remove letter = k

* create a batch file called “show-MyBook.bat” and write in it the following text:

diskpart /s show-MyBook.script

* create a batch file called “hide-MyBook.bat” and write in it the following text:

diskpart /s hide-MyBook.script

* now you have created two batch files that mount and unmount your My Book volume. Place this stuff on the Desktop or elsewhere.

Now you can run hide-MyBook.bat when you do not need your external storage. It will unmount your drive preventing other programs of accessing it and actually preventing it of casual awakening. Unmounting takes about a second.

When you need to access your My Book, run show-MyBook.bat. It will mount the drive back assigning him a letter.

Voila!