Wednesday, 26 June 2013

8 Tips to Treat Colds and Flu the 'Natural' Way

With no cure in sight for the cold or the flu, over-the-counter treatments can at best bring symptom relief or shorten the duration of those symptoms. Or you can take the natural approach. WebMD explores some home remedies that may help you feel better along the way.



No. 1: Blow Your Nose Often -- and the Right Way

It's important to blow your nose regularly when you have a cold rather than sniffling mucus back into your head. But when you blow hard, pressure can cause an earache. The best way to blow your nose: Press a finger over one nostril while you blow gently to clear the other. Wash your hands after blowing your nose.

No. 2: Stay Rested

Resting when you first come down with a cold or the flu helps your body direct its energy toward the immune battle. This battle taxes the body. So give it a little help by lying down under a blanket.

No. 3: Gargle

Gargling can moisten a sore throat and bring temporary relief. Try a teaspoon of salt dissolved in warm water, four times daily. To reduce the tickle in your throat, try an astringent gargle -- such as tea that contains tannin -- to tighten the membranes. Or use a thick, viscous gargle made with honey or a mixture of honey and apple cider vinegar, a popular folk remedy. Steep one tablespoon of raspberry leaves or lemon juice in two cups of hot water and mix in one teaspoon of honey. Let the mixture cool to room temperature before gargling. Honey should never be given to children less than 1 year old.

No. 4: Drink Hot Liquids

Hot liquids relieve nasal congestion, help prevent dehydration, and soothe the uncomfortably inflamed membranes that line your nose and throat.

No. 5: Take a Steamy Shower

Steamy showers moisturize your nasal passages and relax you. If you're dizzy from the flu, run a steamy shower while you sit on a chair nearby and take a sponge bath.

No. 6: Apply Hot or Cold Packs Around Your Congested Sinuses

Either temperature may help you feel more comfortable. You can buy reusable hot or cold packs at a drugstore. Or make your own. Take a damp washcloth and heat it for 55 seconds in a microwave (test the temperature first to make sure it's not scalding). Or take a small bag of frozen peas to use as a cold pack.

No. 7: Sleep With an Extra Pillow Under Your Head

This will help with the drainage of nasal passages. If the angle is too awkward, try placing the pillows between the mattress and the box springs to create a more gradual slope.

No. 8: Don't Fly Unless Necessary

There's no point adding stress to your already stressed-out upper respiratory system, and that's what the change in air pressure will do. Flying with cold or flu congestion can hurt your eardrums as a result of pressure changes during takeoff and landing. If you must fly, use a decongestant and carry a nasal spray with you to use just before takeoff and landing. Chewing gum and swallowing frequently can also help relieve pressure.
Remember, serious conditions can masquerade as the common cold and a mild infection can evolve into something more serious. If you have severe symptoms or are feeling sicker with each passing day, see a doctor.

Tuesday, 25 June 2013

10 Amazing Google Search Hidden Tricks That Will Surprise You

You could store your photos, read books etc. apart from its features Google also has some very cool hidden tricks that you would love. One such feature is the Google barrel roll .It turns your webpage upside down just like the barrel rolls. Barrel roll is one such trick that leaves the users completely astonished .There are a lot of similar such tricks that would leave you completely surprised.


 1. Gravity
When you enter Google gravity in the search bar, and hit I’m feeling luck you would greatly astonished to see how it brings your world down.
2. Askew
Just enter ASKEW and you would be forced to tilt your head.
3. Chuck Norris
Search for Chuck Norris Walker Texas Ranger star and you would be astonished with what Google has in store for you.
4. ASCII
Search for ASCII art and that’s the weirdest things you could do. Google presents you with a special logo.
5. Recursion
When you search for the word Recursion google asks you”Did you mean recursion”.
6. Mentalplex
Mentalplex began as an April fool joke but with this feature you can baffle your family and friends.
7. Pacman
Pacman is another Google doodle to entertain you when you’re bored.
8. Ninja
When you go to the Google reader and using your cursor keys scroll up down right and left you are greeted by a ninja that appears on the screen.
9. Nessie
For this to work you will have to set your Google page to beach theme and wait till 3:14 am or set ahead your clock.
10. Flight simulator
Click on tools and enter flight stimulator and enjoy your flight to the planet.

25 Amazing Transportation Logo designs


How to make people login into your website with their Google account

OpenID provides a safe, elegant and easy way for people to login into your website without having to fill in a registration form. They just have to have an account to one OpenID provider, a Google account for instance, and they will login into your site with this account.

I will show you how to implement it with Google accounts, but the source code is exactly the same for other providers (such as Yahoo!), you just have to change the URLs.
?How does it work ?
You just have to know that you don’t have to deal with the user authentication. You will provide a link to a Google page in which the user will :
  • give his credentials (or not, if he is already logged on Gmail for instance) :
  • give the authorization to Google to give you some his personnal data that you request :
Then the user will be redirect to a page of your website, that you chose, and you will be able to retrieve his personal data.

Let’s write some code !

We will have two part in our the code :
  • First, the code to retrieve the user personal data. Here, you just want to execute that code once, only when the user clicks on “Login with my Google account”. 
  • Then, the code to render the login button. You might want to display the login button on several pages, in your sidebar or whatever, so that code has to run each time you render the button.

1
We will be using a one-file PHP OpenID library that you can download here :LightOpenID. Just put this file in your project folder.

2
Here is the login.php file, it will be the page that the user willl be redirected to after having given his credentials and authorization to Google. This code retrieve and display the personal data of the user :
<?php
require_once 'openid.php';
$openid = new LightOpenID("my-domain.com");
 
if ($openid->mode) {
if ($openid->mode == 'cancel') {
echo "User has canceled authentication !";
} elseif($openid->validate()) {
$data = $openid->getAttributes();
$email = $data['contact/email'];
$first = $data['namePerson/first'];
echo "Identity : $openid->identity <br>";
echo "Email : $email <br>";
echo "First name : $first";
} else {
echo "The user has not logged in";
}
} else {
echo "Go to index page to log in.";
}
?>
Make sure to replace my-domain.com by your domain name.
If you have already a running signup/login system on your website, you might want to add a openid_identity field to your table users in your database and store in it $openid->identity. It is the unique ID that Google provides you to identify the user. The other fields may change if the user changes his Google profile.

3
And last step, the code to render the button, let’s say on the home page,index.php. It will call a Google window and it will tell this window to redirect to your site after.
<?php
require_once 'openid.php';
$openid = new LightOpenID("my-domain.com");
 
$openid->identity = 'https://www.google.com/accounts/o8/id';
$openid->required = array(
'namePerson/first',
'namePerson/last',
'contact/email',
);
$openid->returnUrl = 'http://my-domain.com/login.php'
?>
 
<a href="<?php echo $openid->authUrl() ?>">Login with Google</a>
Here you have to change the returnUrl field : put the absolute URL of the PHP page of step 2.
Once again, make sure to replace my-domain.com by your domain name.

4
To logout a user, just destroy the session :
session_destroy();
And that’s it ! Finally, some figures about with what OpenID provider users prefer login according to JanRain.

What users prefer

Other OpenID providers

You can use this code to make people login into your website with some other accounts : Yahoo, WordPress, AOL, … You just have to change the url $openid->identity by :
  • Google : https://www.google.com/accounts/o8/id
  • Google profile : http://www.google.com/profiles/~YOURUSERNAME
  • Yahoo : https://me.yahoo.com
  • AOL : https://www.aol.com
  • WordPress : http://YOURBLOG.wordpress.com
  • LiveJournal : http://www.livejournal.com/openid/server.bml

Other languages

You can find the equivalent of LightOpenID that I used in PHP in the other languages on this page of the OpenID.net wiki : Libraries.
Feel free to ask questions right here ↓

Monday, 24 June 2013

YouTube Downloader by ViStuffs

A free Google Chrome extension to download Youtube videos on your computer, works for both Mac and Windows.


After the extension is installed in your chrome broswer, you can easily download any Youtube videos on Youtube by clicking the download links under the videos.
Note If unable to download, please right click on Download Now! Button and click on save link as..

Installation Guide:

  • Download the extension file by clicking the Download Now button.
  • Click the wrench icon on the Google Chrome browser toolbar.
  • Select Tools > Extensions.
  • Locate the extension file on your computer and drag the file onto the Extensions page.
  • Click Install

    Sunday, 23 June 2013

    How to Root Samsung Galaxy Chat B5330 - ICS


     Do at Your Own Risk

    Might not work on Jelly Bean Update.

    Samsung’s entry-level Android ICS Device, the Samsung Galaxy Chat B5330, debuted in August this year and with that, it brought a choice for beginners to choose their next ICS device. The phone brings a physical QWERTY keypad along with a nice set of hardware to meet the requirements of a heavy chatter. No matter what great features the device comes with, the real potential can only be unlocked by rooting the device. To root your Samsung Galaxy Chat B5330 device, you can follow our guide.
    By editandroid.blogspot.com

    I. Before You Begin:

    1. Rooting voids the warranty of your device (until you unroot it).
    2. Please charge your device to have at least 60% of battery life left.

    II. Downloading Required Files:

    1. Root Package (Download link’s given in the first post, under Rooting section)

    III. Rooting the Samsung Galaxy Chat B5330:

    1. Download and place the Root Package file onto your Desktop. Do NOT extract it.
    2. Connect your device to your PC using the USB cable.
    3. Copy the Root Package file over to the SD card of your device.
    4. Once done, disconnect the device from your PC.
    5. Turn OFF the device.
    6. Reboot the device into Stock Recovery. To do so, press and hold the Volume Up+Home+Power buttons together.
    7. Once inside the recovery, choose apply update from sdcard.
    8. Select the Root Package(update.zip) you copied earlier to the device.
    9. Be patient and let it root the device.
    10. Once done, reboot the device.
    11. You’re good to go!
    Brilliant! You now have root access on your Galaxy Chat B5330 device

    How To Unroot Samsung Galaxy Chat B5330
    Samsung Galaxy Chat B5330 is an entry-level Ice Cream Sandwich smartphone from Samsung that delivers the power of Google’s latest (not the greatest) Android firmware to the users. We already have a root guide for the device that shows how you can get the most out of your device and in this guide, we’ll be showing you how you can unroot your device, to get the lost warranty back and to enjoy the stock performance of the device. Here’s how you can do it:

    I. Before You Begin:

    1. Your device needs to have at least 60% of battery life left.

    II. Downloading Required Files:

    1. Odin
    2. Stock Firmware (Download the appropriate firmware for your device)

    III. Unrooting the Samsung Galaxy Chat B5330:

    1. Download and place both the files onto your Desktop.
    2. Unzip files from both the archives to your Desktop.
    3. Double-click on the Odin executable file and it should launch.
    4. Click on PDA and select the Stock Firmware you extracted earlier to your Desktop.
    5. Checkmark the boxes that say Auto Reboot and F. Reset Time.
    6. Leave the Repartition box unchecked.
    7. Turn OFF your device.
    8. Reboot the device into Download mode by pressing and holding the Volume DOWN+Home+Power buttons together.
    9. Once inside the Download mode, connect your device to your PC using the USB cable.
    10. Hit Start in the Odin and it’ll begin flashing the firmware.
    11. Once it’s done, your device will automatically reboot.
    12. And you’re all done!
    Awesome! Your device has been successfully unrooted and you’re now running the latest official stock firmware on your device.

    Do at Your Own Risk