To set JAVA_HOME on a UNIX System

To set JAVA_HOME, do one of the following:
For Korn and bash shells, run the following commands:
export JAVA_HOME=jdk-install-dir
export PATH=$JAVA_HOME/bin:$PATHFor the bourne shell, run the following commands:
export JAVA_HOME
export PATHFor the C shell, run the following commands:
setenv JAVA_HOME jdk-install-dir
setenv PATH $JAVA_HOME/bin:$PATH
export PATH=$JAVA_HOME/bin:$PATHChange the permissions to enable you to run the GlassFish ESB Installer by running the following command:
chmod 755 JavaCAPS.bin

To set JAVA_HOME on Windows System.

To Set JAVA_HOME on a Windows System
To set JAVA_HOME, do the following: Right click My Computer and select Properties.On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.

Replace new line with
with C#

Replace new line with <br/> with C#


temp = temp.Replace("\r\n","<br>");

You can use this method in Controllers as well.

Bangkok Airport Shuttle Bus

Air-Conditioned Public Shuttles There are now five routes between various points in town and the two airports. Run by BMTA, the routes operate on orange, 35-seat buses. They will look familiar to residents as the same buses are used along other routes. The biggest pro is the very affordable price, while the many stops made along the way may be a deal-breaker for impatient travelers. Here are all five routes, with the routes shown on interactive maps thanks to Bangkok City Bus Guide. S1 Suvarnabhumi Airport (BKK) – Khaosan Road – Sanam Luang
Pick-up:  Gate 7, passenger terminal, first floor Stops going into town: the “Burger King side” of Khaosan on Tanao Road, then later on its other side near the Chana Songkhram Police Station. Stops going to airport: stops on the police station side of Khaosan Road. First and last trips: 6am to 8pm Fare: 60 baht Frequency: every 30 minutes A1 Don Mueang Airport (DMK) – BTS Mo Chit – Bangkok Bus Terminal (Mo Chit Terminal)
Pick-up: Gate 6, Terminal 1 first fl…


Click Windows logo and type: Control PanelType: advance in search boxClick on View advanced system settingClick on Advanced tab and Environment VariablesClick on Path in System variables sectionClick EditClick New if you want to add new path or Edit if you want to edit your path.Click OK if you have done adding or editing. That's it!!. Thanks a lot for visiting my blog and really appreciate it. Have a wonderful time. :)

Myanmar food in Bangkok

A colleague of my friend told her that he saw a Lahpet (Tea leaf salad) in Phrakanong Market. We went there and explore and found varieties of Myanmar food. I took some photos. I saved the location we went and shared at the bottom of this post. Check this out. :) 

Compiled Error in temporary files after changing project name

I received a compiled error after changing my project name and I found out the refactoring missed the the spot in web.config file under Views folder. I am sorry I forgot to take a screenshot of the error message I received.

I you receive a compile error after changing your project name. You can check here.


I am using Visual Studio 2017 Community edition.

Hope this can help someone :)