220813-376646 subjects 221205-390063
Pipe shell output to ruby -e?
221010 [caldridge@gm] I know this has been done before but search yields nothing :-\
+ 221014 [billk@ct .c ] echo hello | ruby -e "puts gets"
+ 221033 [ebonakDUH_@h] echo "hello" | xargs ruby -e 'puts ARGV.to_s'
221135 [caldridge@gm] Awesome. Thanks so much!
How to call private class method?
221011 [estebanjang@] In the following code, how can I call "Hello.jane" method?
+ 221018 [nospam@no it] #!/usr/bin/ruby -w
+ 221020 [ruby-forum@s] will work, send also works with private methods.
221024 [rossrt@ro co] I believe that will fail under 1.9 though, where send no longer calls
downcase part of a string
221025 [ilhami.kilic] I want to downcase a string but without specific parts.
+ 221027 [invalid@gm .] if msg =~ /\(.*?\)/
| 221030 [ilhami.kilic] No, they can occur more then onece.
+ 221029 [peter@ru yr ] This is kind of old school and I am sure there are nicer rubyish
| 221031 [ilhami.kilic] Thanks Peter, it works fine.
| 221037 [james@gr yp ] You missed Tim Bray's RubyConf talk. According to him we should,
| 221087 [mdurham@pe p] Why not? What reason did he give?
| 221123 [wilsonb@gm i] The problem is that proper upcasing and downcasing of characters is
| + 221127 [mdurham@pe p] Thanks Wilson, that explains everything. I'd never thought about
| + 221397 [james@gr yp ] Yes, this is basically it.
| | 221408 [ara.t.howard] one caveat that tim did not mention, and which is quite applicable to many
| + 221405 [fred@la av .] This is way off topic, but I'd like to know where he heard that. It's
| | 221520 [hal9000@hy e] That's very interesting. So Tim is mistaken?
| | + 221558 [caldridge@gm] "no".capitalize, Tim is right, but ruby is a "logical" language for
| | | 221594 [hal9000@hy e] I don't think that addresses what I was asking about, i.e., whether
| | | 221598 [wilsonb@gm i] It's entirely possible I'm mis-remembering that part of Tim's talk.
| | | 221601 [hal9000@hy e] That's the way I remember it -- he said that a lowercase accented
| | | + 221608 [tbray@te tu ] ...
| | | | 221610 [hal9000@hy e] Ha... but chapter 4 is rather thin.
| | | + 221609 [halostatue@g] The wording was actually "jurisdiction to jurisdiction." This actually
| | | | 221612 [hal9000@hy e] My memory may be faulty, but I really thought he said "district."
| | | | 221614 [halostatue@g] Probably. If I'm wrong, I'll just have to owe you the beverage of your
| | | + 221682 [rick.denatal] And, I understand that there are some Qu?be?ois who maintain that they
| | | 221683 [halostatue@g] This spelling is incorrect. It's Qu?becois (kay-beh-kwah), not
| | | 221692 [halostatue@g] It can also mean "someone of French ancestry." Qu?becois consider
| | | 221776 [robert.dober] ...
| | | + 221788 [halostatue@g] Tim is not wrong. Someone's remembering of what Tim said is wrong. In
| | | | 221839 [robert.dober] ...
| | | + 221880 [rick.denatal] I'm pretty sure that whether or not accented capital letters are
| | | 222156 [fred@la av .] That was my understanding too.
| | | + 222185 [rick.denatal] Bien sur. I already communicated this privately to Robert Dober.
| | | + 222191 [jwkenne@at g] No, it goes back at least to the 18th century, to my certain knowledge,
| | | 222336 [fred@la av .] Colour me very surprised. I'd add that I could find more references to
| | | 223478 [jwkenne@at g] I've spent a considerable amount of time in the last couple of years
| | | 223494 [robert.dober] ...
| | + 221587 [tbray@te tu ] I've been told that common usage differs in Qu?bec. -Tim
| + 221604 [halostatue@g] No, not depending on jurisdiction in France. In French French, one
+ 221068 [bauer.mail@g] msg = "THIS is a Text and (NO Change HERE) HELP (Not here Either)"
221607 [martindemell] msg = "THIS is a Text and (NO Change HERE) HELP (Not here Either)"
Recommendations for a Ruby Wiki, preferably with bidi support?
221036 [alder.green@] We are going to deploy a Wiki system for a medium load website. Any
+ 221040 [james.britt@] Is there a particular need to have it written in Ruby?
| 221043 [alder.green@] On 10/22/06, James Britt
| + 221044 [eden.li@gm i] It doesn't seem to have good spam protection. You can see evidence of
| | 221045 [alder.green@] Excuse my ignorance, but what sort of effective SPAM protection
| | 221053 [dbalmain.ml@] See here,
| + 221058 [james.britt@] I don't recall exactly, but my main requirements were plain text data
| | 221071 [bpettichord@] I recently selected Pimki as a personal wiki. I wanted a Ruby-based
| | 221078 [vjoel@pa h. ] If I were developing a wiki, I'd try using something like my FSDB lib
| | + 221079 [james.britt@] I recently built a app the lead me to create a lightweight MVC Web
| | + 221083 [bret@pe ti h] ...
| | 221234 [alder.green@] Thanks everyone for the information.
| | + 221345 [enogrob@ho m] ...
| | + 221463 [matt@te hn r] I have used Soks with great success. Very easy to install and run, but
| | | 221519 [Bil.Kleb@NA ] FWIW, internally we run a center-wide Soks wiki. We haven't
| | | 221549 [matt@te hn r] Any suggestion on the best way to add some type of login and
| | | 221832 [Bil.Kleb@NA ] For an internal wiki?! What type of employees do you have?
| | | 221833 [matt@te hn r] Government employees.
| | | 221834 [gavin.kistne] FWIW, at my company we use OpenWiki internally (with a bunch of
| | + 221579 [rick.denatal] You might have a look at mediawiki. It's quite full-functioned (it's
| | + 221584 [znmeb@ce ma ] ...
| | | 221638 [alder.green@] Its website has been down for a while now, and latest release is
| | + 221636 [alder.green@] Indeed, and apparently also the Hebrew version of Wikipedia
| + 221076 [matt@te hn r] I tried to install Instiki last summer. It is no longer simple to
+ 221240 [visenger@gm ] did you tried Pandora?
Converting IFMapper into Win32 executables
221047 [jalespring@e] Anyone familiar with IFMapper, Ruby and/or its components? I've been
222457 [GGarramuno@a] You are probably better asking the author of rubyscript2exe.
one question about REXML?
221048 [pgonzalez@na] Is REXML a validating parser?
+ 221056 [shortcutter@] ...
+ 221059 [james.britt@] I believe there is some support for Relax-NG, but not for DTD or
= with moredimensional Arrays
221049 [naPOLeon.Pol] I want to code the "game of life" in ruby. I use a moredimensional
221050 [nospam@no it] Define "Moredimensional". Do you mean multidimensional?
221052 [naPOLeon.Pol] I'm sorry for my horrible English, I'm German.
221075 [nospam@no it] Your English is much better than my German, so no problem. All we have to do
221144 [naPOLeon.Pol] Thanks a lot, Paul! That's exactly what I was up to.
[ANN] InlineFortran 1.0.0 Released
221051 [ryand-ruby@z] InlineFortran version 1.0.0 has been released!
221100 [david@va ln ] And so we come full circle, 50 years of technological advancement have
221105 [znmeb@ce ma ] I haven't written any Fortran since 1990. I suppose it *would* come back
about file format
221054 [chen_li3@ya ] I just wonder what is the default file format which can recognized by
221060 [ebonakDUH_@h] Li,
+ 221063 [chen_li3@ya ] Unfortunately I work under XP.
| 221067 [ebonakDUH_@h] Shouldn't make a difference, that's one of the nice things
| 221077 [chen_li3@ya ] I figure out why it doesn't work: irb only looks for the file name in
| + 221082 [linguist@gm ] ...
| | 221085 [chen_li3@ya ] #####
| + 221324 [ebonakDUH_@h] Yup, that's why I showed a directory listing each time
+ 221065 [chen_li3@ya ] irb(main):001:0> File:file?(ruby.rb)
+ 221066 [invalid@gm .] What does Dir.entries('.') say in the same directory?
+ 221074 [nospam@no it] / ...
[ANN] hoe 1.1.2 Released
221057 [ryand-ruby@z] hoe version 1.1.2 has been released!
221132 [dpp@pr je ts] Do you have a link to the "Hoe" video you showed at RubyConf?
221134 [Rob@Ag le on] Rob Biedenharn http://agileconsultingllc.com
221136 [caldridge@gm] ROTF I agree David, that was awesome!
Full screen mode toolkit?
221062 [michael.gors] ...
221106 [david@va ln ] GTK and its Ruby binding seem to include support for fullscreen mode
Tk Layout help please
221070 [name.goes.he] I want to be able to have them edit items and their prices, it saves it
+ 221111 [m_goldberg@a] Implementing a table is not such an easy thing to do if you are new
+ 221155 [nagai@ai ky ] How about this?
221072 [cs5b@ya oo c] the possibility of doing a thread dump to show where it is hanging on?
221073 [vjoel@pa h. ] Not in general, without a Thread#backtrace method. I've asked for it...
225192 [drbrain@se m] $ ruby -e 't = Thread.start do sleep end; t.raise "hi"; t.value'
225230 [vjoel@pa h. ] That doesn't tell you what line of code the thread is sleeping on, only
225351 [drbrain@se m] Ooh, right, my bad.
Ruby-ize me (or at least my code)
221094 [seth_ruby@se] I am new to Ruby but find it interesting. To teach myself the language
+ 221095 [seth_ruby@se] Just wanted to clarify: I know that there are better ways to do a
| 221097 [david@va ln ] =20
| 221247 [chneukirchen] But you can't do DLX with an array! ;-)
+ 221096 [david@va ln ] =20
+ 221110 [ruby-ml@ki t] =20
221118 [seth_ruby@se] Thanks Eero. That is quite an eye-opener, and was exactly what I was
221099 [plantz@cd 1.] "The third line calls Gtk::Window#show to display the window we just
+ 221101 [david@va ln ] This is a convention. GtkWindow#show means "instance method 'show' in
| 221109 [kbloom@gm il] Note that ri accepts this notation to refer to a class name when you're
+ 221103 [nospam@no it] a = "Huey"
Re: [OT] [ANN] InlineFortran 1.0.0 Released
221107 [david@va ln ] /me hides Edward's Zimmer frame, steals apples from his garden, and
Fast portable storage for queues
221108 [snacktime@gm] I've tested out a couple of ways of storing a queue structure and
+ 221112 [vjoel@pa h. ] (That's sqlite again, though.)
| 221126 [snacktime@gm] What I'd really like is something that's portable to pretty much
+ 221133 [garbagecat10] ...
| 221151 [khaines@en g] Francis remembers right. I did this for, essentially, a replacement for
| + 221160 [gethemant@gm] Not a queue, but i use memcache for such needs, where i must offload
| | 221170 [khaines@en g] memcache is something of a different beast, but that aside, the con to
| | 221179 [phurley@gm i] Hey Chris,
| | 221188 [garbagecat10] ...
| | 221211 [gethemant@gm] Send it across Franics, I would be delighted to check it.
| | 221232 [ara.t.howard] can you elaborate on your requirements? eg, what kind of objects are being
| + 221297 [vjoel@pa h. ] Kirk,
| | 221346 [khaines@en g] Not really. The IO performance on my test machine is so bad that it
| | 221356 [ara.t.howard] doesn't ext3 use btree under the hood? if so you'd basically just be adding a
| + 221368 [james@gr yp ] This sounds like it would make a neat open source project. Any plans
| 221411 [vjoel@pa h. ] # Fast, flat storage based on Kirk Haines' technique.
+ 221296 [ara.t.howard] require 'dbm'
221299 [snacktime@gm] I didn't realize ruby dbm was supported on windows. I'll have to
Re: [OT] Ruby-ize me (or at least my code)
221114 [david@va ln ] *facedesk*
Method for submitting an updated Gem?
221124 [no.spam@pl a] I've mailed Chad Fowler twice with an updated GeoIP gem,
Binary file modification
221129 [robl@mo ke h] I've been modifying a binary file that contains various data including
+ 221142 [ben@ia u. et] That should die because Array#hex doesn't exist, but I get the idea. If you
| 221158 [robl@mo ke h] Thanks for pointing that out, it's strange as the code definately works
| + 221165 [robl@mo ke h] A quick reply to myself - I've just checked the code and I'm missing an
| + 221177 [ben@ia u. et] It's already packed. The return value of the long expression will be a 3
| 221185 [robl@mo ke h] Sorry I should have studied it a little closer ...
| 221316 [robl@mo ke h] Some more information on this - the maximum value that can be
+ 221145 [vjoel@pa h. ] require 'bit-struct'
| 221146 [vjoel@pa h. ] vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
+ 221152 [hgs@dm .a .u] You've had other answers that answer the question as put. Another
Where does everyone BUY/SELL PC's/MAC's online???
221130 [vilebuzz@ho ] I sell on ebay alot and I'm starting to search online to find other
+ 221140 [paul@ic no l] So you thought you'd spam the Ruby lists with some free ads website?
| 221246 [david@va ln ] *cough*bot*cough*
+ 221196 [damorgan@ps ] spam usenet groups. How quaint and how appropriate your hotmail name.
221197 [carl.lerche@] I was initially going to reply with something witty, but isn't it
find out the time used for searching a file
221131 [chen_li3@ya ] When I run a script to search some files in a folder and/or its children
+ 221139 [gavin@re in ] a) Research the Benchmark library
+ 221141 [bauer.mail@g] require 'benchmark'
Re: hoe 1.1.2 Released
221147 [drnicwilliam] That's brilliant.
newbie: class attribute accessors?
221150 [Diego.Viraso] I was wondering if it is possible to get the automatically generated
221153 [nospam@no it] Please explain. Use an example.
221156 [Diego.Viraso] class Dog
+ 221157 [farrel.lifso] I don't know if there is an 'attr_accessor' shortcut but you can do it manually
+ 221162 [dblack@wo bl] See Farrel's answer; you can write wrapper methods. Note, however,
+ 221163 [nospam@no it] / ...
+ 221164 [xennocide@ya] You can do this for instance variables of a class, not sure there are
221207 [ruby-ml@ki t] Please note that it is often better to use class instance variables
Ruby Conf 2006 Denver feedback?
221159 [hbridgmohun@] ...
+ 221176 [halostatue@g] I'd expect to see more coverage today of the remainder of the
+ 221189 [znmeb@ce ma ] Two words: Star Trek!
221200 [dpp@pr je ts] I missed this presentation. Any video of it? Any place the video
+ 221202 [znmeb@ce ma ] There is supposedly a video, but a link hasn't been posted yet. I hope
+ 221406 [Bil.Kleb@NA ] Eric posted some,
+ 221751 [adam@th re l] I blogged links to the various video sources plus some FAQs here
+ 221797 [jeremy@hi eg] I've uploaded to youtube Adam's skit from the full conference.
Learning ruby - metaprogramming question [from poignant guide]
221161 [luc.juggery@] I started learning Ruby not long ago and I'd really like to understand
221166 [dblack@wo bl] Yes.
+ 221167 [luc.juggery@] Thanks a lot David,
+ 221193 [luc.juggery@] Do you know where I could find some interesting doc on this, something
Trouble using puts and getc in different threads
221168 [okmooi@gm il] I was trying to do a little exercise: Display series of numbers
+ 221169 [garbagecat10] ...
| 221182 [okmooi@gm il] Hmm, that was not the answer I was hoping for... And I don't have the
| 221206 [jan.svitok@g] if you're on windows, see  thread for a solution, especially 
| 221208 [garbagecat10] ...
+ 221210 [its_conebred] I am on a windows machine, and oddly enough I ran it the code. it went
221233 [markiesjunk@] Uh no. I expect the loop to run until I press Enter and not stop before
creating objects type only known at runtime
221172 [alibby@ta ge] This weekend I was playing around with some ruby and wanted
221173 [farrel.lifso] o = Object.const_get(class_name).new
221190 [alibby@ta ge] Thanks!!
Instant Rails 1.4 and Mongrel
221187 [rxv@ho ma l.] I just upgraded to InstantRails 1.4, which, among other things, runs Mongrel
+ 221191 [jan.svitok@g] try mongrel_rails (possibly with some parameters)
+ 221226 [ml.chibbs@gm] That should work as long as IR's ruby\bin directory is on the path (by
$stdin.gets, threads, and command-line app.
221192 [xcambar@gm i] I am currently working on a console-based app, in which the user
+ 221199 [okmooi@gm il] I think your problem is the same as the one I posted a few hours ago.
+ 221204 [nospam@no it] By not using threads. The order of input and output is not synchronized
| 221209 [xcambar@gm i] In this problem, one should consider the output generated by the threads
+ 221286 [ruby-ml@ki t] If you are working on a shell, you are welcome to help with rs. If
Bug with Emacs mode for Ruby
221203 [gethemant@gm] I have following three statements and Emacs behaves quite differently
221290 [darkintent@g] Could you post a link to a screenshot of the behavior of Emacs on your