376499-377045

376317-377184 subjects 376685-377200

^ proctable library bad install
376499 [roman.mandel] I have installed sys-proctable gem on linux but when I run a
+ 376521 [jonas pfenni] is rubygems loaded before your require("sys/proctable") ? If not, then
| 376522 [roman.mandel] Thanks for the reply , can you elaborate a bit where to add that =
| 376524 [jonas pfenni] irb
| 376525 [roman.mandel] [root@ip-10-112-63-225 script]# irb
| 376532 [roman.mandel] Found it , I should include rubygems in the file also, on linux on
| 376547 [jeremy bopp.] You may be running different versions of Ruby on Windows and Linux.
+ 376556 [roman.mandel] That's right , thanks Jeremy , now I understand what's going on.

^ Trigger HTML event using WIN32OLE
376502 [druglee 163.] I'm currently using WIN32OLE object to test my Web pages. What I need to

^ More gems than CPAN modules?
376503 [shortcutter ] Question is whether they are comparing apples and oranges...
+ 376504 [peter.hicks ] Or rubies and perls.
+ 376507 [djberg96 gma] cpan.org shows 21,674 distributions, while rubygems.org shows 19,428
  + 376509 [cmdjackryan ] Maybe the good old RAA, too. I have no idea if the site controls for
  + 376516 [fxn hashref.] They count registered modules which is not a meaningful CPAN metric.
    376519 [caseyhHAMMER] You want quality over quantity. :)
    376523 [fxn hashref.] Only, do not assume more quantity implies less quality :)

^ Is there any chance of getting the oniguruma patch into ruby 1.8.6 for windows
376511 [zdavatz gmai] Is there any chance getting the Oniguruma Patch 2.5.9 into Ruby-1.8.6
+ 376513 [shortcutter ] The links are broken.  Are you referring to
| 376514 [zdavatz gmai] Dear Robert
+ 376571 [zdavatz gmai] We are actually getting somewhere here, thanks to the great people over
+ 376610 [zdavatz gmai] Ok, as far as I can tell I got a Ruby-1.8.6-Oniguruma Windows Installer

^ Help with RubyGems
376515 [misplaced.mu] I am new to Ruby and programming, so please bear with me.
+ 376517 [cmdjackryan ] Did you install RubyGems with Ruby 1.9 (ruby -v)?
+ 376527 [ryand-ruby z] On Jan 7, 2011, at 8:09 AM, Institute For human continuity <misplaced.muse@h=
+ 376529 [thopre gmail] On 7 January 2011 17:09, Institute For human continuity <
| 376961 [misplaced.mu] No response from cmd when I try it.
| 376962 [josh.cheek g] There seems to be context confusion, it is expected that you are in a
+ 376964 [misplaced.mu] I am using cmd.exe on Windows.
  376965 [josh.cheek g] Then it sounds like your gem application is not added to your path. When you

^ [OT] Undelivered Mail Returned to Sender
376520 [iseeprimenum] I'm sorry about the offtopic, can anybody help me to unsuscribe to the list=

^ File Dialog Box
376526 [christopher.] I'm writing some scripts that do most everything from the command-line.
376544 [anurag08priy] file = `zenity --file-selection` #=> '/home/yeban/foo'
376569 [m.fellinger ] `wish <(echo 'puts [tk_getOpenFile]; exit')`

^ Ruby load path
376531 [bcruparel ya] $: << File.expand_path(File.dirname(__FILE__))
376546 [jeremy bopp.] I don't know much about Rack applications, but it sounds like you might

^ gem install ruby-serialport in windows
376533 [probinson mi] I am having trouble doing gem installs, and I am getting the following
376537 [luislavena g] Seem you don't have development tools installed in your environment.

^ Faster way to XOR?
376534 [astounding g] What's your fastest pure-ruby method to do a byte-by-byte XOR to two

^ Re: Nooby question : multidimensional arrays.
376536 [kedar.mhaswa] Is this an okay job of implementing a multidimensional array?
+ 376538 [serialhex gm] uhm...i'm not sure what your trying to do with this, but what if i wanted to
| 376539 [kedar.mhaswa] Thanks for the feedback!
| 376540 [serialhex gm] Thanks for the feedback!
| 376542 [serialhex gm] alright, so i've played around with it a bit more, and i kind of like your
| 376543 [kedar.mhaswa] Thank you for your feedback, again!
+ 376545 [cppljevans s] which describes an expansion vector which is a scan of
  + 376562 [cppljevans s] Also, if you're interested in transposing the vector,
  + 376570 [cppljevans s] [m**0,m**1,m**2,...,m**n]
    376607 [cppljevans s] 44
    376614 [kedar.mhaswa] Larry,
    + 376618 [shortcutter ] If you need that you could do something like https://gist.github.com/772827
    | + 376620 [kedar.mhaswa] Interesting. Thanks, Robert.
    | | 376622 [shortcutter ] Well, you don't see it from the outside.  For users of the class it
    | | 376640 [kedar.mhaswa] I meant for a programmer to implement it. And yes, it is a damn good
    | + 376638 [cppljevans s] ~/prog_dev/ruby/gist772827-61376303a967918b698bc0ddb50af26d6368438c $
    |   376667 [shortcutter ] 827
    + 376692 [cppljevans s] Kadar,

^ Regarding the Versioning of Ruby
376550 [zhangsu live] There are versions of ruby such as -
376551 [anurag08priy] $ ruby -e 'puts RUBY_PATCHLEVEL'
376553 [zhangsu live] Thank you, Anurag. Just one more question: how are the numbers chosen to
376554 [anurag08priy] AFAIK, yes, number of patches.

^ file list sorted by creation date
376552 [raj_plays ya] I need to get a list of all files in a directory sorted by their
+ 376555 [anurag08priy] Unix like systems don't store file creation info[1]. For last
+ 376558 [zuerrong gma] Dir.entries(".").sort_by{|c| File.stat(c).ctime}
| 376559 [zuerrong gma] Dir.entries(".").map{|c| [c,File.stat(c).ctime]}.sort{|a,b|
| 376568 [m.fellinger ] As you said, sort_by implements that already, so it's faster to use it
+ 376565 [raj_plays ya] Thank you, zuerrong.

^ Best way for Array#find+transform ?
376574 [jonas pfenni] There is a pattern that I'm using quite regularly, but I'm not
+ 376575 [anurag08priy] How about, transforming and then selecting?
| 376576 [anurag08priy] file = paths.map{|path| File.join(path, filename)}.select{|name|
| 376577 [jonas pfenni] Yes, if you replace #select by #find, then it is correct, you'll get
| 376579 [groups hjdiv] You can abuse break to get a +find+ that acts a little like a hypothetical
| 376586 [jonas pfenni] Haha, that's the best-one :) I underestimate the power of break
| 376606 [groups hjdiv] My version is slightly verbose.  As w_a_x_man@yahoo.com implicitly pointed out
| 376619 [jonas pfenni] ointed out
| 376661 [botpena gmai] nted out
| 376663 [groups hjdiv] This is not quite what Jonas wanted.  He did not want the first element for
| 376688 [botpena gmai] revious
| + 376689 [shortcutter ] previous
| + 376693 [groups hjdiv] Yes, Anurag suggested transforming and then selecting (as you have done, above).
|   + 376734 [botpena gmai] code that
|   | 376736 [botpena gmai] i just noticed i had 3 versions more...  fwiw :))
|   + 376776 [jonas pfenni] Yes, I'm a perfectionist ! And thanks for supporting that thread that
+ 376578 [w_a_x_man ya] On Jan 8, 5:38=A0pm, "Jonas Pfenniger (zimbatm)" <jo...@pfenniger.name>

^ Re: Error with Gem Outdated command
376581 [don.park gma] I'm getting the same error from gem outdated.
376582 [don.park gma] a little more information about the gem outdated problem, by adding a

^ Draw Line chart
376583 [jeff_yq yaho] I have built up table in MS Access, and there were data stored in that
+ 376588 [jonas pfenni] the simplest is if you can export your columns of datas into CSV
| 376608 [jeff_yq yaho] What tools that I need to use to convert data into CSV format, please?
| + 376609 [ralf.mueller] Not sure, but MSAccess should have a "Save As"" exporter to CSV. MSExcel definitelyhas one.
| + 376636 [jonas pfenni] Is it a one-time task, or does it need to be done many times?
+ 376613 [rubfor recit] I know I'll get hate mail as soon as I press Submit but don't ignore the
  376673 [jeff_yq yaho] Thanks a lot. But I still have some problems with get the Range from the
  376675 [rubfor recit] Excel does have concepts of the currently active range etc without you
  + 376677 [jeff_yq yaho] Thanks, that's very great! But after the data has been stored in an
  | 376686 [timrandg gma] You could definitely do it with the ruby-processing gem, which can
  + 376742 [jeff_yq yaho] I have successfully read data into arrays a[] and b[], but I do not know

^ Is Rails for Beginners?
376585 [rubfor recit] I would have thought this discussion is symptomatic of a lot of Rails
+ 376587 [zuerrong gma] Rails has lots of meta-programming, it's complicated, I don't much like it.
+ 376590 [fxn hashref.] In general, to program in L you need to learn some L. Rails is Ruby
| 376992 [rick.denatal] My two-cents http://talklikeaduck.denhaven2.com/2011/01/16/abstract-vs-concrete-approaches-to-learning
+ 376592 [jose.halesga] I don't know how Rails has gotten the "it's easy" reputation.  It's for thos=
  376593 [ninja slapha] I think it's partly because of all the generators, and partly because it

^ rvm and gem directory
376594 [pal palbergs] I will install ruby 1.9.x on my Debian server using rvm. It already has
376596 [stu rubyprog] yup.
376597 [pal palbergs] Thanks :-)

^ Confusion regarding boolean operators.
376598 [kedar.mhaswa] Apologies if this has been asked before (I tried to search).
376600 [jonas pfenni] it looks like the ! unary operator is now definable in ruby-1.9.2.
+ 376671 [dominikh for] I am nit-picking here, but it's possible since 1.9 in general (or at
+ 376712 [kedar.mhaswa] Thanks, zimbatm.

^ Programming exercises
376599 [serialhex gm] exercises, whether it be a website or a download or whatever.  I'm currently
+ 376601 [jonas pfenni] There was a wonderful time, where we would regularly get quiz on this
+ 376602 [ap1900 gmail] After the koans, I started working on these katas.
+ 376615 [spoon killer] I found some of the problems on http://projecteuler.net/ interesting,
  376628 [jonas pfenni] Me too, but in reality, I never need those kind of algorithms, because
  376635 [spoon killer] Indeed!  That is a worthy disclaimer.  The solutions to

^ Vaynerchuk & Ruby 2.0
376604 [flebber.crue] Afternoon

^ RDoc and encoding
376611 [cfb jndata.d] Running Ruby/JRuby 1.8.7 on Windows XP.
376642 [drbrain segm] ', th)
376651 [cfb jndata.d] I don't think it is a matter of transcoding. I would have thought the
376654 [drbrain segm] With Ruby 1.8 this is true.  If you upgrade to Ruby 1.9 RDoc 3 can =

^ Ruby 1.9.2 package has library version 1.9.1?
376616 [ralf.mueller] .ext/include/x86_64-linux/ruby/config.h updated
376633 [luislavena g] reter?
376639 [ralf.mueller] Thanks Luis,

^ Ruby 1.9.2 package has library version 1.9.1?
376617 [ralf.mueller] .ext/include/x86_64-linux/ruby/config.h updated

^ Improve ruby skill
376623 [thiagown gma] I've been into ruby on rails and did some stuff in ruby... but I feel that I
+ 376632 [anurag08priy] Ruby Best Practices is a very practical book on Ruby. Best part is
+ 376709 [stu rubyprog] Metaprogramming Ruby is a good book for you.

^ Japanese / chinese characters
376624 [l17339 gmail] Is there a way to test is a string contains any japanese or chinese
+ 376625 [richard.conr] If you know the encoding of the input string, (preferably unicode) you can
+ 376626 [l17339 gmail] irb(main):003:0> p "=E8=A3=8F=E5=AD=97=E5=B9=95=E7=B5=84".unpack("U*")
  376631 [richard.conr] Yeah, that is one way of doing it.

^ [ANN] quickl 0.2.0 Released
376627 [blambeau gma] quickl version 0.2.0 has been released !
+ 376634 [jonas pfenni] cool stuff. I like how rdoc is used to give the --help output and
| 376656 [blambeau gma] * #options could return the OptionParser object, so as to allow
| 376772 [jonas pfenni] Yeah I get it. Still, you could store those blocks somewhere, and
+ 376643 [ryand-ruby z] Just an FYI that the top url is munged and as a result isn't hyperlinked =

^ [ANN] noe 1.0.0 Released!
376629 [blambeau gma] noe version 1.0.0 has been released !
+ 376630 [blambeau gma] Talking about magic, copy-paste in gmail may lead to strange behaviors...
| 376637 [ryand-ruby z] behaviors...
| 376647 [blambeau gma] Ryan,
+ 376641 [drbrain segm] <http://github.com/blambeau/quickl>oe*>
  376648 [blambeau gma] Different needs, different tools. What about non-ruby projects?
  376724 [redstun gmai] From the name it looks noe links to hoe, what about bones?
  376748 [blambeau gma] I've completely rewritten Noe's

^ reading off socket with \n, but a specific \n.
376644 [mattbrooks g] For a while my application has used, a TCPSocket and the .each method,
376650 [peter vanden] CSV libraries (e.g. the one in Ruby) have to resolve this same problem

^ Why is this an invalid string?
376645 [s.korteling ] str =  "#$"
376649 [ben bleythin] When you're referring to a variable with a sigil ($global, @instance),
376653 [gwtmp01 mac.] Just to be a bit more explicit...

^ [ANN] rb-readline 0.4.0 released
376652 [luislavena g] I'm pleased to announce the release of Pure-Ruby Readline library version 0=

^ Ruby/Watir Beginner - Need Help With Finding Page Element Based on Unique ID
376655 [micako gmail] I am new to Ruby and am attempting to automate some tests. I have come
376770 [jonas pfenni] I don't know watir, but I would add a class to the element, so that
376777 [micako gmail] Thanks for the reply.

^ Ruby 1.9.2 Date issues
376657 [kellyrmoran ] Wondering if someone can help me out with a date issue.
376669 [shortcutter ] What exactly do you mean by "saving"?  Both "mm/dd/yyy" and
376678 [rick.denatal] I'm pretty sure he's talking about how Date.parse interprets a string

^ Re: FasterCSV.foreach loop
376658 [dot_baiki ya] Dear Mr. James Edward Gray II
376660 [dot_baiki ya] I know it's not your problem/software but maybe you see the mistake I
376662 [james grayso] Sorry, I don't know what ODFReport is.

^ Re: REXML Attribute and Quotation Control
376659 [user compgro] See http://stackoverflow.com/questions/3927507/ruby-convert-single-quotes-to-double-quotes-in-xml
376664 [  k z-pk.com] It works, but double quote don't apply to "<?xml version='1.0'
376668 [user compgro] private

^ Finding best way to pretty print XML files
376665 [  k z-pk.com] to
376717 [  k z-pk.com] 0 resp.  ToT
+ 376774 [jonas pfenni] Sorry if you haven't got any help,
+ 376782 [mike.dalessi] In my experience, everyone has a different definition of "pretty printing".

^ Aidmock - safe mocking
376666 [wilkerlucio ] I launched yesterday a new project that aims to make the use of mocks

^ DATA.seek allows to read file
376670 [shortcutter ] CYGWIN_NT-5.1 padrklemme2 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin
376674 [caius caius.] I've written a script in the past that (ab)used that to use DATA as a =
376681 [james grayso] I love the feature.  It's one of those fun things to abuse.  :)

^ Problem using bundle install
376679 [mail gauravc] I am new to RoR and i am having little problem with the setup. I am trying
376699 [mail gauravc] I thought it was a temporary problem and i tried multiple times but i didn't

^ Parallel Assignments and Elegance/Complexity Ratio.
376680 [kedar.mhaswa] In SICP, I read that "Programs should be written for people to read, and
+ 376684 [shortcutter ] Just today I used
| 376696 [kedar.mhaswa] Maybe I am not understanding it, but I thought that elegance is because
| 376737 [shortcutter ] cecEzOg/edit?hl=3Den#
+ 376697 [josh.cheek g] I don't use it very often, but when I do, it usually makes an elegant
  + 376698 [kedar.mhaswa] Thank you for sharing the use case. In this case, it helps. But like you
  | + 376701 [josh.cheek g] Sorry, I don't understand. In this example, the rhs values are contained in
  | | 376702 [kedar.mhaswa] Ah, you are right. I stand corrected. Thanks.
  | + 376756 [colinb2r goo] That last sentence seems an accurate assessment of why it perhaps
  |   + 376786 [kedar.mhaswa] Interesting (yeah, it's a matter of taste).
  |   + 376908 [headius head] Parallel assignment is generally slower than straight-up assignment in
  |     376914 [colinb2r goo] I'd assumed it was something like that. Thanks for the explanation.
  |     376926 [headius head] Yes, that is a bit baffling! I have no explanation for that. As you
  + 376939 [jl235 kent.a] x, y, z, a = values.flatten
    377045 [mentionuse g] These two bits of code are not the same thing.

^ [ANN] JRuby 1.6.0.RC1 released
376682 [tom.enebo gm] The JRuby community is pleased to announce the release of JRuby 1.6.0.RC1.
+ 376683 [tom.enebo gm] I should also mention due to a dependent project forgetting to push
| 376911 [tom.enebo gm] Maven artifacts have now been pushed for Maven users.  Sorry it took
| 376913 [stu rubyprog] Hey support #!/usr/bin/env bash vs the non portable /bin/bash. not all
| 376920 [spam.entfern] Not all OS have a bash. /bin/sh is existent per definition and portable.
| 376922 [stu rubyprog] I agree! I didn't look at the script to see if it had any bashisms.
| + 376928 [spam.entfern] If there were bashisms it would be a bug because bash is not a portable
| + 376929 [headius head] I could see making the 'env' change, but so far we have been unable to
|   376948 [spam.entfern] I will take a look.
|   377002 [headius head] Great, keep us posted. Feel free to open a bug to track it at
+ 376687 [shortcutter ] us
  376690 [tom.enebo gm] 1.
  376694 [shortcutter ] C1.
  376695 [tom.enebo gm] RC1.
threads.html
top