Java is open-source, fortunately. Accessing its source code is, unfortunately, not so intuitive on Mac OS X Lion when using Eclipse. This article will guide you through the steps required to be able to view Java’s source code in Eclipse.
Assigning a DNS name to a virtual machine can be a convenient thing. Do this is not very complicated, it requires some technical skill though. This tutorial shows how to do this with a Ubuntu 11.10 Linux server running under Parallels Desktop 7 on Mac OS X Lion. The basic principals described in this article work as well for any other combination, but that’s beyond this article (and that’s where your technical skill comes into play).
Sometimes one needs to edit a system configuration file on Mac OS X. While these files are usually text files, you can’t used Mac OS’ “TextEdit” tool to do this. Fortunately, there is a free alternative to “TextEdit” called TextWrangler.
Important: Make sure that you don’t use the AppStore version as this version doesn’t allow editing locked files. (Apple’s store guidelines prohibit this.)
Open... from the menu. Then, since system configuration files are often hidden or in hidden folders, select
Show hidden items at the bottom of the “Open” dialog.
Then open the file you want to edit. You may notice that the file is in read-only mode (represented by the icon in the upper left corner).
To switch to write mode, either click this icon or start editing the file’s content. In both cases you’ll be asked to unlock the file. After that, you can edit the file.
When you’re done, simply save the file. You’ll be asked for your password since you’re editing a system file (that doesn’t belong to you). And that’s it.
Note: The AppStore version doesn’t ask you for your password but instead asks you to save the file under a different name.
This is just a note to my self of what Eclipse plugins I’ll use. This list may, however, also be useful to you.
- Subclipse: Subversion support
- MercurialEclipse: Mercurial support
- ExploreFS: This plugin allows you to open a file in Windows Explorer/Finder through the context menu.
- CheckStyle: This plugins allows you define more precise rules for your code style. If a rule is violated, a warning is issued.
TestNG: Unit testing framework (much like JUnit)
To see what plugins have already been installed, go to Help –> Install new software… and click on What is already installed? at the bottom of the dialog.
Ever since I updated from Firefox 3.6 to 4.0 (and now 5.0) I had an additional item called “Bookmarks” in my Bookmarks toolbar. For me, it was (and is) unnecessary because I have all my bookmarks on my toolbar (and none of them in the actual Bookmarks menu). So, I was looking for a way to get rid of this button. I did some searching on the Internet but found nothing. So, I just tried to ignore this button.
Today, however, I stumbled over a way to remove this button. Just right-click on an empty space on the toolbar containing the address bar (not on the bookmarks toolbar). A menu will pop up and there you choose Customize.
This will allow you to add and/or remove toolbar buttons to Firefox’ main toolbar. Strangely, a new “Bookmarks” button will appear – usually on the right side.
This is the “Bookmarks” button that is displayed in your Bookmarks toolbar. Remove it (drag it away from the toolbar), close the “Customize” dialog, and the “Bookmarks” button will be gone.
Note: There are actually two bookmark buttons available in Firefox. One with a pulldown arrow to its right and one without. Only the one with the pulldown arrow will be moved to the bookmarks toolbar.