281224-292125
280930-282761 subjects 281428-283196
^ Im trying to make Thumbnail pics -- any suggestions?
281224 [wiz_pendases] Im trying to make Thumbnail pics -- any suggestions? (dont know wher
+ 281228 [piyush.pr gm] Use rmagick which is a sort of a ruby binding on ImageMagick and
| + 281231 [eric sempere] I am using rmagick. However, I hear good things about imagescience if your needs featurewise are more modest.
| + 281236 [aredridel nb] Or ImageScience or the epeg library
+ 281277 [w3gat nwlaga] # Make Thumb Nails
281281 [ryand-ruby z] Blech!
281292 [hawat.thufir] Very cool :)
+ 281329 [boss airblad] Regards,
+ 281339 [dangerwillro] Put things like that into the Model file.
281447 [piyush.pr gm] you can also use filecolumn for rails file upload and thumbnailing needs.
^ if you know
281229 [rbarrile b-v] Dear people, the company I work wants to make a Ruby development team. Most
281381 [coder68 yaho] Rosaura,
^ Metaprogramming for Tierra-like (artificial life) program?
281232 [phil pricom.] People,
281279 [MonkeeSage g] Sure, you can write a Game of Life in ruby. (You could even get fancy
281313 [phil pricom.] Jordan,
281398 [MonkeeSage g] Sorry about that. That was meant to be tongue-in-cheek. But the answer
^ unsubscribe
281237 [hairymail gm] unsubscribe
^ csv help
281238 [junkone1 gma] Here is a extract of csv file that i use
+ 281241 [james graypr] #!/usr/bin/env ruby -wKU
+ 281245 [cvonkleist g] data = {}
281246 [cvonkleist g] data = {}
^ hash.clear("value")
281248 [stonelists g] hash.clear("value")
281252 [MonkeeSage g] You can always wrap delete_if...
281334 [shortcutter ] Just a subtle point: IMHO it is better to put "target" on the left
281438 [MonkeeSage g] Nice. :)
281449 [shortcutter ] Laziness is exactly the reason why I use delete_if. Why? Because I
^ new content notification from a log file
281251 [fwang2 gmail] dear all,
281253 [gwtmp01 mac.] You can use File.stat('filename').size to get the number of bytes in
281254 [cvonkleist g] f = File.new('logfile.log')
281263 [fwang2 gmail] Thanks to both of you for the solution.
281266 [cvonkleist g] You're welcome! That approach has worked for me many times in the
^ *hash is different from hash.to_a?
281255 [transfire gm] Has this come up before? I don;t recall. But just the same. Does this
+ 281260 [alex blackke] irb(main):001:0> a = *[1,2]
+ 281278 [MonkeeSage g] Splat behavior is going to be slightly different in 1.9 [1] (e.g.,
^ mongrel fails to install
281256 [hawat.thufir] I'm going to play around with it, but why would it fail? permissions?
281262 [alex blackke] You're trying to build a native extension on a platform without a
281370 [luislavena g] The same goes for Mongrel, just install the mswin32 version which
281482 [jjohnson cyb] I've been running into the same problem with the latest updates. Even when I
281538 [luislavena g] There is a pre-compiled version of fastthread on the site. Also, the
^ I get syntax errors from RDParser example I found on internet
281259 [wbsurfver ya] =begin
281269 [yermej gmail] In the first, you need the - at the beginning of the (or escaped with
281296 [wbsurfver ya] That first one I had tried before and it didn't work, but if I move
^ seek() in GzipReader
281267 [belorion gma] Looking at RubyDoc for GzipReader (
281276 [belorion gma] I realize, now, that there is probably no "meaningful" way to seek through a
^ Custom Protocol
281273 [fedzor gmail] I understand that I've asked a similar question that of custom packets.
+ 281280 [cjs cynic.ne] Typically, protocols have state. So I'd start with as clear an
| 281303 [fedzor gmail] What do you mean by state machine?
| 281305 [cjs cynic.ne] - Idle
| + 281324 [jgabrielygal] I would like to see that example on-list, or at least be part of the off-list
| + 281344 [fedzor gmail] Thanks! Thats a nice protocol you have!
+ 281348 [garbagecat10] I took a very quick look at UDT and I think it's quite interesting. The
281379 [fedzor gmail] The reason I'd like to do it in Ruby is first for my comprehension of
281412 [garbagecat10] I'm planning to look the implementation over and give it a try. Maybe even
+ 281420 [fedzor gmail] Where would you recommend, then, including the excess information?
+ 281421 [fedzor gmail] Where would you recommend, then, including the excess information?
281435 [garbagecat10] According to the spec, the header of a UDT data packet is 16 bytes long.
281471 [fedzor gmail] That's good news. Does this mean their alternate information is
281494 [garbagecat10] Strictly out of curiosity, what's your need for this protocol? Are you
281524 [fedzor gmail] I don't actually need this for anything. Just something that I wanted
281531 [garbagecat10] If you're bandwidth-constrained, then I would doubt that replacing TCP will
^ ThreadGroup and Ruby 1.9
281283 [tim.pease gm] Just wondering if this is a bug in 1.9 or intended behavior ...
^ Timeout::Error mystery
281284 [rubyronin gm] Ruby/programming noob here. I've just finished my first real app, but it's
281285 [drbrain segm] subclass. You must rescue Timeout::Error explicitly to handle the
282855 [rubyronin gm] I didn't understand what you meant at first. Once I had some time to look
^ constructing an (xml) request properly for http post to an api
281288 [elle.on.rail] emaillabs' api
281309 [cohen.jeff g] I think you're creating the xml part ok, it's the previous section
281958 [elle.on.rail] thanks for responding jeff, and for your feedback.
^ Like python's dir(), except better...
281293 [MonkeeSage g] People often want to look at an object's attributes when debugging.
+ 281319 [konrad tyler] charset="iso-8859-1"
+ 281347 [shortcutter ] You can view the attributes quite conveniently with pp (you'll see
| 281391 [MonkeeSage g] Example please?
| 281397 [caduceass gm] => true
| 281399 [MonkeeSage g] Thanks. I'm aware of that, but it doesn't show methods, class
+ 281394 [MonkeeSage g] Bug...#def should be returning nil
^ Creating Databases in Ruby
281295 [will.liljon ] I was wondering how exactly is the best method for creating
+ 281307 [raasdnil gma] Unless you had a really good reason to do it, this is a fairly solved
+ 281352 [AEtzold gmx.] Dear Will,
| 281354 [kyleaschmitt] One or two things to remember: if you aren't dealing with a huge
| 281389 [no spam.plea] Sorry to be a pedant, but Atomic != Transactional.
+ 281470 [shortcutter ] As the other answers demonstrate this cannot be answered at such a
| 281546 [will.liljon ] Robert,
| 281584 [shortcutter ] Please do not top post.
| 281635 [will.liljon ] First of all, what do you mean by "top post"? Do you mean reply on an
| 281641 [MonkeeSage g] Yes.
+ 281472 [aglarond gma] KirbyBase is a small, plain-text, DBMS written in Ruby. It can be
281542 [gerardo.sant] If you like KirbyBase's interface, you may like Sequel too
^ Installation Issues on School Network
281297 [mail brettd.] I am trying to install Ruby on a number of machines in a networked
281327 [alex blackke] Does running c:\ruby\bin\ruby.exe -v from the command line work (I think
^ [ANN] csspool 0.2.0 Released
281312 [aaron tender] csspool version 0.2.0 has been released!
281321 [mental gmail] Long time listener, first time caller... Love the show, btw.
+ 281342 [dangerwillro] Problem here is bad CSS.
| 281371 [mental gmail] Yes, and the error is there on purpose.
| 281465 [dangerwillro] Oops, sorry for the noise then!!
+ 281414 [aaron tender] Doh. I don't know why that is there. I'll remove it and release again.
^ Time.strftime 12 hour format
281314 [stoopidboi h] I'm trying to display a date/time in 12-hour format. According to the
281322 [justincollin] irb(main):001:0> Time.local(2007, 'nov', 27, 12, 13,
281326 [jacob.dunphy] As another quick note...
281355 [stoopidboi h] Sorry to waste everyone's time, was a JRuby bug. Just found that it has
^ How to Start
281315 [rodolphosc5 ] Sorry to bug everyone with this, but I am new to all this programing stuff =
+ 281323 [ljjarvis gma] You should check out the RoR mailing list.
+ 281325 [dan.stevens.] If you're new to programming I'd strongly recommend first learning
^ Defects related to signal usage in Ruby 1.9 implementation
281318 [chirag80bece] We have study the code of yarv (Ruby 1.9 implementation) and as per our
^ Memory&Time overload in sending smtp gmail with big attach
281328 [rollingwoods] Recently, I block a gmail sending program(named 'testsmtp.rb'), with
^ Hash Sorting
281331 [nathanv roge] Can not understand how the block after sort works! Need help. thanks.
+ 281333 [stefano.croc] 0]]
+ 281341 [jgabrielygal] Converts hsh to a nested array of [ key, value ] arrays and sorts it,
281350 [nathanv roge] Thanks Stefano, Jesus for your time and explanation. Makes sense now.
288921 [nico.ritsche] I'm also trying to sort a hash, but don't succeed for some reason.
288927 [jftucker gma] hash.to_a.sort
288932 [nico.ritsche] Tried that, the result is the same, no sorting is happening at all.
288960 [coder68 yaho] James is correct, the array will be sorted but the hash will remain
288961 [coder68 yaho] errrr.. I mean move the elements to an array.. sorry for the confusion
+ 288963 [nico.ritsche] Well, yea, but that is what I did, with no success. The hash.sort
+ 288966 [s.korteling ] irb(main):001:0> h = {1=>2,3=>4,5=>6}
288968 [nico.ritsche] array.sort sorts by key, I know that. That's what I'm trying to do, but
288970 [nico.ritsche] maybe this excerpt of my code helps to clarify what I'm trying to do
+ 288974 [s.korteling ] Well, they are, if the last 'general_event_types' is substituted with
| 289000 [nico.ritsche] 'teachers'.
+ 289010 [divoxx gmail] This code above doesn't create an array, it creates an Hash, and Hash
289029 [nico.ritsche] sorry, maybe the code was confusing, I just wanted to visualize the
289053 [coder68 yaho] Nico,
289120 [nico.ritsche] actually I supplied my exact code already.
+ 289121 [gwtmp01 mac.] Can you cut, paste, and post the snippit of code you are using to
| 289123 [nico.ritsche] I diplay the result like this (in a rails rhtml.file, so there are
+ 289148 [coder68 yaho] That is what I assumed, check out my earlier solution and that will work
289177 [nico.ritsche] You mean this one?
289207 [jes luretank] If you have a Hash like this
289329 [nico.ritsche] Yipee, this finally works! Thanks Jon!
^ railroad-database problem
281332 [srinivasan.a] charset="us-ascii"
+ 281369 [luislavena g] Can you first try your success accessing your classes from script/
+ 281378 [coder68 yaho] A database can only have one schema definition from a rails perspective.
281468 [srinivasan.a] Thanks for the valuble help. I have anyhow solved the problem.
^ Re: So, here's a challenge!
281335 [jari.william] This sound fantastic!
^ XMLRPC and Sockets
281345 [wagenaar.rob] I'm currently researching the capabilities of a SmartDust network, my
281450 [wagenaar.rob] ehh... nobody? Anyone?
^ Help with Iconv needed
281346 [marcus.strub] Can someone tell me what it is that I'm getting wrong here with "iconv"?
281406 [MonkeeSage g] when
^ program tracing in Test::Unit
281351 [aidy.lewis g] I am using Test::Unit and I seem to be in an infinite loop. My visual
281416 [rogerpack200] I'd run the tests one at a time, figure out which one is bugging.
^ [SUMMARY] Goedel (#147)
281356 [james graypr] This quiz is really just an optimization problem. It's pretty trivial to do a
281357 [james graypr] Oops, forgot to fill that in. I guess it's really a surprise this time=85=
^ how to know the platform ?
281358 [unbewusst.se] because i have some part of a script only running on MacOS X ony i'd
+ 281363 [kyleaschmitt] You can get the sysutils package (http://sysutils.rubyforge.org/) for
| 281387 [unbewusst.se] hum, I'll see what's inside sys-uname-0.8.2...
+ 281372 [phrogz mac.c] On Nov 29, 8:39 am, unbewusst.s...@weltanschauung.com.invalid (Une
281373 [richafoxx co] You can detect the user's platform by utilizing the RUBY_PLATFORM
281388 [unbewusst.se] def isOSX?
^ Webrick Query-String
281359 [christian.ke] Hey!
281361 [peter semant] It is my understanding that post requests do not have arguments in the
^ SIGTERM signal is ignored by a process run using Ruby
281360 [lillo.tocai ] I am using Ruby 1.8.5 in a Rails 1.2.5 environment.
+ 281367 [ara.t.howard] no offense - but this doesn't have anything to do with ruby does it?
+ 292125 [arnej pvv.or] here's a late confirmation: this is definitely a bug in ruby 1.8.5,
^ Ruby 2.0 & YARV
281362 [eckerman gma] Does anyone know the general status of Ruby 2.0? I take it's probably a
+ 281374 [trollenlord ] When it's ready, seen rumors of late this year. It's becoming awfully late
| 281375 [jameskilton ] Also, Ruby follows the normal release numbering scheme
| + 281377 [konrad tyler] charset="utf-8"
| + 281392 [rick.denatal] No, Matz announced on ruby-core some time ago that this has changed.
+ 281376 [rubyfan gmai] These sorts of things traditionally happen on Christmas day.
281384 [eckerman gma] Heh. I always wanted a big, red ruby in my stocking.
^ better idiom for title on an optional list?
281365 [farbot gmail] I'm still learning Ruby, and most of the time I can find a beautiful
+ 281366 [james graypr] puts "items",
+ 281368 [ara.t.howard] 1)
282086 [farbot gmail] Thanks for the ideas. I ended up creating a separate method that
^ Re: Metaprogramming for Tierra-like (artificial life) progra
281380 [coder68 yaho] Phil,
^ Problems using client certificates with net/https
281382 [diegoslice g] I have a very basic script to access a SSL encrypted site that uses
+ 281411 [yermej gmail] The SSL portion looks right. Are you certain the server is using basic
+ 281418 [daniels pron] Given the fact that you're username looks like a windows domain user
281452 [diegoslice g] As Homer would say, "D'oh!". I checked the web server and it is indeed
281791 [daniels pron] =20
^ Negate a character sequence in a regular expression?
281385 [crm_114 mac.] 'cat sheep horse cat tac dog'
+ 281395 [jamesthepipe] irb(main):045:0> 'cat sheep horse cat tac dog' =~ /cat(?!.*cat)(.*)dog/
| 281410 [yermej gmail] Nonmatching (or negative) lookahead is what you want, and with some
| 281567 [raulparolari] Negative lookaheads that contain '.*' are hard to comprehend (at least
| 281578 [yermej gmail] Thanks, Raul, for the clarification on that.
| + 281581 [MonkeeSage g] Not to blow my own horn, but I think the behavior requested by the OP
| + 281620 [raulparolari] yermej,
| 281655 [crm_114 mac.] yermej, Daniel, Raul and Tanaka. I really appreciate the help. I've
| 281685 [raulparolari] Great
+ 281407 [MonkeeSage g] If you just want the right-most match of the substring prefixed by
+ 281409 [daniels pron] Working out negative regular expressions is normally best avoided.
+ 281583 [akr fsij.org] % /usr/bin/ruby -e 'p /cat((?!cat).)*dog/.match("cat sheep horse cat tac dog").to_s'
^ Hpricot and XML
281386 [alex blackke] I've got a little XML parsing problem, and I'd like to use hpricot to
^ [ANN] CommandSet 0.8.0 (initial release)
281396 [nyarly gmail] I'm very glad to announce the initial release of CommandSet -
^ City, State Lookup from Postal Code
281400 [truegrundler] Does anyone know the easiest way to find a city and state based on a
281402 [tjackiw gmai] You could use Google's or Yahoo's geo-coding api for that.
281405 [cvonkleist g] I had to do that for a store website once, and I bought a giant text
281436 [truegrundler] Thanks guys. Very helpful
^ Scripting ruby-debug
281403 [fedzor gmail] Really simple question -
281590 [rocky.bernst] Really simple answer - probably not yet.
^ Ruby + GUI?
281425 [peterbattagl] What would you all say is the best option for creating GUIs with Ruby?
+ 281442 [piyush.pr gm] shoes
+ 281443 [jeremymcanal] I like Shoes a lot if you need something simple.
+ 281464 [phillipsds y] Big question is: Which OS, and do you want to run it on any other?
+ 281483 [peterbattagl] Great! Thanks everyone. All I really wanted was a good starting
| + 281485 [kyleaschmitt] PSst. this question is asked probably once a week :) a quick search of
| + 281498 [huw darkneon] If you are using Visual Studio, you could use our free .NET /Ruby
+ 281499 [charles.nutt] Looks slick.
+ 281501 [charles.nutt] to install JRuby on the host machines. Just ship your app plus JRuby in
+ 281508 [shevegen lin] I would recommend ruby-gnome/gtk for one sole reason - it has a wiki.
^ #p is to #inspect as #pp is to ?
281426 [transfire gm] I have this as a lone method, but it seems to me there should already
281439 [daniels pron] =20
+ 281444 [m.fellinger ] At least since 1.8.6 that method exists.
+ 281445 [transfire gm] I looked at that and didn't see how that would help. As it says...
281448 [m.fellinger ] Sorry, i had the wrong method in mind, what you want is most likely
281469 [transfire gm] w00t! w00t!
threads.html
top