You are at the archive for the General Web work - technical Category:

Client side validation for free (as in beer)

Ruby, Rails, Web2.0 » Blog Archive » Live Validation - Easy Client-side Javascript Validation
My library of choice is livevalidation, which has a Rails companion too - if you are using Rails form helpers and standard validation on your models, you don’t have to touch anything just install livevalidation (=drop it to your javascripts folder, it’s […]

Getting blur, focus and change (in ie) events to bubble using the Motionbox Event Handler

You might notice that blur, focus and change events do not necessarily bubble. At Motionbox we use the following hack to subscribe to all form fields at dom ready and then fire custom events so you maintain the same interface to events as everything else.
We do two things in the JS that won't work [...]

OpenID using your google account

http://openid-provider.appspot.com/
This lets your users use their Google ID to log into any OpenID consumer. It seems that the google accounts page is supporting this now someone has implemented OpenID using Google's new AppEngine. That means Yahoo, AOL, Google all support OpenID... with pledged support from Microsoft. Why bother implementing your own system [...]

The Motionbox EventHandler in use

Sometimes you just have to like convenience. Using our EventHandler I was just able to write the following code:
PLAIN TEXT
JavaScript:

MOBX.HighlightTextField = (function() {
   
    var highlightText = function (evt) {
        var el = evt.element();
        el.focus();
        el.select();
    };
   
    MOBX.EventHandler.subscribe(".highlight_on_click", "click", [...]

Passenger for rails deployment

Overview — Phusion Passenger (a.k.a. mod_rails)
Phusion Passenger — a.k.a. mod_rails — makes deployment of applications built on the revolutionary Ruby on Rails web framework a breeze. It follows the usual Ruby on Rails conventions, such as “Don’t-Repeat-Yourself”.
Watching this screencast has made me drool. I wonder if there are any drawbacks. Seems fast [...]

RubyAMP

code [dot] leadmediapartners.com - RubyAMP
RubyAMP is a TextMate bundle that makes you more productive in editing, navigating, and debugging Ruby code. Now you can easily:

auto-complete from all open tabs
jump to a method, class, or fixture named under the cursor
start the debugger on a series of RSpec examples and break at the current [...]

Motionbox EventHandler gets some love.

Home page - JavaScript Bubbling Library (YUI-CMS) - YUI (Yahoo! User Interface) Extension for Event-Driven Applications
Motionbox EventHandler
For those who use propotype instead YUI, here is an implementation of the bubbling core routine for Propotype, I never tested it, but it's seen like a good implementation.
Very cool to see the link back. The YUI bubbling [...]

Installing Git on Dreamhost

Most of this is taken from this post.
However, that post had an error (for my account) so I did the following:
Make sure you replace < > with your dreamhost user name.
$mkdir ~/src
$ cd ~/src
$ wget http://www.kernel.org/pub/software/scm/git/git-1.5.4.rc4.tar.gz
$ tar xzf git-1.5.4.rc4.tar.gz
$ cd git-1.5.4.rc.tar.gz
$ ./configure --prefix=/home/< >/packages NO_CURL=1 NO_MMAP=1
$ make
$ make install
$ git --version
That should return:
git version 1.5.4.rc4
And [...]

Google rips off HuddleChat

Is Google App Engine HuddleChat a Campfire Rip-Off? [SearchEngineWatch]
So it would seem either Salar Kamangar, Vice President, Product Management had no clue HuddleChat was an "Attack of the Clones" app or he gave the greenlight for a product launch knowing many in the developer community would likely view Google App Engine as a Xerox machine [...]

Google AppEngine

I'm sure everyone and their mother has written but: Google has released their new cloud computing platform called AppEngine.
It looks to be pretty cool with a nice amount of free cycles. It'll be interesting to see how Amazon responds (maybe we'll get some free EC2 ammounts?).
Right now AppEngine only supports python but they [...]