373222-390044 subjects 373608-410139

Free Shipping $0.01,is it true?
373433 [catherine656] Have you bought the free shipping products? I saw the free shipping

Win32ole - AffectedRows example?
373434 [lmuellerhome] can anyone help me out with a working example on how to return
+ 373466 [James.French] I've just been doing some stuff with win32ole. First thing I'd recommend is=
+ 373606 [cbciv@ya oo ] Is the problem that you don't know how to use the ADODB library, or
  373739 [lmuellerhome] It appears that, when retrieving the results of an insert or update

"puts, if and unless" VS "nil"
373441 [edmond.kacha] Rubysters,
373442 [jgabrielygal] if (NIL_P(argv[i])) {
373444 [shortcutter@] is
373454 [jgabrielygal] is

Ruby connnection string for sql server 2005
373443 [shirishnagar] I am trying to fetch data from the database. Attached is my code, which

[ANN] JRuby 1.5.5 Released
373448 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.5.5.
373463 [joelvanderwe] What output are we supposed to see? I just installed 1.5.5 and --profile
374018 [headius@he d] Yeah, sorry about that. There's an update to the jruby-launcher gem
374055 [nicksieger@g] Actually, all you need to do is "gem install jruby-launcher" to get
374066 [joelvanderwe] Thanks! Should this be installed with MRI gem, or jruby gem ?
374075 [nicksieger@g] JRuby! It will compile the native launcher for your system and install
374077 [joelvanderwe] Works now, thanks!
374938 [headius@he d] Currently, no. Because Ruby dispatches differently than Java,

case statement variation 1.9.2 vs 1.8.7
373452 [byrnejb@ha t] case n.hll_normalize
+ 373455 [byrnejb@ha t] def hll_normalise
+ 373456 [byrnejb@ha t] Sorry, this is evidently a RoR issue.  I will move it to there.

Ruby mysql to remote server
373453 [johnsayeau@g] mysql installed on my local machine. When I don't have mysql  installed
+ 373458 [cmdjackryan@] You need at least the MySQL client package installed, so technically
+ 373464 [johnsayeau@g] Ok. thanks.

Short question about encoding.
373467 [poopsmith@la] After getting more into Ruby I stumbled across a little problem: how
+ 373474 [ammarabuali@] HTH,
| 373475 [Rob@Ag le on] It seems to be fine with Ruby 1.9.2-p0.
+ 373524 [poopsmith@la] I'm guessing that's the issue.
| 373660 [timr@pr bo c] Because your console doesn't use UTF-8.  Windows consoles are 8-bit, and
+ 373671 [poopsmith@la] system "chcp 65001"
| 373683 [cmdjackryan@] If you have Vista or Win 7 installed, try your script in PowerShell.
+ 373716 [poopsmith@la] Yup I'm on Windows 7.

Does Ruby have an equivalent to Python's ctypes?
373470 [shadowfirebi] ...
+ 373472 [echristopher] From the description I found of ctypes, I think ffi
+ 373473 [ammarabuali@] No. But, if you really need it, you can roll your own using regular
+ 373477 [djberg96@gm ] Regards,
| 373494 [ammarabuali@] Given how easy it is to implement this type functionality in pure
+ 373516 [shadowfirebi] ...

ruby ORM
373479 [zuerrong@gm ] which is the best ORM for ruby?
+ 373480 [sduncan@we a] I've been writing Ruby for three days now. DataMapper seems very good.
+ 373484 [richard.conr] It all depends on what you want exactly. A Database ORM is an abstraction of
| 373748 [skye.shaw@gm] Sequel is very good. Its dataset based and therefore quite flexible.
+ 373502 [josh.cheek@g] ActiveRecord, it is the default for Rails, and thus has a huge community
| 373549 [code@ap th o] it
+ 374872 [rubfor@re it] If you do use Windows I really recommend reading
+ 375162 [user@co pg o] I propose not to wait until you get enough cash to buy different goods! You should get the <a href="http://bestfinance-blog.com/topics/personal-loans">personal loans</a> or consolidation loans and feel yourself free

what's an object?
373481 [eva54321@si ] ...
+ 373482 [astahl@hi .c] ...
| + 373490 [nobuoka@r- e] There is one thing incorrect.
| | + 373500 [astahl@hi .c] ...
| | | 373504 [nobuoka@r- e] A Method object (=3D an instance of the Method class) is an object.  But
| | | 373511 [astahl@hi .c] ...
| | | 373522 [nobuoka@r- e] Did you recognize the difference between a method and a Method object?
| | | 373528 [josh.cheek@g] (twice) and tried to take out things that were unfriendly, sorry if I missed
| | | + 373551 [jrmair@gm il] @Josh,
| | | + 373569 [nobuoka@r- e] I wanted to show the simple example, so I used the function pointer.
| | |   373571 [josh.cheek@g] The exact same thing also happens with a reference (at least in C++, I don't
| | |   + 373572 [fxn@ha hr f.] No, no. If Ruby did what the diagram shows the program
| | |   | + 373576 [robert.dober] er
| | |   | | 373582 [fxn@ha hr f.] Not sure I follow.
| | |   | | + 373583 [fxn@ha hr f.] Sorry, the rightmost arrows should point to the same unique "" here.
| | |   | | + 373596 [robert.dober] That's actually what I meant: When passing the parameter the diagram
| | |   | |   373597 [fxn@ha hr f.] You think the parameter is an alias, and the local variable masks it
| | |   | |   373602 [robert.dober] All you saying is completely clear, but does still not answer my question.
| | |   | |   373604 [fxn@ha hr f.] Let me try to draw a new diagram with words.
| | |   | |   373619 [robert.dober] Completely!
| | |   | |   373661 [fxn@ha hr f.] Aaahhh, perfect :).
| | |   | |   + 373665 [matz@ru y- a] So you guys seem to agree with the basic concept.  From CRuby
| | |   | |   | 373667 [fxn@ha hr f.] Excellent.
| | |   | |   + 373672 [robert.dober] I guess, I eventually understand. It was not the structure of the
| | |   | + 373581 [josh.cheek@g] How can b change what a points to when, according to your own diagram, b
| | |   |   373587 [fxn@ha hr f.] The Ruby spec says in section 6.2.1.
| | |   + 373617 [nobuoka@r- e] I see. An UnboundMethod object represents a specific method
| | |     373659 [nobuoka@r- e] Sorry, I made a mistake.
| | + 373507 [shortcutter@] Everything /which can be referenced through a variable/ is considered an ob=
| + 373491 [zuerrong@gm ] class itself is the instance of Class class, so a class is exactly an object.
+ 373493 [timrandg@gm ] Classes are tables of defined behaviors (i.e. methods). An instance of
| + 373499 [astahl@hi .c] ...
| + 373503 [josh.cheek@g] This seems self-contradictory, how is a method not an object?
|   373550 [code@ap th o] 1.method('+') is not the same as 1.+, so your example does not prove + is
|   373559 [josh.cheek@g] Why should you be able to do foo(3) ? That would require completely changin=
|   + 373561 [jrmair@gm il] @Josh,
|   + 373562 [shortcutter@] lly
|   | 373654 [code@ap th o] You appear to be confusing syntax with semantics here.  Sure, brackets
|   + 373656 [code@ap th o] is
|     373662 [josh.cheek@g] Because puts(3) is shorthand for "send the object 'Kernel' the message
|     373713 [code@ap th o] ct
+ 373508 [b.candler@po] One other point. A local variable is not an object and never is -
| + 373509 [ammarabuali@] I think that's too general and confusing, at least to me.
| | + 373512 [josh.cheek@g] I assume he means a itself, as opposed to the object that a is referencing.
| | | 373514 [ammarabuali@] I had a hunch, but that statement was too general and open to misinterpretation.
| | + 373531 [timrandg@gm ] When you ask object#is.a?(Class) you are asking if the Class is part
| | + 373546 [timrandg@gm ] I do think the code means something different than you are
| + 373513 [shortcutter@] No variable ever *is* an object in Ruby.  Variables *reference* objects!
|   373515 [ammarabuali@] Now that's a different, or at least clearer, statement. And it fits
|   373526 [b.candler@po] Yes. It's important when you compare "pass by value" or "pass by reference" in other languages. In ruby, everything is "pass by value", and each value is a reference to an object - even integers.
|   373544 [zuerrong@gm ] I just tested what you said, the result is opposite, a is changed.
|   373560 [fxn@ha hr f.] Point is a holds a reference, and that one can't be changed. You can
|   373564 [josh.cheek@g] Can we just call it "pass by object reference". Calling it "pass by value"
|   373565 [fxn@ha hr f.] I see no need. The stuff is pretty simple. Variables in Ruby and Java
+ 373570 [nobuoka@r- e] The first question is: "What is an object?"

Total string length regex
373483 [shea@sy ac .] So I have a complicated regex, and I need to have a condition that
+ 373485 [scott@ai ru ] My guess is, you're wanting to check the total length of what they =
+ 373486 [shea@sy ac .] I know I could do it withs several lines of ruby, but I'd really like to
| 373488 [scott@ai ru ] Pretty sure you can repeat "validates_format_of" as much as you like.
+ 373487 [joelvanderwe] => /^(?=.{5,10}$)\w+$/
+ 373489 [shea@sy ac .] I've actually been using rubular - but unfortunately it isn't quite as
  373501 [ammarabuali@] It's worth noting that \w and \W do not handle utf-8 properly in all

[quite ot] scripting an rvm command
373492 [botpena@gm i] sorry for this dumb question, but i'm getting zero iq as of this moment :)
+ 373495 [botpena@gm i] ok, ignore. sorry for the noise.
+ 373496 [ammarabuali@] I just noticed your update, so I deleted more than half my response.
  373497 [botpena@gm i] yes, the script does work as written verbatim in cli and as shell

open-uri gives errors for MacOS Snow Leopard
373505 [rubyforum@gm] Mac OS 10.6.4
+ 373527 [shortcutter@] pen-uri.rb:32:in
+ 373556 [rubyforum@gm] Thanks for your reply robert.

Emacs/putty code help [linux]
373510 [thierryny@ho] can someone please help me with this code, I have this but it not able
373517 [shadowfirebi] Okay, this looks like homework, but since you're not actually asking us to do it for you, I'll bite (byte?)

373519 [goliraja@ya ] Fetching http://github.com/odorcicd/authlogic.git

All about Sketchup
373520 [debarati@sk ] Whenever I download objects from the 3D Warehouse they come in WAY too

creating an avi from several pictures or from sketchup
373521 [timnowinski@] is it possible to create an avi file from several pictures with a ruby

What directory to extract instantrails to?
373523 [prpaulroche@] package. Where do I extract the instant rails package to in order for
+ 373529 [cmdjackryan@] You don't have to. If you have RubyGems installed (and you really
+ 373532 [luislavena@g] InstantRails has not been updated in quite some time.

WEBrick HTTPProxyServer question
373530 [uzleepito@gm] could somebody please show me what can I do
373535 [wishdev@gm i] Good Afternoon

[ANN] minitest 2.0.0 Released
373533 [ryand-ruby@z] minitest version 2.0.0 has been released!

Parsing XML with Ruby
373536 [johnsheahan@] I need to hit an https link and pass a username and password in order to
+ 373538 [ammarabuali@] The ruby way of doing this would be to use the Net::HTTP from the
+ 373541 [johnsheahan@] thanks alot for the advise. I have used Net::HTTP alot in the past but
| 373542 [ammarabuali@] require 'net/https' # extra require
+ 373547 [johnsheahan@] http = Net::HTTP.new('www.chase.com', 443) # note the port
| + 373574 [ammarabuali@] That's not the page. That's the instance of Net:HTTP, the we client,
| | 373575 [johnsheahan@] What, have you suddenly decided to play the "school master"? I can't
| | + 373578 [ammarabuali@] past". Your last question clearly indicates that you are not telling
| | + 373579 [peterhickman] There is this really cool tool that all us programmers know about but
| | + 373580 [cmdjackryan@] Aggression won't get you anywhere. So, go read the documentation, and
| + 373591 [botpena@gm i] just continue... do not be afraid to try...
|   373593 [johnsheahan@] That does help and thank you.
|   + 373595 [botpena@gm i] yes.
|   | 373598 [johnsheahan@] That is a good way of doing it, a step at a time through irb...I don't
|   | 373621 [johnsheahan@] I got it working thanks to you. I had to start off with require
|   + 373630 [shortcutter@] Both approaches above should be equivalent.  Question is which
+ 373586 [johnsheahan@] I'm not a developer..I'm a network engineer and have been for 15

Scheme's (cond ((assertion) (value))...(else (value))) statement implemented in ruby?
373539 [timrandg@gm ] I love ruby, but am learning scheme and kinda like the (cond
+ 373543 [no@sp m. le ] What's wrong with this?
| 373552 [timrandg@gm ] Case interrogates a single variable for its state--whether it falls in
| 373553 [wishdev@gm i] Good Morning,
| 373626 [timrandg@gm ] print "Enter your grade: "
+ 373584 [josh.cheek@g] How about chaining ternary operators?
| 373624 [timrandg@gm ] 3"},
+ 373592 [Ruby@Go gl M] I am a little bit confused by your question. In the subject line you
  + 373625 [timrandg@gm ] On Nov 12, 6:14=A0am, J=F6rg W Mittag <JoergWMittag+R...@GoogleMail.Com>
  + 373627 [timrandg@gm ] On Nov 12, 6:14=A0am, J=F6rg W Mittag <JoergWMittag+R...@GoogleMail.Com>

API for getting Google search results?
373540 [cmhoward@fr ] I'm writing this command-line ruby script and it needs to be able to
+ 373558 [david2ansand] An approach which can prove handy is to "screen scrape" the data
+ 373645 [david_v_wrig] scroll to 'Code Snippets'

Nokogiri on JRuby using OSX 10.5 and Mac Ports
373545 [no@sp m. le ] I'm testing some code that uses Nokogiri under JRuby using rvm.
+ 374013 [headius@he d] It seems like it has to be a library version problem. Can you check
+ 374049 [mike.dalessi] Can you post the results of "nokogiri -v" please?

Attribute Ordering not working
373554 [francisca_oz] How Can I sort attributes values for similar order as my csv_header

Ruby scrip to find Dir based on last modified date
373555 [balvir.sidhu] Can someone here please help/guide me how I can implement the following
373567 [shortcutter@] irb(main):001:0> Dir["*"].select {|f| test ?d, f}
373636 [balvir.sidhu] Thanks for you reply, much appreciated, above command work fine, seems
373668 [shortcutter@] Use #max_by.  And look into FileUtils for the copying.

To find 2nd Sunday of March
373557 [rajaram@ri e] All,
+ 373566 [shortcutter@] Come on, that's really not difficult.  Start with the first day of
| 373594 [Rob@Ag le on] Think about it like this (assuming that you don't want to install the
+ 373648 [reid.thompso] rthompso@raker>~

RDoc : hyperlinked names of classes
373568 [lacroix7@fr ] I would like to hyperlink the name of a class in RDoc markup while

Nokogiri not read html file in Cent OS 32-bit
373573 [shahpriyank0] I want to read and use html file content using Nokogiri in my cent os-32
373639 [ryand-ruby@z] 503 % ri Nokogiri.HTML
373761 [shahpriyank0] Thanks for reply but not getting solution i get only
373770 [flo@an er gr] What Ryan is telling you: you have to pass a filepointer or the actual HTML a=
373776 [shahpriyank0] Thanks for explain but still i get the same problem
373782 [niklas@br ec] require 'rubygems'
373794 [shahpriyank0] First thanks to all for helping me in my problem.

help sorting objects by their instance field
373599 [aaron4osu@gm] I'm trying to figure out how to sort objects in an array by one of their
+ 373600 [tokenshift@g] Check the docs for class Array
| 373708 [aaron4osu@gm] Is this what you mean?  I also tried this and I'm getting the following
| 373710 [jgabrielygal] persons is undefined here, you have to use p (btw, I'd use person
| 373711 [aaron4osu@gm] That works!!!   Thanks!!!
+ 373601 [jeremy@bo p.] First of all, you don't need the get_lname method.  Use Person#lname
+ 373603 [ammarabuali@] @persons.sort_by {|person| person.aLname}
+ 373610 [aaron4osu@gm] Thank you guys so much for your helpful posts. I just started learning
| + 373613 [ammarabuali@] It sorts the array itself, no need to make a copy.
| | 373615 [ammarabuali@] Sorry. I gave you wrong information. Probably need more coffee.
| + 373614 [jeremy@bo p.] Well, just keep in mind that the sort methods belong to Array, so you
+ 373674 [aaron4osu@gm] Good morning all and thanks again for the help.
  + 373675 [ammarabuali@] Hmmm. for some reason my reply never made it.
  + 373714 [mbostler@gm ] My attempt at refactoring the query method would leverage array#select.

ORM's - Don't Do It!
373607 [rubfor@re it] This is what worries me about the descent of human kind into the cess
+ 373616 [cmdjackryan@] Why?
| 373634 [petite.abeil] Slapping
| + 373640 [joelvanderwe] Solution #5 seems to be pretty much nailed by Sequel (the gem), IMHO.
| + 373641 [rubfor@re it] Wonderful! I no longer feel alone in the World.
| + 373647 [no@sp m. le ] A well-written and often-quoted argument, but which is still lacking. Ted
| + 373653 [code@ap th o] That's an important warning, given this link to a particularly ugly and
| + 373663 [cmdjackryan@] It's impolite to answer a question with another question. ;)
|   373666 [rubfor@re it] My problem is the mismatch.
|   373676 [cmdjackryan@] In other words: Databases contain data that relates to what the DBs
|   + 373678 [petite.abeil] Broaden your horizon! :)
|   | 373681 [cmdjackryan@] No, thanks. If there's big iron to be programmed for, I get a
|   | 373734 [rubfor@re it] I needed to process some data for automated test scripts this morning. I
|   | + 373735 [cmdjackryan@] Since Access contains VBA since Access 95 (before that, it was Access
|   | + 373736 [ammarabuali@] Similar situation here. An app I'm working on needed a small fix and
|   + 373701 [cmdicely@gm ] This is probably based on some version of SQL prior to SQL-99; from
|   + 373741 [shortcutter@] You would apply the very same reasoning when creating classes for a
|     + 373743 [bakermoto@gm] What is the point of arguing over ORM vs SQL? They both have their own high
|     + 373744 [cmdjackryan@] Absolutely, and I never said otherwise. No matter what tool one uses,
|       373769 [shortcutter@] I completely agree, but unfortunately reality seems to be that for
|       373913 [shortcutter@] Just so nobody copies my bad practice: that should have read "So I
+ 373632 [rimantas@gm ] Wow, there is a lot for you to learn yet¡Ä A good start would be limitations
| 373637 [petite.abeil] Another good start would be to understand SQL :))
+ 373746 [skye.shaw@gm] What happens when I want to make an update :(
| + 373750 [petite.abeil] never
| | 373767 [rubfor@re it] I suspect this is what most programmers do as most databases seem to be
| + 373907 [rubfor@re it] Did a bit of research last night. These databases have some ability to
|   373910 [cmdjackryan@] It's actually rather easy to run an airline (as easy as any transport
|   373924 [rubfor@re it] I'm thinking of eg a large general insurance application. There would be
|   373960 [cmdjackryan@] So, how do you access them, then? ORM is not an option, so how do you
|   + 373962 [arturo.g.art] I think you need ORM but in that order
|   + 373964 [rubfor@re it] I'm not sure what you're getting at. The normal ways of dealing with
|     373969 [cmdjackryan@] Sorry, but the DBAs can't allow change the stored procedures without
|     373972 [rubfor@re it] Robby on Rails (Robby Russell) was briefly a fan of the reverse side of
|     374836 [darkintent@g] There is nothing wrong with using an ORM.  The problem is that some
+ 373747 [sduncan@we a] Too kind! From a pragmatic perspective an ORM is certainly not the
+ 374838 [tony.arcieri] On the contrary, ORMs let people utilize this wealth of domain knowledge in
  374839 [darkintent@g] SQL isn't necessarily abysmal it just does not lend itself to the kinds
  374840 [tony.arcieri] Strongly disagree... as far as a declarative query language goes, something