1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3.00 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/Bookmark







1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3.00 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/Bookmark







1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Pagination in mysql CLI


Ever wonder how to scroll upwards in mysl resultset ?

What if your terminal doesn’t allow scrollback or the scrollback buffer is somehow set to sreen lines ?

How to use MORE or LESS unix commands in mysql which would allow to scroll using ‘return’ or ’spacebar’

Follow the steps given below:

  1. mysql –page uuser -p  [Invoke mysql using the --page command]
  2. mysql> pager less          [set the pager to use less]
  3. mysql> select * from table_name  [run your query]

This also  works under the unix ’screen’ terminal emulation

  • Share/Bookmark







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

10 Principles of the PHP Masters


With PHP’s widespread adoption,it’s almost too easy to find a script or snippet to do exactly what you need. Unfortunately, there’s no filter as to what is a “good practice” and what’s, well… not so good when writing a PHP script. We need trustworthy sources, who have proven they have a solid grasp on the best practices of PHP.

We need PHP masters to show us the best principles to follow for high-grade PHP programming.

Read more »

  • Share/Bookmark







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

Fork Bomb


A fork bomb works by creating a large number of processes very quickly in order to saturate the available space in the list of processes kept by the computer’s operating system. If the process table becomes saturated, no new programs may be started until another terminates.

WikiPage : http://en.wikipedia.org/wiki/Fork_bomb

while(1)
pcntl_fork();

Note: Process Control support in PHP is not enabled by default. You have to compile the CGI or CLI version of PHP with –enable-pcntl configuration option when compiling PHP to enable Process Control support.
Currently, this module will not function on non-Unix platforms (Windows).

  • Share/Bookmark







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

Sieve of Eratosthenes in PhP


Prime Numbers: Positive natural numbers which has exactly two distinct natural number divisors 1 and itself.

Sieve Of Eratosthenes is a computer algorithm to find out prime numbers upto a specified integer starting from 2.
The time complexity of a unfaithful sieve is Θ(n2/(log n)2) ( regardless of what wikipedia might say :( )

Read more »

  • Share/Bookmark







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

Basic dead lock example


A deadlock is a situation wherein two or more competing actions are waiting for the other to finish, and thus neither ever does. It is often seen in a paradox like ‘the chicken or the egg‘.

Read more »

  • Share/Bookmark







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

The Mighty Pengiun


Look .. Mighty Penguin !!
The Mighty Penguin

The Mighty Penguin

Eating away windows

  • Share/Bookmark







1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Hello Lamp-World !


Welcome to the world of LAMP.

For all you disgraceful people who don’t know what it is, the definition:

L = > Linux ( Its an operating system )
A => Apache ( Its a web server )
M => MySQL ( Its a database system )
P => PhP {&perl } ( These are programming languages )

Wiki page: http://en.wikipedia.org/wiki/LAMP_(software_bundle)

We, here, at Lamp-World are group of people who live eat and think lamp.  This site is aimed to have a collection of amazing ’scripts’ , ‘tweaks’ and ’solutions’ which you may not find anywhere else.

  • Share/Bookmark







Page 2 of 2«12