Monthly Archives: October 2015

Geoloaction in form input type

Here I’m going to tell you interesting topic regarding google map application in web development. Most of the website need googlemap location while we are entering location name, for that we have one solution. Here I explain,when we are entering the location name in input type you will get the map for that particular location by using jquery. It’s very simple and can use in your web development application, this will helps for all the e-commerce site.I hope this concept is really helpful for all developer.



demo

CODE





Geo location  



	

Geoloaction in form input type







download

If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

Radio Button Style – CSS

In here,show you how to create stylish CSS radio buttons with different effect, that you can embed in your webpage.
Radio button is circular buttons that are ‘selected’ when you click on them. Radio button common on forms.
We can put the border style, different effect in radio button. Its very simple and can modify your own needs.

demo




CODE




	
	CSS RAdio Button style



	

Radio Button style





download

If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

Popup the image gallery with form

Hi Friends,
Popup the image with enquiry form using CSS,jquery and javascript in html or php page.
This is simple, can edit style, image,form etc.To use it in a real life project like ecommerce website, the customers can post feedbacks as comments in specified product.$(“.mylink”).on(“click”, function (e) { } helps to popup the window with image and form on click.








Popup the image gallery with Enquiry form





Popup the image gallery with Enquiry form





download

Responsive Navigation Menu Using Only CSS

Hi all,
Responsive menus are built to work with desktop browsers as well as touch and mobile devices.
In here the dropdown menu also available in all device using pure CSS. A pure CSS responsive menu created that automatically changes to a toggleable dropdown menu at a specified breakpoint based on CSS3 media queries.
If you are having trouble getting your website menu working on an iPhone, iPad, or Android device, then check out these menus.



demo

Code






Responsive Menu Demo











download

Get highest or second highest or lowest values from table – MYSQL

Hi Guys,
Today I share some useful topic related to MYSQL. The MYSQL is very helpful in our project or queries for different functionality.
The MYSQL is most popular Open source management system.

Suppose that, you are given the following simple database table called EmployeeDetails table that has two field like EmployeeID and Salary. We can fetch the data from database and also fetch content from database table based on condition.

It is easy to select the highest or lowest record in the database table with the MAX or MIN function.

Fetch Full data from database table as EmployeeDetails:

select * from EmployeeDetails;

EmployeeID Salary
1 4000
2 8000
3 8500
4 14000

Get the highest salary from the table EmployeeDetails:

Select MAX(Salary) from EmployeeDetails;

Running the SQL above would return us 14000, which is of course the highest salary in the EmployeeDetails table.

Get the second highest salary from the table EmployeeDetails

SELECT MAX(Salary) FROM EmployeeDetails WHERE Salary NOT IN (SELECT MAX(Salary) FROM EmployeeDetails);

Running the SQL above would return us 8500, which is of course the 2nd highest salary in the EmployeeDetails table.
Code Explanation:The SQL above, first find the highest salary values from the EmployeeDetails table using “Select MAX(Ssalary) from EmployeeDetails”. Then, adding the “WHERE Salary NOT IN” in front basically creates a new set of Salary values that does not include the highest Salary value. For instance, if the highest Salary in the EmployeeDetails table is 14000 then that value will be excluded from the results using the “NOT IN” operator, and all values except for 14000 will be retained in the results.

Here is another SQL query to find second highest salary using subquery and < operator instead of IN clause:

SELECT max(salary) FROM EmployeeDetails WHERE salary < (SELECT max(salary) FROM EmployeeDetails);

Running the SQL above would return us 8500, which is of course the 2nd highest salary in the EmployeeDetails table.

Get the lowest salary from the table EmployeeDetails:

Select MIN(Salary) from EmployeeDetails;

Running the SQL above would return us 4000, which is of course the 2nd highest salary in the EmployeeDetails table.

Drag and Drop Concept – Jquery

Hi all,
Here I’m going to show you, how to implement drag and drop functionality using jquery. This drag and drop method mostly used for designing purpose.Drag the image from div and drop to specified div after successfully droped the success message box display otherwise fail alert box display. Here I just used a simple drag and drag concept for designing purpose



demo

If you want to add drag and drop functionality into your web site, you need to include both jQuery library and jQuery UI plugins.

When you add an element to a web page — such as a div or an image — then that element is fixed in the page. However, using jQuery UI, it’s easy to make any element draggable with the mouse.




To make an element draggable, simply call the draggable() method on it.

CODE



    Drag and Drop-prittytimes.com


    
    
    
    
    
    

Drop here




The drag and drop concept or method mostly used for designing purpose. In above example i just used a simple drag and drag concept for designing purpose.

The div are draggable, that is what we are mentioned in the above script. i hope this will helpful to every one.

The Midnight commander

The midnight commander (mc) is a powerful text based file manager. It is a directory-browsing tool and allows all the basic file operations. It can be used to view the contents of archived files, browse the ftp repository of a remote server and undelete files in the older file systems, and has a built-in text and hex viewer.




It even allows you to use the command line within it. It can be started by typing mc at the prompt.

$mc

Shred command for overwriting a file

The operating system does not completely erase a file when the file is detected. The file could be recovered by third party forensic tools. But we can use the shred command to overwrite a file, to make it almost impossible for it to be recovered. The file is overwritten three times, by default, which can be changed by the -n option.

$shred –n 5 trial.txt





The above command will overwrite the file trial.txt five times.
The –u option can be used to remove a file after overwriting.

$shred -u trial.txt

The shred tool may not work in journaling file systems and RAID file systems.
Even the’srm’(secure remove) and ‘wipe’ utilities can be used to securely remove a file, though they are not installed by default in most Linux system.

Low- level HDD formatting

You often have a hard disk drive that needs to be formatted such that all data in it gets destroyed. Here is a command that can erase all data from your HDD.

#dd if=/dev/zero/of=/dev/had bs=1M





This will formate your primary HDD(had) to a low level using dd. This will fill the entries disk with a sequence of zeros. In case you want to mix zeros and ones to fill the HDD, you can use the following command:

#dd if=/dev/urandom of=/dev/had bs=1M