Kawaii - A web-based utility like script/console

written by Evil Trout on July 20th, 2008 @ 04:49 PM

In honor of RubyFringe and my love of Ruby, Rails and Open Source, i'm going to release a small Rails project I coded up on the boring airplane ride back from Las Vegas.

Kawaii is like a script/console that runs in your web-browser. I've been using it for Forumwarz development and it's worked great so far!

Update: Kawaii is now hosted on Google Code. There is a discussion group and issue tracker there!

save to del.icio.us | digg this | submit to reddit

Comments

  • markchd on 20 Jul 18:24

    Well would you look at that? :)

  • Alistair Holt on 22 Jul 16:51

    Smooooth.

  • Randy on 22 Jul 17:52

    Customer.delete_all

    :)

  • Evil Trout on 22 Jul 19:50

    @Randy, yes, that’s why you need a password to use it, and in the README I warn against production use.

    It’s really a development tool :)

  • softmind on 23 Jul 01:17

    Hi,

    Is there any .exe file to immediately install and run.

    I think, that would be a better option for all those new Rubyists emerging.

    Just few cents

    SoftMind

  • Erik Peterson on 23 Jul 10:45

    Just a note: This depends on prototype.js. If you’ve moved on to jQuery, you have to manually put prototype.js back and include it on the page.

  • Brian Eng on 23 Jul 10:59

    This is pretty damn sweet. Nice work!

  • Bruce Hauman on 26 Jul 10:16

    Awesome! I don’t have to run a hacked Iphone now!

  • Richard Poirier on 26 Jul 11:11

    Wow this looks awesome.

  • jim Cropcho on 26 Jul 13:09

    Looks like an exciting project. There should really be trac or a forum for it, though. For now, I’ll post my issue here.

    If environment.rb contains config.gem “aws-s3”, :lib => “aws/s3”

    and the gem is not yet installed (but you think it is),

    Kawaii will give you the mega-indecipherable error uninitialized constant KawaiiController::KAWAII_OPTIONS

    I am not fully sure why, but email me if you have further questions.

    After installing aws-s3, it worked.

  • Sebastian on 27 Jul 07:25

    Very nice! :)

  • lance on 27 Jul 10:01

    Need some help installing it.

    When I run script/generate kawaii, ruby response by saying “Couldn’t find ‘kawaii’ generator”. I moved the directory ‘kawaii’ into the lib directory of my application.

    thanks

  • Ben Woodcroft on 27 Jul 21:15

    Hi,

    Only worked for me when I git cloned (ie. copied) the kawaii/ directory into ~/.rails/generators

    Be nice if pressing enter worked as in script/console, and maybe use ctrl-enter if you want a new line, like in (most) instant messengers.

    Cool though, I was just thinking how annoying this problem you’ve fixed is the other day.

    ben

  • Ben on 28 Jul 12:03

    If you’re putting it in the lib directory, it needs to go in lib/generators. lib/ doesn’t work (at least for me).

  • Evil Trout on 28 Jul 23:26

    Thanks guys, I’ll be updating the README soon (and hopefully pushing out some other fixes!)

  • Evil Trout on 29 Jul 12:37

    I’ve just updaded Kawaii on Github will a bunch of changes. Check out the CHANGELOG.

    It won’t be easy to upgrade this time, but from now on it should be!

    (I will look into getting a new site for this, setting up a forum.)

  • jonah on 31 Jul 04:16

    Hey,

    Looking good ! Once upon a time I wrote something very similar (albeit less pretty). The only critique I have is that you cannot assign variables in Kawaii, which limits the usefulness of the console.

    I hacked it into mine by regexing for variable_name= and assigning that in to session[variable_name].

    For subsequent methods, I had a method_missing that would check the session keys with that name and return the value.

    A feature like this would make Kawaii much more useful (for me at least)

    cheers !

    Jonah

  • jonah on 31 Jul 05:49

    an alternative would be to allow the referencing of the results from other (named) tabs ?

  • Evil Trout on 04 Aug 14:17

    Hey everyone, I’ve set up a page for Kawaii on Google Code:

    http://code.google.com/p/kawaii/

    There is an issue tracker there and discussion group.

    @jonah – that’s a very interesting idea. Feel free to suggest it on the new issue tracker and we can discuss it further there—I’ll have to think about it :)

Comments are closed