General

AnyKey FF Plugin

For those of us who are Arabic-typing challenged (picking up Arabic letters off the keyboard) – AnyKey is the solution. AnyKey is a FF plugin that gives you the power of writing Arabic as it sounds (without the need to learn the Arabic keyboard layout). It also got transliteration from “Russian, Ukrainian, Amharic, Armenian, Hindi Davangari, Hebrew, Mongolian, Greek,...

irb and rails console tab completion

By chance, irb and ruby-console tab completion discovery. Made my day!irbirb(main)> t = Time.new => … irb(main)> t.m #[tab] t.mday t.method t.methods t.min t.mon t.month Rails Console>> Feed.fi #[tab] Feed.find Feed.find_all Feed.find_all_with_deprecation Feed.find_all_without_deprecation … Win XP, ruby 1.8.5 and rails 1.2.2. Google away if not on your machine. irb is incredibly underappreciated, it has a bunch of nice things...

Pyramids, Application. An Analogy

Working on maintaining and modifying a five year-old Java application, I came to realize there’s a strong relation between legacy and pyramids. Here’s an analogy: | Pyramids are HUGE monuments, built for the sole purpose of being a tomb to one person. Although the project tree is HUGE (14000+ files), the purpose of the application is amazingly modest (CRUD...

:finder_sql – single vs double quotes

This is the trickiest part of Rails I came across so far:In my has_many association I have a finder_sql that should reference the instance object id rather than the class object id. has_many :breedtypes, :finder_sql => ‘SELECT Breedtype.* FROM … WHERE (cai = #{id})’ Now, who’d ever have thought that replacing the “double” quotes I had wrapping the “Select”...

2D to 3D Innovation from Fotowoosh

The most innovative imaging service I’ve seen since Riya and Photosynth. Fotowoosh, a real innovation, through Freewebs. The service (currently in alpha) takes your regular 2D images and transfers them into 3D ones automatically. </embed> I guess this makes freewebs a very good buyout candidate to <place_your_favorite_company_here> via TechCrunch

Multiple-Application Login

I’m trying to handle an integration between a humongous code-base Java application (doing basic stuff) with a new Rails application (talking about injecting Rails transparently). Handling login (multi-application logins) was my first obstacle, and after talking with Steven and Brenton, I came up with the following implementation: 123456789101112131415161718192021require ‘rubygems’require ‘hpricot’require ‘mechanize’class WelcomeController < ApplicationController… def login agent = WWW::Mechanize.new...

Web 2.0 for Sale

I still can get a laugh seeing some applications. Web 2.0 Application for sale – helping you flip 🙂 http://web2.0forsale.com/