I have been struggling with this error a lot of times. The solution is rather simple. Open the MANIFEST.MF file of your .jar file and add these lines:
Implementation-Vendor: Sun Microsystems, Inc
Implementation-Title: Java Runtime Environment
The reason behind this error is simple. ImageIO needs to read some of these parameters. And if they aren’t set you get a null pointer exception.
Problem with this error message in Eclipse or SpringSource STS?
This compilation unit is not on the build path of a java project
Run this command in the root of your project folder.
mvn eclipse:eclipse eclipse:clean
Re-import your project and everything should be working as before. Read more here.
I just discovered an awesome font service provided by Adobe, Typekit. Step 1: Register you’re web page. Step 2: Select the fonts you want to use. Step 3: Include the font-family you wish to use in your CSS files. Choose from hundreds of expensive typefaces for free. Choose a non-free subscription ang get a lot more. Genious!
Looking for a domain lookup service? Trigger you’re requests to this URL: http://domai.nr/api/json/info?q=apple.com. All answers will be in JSON.
I’m currently looking into Cocoa development in Lion. I came over this site listing a lot of nice UI elements and methods. Most are also hosted on GitHub.
If you want to install MongoDB on your Linux machine you should not use the default package handler. Instead download the tarball from this site. I tried installing MongoDB from my repositories at first, then I found out later that I had to manually install it to get it working with MongoTemplate in Spring. When you install the database, remember to create the folder /data/db on your system. All the dbs you create are stored there:
$ sudo mkdir -p /data/db/
$ sudo chown `id -u` /data/db
Read more about the issue over at StackOverFlow.
I have been having a lot of trouble getting Battlefield 3 stable on my computer. I’ve been experiencing triangular artifacts acting wierd, and most annoying, regular crashes. I have a Gainward Geforce 580 GTX graphics card. The solution that worked for me was simply to clock down the card from 783MHz to 583 MHz. I used a program called EXPERTool to do this. EXPERTool is developed by Gainward and is recommended for use on their card. There are several other methods of underclocking a graphics card. Search for it on Google, add your graphics card name on to the search string.
Found a nice tutorial on how to create section/grouped-based listviews for android. Article written by Jeff Sharkey.
After a lot of struggling and frustration getting Android SDK, Maven and Eclipse working together I have decided to create the ultimate tutorial. I have not found a single page online describing how all the pieces should work together. I have only found bits and pieces of information at various sites. So this should be a post merging it all together. Read on if you want to know how I got it working. My goal is to create a post containing everything from installation requirements to getting the first project up and running.
Read the rest of this entry »