Quantcast
Channel: Reza's Weblog
Browsing all 50 articles
Browse latest View live

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 Article


Template 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 Article


Resize 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 Article

How 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 Article

HTC 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 Article


Why 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 Article

Port 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 Article

Australia 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 Article


Python 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 Article


Goodbye 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
Browsing all 50 articles
Browse latest View live