Pages

Saturday, September 15, 2007

Converting between tab and space in Emacs

Emacs: "M-x untabify" will ConvertTabsToSpaces in the region; "M-x tabify" will ConvertSpacesToTabs.

Tab width
M-x set-variable  tab-width 7

For this session, force Emacs to indent with spaces, never with TABs:

M-x set-variable indent-tabs-mode nil

http://www.student.northpark.edu/pemente/emacs_tabs.htm

Wednesday, August 8, 2007

Windows Installer error 1601

Windows Installer error 1601 and msiexec.exe cannot be started

#
Start Windows Installer Service manually
Under Windows XP Professional
Control Panel -> Administrative Tools -> Services -> Windows Installer -> right click and choose "Start"

Under Windows XP Home
If XP Home doesn't have "Services" in its Control Panel, try typing "Services.msc" at the run or command

Try to install your desired program

#
Make sure that your system has up-to-date system files
start -> Run... -> cmd -> sfc /scannow

#
You may not have a right permission on your Windows XP as an administrator. Even though your account type appears as Computer Administrator in User Accounts under Control Panel, you may not have full permission of Computer Administrator. To have full control on Windows Installer, your account must be an administrator. To do that,

0. re-register Windows Installer Service
  • start -> Run... -> cmd -> msiexec.exe /unregister
  • msiexec.exe /regserver
1. open registry editor
start -> Run... -> regedit
2. Click the following registry hive: HKEY_CLASSES_ROOT
3. On the Edit menu, click Permissions
4. Change your account type to be an administrator
Click Advanced button -> Select Owner tab -> double click your account name to get ownership on your computer -> OK -> Apply
5. cmd -> Services.msc -> Windows Installer -> Properties -> "Log On" tab -> check "allow service to interact with desktop" -> "General" tab -> Change "startup type" to automatic -> ok


5. Restart the computer

6. If SYSTEM is not listed in the Group or user names list,
  • click Add, make sure that the local computer name appears in the From this location box
  • -> type system in the Enter the object names to select box, click Check Names, and then click OK
  • -> click SYSTEM in the Group or user names list
  • -> select the Full Control check box under allow in the Permissions for SYSTEM box
  • -> Apply,
  • -> OK
  • -> quit Registry Editor
  • -> Restart the computer

Reference: http://www.annoyances.org/exec/forum/winxp/1059790283

Wednesday, July 25, 2007

Linux UVC Installation

Linux UVC for my web cam

1. install subversion to download UVC source codes
$ sudo apt-get install subversion

2. download UVC sources
$ svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk

3. before compile the sources
$ sudo apt-get build-essential
$ sudo apt-get kernel-headers

4. go to the Linux UVC directory
$ cd trunk

5. open the Make file in this directory
$ sudo make

6. open Makefile
$ vi Makefile
INSTALL_MOD_DIR := usb/media
to
INSTALL_MOD_DIR := kernel/ubuntu/media/usbvideo

7. make
$ make

8. install
$ sudo make install

Reference:
http://openfacts.berlios.de/index-en.phtml?title=Linux+UVC

The Power of 48 Minutes

Install Timer Applet on Ubuntu 7.04

$ sudo apt-get install timer-applet

Some nice voice alarms here, http://www.voco.uk.com

References: http://kldp.org/node/84516
http://successbeginstoday.org/wordpress/2006/09/the-power-of-48-minutes

Monday, July 23, 2007

My Learning Style

The results of Hwal Kim's learning inventory are:

Visual/Nonverbal 24 Visual/Verbal 24 Auditory 10 Kinesthetic 32

Your primary learning style is:

The Tactile/ Kinesthetic Learning Style

You learn best when physically engaged in a "hands on" activity. In the classroom, you benefit from a lab setting where you can manipulate materials to learn new information. You learn best when you can be physically active in the learning environment. You benefit from instructors who encourage in-class demonstrations, "hands on" student learning experiences, and field work outside the classroom.

Strategies for the Tactile/ Kinesthetic Learner:

To help you stay focused on class lecture, sit near the front of the room and take notes throughout the class period. Don't worry about correct spelling or writing in complete sentences. Jot down key words and draw pictures or make charts to help you remember the information you are hearing.

When studying, walk back and forth with textbook, notes, or flashcards in hand and read the information out loud.

Think of ways to make your learning tangible, i.e. something you can put your hands on. For example, make a model that illustrates a key concept. Spend extra time in a lab setting to learn an important procedure. Spend time in the field (e.g. a museum, historical site, or job site) to gain first-hand experience of your subject matter.

To learn a sequence of steps, make 3'x 5' flashcards for each step. Arrange the cards on a table top to represent the correct sequence. Put words, symbols, or pictures on your flashcards -- anything that helps you remember the information. Use highlighter pens in contrasting colors to emphasize important points. Limit the amount of information per card to aid recall. Practice putting the cards in order until the sequence becomes automatic.

When reviewing new information, copy key points onto a chalkboard, easel board, or other large writing surface.

Make use of the computer to reinforce learning through the sense of touch. Using word processing software, copy essential information from your notes and textbook. Use graphics, tables, and spreadsheets to further organize material that must be learned.

Listen to audio tapes on a Walkman tape player while exercising. Make your own tapes containing important course information.

Web Version of the Learning Styles Survey © Copyright 2000 by Suzanne Miller, Instructor
Contact me via: smiller@dvc.edu or or phone: (510) 685-1230 ext 830 or fax: (510) 687-2557
Diablo Valley College 321 Golf Club Road, Pleasant Hill, CA 94523
latest update October 25, 2000.

Reference: http://www.metamath.com/lsweb/dvclearn.htm

Speed up firefox on Ubuntu

about:config

1. network.http.pipelining -> true
2.
network.http.pipelining.maxrequests -> 8
3. network.http.proxy.pipelining -> true
4. network.dns.disableIPv6 -> true
5. plugin.expose_full_path -> true
6. Right click -> New -> Integer: nglayout.initialpaint.delay -> 0
7. Right click -> New -> Integer: content.notify.backoffcount -> 5
8. Right click -> New -> Boolean: content.notify.ontimer -> true
9. Right click -> New -> Integer: ui.submenuDelay -> 0
10. layout.spellcheckDefault -> 2
11. Right click -> New -> Integer: browser.cache.memory.capacity -> 16384
12. Right click -> New -> Integer: content.maxtextrun -> 5000
13. add-on : fasterfox

References:
http://www.ubuntugeek.com/speed-up-firefox-web-browser.html
http://fasterfox.mozdev.org
http://kb.mozillazine.org