Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

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...

Thursday, 31 August 2017

Google AI has mastered the ancient game Go


AlphaGo playing Go

Some cool facts about AlphaGo -

1. AlphaGo was not programmed to play Go, rather it learned using a general-purpose algorithm that allowed it to interpret the game's pattern. DeepMind program has also learned to play 49 different arcade games. Even IBM chess Computer Deep Mind, which famously beat grandmaster Garry Kasparov in 1997, was "explicitly" programmed to win the Game.

2.In China, Japan and South Korea, Go is hugely popular and is even played by celebrity professionals. But the game has long intrested AI researchers because of its complexity. The rules are relatively simple: the goal is to gain the most territory by placing and capturing black and white stones on a 19*19 grid.
3. The average 150-move game contains more possible board configurations -- 10^170 -- more than there are atoms in the Universe. So it can't be solved by algorithm that search exhaustively for the best move.

4. In Go, recognizing winning and losing positions is much harder: stones have equal values and can have subtle impacts far across the board.

5. The technique used in the AlphaG is Deep Learning, which is going from success to success.

Tuesday, 29 August 2017

The Fight of Micromax to take a BIG Leap!

Here we present the thoughts of Micromax co-founder, Rahul Sharma. (source:PCQuest)

        The Mobile industry is a very dynamic space to operate in. Over the last 2 years, it has observed signifcant changes such as shift from 3G to 4G, transition of physical wallets to mobile wallets, increased consumption of video content etc. In this dynamic scenario, there are 4 key things that we focused on:
  1. Asset Building: Factories 
  2. Improving our service network and promise
  3. Investing in future technologies
  4. User experience
                                                                                               (pic:PCQuest)
        In 2017 our focus has been about providing solutions to the consumers using their phones as a life hack. A large chunk of our efforts are concentrated around bringing products and services to the market that act as solutions to the fast-evolving consumer’s needs- be it the rural segment that demands for an able device at a compelling cost or the evolved user who wants the confluence of best design and specifications. We are aligning our product roadmap as per the industry trends. All our products will be aesthetically positioned and we clearly see 4 key trends in the next 2 years:
  1. Camera
  2. Screen
  3. Battery
  4. Security
       2016 saw a whirlwind of changes in terms of technology with all the Telcos focusing on 4G VoLTE with Jio coming in. A market which took 3 years for the consumers to migrate from 2G to 3G; leapfrogged to 4G in just 6 months. Hence, we at Micromax as well are focusing on to coming up with devices which will enable the next phase of smartphone adoption in the country by hand holding consumers to upgrade from feature phones to smartphones. Bringing best in class 4G VoLTE smartphones will be an intrinsic part of our strategy for both rural and urban India. Some such example is our Bharat Series, which is aimed at first generation smartphone users in the country who still haven’t migrated from a feature phone. The smartphone is the most affordable 4G VoLTE device, running on the Android Marshmallow, and is attractively priced at Rs. 3499/-.
 
 

Monday, 28 August 2017

C++ | Read a line of text using character array

C++ program to read and display an entire line entered by user 
 
#include <iostream>
using namespace std;

 
int main()
{
    char str[100];
    cout << "Enter a string: ";
    cin.get(str, 100);

    cout << "You entered: " << str << endl;
    return 0;
} 


Output
Enter a string: Programming is fun.
You entered: Programming is fun.

C++ | String using "string" data type

C++ string using string data type

 

#include <iostream>
using namespace std;

int main()
{
    // Declaring a string object
    string str;
    cout << "Enter a string: ";
    getline(cin, str);

    cout << "You entered: " << str << endl;
    return 0;
}

Output
Enter a string: Programming is fun.
You entered: Programming is fun.

Sunday, 27 August 2017

C | Scanf problem while scanning a string

/* FIX: Leave a space before %c */
 
 
eg:
   for(i=0;i<5;i++)
    scanf("   %c",&string[i]);  

 
 
This will eat newline character and also special character.
Thank you,
 
 

Wednesday, 23 August 2017

Coursera launches Specialization on ‘deep learning’

Coursera, an online education platform, an nounced a Specialization on deep learning, one of the hottest emerging felds in artifcial intelligence. Created by Coursera’s co-founder - and leading AI expert Andrew Ng, this certifcate program will enable anyone with basic programming skills to explore the frontiers of AI. This is an extension to Andrew’s landmark “Machine Learning” course which introduced nearly 2 million learners around the world to cutting-edge topics in data science, computer science, and AI.




Through five interconnected courses, learners will be able develop a profound knowledge of the key AI algorithms, mastering deep learning from its foundations (neural networks) to its industry applications like Computer Vision, Natural Language Processing, Speechrecognition, etc.

The Specialization not only will prepare learners to tackle the rise of deep learning but provide them with the opportunity to contribute in the development of cuttingedge AI technology. Many courses also include interviews have long been in collaboration. Early this year, Palo Alto Networks was one of seven private sector companies that provided support to an INTErPOL-led operation targeting
cybercrime across the ASEAN region, resulting in the identifcation of nearly 9,000 command-and-control (C2) servers as well as hundreds of compromised websites, including government portals. and guest appearances from leading industry experts and top leaders in the feld who will share their personal stories and give advice for aspiring AI engineers.

The Challenge Between Volume and Value

External storage is an other segment that is seeing the transition to Flash. This segment has come a long way from the days of NAS to SAN to unifed storage solutions. While the segment grew in single
digit, the cost of acquiring storage is steadily coming down leading to more affordability and contraction of revenue growth in this sector.


Dileep Nadimpalli, Associate research Manager, Enterprise Infrastructure says, "External Storage is getting very dynamic to address new age demands from emerging technologies such as real-time business analytics, Internet of Things, Augmented reality, robotics, etc. 
Flash storage, Hyper-converged infrastructure and Software-defned storage technologies are getting more relevant across organizations like never before."
 

Gym Exercises

Exercises Mudra