hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Balloon #

by why in inspect

Create new scripts from the home page.

Add gems, code from Subversion, libraries from HTTP.

Run other scripts (like the Tepee wiki).

The important thing here is that Gems are installed into temporary directories under ~/.balloon. So you can serve the current directory or fire up a wiki with a single command.

said on 30 Jun 2006 at 14:48

Oh huh whoa yes maybe hmm is? okay.

said on 30 Jun 2006 at 15:04

I keep getting:

** Loading balloon.rb...
-e:1: (eval):16: (eval):7: undefined method `require__' for module `Kernel' (NameError)

no matter what balloon I try. I do have gems installed, and my RUBYOPT does load them… Any ideas?

said on 30 Jun 2006 at 15:08

That sounds like an open-uri issue. Can’t find the original require it overrode somehow.

said on 30 Jun 2006 at 15:09

Uh, wait, no. open-uri doesn’t dick with require. The quality of my posts is really slipping.

said on 30 Jun 2006 at 15:09

Uh, wait, no. open-uri doesn’t dick with require. The quality of my posts is really slipping.

said on 30 Jun 2006 at 15:11

Uh, yay double-posting? I think I will take my leave from the internets for a while.

said on 30 Jun 2006 at 15:18

Yeah, sorry, RUBYOPT='-rubygems' kind of messes things up. But I think I’ve got it. Give it another go, lukfugl.

said on 30 Jun 2006 at 15:18

People keep scratching itches I didn’t know I had

Why yes, I would love to quickly try out a web application with little setup on my behalf

said on 30 Jun 2006 at 15:38

I know it’s nice that balloon is all temporary and self contained, but it would be really swell if, for instance, serve.rb could figure out I already have mongrel installed as a gem and just use that.

said on 30 Jun 2006 at 15:44

I might end up doing that. At least, I’ll probably have flags or a ~/.balloonrc to allow that.

For now, if you run serve.rb a second time, it’ll use the same Mongrel fetched the first time.

said on 30 Jun 2006 at 15:48

why, how do you manage to be so infuriatingly productive? I’ve never seen anyone churn out so much cool stuff so quickly…

said on 30 Jun 2006 at 15:48

@why: Thanks, working now!

said on 30 Jun 2006 at 16:21

I was wondering when this would be announced. The last time why posted about storing libraries in the ether, I started a little project to do something remarkably similar, but with sandboxing.

said on 30 Jun 2006 at 16:51

Wow. This is a beautiful thing. Such a neat idea, too. Yay why!

said on 30 Jun 2006 at 16:51

I get “uninitialized constant Balloon” on all the ones I try, but I think I’m probably missing something :) Looks very cool though.

said on 30 Jun 2006 at 17:01

Peter Cooper: What OS? What Ruby version? And what is your RUBYOPT ?

said on 30 Jun 2006 at 17:35

i also get peter cooper prob. XP 1 .84 (RUBYOPT is the default from 1 click install)

said on 30 Jun 2006 at 17:36

andrea@fiction$ uname -a FreeBSD fiction 6.0-RELEASE FreeBSD 6.0-RELEASE #x: xxx xxx x xx:xx:xx xxx xxxx root@fiction.xxxxxx.xxx:/usr/src/sys/i386/compile/FICTION i386 andrea@fiction$ ruby -v ruby 1.8.4 (2005-12-24) [i386-freebsd6] andrea@fiction$ echo $RUBYOPT

andrea@fiction$ ruby -ropen-uri -e ‘eval(open(“http://balloon.hobix.com/parkplace”).read)’ -e:1: (eval):1: uninitialized constant Balloon (NameError)

said on 30 Jun 2006 at 17:42

Okay, there we go. Thanks, Peter, jakdak, andrea.

said on 30 Jun 2006 at 18:08

why: I get the same thing as Peter Cooper above. Running Ruby 1.8.4 on OS X 10 .4.6 (compiled from source). RUBYOPT is not set.

said on 30 Jun 2006 at 18:10

Nevermind

/me meekly returns to the shadows

said on 30 Jun 2006 at 18:19

Problem

Tried loading the ParkPlace Balloon. All the gems loaded and everything and it started up seemingly fine. Here are the final two lines of output:

  • No users found, creating the `admin’ user.
  • ParkPlace example is running at http://127.0.0.1:3002/

Thusly loading the above URL results in the following offensive XML snippet:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<Resource>/</Resource>
<RequestId>1151712655</RequestId>
</Error>
said on 30 Jun 2006 at 18:24

Uh, seems like the Preview pane renders differently than the actual comment renderer. I spent two whole minutes converting those angle bracks to some [gl]t action.

said on 30 Jun 2006 at 18:28

I broke myself :/ http://balloon.hobix.com/~nil

said on 30 Jun 2006 at 18:30

also, non-existant users cause camping problems also

said on 30 Jun 2006 at 18:35

toby: ParkPlace is loaded, go to /control to see the control center. I’ll add a note.

nil: Thanks, nil. Your page should be okay.

said on 30 Jun 2006 at 18:46

toby: Okay, the preview should be a bit better wrt to plusses and brackets.

said on 30 Jun 2006 at 18:52

so… very… painful… under win32 :) mongrel and sqlite had ballons and win32 :)

said on 30 Jun 2006 at 18:52

so… very… painful… under win32 :) mongrel and sqlite hate ballons and win32 :)

said on 30 Jun 2006 at 19:08

_why, can you add in the ability to move around blocks? order of actions are important, so it’d be great, especially since i am planning on the fly ;)

said on 30 Jun 2006 at 19:27

having some problems with dependencies on os x, but i favor the cut of your jib. nice jobby. job.

said on 30 Jun 2006 at 21:19

I’ve been anxiously waiting for this to get rolling more since you spoke of it at your performance at RailsConf. I pulled it up during your show and it produced errors, so I hadn’t tried it since.

Thanks for being a creative force in the Ruby community, and giving us a creative benchmark of sorts! Sounds strange and nonsensical, but it’s true: we have aspirations of being like _Why and kicking Ruby ass with all kinds of awesome shit.

Now, I think I’ll go and look over what the RailsDay people kept on doing that was ugly to see if there’s something I can do to make life easier… here’s hoping I can!

Cheers,

M.T.

said on 30 Jun 2006 at 23:25
said on 30 Jun 2006 at 23:54

ooh this is nice! really really nice! i can now send scripty postcards to my grand ma ma

said on 01 Jul 2006 at 07:13

Very nice _why! Why is the script showing design different from the front page though? It would be good if the script pages followed the fron page design!

said on 01 Jul 2006 at 12:08

I would like to see Balloon support in TryRuby, as then I could send scripty postcards to my grand-ma-ma without having her install Ruby.

said on 01 Jul 2006 at 19:47

Balloon in Try Ruby would be great !! Perhaps theres many securities issues that would need to be addressed. also the processing might require a serious amount of server processing power :)

said on 02 Jul 2006 at 02:35

it would also be great if it could work out whether certain gems were already installed on the local machine

said on 02 Jul 2006 at 07:19

I forgot to come back sooner, sorry! However, seems it all works fine now. Great job :)

said on 07 Jul 2006 at 17:43

Works fine, when I do things like I’m supposed to. However, I just can’t resist trying different methods. I expected this to work but didn’t:

curl http://balloon.hobix.com/test|ruby

or

wget O http://balloon.hobix.com/test|ruby

Error:

Proceed (or L to list this script’s actions)? [y/N/l] NoMethodError: undefined method `strip’ for nil:NilClass (eval):108:in `start’ (eval):106:in `start’ -:20

said on 08 Jul 2006 at 21:43

rixxon: STDIN is closed by the pipe. There’s a commented out line in balloon.rb which reopens, but I haven’t cared to test it on various shells.

said on 12 Jul 2006 at 15:06

When I try to save a balloon, I get this:

Camping Problem!

Balloon::Controllers::Demo.POST

TypeError can’t convert String into Hash:

(eval):41:in `u’ (eval):41:in `qs_parse’ (eval):10:in `inject’ (eval):40:in `qs_parse’ (eval):22:in `initialize’ (eval):43:in `run’ /usr/local/lib/ruby/gems/1.8/gems/camping-1.4.115/lib/camping/fastcgi.rb:77:in `start’ /usr/local/lib/ruby/gems/1.8/gems/camping-1.4.115/lib/camping/fastcgi.rb:71:in `start’ /usr/local/lib/ruby/gems/1.8/gems/camping-1.4.115/lib/camping/fastcgi.rb:89:in `start’ /home/sites/hobix.com/balloon/lib/balloon.rb:37

said on 12 Jul 2006 at 15:06

When I try to save a balloon, I get this:

Camping Problem!

Balloon::Controllers::Demo.POST

TypeError can’t convert String into Hash:

(eval):41:in `u’ (eval):41:in `qs_parse’ (eval):10:in `inject’ (eval):40:in `qs_parse’ (eval):22:in `initialize’ (eval):43:in `run’ /usr/local/lib/ruby/gems/1.8/gems/camping-1.4.115/lib/camping/fastcgi.rb:77:in `start’ /usr/local/lib/ruby/gems/1.8/gems/camping-1.4.115/lib/camping/fastcgi.rb:71:in `start’ /usr/local/lib/ruby/gems/1.8/gems/camping-1.4.115/lib/camping/fastcgi.rb:89:in `start’ /home/sites/hobix.com/balloon/lib/balloon.rb:37

said on 12 Jul 2006 at 19:56

I keep getting the following.

MissingLibrary: /home/chris/.balloon/parkplace/gems/camping-1.4.135/lib/camping/db.rb:7: ActiveRecord could not be loaded (is it installed?): no such file to load—active_record

anyone know what the G.O. is with that ?

said on 17 Jul 2006 at 03:57

Sigh… http://balloon.hobix.com is borked, so I can’t see a description of what balloon is. It’s not the first time I’ve been dumbfounded by a _why project. Why can’t there be a brief description accompanying the announcement on redhanded?

said on 18 Jul 2006 at 12:00

Sorry guys, having some database issues.

Chris: I need to update Park Place to use the latest Camping gem.

12 Jul 2010 at 22:17

* do fancy stuff in your comment.

PREVIEW PANE