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{ […]
Category Archives: code
Stop using rediff
I have reasons to believe that rediff’s code quality has become really pathetic day by day. Delivery managers aren’t paying attention to the feedbacks. They keep putting bad code and pile up stacks of powerful servers to hide their bad programming practices! Its high time Rediff ! WAKE UP! After my initial post on a […]
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 […]
Deep Linking How to avoid
A deep link is a direct link to a web site’s resource without accessing the main page of the site. For example your site is http://www.abc.com and your contact page is at http://www.abc.com/contactus/contact.html. If a user types the 2nd link without going though the main page, he is called as The Deep Linker. It becomes […]
VB6 and IE7 problem
One may no longer be able to use the ieframe.dll when using IE7 with VB6’s Web Browser Control Here’s a quick tip:On your component selection dialog box, Point the Microsoft Internet Controls to SHDOCVW.dll instead of ieframe.dll and bingo!