Posts

Dramatic moment at DMZ as North Korean soldier makes dare defection across to South Korea at MDL

Image
Video released by U.N Command in South Korea and uploaded by James Pearson

Homemade Electric Airplane

Image
Don't forget to go and subscribe at https://www.youtube.com/channel/UC7yF9tV4xWEMZkel7q8La_w

He has a lot of awesome videos! Cheers

SignalR .NET Core: Realtime cross-platform open web communication

Image
I know that it is a bit late to post this. I have just got an interest into this. :)

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:
JAVA_HOME=jdk-install-dir
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
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
https://docs.oracle.com/cd/E19182-01/821-0917/6nluh6gq9/index.html

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.

https://docs.oracle.com/cd/E19182-01/821-0917/6nluh6gq9/index.html

Replace new line with
with C#

Replace new line with <br/> with C#

temp=TextBox1.Text;

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

You can use this method in Controllers as well.