261788-262438

261611-264140 subjects 262036-299388

[ANN] Ruby Canada launched - The Canadian resource for all things Ruby
261788 [nshb@in mi .] Ruby Canada (http://rubycanada) is a new source for Ruby and Rails

rtrim and ltrim function for ruby: is this ok?
261793 [leon@ti -o l] class String
+ 261801 [leon@ti -o l] Pfff... Sorry for the second post. I couldn't find the first one on
| + 261805 [caduceass@gm] Leon, look at String#slice!
| + 261854 [iw1junk@co c] I would argue that ltrim and rtrim should not remove one character, but
|   261869 [m.fellinger@] Since we got the power of regex/gsub, let's use it :)
|   261996 [iw1junk@co c] Michael,
+ 261802 [leon@ti -o l] Ow yeah. rstrip and lstrip only strip spaces (and maybe line-endings).

Re: Ruby Canada launched - The Canadian resource for all things Ruby
261794 [pmr16366@gm ] I think your scraper has a bug ;-)
261803 [nshb@in mi .] Any more details on the bug? What kind of software would it be without
261804 [nshb@in mi .] Ahh yes.. the prep cook. Seems _Ruby_ Lake Resort is being snagged up.

Modeling -- how to support multiple views of same components?
261816 [transfire@gm] I have a little design conundrum. I'm not sure the best way to model
+ 262001 [shortcutter@] It's difficult to comment without knowing the domain or your use case.
| 262011 [transfire@gm] Sure. It's for configuration information. On the one hand, I want to
| 262029 [shortcutter@] 1. reuse of config parameters and their defaults in multiple places
+ 262018 [robert.dober] You just recently accepted a patch for snapshot, right?

IO.getc (Based off of #45 MUD)
261821 [ari@ar br wn] I have some questions about sockets, IO.getc(), and IO.ready?().
261873 [james@gr yp ] Those are telnet codes you will need to recognize and remove.  Your

Why Ruby?
261823 [al_batuul@ya] ...
+ 261826 [lyle.johnson] ...
| 261868 [greg.kujawa@] Out of a small handful of languages I've worked with I can say the
+ 261832 [TimHunter@nc] That's a very broad question with many, many answers. It might be easier
+ 261833 [james.britt@] James Britt
+ 261835 [ari@ar br wn] Well, many reasons!
| 261836 [mark@oc we .] ...
| 261839 [kyleaschmitt] How about...
+ 261893 [dido.sevilla] It's Lisp for the masses.
+ 261897 [lists@be tr ] Do some small task in Ruby and in any other language ...

Crash when using sockets
261825 [5oyarbmzbizq] whenever I try to use the following socket, an error window pops up
262033 [stefan@ma li] I have the same but with ruby 1.8.5

Adding arrays
261838 [schmode93@ya] I was wondering, if it is possible to add two different arrays together,
+ 261840 [TimHunter@nc] RMagick OS X Installer [http://rubyforge.org/projects/rmagick/]
| 261841 [schmode93@ya] Great, I bookmarked them, Im wondering, what is the 1st link all about?
| 261842 [TimHunter@nc] Why not just look at the site? It describes itself.
| 261844 [schmode93@ya] ok, thanks for the help so far :)
+ 261850 [phrogz@ma .c] irb(main):001:0> a = [1,2,3]
  261857 [schmode93@ya] Oh Thanks so much, but i dont have the irb main in C:? and its not in my
  + 261862 [schmode93@ya] Well, nvm about the irb main, the one off of this program *hackety hack*
  + 261879 [caduceass@gm] irb.bat (along with your other ruby-related executables) should be in
    261882 [schmode93@ya] Great explination, and i did get the irb, thanks a  ton todd :).
    261885 [caduceass@gm] No prob.  If you really are just starting, don't get too frustrated
    262077 [schmode93@ya] humm ok so i tried out my *program* but at the very end i get an error..
    + 262080 [schmode93@ya] gahhh! sorry posted this on wrong forum, please look at re- beginner q.
    + 262090 [stephen@to s] You're not using either. You're taking straight from standard input, so

Ruby DBAL?
261843 [dan-ml@da 42] I'm trying to write an ORM because it sounds like a fun learning
261847 [khaines@en g] ruby-dbi

Why is it so hard to kill Ruby?
261845 [TimHunter@nc] Since I've been using Ruby I've noticed that a running Ruby script is
+ 261856 [ryand-ruby@z] works for me on same(ish) setup
| + 261860 [rsayers@gm i] ...
| + 261871 [george.budd@] For what it's worth.  If you run "stty -a" from your shell what do you
+ 261905 [alex@bl ck e] I've been confused by this when WEBrick traps signals I'm not expecting
+ 261969 [james.britt@] Soon Ruby will be unstoppable.
| + 261972 [cdcarter@gm ] As a child, Ruby had heard rumors of a promised land.  Where POSIX
| | 261978 [robert.dober] you mean "she", right ;)
| | + 261986 [cdcarter@gm ] Ruby has no gender.  Ruby still needs a personal pronoun.  They and
| | | 261991 [robert.dober] Hmm are you sure, I have looked you know...
| | + 262076 [dido.sevilla] Indeed--
| + 261976 [robert.dober] If I have understood correctly Ruby also has undergone some dangerous
+ 261984 [akr@fs j. rg] I know a script that is hard to kill.
+ 262215 [nullserver@g] I've written some scripts that are nearly immortal.
  262291 [wayneeseguin] ...

what regexp can split a string  to argv
261848 [miaohaoz@us ] I want to split a string to a array like shell doing. And the
261851 [TimHunter@nc] RMagick OS X Installer [http://rubyforge.org/projects/rmagick/]

A method to search and cut in Ruby.
261849 [scomboni@gm ] I'm trying to parse some EXIF data and return certain fields of text.
261852 [phrogz@ma .c] irb(main):001:0> s = "Foo   :  Bar"
+ 261861 [scomboni@gm ] I was looking at this method as well. I was having trouble though as I
| + 261899 [phil.meier@g] s =~ /^.*?:/
| | 261930 [scomboni@gm ] Thanks so much for everyones answers much appreciated. The space after
| + 262052 [thomas.gantn] split takes an optional second parameter <limit>, defining how many elements
+ 261864 [renard3411@g] Some of the text I'm grabbing can contain  additional

Converting escaped html to utf-8
261853 [chris.worral] I've looked around online for a solution, but I'm pretty new to ruby
261999 [chris.worral] Well, after some more googling, I found a solution. If anyone was curious --
262049 [dan-ml@da 42] I'm surprised no one mentioned it but you could use

ActiveRecord Problem: Client not up to date
261855 [ari@ar br wn] How can ActiveRecord not be up-to-date to connect to my MySQL?
261859 [james.britt@] Mysql change how it handled password encryption somewhere between

How to properly iterate an array (using TDD)
261863 [desertfox@ho] Im trying to iterate an array, but its not working.
+ 261865 [has.sox@gm i] ...
+ 261866 [fwmailinglis] charset="us-ascii"
  261867 [m.fellinger@] def get_component_info(bom)

how can i use a  ruby class in object way
261875 [gyg22@16 .c ] can you help me ?we all know  that we can use a class'object in main
+ 261890 [FireAphis@gm] I hope I understand your question correctly.
| 262365 [gyg22@16 .c ] thank you very much!Your answer make me understand more about object in
| 262367 [robert.dober] It is not completely clear what you want to achieve but some remarks
| 262370 [gyg22@16 .c ] class Test
| + 262371 [robert.dober] ok I see now, well this is "simple" once you have grasped the concept,
| | 262382 [gyg22@16 .c ] OKļ¼?i can understand now.Thank you!Thank all the people who helped
| + 262377 [logancapaldo] ...
+ 261898 [shortcutter@] As has been mentioned already, the body of the script file is what in
  262366 [robert.dober] Small typo here
  262373 [shortcutter@] Right.  Thanks for catching the copy & paste error!

page reader
261887 [thilankaster] ...
+ 261889 [dzwell@gm il] Well, there are two parts to that question. One is how to get the body
+ 261891 [thilankaster] ...

rake and implicit dependencies
261903 [phelan@tt ec] I am playing with Rake to build c projects and I run into this problem

rtags bug
261904 [transfire@gm] And progress on this bug?

How to truncate float number after dot?
261906 [m.tyman@in e] How to truncate float number after dot? I suppose it would be easy.
+ 261907 [gethemant@gm] 19.84.round #=> big brother is watching you
+ 261908 [pergesu@gm i] irb(main):001:0> 12.68.floor
| 261909 [pergesu@gm i] Gah, I forgot the all important round!
| 261910 [shortcutter@] 12.38.to_i
| 261924 [m.tyman@in e] I didn't mean to truncate all. But i.e. to round to several places after
| 261927 [shortcutter@] Usually it's better to calculate with full precision and round when
+ 261970 [ jupp@gm .d ] Let n be the number of digits following the decimal point you want to

Is there a way to parse ruby code and generate a word doc?
261911 [neha.chopra@] Is there a way by which we can parse ruby code to generate a word file
261915 [shortcutter@] Open your Ruby script with Word then Menu->File->Save As and save as Word.

Transparent Image Using Rmagick
261912 [ciocan@gm il] I use rmagick to create a new image.
+ 261916 [chris.lowis@] Take a look at the tutorials on the rmagick website (
| 261920 [ciocan@gm il] it works, but it use external ImageMagick convert program
+ 261934 [TimHunter@nc] If you just want a solid-color image that's 50% transparent, specify the
  261941 [ciocan@gm il] Thanks Tim for your reply.
  261952 [rmagick@gm i] What makes you think it doesn't work? How are you viewing the image?
  261954 [ciocan@gm il] It's a png image.
  261958 [rmagick@gm i] Send the image and a script that reproduces the problem to rmagick AT
  261973 [ciocan@gm il] require 'RMagick'
  262040 [TimHunter@nc] I didn't get any mail from you. Without the image I can't help you.

Re: Is there a way to parse ruby code and generate a word do
261917 [neha.chopra@] I want the ability to generate a word document by parsing through my
261919 [shortcutter@] I'm not sure why you talk about "parsing".  Parsing is done by the
262438 [neha.chopra@] Can anyone tell me whether the RTF Writer works for Unix or not?

Array access
261918 [alvaro.pmart] I have an Array with two Target objects. How can I manage to take each
261928 [shortcutter@] Dunno your class but you probably want to try this
261933 [alvaro.pmart] class Target < ActiveRecord::Base
261988 [caduceass@gm] Hmm, no doubt you would receive some good help from activerecord gurus
262110 [alvaro.pmart] thank you very much for your help. First solution doesn't work (same

Re: Help: Get list of modules which are included in the clas
261921 [chirag80bece] Thanks for the reply. I have looked all the solution but all above
262068 [botp@de mo t] # > From: Robert Dober [mailto:robert.dober@gmail.com]

Blocking read blocks all threads on Windows?
261922 [AlanMStokes@] require 'timeout'

List of directory.
261925 [m.tyman@in e] Does anybody know how to list directory in alphabetical order? i.e.
+ 261926 [shortcutter@] Apparently you want to _sort by_ the numeric part.  You can extract it
| 261929 [m.tyman@in e] arrOfFiles.sort! do |file1, file2|
| 261932 [shortcutter@] Well, if you want to sort in place you could do
+ 262041 [phrogz@ma .c] files = %w| a1 ab1a ab1b ac1 a2 ab2 ab3 b1 bb1 ba1 a10 a20 a10a a aa

how to play .avi and view jpg?
261938 [arun.mehta@g] I'm trying to write some client software that can play .avi videos,
+ 261944 [greg.kujawa@] The simplest thing you could do if you are targeting Windows platforms
| 261950 [edder@tk sp ] You could do something similar using mplayer, which would allow you to
+ 262064 [dangerwillro] You want cross platform?

MySQL
261939 [m.tyman@in e] How to operate on MySQL? I would like to delete, create database and
+ 261942 [ronald.fisch] If you connect with administrator privileges, you should be able
| 261948 [m.tyman@in e] dbh.query("source c:/create.sql") - doesn't work. It causes SQL syntax.
| 261955 [ronald.fisch] True, but for this case, you can always do
| 261956 [m.tyman@in e] Thanks, I'll check it. It seems to be ok. At the moment I cannot check
| 261959 [fwmailinglis] charset="us-ascii"
| 262359 [dangerwillro] Safest advice, yes, but...
+ 261943 [fwmailinglis] charset="us-ascii"
+ 261971 [ari@ar br wn] You can use Ruby/MySQL, MySQL/Ruby, DBI, or ActiveRecord

MySql+UTF8 woes
261940 [ronald.fisch] I am experiencing a strange problem when retrieving Unicode values from

unsubscribe
261966 [Tiffany.Sonn] unsubscribe

Python Vs Ruby ( again )
261974 [phelan@tt ec] There was a discussion a while back in trying to get Ruby looking like

help with net/ssh
261977 [sid.webnews@] hey guys,
261981 [alflol@gm il] probably you need to also to
261982 [sid.webnews@] Thanks for the reply.

help if else
261979 [r0nsync@ya o] if ((( chaine[i+14] == "twincards>false</twincards")||(chaine[i+14]
+ 261983 [jan.svitok@g] - xsi:nil="1"/"))
+ 261987 [ben@bl yt in] You're closing one too many sets of parents after the "true"
  261989 [lists@be tr ] It's not only legibility, it's enough to calculate c[i+14]
  261993 [ben@bl yt in] Right!  I forgot to mention that :)

Sketchup user input
261990 [mpalan@ia ta] How do I get user input in sketchup?
261997 [alex@bl ck e] Have a dig, it's all in there (if a little confusing at times).

Article of interest (?): Why Ruby on Rails Succeeded
261992 [esther@bi ra] Whatever you think of Ruby on Rails technically -- even if you prefer
+ 262006 [phlip2005@gm] Nice article.
+ 262007 [hal9000@hy e] Oops, I didn't realize Esther had already posted this. Sorry
  262010 [robert.dober] Indeed you could have been more careful, now I have to read it *twice*!!!
  262012 [phlip2005@gm] Not very DRY, guys! (-;
  + 262014 [robert.dober] Read it twice anyway, I just did, really :)
  + 262023 [dblack@wo bl] Hal didn't repeat himself -- he repeated someone else :-)
    262058 [gregory.t.br] DROP.  Don't Repeat Other People
    262112 [robert.dober] DRAIN
    262115 [dblack@ru yp] DRIP DRY
    262116 [robert.dober] Hmm is this a subtle indication that maybe we are wasting a little bit

[Rails] NameError: ApplicationAPI
261995 [Markus@re li] Just for the record...

Accessing PDF Metadata and Page Thumbnails
261998 [listmail@be ] I am putting together a PDF archive of our corporate newsletters. I'd
262123 [minciue@gm i] Have a look at http://extractor.rubyforge.org . You need libextractor

Trademark and terms of usage of Ruby logo
262000 [jw@in er wu ] Cheers,
262003 [jan.svitok@g] [1] http://www.google.sk/search?q=ruby-lang+logo
262043 [jw@in er wu ] Thanks!

Does rake work with cruisecontrol? How?
262002 [maung@at -o ] I am totally new to rake and cruisecontrol. Does Rake work with

Article: "Why Ruby on Rails Succeeded"
262004 [hal9000@hy e] You may or may not find this article interesting or
262009 [robert.dober] I am by no means qualified to judge that fact, but for what I am
262020 [james.britt@] The flip side is that many people, to their detriment, believe Ruby ==
262022 [gdonald@gm i] I can easily beat that  :)
262039 [james.herdma] ...
262042 [dblack@ru yp] Cheer up :-)  We all miss out on a lot, whether it's technological or
262089 [dangerwillro] Indeed!

Getting started with full sized apps... how?
262008 [lloyd@2l ve ] Ok.  First, I should say that I think highly of the Ruby language.  I
+ 262021 [jameskilton@] ...
| 262025 [lloyd@2l ve ] Well, therein lies the rub.  If I were to start with something in a new
| 262028 [jameskilton@] ...
+ 262027 [m_goldberg@a] Pick one of Ruby GUI libraries and go with it. Currently, I'm using
| 262030 [mark@oc we .] ...
+ 262037 [m_goldberg@a] You might get some ideas from Ruby Quizzes 5, 104, and 129. The
  262065 [dangerwillro] Indeed you should consider the web interface of Rails, GUI
  262135 [lloyd@2l ve ] Well, I agree and I should clarify, therefore.  The methods I write that

Class variables and how to set them up only once.
262015 [kyleaschmitt] I'm trying to share a File object with everything that inherits from
+ 262017 [kyleaschmitt] And after I said I couldn't find a way of getting at class_variables
| 262019 [kyleaschmitt] def setupLogger(path="c:\\#{DateTime.now.to_s.gsub(':','-')}.xml")
| 262024 [dblack@wo bl] @@logger ||= File.new ....
+ 262026 [shortcutter@] There is at least one logging package for Ruby (Log4R).  I'd use that
  262031 [kyleaschmitt] dblack,

Set Telnet Server nonblocking = false
262034 [ari@ar br wn] Hey all,

User Authentication and permissions
262035 [jmilunsky@ho] This may be a bit too open ended but what is the best way to add user
+ 262059 [gregory.t.br] ...
+ 262358 [dangerwillro] There are a few ways, one is well covered in the AWDWR book.
  262385 [gregory.t.br] That is the mailing list you are responding to right now.  If you're
  262435 [dangerwillro] Oops, that was an early morning coffee moment, I meant Rails Talk at
threads.html
top