Curt Hibbs | 1 Jul 2003 01:43

Re: wxRuby License

Luke A. Guest wrote:
>
> Just wondering, what's the license for wxRuby? Can it be commercially,
> etc?

Well, haven't really discussed it, but I have always assumed we would do the
same thing we did with FreeRIDE -- use the Ruby license. So, it can be used
commercially.

Curt

Ian Macdonald | 1 Jul 2003 01:50

anonymous classes

Hi,

Could someone please explain to me the concept of an anonymous class?

I'm talking about this construct:

class << Foo
...
end

I'm having a hard time understanding the books and figuring out when I
might actually want/need to use this.

Ian
--

-- 
Ian Macdonald               | Keep cool, but don't freeze.   -- Hellman's
System Administrator        | Mayonnaise 
ian <at> caliban.org             | 
http://www.caliban.org      | 
                            | 

Josef 'Jupp' Schugt | 1 Jul 2003 02:01
Picon
Picon
Gravatar

Re: Using & for arrays of objects

Saluton!

* Guillaume Marcais; 2003-06-30, 20:45 UTC:
> You can speak latin with PERL:

>         use Lingua::Romana::Perligata;
          ^^^

> Isn't grand?

'use' isn't latin, is it?

Gis,

Josef 'Jupp' Schugt
--

-- 
Someone even submitted a fingerprint for Debian Linux running on the
Microsoft Xbox.  You have to love that irony :).
                               -- Fyodor on nmap-hackers <at> insecure.org

Josef 'Jupp' Schugt | 1 Jul 2003 02:01
Picon
Picon
Gravatar

Re: Message catalogs (I18N) overnight hack...

Saluton!

> Besides, a name like tputs will lead the reader subconsciously to
> think that something unusual is happening, when it is really (in
> effect) just a puts.

I can only speak of me but my concept of localization is 'translate 
the text and *then* output the result' where translating is the hard 
task that needs extra care and the output simply works. To reflect 
this concept there has to be a function that translates the text.

Besides that intellectual problem there is also a practical one: If 
the output of localized and unlocalized texts precisely looks the 
same this can result in very hard to find errors. If you use a 
function call for translation the forgotten 'require' automatically 
results in an undefined function error.

> In other words, I want translation to be as transparent and 
> behind-the-scenes as possible.

Maybe some day I will understand why 'opaque' and 'transparent' are 
synonyms in the field of programming.

Gis,

Josef 'Jupp' Schugt
--

-- 
Someone even submitted a fingerprint for Debian Linux running on the
Microsoft Xbox.  You have to love that irony :).
                               -- Fyodor on nmap-hackers <at> insecure.org
(Continue reading)

Chad Fowler | 1 Jul 2003 02:21

Re: anonymous classes

Ian Macdonald wrote:

>Hi,
>
>Could someone please explain to me the concept of an anonymous class?
>
>I'm talking about this construct:
>
>class << Foo
>...
>end
>
>I'm having a hard time understanding the books and figuring out when I
>might actually want/need to use this.
>
>Ian
>  
>
This may be a good starting point:

http://www.rubygarden.org/ruby?ClassMethods

Chad

Tom Felker | 1 Jul 2003 02:25
Favicon

Drag and Drop in Windows with Explorer

I need to make a Windows program with RXRuby that batch processes audio
files, after the user drags them from Explorer to the program's window.

This works easily in Linux, I just accept "text/uri-list".  I was trying
to find the Windows equivalent, so I wrote some code to list the offered
types, which also works great in Linux.  But in Windows (I tried XP and
98SE), when dragging files from Explorer, I don't even get a
SEL_DND_MOTION.  My code is attached.

Is it possible to get dropped files in Windows, and if so, how?

Thanks,
--

-- 
Tom Felker <tcfelker <at> mtco.com>
#!/usr/bin/env ruby

require "fox"
include Fox

class FileDropper < FXMainWindow

	def initialize(app)
		super(app, "FileDropper", nil, nil, DECOR_ALL, 0, 0, 200, 150)
		dropEnable

		connect(SEL_DND_DROP) do
			puts "\nSEL_DND_DROP"
			puts getDNDData(FROM_DRAGNDROP, FXWindow.urilistType)
(Continue reading)

Peña, Botp | 1 Jul 2003 02:33

Re: ruby tutorial

John Johnson [mailto:jj5412 <at> earthlink.net] wrote:

> > Where can I get ruby tutorials that explains OO concepts (I've read 
> > the axe and am still reading the rubyway, but still cannot find 
> > samples).
> 
> Maybe this will help:
> 
> http://www.johnjohnsonsoftware.com/ruby/oop/index.htm

Hi John,

that was a cool and simple tutorial (as if you read my mind :-), and the
page is simply fantastic and clean. Did you write the page by hand or did
you use some web package? It even renders beautifully on opera and mozilla.

note: thanks also to james for the comprehensive list of books, and the rest
of the gang.

>  JJ

kind regards -botp

Harry Ohlsen | 1 Jul 2003 02:53

Re: Drag and Drop in Windows with Explorer

Hi Tom,

Sorry, I don't have an answer to your question. I had a quick play with this some time back and didn't get anywhere.

If you get the code to work under Windows, can you post the final version to the mailing list?

Cheers,

Harry O.

Lyle Johnson | 1 Jul 2003 03:05
Picon

Re: wxRuby License

Curt Hibbs wrote:

> Well, haven't really discussed it, but I have always assumed we would do the
> same thing we did with FreeRIDE -- use the Ruby license. So, it can be used
> commercially.

Just a side note: since wxRuby depends implicitly on the wxWindows 
libraries,  you may need to see how (or if) wxRuby is affected by the 
wxWindows license (http://www.wxwindows.org/newlicen.htm).

John Johnson | 1 Jul 2003 03:53
Picon
Favicon

Re: ruby tutorial

on 6/30/03 8:33 PM, Peña, Botp at botp <at> delmonte-phil.com wrote:

> John Johnson [mailto:jj5412 <at> earthlink.net] wrote:
> 
>>> Where can I get ruby tutorials that explains OO concepts (I've read
>>> the axe and am still reading the rubyway, but still cannot find
>>> samples).
>> 
>> Maybe this will help:
>> 
>> http://www.johnjohnsonsoftware.com/ruby/oop/index.htm
> 
> Hi John,
> 
> that was a cool and simple tutorial (as if you read my mind :-), and the
> page is simply fantastic and clean. Did you write the page by hand or did
> you use some web package? It even renders beautifully on opera and mozilla.
> 
> note: thanks also to james for the comprehensive list of books, and the rest
> of the gang.
> 
>> JJ
> 
> kind regards -botp

I did it in AuthorIT. You can create MS help files, web pages, word
documents for printing, etc. all from the same input file. I haven't used it
in a while, but it was a nice program.

--

-- 
(Continue reading)


Gmane