From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2008-07-06T18:51:31+09:00 Subject: Re: [ANN] amalgalite 0.2.0 Released Une B�vue wrote: > for the time of posting i get no output from #to_string_io.read ? the method is #string ))) ------------------------------------------------------------------------ #! /usr/bin/env ruby require 'rubygems' require 'amalgalite' require 'uri' require 'base64' # write the first favicon to "data" URL scheme # see http://www.ietf.org/rfc/rfc2397.txt db=Amalgalite::Database.new( "places.sqlite" ) all_rows=db.execute( "SELECT url, mime_type, data FROM moz_favicons" ) blob_row = all_rows.first uri = URI.parse(blob_row['url']) html="

#{uri.host} #{File.basename(uri.path)}:

" File.open("#{uri.host}_favicon.html","w"){|f| f.print html} ------------------------------------------------------------------------ resulting in :

www.google.com favicon.ico:

-- Une B�vue