We are using MongoDB as primary DB at VersionEye, together with MongoID. Software package is a document in the “products” collection. These products collections has a subcollection with “versions”. Assume we want to know how many versions/artifacts existed for a given language to a given time? That is not a simple query in MongoDB. ThisContinue reading “MongoDB Map & Reduce with Date filter”
Tag Archives: Ruby
Create a new App with Rails
To create a new Web App with rails just type in: rails new <project-name> For example: rails new blog
Installing Web Framework Rails
Rails is the most popular Web Framework for Ruby. You can install it via GEMs. sudo gem1.9 install rails
GEM
GEM is a pretty cool packaging system for Ruby apps. Take a look to http://rubygems.org. Usually it is installed together with ruby. You can update your gems with this command: sudo gem1.9 update –system Here is the user guid: http://docs.rubygems.org/read/book/1
Installing Ruby on Mac OS X
On Mac OS X Ruby 1.8.X is already pre-installed. But if you want to have the newest version 1.9.X you have to install it again. I assume that you installed already XCode and MacPorts on your machine. Than you have update your MacPorts sudo port selfupdate All right. Now you can install the newest version.Continue reading “Installing Ruby on Mac OS X”
First Steps with Ruby
I am a Java guy. I have nearly 10 years experience with Java. I have build high scale able Web Apps with Java, Spring, Struts, JSF, Hibernate, JDBC, Ant, Maven2, JUnit and some other crazy Frameworks. Now I want to try out something new. I am playing around with Ruby, Rails, Gem, Rake and allContinue reading “First Steps with Ruby”