Tuesday, July 28, 2015

vi

Complete list of color groups
:so $VIMRUNTIME/syntax/hitest.vim

Monday, July 20, 2015

๊Set up emacs for HTML editing with multiple browsers realtime preview

Install melpa in emacs.

<meta>x package-list-packages
<ctrl>s            <- to do incremental search  and then look for impatient
impatient

Use i to select impatient-mode for installation
and then x to install it.


To use it:
<ctrl>x+f
test.html

open/create test.html

and then
<meta>x httpd-start
<meta>x impatient-mode

Launch any browsers for preview and open localhost:8080/imp
select test.html

Start typing in test.html and the browser will always updated to reflect change in editing buffer.

Saturday, May 9, 2015

Friday, May 8, 2015

How to supporess Picked up JAVA_TOOL_OPTIONS Picked up JAVA_OPTIONS Picked up _JAVA_OPTIONS

Picked up JAVA_TOOL_OPTIONS:
Picked up _JAVA_OPTIONS:

These lines appear before any java program execution, if the environment variables with these names were set.  Remove it to supporess these ugly lines.

Windows:

set JAVA_TOOL_OPTIONS=

Linux

bash (default for Ubuntu, Debian, Redhat, CentOS, etc.)

unset JAVA_TOOL_OPTIONS

Install latest maven from apache

Since Ubuntu's repository comes with rather old version of maven, we need to install this from binary download from apache web site.

Here, we install latest version of 3.2.x which is 3.2.5 at the moment.
(linux diredory layout http://www.nixtutor.com/linux/understanding-the-linux-directory-layout/ )

Download from http://maven.apache.org/download.cgi

Install to /usr/lib/apache/maven/3.2.5

sudo mkdir -p /usr/lib/apache/maven/3.2.5

cd /usr/lib/apache/maven/3.2.5

sudo tar xvf ~/Downloads/apache-maven-3.2.5-bin.tar.gz

sudo mv apache-maven-3.2.5/* .

sudo rmdir apache-maven-3.2.5


Then we need to set environment variables.

add /usr/lib/apache/maven/3.2.5/bin to PATH

export MAVEN_HOME=/usr/lib/apache/maven/3.2.5



If we set environment variables in .bashrc, we will need to source the .bashrc file.

. ~/.bashrc

Check with :

mvn -ver

Wednesday, May 6, 2015

How to mount an lvm, volume from ubuntu livecd

Install lvm2 tool, if the distribution cd does not have it.  For 15.04, it's already there.
 
apt-get install lvm2

fdisk -lu

 
pvscan

vgscan

vgchange -a y


lvscan


Now, mount the volume to any directory you want.
 mount /dev/VolGroup00/LogVol00 /mnt