RSS

Archive for the ‘Ajax’ Category

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Ruby is a high level, object-oriented open source scripting language. It has excellent support for regular expressions as a language feature.

In Ruby, a regular expression is written in the form of /pattern/modifiers where “pattern” is the regular expression itself, and “modifiers” are a series of characters indicating various options. The “modifiers” part is optional. This syntax is borrowed from Perl.

Ruby supports the following modifiers:

  • /i makes the regex match case insensitive.
18 Mar 2008

Using Regular Expressions with Ruby

Author: ceefour | Filed under: Ajax, Rails, Ruby, Tools

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! :)

Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library.

jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. It has the features and the visual effect.The visual effects in jRails are based on the new jquery-fx library. jRails currently uses a slightly modified version of jquery fx code to get some of the desired effects.

Features of jRails :

jRails provides drop-in functionality for these existing Rails methods.

    • Scriptaculous
    • draggable_element
    • drop_receiving_element
    • sortable_element
    • visual_effect
    • RJS
    • hide
    • insert_html
11 Dec 2007

jRails: jQuery On Rails

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

Selenium Core provides an easy way to test Rails application.

This plugin does four things:

  1. The Selenium Core files don‘t have to pollute /public.
  2. No need to create suite files, they are generated on the fly — one suite per directory in /test/selenium (suites can be nested).
  3. Instead of writing the test cases in HTML you can use a number of better formats (see Formats).
  4. Loading of fixtures and wiping of session (/selenium/setup).

Installation

  1. Install Selenium on Rails: script/plugin install http://svn.openqa.org/svn/selenium-on-rails/selenium-on-rails
  2. If you‘re on Windows, gem install win32-open3
9 Dec 2007

Selenium on Rails

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

Shave your Semantic (or semantic?) Web

microformats has been only two years old, yet it has brought significant changes in a relatively short time.

What is it, actually? According to microformats.org, “[microformats is] designed for humans first and machines second, [they] are a set of simple, open data formats built upon existing and widely adopted standards.”

Enough with the fluff, let’s see how it actually works, microformats in action:

Arie Kusuma Atmaja nampang gitu lhoh
Flickr picture source

The above picture is me browsing to the LinkedIn profile of one of Indonesia’s renowned Ruby on Rails experts, Arie Kusuma Atmaja. The overlay window that contains these semantic information is not a LinkedIn feature. Rather, it is the easily usable, cross-browser Microformats Bookmarklet by LeftLogic. Go on… try it if you haven’t!

NetBeans 6

NetBeans 6 Beta 1 is here!!

Let’s rock the boat :-)

It’s the first significant NetBeans event in probably a year :-)

NetBeans isn’t only for Java geeks anymore, it has tons of Ruby and Ruby on Rails support now!

What surprises me (and delights me!) about this release is that, not like previous NetBeans 6 milestones where NetBeans-Java is bundled with Ruby, they actually make a special Ruby-only version.

The Ruby-only download is mere 19 MB in size!

Just out from a pack of several of the world’s greatest Ruby and/on Rails programmers: Professional Ruby Collection: Mongrel, Rails Plugins, Rails Routing, Refactoring to REST, and Rubyisms.

GET STRAIGHT TO THE LEADING EDGE WITH RUBY AND RAILS

Information that’s so hot, new, and valuable, you can’t wait for a book. This package brings together 8 breakthrough primers on today’s most valuable Ruby and Rails technologies — including five new digital Short Cuts worth $69.95! From RailsSpace to ActiveRecord to Mongrel, here’s new content, techniques, and code from the Ruby community’s top innovators: insider’s information that’s never been available before in one place.

I love this presentation:

proghard Cool RailsConf Talk Presentation

The slide tells shows a lot of ideas about:

  • Designer – Programmer/Developer collaboration
  • Good design principles
  • Use Rails optimally
  • The philosophy of web development
  • How to go from concept to development to production
  • Did I mention lots of ideas!!??

Seriously, don’t walk, but run to download that thing!!

“Every developer working with the Web needs to read this book.”

David Heinemeier Hansson, creator of the Rails framework

“RESTful Web Services finally provides a practical roadmap for constructing services that embrace the Web, instead of trying to route around it.”

Adam Trachtenberg, PHP author and EBay Web Services Evangelist

From Chad Fowler of the indispensable Rails Recipes, and with the help of Mike Clark, here are 72 new ways to kick your Ruby on Rails apps up a notch. Advanced Rails Recipes is a collection of practical recipes for dressing up your web application with little fuss. You’ll learn how the pros have solved the tough problems using the most cutting-edge Rails techniques so you can deliver your stunning web app quicker and easier.

<br />Developers by the thousands are coming to Rails-the benefits are clear, both to individuals and their organizations.

25 May 2007

Ruby on Rails Book: Advanced Rails Recipes

Author: ceefour | Filed under: Ajax, Books, E-commerce, News, Rails, Reviews, Ruby, Tips, Web 2.0