Tuesday, December 22, 2009

Merry Christmas and Happy New Year!

Friday, December 11, 2009

Enable forward/Inverse search with DVI in TexMakerX

TexMakerX is a fork of TexMaker with many enhanced features. However, following the user manual, you cannot enable the forward/Inverse search function. Ok, let's make it short, here is the workaround.

First, follow the instruction given at http://www.xm1math.net/texmaker/doc.html#SECTION37 or TexMakerX user manual.

Then change the latex command line to
latex --src -interaction=nonstopmode %.tex

Now, enjoy.

Sunday, November 01, 2009

Install Windows 7 Professional 64 on Dell XPS M1530

This Saturday, I upgraded my Windows Vista Home Premium to Windows 7 Professional 64 version. I have done research on the upgradation and prepared some drivers in caes I needed. But it seems it's different from what people said. Here is what I did, and hopefully it can help people who need to install Windows 7 on Dell XPS M1530.

  1. Backup all usefull data, such as favourites, documents and photos.
  2. Use Windows 7 DVD to load the system.
  3. In the window which partion will be used to install Windows 7, click advanced options, here we can format C partition. But DO NOT do anything to other partition. If we format C disk only, Direct Media funtion will remain after installation.
  4. Wait for about 30 minutes, Windows 7 should be ready to use.
  5. Go to control panel, update Windows 7. It will update some drivers as well. After that, there still is one device is unrecognised in the Device Manager. It is Ricoh R5C833 card reader, the driver can be download via http://ftp.us.dell.com/chipset/Ricoh_R5C833_A00_R240788.exe, which is a Windows 7 driver.
  6. After this step, my Bluetooth device was detected and worked well. Some people have issues with this device.
  7. Now, download the fingerprint reader driver and application from Dell XPS M1530 driver download page. Remember to select Vista 64 as the system. If you have the Protector Suite QL 5.8, no need to download the application from Dell. Install the driver, restart the system; install the software, restart the system.
  8. For the webcam, download the driver and Dell webcam manager from the Dell XPS M1530 driver download page. DO NOT use the Dell webcam manager that comes with your computer, unless the version is the same with the latest one provided on the website.
  9. Do the same, i.e. download vista 64 driver from XPS M1530 driver page, for the SIGMATEL STAC 92XX C-Major HD Audio, touchpad and Dell Quickset. After this, when you change volumn by multimedia button, the indication should be shown.
  10. If you want to use Media Direct in Windows, install the software and apply the update from Dell website.
  11. Now, your system should work well and it is time to install your own software ;).
  12. If you have trouble with the audio, download the driver for Studio XPS 1645, the link is http://support.euro.dell.com/support/downloads/download.aspx?c=ed&l=en&s=gen&releaseid=R226903&SystemID=STUDIOXPS1645&servicetag=&os=W764&osl=en&deviceid=16518&devlib=0&typecnt=0&vercnt=1&catid=-1&impid=-1&formatcnt=1&libid=3&typeid=-1&dateid=-1&formatid=-1&fileid=325315

Wednesday, October 28, 2009

Install Windows 7 language pack on professional version

The following content is adapted from http://bauforum.wirklichewelt.de/forum_entry.php?nr=5844 and http://www.winmatrix.com/forums/index.php?/topic/25680-can-i-install-a-language-pack-in-windows-7-professional/page__p__245434&#entry245434.

We know Microsoft only allows ultimate Windows 7 users to enjoy multi-language user interface. Thanks to Martin Vogel, we can install the language pack on Windows 7 professional.

  1. Prepare your language pack DVD, insert it in D driver, here D is your DVD drive. Locate your required language pack. For example, if we want to install German language pack, the lp.cab file will have a path of D:\langpacks\de-de\lp.cab.

  2. Run command window with administrator privileges. To run it as an administrator, go to "all programs - accessories", right-click "command prompt" and choose "run as administrator".

  3. In the command window, type the following line and press Enter (dism"space"/online"space"/add-package"space"/packagepath:d:\langpacks\de-de\lp.cab), note that the space in between:
    dism /online /add-package /packagepath:d:\langpacks\de-de\lp.cab
  4. When a message pops up and tells you the operation is completed successfully, press "Windows key + R" to call the run window, type in regedit to run the registry editor.

  5. Navigate to \HKLM\SYSTEM\CurrentControlSet\Control\MUI UILanguage\eu-us and delete the key eu-us.

  6. Restart your system, now your Windows 7 Professional should be switched to the German language version.

  7. To change the language of "Starting Windows", run the following command in the command window (still take the German as example):

    bcdedit /set {current} locale de-de
    bcdboot %WinDir% /l de-de
Because I have no Windows 7 installed, cannot test the method. If you successfully installed your language pack, please either leave comments here or on Martin Vogel's page at http://bauforum.wirklichewelt.de/forum_entry.php?nr=5844.


Chinese version:

在Windows 7 专业版上安装语言包

Friday, October 02, 2009

Scale a matrix into a specified range

function data_s= scale_matrix2(data, range)
% scale_matrix2 scales a matrix into [0 1] or a range specified by range
%
% Usage:
% data_s= scale_matrix2(data, range);
%data_s= scale_matrix2(data);
%
% Wenbin, 28-Jul-2009


if nargin ==1
range =[0 1];
end

data_c =data(:);

data_s =(data-min(data_c))./(max(data_c) -min(data_c)).*(range(2) -range(1)) +range(1);