Create a small shell script, testVar2.sh: testVar2.sh #!/bin/sh echo “testVar is: $testVar” testVar=”my shell script” echo “testVar is: $testVar” Now run the script: $ ./testVar2.sh testVar is: testVar is: my shell script testVar hasn’t been set to any value, so... (Continue reading)
Here is a simple shell script to start with, #!/bin/sh MY_MESSAGE="Hello World" echo $MY_MESSAGE This assigns the string “Hello World” to the variable MY_MESSAGE then echoes out the value of the variable. Note that we need the quotes around the... (Continue reading)
Customize right click menu in flash in a simple way. We will start off by creating an instance of the ContextMenu class and then hiding the default items in it on the main timeline. Our context menu instance will be called myMenu_cm. var myMenu_cm:ContextMenu... (Continue reading)
A Simple Method To Create Custom Error Pages The first use of the .htaccess file which I will cover is custom error pages. These will allow you to have your own, personal error pages (for example when a file is... (Continue reading)
This is an enhanced version of how to disable right click menu from a webpage. Simple just copy and paste this code <script LANGUAGE="JavaScript"> var message="Sorry this function is disabled." function clickIE4(){ if(event.button==2){ alert(message) return false}} function clickNS4(e){ if(document.layers||document.getElementById&&!document.all){ if(e.which==2||e.which==3){... (Continue reading)