Official Forumwarz Blog

The official blog for the web game, Forumwarz

Kawaii – A web-based utility like script/console

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!

About these ads

Written by eviltrout

July 20, 2008 at 8:49 PM

Posted in Home, News

Tagged with , , , ,

19 Responses

Subscribe to comments with RSS.

  1. Well would you look at that? :)

    markchd

    July 20, 2008 at 8:49 PM

  2. Smooooth.

    Alistair Holt

    July 20, 2008 at 8:49 PM

  3. Customer.delete_all
    :)

    Randy

    July 20, 2008 at 8:49 PM

  4. @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 :)

    Evil Trout

    July 20, 2008 at 8:49 PM

  5. 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

    softmind

    July 20, 2008 at 8:49 PM

  6. 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.

    Erik Peterson

    July 20, 2008 at 8:49 PM

  7. This is pretty damn sweet. Nice work!

    Brian Eng

    July 20, 2008 at 8:49 PM

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

    Bruce Hauman

    July 20, 2008 at 8:49 PM

  9. Wow this looks awesome.

    Richard Poirier

    July 20, 2008 at 8:49 PM

  10. 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.

    jim Cropcho

    July 20, 2008 at 8:49 PM

  11. Very nice! :)

    Sebastian

    July 20, 2008 at 8:49 PM

  12. 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

    lance

    July 20, 2008 at 8:49 PM

  13. 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 Woodcroft

    July 20, 2008 at 8:49 PM

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

    Ben

    July 20, 2008 at 8:49 PM

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

    Evil Trout

    July 20, 2008 at 8:49 PM

  16. 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.)

    Evil Trout

    July 20, 2008 at 8:49 PM

  17. 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

    July 20, 2008 at 8:49 PM

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

    jonah

    July 20, 2008 at 8:49 PM

  19. 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 :)

    Evil Trout

    July 20, 2008 at 8:49 PM


Comments are closed.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: