137096-138249
136851-142734 subjects 137230-138174
^ Interpolating a string loaded from a text file
137096 [john.elrick ] Hoping you guys can help out here. Is there any way to interpolate a
+ 137098 [james graypr] Only if you replace #my_message with #{my_message}. ;)
+ 137099 [bob.news gmx] "John Elrick" <john.elrick@gmail.com> schrieb im Newsbeitrag
| 137104 [kig misfirin] echo "}; 10.times{ puts 'do not trust external data'" > \
| 137106 [bob.news gmx] "Ilmari Heikkinen" <kig@misfiring.net> schrieb im Newsbeitrag
+ 137100 [vrajmohan co] Will using Kernel#sprintf work achieve the same thing?
| 137101 [bob.news gmx] "Vraj Mohan" <vrajmohan@comcast.net> schrieb im Newsbeitrag
| 137107 [ruby-ml magi] Problem is that interpolation is done at the time the String
| 137153 [john.elrick ] Thanks to all who have replied. I appreciate all the solutions.
+ 137286 [john.carter ] This is my print help routine, the help file itself is almost book length,
^ constrained gtk radio buttons
137112 [prubel bbn.c] I've been trying out gtk and gtk2 for the first time over the past few
+ 137113 [gcottenc gma] IMHO, your problem has more to do with gtk than ruby or ruby-gtk. And
+ 137114 [joaopedrosa ] I've created a sample that works with Ruby-GNOME2. When a Radiobutton
137200 [prubel bbn.c] Thanks for both of the responses. I appreciate your help. It looks
^ FXRuby for fox-toolkit-1.4.11?
137115 [jim freeze.o] What FXRuby version should I use with fox-toolkit-1.4.11?
+ 137122 [lyle.johnson] You will need to jump into your time machine and travel into the
| + 137154 [sander knolo] Does your glass ball tell you how many lunches you need have in order to
| | 137193 [lyle.johnson] I told you guys it's gonna take more than lunch from Schlotzsky's to
| | 137198 [cribbsj oakw] Lyle, I happen to remember a few months back you shirking your FXRuby
| | 137227 [lymans gmail] In that case - I salute your selfishness!!
| + 137179 [jim freeze.o] Hey, I hear you can buy one of those things on the internet.
| 137191 [lyle.johnson] Yeah, time travel is easy. I've already looked into it for myself. ;)
| 137317 [sander knolo] Yup as a matter of fact, just the other weekend I traveled one hour into the
+ 137123 [lymans gmail] Short answer - none.
^ Re: QT for Win32?
137116 [Greg.Kujawa ] I took your advice and took the second route. I built the smoke sources on
137131 [Richard_Dale] Oh dear, I was hoping it would be easier than that. People have ported the
^ Ruby, MFC and SWIG - errrrr.....
137127 [ceedeeeee ho] I'm at a mental brick wall with this..... if I have a SWIG generated
^ chopping up a music file
137128 [mrmargolis w] I am working with a band right now and they want samples of all their
+ 137129 [aredridel nb] I think there's a ruby-soundfile, but honestly, if you're on unix, I'd
| 137136 [mrmargolis w] Thanks unfortunately I am stuck on a windows box for the few weeks as my
| 137138 [robby planet] -RObby
| 137140 [mrmargolis w] Dead site.
| 137141 [robby planet] -Robby
+ 137134 [robby planet] -Robby
^ Ruby/DL - assigning to global variables?
137132 [ajwitte gmai] module Foo
137495 [ttate ttsky.] @@bar is considered as a pointer to a value. If its type is int, you can assign
^ RMagick question
137144 [joevandyk gm] I'd like to generate a thumbnail of an image. The thumbnail should
+ 137148 [cyclists nc.] You might try this approach. Start by making a thumbnail from your image
+ 137315 [cyclists nc.] Here's a script that adds transparent round corners.
| 137373 [sgbirch imsm] Newbie Q ... why does RMagick need a require *and* an include
| + 137387 [martindemell] This mixes in the Magick module, so that you don't need to preface its
| + 137388 [cyclists nc.] The include statement isn't necessary, it's just that I'm a lazy typer.
| | 137400 [sgbirch imsm] Got it ... thanks
| + 137389 [glenn.parker] Check out the recommended usage for the Benchmark module.
+ 137842 [joevandyk gm] Thanks for all the responses (check out www.jerrymahan.com for the result).
+ 137847 [joevandyk gm] Aha, I think I'd use rows() and columns() for that.
| 137856 [cyclists nc.] Do you mean you want to resize an image to a specific size without
| 137860 [joevandyk gm] No, I want to resize an image to a specific size and maintain its
| 137862 [cyclists nc.] Yes, in that case cropping is called for.
| 137955 [glyconis gma] What we do is shrink it down to fit in the thumbnail size, and fill in
+ 137848 [wannes oeani] didn't test it, but seems logical.
| 137850 [joevandyk gm] Yeah, I finally found it. I was searching for "width" and "height"
+ 137851 [drbrain segm] #rows and #columns
+ 137857 [cyclists nc.] Sure. Use the #columns and #rows attributes of the image.
^ ruby best practices?
137147 [itsme213 hot] What are some good references for Ruby best practices? I have pickaxe, am
137150 [ruby-ml magi] Best practice: use Ruby.
^ Ruby in a Nutshell
137149 [sigzero gmai] It was published in 2001, that would be coming up on 4 years. Is
+ 137187 [shalev simpl] One would hope. That book was recommended to me as my first ruby book
+ 137214 [sastph sas.c] Seems to me that it would be useful to express your interest to O'Reilly.
^ Beginner Question with Net::Proxy
137152 [rcole itee.u] I'm trying without success to do an http get via a proxy using net/http
137158 [assaph gmail] Surely you meant @proxy_addr ?...
^ 'gem install instiki-0.10.0' does not pull in dependencies - why?
137161 [alex verk.in] QTE instiki.gemspec
137162 [alex verk.in] svn co http://svn.instiki.org/instiki/trunk instiki
137176 [curt hibbs.c] I'll cross post this (and your 2nd email) to the RubyGems ML where it
137180 [chadfowler g] time pre-day-job to figure out what's causing it. Thanks for the
^ SMTP example from docs is erroring out
137186 [sigzero gmai] require 'net/smtp'
137247 [drbrain segm] You don't say which docs you got this example from, but this does not
137296 [sigzero gmai] I downloaded the one-click installer and I have that in my docs. Not
^ [SUMMARY] Code Cleaning (#26)
137189 [james graypr] No takers for this idea, eh? We seem to like uglying up code better than
+ 137196 [gavin refine] Thanks very much for this summary. I didn't participate in the quiz,
| 137204 [james graypr] Thanks Gavin. That's always been my number one goal for Ruby Quiz: To
+ 137244 [ruby-talk wh] I'm with Gavin. Your cleanups were great, your summary was engaging.
+ 137287 [dave burt.id] The quiz didn't make it to usenet. But Timothy Byrd's response and the
137290 [james graypr] It didn't? Sorry, I didn't know that.
^ Fwd: Solution to last weeks, as an mixin to the Numeric class
137190 [james graypr] (a solution to quiz #25)
^ In-depth schema details in ActiveRecord
137202 [gavin refine] A few days ago I posted a question on how to use ActiveRecord to
+ 137209 [halostatue g] I doubt you're wrong, as DHH has stated several times in the past that
| + 137210 [binkley alum] I sense a feeling of hostility.
| | 137216 [halostatue g] On Apr 7, 2005 10:16 AM, B. K. Oxley (binkley)
| | 137218 [Greg.Kujawa ] Agreed. I have used MySQL in the past for quick setups that required not
| | 137219 [alang cronos] I've heard the "gotchas" list is a bit out of date, but I agree with
| | 137245 [drbrain segm] The list mentions which gotchas are present in which versions up to 4.1
| | 137248 [alang cronos] Ah, and there's also a PostgreSQL gotchas list, which is a bit smaller
| + 137271 [george.mosch] Og does this better because you define the not-null constrain with Ruby
+ 137220 [threeve.org ] This is a nice idea, something I think would be fun to have. The
| 137224 [khaines enig] Ruby does have a DBI implementation. The ORM I primarily use and develop on
+ 137236 [jecain gmail] I've recently been investigating using Rails for a current project of
+ 137238 [Daniel.Berge] Yay!
+ 137246 [jeremy bitsw] Indeed. Discovering metadata is not a big deal, but with many databases
| 137259 [gavin refine] you
| + 137262 [jeremy bitsw] Yes; it's shorthand for "show columns from tablename"
| + 137263 [rampant gmai] Yes, using the SQL above: 'desc tablename'. It returns a result with
| + 137264 [rampant gmai] Make that = phpMyAdmin
| + 137269 [ruby-ml magi] The only DESC in SQL goes after an ORDER BY.
| 137276 [jeremy bitsw] Clever.
+ 137412 [graham.r.jen] Cannot this sort of scaffolding be driven off the domain model
^ Seven new VMs, all in a row
137225 [peter.kwangj] I thought I'd talk about my new project here, since there is a good
+ 137226 [mark ociweb.] I think it would be really cool if you could do this on top of the free Squeak
| 137228 [peter.kwangj] Yes, I was thinking along these lines. However, no real Namespaces
+ 137237 [mailinglists] Is this just brainstorming or have you already done something ?
| 137253 [peter.kwangj] Lothar,
+ 137266 [james.cromwe] - Would this support programming both within or without an image,
| + 137268 [pat.eyler gm] (Although this is about Ruby in Ruby, not Ruby in smalltalk)
| | 137274 [peter.kwangj] I am aware of MetaRuby. This project is also about Ruby in Ruby.
| + 137272 [peter.kwangj] Basically, you could treat the image as just a very powerful
+ 137270 [florgro gmai] This does indeed sound promising. Having a self-hosted Ruby would have
| 137275 [peter.kwangj] In the Smalltalk debuggers, you can spawn off as many debugger sessions
| + 137289 [mailinglists] So it can crash anywhere :-) SCNR.
| | + 137300 [enebo acm.or] OTOH, if it is 30x faster and makes an alternate implementation of socket
| | | 137322 [ptkwt aracne] I'm very skeptical about the 30x faster claim.
| | | + 137324 [agorilla gma] I might be skeptical, but if I voice my skepticism loud enough, I may
| | | | 137333 [ptkwt aracne] Please, prove my skepticism to be wrong. A Ruby that was 30x faster (on
| | | | + 137335 [agorilla gma] I leave that job to Peter, my job is to encourage him to try.
| | | | | 137349 [peter.kwangj] Bill,
| | | | | + 137350 [mailinglists] Is there a public available technical specification for the VM ?
| | | | | | 137372 [avi.bryant g] ...
| | | | | | + 137374 [avi.bryant g] Sorry, my last post was meant to be in reply to Lothar's request for a
| | | | | | | 137377 [mailinglists] Yes, nice but this is Squeak. It seems that this is just a bytecode
| | | | | | | 137379 [mailinglists] same class again and again; consider how often we use arrays of SmallInteger or
| | | | | | | + 137383 [peter.kwangj] Yes. I used to work for them.
| | | | | | | + 137451 [drbrain segm] You missed the second to last sentence, "... the cached target and some
| | | | | | | 137464 [mailinglists] No i did not miss it, it says that this is _NOT_ implemented in squeak,
| | | | | | | 137473 [drbrain segm] The above documentation is, in part, wrong.
| | | | | | + 137375 [robert.feldt] Great, thanks Avi. Can I assume the commercial VMs are similar to this
| | | | | | 137381 [avi.bryant g] this
| | | | | + 137360 [george.marro] is
| | | | | | + 137363 [mailinglists] I would like to add
| | | | | | | + 137366 [peter.kwangj] Nope. (Rest is left as an excercise.)
| | | | | | | + 137477 [itsme213 hot] I doubt it will. Even in Ruby, singleton methods are implemented with
| | | | | | | 137502 [peter.kwangj] You get the "no-prize"! Yes, this one is easy.
| | | | | | | 137617 [itsme213 hot] Replacing every existing object of a class with a new static layout has a
| | | | | | | 137620 [peter.kwangj] If you want to influence the project, join it and contribute code.
| | | | | | | 137624 [itsme213 hot] I've read this thread with considerable interest, and am certain many of us
| | | | | | + 137368 [peter.kwangj] I still have to look into continuations and OS facilities in detail.
| | | | | | | 137397 [george.marro] Avi / Peter -- thanks for providing the feedback I was looking for.
| | | | | | | + 137404 [robert.feldt] That's right George. However, I concluded Smallscript was not open
| | | | | | | + 137458 [peter.kwangj] Sorry, it was late at night, and that came off harsher than it should
| | | | | | | 137466 [ruby-ml magi] Thank you for that apology! Please understand you are speaking to
| | | | | | | + 137470 [sellberg goo] I don't think it is harmful in any way. Consider web frameworks.
| | | | | | | + 137472 [peter.kwangj] It's fair I answer them once. However, it is amusing that I'm getting
| | | | | | | 137479 [peter.kwangj] Yikes, I walked back from the car when I realized...LISP! I don't want
| | | | | | + 137369 [avi.bryant g] They fit almost exactly, which is why 20-30x is not an outrageous speed
| | | | | | | + 137370 [flaig sancta] And if so, what about incorporating this into Ruby 2.x one day? :-)
| | | | | | | | 137376 [peter.kwangj] Reference counting GC, isn't it? That automatically raises your
| | | | | | | | 137454 [cmills frees] handling
| | | | | | | | + 137462 [peter.kwangj] VisualWorks gets around this and also solves problems the paradox with
| | | | | | | | | + 137490 [glenn.parker] Well, that's a major hole, isn't it?
| | | | | | | | | | 137507 [peter.kwangj] There is clearly some kind of disconnect here. Are you expecting that
| | | | | | | | | | 137534 [glenn.parker] Perhaps there is a disconnect, but I didn't think I was that obtuse.
| | | | | | | | | | 137564 [peter.kwangj] Why is it that you'd want real threads? What can real threads do that
| | | | | | | | | | + 137569 [mailinglists] Having a database app where each "fetch_row" call into the database
| | | | | | | | | | | 137575 [avi.bryant g] that
| | | | | | | | | | + 137614 [glenn.parker] Yes, I want synchronous I/O and true multi-cpu execution. And if I
| | | | | | | | | | | 137619 [avi.bryant g] that
| | | | | | | | | | | 137629 [glenn.parker] Of course, otherwise threads are no more interesting than (heavy-weight)
| | | | | | | | | | + 137623 [mailinglists] I find multiple real OS threads so important that lack of this feature
| | | | | | | | | | + 137626 [Mail Jonas-H] Can one give me hints where to read about the "ruby way of threading"?
| | | | | | | | | | + 137642 [avi.bryant g] feature
| | | | | | | | | | | 137649 [glenn.parker] See http://rubyforge.org/pipermail/yarv-devel/2005-March/000270.html
| | | | | | | | | | + 137643 [peter.kwangj] Well, we sure will miss you and your impotent insights!
| | | | | | | | | | 137658 [peter.kwangj] Lothar,
| | | | | | | | | | 137759 [flaig sancta] I think the "wal-mart argument" is quite an important one. Apart from explicitly creating threads, it would be nice if the Ruby system could be taught to automatically recognize parallelizable code and optimally distribute it across a multiprocessor system -- implicitly. That would be a big advange for high-level programming in general! I do not know the state of the art in this, I only remember that the Atari/Inmos guys failed do do this in Occam, back in the 1980s. Do you think there is a serious chance to get such a thing working?
| | | | | | | | | | + 137769 [kig misfirin] IIRC the Erlang threads are green threads and OS level parallelism is
| | | | | | | | | | | 137811 [billk cts.co] It's just the context switch that gets faster... :)
| | | | | | | | | | | 137837 [kig misfirin] If making a fast VM with native thread support is hard enough to
| | | | | | | | | | + 137778 [glenn.parker] I'm not sure exactly what the "wal-mart argument" is. Wal-Mart can be
| | | | | | | | | | | 137803 [peter.kwangj] For OO languages running on top of a Virtual Machine, Object semantics
| | | | | | | | | | | 138190 [itsme213 hot] IIRC, this is an extremely difficult thing to check. My recollection is
| | | | | | | | | | | 138249 [peter.kwangj] If the VM is doing this, then you can do this efficiently by comparing
| | | | | | | | | | + 137802 [peter.kwangj] I know that people have been agitating for a shared "Perm Space"
| | | | | | | | | | 137852 [igouy yahoo.] have
| | | | | | | | | | 137913 [flaig sancta] I was alluding to someone's dictum that even Wal-Mart are selling multiprocessor systems nowadays, with the innuendo that hardware is growing more and more trashy every day :-) . The philosophy of increasing processing power by simply increasing clock speeds seems to have reached its limits. Any further advancement will require an intelligent combination of hard- and software. One which even Wal-Mart customers can handle ;-) .
| | | | | | | | | | + 138019 [spoooq gmail] Parallel programming, both local and distributed, is one of the great
| | | | | | | | | | + 138022 [glenn.parker] Would that it were this simple. A "map" function operates on a list,
| | | | | | | | | + 137511 [billk cts.co] Interesting. I'd been looking forward to the day
| | | | | | | | | 137512 [peter.kwangj] Yes.
| | | | | | | | + 137465 [mailinglists] This shouldn't be a problem. As long as you don't pass ruby values
| | | | | | | | 137469 [cmills frees] including one
| | | | | | | | 137471 [peter.kwangj] I am not a VM expert, but I have overheard the Smalltalk VM guys (4 of
| | | | | | | + 137393 [glenn.parker] Isn't that jumping the gun just a bit? An instance variable (in Ruby)
| | | | | | | + 137409 [avi.bryant g] class
| | | | | | | | + 137423 [patrick.down] What about systems like Rails where members are added to the class
| | | | | | | | | 137431 [avi.bryant g] how
| | | | | | | | + 137428 [glenn.parker] The Smalltalk Ruby will still need to handle more dynamic methods of
| | | | | | | | 137438 [avi.bryant g] Just posted on that...
| | | | | | | | 137599 [peter.kwangj] Having your variables in a Hashtable is something I've heard of as a
| | | | | | | | 137610 [nseckar gmai] It is possible for Ruby objects to have a dynamic set of attributes. How do
| | | | | | | | 137613 [avi.bryant g] capabilities.
| | | | | | | | 137621 [itsme213 hot] I use it often to generate method definitions dynamically using closures
| | | | | | | + 137457 [peter.kwangj] I've been giving this some thought. There's no reason why we can't
| | | | | | + 137380 [peter.kwangj] Check.
| | | | | + 137386 [matt technor] Makes sense to me. All in all, this sounds like a really cool project and
| | | | | 137391 [Greg.Kujawa ] I have been working with Ruby for about 6 months now and love it. Coming
| | | | + 137337 [matz ruby-la] It's not impossible to make Ruby run 30x faster for some tasks, for
| | | | + 137340 [agorilla gma] Yes, and my point is that there's a fine line between "I'm not sure if
| | | | | 137341 [matz ruby-la] I take your point. I don't want to discourage anyone.
| | | | | 137351 [ruby-talk wh] I feel impossibly good right now. Go now, Peter the young-breasted.
| | | | + 137345 [mailinglists] Since Smalltalk has only very few binary implemented functions i think
| | | + 137328 [horacio.lope] For what I've seen, reusing something like the Mono native backend
| | | | + 137344 [mailinglists] No. You simply forget that the Mono/.NET VM's are optimized for static
| | | | + 137364 [surrender_it] I disagree. The IronPython implementation, on mono/x86 runs just 1.2
| | | + 137361 [surrender_it] well, take a look at the OO Richards Benchmark
| | | + 137378 [sphilippov g] fib(32): ruby - 7297ms, visualworks 7.2.1 - 79ms
| | + 137302 [drbrain segm] Wow, could you possibly be more negative?
| | | 137343 [mailinglists] Yes, but i don't think i was very negative. Its just the observation
| | + 137303 [peter.kwangj] In general this sort of thing doesn't crash under Smalltalk. In fact,
| | 137358 [Mail Jonas-H] Slightly OT: Does Python ship with a JIT or JIT option?
| | 137365 [surrender_it] no, Python is just a "normal" vm. There is a python JIT for x86, psyco,
| + 137292 [glenn.parker] So, what are the potential platforms for Ruby on a Smalltalk VM?
| 137306 [peter.kwangj] Squeak alone has been ported to 32 platforms, running in all of them
+ 137310 [avi.bryant g] I'm definitely interested in this; please keep me posted. Actually, a
| 137323 [ptkwt aracne] This "20x to 30x speed increase" stuff is interesting. I would have
| + 137330 [igouy yahoo.] More than 5x
| + 137346 [peter.kwangj] Phil,
+ 137371 [robert.feldt] I'm interested; sounds like a great idea. However, I haven't been very
+ 137482 [itsme213 hot] Sounds fantastic, I can't wait!
137504 [peter.kwangj] Avi pointed out that we don't really need them -- Smalltalk Namespaces
threads.html
top