While there have been attempts at porting Ruby to the Symbian (mobile devices) platform before, Symbian have now released an official build of Ruby for Symbian OS (S60 to be precise). This brings Ruby to a vast universe of cellphones. Symbian are providing the project with libraries for rendering, messaging, and persistence on their platforms. Read More
DSC, a London based technology consultancy, has today launched Working With Rails, the biggest index of Ruby on Rails developers seen on the Web so far. Quietly launched to a small group of developers several days ago, the site has now gone live for everyone to play with.
I caught up with DSC developer Martin Sadler to learn a little more about the site.
Ruby Inside: What was the motiviation behind developing WorkingWithRails for DSC?
Martin Sadler: At DSC we tend to use Ruby (on Rails) for the majority of our projects and so it seemed fitting that we contribute back in some way for all the benefits ROR has given us. Read More
Mauricio Fernandez continues to extend his Ruby God status with this excellent article about a search library he just developed using pure Ruby. It’s simple (mere hundreds of lines), fast (queries in the milliseconds), and practical (he’s already using it to index Ruby documentation).
Read about how it works and the techniques he used or just get straight to the source. Read More
In the same vein as Shane Vitarana’s YouTube library comes a Google Video API for Ruby developed by Walter Korman. The API uses Hpricot to do its dirty work and has a RubyForge project page and in-depth documentation. Read More
Sometimes strange things happen. I’ve been developing a small, basic recursive descent parser for Ruby called RDParse. Just before writing this post I decided to Google that name, and lo and behold the first result is a Ruby recursive descent parser called RDParse, created by Dennis Ranke, that I posted to Code Snippets for posterity several months ago. Since both of these libraries are unlikely to be used at once and that Dennis doesn’t seem to be maintaining his version, I’ve decided to stick with RDParse as the name of mine for now.
You can download my RDParse as rdparse.rb.txt, just rename it at your end if you want to use it. Read More
Softies on Rails is a popular Rails blog that looks at Ruby on Rails from the perspective of .NET developers. They’ve just announced that they’re holding a special one-day workshop where they cover how they went from .NET to Ruby on Rails for Web development and how other .NET developers can do the same.
It’s in Chicago, at the Hilton Garden Inn hotel, on Saturday, January 13, 2007, and costs $249 for a whopping 11.5 hours of discussion, presentations, lunch, beverages and snacks. Places are limited to just 20 seats so everyone can get the most value out of it, so if you want to get a “.NET to Ruby” perspective and you can get to Chicago in January, register now! Read More
Only a month ago Curt Hibbs was celebrating Ruby hitting #13 on the TIOBE Programming Community Index. Well, the November index has been released and it’s up another place to #12. As I said to someone the other day, Ruby’s a slow burner, but it’s persistently upward and slow and steady can win the race. Read More
(Disclaimer: I’m no Java wiz, so if I get anything wrong about Java or its libraries, post comments!)
The SWT (Standard Widget Toolkit) is a GUI widget toolkit for the Java platform. Unlike AWT and Swing, it uses the local operating system’s own controls. This means you can develop Java apps that ‘look native’ on multiple platforms. The popular Eclipse IDE uses SWT to work and looks graphically native on multiple platforms (as does Azureus). SWT is also, reputedly, faster than the other alternatives. Sounds great for developers, right? Java developers.. sure.
I decided SWT was too good an idea to not investigate, so I downloaded JRuby 0.9.1 (a Ruby interpreter written in Java and which provides access to Java classes from Ruby) and set to work. Read More
This year Ruby Inside will be presenting a Ruby Advent Calendar. The site’s already up but doors won’t appear until December 1st. So why am I posting about it already? Well, you can subscribe to the feed right now, so that as soon as December 1st hits, you’ll be ready to open the door, and then every day thereafter till Christmas.
Also, I want to see if anyone else wants to create some of the “days”. If you want to write / draw / make something that’s cool and Ruby related for one of the days, get in touch at rubyinside -/at/- bigbold.com. Read More
RailsForum.com has just announced the winners of their October Tutorial Contest. A lot of cool tutorials came out of the contest, so I wanted to link to them here.
1st place – HOWTO: Make a Rails Plugin From Scratch by Danger Stevens.
2nd place – Refactoring on Rails: Move to Model and Refactoring on Rails: Multiple Scopes in Controller by Ryan Bates.
3rd place – HOWTO: Send Instant Messages in Rails
Other entries
Image uploads and resizing for Rails models with mini-magick
XSS and when h() just ain’t enough
Creating Two Models in One Form
Editing Multiple Models in One Form
Test Helper: Clean, Custom Assertion Messages
Debugging on Rails: Reading Stack Traces
Introduction to Form Helpers
Programming Best Practices
Advice to Rails Beginners: Follow Conventions
Handy RJS Tips
Using Autotest with Rails on Windows XP machines
Creating Many Models in One Form
Creating a Variable Number of Models in One Form
Getting Started With RESTful Rails
Rails Migration For Beginners Read More
I’m creating a library that sorely needs a ‘debug mode’ where each step of what the library does is printed to the screen for developers to check out. I wanted the debug mode to be easy to set and for the debug messages to be as non-intrusive as possible. Initially I arranged it in such a fashion:
class MyLibrary
def initialize(options = {})
# Set @debug here if necessary
end
def debug_message(msg)
return false unless @debug
# Print debug message in certain way here
end
def do_something
# Do stuff here and in other methods
debug_message “Such and such message”
# Do more stuff
end
end
Each debug message was a simple method call to a routine that only printed the message if debug mode was activated. Read More
The guys over at ShowMeDo have been given permission to take the original Rails screencasts (originally in QuickTime format) and put them online in a Flash format that anyone can watch. It’s unlikely you’ve not seen the originals, but the new Web versions open them up to an even larger audience. Read More
Rather than spend $3049 on TextMate, the thrifty Dr. Nic Williams decided to try and port all of TextMate’s useful ‘snippets’ over to RadRails. He has succeeded.
This is great news for Linux and Windows based Ruby developers who want to get in on the macro-fun without switching to the Mac. 199 Ruby snippets and 48 HTML snippets have been ported across. Read More
I just had Paul Levy send me a link to this video. It’s a fast-paced 2 minute video about Ruby and Rails that takes a pretty surreal route. You probably won’t learn much from this but it’s never a bad thing to encourage a bit more artiness in programming ;-) Read More
In 2001 Hal Fulton released The Ruby Way, only the second English language Ruby book available. Since then Ruby has become popular in the West and with the help of Ruby on Rails has achieved significant critical success. With a significant number of enhancements and changes to the Ruby language and ecosystem of libraries and developers, Fulton decided a second edition was in order. That second edition of The Ruby Way, as published by Addison-Wesley, is now available.