229159-230849
228933-230479 subjects 229383-364033
Quiz 105 Solution
229159 [john.baylor@] ...
Newbie with a project.(Parse tabed file and gen statistics?)
229161 [aceoface@ak ] I have tab delimited files that I want to parse and generate statistics
229172 [nospam@no it] / ...
229182 [w_a_x_man@ya] p IO.readlines('junk').map{|s| s.chomp.split("\t")}.sort_by{|a|
229209 [nospam@no it] / ...
229246 [slamboy@gm i] ...
Re: What?s ruby on rails for?
229168 [piers@om ka ] Cheers.
best way to dynamically create new instance methods
229173 [dandante@da ] and the like and I can't seem to accomplish what I am trying to do,
+ 229176 [gavin.kistne] Assuming that you want each instance of foo to have its own list of
+ 229181 [nospam@no it] Rather than try to sort out a way to create methods on the fly, perhaps it
+ 229193 [james@gr yp ] args.first }
229195 [gavin.kistne] Ooh, look at Mr. Fancy Pants, using his fancy #send to get around
229196 [james@gr yp ] Correct. In 1.9 you need to use funcall() in place of send().
+ 229197 [dblack@wo bl] And keep a little card in your pocket to remind you which does
+ 229217 [ mfp@ac .o g] class << self; self end.class_eval{ define_method(name){ |*args| args.first } }
Win32 environment for ruby extension work
229178 [rosco@ro co ] I've recently been attempting to look at Win32 compatibility on the
+ 229188 [ml.chibbs@gm] ...
+ 229189 [jan.svitok@g] I'm not an expert, so take this as such. Sometime ago there was a
229405 [rosco@ro co ] I read a little about this, but it seemed to me at the time like a
229595 [jan.svitok@g] I don't have a link. I just googled and then didn't save the link.
Is there something like Regexp#match_all
229183 [memberships.] is there a possibility to return all the matches of a regexp? or in
+ 229186 [gavin.kistne] See String#scan. It and #gsub both accept a block.
+ 229187 [halostatue@g] These things are actually two different things.
+ 229198 [shortcutter@] What exactly do you want to do with matches?
229200 [memberships.] I'd like to build a small web-tool for myself to highlight all the
229201 [james@gr yp ] You don't really need the block form for such a simple replacement.
229266 [shortcutter@] ... and in fact more efficient IIRC.
gtkhtml2 blank window
229194 [patrick@er b] i run into a new problem while writing an gtk application. a lot of
+ 229205 [trevor@ge kg] Patrick,
| 229206 [trevor@ge kg] Patrick,
| 229215 [patrick@er b] maybe i should begin with the signal handler next time this could make
+ 229213 [trevor@ge kg] Patrick,
229219 [patrick@er b] yes, that's it! thanks :-). it works fine now, i just forgot to connect
Suggested Ruby / Rails Development Environment on OS X?
229199 [chuckmcknigh] I've just purchased a MacBook Pro and want to ping the list for
229203 [jeremymcanal] I dig Textmate with updated bundles for editing. vi is my second
[ANN] Curb 0.0.8 now available
229208 [rosco@ro co ] Curb 0.0.8 is now available from http://curb.rubyforge.org. Curb provides
private methods in Ruby
229210 [gethemant@gm] ##Won't work method #1
+ 229212 [dblack@wo bl] ...
| 229221 [gethemant@gm] So can i rephrase this as, private methods can't be called from
+ 229223 [ruby@ba dk r] I'll take a stab at this...
Suggestions for a date picker that supports mm/yyyy
229211 [jasonvogel@g] Does anyone have some suggestions for a date picker that supports
+ 229214 [nospam@no it] Do you mean a GUI component?
| 229216 [gavin.kistne] Er, under what UI? Text/console? WxRuby? RubyCocoa? Rails?
| 229250 [jasonvogel@g] Sorry, I definitely should have been clearer.
+ 229227 [jimfreeze@gm] ...
Inserting surrounding scope into singelton method definition
229218 [shfriedrich@] I have a sorted array (in this case, an ActiveRecord result set) that i
+ 229220 [dblack@wo bl] To get through the barrier of the class and def scopes, you can use
| 229229 [shfriedrich@] Wonderful! For some reason the 2-argument notation in your example
| 229231 [dblack@wo bl] Yes, I used the wrong construct -- I'm glad you figured it out :-)
+ 229239 [ara.t.howard] why not just use an attr
Installing Ruby on rails
229222 [timbobker@ya] Ive just tried to get started with ruby on rails downloaded the
Re: Ruby Core + Php FrontEnd (open)
229228 [flaab_mrlinu] I Jonas. This is not actually true: I'll explain myself. Supposse the
229263 [alex@bl ck e] Event-driven would still work here, you'd just need to have a global
229268 [flaab_mrlinu] I've read carefully your posts =)
229282 [jameskilton@] ...
Ruby, Windows XP, and CMD.exe
229230 [clark.snowda] I am developing a SOAP server running on a Windows XP machine. When
+ 229235 [kimjuik@gm i] Which one send you 'time out error'? IIS Server ? or Another?
+ 229260 [ara.t.howard] require 'rubygems'
+ 229343 [david@va ln ] How are you launching that process?
| 229345 [ara.t.howard] why would say that? IO.popen and more than one thread is a disaster on
| + 229494 [clark.snowda] IO.popen wins! I tried the systemu first and yes that would return, but
| + 229500 [david@va ln ] I made (unconsciously) a guess that it's a fire-and-forget subprocess,
+ 229386 [eliben@gm il] Perl's "system" function has an undocumented feature that allows you to
Re: gems cleverness?
229232 [twifkak@co c] $:.map{|s|s=~Regexp.new(Regexp.escape(Config::CONFIG['libdir']+'/ruby/gems/1.8/gems/')+'(.*)/lib$');$1}.compact
229252 [twifkak@co c] Yup. $: == $LOAD_PATH == the list of directories Ruby looks in when you
request_get VS request VS get
229233 [mento_ruby@h] wt's the different of using "request_get", "request" and "get" provided
229301 [david@va ln ] Which get? I see both Net::HTTP::get, and Net::HTTP#get in the standard
230156 [shiwei.zhang] ...
[ANN] Rassmalog 1.0.0
229238 [ snk@gn .o g] Version 1.0.0 (2006-12-11)
UID/EUID subshell solutions
229240 [luke@ma st p] I'm having inconsistent behaviour with running external commands as
+ 229243 [nospam@no it] This is a very desirable shell behavior, to avoid an obvious hacker
| 229960 [luke@ma st p] I don't see how it's an obvious vulnerability; I thought the kernel
+ 230435 [luke@ma st p] def execute(command, user = nil, group = nil)
Re: Ruby for Kids?
229241 [shfriedrich@] "Learn To Progam"[1] from the Pragmatic Programmers might be a good
+ 229244 [JeffMcGrath@] You know, to be honest with you, I would start them off with something
| + 229254 [jimfreeze@gm] ...
| + 229255 [mshock@sh dr] IMHO, even if i'ts suggested to start playing with web pages, it's still
| + 229256 [james.britt@] Be careful: Many locales have laws against just this sort of child abuse.
| 229261 [keith.nichol] what would be good is something like KPL
| + 229304 [Bil.Kleb@NA ] My 7 year old is enjoying /Learn to Program/,
| | 229318 [richard.conr] I had a flick through Chris Pine's book and I do like it. (Girlfriend & Dad have
| | 229323 [jim@fr ez .o] ...
| | 229326 [jameskilton@] ...
| + 229522 [chneukirchen] => "Gah! Programming sucks!" }:-)
| + 229536 [wikipedianki] ...
| | + 229925 [ramalho@gm i] Congratulations, Han Dao!
| | + 230849 [neoneye@gm i] Cool, keep it up and you become really dangerous when you are 20 :-)
| + 229630 [chneukirchen] Are you sure? I learned more from every language since Lisp that
| + 229845 [martindemell] J and K seem to be the current children of APL
| + 229889 [chneukirchen] I didn't intent to question LISP 1.5, but the significance it made.
| + 229890 [toalett@gm i] Scheme came after Lisp 1.5.
| | 229945 [znmeb@ce ma ] And I think roughly the same time as the move to integrate the other Lisp
| + 229911 [znmeb@ce ma ] In the context of *Lisp*, Scheme is absolutely earth-shaking. But in the general
| + 229944 [znmeb@ce ma ] One other addicting feature of most Forths is the ability to easily drop into
| + 230422 [chneukirchen] Yes. But I was comparing to my personal influence. :)
| 230842 [chneukirchen] Well, you can implement them with tricks (c.f. "On Lisp"), but they
+ 229544 [GGarramuno@a] For what it is worth, I'd recommend just Ruby and "Learn to Program" as
help building ruby on osx
229248 [ryandhanks@g] ...
+ 229249 [ruby@ph li .] I don't know if I can help you with the errors, but I just did this on my
+ 229295 [coder68@ya o] The instructions are very easy to follow (he assumes no prior
Runtime Error Installing Ruby 1.8.5
229251 [muraii@ya oo] I'm trying to get amaroK installed on my minimalist Slackware 10.2
229267 [ming.lei@or ] Are you sure it's really hanging? Maybe it's just waiting for your
229298 [muraii@ya oo] I was wondering if that mightn't have been what was going on, but I'm
229564 [ming.lei@or ] I checked Amarok's documentation. Ruby scripts simply use the command
Non-useless mode for YAML::Syck::Map.children_with_index?
229257 [phlipcpp@ya ] Here's a complete working sample illustrating the issue in YAML::Syck, or
229284 [twifkak@co c] Ooh! I approve.
229294 [twifkak@co c] Another option, if you have control over the YAML -- tag the mapping
229300 [phlip2005@gm] Ooh I forgot to mention (between yesterday's saturation life-issues)
Base64 and MD5 fun
229258 [careo@fa tm ] I'm trying to implement the auth-md5 authentication scheme in the
+ 229273 [vidar.hoksta] The clue is right here. The Ruby code appends a "\n".
+ 229312 [careo@fa tm ] Yep. There was. I wish I could claim to have found it, but it was a
FXRuby 1.6.4: what's the trick?
229259 [ttmrichter@g] I've got fox-1.6.20 up and running and tested. I've got
229305 [lyle.johnson] You need to be using fxscintilla-1.71, the latest version. Version
A few questions about rq (2.4.0)
229270 [urban@be to ] Hej!
[ANN] Nitro + Og 0.41.0 Maintenance release
229271 [george.mosch] New versions of Nitro (Web Application Framework) and Og (Object
Predefined variable to represent the ruby installation path?
229276 [dou_yifan@ya] Is there a Predefined variable that represent the ruby installation
+ 229281 [it.emeraldio] on *nix systems you can issue the command
+ 229310 [transfire@gm] require 'yaml'
229324 [droffo@gm il] ...
229434 [transfire@gm] hmm. sounds like the installation of ruby itself needs someof
connect to MySQL Database
229277 [fvgi242ss@gm] I run Mac OS X Tiger, ruby 1.8.4 (from sources) and MySQL 5.0.27
229286 [kashia.buch@] require 'og'
229331 [fvgi242ss@gm] Great, I will give it a try. Seems to be exactly what I need.
229335 [kashia.buch@] ^^ that should've said String there, sorry.
229341 [david@va ln ] I feel a great disturbance in the Force, as if millions of DBAs voices
229416 [kashia.buch@] I wonder who silenced them. ;)
229417 [fvgi242ss@gm] My customer is running a ftp-server with about 6.000 accounts. we
229463 [kashia.buch@] Yes, I see your application better now.
Using the SaveAs in Excel not working with Ruby
229280 [anon1m0us@ya] I need to save an Excel Spreadsheet with Ruby. I used the Save AND
+ 229288 [david.mullet] Where xl is your Excel Application object and wb is your Workbook
| 229290 [anon1m0us@ya] Thanks...that did the trick!
+ 229291 [gustav@ra ls] Hey
229302 [ivor@ra ls c] I am guessing the (0) in close(0) refers to the number of the book that
+ 229333 [nlloyds@gm i] ...
+ 229342 [anon1m0us@ya] Ok, this code provides the date..
Comments on ObjectiveView issue 9 (no, I'm not a spambot)
229293 [markcollinsc] My name is Mark Collins-Cope, I'm editor of ObjectiveView. I'm writing
+ 229339 [james@gr yp ] 1. On page five 5.times{ puts "Mice!\n" } is not very Rubyish. The
+ 229520 [david@va ln ] Actually, I think the spambot accusations were mostly meant to *cough*
230170 [markcollinsc] David,
Directory Size and bolding Excel cells
229297 [anon1m0us@ya] Does anyone know any commands that will tell me the size of a
229308 [david.mullet] Where ws is your Worksheet object and row and col are integers...
229315 [anon1m0us@ya] I tried
+ 229321 [david.mullet] The 'Cells' method does not accept a range of cells as a parameter. If
| 229328 [chen_li3@ya ] Is it possible to write a range of cells with numbers,
+ 229322 [ruby@tc .m i] excel.Worksheets(x).Cells(1, 1).Font.Bold = 1
229329 [anon1m0us@ya] Ok, I created a Macro in Excel to see what properties I need to you
+ 229337 [nlloyds@gm i] ...
+ 229340 [anon1m0us@ya] Ok, I got the cells to autofit using the below code. "#{loc} is a
229423 [david.mullet] FYI, the Columns method can accept a range of columns, so you could
229435 [anon1m0us@ya] Have any clue how to do Freeze Panes?? The VB code is
Assignment method strangeness
229330 [mr.cruft@gm ] ...
+ 229332 [ara.t.howard] require 'rubygems'
+ 229334 [dblack@wo bl] I think the idea of an assignment method *is* rather narrow. If you
+ 229338 [wilsonb@gm i] test.d = 1
| 229346 [mr.cruft@gm ] ...
| + 229347 [mr.cruft@gm ] ...
| + 229352 [wilsonb@gm i] Check this out; it may be helpful to you. Pretty similar. It differs
| + 230751 [david@va ln ] 1. The sheer memory leak of it all. Ruby apparently isn't made to be a good
| + 230752 [david@va ln ] One more thing.
| + 230753 [transfire@gm] class Test
+ 230750 [david@va ln ] This is the third thread on the subject in the past month, IIRC. On the first
mkmf.rb question
229336 [phurley@gm i] I keep getting lost in the mkmf code, so I was hoping to find a guide.
229348 [djberg96@gm ] # extconf.rb
Quiz 105 Solution - now with Trees!
229344 [john.baylor@] ...
C => Ruby plus TCP serialization using Marshal.dump/load
229350 [nathanb@vt e] Hey,
+ 229355 [nospam@no it] / ...
| 229358 [nathanb@vt e] Paul-
| 229364 [tim.pease@gm] Pointers are not going to serialize very well. The problem is that the
+ 229357 [vjoel@pa h. ] If it's an opaque blob, then it sounds like String is the best class to
+ 229360 [ara.t.howard] i think you really want to be using mmap. that way there is no 'passing'.
229365 [tim.pease@gm] Hmmm ... are you suggesting that he memory map all the C data to a
229370 [ara.t.howard] just suggesting using mmap to pass the data between c and ruby using
229377 [nathanb@vt e] Guys,
229385 [ara.t.howard] the is no automatic solution for c serializtion. you have to code that your
229759 [vlm@li ne .i] You can use the ASN.1 compilers to create serializers and deserializers
229777 [ara.t.howard] thanks for the link!
[ANN] - Bible 1.0.1 - A bible reference parsing and text retrieval tool
229351 [jgbailey@gm ] ...
+ 229353 [jeremymcanal] Wow this looks great! Thanks for building this.
| 229356 [jgbailey@gm ] ...
| 229372 [jeremymcanal] Yeah, things like QuickVerse, Logos, and Zondervan's software use
+ 229359 [daniel.schie] It always did think the Bible needed an update :)
229462 [jgbailey@gm ] ...
assigning constant as an unbound dynamic method
229361 [strattner@ya] work in Network Support, and have used Perl in the past for various
+ 229362 [rubytalk@ea ] ...
+ 229367 [coachhilton@] You can just use the "send" method, which is defined in the base class
+ 229504 [pubsub@ru yi] GET = ::SMTP::Manager.instance_method(:get)
Re: - Bible 1.0.1 - A bible reference parsing and text retrieval tool
229368 [kenosis@gm i] This is THE kindest usenet group I have EVER encountered. The things
passing Proc as a parameter
229369 [ccermikli@gm] I'm a new user of Ruby, and trying to learn its features. But I have a
+ 229378 [ccermikli@gm] Thanks for the link, it really helped me to understand the topic.
+ 229379 [james@gr yp ] James Edward Gray II
Re: Tournament Matchups (#105)
229373 [w_a_x_man@ya] Inf = 999
+ 229381 [james@gr yp ] Inf = 1.0 / 0.0
| + 229384 [nospam@no it] I've always found this outcome annoying. I often wonder how many programs
| + 229454 [robert.dober] ...
+ 229731 [w_a_x_man@ya] num_teams = ARGV.shift.to_i
229764 [james@gr yp ] I don't mean to play netiquette police here, but there is about twice
229770 [matthew.moss] *nod*, agreed. And I would say it's not even just netiquette...
Storage binding
229380 [ccermikli@gm] I have also some another thing in Ruby that I am not sure about.
+ 229387 [vjoel@pa h. ] stack
| 229394 [benjohn@fy h] I'm pretty sure you're being misleading there. You can determine the
| 229549 [vjoel@pa h. ] Oops, right. That was very misleading. I was talking about where the
+ 229401 [shortcutter@] Objects are *always* on the heap (there are special cases like Fixnums
threads.html
top