373607-374840

373409-375162 subjects 373822-375218

^ ORM's - Don't Do It!
373607 [rubfor recit] 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 recit] Wonderful! I no longer feel alone in the World.
| + 373647 [no spam.plea] A well-written and often-quoted argument, but which is still lacking. Ted
| + 373653 [code apotheo] 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 recit] 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 recit] 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 gma] 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 gma] Wow, there is a lot for you to learn yet=E2=80=A6 A good start would be lim=
| 373637 [petite.abeil] be limitations
+ 373746 [skye.shaw gm] What happens when I want to make an update :(
| + 373750 [petite.abeil] never
| | 373767 [rubfor recit] I suspect this is what most programmers do as most databases seem to be
| + 373907 [rubfor recit] 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 recit] 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 recit] 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 recit] 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 weta] 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

^ need BI Analyst
373608 [comtecmadhu ] We have a position for a Business Analyst. This is initially for a 3

^ Open file from network share
373609 [chuybakah gm] I'm trying to open a file that is on a mapped network drive. I assigned

^ [ANN] CARPS-0.3.1
373612 [spoon killer] CARPS, the Computer Assisted Role-Playing Game System,
373658 [code apotheo] Does it have Unix support?

^ Fast Debugger (Ruby 1.9.2, DevKit 4.5.0, JDK 6u22, NetBeans 6.9.1)
373618 [achin5957 ho] I've been trying to run this configuration in debug mode on my Windows
+ 373693 [rogerpack200] These are probably for mswin32 release--you are using mingw I think, so
+ 373699 [luislavena g] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
+ 373824 [achin5957 ho] Ok, I followed Luis' instructions although I unzipped the DevKit right
| 373835 [luislavena g] If that was the intention, that could have been outlined in the
+ 373850 [achin5957 ho] I only copied the DevKit over the existing Ruby install because there
| 373859 [luislavena g] Perhaps that article was quite old. When referring to articles on the
+ 373851 [rogerpack200] I've had the same failure (1.9.2 only) at times, but never looked at it
+ 373866 [achin5957 ho] -p http://web-proxy:8080 works fine when I install the uuid gem. And the
| 373868 [luislavena g] It is clear that gems that do not require compilation do not fail in
+ 373869 [achin5957 ho] And while we're at it, would you know why if I debug with the "slow"
| 373902 [rogerpack200] ==========================================================================
| + 373906 [luislavena g] Roger, that is DevKit.
| + 373909 [achin5957 ho] Roger - I don't think this is a version problem because on my other dev
|   + 373911 [luislavena g] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
|   + 373923 [rogerpack200] If that's the case then you'll probably have to dig down deep into your
+ 373916 [achin5957 ho] Yes, I filled in the form and posted on the Google rubyinstaller group

^ Earn $10 Per CLICK ( There Is A FORM )
373622 [using4person] There is a FORM in an IMAGE.....CLICK on the IMAGE which is BELOW the

^ Iterate through Nested Array - Noob question
373623 [dinamcc yaho] I am new to ruby, I am trying to populate data into a form using a set
373628 [josh.cheek g] Did you also update the hash where you specify who is the owner? (something

^ Reading text files
373633 [mcintosh8030] I can't read the text file below with Ruby. The two date lines are
+ 373635 [scott aitrus] Post your ruby code.
+ 373657 [code apotheo] If I put that text in a file, I seem to be able to access it just fine.

^ Hal Fulton on Twitter...
373638 [rubyhacker g] If you have any interest in following me, feel free.
+ 373644 [echristopher] we buy the 2nd edition book and qualify for a discounted 3rd-edition
| 373650 [rubyhacker g] I think Twitter has a search bug relating to underscores. But I'm there.
+ 373646 [t.yao426 gma] Followed , looking forward to your new book :)

^ Date/time settings has messed up rails
373643 [prpaulroche ] not sure what I did, but instantrails is not working for me now and is
373679 [prpaulroche ] I got this fixed. I jsut reinstalled rails

^ Ruby-Sequel - Sqlite3 table schema
373651 [flebber.crue] Looking for a little assistance. I am trying to create a basic
373655 [wishdev gmai] Good Evening,

^ Validations + Urgent
373664 [hemant.bharg] I am saving/updating same object on different pages with some
373669 [shortcutter ] Ruby != Rails.  Please ask in the appropriate place.

^ NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...
373670 [iamforufrien] NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...

^ Mp3 files ubuntu
373673 [pownyan gmai] I am new to ruby, and i want to write a small text based games with some
373677 [cmdjackryan ] Note that this will work only for systems where GStreamer is installed

^ an each/block problem
373680 [prpaulroche ] function call called borrowed, that runs an evaluation on the value
+ 373682 [cmdjackryan ] Define it outside the block. ;)
| 373684 [prpaulroche ] but for an 'each' don't I need a block?
| 373692 [cmdjackryan ] Yes, you do. Which is why you declare your variables outside of a
+ 373687 [prpaulroche ] Here's more explantion.......
| 373688 [hassan.schro] users =3D User.all
| 373689 [prpaulroche ] Indeed you're right. I didn't think of trying it, because I thought that
+ 373690 [prpaulroche ] Just one more thing. if I want to attach the 'name' of the User to that.
  373691 [hassan.schro] Pass the entire User object, e.g. `borrowed.call(user)` and change
  373694 [prpaulroche ] Thanks for that. I am arranging to take 2 parameters...
  373696 [hassan.schro] I can't even begin to guess what you think should happen here -- what
  373700 [prpaulroche ] Ah yes, I see whay you mean  :)

^ Very simple regex question
373695 [geometric.pa] I don't understand why the regex in the example below isn't identifying
+ 373697 [jeremy bopp.] Your regexp will match anywhere within the string where there is a run
+ 373698 [hassan.schro] That succeeds if the string *contains* between 2 and 12 characters,

^ display instance variable values
373702 [johnsayeau g] If I have a people class with instance variables @name @age and @gender
+ 373703 [josh.cheek g] replace the line "var.(display value somehow)" with   "puts
| 373709 [ammarabuali ] Ah. I forgot about that one.
+ 373704 [ammarabuali ] What are you trying to do? This seems a little strange to me.
+ 373705 [mbostler gma] p peep.instance_variables # => ["@age", "@name", "@gender"]
+ 373706 [johnsayeau g] That won't work.
+ 373707 [johnsayeau g] Not trying to do anything other than experiment. I was playing with for

^ Ruby class versioning
373712 [timdeboerz g] Today I've started investigating this ruby/rails thing. Love the
+ 373720 [shortcutter ] Java certainly looks a lot more engineered compared to Ruby.  If that
+ 373727 [timdeboerz g] Thanks Robert. Be interesting to see how it pans out once I start using
| 373728 [richard.conr] I have worked in Java for years, and I am familiar with the versioning
+ 373749 [b.candler po] Does bundler do what you want?

^ waoooooooooooo
373715 [snehaparital] ...

^ Is it possible to break a loop from within an internal lambda function?
373717 [timrandg gma] This code works because 'exit' within the lambda within the block
+ 373718 [skye.shaw gm] This seems like an odd code arrangement.
| 373719 [skye.shaw gm] Though if you really, really -really, want to kill the call stack from
+ 373721 [botpena gmai] try,
| 373724 [timrandg gma] Thanks skye and botp. Both interesting solutions.
+ 373732 [w_a_x_man ya] solve_by_iter{|test|
  373763 [timrandg gma] That is also a clever solution. It uses 'and' for its ability control
  373764 [botpena gmai] in short, you can simply do

^ Mysql::Result .each_hash - unexpected result
373722 [durexlw.regi] require "mysql"
373738 [botpena gmai] at this point, i'd be wary.  the iterator may not "rewind"
373745 [durexlw.regi] Can you say something about how an iterator can not "rewind"? Do you
+ 373774 [botpena gmai] nothing to do w ruby. just understanding file/db handling...
| 373778 [durexlw.regi] -botp,
+ 373775 [niklas bruec] This is a mysql specific problem, not ruby. Result#each_hash is just
  373780 [durexlw.regi] Niklas,
  373783 [niklas bruec] No, the database is not queried every time. The reason I was suggesting
  373786 [durexlw.regi] Niklas,
  373789 [niklas bruec] Don't be too sure too soon :)
  373797 [durexlw.regi] hehe... gotta love coding :)
  373798 [niklas bruec] sorry to disappoint you :)

^ import csv with Fields that contain double quote characters
373723 [hadasagr gma] i import csv files in ruby.
373725 [ammarabuali ] 2010/11/14 =D7=94=D7=93=D7=A1=D7=94 =D7=92=D7=A8=D7=99=D7=A0=D7=95=D7=95=D7=
373726 [hadasagr gma] i do it wuth :fasterCSV,
373729 [ammarabuali ] Sorry, I couldn't run that code. Maybe pasting in the forum messed it

^ more help with address book
373730 [aaron4osu gm] I=E2=80=99m trying to create a simple address book in ruby.  It is made u=
+ 373733 [shortcutter ] om
+ 373779 [adrain.f.tep] =9Cexit=E2=80=9D

^ NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...really free...
373731 [iamforufrien] NAUGHTY GIRL, WANNA NAUGHTY WITH ME, COME ON...really free...

^ [ANN]  Ruber 0.0.6 released
373737 [stefano.croc] Ruber 0.0.6 has been released today

^ MacRuby KVO array ERROR?
373740 [zalavariandr] error in my Code.
373742 [ryand-ruby z] On Nov 14, 2010, at 10:55 AM, Andras Zalavari <zalavariandris@gmail.com> wro=

^ Gems in ~/.gem vs in the Library
373751 [wojtek.galaj] I am completely new to Ruby on Rails. When i install gems some of them
373752 [cmdjackryan ] 1) Don't chmod system folders unless you know what you are doing
373753 [wojtek.galaj] On Nov 14, 10:24=A0pm, Phillip Gawlowski <cmdjackr...@googlemail.com>
+ 373754 [cmdjackryan ] You are quite welcome. :)
| 373758 [wojtek.galaj] On Nov 14, 10:46=A0pm, Phillip Gawlowski <cmdjackr...@googlemail.com>
+ 373755 [tommaso.visc] i suggest forget the system gem command and use RVM
+ 373756 [luislavena g] gem update rails
+ 373757 [jose.halesga] The 'new' arg was introduced in mid-stream of the Rails 3 beta releases.

^ Re: FasterCSV
373759 [francisca_oz] How Can I sort attributes.values for similar order as csv_header? Just
+ 373802 [Rob AgileCon] Well, since you've already limited the attributes that ActiveRecord
+ 373854 [james grayso] csv << csv_header.map { |h| v[h] }

^ Rubinius compilation error
373762 [dushyanth.ma] I am having compilation errors when installing rubinius 1.1.0 using RVM
373766 [dushyanth.ma] According to dbussink (https://github.com/dbussink) this was fixed in

^ To_date Error ...
373768 [henrik.ekenb] After a ruby upgrade I have an error with to_date.
+ 373806 [brabuhr gmai] require 'active_support/core_ext/string/conversions'
+ 373810 [shortcutter ] false

^ please help load from txt
373773 [lars_werkman] load data from a file but i want it to load one line at the time the
+ 373777 [jgabrielygal] Depending on what you want to do with the data after reading it, if
+ 373784 [lars_werkman] prints it in
| 373800 [jgabrielygal] If you just want to print it, I wouldn't bother with classes or
+ 373811 [lars_werkman] thanks for your help, but i got that already i don't think you quit
| 373812 [jgabrielygal] I have problems understanding what you mean by "call".
| 373813 [jgabrielygal] Person =3D Struct.new :name,:last_name,:call_name,:age
+ 373814 [lars_werkman] he jesus thanks for your help by call i meant, when the scripts start i
+ 373815 [lars_werkman] heey if that last script that you maked is what i need?? how do i put it
| 373816 [jgabrielygal] What errors did you get? I tried with your sample file and got it working.
+ 373817 [lars_werkman] he jezus i'm so sorry but no i'm running of the hook i would really
+ 373875 [bkaiflin.rub] First I reply to the first post : by moving show_load_data inside the
+ 373877 [bkaiflin.rub] - Class_choose.new, in case of wrong answer, creates a new instance of
+ 373878 [bkaiflin.rub] If I have well understood, you want to display one of the names of the
+ 373917 [lars_werkman] heey thanks for your help i 'm going to try your last script i hope this
+ 373920 [lars_werkman] heey i tryed it but i have a little problems,

^ Faking constants with methods
373785 [niklas bruec] class Bar
373791 [sutniuq gmx.] Maybe with const_missing?
373793 [niklas bruec] Thank you, but that would only work if the constant isn't defined. Maybe
373795 [sutniuq gmx.] class Bar
373796 [niklas bruec] Well, if I were to change the code that *uses* the constant, I would

^ Can't get Ruby programs to work from Command Prompt
373787 [dd25 njit.ed] prompt.  I have a Ruby program called scope.rb, which is a simple
+ 373788 [lars_werkman] try to download ruby from this site than it might work
+ 373792 [sutniuq gmx.] Your Ruby installation simply misses the Tk library. The RubyInstaller
| 373807 [luislavena g] RubyInstaller *is* linked in ruby-lang.org website, so even download
+ 373825 [dd25 njit.ed] So, I must know download the tk library, right?  Thanks.
+ 373831 [dd25 njit.ed] Okay, I just downloaded ActiveTcl 8.5.9.  As part of its library, it has
+ 373880 [dd25 njit.ed] All right, I tried installing tk on the command line by entering "gem
+ 373900 [dd25 njit.ed] I know for a fact that tk is available; I downloaded it by entering "gem
  + 373901 [cmdjackryan ] The same message advising you to do an install of TK as a gem also
  + 373912 [gthiesfeld g] The project's readme lists some configuration options.

^ Ruby Vs PHP
373790 [me jamesvinc] PHP has more lines of code in the actual File than ruby. If you take a
+ 373799 [tony.arcieri] Cool story, bro
+ 373801 [shortcutter ] That sounds convincing on first sight yet I am missing hard facts.
| 373805 [spoon killer] Neither PHP or Ruby are high-performance languages. [1]  To bring up the
+ 373803 [ammarabuali ] This is not entirely true. PHP does not have a "standard library",

^ Passing a variable
373804 [flebber.crue] I recently discussed in this group the basic starting of a project. I
+ 373836 [flebber.crue] ou
| 373994 [b.candler po] What language is this in? Did you try running it?
+ 373837 [flebber.crue] ou

^ Re: Error invoking PDFTK when running from TextMate
373808 [brad tvdco.c] I had the same problem.
373809 [coder montx.] I'm not sure now if my pdf had some security settings, I think not, I'll

^ Stupid optparse question
373818 [cpatti gmail] How can I make my code print the usage even if zero options are given?
+ 373819 [shortcutter ] o = OptionParser.new do |opts|
| 373821 [cpatti gmail] be
| 373830 [shortcutter ] o =3D OptionParser.new do |opts|
+ 373820 [ryand-ruby z] well... they are called "options", not "mandatories" :P
threads.html
top