Friday, September 11, 2009

Import NULL values into MYSQL via "Import CSV"

Try the following in a csv and import it in MYSQL.

NUMERICSTRINGDATE/TIME
"NULL""NULL""NULL"
NULLNULLNULL
/N/N/N
\N\N\N
"/N""/N""/N"
"\N""\N""\N"

The corresponding values that get imported in MYSQL are as follows:



Hence to import NULL values in to MYSQL using import csv method make sure to have entries in CSV file as follows (irrespective of data type) (make sure to make them UPPER CASE):

\N
NULL (Not Recommended)
"\N" (Not Recommended)

Sunday, September 6, 2009

Javascript event.keycode

Enter some text with uppercase and lowercase letters:


Keyboard Event Properties
Datakeydownkeypresskeyup
keyCode
charCode
Character

Tuesday, September 1, 2009

HTML basic structure

One HTML page can have the following tags only once
  1. <html>
  2. <head>
  3. <title>
  4. <body>
All the rest of tags could be in multiple numbers.

When you include files using either by SSI (<!--#include virtual="filename" --> or <!--#include file="filename" -->) include directive (<%@ include file="filename" %>) or jsp:include element (<jsp:include page="filename" />), make sure that you don't put the above four tags in the file to be included, otherwise they will create a conflicting situation with multiple tags.

W3C compliance tools

W3C Markup Validation Service: http://validator.w3.org/
W3C Link Checker: http://validator.w3.org/checklink
W3C CSS Validation Service: http://jigsaw.w3.org/css-validator/

All W3C Validation links:
http://www.w3.org/QA/Tools/
http://www.anybrowser.org/campaign/abdesign3.html#validation
http://watson.addy.com/
http://webdesign.about.com/od/htmlvalidators/a/aa092799.htm

Browser Compliance
Acid1 Test: http://acid1.acidtests.org/
Acid2 Test: http://acid2.acidtests.org/
Acid3 Test: http://acid3.acidtests.org/

web.xml explained

web.xml explained

Relative paths explained

Relative paths explained

Embed jfreechart in a jsp

Embed jfreechart in a jsp

Compile servlets (java files) to classes (class files)

Compile servlets (java files) to classes (class files)

JMOL load file parameter as a variable

JMOL load file parameter as a variable