234645-238016

234369-248843 subjects 234804-236863

const initialization
234645 [dweldon@gm i] I think ruby does something strange when it decides if certain constants
+ 234651 [gavin@re in ] It has nothing to do with constants in particular, but (as you were
+ 234656 [ara.t.howard] require File.expand_path('const')

Struggling With RubyGems
234646 [james@gr yp ] I can't seen to query or install gems over here.  Is anyone else
+ 234647 [jameskilton@] ...
+ 234648 [gavin@re in ] *** REMOTE GEMS ***
  234657 [cremes.devli] Mine is broken since I updated to 0.9.1 today.

RubyGems 0.9.1 problem (was Re: Struggling With RubyGems)
234649 [ruby@an hr p] I'm getting the same thing after upgrading to 0.9.1, and on gem install or
234655 [james@gr yp ] This does appear to be related to my upgrade to 0.9.1.  Downgrading
234659 [dgoodlad@gm ] I had the same issue. Deleting the 'source_cache' file from my gems
234667 [james@gr yp ] Doing that with a 0.9.1 install does restore the ability to query.  I
234668 [tim.pease@gm] James, did you clear out the source_cache for root?
234669 [tim.pease@gm] Never mind.  There is only one source_cache :/  Doh!
234671 [james@gr yp ] Actually, I originally cleared ~/.gem/source_cache.  When you
234682 [drbrain@se m] Please archive your source cache and send it to me, should you have
+ 234686 [james@gr yp ] $ gem sources
| 234689 [drbrain@se m] oh, also 'sudo gem sources'
| 234769 [james@gr yp ] $ sudo gem sources
+ 234760 [lyle.johnson] I am still having this problem, although I have not zapped my various
  234773 [jperkins@sn ] FWIW, I was having the same problem, but sudo gem sources appears to

Rubygem's gemri broken?
234658 [GGarramuno@a] 0.9.0
234681 [drbrain@se m] Please try with 0.9.1.
234833 [GGarramuno@a] Same error.
235040 [drbrain@se m] ok, please file a bug.
235082 [drbrain@se m] Sorry, ruby older than 1.8.5.

local interprocess communication ideas.
234661 [jameswmills@] I am currently developing a simple controller.  It consists of a GUI
+ 234666 [bg-rubytalk@] How responsive are we talking about here?  Do you need "twitch" video
| 234672 [paulo.koch@g] Be lazy! Write a XML/RPC version (if you think it's not a lot of
+ 234691 [ian.dacek@gm] Depending on the size of your messages, why not use UDP and your own
| 234736 [gwtmp01@ma .] The TCP overhead is there for a purpose.  UDP is an unreliable
| + 234745 [piet.haderma] Not sure what your platform is, but check
| + 234850 [ian.dacek@gm] That's generally true of UDP, especially between two remote hosts
|   234870 [gwtmp01@ma .] Memory allocation/starvation issues can cause lost UDP packets even
|   238016 [jameswmills@] Thanks to everyone who had ideas on this one.  I love mailing lists.
+ 234758 [reid.thompso] what OS?

Securley Transmit Data
234690 [has.sox@gm i] ...
234697 [jan.svitok@g] If you implement it correctly, this is the "standard" approach
+ 234700 [benjohn@fy h] *snip*
| 234703 [has.sox@gm i] I thought about just doing the communication over ssl, but I want to
+ 234702 [has.sox@gm i] Great Thanx for your input.  I'll have a read of these thread asap.
  234704 [has.sox@gm i] I did find these threads prior to posting.  I'm still no clearer on
  234706 [benjohn@fy h] I generally look for documentation for the underlying library when the
  234713 [has.sox@gm i] I'd better get my egg cup ;)

Loading screens
234692 [walkerhunter] This is a random question, but I am a noob.  Can anyone recommend some
234729 [schapht@gm i] What kind of application?
234764 [walkerhunter] Just a website for a small number of users.  Any sort of active

printing 2 dimensionl hash problem
234694 [krekna@gm il] key = A, value = [1,2,3]
+ 234695 [botp@de mo t] #----------------------------------------------------------
| 234708 [krekna@gm il] Thank you for your explanation!
+ 234698 [benjohn@fy h] @h.each do |key,value|
  234709 [krekna@gm il] Thank you very much, my answer was posted before I read this.

RubyForge offline
234707 [tom@in oe he] RubyForge went down at 0433 this morning.  I'm investigating now.

[BLOG] Concurrency models
234714 [pit@ca it in] In this blog post
234740 [gwtmp01@ma .] What does this mean for portability between different implementations
234774 [gwtmp01@ma .] Ah.  That makes it much clearer.  Thanks.
234778 [wilsonb@gm i] They definitely are not. Given that fine-grained locks in library code
234807 [gwtmp01@ma .] What does 'They' refer to in your comment?  The core classes or the
234822 [wilsonb@gm i] I meant the stdlib. The core classes are largely written in C, and

Some help with script
234715 [smitsr@gm il] I am not good with ruby , but I must change something in a script. Can
234719 [shortcutter@] I don't understand: the script reads already "Date.today - 1".  So what
234724 [smitsr@gm il] I got it,
234727 [paulo.koch@g] Ahem.. What's on that line?

Hash#open! / Hash#close!
234720 [transfire@gm] class Hash
+ 234722 [robert.dober] ...
| 234728 [transfire@gm] No, I think I'd rather it default to a nominal { |x| x } block, or
+ 234723 [shortcutter@] What's the advantage over an OpenStruct?
+ 234753 [ara.t.howard] the only real disadvantage i see is that all these
| 234765 [transfire@gm] actually they are made private in my implementation (well, ones with
| 234892 [robert.dober] ...
+ 234928 [erikveen@gm ] What about this one? It uses my personal, small, generic
  234929 [erikveen@gm ] That was easy... ;]

Ruby 2.0 joint Ruby/Perl/Python backend ?
234721 [surfunbear@y] At the back of the Nutshell book it mentions a possibilty of a joint
+ 234755 [micathom@gm ] I think there is a difference between having an interpreter running in
| + 234770 [charles.nutt] Jython already compiles to bytecode. I've been working on JRuby's
| | 234783 [micathom@gm ] Well, I vaguely remember some papers explaining why the CLR is better
| + 234772 [ben@bl yt in] I don't think this is true... it's just (relatively) primitive.  My
+ 234799 [rdm@cf l. om] The Perl 6 back end is called Parrot (a Monty Python reference, FWIW).

[SUMMARY] Number Spiral (#109)
234725 [james@gr yp ] I had trouble with this problem when it appeared on Code Golf.  It seemed easy

[ANN] Call for Presentations: RubyKaigi 2007
234731 [shintaro.kak] Here's the call for presentation for the RubyKaigi2007,
236853 [ko1@at ot ne] This mail is a reminder of RubyKaigi2007 CFP :)

Ruby text editor for beginner
234732 [shawnw@in er] I'm looking for a simple text editor for Ruby to work under WinXP SP2.
+ 234734 [reid.thompso] see http://homepage2.nifty.com/sakazuki/rde_en/index.html
| 235059 [shawnw@in er] I've tried RDE but once again run code window doesn't work. This is the
+ 234737 [schapht@gm i] While not a text editor, I'd recommend eclipse.  It's default scheme
| + 234746 [shawnw@in er] Can you both confirm (ie used yourself) that RDE and Eclipse can execute
| | + 234748 [olsonas@gm i] Eclipse with RDT can indeed execute code as long as you point it at the
| | | 235062 [shawnw@in er] This is similar to what I had to do to get Scite's program running pane
| | | 235064 [ snk@gn .o g] The console used by most of these editors (except VimMate, which embeds
| | | + 235207 [grauenwolf@g] I'm willing to bet that most of them don't understand how to effectively
| | | | 235374 [helder@gm il] That's exactly right. I'm good using REPL for simple scripting, but I
| | | | 235379 [james@gr yp ] A big project is just a ton of little projects, once you chop it up.
| | | | + 235445 [helder@gm il] Yes, but sometimes you can't chop it up so fine-grained that you have
| | | | | + 235451 [rhkramer@gm ] I am not a very experienced Ruby programmer, but what I find helps in that
| | | | | | 235783 [helder@gm il] Hey, great idea! I'm so used to the default mode using bash that I had
| | | | | | 236000 [rhkramer@gm ] You're welcome--hope it helps!
| | | | | + 235453 [james@gr yp ] I think it's harder for some projects than others, but I'm not
| | | | | | 235785 [helder@gm il] On Jan 22, 11:55 am, James Edward Gray II <j...@grayproductions.net>
| | | | | + 235638 [martindemell] irb(main):001:0> [1,2,3,4,5].each {|a|
| | | | + 235457 [james@gr yp ] isnumber=36124&arnumber=1717338&count=20&index=7
| | | + 235245 [shawnw@in er] Okay, thx. I added that line and it worked fine, so there's nothing
| | | + 235305 [renard@nc rr] The wirble documentation talks about .irbrc file which obviously  I do
| | |   235328 [wilsonb@gm i] You can't. Not because you can't have a .irbrc file (You just need to
| | |   235331 [dean.gvozdic] ...
| | + 234749 [reid.thompso] RDE does
| |   234752 [reid.thompso] Eclipse is nice.  It is LARGE.  It offers the option of multiple
| + 234893 [solaris@su d] What do you mean by "auto completion"? Defining templates and using
+ 234779 [numberwhun@g] ...
+ 234867 [nlloyds@gm i] ...
+ 234876 [ snk@gn .o g] Have a look at VimMate before going to Vim. It's just a wrapper around

Is the RubyForge web server down?
234733 [pbailey@bn .] I've been trying all morning to install "fastercsv" on my server, but,
+ 234735 [codeblogger@] ...
+ 234738 [tom@in oe he] and will post back here if I have any big news.
| 234742 [tom@in oe he] Back online now, crash was due to a kernel panic.
| 234834 [phurley@gm i] Just want to send out a big thank you, for all the hard work and quick
| 234836 [tom@in oe he] You're quite welcome!
| 234932 [codeblogger@] ...
| 234933 [tom@in oe he] No problem, thanks!
+ 234741 [greg.kujawa@] Methinks so. Same here...
  234743 [pbailey@bn .] Thanks, guys. I'll check later. . . .

Ruby and Python, questions (not a flamewar!)
234744 [olsonas@gm i] I've been using ruby for the past 6 months and I must say I am extremely
+ 234761 [markhaliday@] Python has a large library.  Ruby's library is good and growing but it
| + 234792 [mgreenly@gm ] I don't share this opinion.  I think Ruby (maybe more slowly) would of
| | 234911 [gareth.adams] As much as I don't like pointing out spelling mistakes, I can't help correcting
| + 234794 [robert.dober] ...
+ 234780 [johnsyntax@y] I think the battleground is web apps.   Right now you can leverage all
+ 234781 [aledonne.lis] I'll address the one with which I have first-hand experience...
+ 234786 [msoulier@di ] In my opinion, it's quite simple. Documentation.
+ 234803 [GGarramuno@a] Ok, this is subjective, so take it with a grain of salt, but...
| 234877 [w_a_x_man@ya] For more on LuaJIT, see the thread
+ 234872 [gsinclair@gm] Citation needed :)
| 234879 [jameshcunnin] Well, according to Tim O'Reilly, as late as last August Ruby was
+ 234946 [johnsyntax@y] Seems like the language barrier puts about a 5-10 year lag on it.
| 234951 [rtilley@vt e] language has greatly influenced every programming language. Everything seems to
| 235055 [tomp@ea th i] C and Unix are not concepts, but artifacts.   And, on the scale of
| 235414 [threeeyedfis] Good day!
+ 234954 [fxn@ha hr f.] Perl compiles to high-level bytecodes, for instance map or grep are
| 235034 [fxn@ha hr f.] Yeah I know, but I guess that's orthogonal to having high-level
+ 235611 [paddy3118@ne] Maybe your confusion on Python''s status is linked to your belief that

Fwd: Ruby Quiz 109 Summary
234747 [james@gr yp ] I made a huge mistake this morning and summarized a quiz that Bob

Reading an HTTPResponse line by line
234751 [m_lists@ya o] how can I read a response from an http server line by line?
+ 234754 [ara.t.howard] require 'stringio'
+ 234756 [dale.martens] require 'net/http'
  234768 [m_lists@ya o] In every case (your way or the StringIO way) it looks to me that the
  234771 [ara.t.howard] just give the post method a block.  for instance, although google doesn't
  234891 [m_lists@ya o] Ok, but that's what I did in the first place, but it doesn't allow
  235408 [dan-ml@da 42] chunks are made out of lines; it's not so difficult to process each
  235420 [m_lists@ya o] Ok, that's what I was looking for!

Qtruby and Qwt
234757 [fredrik.joha] I am trying to set up a "live" plotting in my Qtruby application (see
234777 [caleb@ae -t ] It's not documented greatly, unfortunately, but it should work.  Your past posts
234793 [richard.j.da] No, it does work with Qt3 QtRuby too. I had some problems with parsing
234896 [fredrik.joha] ./configure --with-smoke="qt" --with-qt-dir=/usr/local/qt
234905 [richard.j.da] Ah bother, Caleb was right - it looks like I never did a Qt3 version. I

mod_ruby security
234759 [parragh@da k] ...

fastthread crash (Was: Re: building Ruby with dmalloc)
234762 [mental@ry ia] require 'fastthread'
+ 234767 [mental@ry ia] Actually ... that turns out to not be the problem.  The thread is killed
+ 234785 [mental@ry ia] It turns out that the fastthread crash is due to a bug in the Ruby

dynamically adding options to select tags
234775 [josh.m.sharp] The set up is this:  Throughout the page I have a certain drop-down

[ANN] Ruby Reports 0.7.1 : CSV Bugfix
234784 [gregory.t.br] consumption issue[0] in CSV output.

How to deploy a Ruby executable?
234788 [rmmarsh@fa t] I have looked everywhere and can't find answers to the following
234798 [olsonas@gm i] Take a look at the rubyscript2exe gem, it packages your script along
234801 [rmmarsh@fa t] Thank you... now, can you tell me where all of this is documented?
+ 234840 [renard@nc rr] download the gem and read the documentation ... it does what you want
+ 234841 [renard@nc rr] download the gem and read the documentation ... it does what you want
  235009 [rmmarsh@fa t] In the docs folder for ruby gems (C:\Program
  235020 [erikveen@gm ] ...

embedding: ruby vs. lua
234791 [shea@nu l. e] I need an embedded scripting language.
+ 234795 [jtregunna@bl] I tried to send this offlist, but it failed, so my apologies if some
+ 234810 [shea@nu l. e] I am in the process of writing a minimal C++ program, which would do the
| + 234859 [garthy_lmklt] Hey Shea,
| + 234864 [w_a_x_man@ya] Be sure to try LuaJIT.
| + 234970 [ shot@ho .p ] Please do!
+ 234812 [gavin@re in ] I use Lua almost daily in my work, and have written moderate-sized
| 234819 [james@gr yp ] * No bitwise operations without a library when last I looked.  That
+ 234835 [kallen19918@] If you are looking at lua and c++ be sure to check out luabind, it makes

Re: Concurrency models
234796 [djberg96@gm ] Very interesting stuff, especially in light of the fact that I was just
234821 [wilsonb@gm i] Actually, that syntax is from the original paper that introduced STM.

auto assign arguments?
234800 [dchelimsky@g] I see where to put bugs and patches, but this is a feature request. Is
+ 234808 [gwtmp01@ma .] Well, you can get pretty close...
+ 234809 [invalid@gm .] Try the following.  Note that it does not actually set @thing and @other
| 234897 [shortcutter@] You can even do
+ 234815 [james@gr yp ] #!/usr/bin/env ruby -w
+ 234816 [pit@ca it in] class C
| 234820 [ara.t.howard] require 'rubygems'
| 234824 [dchelimsky@g] Thanks for all the responses, but I'm really looking for something
+ 234826 [djberg96@gm ] I could have sworn Paul Brannan did this as part of RubyTreasures, but
  234830 [james@gr yp ] I would really be against that.  If you do that, there's no point in
  + 234832 [gregory.t.br] +1,
  | 234839 [gwtmp01@ma .] The code below uses instance_exec from ruby 1.9. It will still work
  | 234842 [dchelimsky@g] Wow. You guys are all coming up w/ great alternatives, but would
  | + 234843 [gregory.t.br] -1.  I see @a and @b to be part of the classe's instance variables, so
  | | + 234844 [gregory.t.br] <whoops>
  | | + 234855 [dan-ml@da 42] class C
  | |   235045 [gregory.t.br] Hmm... you're right.  I can see that now (and have used it!)
  | |   235056 [paulo.koch@g] Ok, this isn't quite an answer, but why not using editor macros?
  | + 234918 [robert.dober] ...
  | + 234919 [dblack@wo bl] That was proposed as an RCR and rejected; see
  |   + 234922 [robert.dober] ...
  |   | 234925 [matz@ru y- a] I haven't changed my mind (yet).  And I even disallowed above code in
  |   | + 234926 [robert.dober] ...
  |   | + 234955 [dchelimsky@g] Matz,
  |   |   234957 [matz@ru y- a] I thought (and I still think) it is a good idea to separate method
  |   |   + 234958 [dchelimsky@g] Very helpful. Thanks for the clarification.
  |   |   + 235072 [dan-ml@da 42] That's interesting. Would you mind sharing your insight on why these should be
  |   |   | 235108 [matz@ru y- a] I attached the code snippet to the last post.  If it doesn't appeal
  |   |   | 235112 [dchelimsky@g] Hear, hear!!!!
  |   |   + 235089 [robert.dober] ...
  |   |     235099 [dchelimsky@g] Thinking about this some more - I wasn't proposing this become part of
  |   |     235100 [robert.dober] ...
  |   |     235102 [robert.dober] ...
  |   + 234937 [djberg96@gm ] Hm, no reason given, but one of the things I don't like about it is the
  + 234838 [djberg96@gm ] Hm, you're probably right.
threads.html
top