8-172872

subjects 169-370

JEdit Ruby Plugin does not Code Complete ?
0008 [Roseanna80@h] Code Complete (Intellisense) is not working for my JEdit Ruby Plugin ?
0038 [rob.02004@gm] If anyone else has this problem please let me know.
0100 [Roseanna80@h] Ok, so now that you have replied, I boot up, and find that Code

Re: Instant Rails 1.0 preview7 -- with Typo!
0013 [drnicwilliam] InstantRails is a developer's delight! I wasted a good day
0015 [ml.chibbs@gm] Great...  Thanks for letting me know!
0022 [jimg1968@ya ] Tried the previous version and it's terribly;-)  good!
0052 [ml.chibbs@gm] Its been a learning experience for me. Before I started this I knew

[SUMMARY] Kalah (#58)
0025 [james@gr yp ] Both sides of the Kalah board are the same, with only the numbers of the slots
0085 [adam.shelly@] There's nothing like a code review to make you see ways to improve your code...
0087 [james@gr yp ] Hey, I like that.

Re: Forthcoming 2nd ed. of _The Ruby Way_
0032 [doug00@gm il] I'd recommend the exact opposite.  If you ignore the libraries and GUI
+ 0037 [fxn@ha hr f.] I agree with the other poster about the expectations the title
| + 0041 [gene.tani@gm] "100 pages deleted": does this mean Rb vs. perl/python sections are
| | + 0049 [gjblomquist@] I also especially like chapter 5.   Definitely a chapter on
| | | 0066 [gdonald@gm i] Is that the plan?  Seemed to work well for the Rails book.  I'd
| | | 171054 [hal9000@hy e] I don't think the publisher has any plan of such. In fact,
| | | 171062 [agorilla@gm ] I'm sure you know all of this, but just the same...
| | | + 171066 [pat.eyler@gm] It might also be worth pointing out that other programmers are doing
| | | + 171083 [james_b@ne r] * In contrast to offering a free online version (if even only prior to
| | |   + 171090 [kevin.jackso] I think that the problem here is that with digital content of any kind,
| | |   + 171139 [agorilla@gm ] Without a doubt, it would, but I think it would be a tough sell to
| | |     + 171158 [james_b@ne r] I've had authors tell me they would never again offer a book for free
| | |     | 171181 [adam.s@co ad] I find that having a print book does several things for me: It lets me
| | |     + 171198 [perrin@ap th] I tend to think that a reduction in future sales isn't so much what
| | + 171044 [hal9000@hy e] Probably so. Those were longer than I intended in the first place.
| + 170973 [ptkwt@ar cn ] Exactly, or different little books like the Pragmatic folks are doing.  GUI
+ 0054 [james_b@ne r] Coding applications in Ruby without taking full advantage of what makes
| + 0102 [gavri.fernan] 'The Ruby Way' handles metaprogramming and other advanced topics in a
| | + 0104 [wilsonb@gm i] Yep. 100% agreement.
| | + 170975 [ptkwt@ar cn ] I guess I'm pushing for this shift of focus in The Ruby Way because it's
| | | + 170980 [phurley@gm i] Shifting the focus of the thread a little bit, but what would your
| | | | + 170984 [agorilla@gm ] I _really_ like that list.
| | | | + 171128 [hgs@dm .a .u] * Integration Testing
| | | + 171049 [hal9000@hy e] I am very appreciative of your comments, but this isn't going to be that book.
| | |   172797 [warrens@ac c] Here on the ruby-talk list we've all gone through the pickaxe book and I've gone through
| | |   + 172803 [james_b@ne r] Doubtful.  There are newcomers on this list all the time, people who may
| | |   | 172872 [perrin@ap th] I second that -- especially since, though I've gone through most of the
| | |   + 172823 [rosco@ro co ] Still waiting to get my hands on the print version though (just as soon as
| | + 170977 [ptkwt@ar cn ] Sorry for replying twice, but I wanted to get to this idea of translating
| | | 170983 [gavri.fernan] The Pragmatic Programmers are doing it
| | + 171006 [james_b@ne r] I'm not arguing for Hal to change the direction of the book, just
| |   + 171014 [gavri.fernan] The book is called "Ruby for Rails" and the subtitle is "The Ruby you
| |   | 171036 [dblack@wo bl] Hmmm... that subtitle is actually a bit off: it's "Ruby techniques for
| |   + 171077 [hal9000@hy e] Agreed! I am eager to get my hands on that. I think it will be a
| + 171072 [ruby-ml@ma i] I would say the best approach would be to introduce ruby idioms
|   171126 [hal9000@hy e] Haha... thanks for the vote of confidence, but I don't necessarily
+ 170969 [ptkwt@ar cn ] I'm not necessarily talking about 'learning programming for programming's

Re: Runt: Matching the year
0034 [Mlipper@do t] Well, strictly speaking you could use a DateRange constructed

LDAP from ruby
0047 [pedroarnal@g] I have a little program that needs to run on windows, linux and AIX.
+ 0048 [greg.kujawa@] Personally I ran into problems getting Ruby's LDAP package to compile
| 0073 [Daniel.Berge] I just tried.  First, pass "--with-wldap32" to extconf.rb.  If you get a
+ 171053 [heron@jp .n ] I've had no trouble with ruby, openldap libs and gcc from cygwin.

Easy Duck-Typing
0053 [daniel.schie] This will make it easier to add type checking to your methods. Let me
+ 0058 [dblack@wo bl] This may be useful to you, but it isn't duck typing.  In fact, it
| + 0079 [mark.ericson] I've pondered if duck typing is about an object being able to respond
| | + 0095 [dblack@wo bl] def x(a)
| | | 0096 [ara.t.howard] what is the sound of one duck flapping?
| | | + 0105 [dblack@wo bl] Meow.
| | | + 0108 [tanner.burso] ...
| | + 171071 [ruby-ml@ma i] The smallest set of methods that are required for a
| + 0107 [daniel.schie] I guess you're right, I actually realised it moments after i sent the
+ 0076 [eric.mahurin] Like David said this is basically the opposite of duck-typing.  The

Help with fcgi installation
0056 [francisv.lis] install.rb: entering config phase...
0062 [rasputnik@gm] Sounds like that's the problem - you should have a ruby.h file
171098 [francisv.lis] I have XCode 2.1 installed already. Where do I find the location of
171188 [ruby-forum-r] I do not know how OSX works, so try the *x way;
171466 [francisv.lis] Thanks Eero, I was able to install it finally.

rdoc -> pdf
0059 [michael.schw] I think it would be great to have a pdf that had a synopsis of every*
0090 [halostatue@g] The Pickaxe2 has a PDF version available for purchase from the
170982 [gregory.t.br] Ugh. This sounds like something that may need to go into Ruport.  I

Assigning a block to a variable in Ruby
0064 [ajmayo@my de] I am new to Ruby and curious as to how you emulate the following
+ 0068 [pertl@gm .o ] Maybe you are looking for something like that?
+ 0069 [erlercw@gm i] Blocks that are objects are called procs, in Ruby (class Proc).  To
+ 0072 [erlercw@gm i] Ruby will usually wait until code is actually run to check if
+ 0075 [erlercw@gm i] There are two ways to do this: the block variable way and the normal
+ 0077 [logancapaldo] ...
| 0082 [ajmayo@my de] WRT forward references. My code was just
| 0086 [pertl@gm .o ] there is no such thing as compilation in javascript or ruby...
| 171141 [ajmayo@my de] Technically, Ruby is really an 'incremental compiler'. That there is no
| + 171177 [sethrasmusse] Then... possibly you should add such clarifications if yours are in
| | 171186 [gwtmp01@ma .] I assume you mean Ruby garden (http://www.rubygarden.org/ruby)?
| | 171201 [perrin@ap th] "Possibly Wikipedia could benefit from some clarification in its
| + 171270 [jeff@sc wa c] Don't forget "dynamic translation," a la Smalltalk.  Code is compiled
+ 0078 [ajmayo@my de] Amazing!. Couldn't be more than 10 mins since I posted and 3 replies!.
| + 170951 [erlercw@gm i] It's a Kernel (which has a bunch of generally useful methods, like
| | 171076 [collinsj@se ] ...
| + 170995 [mreed@th re ] That's because there's no automatic correlation between the class Proc and the
|   170999 [dblack@wo bl] Except... they're not quite identical, and actually as of RubyConf
|   171043 [gwtmp01@ma .] This is an area that has been a bit fuzzy for me.
|   171132 [dblack@wo bl] And for many of us :-)
|   171149 [gwtmp01@ma .] Thanks for the clarifications Dave.  I wonder if some sort of
+ 0081 [martindemell] Ruby does not do this.
| 170997 [mreed@th re ] More specifically: in Ruby, unlike Python and JavaScript, methods are *not*
| 171011 [martindemell] Actually, what I meant was that ruby does not store the source code of
+ 0088 [zoso@fo on e] a =3D lambda {some block}
| 0092 [pertl@gm .o ] what eternal goal do you want to achieve
+ 171000 [mental@ry ia] a = lambda { |p| WScript.Echo(p) }

Detect Browser Dimension
0065 [ceedub.indus] Dear all,
+ 171005 [akonsu@gm il] CGI is a code that executes on the server. the server does not know
+ 171050 [collinsj@se ] One way to do this would be to use Javascript's screen.width and
  171073 [adam.s@co ad] A more modern approach would be to use an AJAX request to send the

[ANN] Net::Netrc 0.1.0
0070 [bob_showalte] parsing.
171300 [mailing-list] That's great.  I think that we need something like this in the stdlib

system() failed with $?==32512
0091 [slitt@ea th ] I have a program too large to post a code snippet, and my system()
170979 [adam.shelly@] The exit codes are set by the program that you were called with

Re: system() failed with $?==32512 <SOLVED>
0094 [slitt@ea th ] Dooohhh! My ruby program, which is a menu system, first creates
170986 [bob_showalte] Note that 32512 is 127 << 8.

Did the numbers for this list get reset?
0097 [dblack@wo bl] I just noticed that my last post to ruby-talk has mail-count number
170950 [matz@ru y- a] Somehow a file contains sequence number corrupted on 2005-12-15
171064 [nobuyoshi.na] Old articles 1-112 were lost?  Seems blade has lost them too.
171183 [mental@ry ia] Ugh... probably because they were "overwritten" by the mis-numbered
+ 171190 [gwtmp01@ma .] for the moment they are in the google cache...
| 171194 [nightphotos@] I should have backups of all these articles.  I can check when I get
| 171276 [nightphotos@] I do have backups of all these files, as .htm files that I used 'net/http'
+ 171229 [chneukirchen] .oO(can this be exploited by faking the X-Mail-Count number?)
  + 171234 [mental@ry ia] So long as this message doesn't have a Mail-Count of 10101010, we're OK.
  + 171236 [mental@ry ia] Possibly... it looks like the listserv doesn't strip existing
    171238 [mental@ry ia] (the archives are okay, since they ignore all but the first)

comp.lang.ruby FAQ
0098 [hal9000@hy e] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2005-4-14)

setting  serial port settings
0099 [dperkins@fr ] I'm writing a simple script that talks to a device on a PC serial port.  I
+ 170985 [adam.shelly@] I don't know if you can do it directly from ruby, but you can use a
+ 170991 [levin@gr nd ] `stty -echo raw ospeed 38400 ispeed 38400 < /dev/ttyS0`

comp.lang.ruby FAQ
0101 [hal9000@hy e] RUBY NEWSGROUP FAQ -- Welcome to comp.lang.ruby!  (Revised 2005-4-14)

adding any <text/> to a rexml doc (bump)
0103 [ara.t.howard] is there know way to do this
+ 171013 [clr10.10.ran] I am not sure, what you want to do, but perhaps
| 171035 [ara.t.howard] element.text =
| 171081 [ezra@ya im -] Ahh thats what the non matching regex was for...
| 171095 [ara.t.howard] caught in the act... mine worked.. but it wasn't nice looking ;-)
+ 171070 [ruby-ml@ma i] Perhaps it is time to try Builder or htree? :)
  171094 [ara.t.howard] i can't stand the builder api.  htree is good - but i'm not looking for a
  171096 [ruby-ml@ma i] Very nice! (Well, sans underscores:)
  171097 [ara.t.howard] glad you like the look of it.  i struggled with the underscore thing and

challenge - regex which matches nothing
0110 [ara.t.howard] this is the best i've come up with
+ 0111 [dblack@wo bl] /[^\w\W]/
| 170960 [ara.t.howard] hmmm.  seems to work.  clever.
+ 170955 [rforum@gm il] %r/\z\A/ ?
| 170961 [ara.t.howard] close
+ 170956 [erlercw@gm i] /\1/ seems to work.
| 170963 [ara.t.howard] you win the golf contest i think... that seems to be the shortest possible...
| 170964 [bob_showalte] /.^/
| 170965 [ara.t.howard] it's 'smaller' too...
| 170967 [perrin@ap th] . . . and "cuter".
+ 171206 [meta@po ox c] I think you mean 'a regex which doesn't match anything'; surely
  + 171209 [james@gr yp ] No, he meant a regex that always fails.
  | 171211 [ara.t.howard] lol!
  | 171228 [reinder@ve l] <nitpick>That never happens in Ruby. =~ returns nil if the expression
  + 171210 [ara.t.howard] indeed i did - but i thought that a subject like that would lead to people

Re: ruby 1.1d0 released
0113 [matz@ne la .] Yep, several more bugs were reported in ruby-list, which is Japanese

socket.so fails to load in ruby 1.1d0
0114 [julian@im ji] another error, ``require "socket"'' fails. The following is an example.

STDIN integer assignment
0115 [julian@im ji] in the following script, how would I be able to have the input along the
+ 0116 [ozawa@ai of ] Use regular expressions.
+ 0117 [watanabe@as ] ans1, ans2 = STDIN.gets.split.collect {|x| x.to_i}
+ 0118 [c.hintze@gm ] ans1 = ans2 = nil


0119 [julian@im ji] Thanks for your rapid (and varied) solutions ;-)

finished simple script
0120 [julian@im ji] Greetings,
0121 [gotoken@ma h] Humm... I can't find such situation for the above script :-(
0122 [julian@im ji] I don't know. Yesterday 1 * . gave 32.. but then yesterday this script
0123 [gotoken@ma h] To consider the problem, I tried as follows.

"Compiled" .rb's
0124 [crowdog@si c] Yes, I am a newbie....
0130 [matz@ne la .] Ruby compiles the source into syntax tree internally, like Perl.  But
0132 [icimjs@lo p.] I second that. De-scrambling may be pretty easy, but it will deter the
0135 [julian@im ji] eek..

Binary distribution
0125 [icimjs@lo p.] is there a binary Ruby distributuion available for Win95?
0126 [crowdog@si c] Yes.  Go here: ftp://ftp.tokyonet.ad.jp/pub/misc/ruby/pc/

very very NEWbie
0127 [crowdog@si c] Ok,  I'm having trouble with an extremely simple class.
0128 [crouton@du l] attr_accesser :v
0129 [matz@ne la .] class ABC
0133 [behrends@cs ] Hmm. I've used attr_accessor (with an "o" instead of an "e") so far,
0136 [matz@ne la .] Sorry, accessor is a typo.

[Q]: English version of Ruby-Manual as printable version?
0131 [c.hintze@gm ] I search a printable version (LaTeX, PS, ...) of the english version of
0134 [gotoken@ma h] It's a pity that I've never seen such matters.

swig & ruby?
0137 [crowdog@si c] has anyone created a swig (http://www.swig.org/) module for Ruby?
0139 [matz@ne la .] I'm planning to make something to help extension generation.  It maybe

Thread Problems
0138 [behrends@cs ] I have been looking at the thread implementation of Ruby for the past
+ 0144 [matz@ne la .] Hmm, I didn't realize that problem.  Let me think about it.
+ 0164 [matz@ne la .] I inspect for the problem.  In conclusion, as for 1.2, the script

ruby 1.3 released
0140 [matz@ne la .] I have released experimental version 1.3, which comes next to
0141 [c.hintze@gm ] ???????
+ 0142 [gotoken@ma h] Well, According to their discussion...
+ 0143 [matz@ne la .] Oh, I forgot to mention that stable version 1.2, which is a sucessor

Win32 callback into Ruby code?
0145 [crowdog@si c] I have not seen this anywhere for Ruby but I was
0151 [matz@ne la .] Well, Ruby can objectify blocks and methods, but you can't get C

calling a Ruby function from C?
0146 [crowdog@si c] What I am wanting to accomplish is like a callback.
+ 0147 [matz@ne la .] rb_funcall(obj, id, nargs, ...)
+ 0150 [shugo@ai ne ] You can use a Method object to pass a Ruby function to C function.

inability to load extension modules in 1.2, core dump
0148 [julian@im ji] Ok.. 1.1d9 worked with no problems, and no significant or relevent changes
+ 0149 [c.hintze@gm ] Please perform a "ldd miniruby", "ldd ruby" and "ldd socket.so" in the
| 0152 [julian@im ji] ...
| 0159 [c.hintze@gm ] Okay now the bad news! I don't find any fault. I think the warnings on
+ 0157 [matz@ne la .] OK.  Show me your platform information, please.  config.h maybe work
  0158 [julian@im ji] I am running OpenBSD 2.4 on an i386. config.h is as follows..

undefined method 'call'... help please
0153 [crowdog@si c] Yes, it's me again.  Mr. Newbie.
0154 [matz@ne la .] Ok. Could you show me the source of the extension, at least for the
0155 [crowdog@si c] // START HERE
0156 [matz@ne la .] Thank you.  But I don't get it.  The AppInit function seems not

Happy new year!
0160 [c.hintze@gm ] happy new year wishes from Germany to you all!
0161 [gotoken@ma h] Greetings!
0162 [matz@ne la .] I really really hope so.
0163 [gotoken@ma h] =begin

Makefiles and -lcurses
0165 [julian@im ji] I want to compile the curses extension with -locurses rather than
0166 [matz@ne la .] Makefiles are automatically generated in the compilation process.
0167 [Klaus.Schill] Makefiles and -lcurses
0168 [julian@im ji] OpenBSD has ncurses and it's own ocurses, and I prefer the latter.
threads.html
top