Grails的核心依赖必须保证项目中版本一致!

好久没写语录式大标题了,实在是今天玩Grails受害很深很深。

Grails因为本身是通过ivy来管理依赖的,虽然后续的版本和maven的集成不断加深,但是本身还是通过ivy来解析pom.xml。也就是说最后的活还是ivy干的。如果你的项目比较大,选择了通过maven来管理项目,而你的依赖中又牵扯了很多其他的依赖,那么你危险了。

:: UNRESOLVED DEPENDENCIES ::

:: log4j#log4j;1.2.16: configuration not found in log4j#log4j;1.2.16: ‘master’. It was required from …;1.7.0 runtime

对maven用户这是一条多么发指的报错!(比如这个

它的原因其实是你的dependency中有!=1.2.16版本你的log4j,比如1.2.12,即使你在pom里将它添加到了exclusion中也没有用,必须要保持版本的一致!至于你用什么办法让他们保持一致,还是干脆放弃用maven管理你的grails项目:It’s up to you.

同样的问题还出现在其他核心依赖上,例如commons-pool。

Voting with your reddit account on RageViewer

I just implemented a new feature on RageViewer which has been requested for a long time. Now you can login with your Reddit account and up-vote/down-vote rages without turning to Reddit website.

Again, I made a rage comic for this feature.
voting rage

To be able to vote items with your Reddit account, a Reddit session is maintained in the memory of RageViewer. Rage Viewer is a pure open source software so it will never store or log your password in any form. You can verify the source code on github if you have concern about the privacy. (Currently, Reddit doesn’t offer any authorization like OAuth so we can only access your reddit account with your password. Sorry for that.)

For those still have no idea about RageViewer. RageViewer is for browsing rage comics smoothly. It loads most recent comics from fffffffuuuuuuuuuuuu and some other subreddits into the database. It gives you a modern and clean UI for your best experience.

Also important, RageViewer is a full-stack clojure web application that written in the JVM functional language: Clojure(server-side) and ClojureScript(broser-side).

BTW, a new version of Reddit.clj (0.3.0) is available in clojars repository. (the new RageViewer is also based on it). In 0.3.0, reddit.clj is compatible with Clojure 1.3.0. And a “enhance” function is removed that you are no long required to “enhance” a reddit client before you write data to Reddit. Now you have read-write permission once you create the client with reddit.clj.core/login .

The distribution of intelligence

This could be a big title for the content.

I just work out a heat map based on the data of users who enrolled online courses offered by Stanford.


(Click to enlarge)

I think you already have your ideas about this map. New England, California and Central Europe has higher density than any other area of the world. Also you can find some light in South America, East Coast Australia, India and China. I think this could be an overview of how intelligence distributed around the globe.