United States|United Kingdom|India

Blog Posts

sudeepg
Jun 08, 2010

 

File Caching is powerful and is useful for files on web server that do not change. Images, pdf files and other static content can be cached, thus reducing the network traffic between the server and the client.

In this tutorial you'll learn how to do file caching using Apache .htaccess file.

 

 

Measure Your Web Performance

There is a great tool: http://www.webpagetest.org/test that you can use to measure your performance. It would suggest your first load time and repeat time view as well along with suggestions.

sudeepg
May 08, 2010

In PHP, we have a nice open source library for PDF file generation, FPDF. This library has an extention FPDI that allows for manipulating PDF files. FPDI extracts the content of the pdf, allows you to change it and then output the changed pdf.

 

 

Example Usage: FPDF. Creating First PDF file.

 

 

Download and unzip FPDF package and include it in your php script. The following code gives an example on how to create your first pdf file named myfile.pdf:

sunil_ebizon
Apr 21, 2010


Browser v/s Server – Optimizing Site Using GZIP Compression

 

In the online world if ever a browser and server interacted in a chat environment, this is what would definitely come up:

sudeepg
Apr 09, 2010

This cheatsheet is a quick reference for using SVN,

 

Create a Repository on Linux: svnadmin create

 

To store projects in Subversion/SVN, first you must create a repository.

svnadmin create /svnrepos

Add a Project to Repository - svn Import

 

svn import -m "import project" /home/xxxx/public_html file:///svnrepos/<project name>

Starting SVN Server daemon- svnserve

svnserve -d

 

sudeepg
Apr 09, 2010

Challenge with Drupal 6 Cron

 

  Drupal cron getting stucked is quite a common problem with Drupal 6 and I found out an interesting way to figure out the reason why it is getting stuck.

 

Logging as always

 

As always, the solution is to log at the correct place. Drupal cron is invoked at includes/common.inc in the function drupal_cron_run (around line 2727), so we begin here logging into watchdog. We have to start logging when the cron starts for a particular module and when it finishes as follows: