Where to start with Java?

java No Comments »

http://www.cs.indiana.edu/classes/a201-dger/

Thinking in Java (3rd Edition):
http://www.mindview.net/Books/TIJ/

Short introduction to Java:
http://www.cs.indiana.edu/classes/a348-dger/fall2002/notes/Eight.html

Sun intro to Java servlets:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html

OneLiners: Search and replace massive

perl No Comments »

find . -type f | xargs perl -pi -w -e ‘s/iso-8859-1/UTF-8/g;’

OpenRico: simple code to process a request

ajax No Comments »


var onloads = new Array();

function bodyOnLoad() {
for ( var i = 0 ; i < onloads.length ; i++ )
onloads[i]();
}

function registerAjaxRequest() {
ajaxEngine.registerRequest( ‘getRequest’, ‘findtemplate2.cgi.pl’ );
ajaxEngine.registerAjaxElement( ‘Request’ );
}

function setStatus(s,n) {
\$(‘Loading’).style.visibility = “visible”;
\$(‘statusMsg’).innerHTML = s;
setTimeout( “\$(‘Loading’).style.visibility = ‘hidden’;”, n );
}

function getRequest(form) {
var value = form.value.value;
var mgmt_server = form.mgmt_server.value;
var search_on = form.search_on.value;
var ignore_case = form.ignore_case.value;
var browser = form.browser.value;
var action = form.action.value;

setStatus(‘Processing request…’, 1500);
ajaxEngine.sendRequest( ‘getRequest’,
“value=” + value,
“mgmt_server=” + mgmt_server,
“search_on=” + search_on,
“ignore_case=” + ignore_case,
“browser=” + browser,
“action=” + action );
}

function loadTemplate(mgmt_server,view,value) {
ajaxEngine.sendRequest( ‘getRequest’,
“mgmt_server=” + mgmt_server,
“view=” + view,
“value=” + value );
}
onloads.push( registerAjaxRequest );

x
No results to display.

JavaScript: Function to show/hide an element

ajax No Comments »

function ShowHide(id) {
obj = document.getElementsByTagName(“div”);
if (obj[id].style.visibility == ‘visible’) {
obj[id].style.visibility = ‘hidden’;
} else {
obj[id].style.visibility = ‘visible’;
}
}

Eclipse: Base installation and mandatory plugins

development No Comments »

Eclipse IDE
Web Tools Platform
E-P-I-C
Velocity Web Edit
PHPEclipse

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in