Saturday, 16 September 2017

Worry yourself for happiness

'Don't Worry be happy' was a hit in 1989, but what does it mean? Is there a 'worry' button you can turn off? Worrying is not as bad a response to a situation as people patting your back and asking you to cheer up make it seem.

In small doses worrying can help you recover from trauma and depression, and increase healthy behaviors, says an article in New York Magazine. "worries tends to be more successful problem-solvers, higher performers at work and in graduate school, and more proactive and informed when it comes to handling stressful events."

We all know why worrying is considered bad. It is unpleasant and distracting, makes us irritable and deprives us of sleep. "It sucks up so much of your mental energy that it can be impossible to actually focus on what's happening in front of you."

But when participants in a 1996 study were asked if they could list some upsides of worrying, they said it made them better planners, more analytical thinkers, and conscientious. Worriers were more likely to have safe sex, wear sunscreen, and buckle their seat belts, the article says.

How did worrying produce positive outcomes? Active worriers don't just take steps to prevent something bad from happening but also try to reduce their own need to worry. If you are stressed over a job interview, you will not only spend more time preparing for it but also look out for other jobs. "It's like the opposite of a vicious cycle - the more you worry, the more you plan, the less worried you actually need to be."

Even if things don't work out, people who have been worrying about failure are prepared for it. "For a constant worrier, bad news is rarely a total shock"

Thursday, 7 September 2017

Free Mobile-Optimized Website On Google My Business

Google recently launched a new simple, free, and fast way to build a mobile-optimized website through Google My Business. Using Google My Business,
local businesses can create their frst website for free, right from their phone in less than 10 minutes.
Google My Business


Shalini Girish, Director – Marketing Solutions, Google said, “With over
400 million Indians online, and 300 million of them on smartphones, the
internet has emerged as the go-to destination to research and buy. So it’s
important for businesses to be where customers are. However, small business
owners tell us that building a website can be complex, expensive, and
time-consuming. In order to solve these problems for them, we introduced a
new simple, free, and fast way to build a mobile optimised website through
‘Website With Google My Business’.”

Available for Google My Business users, this new feature will provide
simple, templated, editable websites for small businesses created from their
data and photos on Google Maps. Google uses small businesses listing to
build the site, taking care of the design and making sure their website is
found in Search and Maps. Over 120,000 Indian businesses were part of the
pilot rollout program that has been running for the past fve months.
Google My Website builder makes it easy to get a free domain from
Google or buy your own with Google Domains right from Google My
Business. Businesses can manage everything in one place- desktop, mobile,
or the Google My Business app. ‘Website with Google My Business’ is available in ten languages including English, Hindi, Bengali,
Telugu, Marathi, Tamil, Urdu, Gujarati, Kannada, and Malayalam.

Saturday, 2 September 2017

Add a "Voice Search" to your Search Engine

    Create a Gonik search engine just like a google search engine...
      The HTML5 Web Speech API has been around for few years now but it takes slightly more work now to include it in your website.
Here's a html code...

<style>
  .speech {border-style: solid; width: 400px; padding: 0; margin: 0;
height:30px; }
  .speech input {  height: 30px;}
  .speech img {float: right; width: 35px }
body {
    padding:150px 500px;
    font-size: 10em;
    font-style: italic;  
}
</style>



<!-- Search Form -->
<form id="labnol" method="get" action="https://www.google.com/search">
<body><font color="orange">Gonik</body>
  <div class="speech">
    <input type="text" size="46"   name="q" id="transcript" placeholder=" 

Search Goonik or type URL" />
    <img onclick="startDictation()" src="//i.imgur.com/cHidSVu.gif"

title="Search by voice" />
  </div>
</form>

<!-- HTML5 Speech Recognition API -->
<script>
  function startDictation() {

    if (!('webkitSpeechRecognition' in window)) {
        alert("Microphone is Disabled");
    }
    else{

      var recognition = new webkitSpeechRecognition();

      recognition.continuous = false;
      recognition.interimResults = false;

      recognition.lang = "en-US";
      recognition.start();

      recognition.onresult = function(e) {
        document.getElementById('transcript').value
                                 = e.results[0][0].transcript;
    //console.log('You said: ', event.results[0][0].transcript);
        recognition.stop();
        document.getElementById('labnol').submit();
      };

      recognition.onerror = function(e) {
        recognition.stop();
      }

    }
  }
</script>


Now, you have done...
Just save your file and run on your browser using a server(xampp server or any other) and see the magic of "Gonik Search Engine"...

Some Notes before running:
1: Use a Browser which can access you microphone (Chrome is fine).
2: Make sure you are running from a server (put the file into a xampp server or any other).
3: You must have an internet connection.

The Future of Memory - DNA Hard Disk


            The storage of information is always a challenge to the computer engineers. Ever increasing data is expected to reach 170 zetta bytes till 2025. The solutiion lies in DNA, which is incredibly dense. The whole genome of an organism fits into a cell that is invisible to the naked eye. That's why computer scientist are turning to microbiology to design the next best way to store ever increasing collection of digital data.


Comparison.  (Source: Nature.com)


           The point of using synthetic DNA as a sort of double-helix hard drive is simple--you can store astounding amount of data in the tiniest amount of space, and it will be stable forever. Scientist says a single gram of DNA could hold 4.5 billion gigabytes of data and remain stable for millenium. DNA storage could form highest-density large-scale data storage scheme ever invented.

Advantages:

           DNA has advantages that other storage media do not. It takes up less space. It is durable, as long as it is kept cold, dry, and dark -- DNA from mammoths that died thousands of years ago can still be extracted and sequenced. And it has a 3.7-billion-year track record. Floppy disks, VHS, zip disks, laser disks, cassette tapes...every media format eventually becomes obsolete But DNA will never become obsolete.

Obstacles:

           The use of DNA in data storage is still in its early stages...and...the immediate use of the DNA data storage is for archiving. However, it's still quite expensive to archive...data on DNA. In fact, synthesizing the DNA costs $7,000 alone, while reading it costs $2,000.     

Friday, 1 September 2017

Now All Facebook's Translation is powered by Artificial Intelligence

Spend enough time on Facebook, and you’ll likely encounter a post written in a tongue that’s foreign to you. That’s because the social network has two billion users and supports over 45 languages. On Thursday, Facebook announced that all of its user translation services—those little magic tricks that happen when you click “see translation” beneath a post or comment—are now powered by neural networks, which are a form of artificial intelligence.

Back in May, the company’s artificial intelligence division, called Facebook AI Research, announced that they had developed a kind of neural network called a CNN (that stands for convolutional neural network, not the news organization where Wolf Blitzer works) that was a fast, accurate translator. Part of the virtue of that CNN is that instead of looking at words one at a time, it can consider groups of them.

Now, Facebook says that they have incorporated that CNN tech into their translation system, as well as another type of neural network, called an RNN (the R is for recurrent). Those RNNs, Facebook said in a blog item about the news, are better at understanding the context of the whole sentence than the previous system, and can reorder sentences as needed so that they make sense.

As an example of the difference between the two translation systems, Facebook demonstrated how the old approach would have translated a sentence from Turkish into English, and then showed how the new AI-powered system would do it. The first Turkish-to-English sentence reads this way: “Their, Izmir’s why you said no we don’t expect them to understand.” Now check out the newer translation: “We don’t expect them to understand why Izmir said no.” Notice how the AI fixed the mistakes in word and phrase order?

While neural networks had been working together with the more traditional translation system before today, now all the translation gets its smarts from AI.

The new system is more accurate than the old method...

Gym Exercises

Exercises Mudra