Apache Permission Error
The famous error "You don't have permission to access / on this server" on Apache might have some other rare reasons apart from the following:The file and folders should have enough permissions, at...
View ArticleTemplate Method Pattern in Spring
Many people do not like Template Method pattern but I usually use it and it has been useful in some situations. Although in Spring Framework there is a small trick to apply. Imaging this:public...
View ArticleResize and compress an image in Java
Using this simple code you can reduce the quality of an image and change its size as well:BufferedImage originalImage = ImageIO.read(new File("in.jpg"));double scale = 0.5; // 50 %int newW =...
View ArticleHow to handle returning a large result set to user?
Question: How to handle returning a large result set from database to users of a JavaEE web based application? This question may have many answers but in the context of our project we came to the...
View ArticleHTC Desire 1 Week Experience
I got an HTC Desire a8181 almost a week ago. It is a 2.2 Android phone and quite different from my old Iphone 3G which was too damn slow after stupid Apple ios updates (rip offs)!While I am enjoying...
View ArticleWhy do we have Agile today?
Why didn't we have it 20 years ago?! Why Agile enthusiasts insist on not having too much design before hand, less documentation, not much emphasis on architecture,etc ? why are we able to actually...
View ArticlePort Forwarding on DG834GUv5
Dummy's guide to open ports on DG834GUv5: 1. Using any computer wired connected to the DG834GUv5, open any Internet Browser on the computer. 2. On the address bar, enter 10.1.1.1 then press enter key....
View ArticleAustralia and Migrants
I see these days the immigration laws have been tightened a little, for example IELTS score has been raised to 7 in all bands to get 25 points. This is in fact a good thing as people when they come...
View ArticlePython Web Hello World
This is a Python CGI Web Hello World for Windows and Linux. Install ApacheInstall PythonCreate 1.py as following.Put 1.py in htdocs directory In httpd.conf uncomment and add .py to AddHandler so you...
View ArticleGoodbye JRoller
This is going to be my last post here. I am saying goodbye to JRoller after a couple of years and moving to Wordpress. I found Wordpress an easier platform to work with; more support for code insertion...
View Article