Tech and Academic things for Chianshin

Sunday, January 28, 2007

How to turn on automatic logon in Windows XP

How to turn on automatic logon in Windows XP

You can also use turn on automatic logon without editing the registry in Microsoft Windows XP Home Edition and in Microsoft Windows XP Professional on a computer that is not joined to a domain. To do this, follow these steps:
1. Click Start, and then click Run.
2. In the Open box, type control userpasswords2, and then click OK.

Note When users try to display help information in the User Accounts window in Windows XP Home Edition, the help information is not displayed. Additionally, users receive the following error message:
Cannot find the Drive:\Windows\System32\users.hlp Help file. Check to see that the file exists on your hard disk drive. If it does not exist, you must reinstall it.
3. Clear the "Users must enter a user name and password to use this computer" check box, and then click Apply.
4. In the Automatically Log On window, type the password in the Password box, and then retype the password in the Confirm Password box.
5. Click OK to close the Automatically Log On window, and then click OK to close the User Accounts window.

Wednesday, January 24, 2007

LaTeX: Figures, tables and seminars

LaTeX: Figures, tables and seminars: "\begin{figure} \centering \includegraphics[width=0.9\textwidth]{...} \caption{...} \label{...} \end{figure}"

References & Guides

References & Guides: "Auto-Completion
One of the best features of Emacs is its ability to autocomplete words and expressions that you have already typed at least once. To complete a word, type the first few letters and then use M-/ (hold down the Meta key and then hit the / key). Emacs will make its best guess as to what the word is (it is not always correct!)."

Sunday, January 14, 2007

Quickstart Guide - Red Hat 9 POP3 Server

Quickstart Guide - Red Hat 9 POP3 Server: "Step 2: TLS Keys and Certificates

Since we are setting up a TLS-enabled POP3 server, we need to make crypto keys and certificates. Without them, TLS/SSL will not work."

do not need to do this, just " make ipop3d.pem" is ok;

and the log, /var/log/maillog can help a lot.

Saturday, January 13, 2007

C editing with VIM HOWTO

C editing with VIM HOWTO: "Function() one can type A_Very... and hit CTRL-P. The first matching word will be displayed first. In this case it would be A_Very_Long_Variable_Name. To complete it correctly, one can hit CTRL-P again and the search continues upwards to the next matching word, which is A_Very_Long_Function_Name. As soon as the correct word is matched you can continue typing. VIM remains in insert-mode during the entire process.

Similar to CTRL-P is the keystroke CTRL-N. This searches forwards instead of backwards. Both the keystrokes continue to search until they hit the top or bottom.

Both CTRL-P and CTRL-N are part of a mode known as CTRL-X mode. CTRL-X mode is a sub-mode of the insert mode. So you can enter this mode when you are in the insert-mode. To leave CTRL-X mode you can hit any keystroke other than CTRL-X, CTRL-P and CTRL-N. Once you leave CTRL-X mode you return to insert-mode.

CTRL-X mode allows you do auto-completion in a variety of ways. One can even autocomplete filenames. This is particularly useful when you have to include header files. Using CTRL-X mode you can include a file foo.h usi"

emacs cheat sheet

emacs cheat sheet: "dabbrev

M-/

I press this a lot. It's the built-in autocompletion key. It took me an amazingly long time to discover this. It doesn't require any setup, and it doesn't know anything about programming languages, but that doesn't really matter. It indexes all the tokens in all the currently open buffers, and tries to complete the current word you're typing when you press M-/ . If you don't like the completion, hit M-/ again for the next one, etc. Works for text too. bash also has autocompletion on this key."

Add Command Prompt Here Shortcut to Windows Explorer

Add Command Prompt Here Shortcut to Windows Explorer: "Method #3: Manually add the context menu

1.

In explorer, open Tools, Folder Options.
2.

Select the File Types tab.
3.

For Windows XP: Go to NONE / Folder.
4.

For Windows 2000: Press n to scroll to the N/A section.
5.

For Windows NT/98/95: Press f to scroll to the Folders section.
6.

Select the entry labeled Folder
7.

For Windows 2000/XP: Press Advanced button.
8.

For Windows NT/98/95: Press Edit button.
9.

Select New
10.

In the action block type 'Command Prompt' without the quotes.
11.

In the app block type 'cmd.exe' without the quotes.
12.

Save and exit Folder Options.

Now right click on Start, you should have a new drop down option. Open explorer and right click on a folder, select Command Prompt and a command window opens in that folder."

Wednesday, January 03, 2007

APT HOWTO - Managing packages

APT HOWTO - Managing packages

3.5 Upgrading to a new release

This feature of APT allows you to upgrade an entire Debian system at once, either through the Internet or from a new CD (purchased or downloaded as an ISO image).

It is also used when changes are made to the relationships between installed packages. With apt-get upgrade, these packages would be kept untouched (kept back).

For example, suppose that you're using revision 0 of the stable version of Debian and you buy a CD with revision 3. You can use APT to upgrade your system from this new CD. To do this, use apt-cdrom (see section Adding a CD-ROM to the sources.list file, Section 2.4) to add the CD to your /etc/apt/sources.list and run apt-get dist-upgrade.

It's important to note that APT always looks for the most recent versions of packages. Therefore, if your /etc/apt/sources.list were to list an archive that had a more recent version of a package than the version on the CD, APT would download the package from there.

In the example shown in section Upgrading packages, Section 3.4, we saw that some packages were kept back. We'll solve this problem now with the dist-upgrade method:

# apt-get -u dist-upgrade
Reading Package Lists... Done