An interesting exception faced while parsing xml content. Also, on further analysis on this error caused below similar issues started to raise. Another similar exception is: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence Here, I am trying to parseContinue reading… java.io.UTFDataFormatException: 5-byte UTF8 encoding not supported.
Category: Programming
Dealing with newline, n or even r in PL/SQL
In my PL/SQL procedure I had to add a text including newline (n in java, ascii #10) in a text to be read by a java application. Tried with the code l_text := ‘hellonworld’; This did not work, the nContinue reading… Dealing with newline, n or even r in PL/SQL
java.sql.SQLException: Non supported SQL92 token at position: 1
Seems like this is very common error in pl/sql programming. I know there are many last minute frustrations just because of this error which is no where related to any logic. This seems to be some format error in theContinue reading… java.sql.SQLException: Non supported SQL92 token at position: 1
Empty links in javascript
Best of way of writing empty links in javascript is <a href=”javascript:void(0);” onMouseOver=”status=”;return true” onClick=”myPopup();” > here, due to onMouseOver attribute, it won’t display the link location in the browser status bar. Otherwise, you see the ugly location to “javascript:void(0)”Continue reading… Empty links in javascript
Core Java: StringBuffer and StringBuilder
StringBuffer is used to store character strings that will be changed (String objects cannot be changed). It automatically expands as needed. Related classes: String, CharSequence. StringBuilder was added in Java 5. It is identical in all respects to StringBuffer exceptContinue reading… Core Java: StringBuffer and StringBuilder
Core Java: marker interface
A marker or tagging interface is an interphase with no methods. It can be created by ANYBODY. the purpose of these interfaces is to create a special type of Object, in such a way that you are restricting the classesContinue reading… Core Java: marker interface
Building DOM tree by reading an xml file in Java
import java.io.*; import javax.xml.parsers.*; import org.w3c.dom.*; import org.xml.sax.*; public class BasicDom { public static void main(String[] args) { Document doc = parseXmlFile(“infilename.xml”, false); } // Parses an XML file and returns a DOM document. // If validating is true, theContinue reading… Building DOM tree by reading an xml file in Java
MySQL error 1067 (42000): Invalid default value for ‘ban_id’
# # Table structure for table ‘phpbb_banlist’ # CREATE TABLE phpbb_banlist ( ban_id mediumint(8) unsigned DEFAULT ‘0’ NOT NULL auto_increment, ban_userid mediumint(8) DEFAULT ‘0’ NOT NULL, ban_ip varchar(8) DEFAULT ” NOT NULL, ban_email varchar(255), PRIMARY KEY (ban_id), KEY ban_ip_user_id (ban_ip,ban_userid)Continue reading… MySQL error 1067 (42000): Invalid default value for ‘ban_id’
Cross Browser Compatability – Web Resources
http://www.zvon.org/xxl/xhtmlReference/Output/comparison.html compares Strict and Transitional XHTML http://www.w3schools.com/ is a great web site for learning different web technologies http://www.quirksmode.org/dom/compatibility.html covers W3C DOM compatibility among different browsers and platforms http://www.w3schools.com/browsers/browsers_stats.asp provides up to date browser usage statistics http://nexgenmedia.net/evang/iemozguide/ provides migration guide fromContinue reading… Cross Browser Compatability – Web Resources
Oracle Specific SQL Concepts – Part 1
Some of the new concepts introduced as a part of Oracle new releases are: Analytical Functions In addition to the normal aggregate function like Max() etc. Oracle came up with some more commonly useful analytical functions, which can be implementedContinue reading… Oracle Specific SQL Concepts – Part 1