Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, March 8, 2013

Basic JQuery Interview Questions


Is jQuery a library for client scripting or server scripting?
Ans: Client scripting

Is jQuery a W3C standard?
Ans: No

What are jQuery Selectors?
Ans: Selectors are used in jQuery to find out DOM elements. Selectors can find the elements via ID, CSS, Element name and hierarchical position of the element.
jQuery Selectors are used to select one or a group of HTML elements from your web page.
jQuery support all the CSS selectors as well as many additional custom selectors.
jQuery selectors always start with dollar sign and parentheses: $()
There are three building blocks to select the elements in a web document.

Friday, December 14, 2012

Sending E-mails with attachments

Sending E-mails with attachments
After hours of searching for sending emails with attachment, my search results in below solution.
For sending emails with attachments, we can use ZEND library, but it make no sense for me to use such a big library just for sending email. Here is simple solution for this problem with couple of simple lines.


Friday, November 2, 2012

Creating custom module in Drupal 7

Creating custom module in Drupal 7
Drupal is very rich in terms of modules. There are hundreds of modules available on Drupal official site. One just need to find the appropriate module and start playing with that module after installing it in his application. 

But sometimes, there comes a situation when developer has to develop his own module. Here I am writing the steps to develop a module which will create a web form. In this tutorial we will learn how to develop a web form, validating the data & submitting data into database. 

Friday, October 19, 2012

Thought


When things in your life seem almost too much to handle, when 24 hours in a day are not enough, remember the mayonnaise jar and the 2 Beers.



A professor stood before his philosophy class and had some items in front of him. When the class began, he wordlessly picked up a very large and empty mayonnaise jar and proceeded to fill it with golf balls. He then asked the students if the jar was full. They agreed that it was.

Tuesday, October 16, 2012

Setting Environment Variable in LINUX

Setting Environment Variable in LINUX
Environment variables in LINUX are basically the shell variable used to set configuration options and customize the shell environment under Linux. 



Display Environment variables
    $ env

Setting Environment Variable in LINUX


Here is the syntax of setting environment variables 

Tuesday, October 9, 2012

Managing MySQL Server Logs

Managing MySQL Server Logs
MySQL Server provides several logs that help us find out what activity is taking place. MySQL provides different types of log files. 
Error Log: contains information indicating when mysqld was started and stopped and also any critical errors that occur while the server is running. 
General Query Log: is a general record of what  mysqld is doing. The server writes information to this log when clients connect or disconnect, and it logs each SQL statement received from clients. 
Binary Log: contains “events” that describe database changes such as table creation operations or changes to table data. 

Organizing short folder structure Using mod_rewrite

Organizing short folder structure Using mod_rewrite
Sometimes long folder names become annoying to type and can cause your page to result in huge loading time. Thank GOD !!! .htaccess file is there with a solution for this problem. It also leads to Search engine friendly URLS and image names (for image searches)