ElasticSearch
Shay Banon (@kimchy) of Compass fame has done it again and created a cool search project: ElasticSearch. It's a server component on top of Lucene which you interact with via JSON/REST. Unlike Solr it is schema less and focuses on the easiness of transparent multi node setups. It will be interesting to see how it compares to Solr in terms of search features like facetting and range searches. Here is what Shay has to say on the ElasticSearch vs. Solr topic. It's still early days but I will keep an eye on it.
Posted at 10:25AM Feb 16, 2010 by joerg in Allgemein | Kommentare[0]
Some git resources
I've been using git a bit more recently and have stumbled across a couple of nice tips and tools.
Installation
I use macports to get a recent version of git on my mac
Setup
Well you should at least specify your name and email on a global level, like so
If you are a github user clearly you want to setup your github identity like so
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
(the values to set you can find here: https://github.com/account)
git config --global github.user username
git config --global github.token xyzxyzxyzxyzxyzxyzxyzxyz
Documentation
There are at least 3 online books
I've also found this article on setting up a git 'server' helpful: http://toolmantim.com/articles/setting_up_a_new_remote_git_repository.And there is alwas the 'official' slightly nerdy documemtation at http://kernel.org/pub/software/scm/git-core/docs/
(GUI-)Tools
If you installed git with macports you might as well install tig, which is quite a nice CLI git browser. I also like gitX and there is SmartGit, which is also free for non-commercial use. When using git you obviously want to have a look at github; if you are not developing open source projects trac might be a 'poor mans github alternative' with the git plugin. I also really quite like the Git Bundle for TextMate. EGit/JGit are clearly worth having a look out for for those of you, who earn there money in Java land. You can find information on how to setup FileMerge.app for diffing and merging here and here
Posted at 05:23PM Feb 09, 2010 by joerg in Allgemein | Kommentare[0]
why I like groovy
I use groovy more and more often. See this little gem for transforming the charset of a batch of textfiles. Couldn't get a lot simpler. It's basically 6 lines of code:
Love it!
if(args.length != 4) {
println "Usage: specify these arguments: input dir, input encoding, output dir, output encoding"
return
}
def inputDir = new File(args[0])
def inputEncoding = args[1]
def outputDir = new File(args[2])
def outputEncoding = args[3]
assert inputDir.exists(), "${inputDir} must exist"
assert inputDir.canRead(), "${inputDir} must be readable"
assert outputDir.exists(), "${outputDir} must exist"
assert outputDir.canWrite(), "${outputDir} must be writable"
inputDir.eachFileMatch(~/.+\.txt/) { file ->
def reader = file.newReader(inputEncoding)
def outputFile = new File(outputDir, file.name)
outputFile.withWriter(outputEncoding) { writer ->
writer << reader
}
}
Posted at 04:51PM Feb 09, 2010 by joerg in Allgemein | Kommentare[0]