228684-243681
228464-229568 subjects 228891-248301
^ Need help with a regexp
228684 [rpheath gmai] I'm trying to write a regular expression to replace a <pre>...</pre>
228689 [danfinnie op] Why are you doing a gsub but then anchoring the Regexp to the start &
228690 [rpheath gmai] Thanks for the reply. I'm relatively new to regular expressions, and
+ 228697 [efine145-nos] Try this. It uses the "non-greedy" operator '?' and multiline
+ 228698 [eegreg gmail] You are missing the 'm' flag which will allow '.' to match new lines
+ 228741 [Rob AgileCon] 6c75d5d4df368186/2743494eb303014c#2743494eb303014c
^ Active Record error with Association
228688 [lrlebron gma] I am learning to use ActiveRecord so bear with me. I have a script that
^ Execute environment - rake aborted! - no such file to load -- openssl
228702 [vancouverhg ] Any help would be greatly appreciated with this issue
228715 [jan.svitok g] The openssl package is missing in your system. It is required by
228760 [vancouverhg ] openssl is installed but ruby still displays an error
228762 [alex blackke] Just to be clear, you need *both* the openssl package, *and* the
228768 [vancouverhg ] How would I check that the ruby-openssl bindings are installed?
228819 [jan.svitok g] You said you are on linux. The important thing to know is your
^ Execute environment - rake aborted! - no such file to load -- openssl
228703 [vancouverhg ] Any help would be greatly appreciated with this issue
^ nighttime fun with ruby :wq
228704 [ara.t.howard] i can't put much of what we work on online, but we just put this up for a
228705 [drbrain segm] That's one hell of a gif, 13.2M
^ A beginner's question on exceptional handling,please help
228707 [tanushree.bh] In my code i am getting this exception.
228714 [patrick erdb] begin
^ ANN: A new Capistrano subversion SCM module
228708 [ml e4net.com] I'd like to announce a new subversion SCM module for Capistrano.
^ Am I missing something about BER-compressed integer?
228716 [garbagecat10] p [9999].pack("w")
228739 [garbagecat10] I figured it out. There's no bug in Ruby. pack("w") produces the
228851 [efine145-nos] The pack code w has been added to support a portable binary data
228864 [garbagecat10] Thanks for this info. BER is not specified by Perl, of course, but rather by
228866 [efine145-nos] What I meant was not that Perl specified the BER encoding. I just meant
^ Math3D: fixes
228717 [bart.braem g] I have been trying to use Math3D (on my Linux system) and I encountered some
228750 [jameskilton ] Frankly, I would recommend rewriting the library from scratch. When I picked
^ try to connect Ruby to oracle
228719 [total_sc yah] Need an advice please,
228722 [nospam nosit] 1. Have you been able to connect to Oracle using this method before now? In
+ 228730 [shiwei.zhang] Andre,
+ 228847 [total_sc yah] No, it is not my first time use oracle
228848 [nospam nosit] Please re-read my first post. Is the SQL syntax you have submitted to the
229093 [total_sc yah] thnx for advice,at last my ruby can talk to oracle
^ pam_ruby and "require" statement
228723 [v.konrad lse] i am trying to write a pam module in ruby (using the latest pam-ruby and
228724 [zimbatm oree] make sure that your library is in the $LOAD_PATH
+ 228726 [v.konrad lse] not sure i understand, pam_ruby.so calls my ruby script, my ruby script
+ 228728 [v.konrad lse] oops,
228758 [v.konrad lse] $LOAD_PATH settings makes this work, thaks for the help...
^ Exiting a DialogBox created with FoxGUIb
228725 [ardhazes yah] Dear All
228752 [meinrad.rech] me neither ;) ... there are some very hackish things that make the use
+ 228896 [ardhazes yah] Thank you very much for your help.
+ 228900 [ardhazes yah] I have included the call you mentioned in the funcion
228903 [meinrad.rech] @topwin.handle(@button_ok,
228911 [ardhazes yah] Meinrad, it works perfectly, thank you very much
^ [ANN] Curb 0.0.6 - Post and Cookies
228729 [rossrt rosco] Curb 0.0.6 is now available from Rubyforge (http://curb.rubyforge.org/).
^ FireWatir
228732 [peter rubyra] Did anyone install FireWatir on linux (or on anything else) already? I
^ anyone using ragi without rails ?
228734 [nephish gmai] I have been looking at RAGI to replace the software that i now use to
^ Fwd: Please Forward: Ruby Quiz Submission
228735 [james graypr] charset=ISO-8859-1;
^ Question about plotting use Fxruby canvas
228736 [hankgong gma] Dear all
228924 [vjoel path.b] I've never seen anything like that (2D) for Fox (it would probably be
^ [QUIZ] Tournament Matchups (#105)
228738 [james graypr] 1. Please do not post any solutions or spoiler discussion for this quiz until
+ 229013 [louis.j.scor] #!/usr/bin/env ruby
| + 229030 [danfinnie op] Following (and attached) is the copy of my code. The main logic of it
| | 229031 [danfinnie op] (Where it says attached, it will be attached in another email, the email
| | 229067 [danfinnie op] OK, this is my updated version of the chart producing script that is in
| + 229049 [frew stanfor] I wanted to see how simply I could do it from a code perspective, so I
+ 229071 [ruby muerman] Here's my solution. It assumes that the teams are ranked by skill. I
| 229102 [pfortuny gma] I am new to the quizzes and also more or less new to ruby. I would
| 229146 [robert.dober] Please find my solution hereafter, I somehow do not like it because it is
| 229272 [pticedric gm] Here is my solution without the tree display.
+ 229371 [matthew.moss] Well, unfortunately, I don't have time to generate the chart, but it
+ 229376 [llasram gmai] I have a tendency to over-engineer things, so I intentionally tried to
^ Using Ruby to change printer preferences in Win32
228740 [anders.schne] Our Windows XP sys admins recently changed things so that every day,
+ 228744 [jan.svitok g] If OLE then WMI is the most probable way. Have a look at WMI (Windows
| 228790 [rpardee gmai] require 'win32ole'
+ 228745 [vasudevram g] In the MSDN documentation, probably. Its one of the main sources of
^ Re: Rubinius interview with Evan Phoenix
228746 [ssmoot gmail] Avi Bryant's article in response to JoelOnSoftware said you could get
228757 [wilsonb gmai] Yes. One way to do this is to make the common case as fast as
^ Mac OS X Leopard and Ruby
228751 [chad.lung gm] "To open up the benefits of the Cocoa frameworks to a wider developer
228753 [james graypr] Well, one of the talks at RubyConf this year was from the Apple
^ [ANN] slave-1.2.0.rb
228756 [ara.t.howard] *** THIS IS A CODE CLEANUP RELEASE ONLY ***
^ Re: Fwd: Seymour Papert Gravely Injured in Motorbike Accident
228759 [transfire gm] Logo should have become the Basic of today.
+ 228826 [jameshcunnin] Primarily Java and C++. I think Scheme is a quirk of some of the
+ 228882 [david vallne] Hrm, early high school for me, which wasn't THAT long ago (although I
+ 228883 [david vallne] C in the freshman year. If I hadn't had some PHP and Pascal before (i.e.
^ 'ruby' not recognized as internal......
228761 [ghotrapa yah] I have ruby 1.8.5 on windows xp.
228763 [jan.svitok g] Your system doesn't know where to look for ruby.exe.
228767 [ghotrapa yah] Thanks Jan,
^ Module issue
228766 [jasonvogel g] Source
+ 228769 [vincent.four] In the module, you did define test as an instance method. So if you
| 228775 [jasonvogel g] I plan move the "require" up top, once I've got my stuff straight.
| 228777 [stefano.croc] You should use Ahs::CreditCard, not Ahs.CreditCard. The . syntax is used to
| 228780 [jasonvogel g] Sweet, that works.
+ 228902 [alibby tange] Try
^ autotest, unit-diff, and color output?
228770 [rsanheim gma] I'm using autotest with all its test driven goodness, and I believe
+ 228778 [transfire gm] you can try facets' ansicode lib written primarily by Florian Frank.
+ 228786 [nospam nosit] An easy, lightweight way to go would be to write a script that creates an
+ 228827 [drbrain segm] It does.
229027 [rsanheim gma] Thanks for the responses everyone. Some quick google searches didn't
229034 [martindemell] $ esearch colordiff
229061 [rsanheim gma] Thanks, apparently I should've searched on one word instead of "color diff". :)
229105 [martindemell] It's easier when you know it's there :) I found it the first time by
^ Trouble using rubygems config file on windows
228779 [rpardee gmai] Hey All,
228781 [nospam nosit] See this line? Try changing the forward slash at the right to a
228787 [rpardee gmai] Sure--I get that they all have to be forward slashes. But it's
^ Marshal::dump error on PowerBook G4
228782 [emmett.shear] I've written code for a Splay tree in Ruby, and I'm trying to
+ 228789 [jcribbs netp] I remember running into something similar when I started working on
| 228802 [emmett.shear] Thanks, I tried the to_hash workaround and it worked great. It also
+ 228832 [drbrain segm] I think you ran out of something because your C stack is huge.
+ 228845 [matz ruby-la] Marshal uses recursion to traverse objects and OSX has far smaller
228846 [tomp earthli] Couldn't you just use setrlimit() to bump up the maximum stack size?
228863 [shyouhei rub] We've once discussed on it([ruby-dev:*24405*]) and concluded that it's
^ Capitalization
228783 [jasonvogel g] Disclaimer : Ruby Nuby and I don't know RegEx basically at all. I know
+ 228784 [martindemell] Take a look at http://zem.novylen.net/ruby/titlecase.rb (especially
+ 228796 [nospam nosit] How many special cases? In the worst case, you would have to use a
| 228814 [danfinnie op] str.gsub(/[A-Za-z]+/) {|x| x.capitalize}
| 228816 [danfinnie op] To get keep words like "of" and "is" lowercase: (basically anything
| 228823 [lukfugl gmai] I agree with Paul Lutus, there are too many special cases. And
| 228829 [danfinnie op] Trailing /'s do work as long as the word before it is at least 3 letters
+ 228841 [w_a_x_man ya] specials = %w( of or w AC ).
228954 [jasonvogel g] William,
+ 228957 [nospam nosit] Here is the code the prior poster offered (and please do not top-post -- it
+ 228992 [w_a_x_man ya] It helps to inspect the data structures.
229459 [jasonvogel g] Paul and William,
^ apache2 + ubuntu edgy + ruby
228788 [sam.waller a] I'm running Ubuntu edgy linux, apache2, php5, and ruby 1.8.4
+ 228794 [nospam nosit] / ...
+ 228810 [grant antifl] It might be a problem with suexec. Check suexec.log. You probably have to change the permissions on the script -- suexec doesn't like scripts (or the directories they're in) to be group-writable.
| 228861 [sam.waller a] 'which ruby' say
+ 228865 [smasta earth] You'll get that if you have DOS style (CRLF) line endings in your
228872 [sam.waller a] That was the problem: I needed to get rid of the carriange returns (0x0d). I used the 'fromdos' in
^ Sourcing bash aliases with Ruby
228791 [christopher.] I'm trying to build a script that automates the sourcing of multiple
+ 228792 [ben bleythin] Ding. When you call system(), it fires up a subordinate shell which
| 228795 [christopher.] I'm basically trying to source a bunch of alias files without having to
| 228799 [ben bleythin] Invoking the ruby interpreter to do this is pretty... crazy. It should
| 228804 [louis.j.scor] Stick all the alias files in a directory (.aliases.d) under your home,
+ 228793 [wilsonb gmai] You're right. The aliases are getting added to the environment created
+ 228807 [ara.t.howard] a shell must be interactive to obtain aliases. this will work
^ replacing maven with rake + rjb + ant
228797 [piergiuliano] We do 99.999% of our development in java. Our system is a complex J2EE
+ 228801 [tanner.burso] I don't know the full status of it, but there is a Ruby implementation
| 228809 [david vallne] I could throw such a hissy fit targetting those names, but I'll forgo on
| 228815 [piergiuliano] Yeah, I though about something like that, but I've also realised that
| 228879 [david vallne] Erm. -Technically-, that's what JRuby is all about. A Ruby interpreter
| 228934 [piergiuliano] Exactly my point. I'd rather stick with "the" interpreter, rather with
| 228985 [charles.nutt] You should definitely try it with JRuby, since you won't have the hassle
| 229053 [piergiuliano] On Dec 10, 10:54 am, Charles Oliver Nutter <charles.nut...@sun.com>
+ 228803 [necrodome gm] have you checked raven?
| 228806 [piergiuliano] No, and after 2 minutes browsing I can say that it looks very
+ 243681 [caleb.powell] with regards to invoking Ant tasks from a Ruby script, you might like
^ Beginners question about Array#assoc
228798 [chad zulu.ne] enjoying learning it immensely.
+ 228800 [stefano.croc] In ruby everything evaluates to true in conditionals, except false and nil.
| + 228835 [chad zulu.ne] Thanks Stefano.
| + 228837 [chad zulu.ne] res = dbh.query("SELECT tag ...blah blah")
+ 228836 [danfinnie op] It might be include? (the question mark is part of the method name)
228838 [chad zulu.ne] Thing is its an array of arrays so I need to use the assoc method.
228853 [efine145-nos] Or you could write
^ Re: [ANN] Rubinius interview with Evan Phoenix
228805 [rsanheim gma] Agreed, I didn't say there weren't good implementation reasons that
228825 [aredridel nb] Until Java was opened, I'd definitely have chosen C above Java any day.
^ Tagging Ruby pictures and videos
228808 [anibalrojas ] RubyCorner has been slowly (but continually) growing as bloggers
^ Re: [OT] try to connect Ruby to oracle
228812 [david vallne] Please, don't use the "Reply" function of your email client to start
^ [ANN] net-ping 1.2.0
228813 [djberg96 gma] I'm happy to announce the release of net-ping 1.2.0. This release has
228828 [jos catnook.] Thanks Daniel!
^ beginner Q: Kernel#puts, STDOUT, $stdout relation
228818 [andreas_s ho] Can anybody help me understanding the relation between Kernel#puts, STDOUT
+ 228821 [danfinnie op] Puts is a method of Kernel.
| 228822 [andreas_s ho] But, doesn't it depend on what IO object $stdout holds? I redefined $stdout
| 228824 [lukfugl gmai] It's a tricky relationship, and I'm not quite sure how or why it works
+ 228830 [drbrain segm] This calls $stdout.write "hello\n"
228831 [andreas_s ho] Ah, yes, I decided to snoop around in the c files and this fits what I
^ autotest broken on winxp?
228833 [cohen.jeff g] I haven't tried autotest on windows for a long time, but I thought it
+ 228834 [drbrain segm] Well, windows doesn't expand ~.
| 228874 [cohen.jeff g] I know, I just thought I'd ask the community if there's something I
+ 228886 [david vallne] Do you have the HOME environment variable set?
228892 [djberg96 gma] This has been discussed before. See http://tinyurl.com/y52hs3, among
228982 [david vallne] ry.
^ YAML extension not honouring the options passed to .to_yaml
228842 [chad zulu.ne] As outlined on http://yaml4r.sourceforge.net/doc/ I triesd setting some
228843 [vjoel path.b] class Hash
^ Re: YAML extension not honouring the options passed to .to_y
228844 [chad zulu.ne] Joel, you are a total hero and saviour, that works like a dream. Thanks
^ SMTP proxy in Ruby, anybody?
228850 [jfs.world gm] this? Basically, i am looking for something like qpsmtpd
228860 [fred lacave.] Well, I don't know if it will be of any use for you, but... Basically,
^ Need help on a program
228862 [christopherl] Old-school Roman numerals. In the early days of Roman numerals,
+ 228867 [efine145-nos] There's one in the Ruby Cookbook, by O'Reilly. I am sure there would be
+ 228868 [jan.svitok g] 1. skeleton (I'll use test/unit, as it's easier to check the results)
+ 228884 [w_a_x_man ya] class Integer
228965 [mephis1987 g] class Integer def to_roman Hash["M", 1000, "D", 500, "C", 100, "L", 50, "X", 10, "V", 5, "I",1].sort_by{|a| -a.last}.inject( [ "", self ] ){|roman, pair| [ (pair.last - roman.last ==1 )? roman.first+"I"+pair.first :roman.first + pair.first * (roman.last / pair.last), roman.last % pair.last ] }. first endend
228972 [mephis1987 g] #!/usr/bin/env ruby
^ Dynamically Create Singleton Method
228869 [clintpachl g] # this works, but not quite the functionality I need
+ 228871 [dblack wobbl] def simulate_cgi_upload(mime_type = 'image/jpeg')
| 228873 [clintpachl g] Excactly what I was looking for; compact and fairly elegant.
| 228894 [dblack wobbl] Good morning :-)
+ 228878 [vincent.four] Well, you need a closure, which is not the case in what you would
+ 228887 [ruby anthrop] }
^ [ONLINE GAME] Ruby Core + Php FrontEnd (open)
228875 [flaab_mrlinu] Good afternoon everyone.
+ 228877 [jameskilton ] Why oh why are you even mentioning PHP? Do you not know of Rails? It will
+ 228880 [david vallne] Concurrency errors beware. Whatever the frontend, how do you plan to
+ 228899 [nospam nosit] / ...
| 228981 [david vallne] ne
| 229003 [nospam nosit] Responsivity? The fact that the processor would not bother with the process
+ 229140 [zimbatm oree] I don't think that mixing two programming languages like that is a really
+ 229309 [khaines enig] CakePHP is SLOOOW, though. Rails is slow, yeah, but Cake is SLOW. For a
^ ruby hosting
228876 [=?iso-8859-2] It's my first post to this group, so hello everybody ;-)
+ 228889 [transfire gm] there are plenty of optons. i enjoy site5 myself.
+ 228991 [david vallne] uld
^ TeX and ruby
228885 [pierodancona] how diffcult could it possibly be to fully integrate TeX
+ 228888 [vincent.four] What do you mean by that ? Do you want to produce Pdf files formatted
| 228893 [pierodancona] Well, perltex basically extends TeX: you work
| 228898 [nospam nosit] Yes, unless the effort required to recreate the TeX algorithms is unduly
| 228909 [logancapaldo] I think you misunderstood what he was saying. I think he wants ruby
+ 228913 [ishamid colo] Actually the luaTeX project is the result of similar concerns and
| 228936 [ dak gnu.org] Does that mean that you have given up on Omega?
| 228927 [ishamid colo] It's been a long time....
+ 228925 [ishamid colo] Not so, designing/implementing its algorithms provided more than one
+ 228926 [ishamid colo] Not so, designing/implementing its algorithms provided more than one
+ 228932 [ishamid colo] Not so, designing/implementing its algorithms provided more than one
228959 [pierodancona] Hey, I did not want to sound dismissive. I read
228967 [ dak gnu.org] Well, I don't want to sound dismissive either. I read TeX, the
228970 [pierodancona] 5-or-so ubermasters of TeX and I must just take it. Sorry.
229000 [ dak gnu.org] Oh, and I so tried following your lead.
threads.html
top