open source

Using RubyAmf for creating a CRUD application in Rails

CRUD applications can be easily created using Ruby on Rails as the backend and Flex as the frontend app using the XML format as demonstrated here.

Another way to create such applications is using the AMF protocol which is optimized for network communications and stores objects in binary format so consumes less bandwidth. Another compelling reason for using this library is that it doesn’t feel like a hack as it integrates very nicely with Rails :)

The Ruby port of this protocol known as RubyAmf can be downloaded from from here. More information about this protocol can be found here.

Lets start making the application.

 

Create a Rails Application:

   1: > rails amf_demo

This will create a rails application. Please note that I am using Rails 2.1.2 for this example and it is not tested on any other Rails version.

Generate a scaffold:

   1: > ruby script/generate scaffold blog_post title:string body:text

Create Tables and run Migrations:

   1: > rake db:migrate

   1: > rake db:create

› Continue reading

Wednesday, November 12th, 2008 adobe, crud, flex, open source, ruby on rails, user interface 8 Comments

Compiling and Installing GIT on windows under cygwin

Using GIT was one of the requirements of one of the project that I am doing. Here is how I installed GIT on Windows.

So What is GIT?

The supplied documentation of GIT says that:

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.

Here is the link for the wikipedia entry.

Where can I download GIT?

Here is the link.

› Continue reading

Friday, April 11th, 2008 FOSS, GIT, cygwin, open source, perl, vista, windows 3 Comments

Setting up BlazeDS with Flex

 

Let me give some introduction first.

BlazeDS is a server-based Java remoting and web messaging technology that allows to connect to back-end distributed data and push data in real-time to Adobe Flex and Adobe AIR rich Internet applications (RIA). Because of its open licensing, BlazeDS is not precluded from being used with other client platforms, such as JavaScript/AJAX. (wikipedia)

Adobe Flex is a collection of technologies released by Adobe Systems for the development and deployment of cross platform, rich Internet applications based on the proprietary Adobe Flash platform. The initial release in March 2004 by Macromedia included a software development kit, an IDE, and a J2EE integration application known as Flex Data Services. Since Adobe acquired Macromedia in 2005, subsequent releases of Flex no longer require a license for Flex Data Services, which has become a separate product rebranded as LiveCycle Data Services. (wikipedia)

› Continue reading

Amarok 2: now with 100% more audio playing on Windows – Amarok Blog

Amarok 2: now with 100% more audio playing on Windows – Amarok Blog

Here is come great news for windows users. The great linux music player is being ported to the windows platform. Here is a screenshot of amarok playing on windows.

image

But as the site says that it is still an alpha software so somewhat unstable. I am eagerly waiting the first version to come. I hope it comes out soon.

Saturday, December 8th, 2007 amarok, open source, software, windows No Comments

10 of my favorite softwares

I like to explore softwares. I usually install a lot of softwares on my system. I thought that I should make a list of my favorite softwares and share it with everybody. All of there softwares are either open-source or free.

1. Autohotkey(FOSS): It manages your hotkeys globally and allows you to create complex actions based on the keys pressed. Its actually got its own scripting language which is rather easy to learn. Just write a script in a file with extension .ahk and double click the file to execute it.

image

With AutoHotKey you can:

  • manage processes, windows and control both keyboard and mouse.
  • create macros saving you precious keystrokes.
  • re-map keys and buttons on your keyboard and mouse.

I have been using AutoHotKey for quite a while now and I use it to manage my code snippets, have consistent hotkeys across applications and creating macros like googling the selected text in any application. The following is the AutoHotKey script for it:

   1: #g::
   2: Send ^c
   3: Run http://www.google.co.in/search?hl=en&q=%clipboard%
   4: return

So by using this script whenever I press Ctrl+G the script will open a browser and search the selected text in google. Nice isn’t it?

› Continue reading

Tags: , ,

Tuesday, October 9th, 2007 FOSS, free, open source, software, windows No Comments