jablan.radioni.ca

Mladen Jablanović, seasoned software developer from Belgrade, Serbia.

September 6, 2010 at 1:28am

0 notes

Jel gledao neko novi Karate Kid, razmišljam da posle par godina posetim bioskop? :) Ozbiljno pitam.

September 5, 2010 at 2:35am

0 notes

Comment by Mladen Jablanović on Ruby print out a float with optional digits →

Why should the first indicate “five give or minus a half”? Lack of decimal digits doesn’t have to imply rounding of any kind.

2:35am

0 notes

Comment by Mladen Jablanović on Does anyone have experience with Ruby in Steel? →

I completely understand the attachment to VS (I simply can’t imagine writing C# without it), but, believe me, you don’t need it for Ruby. IMHO, the most valuable tool in Ruby is irb.

September 2, 2010 at 3:50pm

0 notes

Šta fali novim #limundo pravilima, osim što destimuliše one kojima ne odgovara aukcija kao način prodaje?

6:37am

0 notes

Answer by Mladen Jablanović for Comparing the order of three arrays with the same elements →

In general, if you have array arr of N such arrays, you can just check if there are any duplicates there:

arr.length == arr.uniq.length

because, for example:

...

September 1, 2010 at 10:39pm

0 notes

RT @markoa: Cvetanje Tise - Radi se o tome da jedan insekt, izvesni Palingenia Longicauda, provodiu mulju reke kao larva… http://tumbl …

August 21, 2010 at 6:26am

Notes

Comment by Mladen Jablanović on statistics from models created →

I think OP wants number of clicks per each day in the range. Also, performing find and then size is sub-optimal, as all the data needs to be transferred to the application and counted there,…

6:26am

0 notes

Answer by Mladen Jablanović for statistics from models created →

date_from = Date.parse '2010-06-01'
date_to = Date.parse '2010-07-01'
click_counts = (date_from..date_to).map{|date| [date, Click.count(:conditions => {:date_stamp => date})]
}

will return an…

12:22am

0 notes

Wired says the Web is dead: http://bit.ly/bknmCP Am I a necrophile then?

12:22am

Notes

Moj tim prima novog člana, javite se: http://www.elitesecurity.org/t407580-Analytics-Developer-Vast-com pls RT