Thursday, November 25, 2010

Take snapshot of an web page

After some searching i found CutyCapt to suit my needs.

After successful installation it gave me the error
QPainter::begin: Paint device returned engine == 0, type: 3

After some searching i found out that that error means that QImage::__construct is failing.
The constructor is failing because i am behind a proxy and CutyCapt did not find any content to create an image

./CutyCapt --url=http://www.google.org --out=example.png --http-proxy=http://144.16.192.245:8080

worked finally

Sunday, November 21, 2010

Apache Mod Rewite

Apache Mod Rewrite is enabled and Rewrite Engine is on, yet rewrite is not working

Likely reason is that AllowOverride is set to None. Changing back to All will resolve the problem
If the problem persists try
RewriteLog logfile
RewiteLogLevel level; 0 - no log 9 - highest 
No log means mod_rewrite is not executing