NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

FriendsFeedMe!

Posted on June 29, 2007 - Filed Under Facebook, RubyOnRails | Leave a Comment

If you’re new here, you may want to subscribe to my RSS feed. You can also get updates by email Thanks for visiting!Last two weeks were very busy for me, and outlook for near future looks similar ;-) First, we have launched FriendsFeedMe which we call just FFM. It is application based on Facebook Platform [...]

Popularity: 2% [?]

Read More..>>

REXML and missing iconv

Posted on June 22, 2007 - Filed Under FreeBSD, Ruby, RubyOnRails | Leave a Comment

If You are parsing XML with Ruby, You probably have been using REXML to parse it. Well yesterday I was faced with error left by REXML:

/usr/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:90:in
`parse’: No decoder found for encoding ISO-8859-2. Please install iconv.>
(REXML::ParseException)

I was a bit surprised, since it was on FreeBSD box, which have installed iconv by default.
Solution is very simple [...]

Popularity: 4% [?]

Read More..>>

Empty nil

Posted on June 16, 2007 - Filed Under Ruby, RubyOnRails | 3 Comments

Recently I have started to add one extension to Rubys NilClass, when creating new Rails application. It is empty? method. For me is obvious that result nil.empty? should be true. Adding such method allow to write:

if some_var_which_can_be_nil.empty?
#code to handle nil/empty case
end

Instead of

if some_var_which_can_be_nil.nil? || some_var_which_can_be_nil.empty?
#code to handle nil/empty case
end

Using [...]

Popularity: 5% [?]

Read More..>>

Why I do hate IE - or just MS Script Debugger?

Posted on June 12, 2007 - Filed Under JavaScript | Leave a Comment

I have discovered some time ago that IE does treats Arrays and Hashes (JavaScript) a bit differently than Firefox when there is coma after last element. This is quite obvious ;-) and maybe IE is more standard compliant, but this is not the point.
Let’s take following JS code:

function loadSuggestions() {
new Ajax.Updater ( [...]

Popularity: 3% [?]

Read More..>>

Facebook API - developer impressions

Posted on June 12, 2007 - Filed Under Facebook, Other, RubyOnRails | Leave a Comment

During last two weeks You may have observed significant decline in new posts from NetManiac. Well, nothing happens without reason. With my friend from non-formal group of polish web developers and designers - Yashke I have started work on application, which uses Facebook API. Social network information is core feature for this application.
My impressions as [...]

Popularity: 5% [?]

Read More..>> keep looking »