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!
Well would you look at that? π
markchd
July 20, 2008 at 8:49 PM
Smooooth.
Alistair Holt
July 20, 2008 at 8:49 PM
Customer.delete_all
π
Randy
July 20, 2008 at 8:49 PM
@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
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
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
This is pretty damn sweet. Nice work!
Brian Eng
July 20, 2008 at 8:49 PM
Awesome! I don’t have to run a hacked Iphone now!
Bruce Hauman
July 20, 2008 at 8:49 PM
Wow this looks awesome.
Richard Poirier
July 20, 2008 at 8:49 PM
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
Very nice! π
Sebastian
July 20, 2008 at 8:49 PM
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
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
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
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
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
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
an alternative would be to allow the referencing of the results from other (named) tabs ?
jonah
July 20, 2008 at 8:49 PM
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