The smartest umbrella ever

Rainy seasons and you always need an umbrella keeping with you always. We struggle always to open or close our umbrella. What if the umbrella will have too much smart to do everything automatically! Yes, it is true to come.

This smart umbrella has the following features.

  1. Automatic open and close with one button push.
  2. Synced with our smart phones.
  3. Bluetooth connectivity so you can not loose it. It will send you notification in your smart phone if you keep it any place and forget to take.
  4. Weather forecasting.

This smart umbrella is a project of Indiegogo and you can purchase this lovely umbrella from their Indiegogo or support them.

Continue Reading

Install Evernote on Linux

Evernote is the most popular work space application nowadays and you can keep anything of your mind like notes, images, audio/video clips, web bookmarks, web clips for your use. Aprt from web version Evernote provide beautiful tool for Windows and MAC. But for Linux users? Yes, you can install Evernote on Linux too. The Linux version is called Everpad. Here is the process to install on Linux.

Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run command below to add the PPA:
sudo add-apt-repository ppa:nvbn-rm/ppa
Then update and install this app:
sudo apt-get update;
sudo apt-get install everpad
Once installed, open Everpad from Unity Dash.
Continue Reading

Count your wordpress search results

The default WordPress search results page is noting but to show you the total results as per your search keywords. You can spice this page up a bit by showing the total search count like
4 Results found or something like this….

Just you need to add some codes and it will look like the image below.

The main code which do this action is:

<?php $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; ?>

Now what you will have to do is as follows.

Step 1: Open search.php page inside your theme folder. Remove the existing search query and put the following code.

Step 2: Save the file and check the updates doing some search.

If you are new to WordPress theme modification then make sure you will not basic WordPress template function like header, sidebar and footer as get_header(); get_sidebar(); and get_footer();

You can modify the code for style purpose or adding more ingredients on search.

Continue Reading

Get Latitude and Longitude from your Postal Address

We generally do not know the latitude and longitude of our area or any other area if we have needed to get the information. Sometimes we have to Google for getting this information. It is not a big issue to find out the approximate latitudeĀ  and longitude for any location and it can easily be done in PHP.

latitude-longitude

Here I am writing the procedures to do the same.

  1. Create a PHP page say ‘postal_lang_long.php’ .
  2. Put the following codes in the PHP file.
  3. Now place your PHP file in your web server and open the file in any browser.
  4. Now in your browser you can see a text box asking for the name of the place.
  5. Enter the place-name and hit ‘go’ button.
  6. That’s all, you will be shown the latitude and longitude of your location.
Continue Reading