250487-319991

250267-276285 subjects 250713-254283

dynamically named variables or Constants
250487 [ruby-talk@hi] for each user I need to create and call
250490 [stefano.croc] I'm not sure about what you mean when saying 'a way to
250496 [ruby-talk@hi] thanks for your advice.
250497 [stefano.croc] I can't understand why you get an error. I modified your code just a bit (by
250514 [ruby-talk@hi] it's not working for me.
250518 [logancapaldo] You guess is in the territory, but it's not really about session's
250527 [ruby-talk@hi] Creating a new constant from session data still doesn't work.
250530 [logancapaldo] ...
250566 [ruby-talk@hi] thanks for the hint.
250591 [logancapaldo] ...
250625 [ruby-talk@hi] ok, thanks.
250655 [rick.denatal] My weapon of choice when I want to pull out the big guns is

fixnum, range and array into one single loop?
250498 [kazaam@ol co] I'm struggeling with writing a little script. It has a loop just e.g.
+ 250500 [shortcutter@] How about
| 250505 [shortcutter@] def my_loop(x,&b)
+ 250501 [TimHunter@nc] Assuming that userinput can only be a Range, Array, or Fixnum...both
  250511 [kazaam@ol co] I took Tim's answer because it's faster and much smaller and my loop had

VIM and IRB
250502 [frank.fische] my favourite editor for programming is Vim. When editing some ruby-scripts I
+ 250516 [logancapaldo] Nice, this may become my new favorite toy. Thanks!
+ 250524 [btguthrie@gm] Much simpler but not nearly as cool, and I don't know if others do the
  250683 [psyonic@gm i] ...

Simple Q: bit string -> integer
250504 [toddkennethb] Is there a simple way to induce a bit string into an
+ 250507 [list.push@gm] Try this
| 250508 [toddkennethb] Yes, thanks a bunch.  For some reason, #to_i was the
+ 250510 [flori@ni e. ] "10010000".to_i(2)
  250512 [toddkennethb] "num" as in my brain is "numb" from staring at 1's and 0's.

[ANN] R-Bus 0.2.0, now with winDBus support
250523 [kristoffer.l] R-Bus 0.2.0 was released today, featuring support for winDBus thanksto patches from Cezar S Espinola.

ruby programming for the web
250538 [seti_out@tq ] (i do not pretend to use RoR)
250545 [seti_out@tq ] cgi.assign = ( ".rhtml" => "/usr/local/bin/eruby" )
250561 [B.Candler@po] Although I think that each page hit will spawn off a completely new Ruby

Ruby Plugins
250539 [ari@ar br wn] hey
250543 [avdi@av i. r] What do you mean by "plugin"?  The term "plugin" has no single defined
+ 250550 [dangerwillro] You mean write a plugin for an application? but you want to know if
+ 250688 [ari@ar br wn] An add-on to applications, such as TikiWiki and the like.

Creating a Ruby OS X app bundle containing Gems with Platypus?
250546 [sleight42@gm] First I found rubyscript2exe which has the wonderful benefit of

[RAILS] passing by value of object of a model
250551 [arjun4ruby@g] ...

Re: passing by value of object of a model
250553 [sxain@ho ma ] I know how to do it for RoR.
+ 250558 [alexg@ku cr ] The 'const_get' method will return a constant given a symbol (use
+ 250574 [arjun4ruby@g] ...
  250641 [lloyd@2l ve ] While I agree with the extreme grooviness of Ruby for Rails,
  + 250643 [fxn@ha hr f.] Some are documented in the API, the Agile documents also some of
  + 250645 [Rob@Ag le on] Well, these are calls from ActiveSupport which is one of the pieces

separate Chinese and English! with Ruby
250557 [sxain@ho ma ] Don't get me wrong, because I just want to know how to separate English
+ 250570 [akbarhome@gm] a = File.open('a.txt') a.each {|x| puts x.split(' ', 2) }Output:ຬʦΤMorgan Freemanۻ۰Bruce WillisLee xiao ming
| 250571 [akbarhome@gm] a.each {|x|
| 250575 [sxain@ho ma ] Thanks.
| + 250588 [list.push@gm] Or this
| + 250592 [akbarhome@gm] should get you done.
| | + 250603 [dangerwillro] You could identify the encoding or just make it unicode, then check
| | | 250606 [sxain@ho ma ] John Joyce, Thank you for your explanation.
| | | 250609 [dangerwillro] yes, that's pretty much how unicode is supposed to work.
| | | + 250631 [sxain@ho ma ] You are right. And let alone the characters, there is a different set of
| | | | + 250636 [dangerwillro] there is a doc.
| | | | | 250738 [sxain@ho ma ] Many characters of these two set of Chinese(in fact, including Chinese
| | | | | + 250739 [eden.li@gm i] Nooo! Those are the first BYTES of the UTF-8 encoding of thepunctuation that you listed.  MANY Unicode characters (when encoded inUTF-8) can start with those bytes, so if you remove them from a givenstring, you're going to get back a poorly encoded UTF-8 string whichwill is definitely not what you want.
| | | | | + 250747 [dangerwillro] Yes. There is lots of overlap. So there is not always a clean
| | | | |   250749 [rubyzbibd@ub] Here is an API that might help "guess" if the text is Japanese, Korean or
| | | | + 250656 [dangerwillro] NZ,
| | | | + 250660 [dangerwillro] NZ
| | | | | 250736 [rf.oodanaw@s] The Absolute Mininmum Every Software Developer Absolutely, Positively
| | | | + 250734 [eden.li@gm i] ri String#[]
| | | |   250751 [sxain@ho ma ] => "大????"
| | | |   + 250758 [skoot@id ic ] =20
| | | |   + 250782 [hramrach@ce ] irb(main):001:0> s = "Ҽ asdfaf sdgs"=> "\345\244\247\346\231\272\350\213\245\346\204\232 asdfaf sdgs"irb(main):002:0> s.unpack "U*"=> [22823, 26234, 33509, 24858, 32, 97, 115, 100, 102, 97, 102, 32,115, 100, 103, 115]irb(main):003:0>
| | | |   | 250800 [sxain@ho ma ] Michal, Thanks!
| | | |   | 250804 [dangerwillro] NZ, could you share your final combined code? It might be useful to
| | | |   | 250988 [sxain@ho ma ] I do think it will be much helpful, because it only solve a very
| | | |   + 250854 [eden.li@gm i] This code just splits the string at any separator listed in c (no
| | | + 250737 [rubyzbibd@ub] If the goal is to separate the western languages from the Japanese
| | + 250604 [sxain@ho ma ] => "中?? English Words"
| + 250647 [gthomas@ta a] I believe the range is (in hex) 3400 to 97A5
+ 250572 [skoot@id ic ] Maybe a regexp similiar to
+ 250576 [list.push@gm] Try something like this.
  250601 [sxain@ho ma ] !!!!below code were tested under Ruby on Rails console!!!

HTML formated Ruby code
250563 [felipe.contr] Does anyone knows how all that beautiful HTML formated Ruby code on
+ 250565 [akbarhome@gm] On May 7, 3:58 pm, "Felipe Contreras" <felipe.contre...@gmail.com>
+ 250569 [peter@pe er ] ...
+ 250595 [james@gr yp ] I've hand edited most of the code on that site for various reasons,
| 250795 [felipe.contr] Thanks!
+ 250612 [lists@le di ] I don't know how they did it, but you can run
+ 250672 [jeremy@hi eg] You could also try CodeRay http://coderay.rubychan.de/
| 250904 [gavin@re in ] I've been wanting to write a Lua scanner for CodeRay, but haven't been
+ 250886 [come.news@fr] For my HTML output, I use the ScreenShot plugin with vim. It comes

command interpretation
250581 [krischik@us ] I searched high and low to find how "command interpretation" actually
+ 250587 [shortcutter@] Use system with multiple arguments.  I think that should help.
+ 250611 [B.Candler@po] In the mail you sent, I saw character \264 (octal) where there should be a
| 250731 [krischik@us ] Another good reason to retire back ticks.
+ 250614 [kbloom@gm il] What kind of quote is a  ? It doesn't work out to be a backquote when I

Custom Software Development
250583 [vb@it ch rt ] iTechArt Group - Custom Software Development and Offshore outsourcing

Natural language detection library
250589 [thomas.nitsc] does anyone know a Ruby library/module to detect which natural language
250596 [micathom@gm ] [1] http://xxx.uni-augsburg.de/format/cond-mat/0108530
250799 [thomas.nitsc] thx, I don't have a clue how it works, but it's great ;-)
250871 [micathom@gm ] You need some base corpus/sample (I use the GPL License) for each
250884 [thomas.nitsc] Sorry, I meant I have no idea how the algorithm is working. The code

Re: [Rails] passing by value of object of a model
250600 [dchelimsky@g] Unless I'm missing something (which is usually the case :) ), there
250615 [arjun4ruby@g] ...
250638 [pergesu@gm i] Pat

unsubscribe
250613 [nickblack1@g] ...
250994 [veeramca@gm ] unsubscribe

Re: A question for people with English OS
250620 [roseanne@ja ] The user/reader machine needs to install Chinese/Japanese fonts to see
+ 250623 [list.push@gm] Now I am confused.
+ 250626 [list.push@gm] OK. I guess I get it.
  250633 [dangerwillro] This is also true. If you don't have any fonts for a particular
  + 250709 [list.push@gm] Thanks, everybody.
  | 250796 [peter@se an ] I use OS X with all the fonts installed. The biggest problem I have is
  | 250985 [jwkenne@at g] Browsers aren't supposed to guess. That IE guesses simply means that IE
  | + 251019 [hramrach@ce ] It may be viewed as refusal to follow standards and encouraging bad
  | | 251022 [dangerwillro] True that it would be nice if the user-agent could alert that the
  | | 251025 [hramrach@ce ] That's not a problem. The message that the page is broken in some way
  | + 251274 [rick.denatal] Not that I'm a Microsoft apologist in general, but this seems to fall
  + 250756 [hramrach@ce ] I am not sure about the permissions on the Windows fonts folder.
    250790 [dangerwillro] xhtml is not one thing there are several varieties at this time.
    250986 [jwkenne@at g] Neither does HTML 4 strict. Or HTML 3.2. W3C has /never/ wanted frames.

Why is my method not found? (NoMethodError)
250621 [kazaam@ol co] I have written a small tcp scanner procedural and wanted to change it to
250624 [sleight42@gm] Your problem is that there is way too much nesting within your
250628 [sleight42@gm] Sorry.  Neglected to provide the literal answer to your question.
250629 [kazaam@ol co] many thanks !! now I could fix it with your help (there was a further
+ 250630 [jameskilton@] ...
+ 250635 [dangerwillro] Code folding is one way. In TextMate for example, it is easy to see
| 250704 [wuzongsheng@] It's a good habit that just writed *end* after you had writen "class,
| 250705 [james@gr yp ] I feel it's a much better idea to use an editor that handles that
| 250707 [wuzongsheng@] Certainly, this is a good idea, though i dont use this kind of
+ 250725 [sleight42@gm] The first question that I ask myself when I start to nest deeploy is

[ANN] Vim/Ruby Configuration Files, 2007.05.07
250627 [dougkearns@g] G'day folks,

Meeting Announcement - New Haven Ruby Brigade
250634 [novakps@gm i] This Wednesday, May 9th, is the second Wednesday of the month--so it's

Ruby and Eclipse
250637 [lloyd@2l ve ] Greetings!
+ 250640 [damnbigman@g] ...
+ 250642 [kmitchell@fa] ...
+ 250644 [michael.s.kl] Consider trying dltk for Ruby, they have a great type inference

Net::SSH performance question.
250646 [just_a_techi] I am using Net::SSH to execute scripts on a remote server.  The script
250659 [robert.dober] Hmm there is one question I would have? What do you need as

Live Coding in Ruby?
250648 [ac251404@oh ] I was wondering if anyone here has run across references for Live Coding
+ 250654 [kyleaschmitt] You mean like using IRB?
| + 250657 [jeremymcanal] I think he means for electronic music, but I dont know of anything for
| | 250661 [kyleaschmitt] oOoh..  So find a midi library, require 'some/midilibrary' and and go to it ;)
| + 250724 [ac251404@oh ] I know about IRB and it is probably part of the answer...
|   250728 [nbqxnbq@gm i] How about rjb(ruby java bridge) + jsyn ?
+ 250767 [cdcarter@gm ] woudl work with RJB to if I put some effort into it.  Currently you
+ 319961 [macarui@gm i] Posted via http://www.ruby-forum.com/.
| 319969 [fekete@me ko] well you maybe heard about OpenAL project (same as OpenGL, just the 'A'
+ 319991 [chris.lowis@] It's a live performance orientated MIDI generation tool. Have a look at

ulaw audio over network
250662 [eclubb@va co] Does anyone know of a good way to stream ulaw audio (read from a file)
250740 [eden.li@gm i] It looks like this is a pure #sleep issue and has nothing to do with
250743 [B.Candler@po] Regardless of how well Ruby's sleep worked, this would still be inaccurate

Configuration Options in a new gem
250663 [peer@ca ad d] I am learning how to create my own gems today, but I have not been able

Ruby Performance - LOW ?
250665 [hkchao@gm il] Any thoughts on this?
+ 250668 [robert.dober] You bet, I believe that the list roughly divides into three groups
+ 250684 [khaines@en g] This has been beat to death in the past.  Check out the archives.
| 250697 [just_a_techi] I still think that this is due to the fact that ruby is a very young
+ 250710 [igouy2@ya oo] 1) Look at a different list
| 250808 [just_a_techi] Considering that I often choose to spawn children from my programs, i
| 250877 [shortcutter@] Please do not top post.  Thank you!
| 250968 [just_a_techi] Sorry about that, I meant environments that I work on.  i'm a QA
+ 250812 [lloyd@2l ve ] I find no value to this list.  First, I remember when the same kinds of
+ 250836 [rsfree3@ya o] Good question. This will bug the heck out of the Rubyists... But...
  + 250837 [seebs@se bs ] I just didn't find Python as appealing.  YMMV.
  + 250979 [w_a_x_man@ya] Hey, J.  I heard that attempting to program in
  | + 250980 [alex@bl ck e] <snip unpleasantness>
  | | 250983 [mday@ma .c m] You don't actually need the "0," part there.  "for i in range(40):"
  | | 250984 [alex@bl ck e] I realised that - it wasn't part of the spec, though :-)
  | + 251005 [rsfree3@ya o] Please, let's try and be civil.
  |   251010 [diam@en ta f] Just, and also try: "Cobol programming jobs"
  |   + 251077 [just_a_techi] "Ruby programming jobs" 5 results
  |   | 251178 [felipe.contr] Results 1 - 10 of about 3,360 for "Python programming jobs"
  |   + 251078 [rsfree3@ya o] I think you meant the "new" Cobol ie "PHP Programming"... Now that is
  |     + 251124 [eleanor@ga e] No flame intended, but is the Python world ready for the potential
  |     + 251177 [felipe.contr] Sure, Python has a bright future because there are binding for
  + 251125 [eleanor@ga e] You've obviously not been paying attention...

rdoc on c and cpp files
250677 [rayvinly@gm ] Can I use rdoc to generate documentation for c and C++ sources?  If
250680 [seebs@se bs ] *AHEM*.
250687 [dangerwillro] What PS is saying is, unless you're using a really old compiler and
250689 [seebs@se bs ] It's been "int" since the first C compilers.  There's some platforms
250694 [dangerwillro] Perhaps it has. Doesn't matter since when. There are and were
250698 [_mwryder@wo ] I know the free Borland C++ compiler accepts void main().  I always used
250700 [rayvinly@gm ] On May 7, 7:29 pm, "Michael W. Ryder" <_mwry...@worldnet.att.net>

Configuration Options in a new gem
250681 [peer@ca ad d] I am learning how to create my own gems today, but I have not been able

DTrace and Ruby
250685 [rasputnik@gm] Any Solaris users on the list might want to check out
+ 250696 [john.carter@] Indeed there is...
+ 250822 [linguist@gm ] ...

RubyForge statistics
250701 [transfire@gm] Anyone else notice FLVTool2 suddenly marched up into the top 10
+ 250717 [bauer@mm ul ] You are so right.  I'm working on just a beast right now.  You can
+ 250719 [bauer@mm ul ] You are so right.  I'm working on just a beast right now.  You can
  251752 [transfire@gm] Look forward to seeing it. (Though no RailsConf for me.)

Difference answers from Terminal, TextMate, and BBEdit
250702 [user@li kL N] A newbie here trying to develop one of Pine's tutorial scripts. Ruby v1.8.6
250706 [TimHunter@nc] It would help if you'd post your script, what answers you expected, and
250711 [email@li kL ] #!/usr/bin/env ruby
+ 250716 [dzwell@gm il] Greg,
+ 250718 [m_goldberg@a] There seems to be too problems with your code.
  250722 [email@li kL ] Duh. Thanks.
  + 250730 [sepp2k@go gl] Yes. The to_i method is called on user_input, its result is passed as an
  + 250761 [m_goldberg@a] You _could_ use a case here, but it would have to be considerably
    250777 [B.Candler@po] That's incorrect. Case doesn't check if 'year' is true; it checks whether
    250798 [m_goldberg@a] Beg to differ with you. This is a case with no argument. It doesn't
    250805 [B.Candler@po] Ugh, you're right. It doesn't even compare against $_.
    250826 [m_goldberg@a] AFAIK, a case statement without a target can always be rewritten as a

How to send a secure email (maybe PGP)?
250703 [h.dunnil@gm ] In an application I have to send an email containing a Credit Card
+ 250757 [hramrach@ce ] There are some encryption functions in openssl. Hopefully the ruby
+ 250834 [DPhillips@cy] There's a perl CGI called Soupermail that does this.  It uses a shell

threads output/execution question
250712 [tiberiu.moto] I have a ruby multi-threaded application and I don't understand its
250755 [shortcutter@] robert
250817 [tiberiu.moto] Thanks so much for your answer. Actually even with your code I had the
threads.html
top