Category: code

gettinig PDF form field names

If you have a PDF and want to fill the pdf programmatic-ally, You can but you need those pdf’s form fields. Here’s a simple Java Class which can help you. I am using iText as my PDF library. import java.util.HashMap; import java.util.Iterator; import com.lowagie.text.pdf.*; public class iTextSample { public static void main(String[] args) throws Exception{ […]

SSH proxy – Running SSH over blocked ports, SSH on mobile phones, SSH over HTTP

Imagine yourself in a scenario where you’re a behind a firewall and cannot access the SSH, or you’re controlling your servers via your mobile. Here’s a quick way to manage your servers through HTTP via command line. You can fire scripts, run shell commands etc. Be careful, it will not ask you any username/password and […]

Webmethods running linux commands as a java service

Recently a friend asked me how in webmethods, she could fire linux specific utility tasks. She wanted to find out if the disk space is full on linux. This can be done very easily by the “df- kh” command. But how to invoke this through webmethods? Solution: Follow the steps below. Step 1: Create a […]

Rediff.com Coding Standards: An Analysis

By Hussain Fakhruddin hussulinux@gmail.com Rediff has a lot of portals within its main portal. This is how they organize their re-usable code. The first thing I did is logged on to: http://indian-railways.rediff.com/ I opened my Fire Fox’s Error Console and found this: The next thing I did was to open up the source code: I […]

Single line of HTML crashes IE 6

A Japanese blogger who goes by the name Hamachiya2 has discovered a single line of HTML and CSS that crashes IE 6. The line is: <style>*{position:relative}</style><table><input></table> If you’re brave, you can click here to try it out. The code is rendered correctly in Firefox, Safari and Opera (didn’t get a chance to try any other […]