Play Pac-Man game in Google Maps |Google's April Fools' Day prank

When it comes to creativity, no one can beat Google. April 1, is about to come and all webmasters try to play prank on their users. So the Google come up with our childhood friend (remember those 8 bit Nintendo games), Pac-Man, to help all those lost netizens navigate their way around.

ALSO READ: Top Google Search Tricks You Probably Didn’t Know Existed

For April Fools' pranks, Google Maps has created a hack that lets users turn any city into the pixelated Pac-Man game. All you have to do is simply click on the icon on the lower left of the screen to begin playing in your desktop browser.

pacman-maps

You can also play this on best locations with the help Google Maps' support page that guide you to the best locations to play Pac-Man.
Have you found any other best places to play?

Top 12 Bizarre Programming Languages Ever Created

Here I have listed some of the most bizarre programming languages ever created. Technically these languages are termed as "Esoteric programming language" or esolang in short. 


An esoteric programming language is designed to test the boundaries of computer programming language design or as a joke. Usually, an esolang's creators do not intend the language to be used for mainstream programming, although some esoteric features, such as visuospatial syntax, have inspired practical applications in the arts. 

These languages are often popular among hackers and hobbyists.Below is the list of top 12 Bizarre Programming Languages.

Top 12 Bizarre Programming Languages

Brainfuck

Brainfuck is designed for extreme minimalism and leads to obfuscated code, with programs containing only 8 distinct characters. To avoid offense, its name is sometimes given as b****fuck.

 e.g. the following program outputs "Hello World":

++++++++++[>+++++++>++++++++++>+++>+<<<<->++.>+.+++++++
..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.



Ook!

Ook! is a joke esoteric programming language created by David Morgan-Mar. It is identical to Brainfuck, except that the instructions are changed into Orangutan words. It represents the first, although unfortunately not the last, in a long line of trivial Brainfuck command substitutions.

Hello, world! program in Ook

Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.
Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook?
Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook.
Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.
Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.
Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!
Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook.

Chef

Chef by David Morgan-Mar is a stack-oriented programming language designed to make programs look like cooking recipes. Programs consist of a title, a list of variables and their data values and a list of stack manipulation instructions. Typically the joke is extended by naming variables after cooking ingredients, even for Hello World.

Omgrofl

Omgrofl is a language created in 2006 by Juraj Borza. It is equipped with a stack/queue, has support for byte-sized variables and keywords resembling Internet slang. The name comes from combining the slang "words" omg and rofl. Rofl is actually one of Omgrofl's commands.

Addition of two number in rofl

loool iz lol
looooool iz lool
rtfm
 wtf looooool iz liek 0 
  tldr
 brb
 lmao loool
 roflmao looooool
brb

Piet:

Piet is a language designed by David Morgan-Mar, whose programs are bitmaps that look like abstract art. The compilation is guided by a "pointer" that moves around the image, from one continuous coloured region to the next. Procedures are carried through when the pointer exits a region.

A "Hello World" program in Piet

LOLCODE:

LOLCODE is designed to resemble the speech of lolcats. The following is the "hello world" example:
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE

Shakespeare:

The Shakespeare Programming Language (SPL) was designed by Jon Åslund and Karl Hasselström. Like Chef , it is designed to make programs appear to be something other than programs; in this case, Shakespearean plays.the following statement declares a point in the program which can be reached via a GOTO-type statement: Act I: Hamlet's insults and flattery..

Befunge:

Befunge and its ilk allow the instruction pointer to roam in multiple dimensions through the code. For example the following program displays "Hello World" by pushing the characters in reverse order onto the stack, then printing the characters in a loop which circulates clockwise through the instructions [>], [:], [v], [_], [,], and [^].

"dlroW olleH">:v
             ^,_@

Whitespace:

Whitespace uses only whitespace characters (space, tab, and return), ignoring all other characters. This is the reverse of many traditional languages, which do not distinguish between different whitespace characters, treating tab and space the same. It also allows Whitespace programs to be hidden in the source code of programs in languages like C.

Malbolge:
  
Malbolge (the 8th circle of Hell) was designed to be the most difficult and esoteric programming language.

Velato:

Velato is a language which uses MIDI files as source code. Programs in Velato are defined by the pitch and order of notes. It is intended to allow for flexibility in composition, so functional programs will not necessarily sound like random notes. There is a tendency for Velato programs to have jazz-like harmonies.

reMorse:

As name suggest reMorse is  intended to look like morse code.  Here’s the reMorse version of “Hello World”:
  1. - - - ..- ...-.---.;newline  
  2. - - - .-. - ..-.- ...-. ---.;!  
  3. - - - ...- . . -.---.;d  
  4. ----. . . -.---.;l  
  5. ----. . -...---.;r  
  6. ----. -...---.;o  
  7. ----...-.- ..-. ---.;W  
  8. //Now you know why this language is bizarre  
  9. -..............;output all characters  

PHP : How To Parse XML Documents

PHP-Parsing-XMLAs we all know XML documents are used to store and describe the structure of data. It is often used to transport data over internet, for instance if you use any Google API then it's response is in either XML or JSON. We need to extract required data from XML file and it can be done with the help of XML parsers. There are various parser available like DOM parser and SimpleXML parser. Below I have shown how to make use of it to parse any XML documents.

Parsing XML using DOM Parser

DOM parser is a tree based parser that means it sees any XML document as a tree structure. Below is the tree structure of an XML document.
PHP-Parsing-XML
Suppose we need to parse below xml.
1: xml version="1.0" encoding="ISO-8859-1"?>
2: <article>
3: <title>How To Parse XML in PHP</title>
4: <author>Sumit Jha</author>
5: <site>www.sumitjha.net</site>
6: </article>

Load and Output XML

To display the content/data of XML we need to first initialize the DOM parser then load the XML document.
1: php
2: $xmlDoc = new DOMDocument();
3: $xmlDoc->load("article.xml");
4: print $xmlDoc->saveXML();
5: ?>
The output of above code will be
How To Parse XML in PHP Sumit Jha www.sumitjha.net
Explanation:
DOMDocument()  : It creates a DOMDocument-Object to load XML in tree structure form.
load()   : Load the XML file
saveXML() : It puts the internal XML file into a string.

Looping through XML

We can also loop though root node an traverse all of its child according to it’s structure.
php
$xmlDoc = new DOMDocument();
$xmlDoc->load("article.xml");
$x = $xmlDoc->documentElement;
foreach ($x->childNodes AS $item)
{
print $item->nodeName . " = " . $item->nodeValue . "
";
}
?>
output:
#text =
title = How To Parse XML in PHP
#text =
author = Sumit Jha
#text =
site = www.sumitjha.net
#text =
Explanation:
Starting from root node we traverse all the child node and output their value.

Note the empty text node between each element. This is because when XML generated it contain white spaces between the nodes and DOM parser treat it as an element.

Parsing XML using SimpleXML Parser

As the name suggest SimpleXML parser is an easy to use parser to fetch an element's attributes and text, all you need to know is the layout of XML document.
php
$xml = simplexml_load_file("article.xml");
echo $xml->getName() . "
";
foreach($xml->children() as $child)
{
echo $child->getName() . ": " . $child->name . "
";
}
?>
Output:
article
title: How To Parse XML in PHP
author: Sumit Jha
site: www.sumitjha.net
Explanation:
We first load the XML file and get the name of first element i.e, the root node. Here in this case the root node is article.  Now we loop though the each child node of article.
Note: We also fetch any node directly from XML document using it’s exact path from root.
$xml->site will return www.sumitjha.net