Jun 19 2007

Lightweight server push with Rails and AIR

Tag: AIR, Apollo, Flex, RailsDerek Wischusen @ 2:30 am

Alex MacCaw has posted a really nice example of how his Juggernaut plugin for server-side push can be used with Adobe’s AIR (formerly Apollo) runtime to create a simple chat application.


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.


Phentermine 37.5 online prescription
Best viagra online
Buy viagra online uk
Order viagra overnight
Cheap online tramadol
Buy cialis generic
Order viagra online no prescription
Generic viagra professional
Cialis uk supplier
Cialis overnight shipping
Buy viagra online australia
Where to buy phentermine online
Valium online no prescription
Order phentermine without a prescription
Viagra cost in canada
Buy cheap viagra pills
Viagra soft tablets
Cheap levitra
Where to buy propecia in canada
Phentermine without a prescription
Cialis to buy
Cialis buy uk
Order levitra online
Cheap tramadol online overnight delivery
Cheap propecia uk
Viagra in usa
Cheap phentermine 37.5 without prescription
Viagra sale uk
Cialis cost
50 mg viagra
Order xanax online without prescription
Viagra discount prices
Cialis soft tablets
Canadian viagra prices
Overnight delivery viagra
Overnight viagra delivery
Canada pharmacy phentermine
Brand viagra for sale
Buy cheap tramadol online without prescription
Viagra in canada without prescription
Order xanax without prescription
Buy tramadol without a prescription
Buy prednisone dose pack
Cialis without prescription overnight
Cialis uk online
Discount phentermine
Buy viagra online cheap
Viagra prescriptions
Where to buy phentermine 37.5 without a prescription
10mg valium
Cialis information
Cialis professional generic
Phentermine in the uk
Ordering phentermine online
Phentermine online pharmacy
Cheap generic xanax
Buy cheapest viagra online
Buying viagra
Buy xanax online without a prescription
Propecia cheapest price
Tramadol generic
Price propecia
Best place to buy xanax
Purchase cialis
Viagra prescription cost
Buy viagra london
Generic phentermine 37.5 without prescription
Cialis
Phentermine 37.5mg diet pills
Cheap generic viagra
Tramadol 200mg
Propecia dosages
Viagra buy cheap
20 mg valium
Phentermine hcl 37.5 no prescription
Xanax drug dosage
Cialis 10
Buying cheap viagra
Xanax canadian pharmacy
Dosage of prednisone
Viagra 100mg effects
Buying valium uk
Where to buy xanax bars
Cialis prescription canada
Uk viagra over the counter
Cialis 20mg tablets
Propecia buy canada
About phentermine 37.5
Price of viagra tablets in india
Online prescription phentermine
Buy viagra uk without prescription
Order cialis from canada
Best price phentermine
Generic cialis professional
Viagra online without prescription free shipping
Where can i buy tramadol
Canada phentermine 37.5
Buy brand name cialis
Viagra dosage information
Viagra for sale
Phentermine 37.5 capsules
Prescription xanax
Generic cialis no prescription
Buy viagra in canada online
2mg xanax
Online xanax no prescription
Generic cialis information
Cialis for sale online
Buy valium with no prescription
Buy valium roche online
Generic viagra for sale
Free samples of viagra
Buy tramadol online canada
Discount phentermine 37.5 without prescription
Xanax overnight delivery
Cialis online overnight
Propecia prices uk
Prednisone side effects
Phentermine 37.5 results
Order cheap phentermine
Cod tramadol overnight
Buy cialis brand
Cheap cialis prices
Canada pharmacy viagra
Viagra discount coupons
Viagra online sales
Phentermine 37.5 diet pills
Viagra online cheap
Online prescriptions xanax
Where to buy levitra
Price of phentermine
Tramadol hcl 50mg side effects
Viagra without rx
Canada viagra prescription
Canadian cialis online
Levitra canadian pharmacy
Buy female viagra without prescription
Buy roche valium uk
Where can i buy phentermine online without a prescription
Prednisone 10 mg
Buy viagra uk
Dosage of valium
50mg cialis
Buy levitra online without prescription
Order phentermine online without a prescription
Get tramadol online
Where to buy xanax
Xanax with no prescription
Overnight tramadol no prescription
Cheap generic valium
Phentermine 37.5 pills
Buy viagra with no prescription

Viagra cost canada
Phentermine 37.5 reviews
Cheap cialis viagra
Buy phentermine direct pharmacy cheap
Buy cheap tramadol without prescription
Discount xanax no prescription
Viagra usa online
Buy tramadol hcl
Discount generic viagra
Cialis medicine
Buy prednisone
Brand levitra
Tramadol online no prescription
Canadian pharmacy for cialis
Generic viagra cheap
Phentermine rx
Buy viagra without prescription online
Buy tramadol hydrochloride
Tramadol no prescription next day
Buying levitra without prescription
Viagra prices
Phentermine 37.5 lowest price
Prednisone dosages
Buy viagra pills
No prescription phentermine
Generic viagra uk
Fast shipping viagra
Cialis pricing
Buy cheap valium online
Discount tramadol
Buy brand viagra online
Where can i buy viagra without prescription
Prescription phentermine 37.5 mg
Valium 20mg
Get viagra prescription online
Cialis 10mg tablets
10 mg valium effects
Order generic cialis
Best prices for viagra
Tramadol no prescription overnight
Genuine pfizer viagra
Cialis buy online
Brand cialis 100mg
Viagra discounts
Xanax prescription prices
Valium in uk
Cialis online pharmacy canada
Brand name viagra online without prescription
Tramadol rx online
Cheap levitra pills
Generic cialis from canada
Buying phentermine without a prescription
50 mg viagra online
37.5mg phentermine
Cheap xanax no prescription
Viagra doses
Levitra lowest price
Buy cheap generic viagra online
Cheap viagra from india
Viagra 50mg side effects
Valium for sale uk
Buy phentermine diet pills online
Prescription cialis online
Female viagra uk
Buy cheap viagra
Viagra in the philippines
Propecia by mail
Where can i buy viagra cheap
Order generic viagra
Drug valium
Buying cialis without a prescription
Phentermine no prescription
Buy phentermine adipex
Buy propecia without a prescription
Get viagra without a prescription
Buy valium no prescription
Buy viagra online safely
Phentermine online without a prescription
Online xanax pharmacy
Cialis generic 5mg
Propecia online prescription
Where can i buy generic viagra
Buying generic viagra
Generic propecia for sale
Get viagra in canada
100mg tramadol buy
Where to buy phentermine 37.5 without prescription
Cialis online canada
Valium for sale in uk
Tramadol dosage
Best way to take tramadol
Best viagra dose
Cheapest phentermine
Valium uk delivery
Buy viagra in las vegas
40 mg prednisone side effects
Purchase phentermine without a prescription