Tuesday, 29 April 2014

HOW TO INSTALL MONOGODB AND MAVEN IN WINDOWS

In this tutorial, we will show you how to install MongoDB on Windows.


Note
The MongoDB does not require installation, just download and extracts the zip file, configure the data directory and start it with command mongod.

 1. Download MongoDB
Download MongoDB from official MongoDB website. Choose Zip package for Windows 32 bits or 64 bits. Unzip, extracts to your prefered location, for example : d:\mongodb\.
2. Review MongoDB folder
In MongoDB, it contains only 15 executable files (exe) in the bin folder.Check if the files are intact.



3. Set Path for MongoDB
Go to Control Panel -> System -> Advanced System Settings -> Environmental Variables -> (in system variables) Path -> Edit and Copy paste your path in which you have extracted MongoDB.

4. Check for MongoDB version
Open Command Prompt and Run mongo” if u get shell version, You have configured path successfully. If u get unknown command error, go and set path correctly.


4. Create Data Directory
 
Note
MongoDB need a folder (data directory) to store its data. By default, it will store in C:\data\db, create this folder manually. MongoDB wont create it for you. You can also specify an alternate data directory with  --dbpath option.




To create data folder in default directory, run the following command

“C:”



“mkdir \data\db”



--OR--



Head over to the your desired place and create data folder there
And run “mongod.exe --dbpath H:\MongoDB\mongodb_2.4.9\data\db”

The Windows Firewall ask for MongoDB connection, Allow it.


5. Run MongoDB server


Use mongod.exe --dbpath H:\MongoDB\mongodb_2.4.9\data\dbto start MongoDB server in separate Command Prompt.

6. Connect to MongoDB

Use mongo.exe to connect to the started MongoDB server in a new Command Prompt.


APACHE MAVEN


Apache Maven is not require to install on Windows as a service component, you just need to download the Mavens zip file, extract it and configure the Windows environment path variable.
Tools Used :
JDK 1.6
Maven 2.2.1
Windows 7
P.S This works with Maven 3 also.
1. JDK and JAVA_HOME
Make sure JDK is installed, and JAVA_HOME” variable is added in Windows environment variable, and point to the JDK folder.


2. Download Apache Maven
Visit this Maven official website, choose a version and click on the download link, e.g apache-maven-2.2.1-bin.zip.

3. Extract It
Extract the downloaded zip file. In this case, we extracted to d driver and renamed the folder, e.g D:\maven.
Note
That's all, just folders and files, installation is NOT required on Windows.
4. Add MAVEN_HOME
Add a new MAVEN_HOME variable to the Windows environment, and point it to your Maven folder.

5. Add PATH
Update PATH variable, append Maven bin folder” path, so that you can run the Mavens command everywhere.

6. Verification
Done, to verify it, in command prompt, type mvn version.




If you see similar message, means your Apache Maven is installed successfully on Windows.

Sunday, 13 April 2014

Shocking Facts about Facebook

You can change your language on Facebook to "Pirate."



 
This includes calling friends "Mateys", the word "Cap'n" appears before everyone's name, pictures are called portraits, commenting is called "scrawling a mark", and instead of liking something you just say "Arr!". 

You have to go into "Account" and then "Languages" and find "English (Pirate)".


A man was ordered to apologize on Facebook or Go to Jail


In June 2011, Mark Byron, a photographer from Cincinnati, was found guilty of cilvil domestic violence against his wife and she was granted a temporary protection order. In November, Byron posted a note to his Facebook wall reading, ""If you are an evil, vindictive woman who wants to ruin your husband's life and take your son's father away from him completely -- all you need to do is say you're scared of your husband or domestic partner and they'll take him away!" 
 Byron had blocked his wife from viewing his Facebook page, however she still received word of the post and proceeded to file charges against her husband stating that his post was in violation of her protection order, which prohibited her [then] husband "from causing the plaintiff or the child of the parties to suffer physical and/or mental abuse, harassment, annoyance or bodily injury. On January 25th, Byron was given the option of going to jail for 60 days and paying a $500 fine, or pay back child support and post an apology to his Facebook page for 30 days. 

A third of all divorce filings in 2011 contained the word "Facebook”

Information on Facebook is becoming a major factor in marriage conflicts and is increas

ingly being used as a source of evidence in divorce cases. In 2011, Facebook was cited as a reason for a third of divorces (Divorce-Online). 
The most common reasons Divorce-Online found cited as evidence were; inappropriate messages to members of the opposite sex, separated spouses posting nasty comments about each other, and Facebook friends reporting spouse’s behaviour.
The greater availability of information online through social media has created a variety of problems for relationships at every level. Conflict caused by embarrassment, jealousy, false assumptions, and stalker-like behaviour, are some of the social disasters that can result from the misuse of social media.


Iceland used Facebook to rewrite its constitution!

In 2011, Iceland finally took on the task of rewriting its constitution as it had been hoping to do for many years, but had never got around to doing. When Iceland broke from Denmark in 1944, it merely took the Danish constitution and made minor changes. For example, the title of king was changed to president. 
The Icelandic people were driven to change their constitution after their financial tro

ubles in 2008. Their currency, the krona, last values and banks failed. The hope was that with some reformation and checks and balances another financial breakdown could be prevented. 
The actual draft of the new constitution was being written by 25 people as part of a council. The council put their draft on Facebook for users to make suggestions about amendments and to have debates with one another about the constitution. They also streamed the proceedings of the council not only on their website, but also on Facebook. 
The writing of the constitution took influence from all those on social media. The finished result came from the combined efforts of those 25 council member, Facebook, Twitter, and other social media. Do you think politics will flow more onto social media than it already has? 


Adding the number 4 to the end of Facebook’s URL will automatically direct you to Mark Zuckerberg’s wall.




Just in case you’re not familiar with the term “URL” - type in this web address: www.facebook.com/4. We’re not sure why Zuckerberg chose the fourth ID number instead of number 1, but this is a quick and easy way to get to the original Facebook wall that is owned by its creator. Adding the numbers 5 or 6 to the end of the URL will take you to the respective profiles of Chris Hughes and Dustin Moskovitz, Facebook co-founders and Mark’s former college roommates. Tacking a 7 onto the web address leads to the profile of Arie Hasit, another good friend of Zuckerberg from his days at Harvard.

Facebook pays $500 to anyone who can hack into it!.


Basically, if you find an original bug within the Facebook software and system, they’ll reward you with up to $500. There are stipulations to the rules, though. They allow this as showing appreciation for their security researchers. One cannot disclose personal information about others and must give Facebook 24 hours in good faith to fix the issue before going public with the bug. Only one bounty per security bug is given.




A couple got murdered because they de-friended someone on Facebook

This bizarre crime occurred in Tennessee. Billy Clay Payne Jr. and Billie Jean Hayworth decided to de-friend Jenelle Potter on Facebook. In response, Jenelle's father killed them.

The woman's father and another man were charged with the horrible crime. The couple had a young baby that was thankfully spared from the madness. Still, the 8-month old is now orphaned thanks to a sensless murder that shouldn't happen.
This isn't the first crime linked to Facebook. A woman set a friend's garage on fire last year because of a similar thing. A man also was accused of hitting his wife for not"Liking" a post about the death of the man's mother.


About 20% of all photos this year will end up on Facebook.


Over the last few decades, the advancement of photography has also allowed for the advancement of human communication. Easy capturing, editing, and sharing has allows us to inject our i

ntended message into a visual, and share it on a worldwide stage. 
The full scope of this phenomenon is probably most noticeable on Facebook; a place where photos of meaningful events and people stand alongside photos of people looking intensely into their bathroom mirrors. Facebook’s library already contains 140 billion photos, which is about 100 000 times that of the Library of Congress and 4% of the photos ever taken. 
Facebook seems to have become a sort of digital photo album. It preserves the quality and quantity of the photos we take, organizes them, and allows for easier conversation about those photos. Plus, it’s considered by some studies to be more addictive than alcohol and tobacco. 






Today's Facebook users change their profile pictures 3 times as often as they did in 2006.



The average user in 2011 uploads 18 photos every year for their Facebook profile. That number has been steadily rising every year, since 2006 when the average was only 6 per year. And since Facebook started keeping track of which photos we use as profile photos, the average user has used 26 Facebook profile pictures in their lifetime. Women change their profile pictures more often than men (about once every 2 weeks, vs once every 3 weeks).

To learn more fun and interesting facts about Facebook photos, check out Pixable, a new app for managing your social media photos. It’s a great way to search, edit, and aggregate Facebook photos, and there are a bunch of cool infographics on the Pixable website where you can learn more facts like these.


Friday, 11 April 2014

10 Different Things to do with Google

10 Google as an Alternative Way to access blocked websites

If you want to access some websites that are blocked in your system, you can continue with an alternative way of accessing them through Google. Type "cache: WEBSITENAME.com" into the search box, to access the blocked website. Or you can search ‘how to use Google as a proxy’ and find the suitable results.






#9 The Trick of “Do a Barrel Roll”

Do a Barrel Roll is a funny trick developed by the search giant Google, which many of the users are not much familiar with. When you enter the phrase “do a barrel roll” on Google search box, the Google page will rotate in the screen which is related to some classic games

#8 Track your Package


If you do an online purchase through eBay or any other sites, you will go on searching your items through certain websites, then this feature is for you. No need to enter the tracking number in the website of the sender or websites such as UPS or Fedex. Track your package by entering the tracking number on Google and leave the rest to Google to give the entire information you search.


#7 Track Your Flight


Flight Tracking is one of the useful features of Google. Just enter the flight name and number into the search box, you will get the results containing the details of flights such as arrival and departure time and other details as well. This feature enables you to get the details of any flights, without searching it through other means, such as with the airline itself.








#6 Klingon as Google Search Engine


Klingon is Language Spoke in Star Trek Franchise, it is a hidden feature developed by Google for the Star Trek fans. If you have a keen interest this sci-fi franchise, you can try the Klingon on Google’s Klingon Search will give a Klingon touch to your search engine, and you can also make use of Klingon dictionary and translator.


#5 Recreate Your Gmail Address


Google Mail does not recognize dots in its system, this enables you to generate lots of mail IDs by adding dots anywhere you want. Moreover, any mail sent tousername@gmail.com and u.s.e.r.n.a.m.e@gmail.com should end in the same mailbox, as Gmail does not recognize dot as characters, hence the two emails are treated as the same.


#4 Search Using Tilde


When you search a certain terms on Google, try to add tilde with the search term. Then the Google will show the related words or similar terms that you were not aware of or forgot. This will enable you to do more productive searching results and to find out what exactly you search for.


#3 BeatBox with Google Translate


If you want to create some song with Google Translator, this feature helps you out with your creativity. If you add some random letters on Google translator, you can see the “Listen” button in the tab turning into ‘BeatBox’. This means that Google translator will sound the letters as beatbox.











#2 More Efficient Email Use


If you use Gmail more often, then this feature developed by Google is very effective for you. If you received a mail and you need to put a comment on it, you can highlight that particular text before you click on reply, by clicking on reply, add the highlighted text as a quote and leave the rest of the text out of it.


#1 Games with YouTube


Go to YouTube, click on any video and then type 1980.This will generate an interesting classic game, and this helps you to spend your time if you are bored.

Tuesday, 8 April 2014

Useful And Unknown Features of Gmail

Even though we have been using the mailing service on a daily basis, there are certain hidden and interesting features that we have never heard about Gmail.Read on to know the most amazing and unknown features of Gmail.

Un-send emails

Don’t be scared if you have send an e-mail to a wrong address. The un-send option of the e-mail messaging service will certainly be your savior. This feature of Gmail allows anyone to take back an e-mail while is already sent within a period of 30 seconds. By enabling the ‘undo send’ option under the settings tab can get the feature ON.

Pop-Up Message If You Forget To Attach

At times, you might have been into an embarrassing situation when you have failed to attach the document even after referring to the attachment in the document. Well, the algorithm of the e-mail service is intelligent enough to recognize if the world ‘attach’ has been typed in the e-mail. Gmail will then give you a pop-up warning asking you to check whether you have attached the document. A true personal assistant!




Multiple G-mail Address


A user can create multiple e-mail addresses with the same keywords and can set e-mails to be received in all the mail address. You can do this by just adding a period at the deserved place. For example if scooby.doo@gmail.com is an e-mail address, you can generate new ID’s like scoo.by.doo@gmail.com or scoo.bydoo@gmail.com and receive e-mails on all these addresses.  




Gmail Labs


Did you ever know that you could do a test run on the new services of Gmail that are still under development? The Gmail Labs provide an option to have an on-hand experience of the new features that the internet giant is intending to implement. You can do this by clicking the Labs tab under the settings option. Click on the enable radio button and click the save changes at the bottom. The Gmail Labs will be activated on your Gmail and you are good to begin your experiment.                 



Find Who Spreads Your Gmail Address


The Google e-mail service has added an exciting feature that allows tracking  the e-mail address. To get this notification all you have to do is add a ‘+’ sign together with your e-mail address. If you want to subscribe for any promotional e-mails, you may sign up with your email for example, abc+promotions@gmail.com. The sources of any e-mails other than the one signed up for can be traced down to know who has shared the address.


Delete The Entire Contents In Inbox


Wanted to cleanup your email inbox completely? Well, you have to no longer click select all the ten thousand e-mails as Gmail has come up with an easy shortcut. Clicking on the ‘show more messages’ option will provide a check box which when ticked selects all the e-mails in your inbox. Gmail prompts you to confirm if you want to delete all the e-mails and click continue to get your inbox empty.

Monday, 7 April 2014

Internet Balloon by Google Went Around the World in 22 Days

Around the world in 80 days? Pssh. Google did it in 22… with a solar-powered balloon. Yep, the Project Loon team provided an update on what’s been going on with the seemingly crazy experiment to bring internet access to the world’s remotest regions — and it seems to be going relatively well.
The project, which was announced in June last year, involves floating giant balloons into the stratosphere to beam internet access around the globe. Back then, the team said that had found a way to move the balloons across the globe by using a combination of wind and solar powers, and steering them into the path of the winds they want them to catch. Now it’s given us a glimpse into how that’s been working out.
In a Google+ post, the Googlers explain that one of their balloons (I 167) just made a 22 day trek around the globe, and is now starting its second lap. The balloon also achieved a project milestone, racking up the team’s 500,000th kilometre travelled to date on its flight across regions from the Antarctic to New Zealand. The balloon clocked between 468 km and 1708 km a day, speeding up as it caught the ‘Roaring Forties’ — strong west-to-east winds over the ocean in the southern hemisphere.

Of course, this the project is still very much in its testing phase. The team has been using these flights to improve the design of the balloons — for example, they moved from a previous model with just one solar panel to one with two solar panels facing diagonally, which allows the structure to catch more sunlight around the poles. They’ve also been tracking wind movements so they can ensure the balloons will be able to navigate effectively to provide constant internet coverage year round. As the team explains:
Traversing the stratosphere is particularly challenging this time of year because the winds actually change direction as the southern hemisphere moves from warmer to colder weather, resulting in divergent wind paths that are hard to predict. Since last June, we’ve been using the wind data we’ve collected during flights to refine our prediction models and are now able to forecast balloon trajectories twice as far in advance.
In addition, the pump that moves air in or out of the balloon has become three times more efficient, making it possible to change altitudes more rapidly to quickly catch winds going in different directions. There were times, for example, when this balloon could have been pulled into the polar vortex – large, powerful wind currents that whip around in a circle near the stratosphere in the polar region – but these improvements enabled us to maneuver around it and stay on course.

Google isn't the only tech company working on bringing connectivity to the globe through the air though — Facebook also recently announced its plans to use lasers, satellites and solar-powered drones to bring the next billion people online. Its CEO,  Mark Zuckerberg, has been sceptical about the possibility of using balloons, saying drones and satellites are more cost efficient and easier to control.
Still, both projects are exciting developments — if not for their crazy sci-fi comparisons, then for their potential to bring access and information to people who haven’t been reached by terrestrial connections.


Some Awesome Programming Jokes

A COBOL programmer made so much money doing Y2K remediation that he was able to have himself cryogenically frozen when he died. One day in the future, he was unexpectedly resurrected.
When he asked why he was unfrozen, he was told:
"It's the year 9999 - and you know COBOL"

A man walks into a pet shop and sees 3 monkeys, each in a cage and each with a computer. The man is curious and walks up to the clerk and asks - what is the story with the moneys?

"They are programming monkeys - for example this one here can complete 100 lines of C++ in an hour - only 100$"
The first monkey was busy typing away, and sure enough it was flawless code.
They moved onto the second monkey who was typing even faster.
"This monkey knows Java, C++ and helped develop Julia - 1000$ for this one".
"What about that last monkey in the biggest cage?" the man asked.
"Well he is 10000$'s...."
"That's must be an amazing monkey! What does he do?” the man asked.
"Well, when he was brought in all he did was sit there while the other monkeys worked, so we figured he must be executive management."

A programmer heads out to the store. His wife says "while you're out, get some milk."
He never came home.

A programmer is walking along a beach and finds a lamp.  He rubs the lamp, and a genie appears.  “I am the most powerful genie in the world.  I can grant you any wish, but only one wish.” 
The programmer pulls out a map, points to it and says, “I’d want peace in the Middle East.” 
The genie responds, “Gee, I don’t know.  Those people have been fighting for millennia.  I can do just about anything, but this is likely beyond my limits.” 
The programmer then says, “Well, I am a programmer, and my programs have lots of users.  Please make all my users satisfied with my software and let them ask for sensible changes.”
At which point the genie responds, “Um, let me see that Middle East map again.”

A programmer finds himself in front of a committee that decides whether he should go to Heaven or Hell.  The committee tells the programmer he has a say in the matter and asks him if he wants to see either Heaven or Hell before stating his preference.
“Sure,” the programmer replies.  “I have a pretty good idea what Heaven is like, so let’s see Hell.”  So an angel takes the programmer to a sunny beach, full of beautiful women in skimpy bikinis playing volleyball, listening to music and having a great time.  “Wow!” he exclaims, “Hell looks great!  I’ll take Hell!”
Instantly the programmer finds himself in red-hot lava with demons tearing at his flesh.  “Where’s the beach?  The music?  The women?” he screams frantically to the angel.
“That was the demo,” the angel replies as she vanishes.

Q: Why do most C++ programmers stop after one child?

A: Because multiple inheritance is a headache.

Q. How did the programmer die in the shower?

A. He read the shampoo bottle instructions: Lather. Rinse. Repeat…

Why do Java programmers wear glasses?
Because they don't C#! (See Sharp)

Unix is user friendly. 
It’s just very particular about who its friends are.

Why C gets all the girls and Java doesn't? 
Because C doesn't treat them like objects.

A SQL query goes into a bar, walks up to two tables and asks, "Can I join you?"