Dan Tenenbaum | 1 Oct 2010 01:15
Favicon

Re: Metadata 0.2

Ilmari Heikkinen wrote:
> On 9/13/07, Konrad Meyer <konrad <at> tylerc.org> wrote:
>>
>> Any chance this could be expanded to add FLAC and OGG support?
>>
>> Thanks!
>> --
>> Konrad Meyer <konrad <at> tylerc.org> http://konrad.sobertillnoon.com/
>>
> 
> Done! Along with a preliminary list of supported formats and some 
> cleanup.
> Thanks for the request!
> 
> 
> tarball: http://dark.fhtr.org/repos/metadata/metadata-0.2.tar.gz
> git: http://dark.fhtr.org/repos/metadata/

Hi, these links are dead. Does this package still exist anywhere? Is it 
available as a gem?
Thanks,
Dan

> 
> Description
> -----------
> 
>   This package `Metadata' comes with a library called `metadata' and
>   a small program called `mdh'.
> 
(Continue reading)

John W Higgins | 1 Oct 2010 01:35
Picon
Gravatar

Re: Metadata 0.2

On Thu, Sep 30, 2010 at 4:15 PM, Dan Tenenbaum <dandante <at> dandante.com>wrote:

> Ilmari Heikkinen wrote:
> > On 9/13/07, Konrad Meyer <konrad <at> tylerc.org> wrote:
>
> Hi, these links are dead. Does this package still exist anywhere? Is it
> available as a gem?
> Thanks,
> Dan
>

You really are going to take the time to open up a 3+ year old thread on a
mailing list (for the second time by the way) as opposed to typing "ruby
metadata" into google?

John
Dan Tenenbaum | 1 Oct 2010 01:49
Favicon

Re: Metadata 0.2

John W Higgins wrote:
> On Thu, Sep 30, 2010 at 4:15 PM, Dan Tenenbaum 
> <dandante <at> dandante.com>wrote:
> 
>> Ilmari Heikkinen wrote:
>> > On 9/13/07, Konrad Meyer <konrad <at> tylerc.org> wrote:
>>
>> Hi, these links are dead. Does this package still exist anywhere? Is it
>> available as a gem?
>> Thanks,
>> Dan
>>
> 
> You really are going to take the time to open up a 3+ year old thread on 
> a
> mailing list (for the second time by the way) as opposed to typing "ruby
> metadata" into google?
> 
> John

My post did not show up (on ruby-forum.com) the first time.
All that google shows are these same dead links.
--

-- 
Posted via http://www.ruby-forum.com/.

David Mullet | 1 Oct 2010 02:33
Picon

Re: Microsoft Word metadata extraction query

Stuart Clarke wrote:
> Hey all,
> 
> Is anyone aware of a library to identify the use of track changes in
> Microsoft Word documents? I basically and looking for something to scan
> the file and say 'Track Changes - Y/N'
> 
> Many thanks in advance

Not sure if this can be done by "scanning the file".

It can be done via Win32OLE, by checking the Document object's 
TrackRevisions property.

require 'win32ole'
word = WIN32OLE.new('Word.Application')
doc = word.Documents.Open('c:\stuff.doc')
is_tracking = doc.TrackRevisions

That's an abbreviated example. Let me know if this would help and you 
need more details.

David

http://rubyonwindows.blogspot.com/search/label/word
--

-- 
Posted via http://www.ruby-forum.com/.

Jason Stewart | 1 Oct 2010 02:36
Favicon
Gravatar

Re: Ruby Groups/Meetings

Seattle.rb is a pretty huge oversight. I found the link on
ruby-lang.org a while ago, therefore figured it was the "official"
place to look for Ruby User Groups.

On Thu, Sep 30, 2010 at 3:14 PM, Ryan Davis <ryand-ruby <at> zenspider.com> wrote:
>
> On Sep 30, 2010, at 07:31 , Jason Stewart wrote:
>
>> I knew somebody would be needing that link sooner or later :)
>>
>> http://www.rubyusergroups.org
>
> I'd never heard of that website and Seattle.rb isn't on it. Google is probably still a better option.
>
>
>
>

(r.*n){2} | 1 Oct 2010 03:06
Picon

Re: Microsoft Word metadata extraction query

On Sep 30, 8:33 pm, David Mullet <david.mul... <at> gmail.com> wrote:
> Stuart Clarke wrote:
> > Hey all,
>
> > Is anyone aware of a library to identify the use of track changes in
> > Microsoft Word documents? I basically and looking for something to scan
> > the file and say 'Track Changes - Y/N'
>
> > Many thanks in advance
>
> Not sure if this can be done by "scanning the file".
>
> It can be done via Win32OLE, by checking the Document object's
> TrackRevisions property.
>
> require 'win32ole'
> word = WIN32OLE.new('Word.Application')
> doc = word.Documents.Open('c:\stuff.doc')
> is_tracking = doc.TrackRevisions
>
> That's an abbreviated example. Let me know if this would help and you
> need more details.
>
> David
>
> http://rubyonwindows.blogspot.com/search/label/word
> --
> Posted viahttp://www.ruby-forum.com/.

Try to run strings (see man strings) on the word doc and see if there
(Continue reading)

Markus Fischer | 1 Oct 2010 03:10
Gravatar

Re: Convert ellipsis to utf-8

On 01.10.2010 00:35, Rahul Thathoo wrote:
> I have a string consisting of 3 periods: "...". I want to convert it
> into a single utf-8 character http://www.fileformat.info/info/unicode/char/2026/index.htm
> 
> I tried Iconv.iconv('utf-8', 'iso-8859-1', '...') but that didnt
> work... any clues?

I think I'd simply go with:

ruby-1.9.2-p0 > puts "foo...bar".gsub!('...', "\u2026")
foo…bar

I wouldn't except iconv() to know how to handle this. I'm not an expert
but I've never seen a conversion creating "multiple characters".
"Multiple bytes", yes, but not "characters".

HTH,
- Markus

Eleanor McHugh | 1 Oct 2010 03:16
Gravatar

Re: Seeking sponsors to fly me to RubyConf

On 30 Sep 2010, at 16:01, Eleanor McHugh wrote:
> On 29 Sep 2010, at 16:37, Roger Pack wrote:
>>> So here's the deal.
>>> 
>>> I'm looking for a company or two willing to fly me from the UK and back 
>>> for RubyConf and find me somewhere to sleep whilst I'm in New Orleans.
>> 
>> start a pledgie?
> 
> Looks like that might be the way to go. Well, either that or bank robbery lol

Having been prodded a few times about a Pledgie campaign, I've taken the hint :)
Anyone who believes RubyConf will be materially improved by having an Ellie on the premises can now
immanentize my eschaton at:

	http://www.pledgie.com/campaigns/13596

I'm trying to raise a total of £700, £500 for the air fare from London and another £200 to cover hotel and
living expenses for the four or five days I'll be in New Orleans.

Ellie

Eleanor McHugh
Games With Brains
http://feyeleanor.tel
----
raise ArgumentError unless  <at> reality.responds_to? :reason

Anthony Ob | 1 Oct 2010 03:50
Picon

Syntax error

ERROR

Test6.rb:4 syntax error, unexpected tSYMBEG, expecting kDO or '<' or '<'
e.times do+y:x|

test6.rb:5: syntax error, unexpected tSTRING_BEG, expecting kDO or '<'
or '<'
          puts "Looping #{y}"

test6.rb:7: syntax error, unexpected kEND, expecting $end]

ERROR

well here is the code

CODE

x = 1200
puts "Before the loop, x = #{x}"

3.times do|y:x|
  puts "Looping #{y}"
  x = y
end

puts "After the loop, x = #{x}"

CODE
--

-- 
Posted via http://www.ruby-forum.com/.
(Continue reading)

Joel VanderWerf | 1 Oct 2010 03:59
Picon
Gravatar

Re: The beauty of Ruby through examples

On 09/30/2010 07:48 AM, Regis d'Aubarede wrote:
> def printTree(tree,indent)
>   if (Array === tree)
>       tree.map { |child| printTree(child,indent+"|  ") }
>   else
>       puts(indent.gsub(/\s+$/,"--")+tree.to_s)
>   end
> end
> printTree([1,2,[11,22,[111,222,333,444],33],3,4],"")

IMO this is more idiomatic:

class Object
   def recursive_print indent = ""
     puts indent.gsub(/\s+$/,"--") + to_s
   end
end

module Enumerable
   def recursive_print indent = ""
     map { |child| child.recursive_print indent+"|  " }
   end
end

[1,2,[11,22,[111,222,333,444],33],3,4].recursive_print


Gmane