In VBA, there is 3 types of Newline characters.
- vbCr – Carriage Return CR
- vbLf – Line Feed LF
- vbCrLf – Carriage Return CR + Line Feed LF
In VBA, there is 3 types of Newline characters.
These are the commands i always use in vi. Continue reading vi commands cheat sheet
NERDTree is a great vi plugin which definitely speed up the development time for programmers using vi for file editing. For more information about NERDTree, please refer to NERDTree – The File Explorer in vi/vim.
To further speed up the file editing efficiency, we could map the vi commands to hotkeys in the /etc/vim/vimrc. Continue reading Mapping vi/vim commands to hotkeys
I have been working on Rails for more than half year and i do file editing with vi at server side most of the time. vi is a great tool but it is not convenient for editing multiple files which is very common in programmer. In the past, I had to close the file, cd to another directory and opened another file for editing. Continue reading NERDTree – The File Explorer in vi/vim
If you get the following message when you connecting to a server through SSH, most likely the server side has changed authorization key.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Continue reading Mac/Linux – SSH Host Key Verification Failed
Setting up Sendmail to relay public SMTP server such as Gmail is quite difficult. In the past, i just kept looking for the blog posts in Google and found that people have different ways to setup Sendmail, but not all of them could be repeated successfully in my setup. After so many trials and errors, i made the relay works but i couldn’t fully understand what’s going on in the setup.
So this time, no more Sendmail, i would like to use Postfix instead. Continue reading Postfix – Relay via Gmail
You can access the SVN repository through the HTTP protocol after you have integrated the SVN server with Apache. The following steps were done in Ubuntu Lucid (Ubuntu 10.04 LTS).
1. Install the Apache2, Subversion and libapache2-svn.
The following command could start the Rails daemon server for you Rails web application.
Stopping the web server could be done by simply enter the Ctrl + C command in the terminal. But if your terminal session is disconnected, you have no way to stop the service. In that case, you have to kill the process directly. Continue reading Rails – Stop the Rails Web Server by Command
The vi/vim configuration file is located @ $HOME/.exrc. of it does not exist, just create it.
$HOME/.exrc
:set number :set ts=2
Your vi now will have tab size = 2 and line number is shown.
More useful settings Continue reading Linux – Configure the vi/vim Default Setting
I want to share a folder in my Ubuntu virtual machine to my Windows host. That folder contains the Rails applications such that i can edit them on the Windows host.
1. Install the Samba server