238706-313943

238527-245556 subjects 239003-332340

using YAML as config
238706 [ribs@ac .o g] I want to write a config file in YAML.  In this file I will store a
+ 238715 [vjoel@pa h. ] Here's the only way I know to do this (I'm not sure if add_domain_type
| 238859 [ribs@ac .o g] Wow Joel - that's a lot of code and a lot to digest.  I'm going through
| 238860 [vjoel@pa h. ] It's nice to know that _why's much simpler code works. The other stuff I
| 250649 [rover.rhubar] So I come to the part of my little app where I want to load and save a
| + 250651 [gdonald@gm i] json?
| | 250760 [rover.rhubar] Thanks all, for the effort made in replying. I'm pleased to see some
| | 250781 [james@gr yp ] I think mine is an unpopular opinion among Rubyists, but I find XML
| | 250906 [rover.rhubar] Amen. I might not have agreed with you had I just read about YAML, but
| + 250667 [ara.t.howard] there are simpler ways, but here is one that quite simple and also quite
| + 250669 [why@ru y- an] class Channel
| + 250670 [rover.rhubar] - I meant DomainType, not dynamic type
| + 250676 [james@gr yp ] class Channel < Struct.new(:name, :id)
+ 238719 [why@ru y- an] class Company

Camping Install -Without Gems
238709 [wilsom8@rp .] Hey!
238722 [chad@ch df w] Looks like you're missing the camping.rb file which the camping script

[ANN] ActiveRecord::Extensions 0.4.0 Released
238713 [zach.dennis@] Whats New?

How can I change the default font size in tk?
238714 [wangdong2@gm] root = TkRoot.new do
238716 [wangdong2@gm] I found TkOptionDB.add( "*font", "{Lucida Sans Unicode} 10" ) works°◊•„but
238721 [wangdong2@gm] TkFont.configure('TkDefaultFont', 'family' => 'Lucida Sans Unicode', 'size'

URI.extract issue
238723 [transfire@gm] require 'uri'

Win32OLE doesn't work with Outlook Express?
238727 [ning.bao@su ] I am trying to retrieve some mails from my Outlook Express mail-box.
+ 238728 [masaki.suket] Yes. because Outlook Express does not provide the OLE automation
| 238905 [ning.bao@su ] Your message is really helpful!
+ 238747 [dave@bu t. d] Outlook Express doesn't have a COM interface.
  238909 [ning.bao@su ] Thanks for your link.

getting client ip address
238730 [smathe2@ho m] whats the best way to get a client ip address. I am using rails if that
+ 238784 [jalilsan@gm ] ...
+ 238920 [no@sp m. le ] It does - you need the socket, and if you're in a Mongrel hiding behind
| 292589 [john.ogara@m] If you're please behind a mongrel cluster you can use
+ 292621 [jamesk@id um] Use the remote_ip method of the request object. It looks for forwarded

[ANN] Erubis 2.2.0 release - a fast eRuby implementation
238736 [kwa@ku at -l] I have released Erubis 2.2.0.

Guidelines for combining FP and OO with Ruby
238738 [ruby_admirer] ...

Ruby and CLIPS expert system shell
238740 [kubilayisik@] Is it somehow possible to use Ruby with CLIPS expert system shell?
238789 [lyle.johnson] but it looks like that never went anywhere. IMO, you'd probably have

Re: Testsuite for #113
238741 [robert.dober] ...
238854 [robert.dober] ...

embedding if statements in upto function.(newbie question)
238746 [michael.scha] Thank you to everyone for all of your help.
+ 238753 [B.Candler@po] Why don't you give some sample data, and show what happens when you run it.
| 238761 [B.Candler@po] I expect the problem is that a[x][y] contains a string, not an integer.
+ 238774 [jeremymcanal] Let's clean your syntax up a little bit first...

[ANN] Ruby-GNOME2 Win32 GUI Installer
238748 [mutoh@hi hw ] I released the new Ruby-GNOME2 Win32 GUI Installer for

What is Proc#==
238750 [sylvain.joye] From the description,
238767 [invalid@gm .] My guess would be that a and b were created in different contexts, and
238878 [george.ogata] Actually, since blocks are closures, the x is the same variable in
238880 [bofh@so tm d] it is worth noting the "address" of the empty proc being 0 (NULL? :)
+ 238893 [efine145-nos] Here's the C code for proc_eq (in eval.c). It seems that the procs have
| + 238897 [efine145-nos] Incidentally, the reason why lambda {} == lambda {} may be because all
| | 238984 [bofh@so tm d] Thank you for your insight! It's clear now. /me has to remember to always take
| + 239004 [gwtmp01@ma .] Here are a few other ways that seem to be analogous to clone/dup
| + 239064 [george.ogata] Hmm, so my earlier comment about empty blocks was wrong.  You can
+ 239065 [george.ogata] Hmm, where does it say that?  Module#===(obj) checks that

Re: embedding if statements in upto function.(newbie questio
238757 [michael.scha] Thanks Brian, I appreciate the help.
238766 [michael.scha] Brian,
238779 [michael.scha] thank you very much.  I had an issue with the string.  I adjusted the

Just a really general Question...
238770 [derek.teixei] hey guys,
238772 [jeremymcanal] is powered by Ruby.  It runs sites like 43things and Amazon's UnSpun.
238776 [derek.teixei] Your reply helped a little bit.. i guess what i really need to figure
+ 238780 [shortcutter@] I guess then reading through a basic tutorial (or book) will help you.
| 238936 [derek.teixei] By chris, you are referring to Chris Pine, right? Your reply realy
+ 238787 [marksweiss@y] One incredibly oversimplified/overgeneralized response to this is,
| 238937 [derek.teixei] Mark,
+ 238793 [vazqujav@gm ] i really have no idea what
  238938 [derek.teixei] I actually used the Head First series for HTML and CSS. I really like

Windows Language
238778 [andre.nho@gm] Is it possible to find the Windows natural language (ex. English,
+ 238783 [slamboy@gm i] ...
| 238811 [jan.svitok@g] I have no such variable set (XP SP2).
| 238817 [jan.svitok@g] (The table is inwin32utils/windows-pr as well).
+ 238818 [andre.nho@gm] require 'Win32API'
  238828 [slamboy@gm i] ...

Running Java from Rails
238788 [vazqujav@gm ] Does anyone know of a possibility to run Java-Classes out of RoR (e.g.
+ 238790 [olsonas@gm i] Coming from Java, let me tell you that coding the "complex stuff" in
| 238799 [vazqujav@gm ] You're right, but I think bytecode is probably faster then interpreted-
| + 238806 [alex@bl ck e] Thought I'd just weigh in here...
| | 238808 [jeremymcanal] Or, optionally, Ruby can work with Solr, a Lucene based search service.
| + 238820 [richard.conr] This is premature optimisation. Which in engineering terms is a great
+ 238791 [sam@po er ou] I don't know if there is such a way, but I think that you'd be losing
+ 238795 [adam@th re l] I'm using RJB[1] to call a Java RMI client that talks to our backend
+ 238814 [mguterl@gm i] ...

== operator - How does it work?
238796 [bruparel@me ] class Song
238801 [chris.hulan@] Note you have 'song1 == song1' which is of course true.
238809 [bruparel@me ] Sorry for the bother.  I thought I was typing in song1 == song2 and

Ruby thread question
238804 [zach.buckhol] I have a script that goes thru each server in the environment and

== operator - How does it work? (revert Re: Ruby thread question)
238807 [chris.hulan@] Get your own thread! 9^)

ActiveRecord::Extensions Question
238819 [olsonas@gm i] After a discussion of using ActiveRecord for data validation, it became
238846 [jeremy@bi sw] ...
+ 238848 [olsonas@gm i] Jeremy -
+ 238855 [olsonas@gm i] Follow up question: is there a way to install these "plug-ins" without

make test-all fails
238841 [farrel.lifso] I've compiled the Ruby source from trunk (r11707) but make test-all is
238843 [farrel.lifso] I'm on Linux (Gentoo) if that helps.

GtkDialog with GdkWindow as parent
238842 [doktormadsen] I am trying to create a Gtk::MessageDialog with a win32 window as its
238941 [mutoh@hi hw ] The error message means "Use Gtk::Window instead of Gdk::Window".
238990 [doktormadsen] Thanks, Masao.

What's the best way of parsing this string?
238849 [dhoefler@gm ] ...
+ 238853 [jameskilton@] ...
| + 238858 [dhoefler@gm ] ...
| | 238862 [paradisaeida] REXML gets you into the structure of xhtml (compliant) docs.
| | 238870 [dhoefler@gm ] ...
| + 238945 [robert.dober] ...
|   238947 [angus@qu va ] Your advice of using a non greedy match is good, but the example using a
+ 238872 [halostatue@g] I haven't used it yet, but I hear really good things about Hpricot.
  238879 [bofh@so tm d] i've used it[1], i needed to pull out some statistical data off a bunch of

[OT] OCaml Summer Project
238851 [david@gr ys ] Firstly, my apologies for the off-topic post, but many of the admirable

[ANN] Sup 0.0.7 released
238867 [wmorgan-ruby] Sup version 0.0.7 has been released!

Israeli Technion, Haifa Ruby users?
238869 [sonoflilit@g] ...
240010 [alder.green@] Nice to meet an Israeli Ruby user. Could we possibly arrange a phone

Https and non-valid certificates
238873 [barjunk@at g] I'm trying to screen scrape a linksys device that I have, but because

Programmierer gesucht
238877 [info@km -m d] F?r die Entwicklung einer Online Community suchen wir einen erfahrenen

translucent window
238882 [timid.gentoo] I'm writing an application that sometimes notifies the user of certain
238885 [gavin@re in ] Will this be on a single operating system, or multiple?
238887 [timid.gentoo] It is for a single OS. And most probably might be one of GNU/Linux. Now,
238890 [gavin@re in ] I don't know much about the various GUI toolkits, but I know that they
239269 [timid.gentoo] Thanks for the pointers.

Re: win32 unicode filename support?
238883 [djberg96@gm ] Since File.open isn't redefined in win32-file, it won't make a
238889 [djberg96@gm ] At the moment, no.
313941 [jkubos@am er] Is there any new progress in support of unicode filenames? Plans?
313943 [billk@ct .c ] I went with a crude workaround.  In our case, we're embedding ruby into

[ANN] Milwaukee RUG Meeting 2/21/07 @ 5:30 to 7:30
238886 [tdjordan@gm ] John Miller has graciously stepped up to give us

Converting Word Documents (and other types of files) to PDF in a rails application
238888 [brendon.muir] I'm currently developing a Rails content management system, and one of
+ 238894 [ara.t.howard] i'd reccomend one of three approaches
| 238914 [brendon.muir] Thank you both for your informative replys.  :) I like the idea of an
+ 238943 [cdcarter@gm ] I think the best way might be to use RJB or JRuby and Jakarta

"super" bug
238892 [ribs@ac .o g] I misused the "super" keyword and I think I should have received an
+ 238896 [ara.t.howard] sure it is
| 238904 [ribs@ac .o g] Ah, right...it invokes the specified method on whatever happens to be
+ 238903 [apeiros@gm .] as "a" already pointed out, super is a method call. I'd like to add,

can we write the code version control system.
238895 [senvenit2003] Can We write the code in Ruby to know the Frequently changing classes in
+ 238898 [johnwilger@g] I, for one, have absolutely no idea what you're trying to ask here.
+ 238960 [tim.pease@gm] If you know Python best, sure!
+ 239023 [drosihn@gm i] ...
+ 239295 [drbrain@se m] SVN post-commit hooks?  yes.

ruby code for version control system
238899 [senvenit2003] Can We write the code to find which classes or data's are Frquently

Use Ruby for  version control system.
238900 [senvenit2003] Can We write the code in Ruby to know the Frequently changing classes in

ruby-version control system
238901 [senvenit2003] Can We write the code in Ruby to know the Frequently changing classes in
238902 [jmettraux@op] thrice... please stop bombing this list...

ruby/apache 2/win
238906 [manchokapita] I am a PHP developer but recenetly I started reading about Ruby and now
238981 [renard@nc rr] This site has what you want.

rubyscript2exe for Unix ?!
238907 [Gilbert.Rebh] i'm using rubyscript2exe a lot on Windows,
+ 238913 [jeroen.wolff] Gilbert,
+ 238923 [erikveen@gm ] Which flavor of Unix? ("The Unix" doesn't exist...)
  238927 [Gilbert.Rebh] The flavor is AIX, a commercial Unix derivat by IBM
  238929 [sonoflilit@g] ...
  238931 [Gilbert.Rebh] /*
  + 238934 [sonoflilit@g] ...
  + 238940 [neleai@se na] On Feb 13, 12:18 pm, "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>

hanging in a client server threaded program
238908 [rajsahae@gm ] I was having a buffered IO problem which I solved using IO.ready?, but

[QUIZ] #113 One-liners
238911 [bruno@ex el ] this is my solution. I found the first one-liner hard, and I'm not

Re : [ANN] One-Click Ruby Installer for Windows: 185-22 Final
238912 [ruby_admirer] ...
238935 [ml.chibbs@gm] ...
238939 [ruby_admirer] ...
239028 [ml.chibbs@gm] ...

Re: the funniest thing ever
238924 [koflerjim@ma] Maybe some projects such as http://www.haxe.org or
238925 [sonoflilit@g] ...
238928 [koflerjim@ma] The web site/article has been updated just recently, i. e. "Last updated

Problem with File.mv
238930 [Gilbert.Rebh] running Ruby 1.8.4 under Windows 2000
238946 [chris.hulan@] On Feb 13, 6:16 am, "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
238948 [Gilbert.Rebh] /*
238949 [Gilbert.Rebh] sorry forgot, if i use def recurse with =
238950 [Gilbert.Rebh] OK, after a test on a local drive =
+ 238956 [ara.t.howard] # untested - should work though...
| 239081 [Gilbert.Rebh] */
| 239082 [ara.t.howard] d.glob(f.join(src,'*')){|e| p e => dst;  fu.mv e, dst}
| 239086 [Gilbert.Rebh] /*
| 239131 [chris.hulan@] On Feb 14, 2:51 am, "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
| 239134 [Gilbert.Rebh] /*
| 239135 [chris.hulan@] On Feb 14, 11:10 am, "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
+ 238959 [chris.hulan@] On Feb 13, 10:19 am, "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>

Template Engine in Ruby (similar to TT2)
238958 [ralfrobert@w] is there a template engine similar to Template Toolkit 2 (in Perl) available for Ruby? It should be feature-rich, stand-alone, not restricted to only generate HTML output.
+ 238961 [jameskilton@] ...
+ 238970 [jeff.barczew] ...
+ 238976 [gavin@re in ] I'm not familiar with Perl or TT2. However, I will say that ERB (that

New Venture
238965 [jason@te ch ] All,

OS X RubyGems installation question
238968 [jonathan@wa ] sudo ruby setup.rb
+ 238969 [rubytraining] I've never tried intalling updated Ruby versions or RubyGems *over*
+ 238987 [drbrain@se m] rbconfig is located in /path/to/ruby/lib/1.8/<platform>/
  238991 [jonathan@wa ] Eric,
  238995 [stahlmann@de] Jonathan,

Extracting sub elements in array
238973 [wai-kee.chun] Is there a fast way to return a subsection of an array object as there
+ 238974 [tim.pease@gm] testArray.map {|x| x[-2..-1]}
+ 238980 [pabs@pa lo r] require 'matrix'
  238983 [wai-kee.chun] Thanks,
  238996 [tim.pease@gm] def section( rows, cols )

Non-English characters
238978 [thiago.arrai] Has anyone seen a non-english characters library for Ruby walking
+ 238986 [angus@qu va ] You could use the "unicode" library, by  Yoshida Masato.
+ 238988 [fxn@ha hr f.] Iconv.iconv('ascii//ignore//translit', 'utf-8', str)
+ 238994 [pabs@pa lo r] require 'iconv'
  239002 [fxn@ha hr f.] require 'iconv'

Ruby, OO newb, subclassing question
238992 [saleo@be ls ] I am a Ruby, OO newbie. I mostly work with databases. I am trying to use
+ 238999 [pabs@pa lo r] [snipped]
+ 239000 [ramalho@gm i] It does return a file, but you don't do anything with it... initialize

Question about rb_cvar_set
238993 [djberg96@gm ] Ruby 1.8.5 p12
239066 [george.ogata] If you poke your nose into the rb_cvar_set() function, you'll see it's
239124 [djberg96@gm ] Ah, thanks George. It looks like you're supposed to test for the

[OT] Re: One-Liners (#113)
238997 [SimonKroeger] just wanted to note that there seems to be not a single message
239001 [james@gr yp ] Yes, Robert's messages are sent as multipart/alternative.  Here's the
+ 239017 [robert.dober] ...
+ 239047 [SimonKroeger] Sorry for not reading that before, i wasn't aware of that resource.
  239080 [robert.dober] Thanx
  239088 [SimonKroeger] Yes!
  239090 [robert.dober] Great; great, thx to you and apologies to the list for the noise.
threads.html
top