09 March, 2010

How to Export Email Addresses of all your Facebook Friends

Download Facebook Email AddressesSearch the Facebook Apps directory for something like “export contacts” and you’ll come across quite a few applications that sound as if they can transfer your friends contact information out of Facebook.
There’s an app called “Export Friends” that will save you friends names, city, birthday and their current location in a CSV (text) file that you then import into Excel, Gmail or any other web email program.
Then there are social plug-ins that can sync photos and status updates of your Facebook friends with matching contacts in Outlook.
The problem is that none of these apps can download what  you are looking – the phone numbers and email addresses of your Facebook friends. There are Greasemonkey scripts and other hacks that can pull this information from Facebook through “web scraping” but don’t ever take that route as Zuckerberg’s army might ban your account forever.
The trick, as you can see in the video, is actually quite simple.
Go to address.yahoo.com and click the Facebook icon. A login dialog should pop-up, just sign-in with your Facebook credentials and within seconds, you entire Facebook address book will be available inside your Yahoo Mail Account. Once the import is done, click this link to download a CSV file with the email addresses of all your Facebook contacts to your desktop.
You can then import the CSV file into Gmail Contacts, LinkedIn, your phone address book or any of the social sites where you want to connect with your existing Facebook circle.
Update: If Yahoo! is unable to import your Facebook Address book, open your Facebook page and choose “Application Settings” under Account. Next remove the “Yahoo! Contact Importer” application from your Facebook profile and try the steps mentioned in the video again.
Author: Amit Agarwal

08 March, 2010

Create JAR file in Java & Eclipse

Let us see how to create a JAR file using Java’s jar command as well as using Eclipse IDE. The JAR file format is based on the popular ZIP file format. Usually these file are used for archiving and distribution the files and implementing various libraries, components and plug-ins in java applications. Compiler and JVMs (Java Virtual Machine) can understand and implement these formats for java application.

JAR file using Java commands

Following are few commands that can be used to create/view/modify/execute a JAR file using Java command line utilities and JVM.

Create a JAR file

1jar cf JAR_FILE_NAME FILE_NAMES_OR_DIRECTORY_NAME
2e.g.
3jar cf MyApp1.jar C:\JavaProject\MyApp

View contents of a JAR file

1jar tf JAR_FILE_NAME
2e.g.
3jar tf MyApp1.jar

View contents with detail of a JAR file

1jar tvf JAR_FILE_NAME
2e.g.
3jar tvf MyApp1.jar
Note that we have used v (verbose) option to see the detail of JAR.

Extract content of JAR file

1jar xf JAR_FILE_NAME
2e.g.
3jar xf MyApp1.jar

Extract specific file from JAR file

1jar xf JAR_FILE_NAME FILE_NAME(S)_FROM_JAR_FILE
2e.g.
3jar xf MyApp1.jar Test1.class

Update a JAR file

1jar uf JAR_FILE_NAME FILE_NAMES_FROM_JAR_FILE
2e.g.
3jar uf MyApp1.jar Test1.class

Executing a JAR file

1java -jar JAR_FILE_NAME
2e.g.
3java -jar MyApp.jar

Create an executable JAR file

In order to create an executable JAR, one of the classes that we include in our JAR must be a main class.
Create a text file called MANIFEST.MF using any text editor and copy following content in it.
1Manifest-Version: 1.0
2Main-Class: MyMainClass
Where MyMainClass is the name of the class that contents main method. Also note that you have to specify fully qualified class name here.
Use following command to create an executable JAR file.
1jar cvfm MyApp.jar MANIFEST.MF FILE_NAMES_OR_DIRECTORY_NAME

JAR file using Eclipse IDE

Creating JAR file using Eclipse IDE is pretty much easy. Follow the simple steps.
Right click on your project, which you want to create a JAR file of. And select Export from the context menu.

Select JAR file from Java folder and click Next.

Provide the Destination path and click on Finish to create the JAR.

Courtesy: Viral Patel
Author: Viral Patel

20 February, 2010

Hide Closed Projects in Eclipse Project Explorer View

Ever wanted to hide all those closed projects in eclipse? Well, here is a simple trick that you may not know already.
Imagine your Eclipse workspace is filled with many projects that you created in past just to test some small functionality. Now you are done with these projects and hence you have closed it. Eclipse by default show all the closed projects in Project Explorer. Hence your project explorer may look like following where only two projects are open and rest competing for your attention although they are closed!

eclipse-close-project

Eclipse comes with a cool tiny feature that many of us not know. You may want to Hide all those closed projects from your workspace in Project Explorer tab. Simply follow following steps and do this is few seconds!
Step 1: Click on right corner of Project Explorer tab and open context menu. Select Filters option from menu.
eclipse-project-explorer-filter
Step 2: Check Closed Projects option from Filter and press Ok
eclipse-filter-close
Now check your project explorer tab, all the closed projects are gone! Doesn’t it looks more clean :)
We used Filters option to remove closed projects from Project Explorer tab. Filters provides more options to select and remove from displaying it from explorer view.

Courtesy: Viral Patel
Author: Viral Patel

18 February, 2010

What if…Apple only offered the 64GB/3G iPad and sold it for $499

Even though the iPad is still more than a month away from shipping, iSuppli conducted a preliminary itemized parts breakdown. The results aren’t that surprising: Apple’s making a boatload on these things. iSuppli concluded that the $499 16GB/no 3G model only costs $229 to manufacturer with the $829 64GB/3G model costing only $117 more to make even though it carries a $329 premium. Nice, eh?

These numbers can be broken down even further showing Apple’s insane margins. The 3G module only costs $24.50, but Apple charges $129 more for the option. The NAND memory chips are really the only difference between all three options, but their real costs of $29 for 16GB, $59 for $32GB, and $119 for 64GB are nowhere near proportionate with the iPad’s prices. All this data shows that Apple’s abandoning its long-held K.I.S.S. strategy.

So what if Apple got back on the keeping it simple bandwagon, only offered the high-end 64GB with 3G iPad and still sold it for $499? After all, the company would still be making at least $153 on each iPad sold. Would that turn around the iPad’s outlook?

The vast majority that participated in our poll the other day said that the iPad needs a lower price, specifically $349 for the base model. That clearly shows people are not satisfied with what the iPad offers at its $499 price point when it only offers 16 GB of storage and without the 3G wireless option along with a host of other letdowns such as lack of USB, SD card inputs, and multitasking. Surely if the iPad were only offered in a 64GB/3G kit, at least more  would be able to look past some of the other transgressions.

In fact this model structure of six different options for the same device is new for Apple as of late. Previously Apple was known for its no nonsense approach of just a high-end or low-end option. (MacBook or MacBook Pro, iMac or Mac Pro) Now consumers have to decide not only how much extra they want to spend for storage, but also if they want to spend $130 more for 3G access.

GPS units are known for this type of rubbish. There might be a dozen different models available, but each step up only adds one or two slight software or hardware change that’s a nominal cost difference, but seems to be enough justification for the gradual price increase up the model line. Only the iPhone and iPod touch share this type of pricing structure, but even though they share a lot of the same parts, their core functionalities are different, justifying the difference. That can’t be said about the iPad, where a unit without 3G will be severally limited compared to one with the option.

Maybe Apple doesn’t need one iPad option priced at $499, but rather only two with both offering 3G access, since it isn’t tied down with a wireless contract anyway. Offer the 32GB option for $399 and then the 64GB one for $549. Something needs to change as clearly consumers aren’t thrilled with the iPad’s current pricing, and now that the whole world can see that Apple is downright robbing buyers of the high-end model, that perception will not improve. Apple, get back to your roots and keep it simple, stupid.

Courtesy: Crunch Gear
Author:  Matt Burns

Which Social Network Is Right For You?

 
Between Twitter, Facebook, and Google's new social networking tool, Buzz, it's hard to turn a corner without running into another social network. But how do you know which networking tool fits you best? We're here—with big charts and all—to help.
Last week Google Buzz made us ask ourselves what we wanted out of social networking. To answer that question, we charted what we liked and disliked about setup, privacy, usability, and other aspects of Buzz, Twitter, and Facebook. Here's the result.
This chart doesn't cover everything about every network out there. MySpace is (seemingly) on the decline or, at best, re-purposing itself. LinkedIn is really a business contact pool, FourSquare a geo-location game, and other networks generally too niche to be compared in the same aspects and categories.
For the simple read, here's the full chart of our Buzz, Twitter, and Facebook comparison. We color-coded each answer to give a context of where it stood, in comparison to what we know is possible and what a smart user would like to see. Red means that you can't rely on this network for this feature. Yellow indicates that the network offers it or makes due, but could definitely be better. Green means something works, and can be considered a selling point.



There's a lot of text there already to parse through, but it's obviously segmented and specific to each function. Having dug into the settings of each network and debated it with my fellow editors, I'll try to offer up a concise take on how I'd explain each network to someone completely new to any of them. I hope it might spur some thought about which network you're using now, too, and why.

Facebook

 
Facebook's strongest feature, as it stands now, is that it's relatively easy to figure out who your "friends" are. You can pull them from your webmail address book, sure, but you have to check off those you want to be a friend with, and they have to reciprocate. After that, you start seeing their status updates, photos, and other activities on Facebook.com, right when you log in. Simple enough, right? Not exactly.
You can't, or at least shouldn't, create two separate Facebook accounts for personal friends and work contacts/co-workers/casual acquaintances, all of whom are likely to hit you up on Facebook sooner or later. So it's up to the user to create groups of friends and set what those different friends can see. Also, your Facebook identity is tied to certain "networks"—an employer, a school, a location—that you have to remember to set controls for, too. Dig around and you'll almost certainly find the very fine-grain controls you might need. But then, every few months, Facebook changes up their offerings, for better or worse, and it's up to the user to notice and re-learn how to decide what's private, to whom, and, in a much more worrisome way, what's being made public and search-able on the web.
Facebook does have a pretty great iPhone app, and offers a good amount of access to third-party clients like Brizzly and TweetDeck. But they're still limited in some ways meant to drive you to the web site, and their non-iPhone mobile apps and sites are tough to love.

Twitter

 
What's easy to like about Twitter is the simplicity. You get an account, you see a suggested list of famous users that you can feel free to ignore, and then you're asked to write 140 characters about something, anything. It will be made public, search-able, and able to be re-broadcast by other users, unless you've decided to lock your entire account and require your permission to view it. You can follow other people, block the occasional jerk from following you, reply to others' posts, message other users privately (if you both follow each other), and, over time, you'll learn about third-party apps and context tricks that make the service make more sense. I started using Twitter one day into my first SXSW, and I had it mostly figured within one or two over-eager days.
That simplicity, and reliance on third-party sites and apps for picture posting, link shortening, and the like can be confusing to newcomers that aren't into digging around, for sure. And the speed and volume of the main stream can be overwhelming and off-putting. But Twitter has grown slowly into a network that adapts to users' needs, whether by force or through user innovation. If you don't like how noisy and fast your main feed is, creating a list of high-priority friends and thinkers will do the trick. As you figure out what you like and don't like about Twitter, you'll be able to find third-party apps and interfaces that cater to those interests. We'd love to see expanded features here or there (for discovering who's following you, and perhaps hiding certain posts from all but a few close followers, for example), but Twitter is a pretty novel solution for those who like to share short updates with the web at large.

Buzz

 
Whatever we write about Buzz will be slightly inaccurate in a week's time, most likely. Buzz is brand new, and already it announced an apology and upcoming "fixes." From what we've seen, though, it seems like it wants to be the solution that FriendFeed never was to tracking your friends and contacts' multi-varied interests. Some friends change their IM status to say what's up, while others post on Flickr, Twitter, their own blog, and other places. Rather than making you head to each site, or make those friends become endless self-promoters, Buzz aims to connect you to everything your friends are doing from a place you're already familiar with—your Gmail and Google contacts.
And that, of course, is where the uproar started. Buzz showed up, suddenly, inside Gmail, and when asking users to sign up, assumed too much that they'd like to turn their email contacts into people they "follow," and maybe make that following status public. If Google could reassure Buzz users that what they did on the network was only among their followers they've individually approved, it would be more appealing. The service also needs a dedicated home, instead of being spread across mobile sites, Gmail, Google Maps, and elsewhere, and gain better controls for how much "buzz" flies at you. But it's promising, still, because it's not a public-type Twitter, or a walled-off Facebook, but something else entirely.

Courtesy: Life Hacker
Ollie the bluebird/Twitterrific