Posts

Showing posts from May, 2011

Linux - nm Command

When you want to list the symbol in a shared object (.so) file, you can use nm command to list them.
Some examples are
1. List all symbol
nm your.so
2. List symbol that are external and de-mangled.
nm -gC your.so
3. List all undefined symbol
nm -u your.so
See http://linux.about.com/library/cmd/blcmdl1_nm.htm

iTunes - Move And Organize File From iPod

Image
This topic may be old but rather useful when your music file at iPod is your only copy. By default, iPod scramble your music files into random name. Although the file names are randomized, the ID3Tag are retained.
Follow these steps to move your iPod music files to local disk in organized folder for Windows 7
1. At your file explorer, click on Organized -> Folder and search option

2. Go to view tab and enable view for hidden files

3. Plug in your iPod and you should see a iPod drive at your file explorer
4. Navigate at your iPod drive, go to iPod_Control\Music folder. This is where all music files are stored in scrambled manner
5. Copy this folder to a place in local harddisk
6. Open iTunes. Make sure your music library is empty
7. At iTunes, go to Edit -> Preference. Go to Advance tab and check "Keep iTunes Media folder organized" check box. Then, click Ok.

8. Then, go to File -> Add Folder To Library. Select the folder where you have copied your iPod music files. If librar…

Visual Studio 2010 - How to create a new target platform

Image
VS2010 allows you to create different target platform for different CPU build.
1. Open your_solution.sln
2. Click on Configure Manager


3. At Active solution platform, select New…

4. Select your desire platform and click ok

5. Now, you can change your target platform at Configuration Manager

Visual Studio 2010 - Setting different set of reference libraries for different target platforms

Image
If you are playing with x86 and x64 with Visual Studio 2010, you may soon realize that it does not provide a way for developers to add specific reference libraries for specific target platform.
If you add at VS2010 IDE, you will end up adding all x86 and x64 references to the single Reference tree. Even if you switch to your desire target platform before adding the reference, it will not work.
VS2010 treats all references are required for every target platforms, however, x86 and x64 requires different set of dll for respective build.
Here is a step by step guild for provide different set of reference library for different target platform.
1.Put your library/reference (mainly dll) to your/path/to/lib/x86 or your/path/to//lib/x64 for x86 and x64 library/reference respectively
2.Open your_master.sln
3.At solution explorer, look for your_proj-> reference
4.For consistency, make sure you had switch your project target platform to Debug | x86

5.Add your desired reference. We added C1.Common.dl…

VPN - Error 741 The local computer does not support the required encryption type

Image
If you see this error
Error 741 - The local computer does not support the required encryption type
Do the following
1. Go to Control Panel\Network and Internet\Network Connection
2. Locate your VPN adaptor and right click properties. Go to security tab

Then, you can try the following fixes
The error may due to
1. Encryption not strong enough
At Data encryption, changes to Maximum strength encryption
2. Wrong type of VPN
At Type of VPN, do not use Automatic. Change to a specific VPN type, for example, Point to Point Tunneling Protocol
3. Wrong Authentication
At Authentication, use the specific authentication method supply by your VPN administrator
4. VPN server is not using encryption at all
This is an irony but it does happens. To fix it:
1. At Data encryption, change to either No encryption allowed or Optional encryption
2. At Authentication, Check Unencrypted Password

VPN - Windows 7 64 bits VPN

Image
If you have been using Cisco AnyWhere Client for your Window 32 bits machine. You may have encountered problem on installing it at 64 bits Windows Machine. That is because Cisco AnyWhere Client does not work in 64 bits Windows. Windows 7 provide a way for VPN connection. Do the following 1. Go to Control Panel\Network and Internet\Network and Sharing Center, click on Set up a new connection or network 2. Select Connect to a workplace 3. Then, select No, create a new connection 4. Then, select Use my internet connection (VPN) 5. Then, just follow the wizard and fill up the VPN information 6. The last step will ask you to connect. You can also customize your VPN security setting 1. Go to Control Panel\Network and Internet\Network Connection. 2. Locate your VPN adaptor and right click properties. Go to security tab 3. Change your setting and save it.