hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Friday

2005.09.23

Ruby 1.8.3 Has Been Released #

by daigo in inspect

Ruby 1.8.3 has been released. Thank you for the developers and users.

Mirror: http://rubyforge.org/frs/download.php/6155/ruby-1.8.3.tar.gz
ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.3.tar.gz
md5sum: 63d6c2bddd6af86664e338b31f3189a6

In ruby-dev mail list for Japanese guys are trying to write what’s new in 1.8.3, a press release for media and so on, but nobody works them yet.

Akira Yamada, a maintainer of ruby package in Debian, blogged that he would make the new package as soon as possible.

This includes a vulnerability fix.

The diagram in this Japanese document describes a bit detail of the vulnerability. It says that using plugins (which denote making instances in eval?) you could pass through Ruby security sandbox system.

Debian package ruby1.8 1.8.3-1 is out in unstable.

Matz talked about 1.8.4 release plan. 24 Dec will be the day. If an urgent release is required, (i) 1.8.4 might be out before the day or (ii) 1.8.3.1 might be released.

Thursday

2005.09.22

Wiki Shell Scripting for MouseHole #

by why in inspect

A wiki. That stores scripts. Run them from the URL. You have a personal Yubnub. This idea is Jake Donham’s and he dropped in on the MouseHole list a few weeks ago. My incarnation of his script is called MouseCommand.

To give you an idea of what’s possible, a few recipes du jour. For best effect in Firefox, go to about:config and set keyword.URL to http://127.0.0.1:37004/cmd/. Restart Firefox and make sure MouseHole is running and MouseCommand is installed.

del

A simple redirect to a del.icio.us tag.

 location "http://del.icio.us/tag/#{args.join '+'}" 

date

Display the system date and time. Arguments optionally passed into String#strftime.

 if args.empty?
   Time.now.to_s
 else
   Time.now.strftime( args.join( ' ' ) )
 end

url

For debugging. Pass another command in (try: url date or url del ruby) and get a dump of the headers and content generated by that command.

 run( args.join '/' ) rescue nil
 body = "<p>" 
 response.header.map do |k,v|
   body += k + ": " + v + "<br />" 
 end
 body + "</p><pre>#{ response.body }</pre>" 

links

Make a list of links for a given URL.

 body = "<ul>" 
 doc = read_xhtml_from "http://#{ args.join '/' }" 
 doc.each_element( "//a" ) do |link|
   if link.attributes['href']
     body += "<li>#{ link.attributes['href'] }</li>" 
   end
 end
 body + "</ul>" 

If you have MouseCommand setup as keyword.URL, you can also type new shortcut to create a new command with the name shortcut. Also, list all to see your command list and edit shortcut to… you know… (Again, credit goes to Jared. A bunch of useful command ideas is elsewhere.)