Java is the Cobol of the 21st Century.
Tim Pritlove in mobilemacs Episode 76
Java is the Cobol of the 21st Century.
Tim Pritlove in mobilemacs Episode 76
As development hardware are currently quite popular Macs running, but on these aluminum beauties an operating system based on Unix.
Another reason might be that the development environment Eclipse is supported on MacOS good. This is especially true for Java (using the Java Development Tool - JDT). However, PHP web applications go well with Eclipse and the PHP development tool - PST program.
The PDT does not own with PHP interpreter. Ie, they must provide themselves for a web server with PHP module. On the Mac, you get the comprehensive package with MAMP .
If you want to make a PHP script to run under Eclipse, you have to do the two know each other. But before Eclipse PDT requires a debugger. You can choose between the Zend debugger, which is unfortunately not included with MAMP and XDebug, the Module is integrated into MAMP with me did not work.
An updated version of XDebug can be installed over brew.
brew install xdebug Brew is indeed ahead of Xcode, but should be absent from any Mac developer. There is no installation guide is on github .
But back to XDebug. During installation you will be advised of the following steps:
To use this software: * Add the following line to php.ini: zend_extension = "/ usr/local/Cellar/xdebug/2.1.1/xdebug.so" * Restart your webserver. * Write a PHP page that calls "phpinfo ();" a browser and look for the info on the xdebug module. * Load it into a browser and look for the info on the xdebug module. * If you see it, you have been successful!
The php.ini that MAMP can bring, not be edited with normal user rights. With sudo, but it is already.
Applications / MAMP / bin / php / php5.3.6 / conf / php.ini sudo vi / Applications / MAMP / bin / php / php5.3.6 / conf / php.ini
In the [xdebug] then the Directive is fully complied for the xdebug module add:
[Xdebug] zend_extension = "/ usr/local/Cellar/xdebug/2.1.1/xdebug.so"
Start with the Web server and monitor the success as described above.
Does everything have to configure in Eclipse, only the settings in a PHP Executeable to start from where PHP scripts can be.
This year's Jax (Conference for Java) has been a good 2 weeks past. Part of the lectures was videotaped and is now gradually with JAX TV channel available on Vimeo.
As always, were very interesting presentations from all topic areas below. For each Java flavor so there should be something.

I have neglected in recent times the topic Grails in this blog a bit. So it is now after this dry spell at the time, again to write a blog entry on this subject (may result in more).
One of my first article on Grails showed how to make Grails and Eclipse together. This entry was so successful that I did as a permanent site was built as part of a small tutorial on the blog.

This is a couple of months ago and support the creation of Grails applications with Eclipse has become steadily better.
Was it the beginning so that by far the best IDE for Grails was IDEA, the free Eclipse gets more and more. No later than the change of Grails developers to SpringSource and the associated integration into the Eclipse-based SpringSource Tool Suite (STS) , a lot has happened.
Aside from the main memory - Hunger of STS, I feel as old Eclipse users in good hands. With NetBeans and IDEA I could never really get used.

To enable Grails to support the Grails and Groovy on the Extensions tab extensions of the STS dashboards are installed (see screenshot). Then there are for Grails projects its own perspective, with syntax highlighting, code completion and a clear navigation in the Project Explorer.
In the toolbar there is a button in the Grails perspective
Grails commands to execute (such as run-app ).
springsource / ~> Ls spring / source grails-1.3.5 grails-1.3.6 grails-1.3.7 maven-2.2.1.RELEASE roo-1.1.0.RELEASE tc-server-devel-2.0.4.RELEASE sts-2.5.0.RELEASE
Are there any updates (Help -> check for updates), a new version of Grails there is this added. In the Preferences (Groovy -> Grails) you have to take the new version of the workspace. The Grails project is still the upgrade command is necessary.
Conclusion:
The Grails integration into Eclipse has taken a big step forward. From IDEA functionality should still lead. Grails projects there are only supported in the paid version ULTIMATE.
The free development environment NetBeans and Eclipse-based STS hardly differ in the Grails support. Here the personal preference will decide on the IDE.

![]()
A similar article some time ago and I have for my ex - del.icio.us bookmark manager written.
My new service is zootool . About the reasons for the change I've recently written .
If one betakes himself to a new dependency, everything should remain good. Zootool as well provides an API to access the bookmark.
Unlike the results of an inquiry del.icio.us however, are supplied in JSON format, making the HTTP Builder module of Groovy but also has no problems, as the example is to show you. An encrypted password and an API Key ensure more security.
Well, long enough talk. Here is the code for a single client bookmark zootool:
A 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | package de.koo.groovy.rest 'org.codehaus.groovy.modules.http-builder' , module = 'http-builder' , version = '0.5.1' ) @ Grave (group = 'org.codehaus.groovy.modules.http-builder', module = 'http-builder', version = '0 .5.1 ') import groovyx.net.http. * groovy.util.slurpersupport.GPathResult import java.security.MessageDigest import import sun.misc. * public class {ZootoolBookmarkClient def username def password def apikey public ZootoolBookmarkClient () { username = "<username>" password = "<password>" apikey = "<apikey>" } main ( args ) { public static void main (args) { new ZootoolBookmarkClient ( ) def dc = new ZootoolBookmarkClient () dc. request () } / ** * Bookmark and query processing of the results * In HTML format as a definition list * / public request () { def resp try { / / Authentication "http://zootool.com/api/users/items/?username=$username&apikey=$apikey" def url = "http://zootool.com/api/users/items/?username = $ username = $ & apikey apikey" RESTClient ( url ) RESTClient rc = new RESTClient (url) ( username. toLowerCase ( ) , getEncodedPassword ( ) ) rc. auth. basic (username. toLowerCase (), getEncodedPassword ()) Request / / and check the response : ] def params = [:] ( params ) resp = rc. get (params) == 200 assert, respectively. status == 200 println "<dl>" { item -> respectively each data item {-..> ${item?.url} \" >${item?.title}</a></dt>" println "<dt> <a href= \" ${item?.url} \"> $ {item?. title} </ a> </ dt>" println "$ {item <dd>?. title} </ dd>" } println "</ dl>" ( e ) { } Catch (e) { e printStackTrace () } } / ** * Password encryption with SHA-1 algorithm * / public getEncodedPassword () { MessageDigest . getInstance ( 'SHA-1' ) MessageDigest md = message digest. GetInstance ('SHA-1') password. getBytes ( 'UTF-8' ) ) md. update (password. getBytes ("UTF-8 ')) new BASE64Encoder ( ) ) . encode ( md. digest ( ) ) return (new Base64Encoder ()). encode (Md. digest ()) } } |
I wish you all (with and without a well-kept cat) a happy and healthy 2011.
Finally, a few helpful links:
zootool API key generation
zootool API documentation
Sample code for PHP, Python and Objective-C