# 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

# How to make SBCL understands UTF8 characters

(setq slime-lisp-implementations
'((sbcl ("sbcl") :coding-system utf-8-unix)))

to your .emacs file, or .slimerc, whatever you like. And please insert it before (require 'slime).

# 7zip cannot change working directory in Windows 7

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

Error:
7-Zip cannot open the file
N:\ape.7z.tmp


So, I’ve got 2 guesses:

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

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.

THAT’S THE PROBLEM!

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

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.

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.
APITestProject


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.

# how to read external info file in emacs

2. C-u C-h i, then input the path of the info file to be read

# 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.

# Test for TeX code

Quantom Formula

$i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$

$latex i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$