The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
RSmaz: Short String Compression Library
A few days ago I saw smaz, a C library by Salvatore Sanfilippo that’s great for compression short strings. RSmaz is my pure Ruby port of this library (complete with tests). If, for some reason, you want to compress short strings by 10-60%, check it out.
ShellElf runs shell commands from a Starling queue
ShellElf is a lightweight Ruby daemon that reads shell command batches out of a Starling queue and runs them, optionally posting back to an HTTP service on success/failure.
Install ruby 1.9 on dreamhost
An article on how to install ruby 1.9 on Dreamhost shared accounts.
Rubyxp.com - Test Ruby Regexes in Your Browser
I’ve created a simple app to test your ruby regular expressions in your web browser. I’d like to receive feedbacks and feature requests. I plan to release the code at some day :) You can see it at rubyxp.com.
Behavior Driven Development with Rails Workshop
Evolve your development processes by focusing on the behavior from the outside-in. Spend four days (June 2–5) learning Behavior Driven Development using RSpec and Cucumber in the context of a Ruby on Rails application. With ample one-on-one learning opportunities, you’ll gain hands-on experience with the tools and techniques that drive BDD.
RubyTrends.com updated
RubyTrends has been updated with OpenID support and customizable RSS feeds!
Heist, the Ruby Scheme runtime, releases version 0.2
Heist version 0.2.0 is out, adding proper support for list data and functions, complex and rational numbers, fixing a bunch of macro bugs and allowing Ruby array data to be executed as Scheme code.
Enumerable#filter
Inspired by every and Haskell’s filter command I came up with a very quick and dirty Ruby version which works like this:
ActiveRecord & SQL operators
ActiveRecord & SQL operators - Some of the conditional operators in mysql with active record
Blue Ruby: A Ruby VM in ABAP
Some researchers at SAP Labs, LLC are working to implement a Virtual Machine (VM) that runs Ruby inside the SAP NetWeaver Application Server ABAP. The project is named Blue Ruby. People have been using Ruby and also Rails with SAP products before. However according to the developers, “Blue Ruby research project is about creating an enterprise-ready dynamic language environment for the programming language Ruby that runs inside the ABAP Virtual Machine”. Read more in the PDF about Blue Ruby. Although it may not be that appealing to people outside the SAP realm, it’s always good to see Ruby running on yet another platform. The world domination plan is progressing as usual.
BrowserCMS 3.0 Beta
The beta release of our new open source Ruby on Rails CMS, BrowserCMS 3.0 (Beta) is now available at GitHub. Watch the introduction given at acts_as_conference if you want a more in-depth view of the philosophy behind BrowserCMS.
Phusion Passenger 2.1.3 released
With various bug fixes. Please read the announcement.
May 14th - Eindhoven: RubyFest!
RubyFest will be organising it’s first meetup on may 14th in Eindhoven. Everyone is very welcome!
Code coverage: the new "lines of code" metric?
Is rcov providing the new lines of code metric of the day?
Generate and deploy a restful_auth or twitter_auth rails app with one command line
Closing in on The Dream: “one-click-to-deploy Rails apps” introduces the latest and greatest in rails 2.3 templates: a template that not only creates a Rails app with various plugins and gems, but let’s you choose what sort of authentication, WHERE you want the application to be hosted on slicehost, PUSHES your local git repo up to a generated github project, AUTOMATICALLY registers your app with twitter if you use twitter-auth, and then deploys it to your slice under the initial domain http://my-app.yourdomain.com. [more inside]
2009 Rubyist's guide to a Mac OS X development environment
My hard drive kicked the bucket. I kept notes as I got a fresh machine back up to top-notch standards for Rails development. I preferred simplicity and ease (e.g. installers) when possible. Read up at Giant Robots Smashing Into Other Giant Robots!
10 Cool Things in Rails 2.3
I’ve posted a list with examples of 10 new features that I like in Rails 2.3. Some of these are big new features, while others are just minor things that fix annoyances I’ve had in the past. There’s also a sample app you can download to check out the features. This is for my talk tonight at the Ruby Users of Minnesota.
Advanced Ruby on Rails Training
Spend four days advancing your Ruby on Rails skills with a team of experienced instructors. This survey of Advanced Rails topics will give you new tricks and ideas to take your Rails apps to the next level. If you’ve been using Rails but don’t feel like you’ve mastered it yet, this course is for you. Brought to you by Idea Foundry. Visit the website for details.
Bdoc: A Better Gem Doc Browser
Bdoc (DEMO) is a simple alternative to gem server. It allows you to browse your local gem docs without running a server. The UI is clean, simple, and allows you to cross navigate between gems. 1) Install: [sudo] gem install manalang-bdoc, 2) Usage: terminal> bdoc. Fork me @ GitHub
Scriptlandia-r: running dynamic languages for Java VM from Ruby in command line
Scriptlandia-r can help you to run script written for Java VM: $sl hello.groovy $sl hello.ant $sl hello.scala $sl hello.clojure etc. See details on github.
Generate better passwords with haddock
haddock generates more memorable passwords, similar to those generated by Apple’s Password Assistant. The gem is hosted on GitHub (and should be available from RubyForge in the near future). Random cryptographic digests just aren’t very user-friendly.
Help me with a collaborative, themed Ruby blog effort
I am looking for five or six people to join me in putting together a blog at rubybestpractices.com. Check out the details if you are interested.
Why MacRuby Matters (Present & Future)
The new MacRuby experimental branch is very promising.
Your tests should be toddlers
My take on writing meaningful tests: your tests should act_as_toddlers.