Approximity blog home
20 of 38 articles InfoSyndicate: full/short

Active RBAC   28 Feb 06
[print link all ]
ActiveRBAC is a library for Ruby On Rails that provides a full stack for managing users and permissions. It runs as a Rails Engine and can be set up within minutes for your existing Rails projects.

Timesummer - a simple RoR timesheet   24 Feb 06
[print link all ]
Timesummer is a simple timekeeping application. It was written to make our life as a single remote cowboy programmer easier. The client did not only want working code, but also reports how time was spent. As keeping an excel list or a simple text-file is too much work, we wrote this tiny application.

Getting started:

  • Get a free account.
  • You book your time on accounts. So setup tasks (accounts)

The general structure is client.project.task. The client might be IBM, the project might be XRT and the task might be design. Then you can add t asks like IBM.XRT.testing, which would mean a testing task.

This client.project.task structure has the advantage that it makes it easier to run more complex reports on the data. How much data we do for client X? How much did we do on project Y?

Here we create the client BMW with project RoR and task design. If the client already exists, only the project and the task are created. If the client and the project exist, only the task gets created.

You can add tasks only to existing client.project.task combinations, but by entering IBM.XRT.testing, you automatically create the client IBM, the project XRT and the task testing if they did not exist before.

Starting/Stopping task

Enough! Some people got work todo! OK, it’s as simple as a cd-player. Press the start and stop button.

Task not running

Task running

This client.project.task structure has the advantage that it makes it easier to run more complex reports on the data. How much data we do for client X? How much did we do on project Y?

Enjoy timesummer, and please use the forms on the site to send us feedback.

Prototype cheatsheet   20 Feb 06
[print link all ]
Jonathan Snook has posted some nice cheat sheets/desktop backgrounds on Prototype 1.5.0_pre0.

ANN Switchtower 1.0   19 Feb 06
[print link all ]
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles.

Manual: manuals.rubyonrails.org/read/book/17

Project: rubyforge.org/projects/switchtower

Download: rubyforge.org/frs/?group_id=1014

Install: gem install switchtower

SwitchTower 1.0 fixes several bugs and adds many new features.

Using Selenium to test asynchronous calls   19 Feb 06
[print link all ]
Great read
 >Luckily, Selenium has a feature that is horribly documented: waitForValue,
 >which you can use in the test case directly, and waitForCondition,
 >callable in a JavaScript-based extension. Using a combination of these,
 >you can make your Ajax call and wait for any condition that should happen,
 >such as the DOM changing or values updating.

RoR workshop, Muenchen, April 12-14   17 Feb 06
[print link all ]
DE: Erfahrene Webentwickler erklaeren Ihnen in drei Tagen alles ueber Ruby on Rails. Bringen Sie einen Laptop mit und sammeln Sie unter Anleitung sofort Erfolgserlebnisse. Registriert schnell, denn wir haben nur 20 Plaetze bei 5 Trainern.

EN: In 3 intensive days, experienced web developers will teach you everything you need to know about Ruby On Rails. Bring your laptop along, and with guidance you will quickly enjoy the experience of super-productive web application development. Only 20 places are available, so book early to avoid disappointment.

Ruby on Rails Cheat Sheet   16 Feb 06
[print link all ]
Useful.

Debugging RJS   16 Feb 06
[print link all ]
I really love RJS, but sometimes it is great to see the generated Javascript. This blog entry by Lukemedia helps.

Multilingual applications with RoR   12 Feb 06
[print link all ]
Globalize is a Ruby on Rails plugin designed to support multilingual applications. It’s under the MIT License, same as Ruby on Rails.

Globalize implements three basic types of translation:

  • Dates, currencies, etc: language dependant, but also (often) country/locale dependant. This feature provides convenient methods for relevant data types.
  • Content in the database, for specific fields in specific tables: once the translates method is added to the relevant model, the fields indicated with that method call gain the ability to have translated content sitting in the database. An operator (possibly the developer) will need to add these translated texts.
  • Arbitrary strings: any string that you would like, with added flexiblity for including parameters (for example: one in the singular form of a phrase and an actual number for the plural form)

Using these three mechanisms, all user-facing content ought to be translatable.

RJS Templates   09 Feb 06
[print link all ]
It turns out that RJS templates are a new form of template, called JavascriptGeneratorTemplates, and end with a .rjs file extension.

Nice intro.

Note: Make sure you work with the latest rails version

 rake freeze_edge

Rails Migration cheat sheet   06 Feb 06
[print link all ]
Useful cheat sheet[ garrettsnider.backpackit.com/pub/367902]. Using migration allows less independence on the DB used. Yes, my friends and I can’t agree on which DB to use.

DE: Podcast: Rapid WebDevelopment mit RoR   06 Feb 06
[print link all ]
Nach langerer Sendepause geht’s weiter: Heute mit Thomas Baustert und Ralf Wirdemann uber Ruby on Rails und ihr Buch Rapid Web Development mit Ruby on Rails.

Download des Podcasts wie immer unter: www.frankwestphal.de/Tonabnehmer.html

Viel Spas!

Frank

Making dependent select boxes   03 Feb 06
[print link all ]
Adam Hegedus has a nice blogentry explaining how to make ajax select boxes.

Ajax patterns   22 Dec 05
[print link all ]
.. and of course there is a ajax patterns website :-)

Why is rails so successful?   20 Dec 05
[print link all ]
Interesting blog-entry by Ryan Ripley.

Rails is such a success as it has a strong story, good timing, wentviral, and is authentic.

Marrying Ferret and Rails   09 Dec 05
[print link all ]
Great wiki summary based on a rails mailing by Kaspar Weibel. It works on multiple Active Records.

Rails Cheat Sheet   09 Dec 05
[print link all ]
I found this cheat sheet. Unfortunately I do not know who the author is, but thanks to the anonymous author anyhow.

Google Maps in Rails   03 Dec 05
[print link all ]
Great post.

Cartographer is a ruby library for Google Maps API.

enjoy!

[ANN] Action Profiler 1.0.0   30 Nov 05
[print link all ]
Eric Hodel posted the announcement to the rails-ML.

Rubyforge

Action Profiler allows you to profile a single Rails action to determine what to optimize. You can use the Production Log Analyzer and action_grep to determine which actions you should profile and what arguments to use.

Information on the Production Log Analyzer can be found at:

rails-analyzer.rubyforge.org/pl_analyze

Action Profiler REQUIRES Ruby 1.8.3, even if you just use Ruby’s builtin profiler.

Action Profiler can use three profilers, Ruby’s builtin profiler class, Shugo Maeda’s Prof or Ryan Davis’ ZenProfile.

Shugo Maeda’s Prof: raa.ruby-lang.org/project/ruby-prof

Ryan Davis’ ZenProfile: rubyforge.org/frs/?group_id=712&release_id=2476

Gem Installation

 gem install action_profiler

Adfinem RiskJobs   25 Nov 05
[print link all ]
We release Version 1 of the rails/Ajax app: RiskJobs. It’s written completely in rails. The user profiles get updated using Ajax.

RiskJobs is a German Headhunting website for the Risk Management domain. Applicants can fill out their profiles (tree structures) and companies can search: e.g. we need an operational risk expert with 3 years of experience that also knows X, Y and Z.

This adds one more app, the ever growing RealWorldUsage wiki page.

 

Powered by Rublog