hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Tuesday

2006.07.25

Sandbox's Init and Import #

by why in inspect

mfp: This makes me think that the point of sandbox is not as much allowing access to stuff you cannot use with higher $SAFE levels as offering a clean environment. Am I right? In both cases, being able to specify which stuff is to be imported could be useful.

Starting with an example:

 box = Sandbox.new(:init => [:load], :import => [:YAML, :File])
 box.eval("require 'rubygems'")

Continue to full post. (276 words)

Those Fortunate Portlanders 2 #

by why in inspect

O’Reilly Radar says there’s also a tour of Free Geek on Friday. That way you can go home and forever desire your own personal Free Geek.

Update: And, lo, all that was said was automatically ejected in an ornate dish, a dish indistinguishable from real podcasts.