I’ve some troubles with old openssl, distributed with new security patch to 10.6.4 Snow Leopard. So I’ve decided to change/replace openssl, both system-wide and installed one by macports. More
Category: programming
gource – visualize your repo! :)
Do you ever think about how to visualize your source code repository? Watch this :)
Custom UITableViewCell
I’m using my own UITableViewCells – instead of creating some in IBuilder, because then you have to load them each time from NIB file and it really slowdown your app. So, this is simple example how to do it – TableCell contains only two non-editable labels with text.
Rails 2.3.8
Rails 2.3.8 just released. Fixing some issues with previously (and fast) released 2.3.6 and 2.3.7 versions. Update your gems :)
$ gem update rails $ gem update --system
refs: http://weblog.rubyonrails.org/2010/5/25/ruby-on-rails-2-3-8-released
iPhone SDK4 Beta 4
Apple has released new version of iPhone OS4 SDK (SDK4) Beta 4…
Build: 10M2252
Download & Availability: iPhone Developer Program/Members only
How to get line number and file of your RoR code
# parse caller to fetch filename, method & line of call
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = Regexp.last_match[1]
line = Regexp.last_match[2].to_i
method = Regexp.last_match[3]
[file, line, method]
end
end
use as of
file, line, method = parse_caller(caller(1).first)
Mzdy a penize
Aplikace “Mzdy a penize” pro iPhone jiz v AppStore. Cena 0.79Euro

custom date/time formatting with i18n
in helper
def show_date(date) return '' if date.nil? || date==0 l(Time.at(date), :format => :ddate) end
in config/locale/en.yml (for example)
date: formats: ddate: %d.%m.%Y