Showing posts from 2016

Google Crowdsource Event at Poornima Foundation: Day 2 Review

The Google Translate Community made their remarkable presence in Poornima Foundation on day 2 also, by connecting and interacting with a total of approx 2000+ enthusiastic students, conducting 4 joyous sessions. The day started with a brief introduction about translate community, a video for better understanding and a few questions to make it more interactive like-  How many of you use Google every single day? How many of you use translation every day, week or month? How many of you ever tried to search content in indic languages and how do you feel about the poor results you got? Have you ever thought it would be easier if browsing was that much compatible in indic languages too? Have you ever faced a language barrier in your very own country? The students shared their experiences with the translate team, some of them were so true and made every one realize how important it is to have our languages preserved and shared as the team itself said that the whole internet is ruled by 10 maj…

Google Crowdsource Event at Poornima Foundation: Day 1 Review

For all those readers who have no idea what I'm going to talk about, must go through my previous blog post Google crowdsource event at Poornima Foundation

India's first ever institutional launch of Google's newly released Crowdsource App went joyously at Poornima Foundation, Jaipur. The event was carried out in 5 slots and in each slot nearly 525 students attended the event i.e nearly 2625 students  became part of this exhilarating event today.

What was the event all about?
Google team(translate community) visited to interact with students to make them clear about the usage, need and necessity of Crowdsource app
What exactly is Crowdsource and what is my role in it?
Crowdsource is an app where you do simple micro tasks (translate a phrase, transcribe a handwriting sample, etc), and generate high-quality data. Contributions to these tasks help us improve the quality of Google services that millions of your peers use - services like Google Translate, Google Maps, Google Keybo…

Google Crowdsource Event at Poornima Foundation

We all live in a country with people of diverse origins, who speak different languages. We speak of connecting each and every person to the latest feed and tech. through internet. But are they really able to take full benefits of internet?

The answer is big NO.
The most of the content available on internet is only in English(i.e 53.6% according to wikipedia), followed by Russian(6.4%) and then German(5.6%). The rest of language either play a small fraction in  it or has no part at all. Thus, due to lack of information available in native languages, people can't get benefitted from internet despite of it's huge and endless powers.

In this regard, GOOGLE has taken a huge step to connect people to internet by increasing the amount of content available in other languages.

How that would be possible?
It would be basically done by translating the available content into other languages.

We already have google translate, what's new about crowdsource app?
Well there are many feature…

Python Script To Open Google Maps Of a Place

Some times it is very tedious to open google maps and search for maps of that place. How good it would be if the browser opens automatically with the webpage showing google maps of your desired place.

I'm doing this tutorial using python 3.x but same could be done using python 2.x
The tutorial is based on the learning from "AutomateTheBoringStuff"
I hope you will find it interesting.

The script has following properties:

Read the address from command line arguments or from the clipboard Requires webbrowser module to automatically open default web browser of OS with the desired URL Requires sys module to access command line stored in argv list Requires pyperclip to access address from clip board. This module is not by default. To install this read my blog post Access-Clipboard-Using-Python

Access clipboard using python

I'm doing this tutorial using Python 3.x, but the same can be done using Python 2.x

The following python script has following properties

 requires pyperclip module to run  Copy to and from clipboard  Tested on Unix(MacOs and Ubuntu)  But should also work on windows  Try, test, run and then write your own  And I forgot something, Hello everyone  :-) The required pyperclip can be installed as follows:

pip3 install pyperclip or more specifically
python3 -m pip install pyperclip
The installation can checked on Unix in following way:
pip3 freeze|grep 'pyperclip' or more specifically
python3 -m pip freeze|grep 'pyperclip'
The result will be something like:

Playing with birthday using Python

I always wondered how to access calendar and work with dates in programming languages,
Thanks to Python'sdatetime module, which makes it so easy to work with it.

The following python script has following properties

requires python 3.x to run Read birthdate and tell birth month, tell number of days till next birthday Tested on Unix(MacOs and Ubuntu) But should also work on windows Try, test, run and then write your own And I forgot something, Hello everyone  :-)

Further you can use this idea to read a birthday and add it to google calendars to remind you when the birthday comes.{Well I think everyone remembers her/his birrthday :-) }

Get Directory Size using Python

Well, I always wondered the scope of Python and Finally Realised it is limitless.
The following script named "" is written in python 3.x

The following python script has following properties

requires python 3.x to run Tell the size of directory in which it is placed Tested on Unix(MacOs and Ubuntu) But should also work on windowsTry, test, run and then write your own And I forgot something, Hello everyone  :-)

2D Numpy Arrays

Let's recreate the numpy arrays.
If you ask for the type of these arrays,Python tells you that they are numpy.ndarray. `numpy`. tells you it's a type that was defined in the numpy package. `ndarray`
stands for n-dimensional array. The arrays `np_height` and `np_weight` are one-dimensional
arrays, but it's perfectly possible to create 2 dimensional, three dimensional, heck even
seven dimensional arrays!
You can create a 2D numpy array from a regular Python list of lists. Let's try to create
one numpy array for all height and weight data of your family, like this:
If you print out `np_2d` now, you'll see that it is a rectangular data structure: Each sublist
in the list, corresponds to a row in the two dimensional numpy array. From `np_2d.shape`,
you can see that we indeed have 2 rows and 5 columns. `shape` is a so-called attribute
of the `np2d` array, that can give you more information about what the data structure
looks like.

In[1]:import numpy as np In[2]: np_heigh…

Numpy (Numeric Python)

NumPy is the fundamental package for scientific computing with Python. It contains among other things:
a powerful N-dimensional array objectsophisticated (broadcasting) functionstools for integrating C/C++ and Fortran codeuseful linear algebra, Fourier transform, and random number capabilitiesNumeric Python Alternative to Python List: Numpy ArrayCalculations over entire arrays Easy and Fast Installation ● In the terminal: pip3 install numpyor python3 -m pip install numpyIntroductionIn[6]:import numpy as np In[7]: np_height = np.array(height)In[8]: np_height Out[8]: array([1.73,1.68,1.71,1.89,1.79])In[9]: np_weight = np.array(weight)In[10]: np_weight Out[10]: array([65.4,59.2,63.6,88.4,68.7])In[11]: bmi = np_weight / np_height **2In[12]: bmi Out[12]: array([21.852,20.975,21.75,24.747,21.441])
First we imported the numpy package as np then, we created a new numpy array using "np.array(LIST_NAME)"
Element Wise CalculationIn[<

Who uses Python today

Few daYS back started reading a python book named Learning Python by Mark lutz an O'Reilly publication and I decided to share my experience and thus will be writing a series of blogs on python based on the learning from this book.

There are more than a million python users around the world who uses python for scripting, general coding, application development, web development, testing, animation, scientific research and many more.

The major uses of python a general purpose object oriented programing language is as follows:
 Google makes extensive use of python for web search engine systemsYouTube is largely written in pythonDropbox client software and server is in pythonRaspberry Pi prefers python for its applicationsEVE, a massively multiplayer online game (MMOG) by CPP games uses python broadlyBit Torrent a peer to peer file sharing system began as a python programIndustrial Light & Magic , Pixar uses python for animation productionGoogle's App Engine web development fr…