Friday, June 23, 2006

some phrase related to day or night.

http://www.zaobao.com/bilingual/pages1/jiangyi030303.html

Wednesday, June 21, 2006

set up syntax highlighting for latex in emacs.

http://magic.aladdin.cs.cmu.edu/category/software-tools/text-editing/

this is the link where I am going from.

link on emacs setup should be here,

http://www.cs.cmu.edu/~maverick/GNUEmacsColorThemeTest/

here is also one link for vim.

http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/

Tuesday, June 20, 2006

Basic Shell Scripting

http://www.linux-tutorial.info/modules.php?name=Tutorial&pageid=33

actually in linux, $1, $2 are called positional parameters.

Sunday, June 18, 2006

unlock the cell phone.

I FINALLY unlocked my AT&T phone so I can use it for Cingular. Just wanted to share my painful experience and the lovely tutorial that ended my misery :P

Source: http://www.mobiledia.com/forum/topic7430.html

For any Samsung Phone Model S100 and up.MOST SAMSUNG phone will work,
Sample, Samsung Sgh e100, e105, e700,e708, e715, p100, p400, p407, p408, s200, s208, s300, s307, s308, v200, v205, v206, x105, x426, x427..& more

Warning: If this does work. DONT TRY MORE than 4 times. IT WILL TOTALLY LOCK YOUR PHONE.

1. Turn off your phone, put in a SIM of a provider that it is NOT LOCKED (difference company's SIM card) to, and turn it back on.
2. At the wrong card message, type *#9998*3323#. A message will pop up telling you to press exit, so hit the right soft key. Choose number 7 (or 8 or 9 will work too, I think). Your phone will reboot and your SIM will work.
3. Type *0141# and then hit call. This will give you a message saying your phone is personalized.
4. Power down your phone and insert a SIM card other(another company) than the one that is in it. Then power back up your phone.
5. At the SIM pass code prompt type 00000000, that is 8 zeroes. So that will totally UNLOCK your phone."

To enter wap settings: Enter *#vswap# or numerically, *#87927#
To enter mms settings: Enter *#vsmms# or numerically, *#87667#

Thursday, June 15, 2006

vim editor syntax highlighting.

http://www.macosxhints.com/article.php?story=20010421114134645

VIM ('Vi IMproved') is a replacement for vi that features a ton of enhancements, including colored syntax highlighting for a number of languages (Java, C/C++, HTML, PHP, PERL, etc) and the ability to save edited files as HTML with syntax colors. If you like using vi, you'll love VIM. Thanks to macosxhints reader jpzr, a friend from Poland, for the information on how to get this working! I followed his tips, tweaked a couple of things, and installed it with no problems.

Read the rest of this article if you'd like the step-by-step instructions on installing VIM for OS X. NOTE: You need to have the developer tools installed to compile VIM, and you should be fairly comfortable in the terminal ... then again, if you're using vi, you're probably quite comfortable in the terminal!

To compile VIM for OS X, follow these steps:

  1. Head to vim.org and download the following two archives:
    • vim-5.7-rt.tar.gz
    • vim-5.7-src.tar.gz
    There are a number of download mirrors, so take your pick.

  2. Once downloaded, expand the archives as follows:
    [robg]% gzip -d vim-5.7-rt.tar.gz
    [robg]% tar xvf vim-5.7-rt.tar
    [robg]% gzip -d vim-5.7-src.tar.gz
    [robg]% tar xvf vim-5.7-src.tar
    This will insure that everything winds up in the proper directories for the next steps.

  3. We need to edit one of the header files before compiling. Navigate to vim-5.7/src/ and open feature.h in your favorite editor. Look for the line that reads #define SOME_BUILTIN_TCAPS and change it to read #define ALL_BUILTIN_TCAPS. Save your changes.

  4. Now it's time to finish, with the normal compilation trifecta. Make sure you're in /path/to/vim-5.7, and then:
    [robg]% ./configure
    [robg]% make
    [robg]% sudo make install
  5. When it's finished, type rehash and you should be able to launch VIM by typing vim at the terminal prompt. The application is installed in /usr/local/bin by default, with support files in /usr/local/share/vim/vim57.

  6. To get color-coded syntax highlighting, launch VIM and then type:
    :set term=builtin_beos-ansi
    :syntax on
    If you'd like VIM to launch in this mode all the time, you'll need a .vimrc file in your home directory which contains those two lines (without the colons, since they're the VIM command prompt). The .vimrc can be quite complex, of course. Here's jpzr's actual file:
    set nocompatible
    source $VIMRUNTIME/vimrc_example.vim
    source $VIMRUNTIME/macros/explorer.vim
    set selectmode=mouse
    set backupdir=/tmp
    set directory=/tmp
    set guifont=Lucida_Console:h8
    set guioptions-=T
    set errorfile=/tmp/rutkowsk.errors.log
    set ic
    set grepprg=grep -n
    set fileformats=dos,unix,mac
    highlight StatusLineNC guifg=#ff0000 guibg=#000000
    highlight StatusLine guifg=#00ff00 guibg=#000000
    set hls
    hi Normal guibg=black guifg=white
    hi Search guibg=white guifg=black
    hi IncSearch guibg=white guifg=black
    set tags=./tags
    set mousef
    set term=builtin_beos-ansi
    syntax on
That's all there is to it -- you now have a powerful replacement for vi. The syntax highlighting looks best if you have a dark-colored terminal background, so experiment with your color settings.

Monday, June 05, 2006

What is the difference between Hibernate and Standby in Windows XP?

Answer:
Hibernate and Standby are two different sleep options that Windows XP offers. Hibernate saves an image of your desktop, including all open windows and files. Then it powers down your computer just as if you had turned it off. When you turn your computer on again, your windows and files are open just as you left them.

Standby is a more traditional sleep mode, as it reduces the power your computer uses to almost nothing. When you select Standby, the power to your screen, hard drive, and peripheral devices is cut. However, the power to the computer's memory (RAM) is maintained so your open files stay open.

http://www.sharpened.net/helpcenter/answer.php?88

http://www.kellys-korner-xp.com/xp_h.htm