I’m moving

Due to visting here via an unbearable speed, I make a decision to move. The destination is here.

I’ve loved here: The beautiful user interface, the comfortable manipulations and blogging functions, etc. BUT, I’m in a special country, whose stupid administrators limit the speed that is extremely slow originally. I cannot bear it and cannot change it. Sorry for my innocence and inability.

I hope that my new blog site won’t suffer the same problem, at least I believe Mr. G ;P

7zip cannot change working directory in Windows 7

Originally, I just change the default working directory to N:\, but it replied:

7-Zip cannot open the file
Access Denied

So, I’ve got 2 guesses:

  1. The problem of 7-Zip itself
  2. The problem of system

Continually, I made another try:

Replace N:\ using F:\

and the answer is NO PROBLEM.

Now, I know that’s the problem of my system. After comparing the security attributes of two disk section, I found N:\ didn’t have an user/group member named “Authenticated Users“. F:\has it, and it has the “MODIFY” authority.


Just right click the N:\ icon, choose “Property”, then “Security” tab, then “Edit”, type “Authenticated Users” and add it to the current disk. In the box below the “Edit” button, check the “MODIFY” item when “Authenticated Users” selected, and OK

Now, you see, it works.

xmms2 segmentation fault

In fact I cannot still solve the problem exactly, but sometime I just solved it however I don’t know why.

Here are some cases which I suffered:

    Forgive me for my poor memory, but actually I did not remember the details but only remained the general information with some sporadic keywords.

  • smb not found or something similar
  • libavcodec or something similar

For the case 1, my suggestion is that you should reinstall xmms2-plugin-smb and smbclient.

Here I use debian/ubuntu package style because of my usage. If you are using different linux distro, please google them.

For the second case, I haven’t got an exact certain solution but an trial. Purge what you’ve installed (including xmms2 main core daemon with client):

    sudo apt-get remove --purge xmms2-plugin-*
    sudo apt-get install --reinstall xmms2

Then choose the plugins which the music files need to install.

    sudo apt-get install xmms2-plugin-mpg123 xmms2-plugin-flac

Restart your xmms2 daemon.

If you’re told that ipc could not setup or ipc failed similar information, you may check the process list if the xmms2d has been running already. This information ususally appears in this case.

BuildShadowTask Failed unexpectedly

Once I merged the code files from git repository from the remotes on my USB flash disk, I found it did not work after opening in vs2008. Then I searched a lot of solutions from Internet, but it still did not work. The error message might be like this:

The "BuildShadowTask" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TestTools.BuildShadowReferences.BuildShadowTask.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, 
ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) 

At that time, I suddenly found that it has strong relation of accessor of private class. Maybe the private accessor had been broken. So, I deleted the old ones, and created a new private accessor. If you don’t know how to create it, you can visit here.

As expected, problem solved.

TDD is awesome

During the period of my current project, I feel it’s necessary to improve my development speed due to the severe requirements . Usually, I suffer a lot from the unstable modules with many unknown bugs even running-time errors. a.k.a Those modules are fairly bad in quality so that they should be checked after produced immediately. That’s why I’m using TDD right now.

TDD is very useful and efficient and I’m using it as my main developmental method during whole project period. Generally, once I complete a module, I’ll write a respondent test code snippet to assure its stability and robustness in an individual unit. Similarly, if the code of whole project completed, it should also follow a general unit test immediately.

It really works especially in bottom-up programming paradigm and object-oriented design paradigm.