# Favourite excuse

New word of the day: My code did not fail! I just found another method that will not solve this problem …

# Project Euler – problem 3 in Ruby

This is part three of our mathematical soultions-series in Project Euler: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? Now we can have a short and a detailed version to solve this problem. The short one is nearly a joke with […]

# Project Euler – problem 2 in Ruby

Hi folks, this is part two of our soultions-series for the mathematical problems in Project Euler. Project Euler – problem number two: “Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, […]

# Project Euler – mathematical problem 1

I recently heared about “Project Euler” from a friend. For all of those who have not heared about this project: “Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve.” The first mathematical problem to solve was: If we list all the natural numbers below […]

# Chip Online – Ruby on Rails book review

Happy new 2013! Because the world didn’t end in 2012 (you know, Maya calendar and conspiracy …) I had a bit time in my holidays over Xmas and wrote an article at http://blog.chip.de/itrezensionen. For those who never heard about this site: You can find there tons of reviews for IT books. Whenever you want to […]

# Rails input size is 30 chars

Just a quick fix, but leads often to confusion … Let’s say we have a form 1<%= form_for link , url:link_path(link) , remote:true do |f| -%> now we want to insert an input field like 1<%= f.text_field :email, placeholder:’Email’, :title => ‘email’ %> this will will give you a HTML like this 1<input type="text" title="email" […]

# Postgresql and TCP/IP connections on port 5432

When working with Postgresql, I got the error 1234PG::Error could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? This can happen, if you didn’t configure your server specifically. To see if your Postgresql is accepting requests, simply run […]

# Ruby on Rails mobile view

Finally I had enough time at the weekend to care about my blog and the mobile views. My blog now detects devices like iPhones, iPads, Android & and more, serving its optimized theme instead of my regular desktop theme. You can always switch back to standard/desktop theme if you wish (the button is in the […]

# Ruby on Rails performance issues

TweetI was thinking several times about this message and discussed it with some friends: http://engineering.twitter.com/2011/04/twitter-search-is-now-3x-faster_1656.html Twitter started to rewrite their search engine using Lucene instead of MySQL and replaced the Ruby-on-Rails front-end by a Java server, which is supposedly to be faster … ?!? As you can read in the article: “Over time, we had […]