274728-276260 subjects 275156-276949

^ Ruby Online
274946 [nonstickglue] I have a code that I would just like to place on a webpage. Do I NEED
+ 274948 [konrad tyler] charset="utf-8"
+ 274952 [bbxx789_05ss] html is for displaying text.  If you want to display your code, you can
  274953 [bbxx789_05ss] On second thought, html does have <applet> and <object> tags that allow
  274988 [nonstickglue] Yea, thanks. I basically just want to be able to go to a website and
  + 274994 [perrin apoth] Look into eruby implementations.  If you're on a webhosting account that
  + 274999 [dangerwillro] that's pretty vague still.
    275003 [nonstickglue] list = []

^ read tables from SQL code
274954 [mihai.bulhac] SELECT Select_List
274956 [ciconia gmai] If you use Sequel you can retrieve the columns for arbitrary SQL like
274985 [dangerwillro] Ruby DBI will let you do exact SQL, like DBI in other languages.

^ [ANN] RubyGems Beta
274958 [drbrain segm] RubyGems is a beta release for the upcoming 0.9.5 which adds
+ 274977 [fxrubyguy gm] FWIW, seems to still identify itself as version
| 274981 [drbrain segm] My bad, forgot to update the index.
+ 274979 [se digitale-] (NameError)
  274986 [drbrain segm] Poor workers blame their tools. Good workers build better tools. The
  275007 [se digitale-] Please read again, what I have written. I am sure you overlooked that
  275042 [drbrain segm] I'm sorry, I meant to say that you can run `gem` instead of `gem.bat`
  275087 [se digitale-] Of course, I should have thought of that.

^ require  with absolute path
274962 [molla5 yahoo] require 'C:/builder-2.1.2/lib/builder.rb'
274963 [alex blackke] Doesn't the "." refer to the cwd of the ruby process, rather than the

^ hash map during the creation of a new class instance?
274965 [aidy.lewis g] Is it possible to use a hash map during the creation of a new class
274966 [shortcutter ] And what should this do?
274967 [aidy.lewis g] I was thiking of passing meaningful data into a test case class I have
274968 [shortcutter ] "x" is called a "parameter".

^ [ANN] Ruby/Informix 0.6.2
274969 [gerardo.sant] This is a maintenance release that fixes a compilation error on the

^ using TkPhotoImage
274971 [redman acces] I am trying to convert a set of cards from a tcl/tk program that uses
275020 [nagai ai.kyu] Here you are.

^ logon
274972 [jacques cali] How do i log on to the coupa server ?

^ [ANN] main-2.1.0
274983 [ara.t.howard] NAME

^ libxml iterate xml tree
274991 [philipp.goet] i dumped my whole saturday on a small xml problem :-)
275073 [philipp.goet] if i do it like

^ Anyone written ruby milters?
274993 [ news jay.fm] I have an aging mailing-list handler that uses a combination of procmail,
275527 [barjunk attg] +1.  I was looking at using ruby based milter as well.  I don't know
275568 [ news jay.fm] I finally heard back from the author of the RAA code, and he's given me

^ Re: RubyGems Beta
274996 [djberg96 gma] On Oct 20, 10:43 am, Sasa Ebach <s...@digitale-wertschoepfung.de>
275012 [luislavena g] Sasa, what are the contents of your current gem.bat file?
275084 [luislavena g] and the new gem stubs don't have 19 lines, nor the ruby code injected.
275088 [luislavena g] That mean you solve the gem error you was having :-)
275099 [se digitale-] Did that. Now I have
+ 275111 [luislavena g] I don't know if that's ok to do, and why scrubyt stick to = 3.6.3 of
+ 275140 [drbrain segm] This is a bug.
  275149 [se digitale-] Installing gem RubyInline-3.6.4
  275151 [luislavena g] It yelling that gem named '3.6.3' don't exist, but checking the mirror
  275201 [se digitale-] Installing gem RubyInline-3.6.4
  275260 [luislavena g] On Oct 22, 9:38 am, Sasa Ebach <s...@digitale-wertschoepfung.de>
  275263 [se digitale-] done

^ How to split ruby code into multiple files
275001 [ced_dude hot] my ruby code is now a long file and I'd like to split it into different
+ 275004 [TimHunter nc] Use the require method to require individual files.
+ 275006 [thomas.adam2] You should create Modules and allow them to be mixins to your Classes
| 275059 [hawat.thufir] Would this be sorta equivalent to creating a package in Java?
| 275066 [thomas.adam2] Ish.  But unlike packages, you get a whole lot more with the use of
+ 275011 [bbxx789_05ss] my_lib.rb

^ embed Ruby or Lua
275002 [gaspard teti] I am writing a real-time data processing tool (data in ---> pattern
+ 275035 [gmurray clou] Testing on old and slow computer would provide your answers.
| 275077 [gaspard teti] it is not collected ? (I will test this to see).
+ 275044 [znmeb cesmai] I'm not quite sure *exactly* what it is you're trying to do here, but my
  + 275049 [ttmrichter g] There are, in fact, hard realtime garbage collection algorithms
  | 275072 [znmeb cesmai] IIRC Lua was designed from the ground up to be embeddable in C code and
  | 275089 [dangerwillro] If you're doing midi on a Mac, you should look into some of the Core
  | 275110 [gaspard teti] I use the excellent RtMidi (http://www.music.mcgill.ca/~gary/rtmidi/)
  | 297576 [paolo.bosett] Gaspard, just a couple of comments.
  + 275060 [gaspard teti] All the core parts are coded in C. I need a scripting language for the
    275071 [znmeb cesmai] Ah ... Intel Mac Minis. I don't know Accelerate, but I know Clint Whaley

^ [ANN] LiveConsole 0.1.0 -- eval code against a running program with IRB
275008 [1337p337 gma] I quit my job, and that can only mean one thing:  time to release a new gem.
275009 [ news jay.fm] That's beautiful!  Does it work with Rails and/or ruby-debug?  All three
275023 [1337p337 gma] I haven't tested it very thoroughly on Rails, but it seems to work.

^ [ANN] main-2.1.0
275010 [ara.t.howard] NAME
+ 275155 [botp delmont] # INSTALL
| 275233 [ara.t.howard] thanks!  just noticed the upload had failed... it's on rubyforge now =20
+ 275321 [botp delmont] #  argument 'x' do
  275323 [ara.t.howard] what's 'wc' above?
  275325 [botp delmont] # what's 'wc' above?
  275328 [ara.t.howard] lol - not at all.  just a quick fix when modes are ambiguous - i'll =20

^ [ANN] mms2r 1.1.11 Released
275015 [mikemondrago] mms2r version 1.1.11 has been released!

^ installing ruby on ubuntu GNU/Linux
275024 [devi.webmast] I am setting up ruby on a new ubuntu system and was wondering if it matters
275033 [james.britt ] My experience with Ruby on Ubuntu (or pretty much any *nix system) is
275036 [devi.webmast] The main reason I am asking is I read somewhere that the performance of
275076 [alex blackke] That applies to Ruby too.  I forget the precise stats, but self-compiled
275078 [fwmailinglis] charset="us-ascii"

^ Is Ruby For Me?
275025 [tony netald.] I've recently discovered Ruby/Ruby on Rails.  Or more accurately, I have
+ 275028 [aredridel nb] I write some GUI apps in Ruby. There's some caveats, but nothing I
+ 275030 [ news jay.fm] I actually read in a book yesterday that it was specifically not for you.
| 275045 [mo_mail ongh] Although it's not an IDE, WideStudio will give you the ability to create
| + 275052 [shevegen lin] If you mean ruby as a language like perl (and perl use cases), then
| + 275057 [hawat.thufir] I was curious about that.  Is there nothing in the works to go VM route
+ 275031 [james.britt ] Ruby is much more than Rails.  Rails is but one of several Ruby Web
+ 275058 [bbxx789_05ss] Ruby's documentation is so bad,  it makes learning the language too
| + 275061 [ttmrichter g] Well, that and The Ruby Way (more useful by far than the Pickaxe to me),
| + 275062 [devi.webmast] I have a hard time saying a language is poorly documented when the
| | + 275065 [huw darkneon] I was a Delphi programmer for 10 years so I know where you are coming
| | + 275070 [znmeb cesmai] I'm mid-way between 7stud and Devi here. I'd rather *not* have to learn
| |   275080 [dblack rubyp] The first thing I thought of when I saw that was my late cat Petey,
| + 275074 [celtic sairy] Admittedly, I've never read that book, and I think I'm getting along
| | 275081 [dblack rubyp] I'll still go on record as saying that every Ruby programmer should
| + 275085 [ news jay.fm] You may want to check out some of 7stud's other posts to see whether you
+ 275093 [lloyd 2live4] I am also a Delphi programmer.  I worked at Borland supporting Delphi
  275102 [ news jay.fm] Actually, both of these are now/soon-to-be incorrect...
  + 275141 [tony netald.] Bravo!!  What a phenomenal response people.  You all have given me some
  | + 275143 [tony netald.] I did have another question because I think I understand Ruby to be
  | | 275144 [phlipcpp yah] Event Driven is a "style" of programming. Delphi and Ruby both support a
  | + 275175 [ttmrichter g] I really enjoy using swig as a universal
  |   275184 [stephen step] i know what I'm about to post doesn't apply to you. however i think it
  |   275222 [znmeb cesmai] Well, one of the goals of wxWindows is to have a native look-and-feel on
  + 275299 [lloyd 2live4] Ruby can do wondrous things.  Making libraries is necessary for any

^ Can class methods be in a module?
275026 [hs dbginc.co] module FtpClientMod
+ 275029 [m.fellinger ] ...
| 275034 [hs dbginc.co] I guess I was not clear. I am trying to place a class method in a module
| 275063 [micathom gma] module FtpClientMod
| 275095 [hs dbginc.co] Thanks. That  works but the method in the module does not have access to
| 276030 [micathom gma] Which class variable do you mean?
+ 275048 [bbxx789_05ss] module MyMethods
  275094 [hs dbginc.co] That  works but the method in the module does not have access to class

^ snippits 0.5.0 Released
275027 [ben kudria.n] snippits version 0.5.0 has been released!

^ objects or variables?
275032 [hawat.thufir] starmonkey = ratchet.attach( captive_monkey, captive_star )
+ 275038 [m_goldberg a] Ruby is a dynamic language -- nothing is static in the sense of Java
+ 275039 [bbxx789_05ss] He doesn't say, and I don't think that is the point of the example.  The
  275053 [hawat.thufir] Ah, yes thanks.  Also, that Ruby doesn't have static typing I find

^ Problem using FileUtils to sort JPEG files
275037 [phrexianreap] This is an odd problem, I admit. I'm currently working on a short script
+ 275047 [bbxx789_05ss] #{pix}"
| + 275082 [TimHunter nc] The RMagick doc is not typical. It is the result of many hundreds of
| | 275121 [phrexianreap] you tell me how to have RMagick handle diffrent filetypes properly? I've
| | 275123 [TimHunter nc] To use RMagick to determine if an arbitrary file is an image file that
| | 275145 [bbxx789_05ss] Then here's a suggestion.  On the documentation page, display a link
| | 276011 [phrexianreap] I think for now I'm going to keep everything within the loop. It makes a
| | 276051 [bbxx789_05ss] Consider this: how does ruby determine if a filename is a directory?
| | 276145 [phrexianreap] The way I'm currently going through all this, and the cases I'm trying
| | 276376 [bbxx789_05ss] Suppose your directory has 2,000 files in it.
| | 276482 [phrexianreap] Alright, I see what you are saying. I'll look over your code again,
| + 275119 [phrexianreap] I do that in places to make sure there isn't a problem somewhere with a
+ 275108 [w_a_x_man ya] On Oct 20, 11:12 pm, forgottenwizard <phrexianrea...@hushmail.com>
  275120 [phrexianreap] Retyped it. uxterm doesn't like copy+paste.

^ Anonymous classes?
275040 [btilly gmail] Here is what I'd like to do.
+ 275046 [ezmobius gma] Cheers-
| 275068 [btilly gmail] If I'd seen that before I implemented mine, I would have just shown
+ 275055 [sepp2k googl] anonymous_class.send(:define_method,:my_method) {|x| puts x}
+ 275056 [bbxx789_05ss] Dog = Class.new {
  275069 [btilly gmail] I tried this, but when I went with my inherited objects, I was not

^ Float::MIN Not an actual minimum?
275051 [chippersbox ] I was curious as to why it would be possible to perform operations that did

^ How to obtain the default encoding of system?
275079 [liwenqiu gma] a script run on linux or windows, i want to know the encoding of system, in

^ RACC and YACC problem in TMail
275086 [raasdnil gma] I am trying to get outlook email through a small set of programs I

^ "with" statement
275090 [pedz easesof] Pascal has a with statement.  (I'm showing my age).  It would be nice
+ 275098 [stephane.wir] I don't approve this solution, but why can't you use it ?
+ 275103 [dblack rubyp] david-a-blacks-computer:~ dblack$ erb
+ 275107 [dan zeraweb.] Robert and David are right - you can use instance_eval. If you really
  + 275113 [pedz easesof] Yippie!!!  I figured there was a way.
  + 275204 [apeiros gmx.] Why not just alias instance_eval? Would achieve the same and is less
  | 275212 [ymendel pobo] Probably because it wouldn't read right anymore.
  + 275352 [shortcutter ] How is this more compact than
  + 275464 [1337p337 gma] module Kernel
    275470 [rhkramer gma] I may really be misremembering the with statement from Pascal, but, as I

^ Fwd: Please Forward: Ruby Quiz Submission
275091 [james graypr] charset=ISO-8859-1;

^ Memory management
275096 [hs dbginc.co] I am new to Ruby. If I instantiate an object instance with
+ 275100 [stephane.wir] If you set x to nil, the garbage collector can free the memory because
+ 275104 [TimHunter nc] For the most part you don't need to worry about memory management in

^ Solution to Time Window (#144)
275097 [rubytraining] Below you'll find my solution to the quiz.  I approached it a

^ Showing vendor/plugins/coupa_engine/app/views/catalog_items/
275105 [jacques cali] Any ideas ?

^ gnu licence
275106 [jacques cali] Showing

^ how to setup path
275109 [junkone1 gma] how to setup the ruby path that my code can look at runtime for the
+ 275112 [thomas.adam2] $LOAD_PATH.unshift( '/some/path/to/wherever' )
+ 275114 [globyy3000 h] correct me if im wrong but wouldnt you just use the shebang? Of course
  275115 [thomas.adam2] Changing the shebang would only change where to find the ruby
  275126 [globyy3000 h] Thanks, good to know!  :D
  275189 [Paul.McArdle] => ["c:/ruby/lib/ruby/site_ruby/1.8", "c:/ruby/lib/ruby/site_ruby/1.8/

^ Unsubscribe
275116 [anobject mac] charset="US-ASCII"
275176 [fchendricks ] South Africas premier free email service - www.webmail.co.za

^ [ANN] mms2r 1.1.12 Released
275127 [mikemondrago] mms2r version 1.1.12 has been released!

^ How to use a hash inside a Struct?
275128 [williams.jay] object = Struct.new(Hash.new(), :attr2, :attr3)
+ 275129 [has.sox gmai] Nope.  What are you trying to do?
| 275131 [williams.jay] I am creating a class that creates elements of a house. For the part
| 275133 [chippersbox ] It might be easier to use OpenStruct.
| 275152 [williams.jay] I think both of these methods will work
+ 275130 [thomas.adam2] Struct objects except Symbols.  What is it you're trying to do?
  275132 [ruby gmail.c] Thing = Struct.new(:attr1,:attr2,:attr3)

^ gsub does not work with do/end block, only brackets
275136 [nanostuff ma] puts "abcdefg".gsub(/abc/) do |x|
+ 275137 [rick.denatal] Because {} binds tighter than do end
+ 275138 [ pm ubit.com] Braces have high precedence, do end has low precedence so with
+ 275139 [alexg kuicr.] It interprets the block you are trying to give to 'gsub' as a block
  275142 [nanostuff ma] Fascinating, thanks.

^ Self-replicating Ruby
275146 [Frank_J_Lhot] Dear Ruby fans,
+ 275147 [aaron tender] This is called a Quine, right?  I can't beat Ryan Davis', so I'll just
| 275186 [alex blackke] <%=s=">%\"}esrever.s{#}tcepsni.s{#=s=%<\";";"<%=s=#{s.inspect}#{s.reverse}"%>
+ 275256 [m_goldberg a] My favorite Ruby quine is
| 275270 [lojicdotcom ] Very nice. I looked up "DATA" in the pickaxe and found that I had
+ 275261 [doodpants ma] On Oct 21, 10:21 pm, "Frank J. Lhota" <Frank_J_Lh...@Raytheon.com>

^ Re: Time Window (#144)
275148 [ymendel pobo] Like Gordon, I used Runt a bit for my solution. Unlike Gordon, I

^ PATCH for TMail to handle MS Outlook Emails
275153 [raasdnil gma] TMail handles the "content-type" header field per RFC 2045.
+ 275157 [transfire gm] as he is too busy with other things. I setup a RubyForge project and
| 275534 [barjunk attg] Trans,
+ 275528 [barjunk attg] Thank you Mikel.  I am currently trying to use this library.   Thanks

^ How to obtain local encoding?
275154 [liwenqiu gma] I have a problem, I don't know how to find out what is the current
275168 [halostatue g] There's no cross-platform way of telling this. LC_LANG will tell you
275172 [liwenqiu gma] require 'wx'
275214 [halostatue g] Look at the implementation of wxruby, then. That'll have the C
275224 [liwenqiu gma] i not a c/c++ programer :)
275239 [halostatue g] That may be. There's no inbuilt Ruby way to get what you want.
+ 275314 [liwenqiu gma] I am terribly sorry.
+ 275530 [djberg96 gma] No, but there's windows-pr. :)
  + 275531 [no spam.plea] Note also that "system default" is the language in which the system
  | 275533 [djberg96 gma] Yep, use LOCALE_USER_DEFAULT for that instead.
  + 276133 [nobu ruby-la] Don't you know how to tell MIME encoding name from a codepage?