384999-385647

384767-385360 subjects 385214-385773

[ANN] Inochi 6.1.0
384999 [sunaku@gm il] [Sending without PGP signature this time...  Sorry for the noise!]

Initial RVM Ruby when starting a shell; using system Ruby with RVM
385000 [echristopher] [I posted this to the RVM group a few days ago, but haven't heard back.]
385001 [serialhex@gm] Eric,

Specifying non-standard include/lib directories on gem install...
385002 [mcpierce@gm ] Is it possible to specific non-standard directories when installing a
385003 [ryand-ruby@z] directory
385004 [mcpierce@gm ] ons]

[ANN] unicorn 4.0.1 - regression bugfixes
385005 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

A File Renamer
385019 [mayank.kohal] I guess this thread has spawned another issue. Let me close this and say I
+ 385020 [spoon@ki le ] NOOOOO.  Make it work.
+ 385021 [jeremyheiler] Is there a pattern to the file names you are working with? The key is
  + 385022 [coolesting@g] And read the API documentation that is the key how to deal with a new
  | 385023 [jeremyheiler] Agreed.
  | 385024 [coolesting@g] Yes, the ruby team make this IRB that is very convenience.  I never have
  + 385027 [spoon@ki le ] You know the video file itself probably has meta data.
    + 385029 [code@ap th o] Do you have suggestions for Ruby libraries suitable to the task of
    + 385031 [josh.cheek@g] But requires a different set of assumptions: the files are videos (it is
      385032 [mikbe.tk@gm ] You should be aware that meta data can't be trusted. Not only do people not
      + 385033 [josh.cheek@g] They teach OOP in SICP?
      | 385035 [mikbe.tk@gm ] No SICP would be "the concepts behind [Object Oriented programming]" part of
      | 385037 [josh.cheek@g] Yeah, but isn't it kind of like learning them in Klingon?
      | 385038 [mikbe.tk@gm ] LOL, no, no, no... it's more like Esperanto with an Irish brogue.
      + 385034 [spoon@ki le ] The file name cannot be trusted any more than the meta data.
        385036 [mikbe.tk@gm ] I totally agree. Not only can people incorrectly name files but they can use
        385040 [code@ap th o] How sure are we that filenames provided by *others*, scraped from the
        385042 [mikbe.tk@gm ] Good point. OP would have to answer that question. The scope changes the

[ANN] Cascadia Ruby Conf schedule; sponsorships; registration
385028 [ben@bl yt in] I'm very pleased to announce that we've posted our speakers for

[ANN] ANSI v1.3.0 released
385039 [transfire@gm] ANSI 1.3.0 has been released.

[ANN] hoe 2.10.0 Released
385041 [ryand-ruby@z] hoe version 2.10.0 has been released!

HELP!!Encoding Problem when Embedding Ruby
385043 [ladacez@gm i] When I Embedding ruby, the encoding list only have 3 items:US-ASCII

[ANN] nokogiri 1.4.7 Released
385044 [mike.dalessi] Nokogiri 1.4.7 ("Double Rainbow Tag" Edition) has been released!

[ANN] nokogiri 1.5.0 Released
385048 [mike.dalessi] Nokogiri 1.5.0 ("Y U NO RELEASE?" Edition) has been released!

How to order Structs based on two fields
385051 [ibc@al ax ne] KK = Struct.new(:a,:b)
+ 385052 [ibc@al ax ne] Maybe it would be better to use "class KK" rather than an struct, and
| + 385053 [g.diemant@gm] Try this: array.sort { |x,y| x.a =3D=3D y.a ? x.b <=3D> y.b : x.a <=3D> y.a=
| | 385056 [g.diemant@gm] Sorry code must be array.sort { |x,y| x.a =3D=3D y.a ? -(x.b <=3D> y.b) : x=
| + 385054 [josh.cheek@g] Structs return classes already (this is why you can inherit from them in th=
| | 385058 [ibc@al ax ne] Really thanks to all for your responses, I will try them :)
| + 385057 [shortcutter@] You can do
| | + 385059 [ibc@al ax ne] Note that entries must be ordered by smaller :a and, in case of same
| | | 385064 [shortcutter@] array.sort_by {|e| [e.a, -e.b]}
| | + 385061 [g.diemant@gm] Nice. Little mistake (same as mine). Code should be array.sort_by { |e|
| | | 385062 [ibc@al ax ne] Yeah :)
| | | + 385063 [josh.cheek@g] I recommend selecting the most straightforward one. Are there any solutions
| | | | 385065 [ibc@al ax ne] Sure, I'll also consider it ;)
| | | + 385070 [su.comp.lang] The efficiency depends on how expensive it is to compute the key of the
| | |   385071 [ibc@al ax ne] Thanks. However in my case the class is a Struct and I add no
| | + 385066 [Rob@Ag le on] module)?
| |   385067 [ibc@al ax ne] Very cool :)
| |   385068 [ibc@al ax ne] def <=>(o)
| + 385060 [flo@an er gr] Enumerable.sort_by
+ 385055 [anurag08priy] array.sort do |i, j|

Offering Help
385069 [peric.joe@gm] I'm new to Ruby and I am willing to learn. Anyone need help on a
385072 [jeremyheiler] Have you done the Ruby Koans?
385073 [peric.joe@gm] Never heard of it, but I'll get right on it. Thanks.
385082 [peric.joe@gm] Just finished this. I had to find some more info on exceptions to get
385083 [jeremyheiler] No problem!
+ 385094 [coolesting@g] A  tutorial site here.
+ 385121 [markus@fi ch] Jeremy, thanks for that hint, I instantly fell in love with this site.

[ANN] Ruby Kickstart - free course with videos, quizzes, & challenges
385074 [josh.cheek@g] Happy to finally officially announce Ruby Kickstart, a curriculum with
+ 385115 [spiralofhope] Very interesting Josh, I'll have to take a look.
| 385119 [josh.cheek@g] Fantastic ^_^ If you guys have any feedback, let me know so I can improve it
+ 385243 [josh.cheek@g] I've now removed logging in altogether. Anyone can take the quizzes (go see

[ANN] ruby 1.8.7 patchlevel 352 released
385075 [shyouhei@ru ] Ruby 1.8.7 was released on June 1st, 2008.  In commemoration
385077 [markus@fi ch] Is it possible to have the ChangeLog somewhere online, without having to
385078 [sakuro@22 8c] OZAWA Sakuro
385079 [markus@fi ch] Very useful, thanks; I wasn't aware that ruby/ruby on github is always

Ruby C API:How to prevent a VALUE being collected by the garbage collecter?
385076 [ladacez@gm i] Ruby C API:How to prevent a VALUE being collected by the garbage collecter?
385080 [sutniuq@gm .] rb_gc_mark() if I remember correctly.
385084 [kim@bu ge tr] If you want it to never be collected, make it a global variable. rb_gc_mark will
385085 [joelvanderwe] VALUE my_global;
385091 [ladacez@gm i] Thanks.
+ 385092 [ladacez@gm i] Thanks.
+ 385093 [adgar@ca bo ] ...

HackMBA ---- Open Hack :::: Open MBA
385081 [information.] I used to be an ardent lugger.

Renages
385086 [peter.hicks@] All,
+ 385089 [ryand-ruby@z] It is very much a simple mapping, it just isn't a 1:1 mapping anymore. =
| 385095 [peter.hicks@] John, Ryan, thank you so much - a brilliantly simple and minimal idea
| 385125 [shortcutter@] You just need to be aware that the approach works only as long as the
+ 385090 [wishdev@gm i] Afternoon,
+ 385134 [Rob@Ag le on] You just need to check from the "end" on back and pick the first one
  385136 [ryand-ruby@z] that matches.

Return X if something is between Y and Z
385087 [peter.hicks@] ...and I have no idea how 'Renages' ended up in the subject!
385088 [code@ap th o] I figured it was a weird typo for "ranges".

downloading all of gem to my hd?
385096 [snert@ho ma ] ...
+ 385098 [jeremyheiler] There's no free WiFi anywhere near you so you can get a few gems now and th=
+ 385099 [nobuoka@r- e] I found "gem mirror" command in a old version of gem, but
  + 385111 [jan@ag tt .d] =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=
  | + 385113 [snert@ho ma ] ...
  | + 385116 [code@ap th o] =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=
  |   385117 [cmdjackryan@] T24gTW9uLCBKdWwgNCwgMjAxMSBhdCAxMjozNyBBTSwgQ2hhZCBQZXJyaW4gPGNvZGVAYXBvdGhl
  + 385114 [josh.cheek@g] $ cd some/dir/to/store/gems/in
    385128 [shortcutter@] What about
    385129 [josh.cheek@g] $ gem -v
    385137 [ryand-ruby@z] looks like it hasn't been released as a gem yet... I haven't seen much =

Are blocks objects?  What messages can they handle?
385097 [code@ap th o] Blocks are basically just a special kind of object passed to a method in
385100 [johnf@bi sb ] A block is a syntactical construct, not an object. A Proc is the
385101 [javadba@gm i] John,
+ 385104 [code@ap th o] I was the author of the original question, and I agree.  Thanks.
| 385118 [jeremyheiler] for
| 385126 [peric.joe@gm] Jeremy, that was an excellent synopsis of the functionality of blocks,
| 385141 [stu@ru yp og] You can almost feel the authors pain in documenting all that.
+ 385122 [shortcutter@] or
  385124 [johnf@bi sb ] That is a fair point, Robert. I didn't use block_given? because I

symbol vs string for hash keys
385102 [transfire@gm] What are the important factors to consider when deciding whether to
+ 385103 [johnf@bi sb ] Conceptually, I like to use these rules of thumb (I think Jim Weirich
| 385123 [shortcutter@] I use a different rule of thumb which has been circulated before as
| 385131 [transfire@gm] Thanks robert (et al.). Makes perfect sense. If my current patch is
+ 385105 [code@ap th o] Strings are mutable; symbols are not.
  + 385106 [cmdjackryan@] And, of course, you can convert to and from symbols/strings. Beware
  + 385110 [robert.dober] And, IIRC, strings are GCed, while syms are not. I still use symbols
    385112 [transfire@gm] Yea, that's what I was wondering about. In the case of fileutils, I

Ruby Koan Exception Testing Question
385107 ["Leigh Danie] =46irst, thanks to Jeremy for the Ruby Koans link.
385108 [wruyahoo05@c] Are these really triangles? Try to draw them.
385109 ["Leigh Danie] I love the pencil!
385135 [eric@le ur e] The pencil test is great, and now you understand the reasoning to learn the

[ANN] Lone Star Ruby Conference V - Early Bird Pricing Ends Today!
385120 [jimfreeze@gm] Pardon our interruption for this quick update.

When can Input/output error - <STDERR> (Errno::EIO) occur?
385127 [ibc@al ax ne] by doing the doble fork and so on (it works ok). But for debugging

Define a constant in dynamically defined class
385130 [transfire@gm] Have me a conundrum.
+ 385132 [mikbe.tk@gm ] k = Class.new do
| 385133 [transfire@gm] Thanks, but unfortunately that only works b/c it's evaluating a string
+ 385138 [su.comp.lang] You can use Module#const_set.
  385146 [transfire@gm] I've been reading up on this[1]. Looks like the was a period (1.9.1)

Having trouble installing the Mongrel gem!
385139 [jen.bottom@g] I'm using the latest version of RVM with ruby 1.9.2
+ 385140 [has.sox@gm i] I wouldn't be using the mongrel gem. It's a very old gem and I don't think
+ 385142 [normalperson] Unless Apache mod_proxy added full request/response buffering, unicorn
+ 385143 [normalperson] Try "gem install mongrel --pre", too.  That should get you the

[ANN] NoBacksies v0.3.0 released
385144 [transfire@gm] NoBacksies 0.3.0 has been released.

Re: NoBacksies v0.3.0 released
385145 [transfire@gm] Note I just release 0.3.1. Found some typos in the code. While I was
385147 [transfire@gm] For the record: Bernard Lambeau found the typos ;-)  Thanks dude!!!
385150 [shortcutter@] I also found a superfluous "self." in the docs.... ;-)
385174 [transfire@gm] Where's the <a href=3D"http://github.com/rubyworks/no_backsies/

[ANN] SecurityBlanket 1.2.0 gem released!
385148 [me@km hi e. ] ...

[ANN] SecurityBlanket 1.2.0 gem released!
385149 [me@km hi e. ] ...

[ANN] JRuby 1.6.3 released
385151 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby 1.6.3.
385152 [wayneeseguin] w00t!

Dir.glob and File.fnmatch don't seeing eye to eye
385153 [transfire@gm] What does File.fnmatch? not support {p,q} style selectors?
+ 385154 [coolesting@g] or use the same glob against an Array of file paths , for example ?
| 385155 [transfire@gm] Sure,  I have configurable selection using a glob. On one hand I use
+ 385156 [shortcutter@] I'd say: open a feature request in redmine.

[ANN] LOCat v0.1.0 released
385157 [transfire@gm] LOCat 0.1.0 has been released.
385159 [anurag08priy] The site is definitely fun :). I was baffled at first; took me a while
385172 [mikbe.tk@gm ] You should never use an abbreviation/acronym in a product name without at

[ANN] EM-Udns 0.2.3 - async DNS resolver for EventMachine based on udns C library
385158 [ibc@al ax ne] EM-Udns is an async DNS resolver for EventMachine based on udns C

Fatal Error with Ruby/GTK2, Homebrew, Green Shoes, and OSX Snow Leopard
385160 [barnes7td@gm] I posted the below question to the Shoes mailing list and got back the
385161 [kou@co mi ng] It means rcairo can't find cairo.h. Could you check
385162 [barnes7td@gm] I can't find that directory at all. is it ~/opt/local/......? much less the
385163 [kou@co mi ng] How did you install cairo 1.10.0?
385164 [barnes7td@gm] Via Homebrew
+ 385165 [barnes7td@gm] kou,
| 385169 [josh.cheek@g] If you installed Ruby with rvm, then everything is done locally, so you
| 385171 [steve@st ve ] should not need "sudo" for installing the gems. I am pretty sure that using
| 385647 [barnes7td@gm] Issue Resolved.
+ 385167 [kou@co mi ng] Coud you try this instructions?

FFI with a C++ Library
385166 [mikbe.tk@gm ] I'm trying to use Ruby FFI with a CPP library but when I compile my CPP
385168 [adgar@ca bo ] CPP
385181 [jameskilton@] ...

[ANN] ActiveLdap 3.1.0
385170 [kou@co mi ng] ActiveLdap 3.1.0 has been released!

Re: LOCat v0.1.0 released
385173 [transfire@gm] ll

[ANN] LOCat v0.1.1 released
385175 [transfire@gm] Just released LOCat v0.1.1 which fixes a few reported bugs.

RubyMine themes
385176 [rubyinfo@ap ] I put together a RubyMine themes site. It generates themes for RubyMine,
385177 [yaserbuntu@g] Er.. link?

[ANN] summaryse 1.0.0 Released
385178 [blambeau@gm ] summaryse version 1.0.0 has been released!
385179 [josh.cheek@g] Happy birthday.
385180 [blambeau@gm ] Mmmm, yep, will consider.

problem compiling thread.so for ruby 1.9.2-p180
385182 [cremes.devli] I am trying to build MRI 1.9.2-p180. As far as I can tell, everything succeeds without error. However, when I try to load rubygems I get a LoadError for thread.so (which is required in the thread.rb file). See the gist below for all details. I can confirm that the thread.so library is not being built but I don't know why.

Re: LOCat v0.1.1 released
385183 [transfire@gm] Yea, well let's try that again. v0.1.2 is out.

[ANN] Lemon v0.8.4 released
385184 [transfire@gm] Lemon 0.8.4 has been released.

Re: Lemon v0.8.4 released
385185 [transfire@gm] Home page should be http://rubyworks.github.com/lemon
385186 [ywzhaifei@gm] great

Fwd: [ANN] o v2.0.0 release. next generation configuration library for Ruby.
385187 [ywzhaifei@gm] Ruby.

[ANN] o v2.0.0 release. next generation configuration library for Ruby.
385188 [ywzhaifei@gm] o, is a configuration library for Ruby. It has many features.  you can do

jruby and jgem problem
385189 [jarodzz@gm i] I'm using Jruby for the first time. and met the gem problem.
385302 [headius@he d] I cannot reproduce this. This is JRuby master, but should not be

[ANN] celluloid 0.2.0: a concurrent object framework for Ruby
385190 [tony.arcieri] Celluloid is a concurrent object framework for Ruby inspired by Erlang

[ANN] LSRC V: Did You Know?
385191 [jimfreeze@gm] Lone Star Ruby Conference V; August 11-13 in Austin, TX.

[ANN] summaryse 1.1.0 Released
385192 [blambeau@gm ] summaryse version 1.1.0 has been released!
385242 [shortcutter@] ng
385246 [blambeau@gm ] I understand your objections and must add that summaryse is somewhat

[ANN] RubyInstaller 1.8.7-p352 released
385193 [luislavena@g] As you all know, over the years RubyInstaller has replaced the once

[ANN] RubyInstaller Extras
385194 [jon.forums@g] Since 2009, we've been pleased to include Huw Collingbourne's The Book of Ruby with RubyInstaller. Well now, Huw has a newly updated version, and he's published it with No Starch Press.
385196 [kmandpjlynch] ...looks interesting...i'm just finishing up on a long Haskell journey...so,
+ 385198 [steve@st ve ] I've actually read the book (admittedly skimmed in parts), and it's a
+ 385200 [code@ap th o] =20
  + 385201 [josh.cheek@g] Enjoyed the review. Your summary of Eloquent Ruby reflected my experience
  + 385202 [cmdjackryan@] I'd like to add to your review that Eloquent Ruby actually explains

[ANN] quickl 0.2.2 Released
385195 [blambeau@gm ] quickl version 0.2.2 has been released!

[ANN] alf 0.9.1 Released
385197 [blambeau@gm ] I'm pleased to announce that alf 0.9.1 has been released and pushed

[ANN] Ruby-GNOME2 1.0.0
385199 [kou@co mi ng] The Ruby-GNOME2 project released Ruby-GNOME2 1.0.0.

Re: alf 0.9.1 Released
385203 [sunaku@gm il] According to the RubyGems Rational Versioning Policy[1], when a
385205 [transfire@gm] It's not true for 0.x releases --in which case the second number
385206 [cmdjackryan@] You are confusing RRV and SemVer. :)
+ 385208 [blambeau@gm ] I was not aware of this difference between RRV and SemVer before;
| 385212 [cmdjackryan@] I'd make it clear in your announcements that you follow SemVer. Makes
| 385217 [blambeau@gm ] Thanks for the tip.
+ 385288 [transfire@gm] On Jul 13, 4:52=A0pm, Phillip Gawlowski <cmdjackr...@googlemail.com>
  385293 [cmdjackryan@] "Though, RRV works best for *existing* libraries adopting it, and

Passing a ruby arrays to JS func
385204 [rubyonrails4] How do I pass the ruby arrays to Js func and access it(from JS func)from
+ 385211 [b.candler@po] It sounds to me like you're asking a question about writing applications
+ 385215 [ninja@sl ph ] I'll try to answer anyway, but you haven't given a lot of information here.

Creating a range of directories
385207 [simon@si on ] I'm wanting to create a range of directories with a prefix, like the
+ 385209 [cmdjackryan@] require 'fileutils'
+ 385210 [josh.cheek@g] That's basically what I'd do, but the steps in the middle are executed
+ 385213 [josh.cheek@g] Also in this case, where you use a FileUtils method only once, including it
+ 385219 [simon@si on ] Thanks a lot. I didn't realise that FileUtils.mkdir accepted a format
| + 385220 [cmdjackryan@] A String is a String is a String. ;)
| + 385224 [ryand-ruby@z] It doesn't. Philip's code is wrong.
|   + 385227 [cmdjackryan@] *facepalm* That's what I wanted to type. So used to format strings
|   + 385266 [simon@si on ] Thanks for clearing that up, Ryan. Out of curiosity what was the end of
|     385325 [shortcutter@] It's called "colon": http://en.wikipedia.org/wiki/Colon_%28punctuation%29
|     385327 [josh.cheek@g] I think Ryan was saying that `receiver % arg` was syntactic sugar for
+ 385339 [simon@si on ] Ah right, cheers Josh. I wasn't sure if he meant syntactic sugar for
  385357 [shortcutter@] I didn't assume you did. :-)
threads.html
top