5 Covid19 Resources With Maps & Statistics.

You can checkout below 5 Resources to see Live Covid19 Statistics & Maps.

Bing : https://bing.com/covid

Google : https://news.google.com/covid19/map

WHO : https://covid19.who.int/

Healthmap : https://www.healthmap.org/covid-19/

University Of Virginia : https://nssac.bii.virginia.edu/covid-19/dashboard/

Web Analytics

Get Into Facebook By Solving Puzzles!

Hey Folks,

This was one of the post by the Facebook Engineer Jonathan Hsu (Posted Date : Wednesday, December 17, 2008 at 6:15am) about how you can get into the Facebook Team by solving Puzzles (Infact Hard!). He explains how it helps programmers to make themselves stand out; no matter what their resumes or backgrounds but the codes really speak for them!

Post Content:

Hiring at Facebook can be pretty intense. In addition to recruiting at top universities, we also invite candidates to send in solutions to programming puzzles on our jobs page. The puzzles provide a way for programmers to make themselves stand out; no matter what their resumes or backgrounds are, the code speaks for itself. Typically we receive nearly 1,000 submissions a month from all over the United States and abroad. The puzzles are difficult enough that only about 10% of submissions are fully correct, but the best authors are invited for job interviews. In an average year, about 5% to 10% of our new engineers are introduced to Facebook because of their puzzle submissions.

Today, we are posting a new puzzle called “Peak Traffic“. It requires authors to analyze simulated activity of many people using Facebook over time, coming up with a program that identifies which groups of people within the site are actively friends. Authors can test their programs on a small-scale example we provide, but the true test is whether the program will still work on a simulation of several million people.

We also maintain the Facebook Puzzle Master Page where more than 2,000 fans discuss our library of active puzzles. As Facebook’s Puzzle Master, I’m always trying to develop puzzles that can be solved in a variety of ways. I have been surprised at some of the creative and ingenious methods authors have used to solve some of our puzzles, and often learned a few things myself.

To celebrate the ways that people share ideas and programming techniques on the Puzzle Master Page, we are also running a contest on the Page, looking for excellent development setups by anyone who writes code, either professionally or for fun. Submitting an entry is as easy as becoming a fan of the Page and uploading a screenshot of your desktop as a fan photo. Make sure you caption the photo with a short (250 words or less) essay explaining why you like your desktop set up that way and how you use it. The top three entrants can win the same headphones, RipStiks or other gear that we use at Facebook. There are many other surprises down the line for Facebook puzzles, and this is just the start.

Jonathan Hsu got his job at Facebook in 2007 by solving two puzzles!


Satya Nadella’s Email To Employees On Day One As Microsoft CEO

Indian Born Satya Nadella’s Email To Employees On Day One As Microsoft CEO

From: Satya Nadellahero_large[1]
To: All Employees
Date: Feb. 4, 2014
Subject: RE: Satya Nadella – Microsoft’s New CEO

Today is a very humbling day for me. It reminds me of my very first day at Microsoft, 22 years ago. Like you, I had a choice about where to come to work. I came here because I believed Microsoft was the best company in the world. I saw then how clearly we empower people to do magical things with our creations and ultimately make the world a better place. I knew there was no better company to join if I wanted to make a difference. This is the very same inspiration that continues to drive me today.

It is an incredible honor for me to lead and serve this great company of ours. Steve and Bill have taken it from an idea to one of the greatest and most universally admired companies in the world. I’ve been fortunate to work closely with both Bill and Steve in my different roles at Microsoft, and as I step in as CEO, I’ve asked Bill to devote additional time to the company, focused on technology and products. I’m also looking forward to working with John Thompson as our new Chairman of the Board.

While we have seen great success, we are hungry to do more. Our industry does not respect tradition — it only respects innovation. This is a critical time for the industry and for Microsoft. Make no mistake, we are headed for greater places — as technology evolves and we evolve with and ahead of it. Our job is to ensure that Microsoft thrives in a mobile and cloud-first world.

As we start a new phase of our journey together, I wanted to share some background on myself and what inspires and motivates me.

Who am I?

I am 46. I’ve been married for 22 years and we have 3 kids. And like anyone else, a lot of what I do and how I think has been shaped by my family and my overall life experiences. Many who know me say I am also defined by my curiosity and thirst for learning. I buy more books than I can finish. I sign up for more online courses than I can complete. I fundamentally believe that if you are not learning new things, you stop doing great and useful things. So family, curiosity and hunger for knowledge all define me.

Why am I here?

I am here for the same reason I think most people join Microsoft — to change the world through technology that empowers people to do amazing things. I know it can sound hyperbolic — and yet it’s true. We have done it, we’re doing it today, and we are the team that will do it again.

I believe over the next decade computing will become even more ubiquitous and intelligence will become ambient. The coevolution of software and new hardware form factors will intermediate and digitize — many of the things we do and experience in business, life and our world. This will be made possible by an ever-growing network of connected devices, incredible computing capacity from the cloud, insights from big data, and intelligence from machine learning.

This is a software-powered world.

It will better connect us to our friends and families and help us see, express, and share our world in ways never before possible. It will enable businesses to engage customers in more meaningful ways.

I am here because we have unparalleled capability to make an impact.

Why are we here?

In our early history, our mission was about the PC on every desk and home, a goal we have mostly achieved in the developed world. Today we’re focused on a broader range of devices. While the deal is not yet complete, we will welcome to our family Nokia devices and services and the new mobile capabilities they bring us.

As we look forward, we must zero in on what Microsoft can uniquely contribute to the world. The opportunity ahead will require us to reimagine a lot of what we have done in the past for a mobile and cloud-first world, and do new things.

We are the only ones who can harness the power of software and deliver it through devices and services that truly empower every individual and every organization. We are the only company with history and continued focus in building platforms and ecosystems that create broad opportunity.

Qi Lu captured it well in a recent meeting when he said that Microsoft uniquely empowers people to “do more.” This doesn’t mean that we need to do more things, but that the work we do empowers the world to do more of what they care about — get stuff done, have fun, communicate and accomplish great things. This is the core of who we are, and driving this core value in all that we do — be it the cloud or device experiences — is why we are here.

What do we do next?

To paraphrase a quote from Oscar Wilde — we need to believe in the impossible and remove the improbable.

This starts with clarity of purpose and sense of mission that will lead us to imagine the impossible and deliver it. We need to prioritize innovation that is centered on our core value of empowering users and organizations to “do more.” We have picked a set of high-value activities as part of our One Microsoft strategy. And with every service and device launch going forward we need to bring more innovation to bear around these scenarios.

Next, every one of us needs to do our best work, lead and help drive cultural change. We sometimes underestimate what we each can do to make things happen and overestimate what others need to do to move us forward. We must change this.

Finally, I truly believe that each of us must find meaning in our work. The best work happens when you know that it’s not just work, but something that will improve other people’s lives. This is the opportunity that drives each of us at this company.

Many companies aspire to change the world. But very few have all the elements required: talent, resources, and perseverance. Microsoft has proven that it has all three in abundance. And as the new CEO, I can’t ask for a better foundation.

Let’s build on this foundation together.


Nadella, 46, will be only the third CEO of the company after founder Bill Gates and Steve Ballmer, the man he is succeeding.

Code For Honor : Microsoft’s Solution Excellence Awards 2014

Microsoft  India Code For Honor Excellence Award
Microsoft India Code For Honor Excellence Award

Code for Honor is Microsoft’s award for solution excellence. Build outstanding software solutions in one of four specially chosen categories – Large Enterprises, MSME, Government Enablement, Citizen Services – and showcase your capabilities on the national stage.

Modern devices and cloud-based services have changed the way organizations and users operate. Organizations can now deliver comprehensive software solutions across devices on manageable, elastic, cloud-based IT architecture while users react, interact and purchase differently.

Register Now!

Disable/Enable Javascript Options in Firefox From Version 23.


You might have noticed, In Firefox Version 23(+) there is no way to disable  JavaScript functionality from Tools->options-> Content (Tab). They say “In Firefox 23, as part of an effort to simplify the Firefox options set and protect users from unintentionally damaging their Firefox, the option to disable JavaScript was removed from the Firefox Options window.”


The option to disable JavaScript was not removed from Firefox entirely. You can still access it from about:config or by installing an add-on.

How to disable (& enable back) Javascript from Firefox ver. 23


  1. In the address bar, type “about:config” (with no quotes), and press Enter.
  2. Click “I’ll be careful, I promise”
  3. In the search bar, search for “javascript.enabled” (with no quotes).
  4. Right click the result named “javascript.enabled” and click “Toggle”. JavaScript is now disabled.

To Enable JavaScript back, repeat these steps.


You can alternatively install an add-on that lets you disable JavaScript, such as

  • No-Script (to disable JavaScript on a per page basis, as required)
  • QuickJava (to easily disable and enable JavaScript, automatic loading of images, and other content)

Hope this helps. ThankYou.



What is PDO (PHP Data Objects)? Basic Explanation.

Hey Folks,

The PDO (PHP Data Objects) is an extension which defines a lightweight, consistent interface for accessing databases in PHP. PDO provides a data-access abstraction layer, which means that, regardless of which database you’re using, you use the same functions to issue queries and fetch data. PDO does not provide a database abstraction; it doesn’t rewrite SQL or emulate missing features. PDO ships with PHP 5.1, and is available as a PECL extension for PHP 5.0; PDO requires the new Object Oriented features in the core of PHP 5, and so will not run with earlier versions of PHP.

Note : I assume you already have a PDO configured PHP version. If not, Please click here to see the installation process.

PDO Connections

Connecting to Database (Eg. MySQL) :

<?php $dbconn = new PDO('mysql:host=localhost;dbname=testdb', $username, $password); ?>

//Note : If there are any connection errors, a PDOException object will be thrown.

Handling Errors In Connection :

try {
    $dbconn = new PDO('mysql:host=localhost;dbname=testdb', $username, $password);
    foreach($dbconn ->query('SELECT * from tablename') as $row) {
    $dbconn = null;
} catch (PDOException $e) {
    print "Error!: " . $e->getMessage() . "<br/>";

Upon successful connection to the database, an instance of the PDO class is returned in your script. The connection remains active for the lifetime of that PDO object.

Closing a connection :

$dbconn = new PDO('mysql:host=localhost;dbname=testdb', $username, $password);
// use the connection here

// and now we're done; close it
$dbconn= null;

Persistent connections :

$dbconn = new PDO('mysql:host=localhost;dbname=testdb', $username, $password, array(
    PDO::ATTR_PERSISTENT => true //If you wish to use persistent connections, you must set PDO::ATTR_PERSISTENT in the array of driver options passed to the PDO constructor.

Multiple database connections :

try {
  $dbconn1 = new PDO('mysql:host=localhost;dbname=testdb1', $username, $password);
  $dbconn2 = new PDO('mysql:host=localhost;dbname=testdb2', $username, $password);
} catch (PDOException $ex) {
  echo 'Connection failed: ' . $ex->getMessage();

You can execute the query like this :

$result = $dbconn->query("select * from tablename");
foreach ($result as $row) {
  echo $row['fieldname'] . "\n";

Fetching data using prepared statements 1 :

$query= $dbconn->prepare("SELECT * FROM tablename where fieldname = ?"); // The user input is automatically quoted, so there is no risk of a SQL injection attack. 
if ($query->execute(array($_POST['name']))) {
  while ($row = $query->fetch()) {

Fetching data using prepared statements 2 :

$query= $dbconn->prepare("select * from tablename where id = :id");
$query->execute(array(':id' => 555));
$row = $query->fetch();

Calling a stored procedure with an output parameter :

$query = $dbconn->prepare("CALL sp_returns_string(?)");
$query->bindParam(1, $return_value, PDO::PARAM_STR, 4000); 

// call the stored procedure

print "procedure returned $return_value\n";

I have covered only some basics here. You’ll get detailed explanation of various other functions of PDO from the php.net Website.




PHP Single Line if else Syntax

Here is the syntax for single line if else statement in PHP.

echo $val;//Outputs Incorrect