Jun 19 2007
Lightweight server push with Rails and AIR
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.
Jun 19 2007
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
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:
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:
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.