How to create combinations and not die trying

When you are building your website is very important generate good keywords in order to get visits from search engines quickly. First of all, is very important to analyze your market and your possible competitors and see which keywords they are using. But even if you have the best study you can pay for at…

Dealing with dates in PHP

One of the main problems when you are making a website or any kind of IT system is dealing with dates. It is very common when you have systems written in multiple languages reaching a point where you have to stop, read the library for dealing dates in a certain language, and solve your problem…

Profiling your memory usage in Ruby

Hi, After spending some time investigating about options to profile code in Ruby and Ruby on Rails I have found my best option: def get_memory_usage `ps -o rss= -p #{Process.pid}`.to_i end before = get_memory_usage print “BEFORE: ” + before.to_s [your code to profile] after = get_memory_usage print “AFTER: ” + (after-before).to_s If we want to…

Velocity Conf Europe 2011

Past 8-9 November I went to the Velocity Conf Europe 2011. It was a great opportunity to learn new things, so I want to share some of my impressions during the conference. The conference was basically focused on talking about technologies and methodologies to make your website perform faster and to detect when is not…

Using binarySearch in Java

Today I bumped into a solution very interesting when I was thinking in the best way to solve a use-case to assing IP Addresses to country codes. One of the existing solutions in Java is to use MaxMind. My other initial approach was to use map-reduce to match my IPs with each country code, but…

Nitbcn.com launched!

    Author: Raimon Bosch I’m proud to announce the launching of a new website focused on events advertising in the city of Barcelona http://www.nitbcn.com. We are covering the most relevant parties and concerts in the city every day. I have been colaborating in the backend design of this site during the last 3 months…