C2 Wiki discusses how nil.to_s.empty? is available in rails and nil.blank? is provided for Ruby On Rails,
Ruby
[source:ruby]
nil.to_s.empty?
>> true
[/source]
Rails
[source:ruby]
nil.blank?
>> true
[/source]
Java
[source:Java]
String s = null;
return s == null;
>> true
[/source]
Let’s say we want to check that s is non-blank string. The danger is that s could be null. We will use random to seed s (Or just think of [...]
IntensCITY week, the celebration of Wellington’s urban spaces, is just about to kick off. A key part of the week is the INSite exhibition, which consists of eight shipping containers distributed around the city as artists’ spaces and installations. Here’s a ZoomIn group to show their locations (or you can go directly to the group [...]
We’ve just been notified that ZoomIn has been nominated in the Open source in Business category and Summer of Code has been nominated in the Open source in Education. Woo Hoo ! Thanks to the NZ Open Source Association
Thanks for the recognition for ZoomIn and Summer of Code. We’re not resting with what’ve got. [...]
Hot off the heels of Ponoko being at the techcrunch 40 , PlanHQ have just been techcrunched.
Congrats to Dave, Tim and the teams at Ponoko and PlanHQ
Silicon Welly represent !
We’ve been busy working on Summer of Code 2.0. In the past couple months, we’ve been planning, recruiting, presenting, testing and marking . Phew ! Lot’s of cool stuff in the pipeline. Plenty of awesome seminars in the works. Stay tuned for more announcements.
We have a few events this week. John and Peter will at [...]