RSS

Archive for the ‘Cool’ Category

Recently I got a task which involves moving, or let’s say copying, an entire Subversion repository with history to another server. Problem is, I didn’t have access to the server itself, which means I couldn’t do a regular “svnadmin dump”.

SVK comes to the rescue!

 Migrating Subversion repositories using SVK

To make it work, first of all you need to install SVK. In Ubuntu it goes like this:

sudo aptitude install svk

When you first run svk it’ll ask you to create a local depot, you can simply agree to its suggestion.

20 Mar 2008

Migrating Subversion repositories using SVK

Author: ceefour | Filed under: Cool, Opinions, Tips, Tools, Tutorials

morph logo Morph Application Platform Simplifies Ruby on Rails Development

Morph Labs is currently beta-testing their next-generation solution in application deployment, delivery, and management, the Morph Application Platform.

Acquiring hardware and configuring software to support web apps are things of the past. Morph Labs brings you the next-generation solution in application deployment, delivery, and management. Reduce your time to market and lower your startup costs no matter if you are an ISV, a developer or a business.

About Morph Labs

Morph Labs Inc. www.morphexchange.com is a Philippine-based Web 2.0 technology company focused on providing innovative technologies and applications to support Software as a Service (SaaS) globally.

Design Patterns in Ruby documents smart ways to resolve many problems that Ruby developers commonly encounter. Addison-Wesley Professional press has this exciting book, authored by Russ Olsen.

Russ Olsen has done a great job of selecting classic patterns and augmenting these with newer patterns that have special relevance for Ruby. Most design pattern books are based on C++ and Java. But Ruby is different—and the language’s unique qualities make design patterns easier to implement and use.

RM-Manage is a monitoring product for Rails applications. Their claim:

Building elegant and powerful Rails applications rapidly is important. Ensuring that they perform properly once deployed in production is even more important. A poorly performing or unavailable business-critical application can have a devastating impact on your bottom line, negating the benefits of Rails development.

Rails applications are more than just Rails itself. Databases like MySQL and Oracle, web servers such as Apache, and even the host operating system each affect performance and availability.

25 Jan 2008

RM-Manage: Monitor Your Rails Apps

Author: ceefour | Filed under: Cool, Enterprise, Rails, Tools, Web 2.0

Practical Reporting with Ruby and Rails is a great book for Ruby and Rails developers seeking to create compelling business intelligence and reporting solutions using a wide variety of applications and services. Published by Apress, and the author is David Berube.

Business intelligence and real-time reporting mechanisms play a major role in any of today’s forward-looking business plans. With many of these solutions being moved to the Web, the popular Rails framework and its underlying Ruby language are playing a major role alongside web services in building the reporting solutions of tomorrow.

As easy as:
has_timezone :fields => [ :start_datetime, :end_datetime]
Timezone_fu makes it really easy to deal with datetime fields in your models. It adds a method to your models, has_timezone.

The README for the plugin describes all of the options but below is an example:

class Event < ActiveRecord::Base
    has_timezone :fields => [ :start_datetime, :end_datetime]
end

The model has three fields a start_datetime and end_datetime and a timezone. Adding has_timezone to the model changes the behavior of the two datetime attributes.
Notice below that calling event.start_datetime shows the time in local time (”America/New York”).

21 Jan 2008

Sexy Time Zones in Ruby on Rails with Timezone_Fu

Author: ceefour | Filed under: Cool, Plugins, Rails, Ruby, Tips, Tools, Web 2.0

You know what, I really wanna learn this whole JavaEE-related thingy……

For some reason it’s unavoidable……. it’s bound to be touched by me……

 Ruby on Rails, Java EE, RIA, Adobe Flex, Comet, Messaging, EDA, SOA, …, ouch!!

You see, the trend is going RIA. MVC is going away. AJAX ain’t gonna compete. At least not fully. And will lose in many ways in respect to something like Adobe’s Flex. (Unfortunately there’s not much competitor better than Flex, and fortunately it’d probably be “standard” in the near future). Esp. with Flex going open source. Flex will need a backend, since it’s not a server-side product. There is Flex LiveCycle Data Services ES (what a name!!) by Adobe. There’s also BlazeDS open source. There’s also the excellent WebORB, which is free and open source for Rails and PHP. Oh yeah, it’s free for Rails! icon smile Ruby on Rails, Java EE, RIA, Adobe Flex, Comet, Messaging, EDA, SOA, …, ouch!!

The goal of Portable Ruby is to reduce those updates to a single place, your USB drive. About.com describes how to make this possible:

Installing Ruby

The easiest way to setup a Portable Ruby application is to start with an existing Ruby installation. I recommend the One-Click Installer. If you haven’t done so already, go ahead and install it.

The entire Ruby distribution is created in a single “ruby” directory structure. Additional changes include the creation of shortcuts for the start menu, which we will simulate in the PortableApp menu. The One-Click Installer also updates the Windows PATH environment variable to include the ruby\bin directory.

15 Jan 2008

Update Your Ruby Environment Using Portable Ruby

Author: ceefour | Filed under: Cool, Reviews, Ruby, Tips, Tools, Tutorials

The latest entry in Addison-Wesley’s Professional Ruby Series is The Rails Way, by Obie Fernandez, is a long awaited book billing itself as the “expert guide to building Ruby on Rails applications.”

More precisely, the book dives into nearly every area of the Rails libraries and APIs and acts as a reference work for them. Coming in at about 850 pages, the book is physically very similar to The Ruby Way by Hal Fulton. There’s no denying that these two books look good next to each other on the bookshelf, and a lot of comparison can be made between the two.

We’ve been doing a lot of scraping and mashups lately. So we’d love to share on how to do this. Fortunately Schadenfreude has written a good tutorial about using Mechanize and Hpricot to scrape Gmail.

The tutorial uses mechanize and hpricot to login to gmail and return a list of Unread emails.

Installation of required tools

gem install mechanize --include-dependencies

This will install both mechanize and hpricot.

Usage