Sunday, November 27, 2011

Ubuntu and power saving

With Ubuntu 10.04, there was one thing that really bugged me.  Every time when I unplugged the power, the netbook would go into a sort of sleep mode.  I needed to reboot the machine at twice to get back.

With Ubuntu 11.10, I can report this problem has been fixed.






Friday, November 25, 2011

EAC is crashed by Adobe Drive ...

I have been using EAC for a long time and have never had a problem before until today.  I had installed EAC on my laptop with 64bits Windows 7.   Everytime I ran it, it crashed miserably.  Initially I thought it is the problem with compatibility or permissions, so I tried to run EAC as Windows XP compability mode and as administrator.  Needless to say both failed.

After a bit of searching, it seems th culpit is Adobe Drive in CS4 as suggested on

http://www.digital-inn.de/exact-audio-copy-english/37892-eac-crash-vista-x64.html

I did as suggested to deregistered the two Adobe Drive DLLs, and my problem fixed.

regsvr32 /u "%CommonProgramFiles%\Adobe\Adobe Drive CS4\ADFSMenu.dll regsvr32 /u "%CommonProgramFiles%\Adobe\Adobe Drive CS4\AdobeDriveCS4_NP.dll

Intel CPU Whines ...

I have a Clevo N540R laptop and it has been doing well with one exception it makes high pitch noise occasionally.  I have checked the cooling fan and it seems okay.  After checking all the usually suspects, I ran out of ideas.  Then I hit Google and search for the term "laptop high pitch noise".  Guess what, I am not alone.  This seems to be quite a common problem, and surprisingly it is related to the Intel processor.  It seems it is something to do with the processor goes to C1 idle state.

see: http://superuser.com/questions/121883/any-way-to-disable-specific-cpu-idle-cx-states

Initially I thought, it can't be, can it?  I followed the instructions posted on one of the forum as below:




1) Typing in the command line "regedit", you go to the registry key:


HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Power \ PowerSettings \ 54533251-82be-4824-96c1-47b60b740d00 \ 5d76a2ca-e8c0-402f-a133-2158492d58ad


2) To enable one or another hidden parameter, it is necessary to find and edit the value DWORD, changing its value SettingValue from 1 to 0.

3) Then, through the control panel – power – in the settings mode select power management processor.
There will be an option disabling idle processor and high pitched noise immediately disappears.

Guess you can guess the result.  My problem went too!

(original solution from : http://forums.whirlpool.net.au/archive/1526684)


Tuesday, November 22, 2011

Permission ... NTFS

Today I came across this handy command prompt tool Xcacls.exe which allows user to view and set permission in command prompt. GUI is great for most situations, but there are time you can do it easier and faster with a single command rather than thousand clicks.


http://support.microsoft.com/kb/318754



Tuesday, November 15, 2011

WCF and Windows Authentications

Lately, I need to write a desktop application that needs to use a web service protected by Windows Authentication.

Most of the tutorials show you how easy it is to use a web services, and it is really easy till you hit the way of Windows Authentication.  To get around it, you can try to want to check out this blog I found.  It shows you how you can setup BasicHttpBinding to pass the Windows Authentication.

WCF BasicHttpBinding with Windows Authentication & a 2.0 Client