203543-205311 subjects 203964-206828
^ Apache using older ruby
203809 [moore.joseph] I'm running into some problems serving rhtml files on OSX Tiger. I'm a
203815 [sigzero gmai] Open up Terminal.app and do "echo $PATH" then at the prompt do "which
204139 [moore.joseph] Nope, I set the path correctly in my /etc/profile $PATH shows that the
204189 [2006 howell.] I'd suggest reviewing the recent discussion thread entitled "Mac OSX
^ method self.a= and a= create different instance variables
203814 [yuesefa gmai] i try this in irb .
+ 203821 [dblack wobbl] a = 1
| 203830 [leslieviljoe] also,
+ 203824 [its.sec gmx.] irb(main):010:0> @a
203826 [yuesefa gmai] thank both of u, i am clear now :-)
^ gem install problem
203823 [bitdoger2 ya] environment
+ 203829 [lyle.johnson] I don't understand the question, but it appears that the ruport gem is
+ 203831 [collinsj sea] Try running gem install from within the directory where the .gem file is
203850 [bitdoger2 ya] ..oka i work like a charm
^ Noob devision question
203828 [jamie annfor] I'm trying to make a percentage progress bar for an XMMS web interface,
+ 203832 [collinsj sea] timeelapsed and totaltime are Integers. So when you divide them, it does
+ 203833 [timothy.s.be] Division of 2 integers results in an integer. So, try setting
+ 203834 [chris.hulan ] You need Floats all the way down.
| 203837 [chris.hulan ] Fogot to say, to get an Integer (or Fixnum id Ruby parlance) just call
+ 203835 [its.sec gmx.] This is an integer-division, and since totaltime is always bigger than
+ 203851 [w_a_x_man ya] => 0
+ 203869 [m_goldberg a] percomplete = timeelapsed.quo(totaltime) => 0.333333333333333
^ [JOB] RoR/Ruby job in Switzerland
203836 [eule space.c] We're looking for a developer that has solid rails knowledge, choses Ruby
203857 [aglarond gma] Wow! A Ruby job in Switzerland!? That immediately caught my attention. A
^ Problem loading a SQLite3 database on Debian 3.1
203838 [sigma.kappa ] I try to figure out why a small Rails application doesn't run and the
203954 [rasputnik gm] It's not finding the sqlite library (DLL) and the remaining errors sound like
204101 [sigma.kappa ] Thanks a lot. This is it.
^ "Self" confusion
203841 [leslieviljoe] Can someone explain why the following produces different results? In
+ 203845 [collinsj sea] I thought the top-level stuff rain inside an instance of Object?
| + 203848 [collinsj sea] I meant to add some "I think"s and "I guess"s in there somewhere.
| | 203853 [leslieviljoe] Now I am fully confused! How do you define methods inside an instance
| | 203862 [rimantas gma] => #<Object:0x3551a4>
| | 203866 [sitharus sit] Just like that ;) Pick up a copy of Programming Ruby, it's got a
| + 203854 [uval rz.uni-] I am not Ruby expert, but isn't Yogurt.a and self.a the same thing?
| 203868 [collinsj sea] Yes it is exactly the same _if_ you are inside the definition of the
| 203875 [leslieviljoe] Thanks everybody, this really helps!
| 203879 [aleks0 gmail] Well, in both cases, it refers to an object. When you are in the
| 203880 [aleks0 gmail] Oh, sorry, I slightly mis-read. Yes, you probably know most of that.
+ 203856 [sitharus sit] See comments in the code.
^ any irb info or debug techniques
203855 [bitdoger2 ya] ...how do you use irb to interactively debug a while/end group to single
203859 [ara.t.howard] google ruby breakpoint - it's amazing.
^ Rubby pptp/vpn library?
203858 [andre.ludwig] Does such thing exist? Been looking around on rubyforge and other
^ [OT] Ducks!
203864 [dblack wobbl] I was just in downtown Portland, taking a lunch break from OSCON, and
+ 203870 [andrew.kreps] And if that fails, try getting sponsorship from OSU's team -- the
+ 203922 [znmeb cesmai] Welcome to my home town. :) BTW, the Ducks/U of O are in Eugene. The
203927 [wfroelich db] Now your talking! Go Illini!
^ Automagic class prototyping
203873 [aleks0 gmail] Anybody know any slick techniques for automatically prototyping
+ 203897 [alex blackke] class Sec
+ 203914 [vikkous gmai] If you merge the functions of your #later and #allow, you could write
| 203940 [aleks0 gmail] Thanks for the suggestions. The problem with the rescue on NameError
| 204146 [logancapaldo] class Sec
+ 203946 [ara.t.howard] class Sec
203990 [aleks0 gmail] I can see some pitfalls here, but this is the most promising technique
^ YAML Broken?
203878 [pollak gmail] Folks,
+ 203883 [collinsj sea] There's always Marshal.
| 203885 [pollak gmail] Thanks!
+ 203884 [ara.t.howard] can you show an example?
| 204044 [pollak gmail] I'm enclosing a file that contains a Marshal'ed array. To reproduce
+ 203898 [alex blackke] If you're on Windows, check you're reading and writing in binary mode...
+ 203945 [eule space.c] I've had that in one of my rails projects. Luckily it was for a cache, and
+ 203957 [pbattley gma] Are you using 1.8.4? I was bitten by this in Ruby 1.8.2, and actually
^ ruby nuby and mailing lists
203881 [perrin apoth] 1. rubynuby.org seems to be down. Am I the only one having problems
203894 [collinsj sea] Application error
203895 [perrin apoth] Same here.
^ Ruby & Sybase
203891 [caldridge gm] I'm having great difficulty migrating my ruby application from win32
203982 [leslieviljoe] You may need to be more specific about this failure to get a response
204166 [caldridge gm] After 7 hours of trial and error, I manged to get the ruby sybase
^ open-uri question
203896 [akanksha.bai] I am using open-uri for the first time. I need to visit a bunch of urls
203901 [alex blackke] Nothing, from the looks of your code. The server's returning an error
203902 [dandiebolt y] (irb):2: syntax error
^ Re: [ANN] Nitro/Og 0.31.0
203917 [jp jeffpritc] Nitro is an efficient, yet simple engine for developing professional Web
+ 203921 [jcribbs netp] I personally have not used Nitro, and I have no idea how many hours the
| + 203923 [james.britt ] I've built applications in both Rails and Nitro. They're different
| + 203925 [billk cts.co] I'd like to add that I'm not affiliated with the Nitro project itself,
| 204000 [aglarond gma] Is this the screencast you meant?
| + 204819 [billk cts.co] Yes!! Thanks, that was it.
| | 204833 [george.mosch] require 'nitro_and_og'
| | + 204931 [rubyfan gmai] nitro_demo.rb:5:in `attr_accessor': String is not a symbol (TypeError)
| | | + 204934 [james.britt ] George may be using the Nitro Glycerin code base, not the current
| | | | 204974 [george.mosch] indeed, I am using the repository version.
| | | + 204973 [george.mosch] Sorry, I forgot to mention that this example works with the repository
| | + 205020 [dan-ml dan42] how the hell does Og know that Content maps to the database and
| | + 205043 [surrender_it] because Demo does not use model objects' methods, such as the enhanced
| | + 205413 [george.mosch] Og manages classes that define serializable attributes. A serializable
| + 204891 [benjohn fysh] I'm just running through this now (having installed Nitro through
| 204978 [surrender_it] That's somthing you can find in facets, the method Kernel#autoreload
| + 204981 [nshb inimit.] Wow. First time I have seen the screencast. Very impressive.
| | + 204996 [george.mosch] some 'conventions' also exist in nitro. In a future version we plan to
| | + 205024 [james.britt ] It's a mixed blessing. If you know that all of your applications are
| + 205272 [benjohn fysh] ! :) That's very cool. *cough* I've not actually used facets at all.
+ 204023 [khaines enig] Nitro and Rails are similar in age, and similar in origins, as both were
^ Re: Mongoose 0.2.5 - The "Two Steps Forward, One Step Back" release
203929 [GFunk913 gma] First off, great job on Mongoose, it looks very promising.
203984 [cribbsj oakw] Is each object 40MB? (God, I hope not!) Or are you saying that, the
^ Learn to program (Chris Pine) array.sort
203930 [samekh gmail] Hey,
+ 203934 [mitchell koc] I would think "\n" would designate a blank line, or you could chomp
+ 203937 [angus quovad] character ("\n"). chomp chops it off and nothing remains, so after
| 203987 [james graypr] There's nothing wrong with the initial assignment in the original
+ 203938 [w_a_x_man ya] array_input = 
+ 203939 [m_goldberg a] You're very close to what is needed. The following variation on your
| 203999 [samekh gmail] I think I like this one the most. It's closest to what I had in my head
| 204006 [jan.svitok g] in 'loop do' input is tested after assignment
| 204067 [samekh gmail] Makes sense. Thanks for taking the time to explain!
+ 207150 [rnaviaux yah] wordlist = 
^ Ruby in a C# program
203948 [leslieviljoe] Is there a way to embed a Ruby interpreter into a C# program? I can
204268 [doktormadsen] The pickaxe book gives a very good example of using Ruby from c. When
^ Mongrel Patch - Fixes 404 Error in IE
203951 [brian.takita] Using Mongrel has been great. Thank you Zed for developing such a fine piece
204021 [zedshaw zeds] Brian, I've been watching your patch and bug reports but haven't had
204200 [brian.takita] Thank you Zed!!
^ connecting to sap in ruby
203953 [lacruz apc.e] I am researching on how to connect to sap using ruby scripting. Well, I
204251 [cathoxtoby a] I've been watching with interest to see if anyone replied to this, but it doesn't look as though they're going to :-(. I'm afraid I can't answer your question: I'm also working on Ruby to SAP, but have settled on the RFC route. I'm intruiged by your application,though: my interest is in providing a web interface to the R/3 system, but it sounds as though you're planning to replace the SAP screens entirely... Would be very interested to hear what you're doing and how you get on.
+ 204395 [botp delmont] # to SAP, but have settled on the RFC route. I'm intruiged by
+ 204986 [lacruz apc.e] Sorry for my late reply.
206050 [piers ompka.] If it is - then there are drivers for the SAP GUI, but then again I
208124 [lacruz apc.e] I'm sorry for my late reply (again).
^ Subversion binding docs
203956 [work ashleym] Can anyone point me in the direction of the docs for the Subversion Ruby
204031 [chrisjroos g] Depends how familiar you already are, but there are install notes
^ For performance, write it in C
203958 [peter semant] Whenever the question of performance comes up with scripting languages
+ 203959 [drnicwilliam] Do you have any preferred tutorials on wrapping Ruby around C libraries?
+ 203961 [pit capitain] Peter, is there any chance you could test your program with Ruby Inline?
| 204444 [ryand-ruby z] Others have reported being able to use inline on windows... why can't
| 204466 [pit capitain] Ryan, googling for
| + 204472 [jan.svitok g] Well, you need the compiler chain if you want to compile, that is what
| + 204510 [znmeb cesmai] Speaking of CygWin, a couple of people here have expressed what seems
| | 206151 [halostatue g] It's crap and doesn't mesh well with Windows itself.
| | 206173 [znmeb cesmai] Ah ... I only use the client-side stuff, not the server "emulations". I
| + 204771 [ryand-ruby z] It should work with the 1-click installer, but yeah... not without a
+ 203962 [benjohn fysh] Peter Hickman gave a very good article about prototyping in a scripting
| + 203965 [petethebloke] It might be interesting to see how Java fares too - another route
| + 203967 [tomasz.wegrz] Sorry, I just couldn't resist - but maybe you should code Java instead -
| | + 203969 [robert.dober] programming languages out there
| | | 203975 [peter semant] Tact has never been one of my strong points. Your phrasing was much
| | + 203995 [headius head] I'll lob a couple of grenades and then duck for cover.
| | | + 203996 [james graypr] I'm Java Certified and I've been hearing people say this for years,
| | | | + 204002 [headius head] Well la-dee-dah! Seriously though, there's a volume of tests and benchmarks
| | | | | 204007 [mcgoverp lab] I dont doubt for simple applications and algorithms java is nearly as
| | | | | 204081 [perrin apoth] Doubtful. Java does generally produce notably faster applications than
| | | | | + 204091 [me_ncl hotma] I suspect it depends what you're doing...
| | | | | | 204098 [perrin apoth] To clarify: I meant "on average" or "in general". Obviously, there will
| | | | | + 204131 [igouy yahoo.] -snip-
| | | | | 204133 [hal9000 hype] JIT is the key to a lot of that. Performance depends greatly on
| | | | | 204358 [igouy yahoo.] Sometimes when we look at different workloads we can see the
| | | | | 204475 [robert.dober] Yes I believe that on some theoretic base under some circumstances JIT will
| | | | + 204041 [pollak gmail] Writing code that runs as fast in Java as it does in C is real work,
| | | | + 204045 [gregory.t.br] This must be evidence of true cutting edge development ;)
| | | | | + 204049 [headius head] No doubt, I wish I had that kind of problem when running my spreadsheet
| | | | | + 204050 [pollak gmail] Greg,
| | | | | 204052 [james graypr] I'm pretty sure Greg was funning around with the comical typo in your
| | | | | 204065 [gregory.t.br] James gets right to the point. I was just taking a slice at your
| | | | | 204070 [pollak gmail] Guess I should unit test my posts... :-)
| | | | + 204085 [perrin apoth] . . . the problem being that putting the same effort into optimizing a C
| | | | | 204182 [pollak gmail] No. That's heavily optimized Java vs. heavily optimized C. I spent a
| | | | | + 204191 [perrin apoth] Excel isn't a very good point of comparison for C. For one thing, it's
| | | | | | 204196 [kmgaughan ei] Actually, the part that counts, calculation engine, comes in two
| | | | | | 204198 [perrin apoth] That might be the "part that counts" (nice pun) for calculation, but
| | | | | | 204202 [kmgaughan ei] As far as Excel goes, it is. It's the single biggest time sink in the
| | | | | | 204205 [perrin apoth] . . .
| | | | | | 204209 [kmgaughan ei] In fairness, if you're judging it's performance based on running it in
| | | | | | 204216 [perrin apoth] I'm judging it based on running it on Windows. My point is that
| | | | | | 204220 [kmgaughan ei] Wait... I did no such thing. All I said was that what interface
| | | | | | 204221 [perrin apoth] Design decisions that involve interfacing with interface software that
| | | | | | 204683 [kmgaughan ei] Here's all I'm saying: the environment is important, but it's a variable
| | | | | | + 204734 [perrin apoth] What's important is how two pieces of software run in the same
| | | | | | | 204764 [kmgaughan ei] Chad, do you mind if we take this off list? There's no sense in either
| | | | | | | 204769 [perrin apoth] go for it
| | | | | | + 204739 [ehames gmail] The name 'Wine' derives from the recursive acronym "Wine Is Not an
| | | | | | 204763 [kmgaughan ei] Just lie GNU's Not Unix, LAME Ain't an MP3 Encoder, and so on. :-)
| | | | | | 204768 [perrin apoth] Something like WINE is "an emulator" in the sense that you can open a
| | | | | + 206992 [strobel secu] I/O bound tasks? Certain artificial benchmarks? Well yes, ruby can
| | | | + 204394 [jwkenne attg] Actually, it's notorious that a Sieve of Eratosthenes using the
| | | + 203998 [peter semant] As someone who is paid to program in Java I very seriously doubt this.
| | | | + 204004 [garbagecat10] I quite agree with this. To Nutter's point, one can make one's own
| | | | + 204005 [headius head] Doubt all you like.
| | | | + 204019 [sean.ohalpin] While I accept that you shouldn't confuse a language with its implementation,
| | | | | + 204024 [pedro pedroc] In theory if two programs in two different languages produce the same
| | | | | | 204040 [sean.ohalpin] In theory, an infinite number of computer scientists hacking for an
| | | | | | 204051 [me_ncl hotma] You'd be waiting a long time indeed :o).
| | | | | + 204034 [headius head] Garbage collection is a characteristic of the Java VM, not the language.
| | | | | | 204092 [perrin apoth] In some ways, you're right: implementation details are being mixed up
| | | | | | 204169 [sean.ohalpin] Nope - there's no mix up. My point is that any feature of a language
| | | | | | 204173 [perrin apoth] Careless use of ANYTHING can cripple an application. Using an extra
| | | | | + 204167 [csaba remove] Even if OT, just for the sake of correctness: let me remark that Python
| | | | | 204168 [perrin apoth] Is it just me, or are there no proper closures in that example code?
| | | | | + 204170 [sean.ohalpin] I've crossed my eyes twice and still can't see it ;)
| | | | | | 204174 [perrin apoth] Remember what your mother said: if you keep doing that, your eyes might
| | | | | + 204175 [kmgaughan ei] No, Chad. There's closures in there. What you're not seeing is
| | | | | + 204177 [perrin apoth] Maybe I'm missing something critical about Python, but I don't see the
| | | | | + 204178 [kmgaughan ei] the outer scope, so you have to use an array or some other object to
| | | | | 204204 [perrin apoth] That's a bit clearer -- and it does look like a proper closure. It also
| | | | | 204210 [kmgaughan ei] In practice, it's not really all that bad. Most of the places where I'd
| | | | + 204088 [perrin apoth] As someone who is NOT paid to program in Java, and in fact finds Java
| | | + 204112 [rm_rails che] Not really. In C you can quite easily use inline assembly
| | | + 204123 [garbagecat10] Your point about Java here is very well-taken. I'd add that you don't
| | | + 204134 [headius head] So you're saying that when writing an extension to Ruby in C you can also
| | | 204140 [garbagecat10] Much depends on what is wanted from the language. My friends know me for
| | | 204161 [headius head] I agree, Francis, and I'd add that exactly those areas where people seem to
| | + 204047 [igouy yahoo.] "The results I got were that Java is significantly faster than
| + 204020 [deanwampler ] This is the "value proposition" of the "Hot Spot" technology in the
| 204094 [perrin apoth] This recent mania for VMs is irksome to me. The same benefits can be
| 204102 [work ashleym] Chad,
| + 204116 [garbagecat10] I've had tremendous results optimizing Ruby programs that process huge
| | + 204121 [ara.t.howard] one of the reasons i've been pushing so hard for an msys based ruby is that
| | + 204122 [perrin apoth] One of these days, I'll actually know enough Ruby to be sure of what
| | 204129 [garbagecat10] Ashley was talking about 1GB+ datasets, iirc. I'd love to see an
| | 204136 [work ashleym] I think the total data size is about 1.5GB, but the individual files
| | + 204138 [ara.t.howard] - parse the first line, remember cell count
| | + 204152 [perrin apoth] With a 92% cut in code weight, I can certainly sympathize with that
| | | 204246 [work ashleym] Even the last remaining member of the Anti-Ruby Defence League in my office
| | + 204212 [garbagecat10] The problem isn't the raw size of the dataset. It's the number of
| | 204241 [work ashleym] Nice MD5 trick! I'll remember that. Fortunately the files that need
| | 204679 [work ashleym] - use FasterCSV instead of CSV
| | + 204700 [garbagecat10] Again, I haven't seen your code or your data, but 50 minutes still seems
| | + 204728 [collinsj sea] Disk I/O? Maybe?
| | + 204735 [james graypr] Fair warning, I'm coming into this conversation late and I haven't
| + 204120 [perrin apoth] The canonical example for comparison, I suppose, is the Java VM vs. the
| | + 204141 [headius head] Half true. The Java VM could be called "half-compiled and half-interpreted"
| | | 204156 [perrin apoth] True . . . but this results in fairly abysmal performance, all things
| | | 204179 [enebo acm.or] I have not been on the perl train for years, but I believe for Perl5
| | | 204194 [perrin apoth] I believe you are correct, with regard to an intermediate code step,
| | + 204144 [work ashleym] Chad...
| | | 204160 [perrin apoth] I'm not as familiar with what's going on under the hood of the CLR as
| | + 204397 [jwkenne attg] Huh? Small-system (PDA, etc.) Java implementations may use bytecode
| | 204420 [perrin apoth] Wait . . . what? When some Java applet (for example) is sent over an
| | 204423 [headius head] Interpretation does not necessarily mean raw source code is being processed.
| | 204424 [perrin apoth] How do you figure? You just reiterated, in different words, everything
| | 204432 [kmgaughan ei] No, just that you left out the bit about JIT compilation into native
| | 204445 [perrin apoth] Gee willickers, I'm sorry I didn't use the exact phrasing you wanted me
| | 204676 [kmgaughan ei] I was being polite until you made a passive agressive remark about me
| | 204721 [perrin apoth] That wasn't a passive-aggressive remark, it was a joking comment about
| | + 204725 [billk cts.co] GENTLEMEN! YOU CAN'T FIGHT IN HERE, THIS IS THE WAR ROOM !!!
| | | 204729 [kmgaughan ei] And I was just about to put my mexican wrestling mask on. Sigh. ;-)
| | + 204727 [kmgaughan ei] It didn't come across as joking.
| | 204737 [perrin apoth] I'd be inclined to apologize for the misunderstanding if you hadn't
| + 204124 [khaines enig] Just as a sidenote to this conversation, if you are not using FasterCSV,
+ 203973 [ news jay.fm] This is a great post, and should at least be posted to a blog somewhere so
| + 203977 [peter semant] I may well put it in my web site, along with all the source code. Google
| | 203980 [leslieviljoe] Something else to consider is the ease with which Ruby extensions can
| | 204099 [perrin apoth] Pascal's sort of an iffy proposition for me, in comparison with C. I'm
| | 204403 [jwkenne attg] Language specs mean a good deal, actually. C semantics (except in C99,
| | 204421 [perrin apoth] I didn't say they didn't. I said only that *in this case* it *may* be
| + 204012 [pat.eyler gm] well, I didn't post the original post (though I did link to it). I
| | 204032 [vasudevram g] Interesting series of messages! Got to save and read them through at
| + 204100 [perrin apoth] This list is not only on USENET, for what it's worth.
+ 203985 [garbagecat10] One important thing about Ruby performance is that Ruby gets very
+ 204001 [simon.kroege] The last (and only) time I called someone a troll for saying
| + 204033 [peter semant] I will run your Ruby version and the Java version that I write and post
| | 204090 [SimonKroeger] Hmm, in a week this discussion will be over (ok, it will reappear some time
| | + 204103 [perrin apoth] Holy crap, that's fast.
| | + 204228 [peter semant] On my machine it took around 33 seconds but I think that I can improve
| + 204114 [ara.t.howard] real 0m11.170s
| + 204219 [w_a_x_man ya] Here's a much slower version that has no 'require'.
+ 204027 [kristof vlee] When reading your C code, I saw that there is a lot of code that is
| + 204039 [vasudevram g] Interesting ... I read somewhere that the OCaml language, while
| | 204043 [harrisj schi] You read that correctly. The problem is that nearly every benchmark I've
| | + 204048 [kristof vlee] In some cases the functional version is faster because the problem can be
| | | + 204053 [headius head] I think it's also worth mentioning that talking about the speed of a
| | | + 204110 [perrin apoth] Actually, a well-defined functional syntax is a beautiful thing to
| | + 204062 [igouy yahoo.] Once you ignore the stuff that beats up on hash-tables, character
| | + 204287 [martin snowp] There was posted here a few weeks ago, in a thread on rails
| + 204470 [csaba strip-] It's really nice and compact!
| | 204512 [kristof vlee] Yes, exactly!
| + 204474 [w_a_x_man ya] I don't see where elems_diff is used after it is defined.
| 204504 [kristof vlee] Heh, you are right! I defined it, and then when I didn't need it I forgot
+ 204035 [doug00 gmail] Assuming you have no choice but C/C++. That's why I like using the
+ 204056 [ara.t.howard] just for fun, here's a ruby version (note that the array would actually need
+ 204381 [tbray textua] Sorry for coming late to the party.
| 204455 [peter semant] The post was about people wanting better performance for their code.
+ 204755 [uval rz.uni-] write in VHDL (or Verilog or SystemC), synthesize you piece of
+ 209586 [MonkeeSage g] Ok, I need to preface this by saying that I'm in no way either a C or
| 210015 [strobel secu] First, stdout doesn't neccesarily write to your screen, and /dev/null
| 210780 [monkeesage g] Ok, fair enough. I made the assumption that the testing was done on a
| 211264 [strobel secu] =20
| 211305 [monkeesage g] I understand your point, but I think we may be talking past each other
+ 210308 [minkoo.seo g] Well put. I totally agree with you.