What language should our company use to develop in-house applications? A question that appears to carry with it a simple answer but too often, the decision isn’t well thought out or doesn’t originate from what makes sense for the organization as a whole.
Eclipse doesn't like jQuery and each time I begin from a new install, I need to configure it to ignore validation errors on jQuery. I hate that little red x. Read more to learn how to remove the red x!
I recently had to buy a new computer - a MacBook - because I spilled a full cup of coffee all over the keyboard of my 17" MacBook. I was a little upset. Apple stopped making 17" laptops so to make up the for the lack of screen real estate, I decided to go all out with a shiny new retina display. I admit, I'm more impressed than I thought I would be but the technology comes at a cost. Not all applications look nice with the display. With retina, applications need to display different icons and fonts that are made specifically for a much higher pixel density. Any web developer already deals with this when targeting iPhones or iPads, but since very few non-mobile devices have such displays, not all desktop applications have the necessary files yet.
Eclipse is such a popular IDE that I was devastated to see it doesn't support retina yet. I use the IDE all day long so I scoured the Internet tubes for a solution and found one that is good enough. It only updates the fonts for the editor part and not any of the graphics - obviously - but that's good enough for now. Here's what you need to do...
- Right click and "Show package contents" on the Eclipse.app. (STS.app, if using Spring Source Toolkit)
- Edit Contents/Info.plist. Just above the closing </dict> </plist>, add <key>NSHighResolutionCapable</key> <true/>
- Make a copy of the app (Eclipse copy.app)
- Open the copy
- Close the copy
- Rename the original (Eclipse-NON-RETINA.app)
- Rename the copy (Eclipse.app)
In case you haven't noticed, Eclipse doesn't have the most stable annotation preprocessor. I use Hibernate as my persistance provider but I've experienced problems with Hibernate's meta model generation jar - at least when used in Eclipse. In need of a solution, a colleague turned me onto OpenJPA for the meta model generation and still use Hibernate as the actual persistance provider. Open JPA is a bit too strict as a provider still but works like a charm for metamodel generation. To set the annotation processor in Eclipse, follow the steps below. I'll set it to OpenJPA, but you can use any one you want.
Right click the project in the project explorer and go to Properties...
In the left side navigation area, select Annotation Processing under Java Compiler.
You'll want to check Enable Project Specific Settings, then Enable annotation processing
Select the generated source directory - I build with Maven, so I've selected the standard Maven location.
You can see from the the screenshot that I have a single processor option openjpa.metamodel=true. You'll need to set this if you're planning to use OpenJPA for your metamodel generation. Hibernate does not require this. See the documentation of your processor if using something other than OpenJPA or Hibernate.
Next, expand Annotation Processing in the left side navigation and select Factory Path.
Here is where you'll point to the jar file containing your metamodel generator. You can see that I unchecked the eclipse version and later tried the Hibernate version and now I'm using the OpenJPA version.
Click OK and you should be good to go.
Also, you'll want to make sure you update your pom.xml to use the same provider.