Quantcast
Channel: LogikDevelopment » Java
Browsing latest articles
Browse All 11 View Live

Image may be NSFW.
Clik here to view.

Illegal Key Size

About a week ago, I wrote an article on how to encrypt with PHP and decrypt with Java. The funny thing is I got an error when I deployed the Java code into the live server! As a reminder, this is the...

View Article



Image may be NSFW.
Clik here to view.

Update your Twitter status with Java

This article has been written for the version 2.1.7 of Twitter4J. If you want to use a newer version, please read the following article: Changes in Twitter4J 2.2.5 Some time ago, Twitter stopped...

View Article

JDBC and the “zero” date

A few weeks ago, I was in the process of writing a little script in Java to extract data from a MySQL database. Because this is what we can call a micro project, I decided to simply use JDBC to talk to...

View Article

Close ModalPanel if no error

It has been a very long time I wrote this code, but I thought I would share it with you as it is quite useful. If like me, you are an adept of RichFaces, you might have already seen and used the modal...

View Article

Delete the components holding unwanted state

This is a small addition to a problem discussed on the MyFaces Wiki: http://wiki.apache.org/myfaces/ClearInputComponents Just in case the page is removed from the Wiki, please see below a copy of the...

View Article


Image may be NSFW.
Clik here to view.

Make image backgrounds transparent with tolerance

In one of the projects I am working on at the moment, I needed to convert the background colour of an image to be transparent so the image looks better on a non-white background. Looking on the Web, I...

View Article

Image may be NSFW.
Clik here to view.

Too many open files on Tomcat

The other day, one of my websites was not available anymore. Looking at the log files, I found the following exception: Dec 7, 2011 1:22:39 AM org.apache.jk.common.ChannelSocket acceptConnections...

View Article

Image may be NSFW.
Clik here to view.

Changes in Twitter4J 2.2.5

Over a year ago, I wrote an article on how to update Twitter status using Twitter4J: Update your Twitter status with Java Note that I was using the version 2.1.7 of Twitter4J at that time. Following a...

View Article


MD5 generates 31 bytes instead of 32

I wrote the following method to generate MD5 hashes: private static String md5(String input) throws NoSuchAlgorithmException { MessageDigest md = MessageDigest.getInstance("MD5"); byte[] messageDigest...

View Article


Encrypt and decrypt with Java

Encryption is a very important subject in computer science which developers need to deal with quite often. I already wrote a few years ago an article containing some code to encrypt data with PHP and...

View Article
Browsing latest articles
Browse All 11 View Live




Latest Images