Software / Technology Tips

How to create and use Custom tag

Custom tags are user defiend tag elements that provide the code reusability in jsp. we can resuse that tag every where in our web application. there are following steps needed to create custom tag in jsp : 1. Define tag handler class. 2. Define tag library descriptor(TLD). 3.Make a entry of this TLD file in…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Variable Argument Method in Java

A method which is able to process variable numbers of parameters is called VarArgs method. Most of us came across a function ‘printf()‘ in ‘C’ which is an example of variable argument type function. VarArgs methods are very useful in terms of application programming. Lets create a VarArgs method using JAVA. public class VarArgsSampleClass {…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to send an email using Java

From a Java application we can send an email to any recipient on any domain e.g. gmail, yahoomail, etc. The only thing we needed is a valid SMTP . We can also set the validation of the sender in the application during session initialization, since it isdisabled by default. If a user is sending an…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to draw custom shaped cursor without using an image?

We can customize our cursors in almost every Adobe software. Generally we do so by providing a beautiful image for our custom cursor. In Acrobat, In addition to customize the cursor, we can draw different shapes in cursor view at run time. For example: if we want to our cursor to look like a cross…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Tip to decode the QR Image and fetch the hidden information from QR using ZXing library in Java

Earlier I had posted a tip regarding detecting the QR in an Image. After detecting we had also fetched the QR Image as BitMatrix object. BitMatrix is just a class in ZXing library which represents an image in 2D matrix of bits form. I think to understand this current tip you must go through a…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to get the value of same tag but used in different scenario in a XML File

If an XML file contains one tag that is used multiple times but in different context each time, it becomes a bit difficult extract and use each value programatically. In C# for instance, we could loop through the rows assigning values to variables but the same doesn’t hold true for XML (basically in stylesheet of…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to use a Java Bean in a ColdFusion page?

Following steps are to be followed:- 1.Write a Java program that does not contain main method. 2.Complile the java program into .class file(for that you need to install jdk and do the necessary settings) 3.Put the .class file in web_root/WEB-INF/classes(i.e the default class path set in JVM by CF admin). If you want to place…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to return Modified data in SQL Server

In SQL Server, there is a cool functionality by which you can get the modified data as a result set. Suppose there is a table containing rating information about any post and we want to get user’s previous rating before updating the current / new rating. Then we might write our query like – SELECT…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Split Delimited String Using XQuery

Most of us have encountered situations like splitting delimited string in a column of a table in SQL SERVER. The very first idea we get is to build a TABLE VALUED function which accepts two parameters, delimited string and delimiter as inputs, and returns a result set which contains the splitted string as rows. The implementation…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

SQL Server Index – V (Index Fragmentation)

Rebuilding an Index Rebuilding an index means dropping an existing index and creating a new one. Any fragmentation that was in the older index ie deleted with the drop and in the new index the logical order matches the physical order. In SQL Server Index can be rebuilt in two ways 1. Dropping and Re-creating…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!