Tag Archives: Java

FUD: JDBC addiction and designing software for NoSQL

I am having a background of programming Java based web systems with RDBMS. Where I write a lot of JDBC code. Updates, select statements with a lot of joins, inserts etc is a part of my daily job. Most of my time consumed on maintaining the state of database, validating from base tables and after all storing [...]

2 Comments Continue Reading →

How to find mime type of a file in Java

Validating a file when it is getting uploaded in the system is some time very necessary. We can check the extension of the file, but what if user has changed the extension to crack the system. So the best way is to find the mime type. There are multiple libraries that you can use to [...]

10 Comments Continue Reading →

Calling Posterous API in Java

I was playing with Posterous API to call it in Java program. If you guys want to call Posterous API, you need to get API Token from Posterous API Docs first. This API Token (api_token) will go with every URL that you will invoke in your code. I was missing this token and was wondering [...]

Leave a comment Continue Reading →

From 1st September 10, Sun Certification titles will be changed to Oracle Certification

Just came to know from Oracle website that they have completely integrated Sun certifications with Oracle certification program. The title of certification has been changed. Now Sun Certified Java Programmer will be know as Oracle Certified Professional, Java Programmer. From Oracle website: Effective September 1, 2010, all Java, Oracle Solaris, MySQL, Open Office and Oracle [...]

6 Comments Continue Reading →

Struts 2 Spring integration: a kickstart on using dependency injection

In this post you will find how we can integrate Spring with Struts2 through struts2-spring-plugin. And we will also see how we can use dependency injection. I assume that you are successfully running a Struts2 application. We will add our Spring integration code in that. Lets take a scenario. You have an Interface DAO.java that [...]

Leave a comment Continue Reading →

Div based UIs. Heaven or Hell for a developer?

At my work I have a large application that has all web pages in table based layout. The use of Div is just limited to hide and show some content area on web page. Same is the case with CSS. Using them for styling fonts and some formatting for tables. Like every developer (not designer) [...]

8 Comments Continue Reading →

New topics added in SCJP 6 Certification (CX-310-065)

Following are the points that are highlighted in Kathi Sierra and Bert Bates book on SCJP6. 1-    Console class. 2-    NavigableSet and NavigableMap. 3-    Lower(int) and higher(int) function are added in Treeset collection. 4-    Polling method in TreeSet and TreeMap. 5-    TreeSet.descendingSet() and TreeMap.descendingMap(). Thanks to Bilal for discussing these points with me.

2 Comments Continue Reading →

Fetch Twitter friends or followers through REST API in Java

I was playing around with fetching Twitter followers and friends with Twitter4J. But it was taking time to do that. So I code it with using REST urls given by Twitter. It fetches all your friends or followers. Depending upon your application that you want one list or you want to use paging. But I [...]

1 Comment Continue Reading →

Java certification voucher in $40 till 31st March 2010 for students

From a recent announcement from Oracle under Sun Academic Initiative program (SAI). Now students can get Java certification voucher in $40 till 31st March 2010. This is an excellent opportunity for students. After this date they will give 40% discount on the actual price of the exam fee. Read more on SAI home page: All [...]

2 Comments Continue Reading →

How to use and retain Twitter4J OAuth access token

I  was stuck in a problem that how to re use access token, once user has authenticated by Twitter (on call back URL). I got it working. There was problem in my understanding about request token vs access token. When user first time comes on call backed URL. I take request token and token secret [...]

Related Posts Plugin for WordPress, Blogger...
7 Comments Continue Reading →
Page 1 of 41234

Switch to our mobile site