Category: Programming

Switching off Log4j logging using JAVA 0

Switching off Log4j logging using JAVA

Sometimes we need to switch off logging done by Log4j API. In most of the cases console logging is given by default for external APIs using Log4j.We can turn it off through simple Java...

SFTP without host key verification using J2SSH 0

SFTP without host key verification using J2SSH

In this post we will see how to make SFTP connection using J2SSH library and by pass host key verification.When client connects to server using SFTP, server provides public key to the client for...

Packaging dependent libraries in Jar file 1

Packaging dependent libraries in Jar file

Sometimes developers release Java based applications as distributable Java Archive or JAR files.Most of the time, my applications are JAR files only.The major concern lies with dependent external library files.The final released JAR file...

Shell script to validate shell type 0

Shell script to validate shell type

Sometimes its required to check the shell type to dynamically carry out some operation in unix environement.Here is a small shell script I wrote to check shell type.Currently the script only checks for Korn...

How to persist OAuth access token for twitter application 1

How to persist OAuth access token for twitter application

Twitter has become become the information hub in the world wide web.Popularity of Twitter is because of its simple user interface with abounding features and galore of APIs.Any developer will agree, Twitter has most...

Access and Manipulate Elements of XML file Using Jdom 2

Access and Manipulate Elements of XML file Using Jdom

It has been long time since I updated my blog, challenging the very definition of blog.Anyway lately I’ve been doing some XML parsing for a new project using Java.I used the default “document Object...

Hardcode widget in blogger template 0

Hardcode widget in blogger template

In the Blogger template widget code is not integrated into template .Sometimes while designing a template widgets become integrated part .As widget code is not carried over through the template we need to hardcode...

How to show html code in blogger post 5

How to show html code in blogger post

Time and again while posting a tutorial involving HTML ,we need to show the actual code for easy reference.But,the code gets rendered i.e it’ll show the output of the code in the browser.I’ve come...

Phishing the phisher : a counter attack tutorial 0

Phishing the phisher : a counter attack tutorial

This post will explain you about phishing which came across me when I used to learn hacking related stuffs.In this post I will be explaining you mode of operation of phishing starting from scratch.Though...

Remove blogger navigation bar :: two methods 0

Remove blogger navigation bar :: two methods

For each of the blogs at Blogspot.com, the domain name of free blog hosting for Blogger, there is a notable Blogger navigation bar (also known as NavBar) at the top of each blog pages!...