1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

HTTP sessions and background processes on Apache-PHP


OK , so you are all excited about running a 10 minute process and you are happy that
you have set the processing as a background process, while the user can surf along your
website / CMS. If you are are using sessions, not quite smarty !

Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4 out of 5)
Loading ... Loading ...

The (hidden) power of ‘ping’


PING

Ping is a Unix utility that sends ICMP ECHO to the server ( destination machine ) from the client ( originating machine ). It takes its name from a submarine sonar search - you send a short sound burst and listen for an echo - a ping - coming back. There is a myth that Ping is actually an acronym for the words ‘Packet INternet Groper’, but there is no proven evidence to support the statement.


Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 1 out of 5)
Loading ... Loading ...

What Rasmus Lerdorf is talking about AJAX


Are you blindly following any ajax library to work your way.

Take a look what Rasmus is talking about AJAX

He follows the rule of simplicity as he described in his framework approach.

Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 3 out of 5)
Loading ... Loading ...

Best practices for faster Web Pages


A few best practices for web page performance

1.Make Fewer HTTP Requests

2.Use a Content Delivery Network

Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4 out of 5)
Loading ... Loading ...

Emacs for PHP


1.download php-mode.el from http://sourceforge.net/projects/php-mode/

2. copy php-mode.el to emacs/lisp/

3.byte compile php-mode.el file to get php-mode.elc file

command:  M-x byte-compile-file

4.add following lines to you .emacs file

(require ‘php-mode)

(add-to-list ‘auto-mode-alist ‘(”\\.module$” . php-mode))

(add-to-list ‘auto-mode-alist ‘(”\\.inc$” . php-mode))

(add-to-list ‘auto-mode-alist ‘(”\\.install$” . php-mode))

(add-to-list ‘auto-mode-alist ‘(”\\.engine$” . php-mode))

done! emacs is ready to support php.

try C-c C-f on built in php function

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Multiple SQL Queries in a Stored Procedure.


Working on a Thursday afternoon, I came across a problem where we had to return multiple counts (about 10 of them ) in an application. One way was to have multiple stored procedures and call them one by one, but this would mean I would have to make 10 connections to the database and 10 opens , 10 closes, phew !


So I decided to combine all of them into one:
Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4 out of 5)
Loading ... Loading ...

Very Useful Linux/Unix Commands


Working on a *nix system is no piece of cake. Especially when you are used to Graphic interface of ‘windows’. The world where mouse is the king.

Here is  a list of most used / most discussed / most important  *nix commands. Mastering this will surely get your confidence level high in the black background and white characters’ world !!

My experience says that for starters in UNiX / LiNuX , these commands are enough to get you in smoothly ! :)  Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
Loading ... Loading ...

AWK ! A boon for CLI enthusiasts


AWK is a general purpose programming language that is designed for processing text-based data, either in files or data streams, and was created at Bell Labs in the 1970s

I noticed that Erik Wendelin wrote an article “awk is a beautiful tool.” In this article he said that it was best to introduce Awk with practical examples. I totally agree with Erik.

Eric Pement’s Awk one-liner collection consists of five sections:

  • 1. File spacing,
  • 2. Numbering and calculations,
  • 3. Text conversion and substitution,
  • 4. Selective printing of certain lines,
  • 5. Selective deleting of certain lines.

The first part of the article will explain the first two sections: “File spacing” and “Numbering and calculations.” The second part will explain “Text conversion and substitution”, and the last part “Selective printing/deleting of certain lines.” Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3 out of 5)
Loading ... Loading ...

Bad day: whack your boss


Too much work ? Slow servers ? Boss going crazy ?  Nothing working out ? Feel like killing someone ? ?

Read more »

Share/Save/Bookmark








1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3 out of 5)
Loading ... Loading ...

103 Ways To Know Your Software Project Is Doomed


inspired from: codesqueeze.com

  1. Management has renamed its Waterfall process to Agile Waterfall
  2. You start hiring consultants so they can take the blame
  3. The Continuous Integration server has returned the error message “Fuck it, I give up”
  4. You have implemented your own Ruby framework that uses XML configuration files Read more »

    Share/Save/Bookmark