Posts

Showing posts from January, 2011

The famous jobs jokes

Image
An applicant was filling out a job application. When he came to the question, "Have you ever been arrested?" He answered, "No." The next question, intended for people who had answered in the affirmative to the last one, was "Why?" The applicant answered it anyway: "Never got caught." A business was looking for office help. They put a sign in the window, stating the following: HELP WANTED Must be able to type, have computer skills, and be bilingual. We are an Equal Opportunity Employer. A dog trotted up to the window, saw the sign and went inside. He looked at the receptionist and wagged his tail, then walked over to the sign, looked at it and whined a bit.Getting the idea, the receptionist got the office manager. The office manager looked at the dog and was surprised, to say the least. However, the dog looked determined, so he led him into the office. Inside, the dog jumped up on a chair and stared at the manager. The manager said "

Solar Beer Power to heat the water

Image
Solar Beer Power This can be also possible in Nepal so i encourage to Engineers students to do the same so that it can be beneficial to the Nepali  markets. A Chinese farmer has made his own solar-powered water heater out of beer bottles and hosepipes. 'I invented this for my mother. I wanted her to shower comfortably,' says Ma Yanjun, of Qiqiao village, Shaanxi province. Ma's invention features 66 beer bottles attached to a board. The bottles are connected to each other so that water flows through them. Sunlight heats the water as is passes slowly through the bottles before flowing into the bathroom as hot water, reports China Economy Network. Ma says it provides enough hot water for all three members of his family to have a shower every day. More than 10 families in the village have already followed suit and installed their own versions of Ma's invention. A Wife Sends Her Husband to a Grocery Store: "And don't forget to buy the milk, do you hear me

Creating sortable lists with PHP and AJAX

Creating sortable lists with PHP and AJAX By Quentin Zervaas, 24 February 2006 Creating our database and populating it We will now create the database table we need in order to create this example. We won’t be writing all the code for inserting, editing and deleting of data, as it is beyond the scope of this example. As such, we will simply provide insert statements to create a static list of data. The examples below are for PostgreSQL and MySQL. Create your database First up, you need to create a database for this article. This may be in either PostgreSQL or MySQL. Additionally, you may need to setup a username and password to access the database, depending on your system setup. MySQL database schema Highlight: SQL create table movies (     movie_id     int              not null     auto_increment ,     title        varchar ( 255 )     not null ,     ranking      int ,      primary key ( movie_id ) ) ; PostgreSQL database schema Highlight:

How ajax makes things easy

A couple of days ago I was browsing the net for some remote scripting (also known as AJAX) examples and how to use the XmlHttpRequest object. However, all examples were quite nasty in imiplementation so I decided to write an nice little javascript wrapper around the XmlHttpRequest object. // JavaScript Document function EzRemoteScripter () {     //private variables     var _XmlHttpRequest = null ;     var _This = null ;         //public properties     this . GetResponseXML = function() {         return ( _XmlHttpRequest ) ? _XmlHttpRequest . responseXML : null ;     }         this . GetResponseText = function() {         return ( _XmlHttpRequest ) ? _XmlHttpRequest . responseText : null ;     }         this . GetXMLHttpRequestObj = function() {         return _XmlHttpRequest ;     }         //public methods     this . InitXmlHttpRequest = function( Method , CallUri ) {         _InitXmlHttpRequest ();         _This = this ;         switch(