Category: programming

How to change openssl version in OSX 10.6.4

Posted by – July 2, 2010

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

gource – visualize your repo! :)

Posted by – June 10, 2010

Do you ever think about how to visualize your source code repository? Watch this :)

More

Custom UITableViewCell

Posted by – June 6, 2010

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.

More

Rails 2.3.8

Posted by – May 25, 2010

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

NEON: get/post/put requests

Posted by – May 21, 2010

using neon (an HTTP and WebDAV client library, with a C interface)
see how to use GET / PUT / POST in some (not-so-perfect) examples

More

iPhone SDK4 Beta 4

Posted by – May 18, 2010

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

Posted by – May 18, 2010

    # 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

Posted by – April 10, 2010

Aplikace “Mzdy a penize” pro iPhone jiz v AppStore. Cena 0.79Euro

custom date/time formatting with i18n

Posted by – March 22, 2009

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