192585-199776

192370-193338 subjects 192736-193796

^ Solaris Install: Non-standard location
192585 [Eric.Armstro] Were I able to install at the default location,
192588 [djberg96 gma] make distclean
+ 192615 [ara.t.howard] don't forget to do both both of these before compiling
| 192913 [Eric.Armstro] I don't see these settings in config.h or the Makefile,
+ 192914 [Eric.Armstro] Thanks, Dan!
+ 192953 [Eric.Armstro] Many, many thanks for the help, folks.

^ win32api
192595 [0011 hush.co] does this mean i dont have the WIN32API
192596 [djberg96 gma] Try require 'Win32API'
192599 [0011 hush.co] oh ok thanks thats right because Win32API is a class so it has to be
192611 [dave burt.id] No, it's not a class, it's a required file. The case has to match method
192640 [0011 hush.co] oh ok thanks for the info, i jus started ruby like a week ago, but
192647 [dave burt.id] Not really. It's not a bad idea, but it's just so easy making classes in

^ boolean affectation shortcut
192606 [nomail noval] new_image? = (filesize > 0)
192607 [one.three gm] You can' t because only methods can end with ?, but you are using itlike a variable.Looks, like you need to rethink your programs design.
192610 [botp delmont] # You can' t because only methods can end with ?
192614 [dblack wobbl] This message is in MIME format.  The first part should be readable text,

^ MulticastSocket in Ruby
192609 [dirk.breuer ] I need some halp with Multicast Sockets. Is it possible to establish a
192956 [sroberts uni] Use the low level apis of class Socket. They behave almost the same as
192961 [aaron_patter] Wow!  That link is great!  This will go quite well with
193047 [sroberts uni] That looks pretty interesting, too, I'll keep an eye on it.
193549 [dirk.breuer ] Thanks a lot for your help.

^ list folder content from win directory -> xml output
192620 [jonas.tracht] I've been searching all over the place but found nothing helpful yet.
+ 192621 [gm.vlkv gmai] puts "<all_files>"
| 192624 [jonas.tracht] Thanx Sergey,
| 192625 [gm.vlkv gmai] open( "all_files.xml", "w" ){ |out|
| 192628 [james_b neur] You may need to replace special characters
+ 192626 [devlists-rub] This task is quite simple.
  192627 [jonas.tracht] thx a lot everybody.

^ Ruby Skype bindings
192623 [peter no-non] Does anyone know of a Ruby project that provides Ruby bindings for the

^ [ANN] Ruby-VPI 0.5
192629 [skurapat ucs] Ruby-VPI is a Ruby interface to Verilog VPI. With it, you can create

^ Using alias_method in mixin module
192630 [collinsj sea] I have a mixin module that needs to redefine a particular method if it
192633 [djberg96 gma] I'd say you should alias the module's method, not the original class'
192639 [collinsj sea] The module should only provide this new method if the class that is

^ Forcing some code to run at the end of tests
192631 [sy1234 gmail] I'm playing with some test scripts, and I cannot for the life of me
+ 192632 [mike stok.ca] Does every test mean every test case?  If so you might look at
| 192635 [sy1234 gmail] No, not teardown.. I want to have some code executed after all testing
| + 192636 [cyclists nc.] Use an END block.
| + 192637 [mike stok.ca] #!/usr/bin/env ruby
| | 192666 [sy1234 gmail] Hey that's neat.
| + 192641 [gm.vlkv gmai] <test preparation code>
| + 192642 [dharple gene] require 'test/unit'
| | + 192643 [dharple gene] task :test => [:real_test] do
| | + 192667 [sy1234 gmail] I played with 'ensure', but it wasn't the answer..  =)
| | | + 192688 [logancapaldo] Aha, now this definitely seems like something that should be there if
| | | + 192690 [ara.t.howard] require 'test/unit'
| | |   192693 [sy1234 gmail] Awesome!  That's just what I was looking for (for that particular
| | |   192698 [ara.t.howard] i'ts simple : they are run in alphabetical order. so, if you name them
| | |   192700 [sy1234 gmail] I wouldn't want to put my non-test code in a test.. it seems wierd.
| | |   + 192750 [ara.t.howard] well, if you have non-test code you can do whatever you like to order it
| | |   | 192920 [sy1234 gmail] Not really.  All the testing code will be run after other code,
| | |   | 192927 [ara.t.howard] BEGIN{ puts '======== BEGIN ========' }
| | |   | + 192964 [vi_larsen ya] require 'test/unit'
| | |   | | + 193013 [sy1234 gmail] Yes, this is exactly what I was doing.  Curious.
| | |   | | | + 193028 [ara.t.howard] it's because test/unit registers it's own blocks too.
| | |   | | | + 193191 [bpettichord ] There is a good reason for this.
| | |   | | |   193300 [sy1234 gmail] Oh I get it.  So it's not so arcane an issue after all.
| | |   | | |   197529 [bcowdery gma] I don't mean to beat a dead horse, but i think i've come up with a
| | |   | | |   + 198096 [sy1234 gmail] Hey thanks for the suggestion.  My mind isn't in the right context to
| | |   | | |   + 199749 [patrick pksp] When I try to run this script, I'm getting a "uninitialized constant
| | |   | | |     199776 [the.mindstor] Not sure I have correctly read this thread and not sure if this helps
| | |   | | + 193016 [ara.t.howard] it's also idiomatic to have BEGIN/END blocks before require though, because
| | |   | + 193012 [sy1234 gmail] Ok, so instead of basing my preference on a rumour I'll just base my
| | |   + 193189 [bpettichord ] That was probably me who said that. I was wrong. They are alphabetical.
| | + 192694 [sy1234 gmail] <example snipped>
| |   192826 [jesusrubsyou] I have a similar situation: I have to setup and teardown various bits in
| |   + 192833 [ara.t.howard] what's wrong with BEGIN and END blocks?
| |   | 192847 [jesusrubsyou] Where exactly do they go?  In the Rakefile?
| |   + 192921 [sy1234 gmail] I think so, yes.  TestRunner was simple for me to implement, and it
| |     193069 [jesusrubsyou] I think I'll stick with what I've got, because to do TestRunner, I'd
| + 192646 [skurapat ucs] Try Kernel#at_exit
|   192661 [sy1234 gmail] Thanks for the ideas everyone..
|   192663 [sy1234 gmail] Scratch that.  at_exit doesn't work either.
+ 192634 [dharple gene] def teardown
+ 192638 [cyclists nc.] Are you using Test::Unit? Look at the teardown method.

^ foo bar
192644 [0011 hush.co] where does all the foo and bar references come from, is that from
+ 192645 [pergesu gmai] Don't know how accurate it is, but maybe check out
+ 192648 [gm.vlkv gmai] When °∆foo°« is used in connection with °∆bar°« it has generally traced to the
  192649 [james_b neur] On a side note, various early comicstrip characters, such as Krazy Kat,
  192683 [znmeb cesmai] And of course Smokey Stover used "Foo!" along with the better-known
  192697 [jmg3000 gmai] For a long time I've been using "foo", "bar", and "baz" as my big
  + 192748 [znmeb cesmai] I'm pretty sure they all originated -- in the computer science world,
  | 192751 [robothor gma] For all kinds of fun trivia, check out the "New Hacker's Dictionary"
  + 192814 [home kerrybu] been around since the 50s.
    192855 [agorilla gma] Also used foo, bar, baz.  Wibble was news to me, had never seen it

^ x-y plots
192652 [jdale58 yaho] I'm new to ruby and am looking for a way to create an x-y plot.  Any
+ 192660 [farrel.lifso] ...
+ 192677 [ara.t.howard] regards.
  + 192679 [yoshiki9 mac] Combination of GNU plotutils and Ruby/GSL.
  + 192682 [jes luretank] Nice link, but a little out of date. An updated version (2.2) is available
    192830 [jdale58 yaho] Ok, I should have mentioned that I am using windows.  I tried
    192831 [ara.t.howard] -a
    192852 [jdale58 yaho] Still not working, same problem with the .open method.  I'll run through
    192863 [ara.t.howard] i'm not sure and not at a windows box attm.  i'll try to look at this in a
    192880 [jdale58 yaho] ok, thanks.  Just in case it helps, part of the error I get is that the
    192945 [jdale58 yaho] cmd = "C:\\Gnuplot\\gnuplot.exe" + " -persist" if persist

^ "Seeing Metaclasses Clearly"
192653 [pergesu gmai] I saw a link for why's article "Seeing Metaclasses Clearly" [1]
+ 192654 [pergesu gmai] I forgot to give the error message when I inherit from this Truck
+ 192656 [dblack wobbl] The problem is that you're defining an *instance* method of MailTruck,
| 192659 [dblack wobbl] Whoops, as Ross pointed out, it should be define_method(:company), not
+ 192658 [rossrt rosco] I'm sure this is probably a typo, but the above code isn't doing exactly
  192664 [pergesu gmai] Well that was kind of a stupid mistake on my part.
  192678 [ruby anthrop] } Actually, it doesn't.  Your code lets me do
  192680 [miken700 yah] Not sure if this helped Pat, but it sure helped me. I too find _why's

^ Problem with net/imap
192668 [tjackiw gmai] I've been struggling for the past hour to get just the message text itself
192854 [drbrain segm] Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
192864 [tjackiw gmai] Thanks Eric, I had figured out about 20 min after I posted to the

^ shebang woes / syntax check weirdness?
192671 [benny klapmu] command line with a file as an argument it will execute the shebang
192676 [rossrt rosco] IMHO, Ruby and Perl have it right - recognising the shebang line means
192687 [miken700 yah] So does the shebang always over-ride settings that you have call to the

^ vim reindent/beautify tip
192673 [cremes.devli] Many of you might already know this but if not here's an interesting
192675 [henryso pani] A slightly easier way to do this is to type =G (capital G) when the
192684 [miken700 yah] or from anywhere,
192695 [collinsj sea] Or, use 'v' to enter visual mode, highlight the section you want to

^ namespace conflicts
192674 [michael.gors] Good morning, everyone.
192689 [logancapaldo] Nest your app in it's own namespace?
192691 [michael.gors] Whoah.  Thanks for that.

^ Conway's Life de-golfed
192681 [miken700 yah] I took some golfed code from a discussion here little while back (
+ 192692 [rubytalk eac] the basic code.
| 192805 [miken700 yah] Joey,
+ 192758 [neoneye gmai] I made a game of life example some time ago, for
+ 192824 [dave burt.id] What version did you deobfuscate?
  192845 [miken700 yah] This is the orginal version that I worked from,
  192895 [dave burt.id] I should have credited Daniel Sheppard originally. He's responsible for

^ Hobix install prob
192696 [leslieviljoe] /usr/local/lib/site_ruby/1.8/hobix/base.rb:37:in `require': no such
192808 [mental rydia] Hmm.  It looks like the 'requires' section of hobix.yaml is either malformed or getting mis-parsed as a single string for some reason.  What Ruby version is this, and could you also paste your hobix.yaml?
192810 [mental rydia] ...

^ begining programmer questions
192699 [0011 hush.co] I was wondering, i thought in Ruby you didnt have to declare variables
192701 [michael.gors] When you call 'info[]', the '[]' piece is actually trying to invoke a metho=
192702 [0011 hush.co] oh ok thats right it has to be an object in order to be useful. The book
192703 [0011 hush.co] i dont know doing info = Array.new seems like an array declaration to
+ 192704 [michael.gors] I suppose it could, but I think the easiest way to build an Array in ruby i=
| + 192705 [0011 hush.co] ok thanks for the help
| | 192706 [0011 hush.co] well i tried what you said but i still get an error now, it says that i
| | + 192707 [0011 hush.co] oh ok i needed to remove the [] in the while loop to, ok. Now when i
| | | 192711 [michael.gors] Just to be clear, will you please send your current source.  I'd be glad to
| | | 192713 [0011 hush.co] def input
| | | + 192717 [michael.gors] Ah!
| | | | 192721 [0011 hush.co] oh ok basicly the issue is that i just didnt  understand what the gets
| | | | + 192722 [0011 hush.co] this stuff is discouraging, lol. Since i started learning to program i
| | | | | + 192724 [michael.gors] If you keep at it, and keep reading, it will click.
| | | | | | 192728 [0011 hush.co] that actually is the book i am having so many problems with
| | | | | | 192729 [0011 hush.co] Thanks for the help and encouragment i appreciate it
| | | | | + 192730 [logancapaldo] There's a _big_ hump the first time you learn to program. Once it
| | | | | | + 192732 [0011 hush.co] yeah a friend of mine said that PHP would be a good language to learn as
| | | | | | | 192734 [danielbaird ] Aargh!  I mean, erm, no, I definitely think you're on the right track with
| | | | | | | + 192737 [0011 hush.co] oh ok i remember reading that in the book about pointers the = method or
| | | | | | | | + 192738 [0011 hush.co] they should change the = to -----> then maybe i would have gotten it
| | | | | | | | + 192739 [michael.gors] See, Corey.  You're getting it.  It just takes time, and soon enough you'll
| | | | | | | | | 192740 [0011 hush.co] yeah that would something, corey konrad ruby expert, maybe i'll extend
| | | | | | | | + 192741 [danielbaird ] You know, originally i'd typed a shorter arrow --> but it seemed to make
| | | | | | | |   192744 [0011 hush.co] yup i'll get it, need a break now though, you know when you read tacos
| | | | | | | |   192745 [agorilla gma] Yeah, definitely a natural.  It won't be long before you wake up
| | | | | | | |   192747 [pergesu gmai] Oh man, code comes to you at the WEIRDEST times.  I can't tell you how
| | | | | | | |   192897 [0011 hush.co] yeah i just need to do it for some reason, so i guess thats makes sense,
| | | | | | | + 192791 [rhkramer gma] I'm not the original OP, but found this post quite helpful.  But, in the
| | | | | | + 192786 [chneukirchen] That's the reason it is that good. :-)
| | | | | + 192731 [hal9000 hype] Haha, that's totally normal. Nobody was born into it.
| | | | | + 192743 [agorilla gma] I started learning Ruby a couple of years ago, but I started
| | | | + 192723 [michael.gors] 'gets' will read a string from input and build a new string object.
| | | |   + 192725 [0011 hush.co] so gets changes the array into a string object during each loop and then
| | | |   | 192726 [michael.gors] def input
| | | |   | 192782 [zoso foton.e] Hmmm... note that the "sort" method _doesn't_ change the object. You
| | | |   + 192838 [spam email.c] I'm a newbie to Ruby, but not to programming.
| | | |     + 192841 [jake.mcarthu] charset=US-ASCII;
| | | |     | + 192844 [spam email.c] But when I hear statements about Ruby being a strong type language, I
| | | |     | | + 192850 [jake.mcarthu] charset=US-ASCII;
| | | |     | | | 192857 [spam email.c] " struct vector a = {2.0, 3.0, 4.0};
| | | |     | | | + 192858 [jake.mcarthu] Sure, but in order for you to manipulate that data in the new
| | | |     | | | + 192891 [logancapaldo] 1) With static, strong typing the variables are typed
| | | |     | | |   192899 [jim weirichh] I hadn't seen it called out like this before.  I like it.
| | | |     | | |   192949 [uncutstone s] Yes, it's so good a summary. I like it too , it's kind of wisdom.
| | | |     | | + 192862 [jim weirichh] One must be clear on exactly what "strong typing" means.   Often people
| | | |     | |   192872 [spam email.c] MyClass * m_class = NULL;
| | | |     | |   + 192876 [curi curi.us] In ruby it does not happen at all. when you bind foo = 5, that is
| | | |     | |   + 192890 [jim weirichh] Ummm ... its undefined.  That means it is, ummm, undefined.  As in every
| | | |     | + 192892 [pergesu gmai] Perhaps this is nitpicking, perhaps not, but it's incorrect to say
| | | |     |   192907 [jake.mcarthu] charset=US-ASCII;
| | | |     |   192909 [pergesu gmai] Exactly.
| | | |     + 192843 [jim weirichh] Names and Objects!
| | | + 192718 [logancapaldo] Oh boy.
| | + 192708 [michael.gors] while info[] !=3D "exit"
| + 192735 [robert elast] Yeah isn't everything a first class object in Ruby.
+ 192710 [garbagecat10] A lot of people have the mistaken notion that Ruby is not "strongly typed"
| 192712 [0011 hush.co] you're talking over my head francis, i am a beginner. I have no idea
| 192716 [michael.gors] Corey -
| + 192719 [logancapaldo] Ruby is strongly typed, it's not statically typed. C has weaker types
| + 192720 [garbagecat10] With some trepidation I'll commit the sin of threadjacking in order to
|   192753 [dblack wobbl] It sounds like you're talking about class, rather than type.  A
|   192776 [garbagecat10] I have to admit I don't understand the distinction you're making between
|   + 192802 [miken700 yah] (Nowadays of course, all the
|   | 192804 [garbagecat10] Well, I have a somewhat different theory. Because remember five to ten
|   | + 192879 [collinsj sea] This is exactly correct. A lot of CS programs (my own included) are
|   | | 192884 [curi curi.us] Which half of the split would you say that learning how to implement
|   | | + 192887 [collinsj sea] At my school, tree structures are introduced in the third CS class,
|   | | + 192934 [hal9000 hype] Heh heh heh... the "AVL tree" part is conmputer science,
|   | + 192888 [0011 hush.co] by the thread i started has turned into a very large conversation.
|   + 192877 [dblack wobbl] Basically, class is the thing that the object is an instance of.  Type
+ 192715 [logancapaldo] The problem here is you are confusing declaring a variable with

^ [UPDATE] Mongrel 0.3.13 Pre-Release -- Conditional Responses, Better Parsing
192727 [zedshaw zeds] As you can tell we're getting closer to the 0.3.13 release being

^ Mapping a String to Properties - A Better Way?
192733 [mtrier gmail] I have a piece of code that works fine, but I'm wondering if there is
192752 [m.fellinger ] maybe like that?
+ 192767 [rasputnik gm] Doesn't this update the hash key back up in the caller?
| 192774 [m.fellinger ] No, it keeps the hash intact - just try it in irb :)
| 192779 [mtrier gmail] Well that's good to know.  Thanks.
+ 192770 [mtrier gmail] I forgot about parallel assignments.  I like that.  I'd probably keep
+ 192803 [florgro gmai] key = key[/^item_(\d+)$/, 1]
  192816 [mtrier gmail] I like that.  Greater specificity.  Thanks.
threads.html
top