Templates for Netbeans
To change templates in netbeans simply click on Tools > Templates. Then click on Java from the left hand side to expand more items. Click on Java class and hit ‘open in editor’ button to edit the template… Continue reading
How to set CLASSPATH in Linux
Below are two types of commands to set CLASSPATH in linux. There’s a few different types of shells to execute this command below explains how to work out the difference.
The syntax for setting your classpath is slightly dependent on which shell you are using. The default shell for RedHat 5.x and 6.x is the bash shell. Two other popular shells are tcsh and and csh called “t shell” and… Continue reading
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
Had this error come up while building a java app. Common problem when trying to connect to mssql database.
Install the Microsoft SQL Server JDBC Driver and extract it to somewhere useful like C:\Program Files\…
Add the following path to the System variables in your Environment Variables for Windows (My Computer > Properties)
C:\Program Files\Microsoft SQL Server 2005 JDBC Driver\sqljdbc_1.2\enu\sqljdbc.jar
This should work…
If you’re using an IDE… Continue reading
How does tracking in email work?
Had a great question from a customer this morning, about how tracking in emails work. I did some digging around and found some pretty interesting stuff that even I didn’t know about.
In emails an invisible graphic is included at the bottom of HTML emails which are known as web beacons. Each time someone opens the unique graphic it returns the information back to the server monitoring your email… Continue reading
Adding a watermark to original images on the fly
Found this great piece of code that will allow you to prevent users or atleast stop them a little… from downloading your images. Using the cfimage tag!
Simply use cfimage to call you’re first two images, then using ImagePaste() to mash them together, and write to the browser calling ‘#image#’.
See how you go.
<cfimage… Continue reading
