Kukoo's Blog

Something about whatever...

Kukoo's Blog


分类为 ‘groovy’ 的文章归档:

August 11th, 2008

Groovy/Grails Search

No Comments, Popularity: 25% [?]

受 Eclipse Search 的启发,利用 Google Coop 做了一个 Groovy/Grails 的自定义搜索,除了搜索整个 web 以外,还着重于一些介绍 Groovy/Grails 的 blogs,当然,groovy.codehaus.org 和 grails.codehaus.org 是一定不会缺的。 同时,利用 Google Coop 的调优功能,设置了 blogs 和 documents 这两个 label,对添加的站点做了一定的分类,这样除了普通的查询,也可以缩小查询范围,只搜索 blogs 或者 documents。

groovy-grails-search

有了这个自定义的 Groovy/Grails 搜索,参考 OpenSearch,我也定义了一个 opensearch.xml,所以如果你访问这个搜索网页,就可以把它添加到 Firefox 3 的搜索工具条中(也支持 Internet Explorer 7)。

add-groovy-grails-search-into-firefox

对于整个页面的设计,还会继续调整和美化;而对于所搜索的站点,现在还不是很多,一个原因是现在专注于 Groovy/Grails 的比较少,也可能是我所知道的比较少。 我会逐渐的添加更多关注 Groovy/Grails 的站点,也许会把 Google Coop 中的这个自定搜索设置为公开,或者邀请感兴趣的热心人一起来维护。

Popularity: 25% [?]

Tags: firefox, Google, grails, groovy and opensearch

August 4th, 2008

Groovy Refcard

1 Comment, Popularity: 14% [?]

laogao 在 Twitter 上告诉我,Groovy Refcard 发布了。 正值我在学习 Groovy/Grails 的时候,DZone 的这个 Refcard 真是个好东西啊。

groovy_refcard

This reference card provides exactly the kind of information you are likely to look up when programming Groovy.

Features include Groovy/Java Integration, Language Elements, Operators, Collective Datatypes, Meta Programming, Hot Tips and more.

Groovy Refcard 的作者是 Dierk Konig,《Groovy in Action》的作者之一。

在这里下载。

Popularity: 14% [?]

No Tags

July 31st, 2008

Groovy 的 Eclipse 插件更新了

5 Comments, Popularity: 42% [?]

groovydukemed

我是一个Eclipse的fanboy,一直以来使用Eclipse来开发系统。 然而最近开始看Groovy/Grails以后,却开始使用NetBeans。

最近,Groovy的Eclipse插件也更新了,首先对Groovy的支持到最新的Groovy 1.5.6,同时也支持Eclipse 3.4了。

可以下载Groovy Eclipse plugin的zip文件手工安装,也可以使用Eclipse的Update Center来安装,http://dist.groovy.codehaus.org/distributions/update/。

Groovy Eclipse plugin 的开发者 James Ervin 在他的blog中描绘了这个插件的未来路线图,看了一下,似乎并没有特别让人 exciting 的地方。

老实说,对Groovy/Grails的支持,NetBeans 确实做得比 Eclipse 要好一些。 我用的是最新的Netbeans 6.5M1,安装完毕就提供了对 Groovy/Grails 的支持。 有几个地方Netbeans做的非常棒:

  • 直接在 Java 项目中支持 Groovy 了,不用像在 Eclipse 中要添加所谓“对Groovy的支持”。 这样做的好处显而易见,Groovy class 和 Java class 是同等公民了(Groovy class 本身就会被编译为.class),在同一个项目中,Groovy class 和Java class 可以无缝的集成,相互调用了。
  • 对 Grails 的支持更好。 在 NetBeans 中创建了 Grails 项目以后,NetBeans 会按照语义在 Project View 中组织 Grails 的各个促成部分,比如 domain class,controller,view 等。 在不同的部分都能创建对应的 Groovy class(比如在 controller 就是创建 controller class)。 Eclipse 的 Groovy/Grails 插件就做的不怎好,无法通过菜单或者右键就创建对应的 class。
  • 手工创建的 Grails 应用,NetBeans 也可以直接通过目录打开,Eclipse则不行,连 import 都不行。
  • NetBeans 中可以直接启动 Jetty(Grails内建的服务器)来调试 Grails 应用系统,也可以方便的把 Grails 应用生成WAR包部署到 Glassfish 中(Glassfish在NetBeans 中是头等公民,而在 Eclipse 中则要额外下载WTP的服务器插件手工安装)。 基本上,在 NetBeans 就可以把一切搞定,而不用开几个命令行窗口来分别启动grails run-app或者grails create-controller了。

Popularity: 42% [?]

Tags: Eclipse, grails, groovy and netbeans

July 24th, 2008

Groovy: 继续前行

2 Comments, Popularity: 16% [?]

前段时间说要重拾 Groovy,终于不再是一个计划,而是真的重新开始了。 花了两个多礼拜的时间,把《Groovy Recipes》看完了,不过不是真正看完了,其中有几章节没有看,比如和 Web Service 相关的。 计划在下半年要仔细研究 SOA,Web Service 和 ESB,所以准备到那个时候再看有没有必要读。

读完《Groovy Recipes》有一种感觉,这本书并不非常适合初学者,而是适合那些有一定Groovy 基础的(比如看过 Groovy Start 或者一些介绍性文章的),通过这本书能了解更多 Groovy和Grails,能了解 Groovy 到底能做什么。 但是它又不像《Java Cookbook》这类书给出了大量实用的案例。 所以,如果想深入地了解 Groovy,这本书并不非常合适,想要拿 Groovy 来马上做些事情,案例又不多,而想要快速了解 Groovy,这本书似乎又厚了一点。 似乎有一点鸡肋的感觉。

《Groovy Recipes》最后介绍了 Grails 这个 web 应用程序框架,感觉比较好玩,和 RoR 有得一比。 刚好还有一本《Grails Getting Started》,100多页,应该不会花费很多时间就能看完。 之后应该就是《Groovy in Action》这本大部头了。

目前似乎还没有Groovy Cookbook,只在CodeHaus上有一些examples。

《Grails in Action》也在撰写中了,非常值得期待,到那个时候,就不需要再getting started了。

Popularity: 16% [?]

Tags: groovy

July 9th, 2008

Groovy: 重新开始

2 Comments, Popularity: 19% [?]

最早有记录我开始接触Groovy,应该是在05年的1-2月份,我曾在JavaOne 2005的时候特意留心过Groovy,后来还注意过Grails。 但是很惭愧的是,到现在为止,还只能说对Groovy/Grails是个“入门级”。 这其中有曾经想放弃的原因(兴趣转到Ruby/Rails去了,还曾确确实实去研究了一番,结果Ruby/Rails也中途荒废了),也有部分原因是没有用Groovy去做一些实在的东西,学到的一些基本知识很快也就忘掉了(就好象死背英语语法,却没有用英语直接交流,基本很快就会把英语忘掉)。

现在想想,3年多时间了,现在看看一些Groovy的介绍,还是似曾相识(再复杂一些的Groovy代码却看不懂了),真不知道过去的时间都干什么去了。 所以下决心至少要把Groovy的基本知识完全看完才可以。

手头目前有三本书:《Groovy in Action》,《Groovy Recipes》和《Grails Getting Started》。 《Groovy in Action》是本红宝书,但是太厚(我也看了1/3了),《Groovy Recipes》是新出的,跟偏向于实际使用(有点像《Java Cookbook》),最后一本则是Grails相对完整的介绍和应用了。

groovy_in_action

groovy_recipes

grails_getting_started

所以现在阅读的顺序是《Groovy Recipes》先看完,只有200多页,应该能坚持的。

Groovy/Grails:重新开始了。

Popularity: 19% [?]

Tags: grails and groovy


  • 页面导航

    • Home
    • About
    • Archives
    • Tags

  • 文章分类

    • 宝宝 (3)
    • 医疗信息 (2)
    • 管理 (25)
      • 团队 (5)
      • 研发 (2)
      • scrum (7)
    • 随便写写 (85)
      • blog (27)
      • 阅读 (15)
    • F1 (1)
    • Firefox (52)
    • Google (42)
      • GCalendar (1)
      • GMail (9)
      • GReader (13)
    • nokia (4)
    • Ubuntu (6)
    • Windows (11)
    • 技术 (65)
      • .Net (1)
      • Eclipse (31)
      • groovy (5)
      • Java (29)
      • oracle (1)
      • ROR (2)
      • 测试 (1)
    • 未分类 (1)
  • 近月归档

    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • February 2008
    • January 2008
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • March 2007
    • January 2007

  • Firefox 3 Google Reader

    All Posts Feed | RSS?

  • 相关文章

    • Eclipse: 在Firefox 3中添加Eclipse Search
    • Firefox 3: 介绍2个有用的Greasemonkey脚本
    • Groovy 的 Eclipse 插件更新了
    • Firefox 3: Lifehacker的Better系列
    • Firefox 3 tips: 在Firefox 3的侧边栏运行Google Talk
    • Groovy: 重新开始
    • 从Firefox的搜索框打开Gmail写邮件
    • Google Toolbar for Firefox 3
    • Google Browser Sync项目终止了
    • Google Gears 支持 Firefox 3了
    • Searching from the Address Bar
    • Google Reader Trends
    • Google Book Search 的嵌入式预览
    • T-Mobile G1 和 E71
    • Firefox 3: FoxTab 扩展
    • Firefox 3 tips: 自动导出书签
    • 在Google Earth上看奥运场馆
    • Google Reader: view original in background tab
    • Firefox 3: release the memory
    • Firefox 3 扩展:Send to OneNote 和 Live Writerfox
    • Firefox 3 tips: 加入自定义的OpenSearch
    • Groovy: 继续前行
    • Firefox 的中国形象:阔耳狐 G-Fox
    • Firefox 3 tips: search box的icon换成Google的新标志
    • Firefox 3: 我使用的扩展插件(2008.07.20)
    • Firefox 3.0.1 is out
    • Firefox 3 的 Site Identification
    • Firefox 3 的书签管理
    • Firefox 3 tips: 更多userChrome
    • Firefox 3 的插件管理
    • Firefox 3 首日下载记录创吉尼斯纪录
    • Firefox 3 的历史记录
    • Firefox 3 tips: 微调地址栏上的Identification button
    • Firefox 3 tips: 选择多段文本
    • Read it Later in Firefox
    • 介绍几个新使用的FF3扩展
    • Field Guide to FF3 中文版
    • Firefox 3 tips: 微调userChrome
    • Firefox 3 tips: 找回你忘掉的密码
    • Firefox 3: 24小时下载800+万
    • 调整Portable Firefox
    • Firefox 3 下载日
    • 提前下载Firefox 3?
    • 下载Firefox 3,创造吉尼斯新纪录
    • 推荐给Google Reader的几个Greasemonkey脚本
    • Firefox3的改进
    • Google Reader的小改进
    • Firefox中的反钓鱼数据库
    • 介绍Firefox 3新特性的视频录像
    • Firefox 3 RC2
    • 我在Firefox 3中使用的扩展
    • 传播Firefox
    • Gmail的广告
    • Tips for Google Reader
    • Google Earth Flight Simulator
    • Google Reader 的新改进
    • 我在Firefox中使用的插件
    • 谷歌拼音输入法又升级了
    • 谷歌拼音输入法升级至1.0.21.0
    • Google Bookmark 和 Shareaholic
    • 我的搜索历史
    • 让你的GMail更安全
    • Portable Firefox and Thunderbird
    • 在Outlook 2007中使用Google Calendar
    • Firefox中不需要扩展的10个功能
    • 使用Google Reader
    • 用ScribeFire在Firefox中写blogpost
    • 使用Google Talk和GMail
    • 高效开会6法则
  • groovy 分类中最受欢迎文章

    • Groovy 的 Eclipse 插件更新了
    • Groovy/Grails Search
    • Groovy: 重新开始
    • Groovy: 继续前行
    • Groovy Refcard
  • 最受欢迎文章

    • Nokia E71 使用杂记
    • Nokia E71
    • Eclipse: 在Firefox 3中添加Eclipse Search
    • 21大经典科技网站
    • Groovy/Grails Search
    • Google Reader: view original in background tab
    • Firefox 3: 介绍2个有用的Greasemonkey脚本
    • Google Android UI
    • 结婚纪念日快乐
    • 祖尔测试
  • GReader Shared

  • 其他杂项

    • 新杰
    • 海宸
    • Login
    • Valid XHTML
    • XFN
    • WordPress

© 2007 Kukoo's Blog | iBlue Theme | WordPress 2.2.1
97 queries. 1.451 seconds. valid xhtml css, Creative Commons