269825-273879

269625-412629 subjects 270057-408604

https authentication & storing https page in string
269825 [email@dh nu ] I have to write a ruby script which will give me the dynamic page on a
+ 269827 [email@dh nu ] ...
+ 269829 [cmdjackryan@] Either do the authorization via Ruby Net::HTTP, or use the cookie the site

unsubscribe
269835 [nick314@gm i] ...

open uri buf read overflow
269839 [chuckdawit@g] I'm using open-uri to open approx 3500 web pages to check to see if they

Open Source CMS project started Volunteers needed
269843 [amaurya@br c] ...
+ 269853 [jameskilton@] ...
| 269859 [amaurya@br c] ...
| 270000 [glenn.gillen] John, Daniel, and Sean are very active on the Radiant list, and a
+ 269864 [jaimeiniesta] What kind of CMS are you thinking of? Blog, e-commerce, portal, or

ruby and paths
269850 [fibre_optic@] $ruby -v
269858 [stefano.croc] ruby -e 'puts $:'
269872 [fibre_optic@] ./configure \

Re: IP to Country (#139)
269852 [ruby@th ma z] mark@server1:~/rubyquiz/139$ time ./ip2country.rb 195.135.211.255
269857 [james@gr yp ] Pretty clever.

special Array method about Unix pathes
269862 [unbewusst.se] forbidden = ["/Volumes/U3 System",
+ 269865 [charleshixsn] Array doesn't seem the proper class to have a includePath? method,
| + 269866 [sepp2k@go gl] self.any? {|x| path.starts_with?(x) }
| | + 269869 [unbewusst.se] fine thanks, i didn't know the #any?
| | + 269896 [shortcutter@] You can even leave the "self." out. :-)
| |   269909 [unbewusst.se] OK !
| |   269918 [shortcutter@] If it's sorted anyway that's probably the approach I'd take.
| |   269963 [unbewusst.se] i've found a simpler approach, in fact, this list of pathes is entered
| + 269870 [unbewusst.se] i'll lokk if there is something more related to Unix pathes...
+ 269890 [stefano.croc] def select_toplevel_paths arg
| + 269895 [nobu@ru y- a] i.rindex(j, 0) is faster than i.index(j) == 0 when j matches in
| + 269907 [unbewusst.se] clever solution, thanks a lot !
|   + 269911 [stefano.croc] nil
|   + 269914 [unbewusst.se] forbidden = [
+ 270046 [gareth.adams] In contrast to everyone else's points about your naming, I'm not happy with your

scraping web pages for cisco products
269873 [chuckdawit@g] I submitted a post a few days ago about scraping the web for Cisco
+ 269877 [damnbigman@g] ...
| 269878 [damnbigman@g] ...
| 269882 [konrad@ty er] charset="utf-8"
| 269897 [chuckdawit@g] But see I need to use only the list that I have with Cisco in the domain
| + 269899 [konrad@ty er] charset="utf-8"
| + 269900 [damnbigman@g] ...
|   269901 [chuckdawit@g] I'm looking for copywright infrigment on Cisco's name 2. So I'm not only
|   269905 [damnbigman@g] ...
+ 269916 [brabuhr@gm i] www.cnn.com
| + 269936 [chuckdawit@g] With this method do I need to know the name of the form to use it? With
| | 269943 [brabuhr@gm i] It helps to know someway to distinguish the form you're looking for
| | 269962 [chuckdawit@g] I agree but I have around 2000 sites to look at and I can't look at each
| | 269972 [phelan@tt ec] This query seems to work
| + 270100 [chuckdawit@g] I'm checking the size of the form like in the code above but when it
+ 270146 [caduceass@gm] I suspect that if Cisco has a problem with counterfeit products that

exceptions and eval'ing a string
269874 [christopher.] Here's my situation
+ 269881 [christopher.] sorry, there's a typo in the example, that eval line should read
+ 269884 [jan.svitok@g] You can handle those exceptions by adding 'rescue' clause to your run method.
+ 269919 [shortcutter@] I'd say you get a syntax error here.

Spam from leaked (?) user details
269889 [rubfor@re it] I get a disturbing amount of email spam addressed to the email address I
+ 269891 [sepp2k@go gl] Anyone with usenet access can download your messages from comp.lang.ruby and
+ 269892 [cmdjackryan@] Your email is clear text *at least* on usenet.

Do C Extensions Block Ruby?
269902 [wayneeseguin] ...
+ 269904 [nobu@ru y- a] Yes.
| 269924 [vjoel@pa h. ] ...except when you call back into ruby from your C code (right?). Then
| 270044 [wayneeseguin] ...
| 270055 [ilmari.heikk] Or rb_funcall(). Basically any call that executes ruby code.
| 270060 [gethemant@gm] rb_funcall() is slow as shit, avoid it if you can.
| 270069 [ilmari.heikk] And logging touches disk, not like the 10 usec or so spent in rb_funcall
| 270073 [wayneeseguin] ...
| + 270091 [drbrain@se m] Most of the C functions in IO will allow threads to be switched.
| | 270092 [wayneeseguin] ...
| | 270105 [drbrain@se m] io/nonblock.rb and IO#read_nonblock should get you started.
| + 270096 [garbagecat10] ...
|   270099 [wayneeseguin] ...
+ 269930 [gethemant@gm] You may be aware but you can use rb_thread_schedule() for letting your
  270041 [wayneeseguin] ...
  270053 [gethemant@gm] Yes, once you are finished with your Ruby thread and assuming no other

statistical software and data transformation?
269908 [irishhacker@] How many ruby-ists have to do statistical analysis or data cleaning
+ 269946 [znmeb@ce ma ] I do a lot of data cleaning/pre-processing. Most of it is numerical data
| + 269947 [james@gr yp ] We're all hurt Ed.  You know how we enjoy those, "Help me extract
| | 269954 [znmeb@ce ma ] Hey, I *started* with "nawk" ;)
| + 269948 [jmettraux@op] I haven't had a chance to play with it. It seems a bit Rails-focused.
|   + 269955 [znmeb@ce ma ] Yeah ... I've seen that too. Then again, when it comes to databases and
|   + 270008 [anthonyeden@] FWIW, ActiveWarehouse has a Rails plugin on one side but it also has
+ 270025 [aff28@de et ] I use Ruby quite a lot at work for data cleaning, transformation and
  270155 [znmeb@ce ma ] Interesting ... how does Ruby compare with other languages for this
  270559 [aff28@de et ] Ruby works nicely for generating SPSS syntax, mainly because of its

How to install RoR on chrooted environment
269923 [fibre_optic@] /home/user1/tmp/root_fs/.....
269933 [jan.svitok@g] [Obvious note] This question is (at least partially) better asked on
269979 [fibre_optic@] First of all thank you Jano for the prompt answer.
270001 [jan.svitok@g] Just a quick hin, I don't have more time now.
270049 [fibre_optic@] it seems it still doeas not work for some reason...
270063 [chris.lowis@] Should read
270087 [fibre_optic@] "(in /tmp/0/testapp)

cgi scripts don't know hostname
269927 [mark.pelleti] Forgive me if this is a dumb question, but it's got me stumped.
270222 [mark.pelleti] It turns out that the cgi scripts run this way have an empty or at least

How to parse a unicode url?
269931 [nerdytenor@y] I would really like to be able to do the following. Is this even
269961 [dolgun@ex it] require "uri"
269967 [shortcutter@] There is no such thing as a Unicode URL.  The RFC for URI and URL
269973 [dolgun@ex it] According to wikipedia, all those characters are valid for a uri.
+ 270013 [ollivier.rob] They are but host & domain names do not accept Unicode characters at all and are limited to 7 bits ASCII. Search for IDN for more information.
| 270059 [nerdytenor@y] I thought this might be the case. However, typing the following into
| 271062 [celtic@sa ry] That's because Firefox automatically translates into the equivalent IDN;
+ 271136 [drbrain@se m] It says that what characters are valid for each piece of a URI is

irb Failing
269935 [ari@ar br wn] Hey everyone

Emacs, Ruby, and Fode Colding :)
269942 [rubygeekgirl] ...
269944 [konrad@ty er] charset="utf-8"
+ 269945 [ruby@gm il c] ...
| 269952 [croese@gm il] The main text deals w/ a quick and dirty way that uses a couple of
+ 269976 [martin.kraus] Excellent folding with easy setup (= do not need to understand almost at
  270359 [rubygeekgirl] ...
  270666 [jeff.barczew] ...

in ruby/tk how to hide and unhide a root window
269950 [redman@ac es] I have discovered how to hide a root window
269990 [m_goldberg@a] Try

thread switching? (p.  144 pickaxe2)
269956 [dolgun@ex it] On p. 144 in pickaxe2, there are two examples using threads(see below).
270004 [m_goldberg@a] Since you are picky enough to complain about the writing in Pickaxe

ruby-opengl on Mac OS X
269957 [r@al m. it e] on my Mac OS X (v 10.4.10).
270031 [ruby@an hr p] I think you want to require 'gl' rather than 'opengl'. With a working
270085 [r@al m. it e] Whoo hoo!  It Just Works.  Many thanks.
273770 [fold3mani@ya] I am in very similar situation as Rob was in: I installed
273776 [julianraschk] I think TextMate needs write access to files to run them (bug?). I had
273783 [fold3mani@ya] Ok, I copied an exmple rb file to the Desktop where TextMate is, but
273879 [jgabrielygal] Don't know if it might be the same problem, but just in case. I was

Drb Timeout issues
269958 [angadsc@gm i] All,

[ANN] Monkeybars 0.4 - GUI apps for Ruby
269969 [david@ko nt ] Monkeybars 0.4 is out.  http://monkeybars.rubyforge.org  This is the
270418 [charles.nutt] Wow, cool. At a glance it looks like "yet another Swing library" for

Is there any separate editor for  ruby?
269971 [hariharan.sp] Hai Friends,
+ 269974 [dolgun@ex it] $ vim myfile.rb
| + 269975 [dolgun@ex it] $ vimtutor
| + 269981 [hariharan.sp] Dear Friend,
|   + 269983 [alexg@ku cr ] This is a very frequently asked question and there are many options
|   + 270169 [alex.shulgin] On Sep 20, 11:25 am, Vellingiri Arul <hariharan....@rediffmail.com>
|   + 270589 [bigboss64@ip] Personally I suggest Vim/Emacs for people likely to need a GOOD editor, edit a
|     + 271218 [rubygujarat@] I am very happy with Komodo 4.2.
|     + 271227 [dolgun@ex it] Ok, you sound like you might know vim pretty well.  Is there a way to
|       271228 [dolgun@ex it] to save the text to other.rb, which closes other.rb and lets me continue
|       271231 [alex@bl ck e] Doesn't this only differ in which window has focus while you're marking
|       271244 [dolgun@ex it] Arrgh.  I was using 'yy' instead of 'y'.  Thanks.
+ 269986 [norepley@gm ] I use Aptana

[ANN] ParseTree 2.0.2 Released
269980 [ryand-ruby@z] ParseTree version 2.0.2 has been released!

This is general Questions?
269988 [hariharan.sp] Dear Friends,
+ 269992 [alexg@ku cr ] No offense, but this question is very hard to understand. What do you
| 269994 [hariharan.sp] Hai,
+ 269995 [aff28@de et ] Among the other top 10 google search results were several instances of
+ 270027 [wayneeseguin] ...
+ 270038 [phlip2005@gm] Hmmm. ls --help yields lots of search-worthy verbiage, including "color is

lignhtning fast autocompleter IE issue (script save call)
269993 [mba.piyushgu] ...

Getting associations list
269998 [akirosspower] how can I retrieve a list of associations for a given Active Record?
270005 [akirosspower] Ok, i found reflections. Sorry for the disturb

Re: [ANN] Metadata 1.0-rc2
269999 [ilmari.heikk] Oh, and, if there are any other filetypes that could do with more
+ 270035 [konrad@ty er] charset="utf-8"
+ 270037 [konrad@ty er] charset="utf-8"

[SUMMARY] IP to Country (#139)
270015 [james@gr yp ] Matthias Wätcher made a classic mistake this week.  He sent in his first ever

standard library manpages for v1.8.5
270016 [henders254@g] I am running Ruby 1.8.5 on OpenBSD 4.1. and trying to access Ruby
270022 [stefano.croc] ri FileUtils

Idiomatic Ruby for Array#extract / Range#length?
270018 [sam@po er ou] ...
+ 270039 [fxn@ha hr f.] A range only assumes #<=> and #succ.
| + 270043 [Rob@Ag le on] ...
| + 270047 [rick.denatal] True in theory, but, I wonder just how you would code succ so as to
|   270051 [fxn@ha hr f.] Of course that won't happen in practice, but since we were
|   270056 [rick.denatal] You lost me, so what's the rational which is the successor to 1/3?
|   + 270065 [rick.denatal] My last reply was a bit tongue in cheek.
|   | + 270070 [fxn@ha hr f.] No, no, they are dense *with the ordinary ordering*. It is not a
|   | + 270084 [fxn@ha hr f.] "So far we?ve shown ranges of numbers and strings. However, as you?d
|   |   + 270086 [sepp2k@go gl] You can have a range of objects that don't have succ. You just can't iterate
|   |   | 270090 [fxn@ha hr f.] You are saying that Ruby is implemented in a way that allows you to
|   |   | 270166 [dblack@ru yp] The docs appear to be wrong. There's plenty of external evidence
|   |   + 270093 [Rob@Ag le on] ...
|   |   + 270095 [rick.denatal] Rick DeNatale
|   |     270101 [fxn@ha hr f.] Well, the fact that the documentation says "must respond to" and "as
|   |     270107 [rick.denatal] And as we know all documentation is perfect.
|   |     270114 [fxn@ha hr f.] Sorry Rick I think we are not communicating.
|   |     270123 [fxn@ha hr f.] class ZSquared
|   |     + 270129 [fxn@ha hr f.] And yet another example that satisfies in addition
|   |     + 270174 [sepp2k@go gl] Sorry if this is a stupid question, but couldn't you just have proved that
|   |       270176 [fxn@ha hr f.] Exactly, thank you, let me write 1.0/0 as w to simplify the notation
|   + 270066 [fxn@ha hr f.] OK, the point is that we are not using the everyday order of Q. Our
|     270072 [dblack@ru yp] See Rick's point about #succ, though. Ranges don't assume #succ,
+ 270194 [sam@po er ou] ...
+ 270361 [o.renaud@la ] This code will work only when begin and end respond to #-. This is a valid
  270365 [rick.denatal] (1.2..1.5).length #=> 0.3

Barcode scanner app
270020 [pieter.jongs] I need to program an application for my school. It needs to scan a
+ 270029 [ruby@an hr p] I'm a dork, so I'd probably use GLUT/OpenGL. It's overkill, but it's damned
+ 270034 [narnach@gm i] If it works just like a keyboard, you should be able to get the input
+ 270042 [matt@te hn r] I suggest you take a look at the ncurses library.
+ 270081 [mailing.mr@g] if it acts like keyboard, try ruby/SDL it's simplest solution to get
  270160 [dangerwillro] You could use Gosu easily, the game library for the graphics, very
  270165 [pieter.jongs] I have been thinking about that. But the program needs to be portable,

how to print Ruby's version from within the program
270023 [summercoolne] Is there a way to print the Ruby version from within a Ruby program?
+ 270024 [stefano.croc] puts RUBY_VERSION
+ 270026 [james@gr yp ] => "1.8.6"
+ 270088 [drbrain@se m] patchlevel = " patchlevel #{RUBY_PATCHLEVEL}" if defined?

[ANN] Uniforma 0.0.2 released
270032 [vshepelev@im] Subj at http://uniforma.rubyforge.org

Passing var to anoter script
270036 [nicpon@ni po] Hey,
270062 [lists@be tr ] This is not a Ruby but a shell issue. Use
+ 270200 [nicpon@ni po] Thanks that was helpful.
+ 270201 [nicpon@ni po] What I just noticed was that it throws me an error saying that $ie
  270266 [lists@be tr ] Arguments to Unix commands are always strings; return value

Apriori algorithm
270040 [jtibunetto@g] I'm wondering if anyone has already implemented the Apriori algorithm

Iterating through a file, sticking iterated array entries in
270048 [pbailey@bn .] I've got an array, a listing of "titles" in an xml file. Basically, I
270140 [m_goldberg@a] The gsub! matches all the substitution targets on the first iteration

why Ruby 1.8.2 is faster?
270050 [summercoolne] I had Ruby 1.8.2 on the Mac so it was able to run a program with 10,000
270089 [drbrain@se m] What program?
270113 [summercoolne] on my Mac, the 1.8.2 runs about 46% faster than 1.8.6
270119 [drbrain@se m] This program doesn't run on ruby 1.8.2, there is no RUBY_PATCHLEVEL.

a patch for ruby-dbi mysql - fixes problem with stored procs
270052 [michaelr524@] @dbh =

using the newest Ruby after installing Locomotive
270054 [summercoolne] after installing Locomotive on Mac, both the shell (Terminal) and
270058 [james@gr yp ] For the shell, you will need to set your PATH environment variable
threads.html
top