Jul 06 2007

RubyAMF 1.0 Released – Now with Rails Remoting

Tag: AMF, Rails, Remoting, RubyAMFDerek Wischusen @ 3:49 am

Aaron Smith just released version 1.0 of RubyAMF – An open-source (MIT) remoting application for Ruby and Rails. This version is stable and it has really nice remoting implementation for Rails that makes it possible to use AMF right inside your controllers (i.e., no need for service classes). You can read all about it here. Aaron has also posted a great screencast tutorial on getting started with RubyAMF on Rails.

Keep up the good work Aaron!


Apr 29 2007

Extending Apollo with Ruby using RubyAMF

Tag: Apollo, Flex, Ruby, RubyAMFDerek Wischusen @ 3:08 am

At the end of my last post about RubyAMF I mentioned that I was particularly interested in how it could be used to extend Apollo applications using Ruby in the same way that Artemis makes it possible to extend Apollo with Java.

Here’s why:

  • It enables AMF3 communication between Flex and Ruby.
  • It comes with its own webrick servlet, so deploying RubyAMF is dead simple (if you have Ruby installed).
  • It’s small: less than 300k. So it’s a quick download.

Here’s an example:

I put together a very simple demo app that uses RubyAMF to extend Apollo. I am calling the app Clairify (because everything needs a name). Clairify allows you to take a screenshot of whatever is underneath it, mark it up with some simple drawing tools and text boxes, and then save it to disk. The concept behind Clairify is that you could use it to quickly provide feedback on an application’s UI.

It would take several steps and downloads for many people to run the app, so I’ve put together a short video.

Here is a quick overview of what is going on in the video:

  1. I launch Clairify.
  2. When Clairify launches all you see are the controls. The rest of the app is transparent.
  3. I then bring up the interface that I want to capture (the login screen of my simple issue tracker).
  4. I click the capture button. This calls code in Ruby (see below) that captures the screen and saves the image to a PNG that Apollo loads.
  5. I add some comments to screen.
  6. I click save, which uses Apollo’s File API to save the marked up image to my desktop as PNG.
  7. I open up the PNG in Fireworks.

Click here to view the video.

If you want to take a look at the Apollo source code, click here. (If you really want to know how to run this on your own machine let me know and I will put together some instructions).

And, here is the Ruby code:

require 'win32screenshot'
require 'RMagick'
include Magick

class CaptureService
  def screenCapture
    width, height, bitmap = Win32::Screenshot.desktop
    img_lst = ImageList.new
    img_lst.from_blob(bitmap)
    img_lst.write('public/screen.png')
    true
  end
end

Credits:
Clairify is based on the ScreenPlay app that is avalable on Adobe Labs.


Apr 29 2007

RubyAMF – an open source AMF gateway for Flex/Flash remoting with Ruby

Tag: Flex, Rails, RubyAMF, weborbDerek Wischusen @ 3:08 am

RubyAMF is an open source Ruby application being developed by Aaron Smith that enables AMF0/3 communication between Flex/Flash and Ruby.

So, you might be asking yourself, how is this different from WebORB for Rails? Well, the main difference is in how the apps are architected. WebORB for Rails is built as Rails plugin. This makes it really easy to use WebORB for Rails with your Ruby on Rails applications. However, this means you need to use Rails if you want to use WebORB for Rails, even if you want to use it for an application that does require any Rails specific code.

RubyAMF, on the other hand, is designed to be integrated directly with a server and, as such, does not require Rails. It even comes with its own webrick servlet, which means that all you have to do to start RubyAMF is download it, point a command line to the root folder, and enter ruby server/start. This makes it dead simple to use RubyAMF to integrate Flex/Flash with a Ruby application. However, if you want to use RubyAMF with Rails then you are going to have to do a little extra work.

So, for right now my simple heuristic is that if you want to use AMF remoting with Rails, then use WebORB for Rails. If you want AMF remoting with just Ruby, then use RubyAMF. (I suppose the names make that kind of obvious).

That said, I think it would be relatively trivial to rearchitect either app to be like the other, but I think it is good that they are different. Choice is, generally, a good thing.

Right now the thing that has me most excited about RubyAMF is how it could potentially be used to extend Apollo using Ruby in much the same way that Artemis does using Java. More on this in my next post….


Xanax online without prescription
Viagra ordering
Generic cialis from india
Where to buy levitra online
Order tramadol online no prescription
Phentermine purchase online
Viagra free samples
Where to buy phentermine without a prescription
Phentermine 37.5mg without prescription
Generic phentermine 37.5 without prescription
Cialis for sale in canada
Buy phentermine without a prescription
Generic valium
Valium buy no prescription
Levitra cheapest price
Viagra 50 mg price
Xanax no prescription needed
Cheap phentermine without a prescription
Cheap viagra uk
Viagra prescription free
Tramadol pharmacy online
Generic viagra reviews
Buy viagra online in south africa
Phentermine diet pills
Xanax overnight delivery
Viagra discount coupons
Cialis purchase online
Levitra cheap
Cheap levitra uk
Australia viagra prescription
Generic levitra from india
Propecia without a prescription
Cheap valium online
Viagra pfizer price
Valium buy online uk
Xanax 2mg bars
Brand cialis without prescription
Tramadol without a prescription
Order levitra without prescription
Cialis canadian pharmacy
Viagra online overnight
Buy generic valium online
Cheapest generic viagra online
Where can i buy valium in the uk
Phentermine pills
Online viagra cheap
Cialis medicine
Viagra purchase uk
Canadian pharmacy phentermine
Buy propecia uk
Non prescription levitra
Generic cialis tadalafil
Tramadol no prescription next day
Valium purchase
No prescription valium
Prednisone online without prescription
Order xanax online uk
Cialis professional online
Viagra discount prices
How to buy viagra in australia
Where to buy phentermine
Buy cialis online from canada
50 mg tramadol
Cheap tramadol without a prescription
Cialis 5mg tablets
Viagra pfizer canada
Valium prescription uk
10 mg valium effects
Prednisone cheap
Mail order phentermine
Buy cialis in australia
Where can i buy phentermine 37.5 mg
Valium pills effects
Buy prednisone no prescription
Tramadol hcl 50 mg tab mylan
Best generic cialis
Order cialis online without prescription
Where can i buy generic viagra
Viagra online with prescription
Best generic viagra prices
Cialis 100mg pills
Viagra mastercard
Buying prednisone
Best viagra websites
Purchase phentermine online
Low price cialis
Prednisone online pharmacy
Overnight delivery of phentermine
Medication phentermine
Cialis 100
Cialis low cost
Levitra online pharmacy
Ordering phentermine online
Propecia without prescription uk
Viagra suppliers

Buy discount viagra online
About phentermine
Viagra overnight delivery us
Purchase valium without prescription
Generic viagra for sale
Where can i buy phentermine online
How to buy viagra in uk
Generic viagra in the uk
Phentermine usa
Phentermine hcl without prescription
Cheap viagra and cialis
Buy viagra online from canada
Order viagra online canada
Viagra cheap prices
Buy valium uk
Buy valium in uk
Get tramadol online
Levitra medicine
Cialis generic online
Valium online reviews
Buying tramadol in australia
How to buy phentermine without a prescription
50 mg tramadol hcl
Prednisone online
Cialis brand
Online prescriptions for phentermine
Buy cheap tramadol without prescription
Valium without prescription australia
Female viagra uk
Order propecia online no prescription
Cheap viagra pills
Prednisone pharmacy
Canadian pharmacy phentermine 37.5
Generic cialis online pharmacy
Xanax 1mg dosage
Doses of tramadol
Cheap viagra canada
Cheapest place to buy viagra online
Best price on cialis
About phentermine 37.5 mg
Generic viagra professional
About xanax pills
Levitra uk
Order xanax cheap
Phentermine tablets 37.5
Buy real viagra
Fast delivery cialis
Levitra generic online
Buy viagra las vegas
Generic valium 5mg
Buy discount cialis
Get phentermine without a prescription
Cheapest place to buy phentermine
Buy tramadol online canada
Cheap generic xanax
Generic viagra overnight shipping
Antidepressant tramadol
Propecia generic online
How to buy viagra online without prescription
Tramadol 50mg tablets
Order valium without a prescription
Cheapest viagra professional
Prescription for cialis
Phentermine 37.5mg tablets
Generic cialis prices
Best place to buy xanax
Low price phentermine
Propecia online
Buy generic viagra india
Best generic viagra review
Xanax no prescription required
Viagra online generic
Order cialis online
Overnight xanax without prescription
Valium no prescription uk
Valium online
Best place to buy viagra uk
Levitra 20 mg price
Canadian pharmacy viagra online
Xanax cost
Cialis no rx
20 mg valium effects
Best viagra generic
Buy xanax bars no prescription
Valium without rx
Phentermine no prescription needed
Phentermine us pharmacy
Best way to take cialis
Buy phentermine online without prescription
Cialis london
Free viagra samples without prescription
Phentermine no rx
Buy cheap propecia
Buy xanax cod
Genuine viagra prices
Cialis 20 mg tablets
Phentermine hcl 37.5mg
About xanax bars
Online viagra prescriptions
Tramadol cod fedex
Cialis pricing
Viagra online pharmacy canada
Buying xanax without a prescription
Cheap viagra cialis
Cost of cialis 20 mg
Purchase xanax online without prescription
Viagra usa
Viagra for sale usa
Free viagra samples uk
Buy phentermine no prescription
Where can i buy levitra
Buy phentermine hcl without prescription
Viagra trial pack
Buy viagra professional
Cialis pills
Phentermine 37.5 without prescription fedex
Doses of prednisone
How to buy viagra over the counter
Online cialis reviews
Side effects of viagra
Cialis prescription online
Where to buy valium
Cheapest price viagra
Phentermine 37.5 without prescription free shipping
Buy phentermine in uk
Order valium cheap
Cheap viagra in india
Medication prednisone
Buy genuine phentermine online
Buy phentermine with mastercard
Tramadol overnight fedex
Viagra overnight shipping
Genuine cialis no prescription
50 mg viagra online
Cialis free sample
Best price for phentermine
Viagra fast shipping
Order phentermine cheap
Free viagra samples
Buying cialis online
Cialis generic 5mg
Order propecia without prescription
Viagra india
Pharmacy valium
Buy viagra generic
Buying generic viagra
Levitra lowest price
Xanax fedex
Cheap viagra generic
Cialis online canada
Canada cialis online
Xanax generic 2mg
Generic tramadol medication
Buy 30mg phentermine