<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general">
    <title>gmane.comp.lang.ruby.general</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365407"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365406"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365405"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365404"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365403"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365402"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365401"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365400"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365399"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365398"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365397"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365396"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365395"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365394"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365393"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365392"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365391"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365390"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365389"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365388"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365407">
    <title>Re: Strange require behaviour</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365407</link>
    <description>&lt;pre&gt;I found this about the "gem" command within IRB:

Kernel#gem
gem(gem_name, *version_requirements)
------------------------------------------------------------------------
     Adds a Ruby Gem to the $LOAD_PATH. Before a Gem is loaded, its
     required Gems are loaded. If the version information is omitted,
     the highest version Gem of the supplied name is loaded. If a Gem
     is not found that meets the version requirement and/or a required
     Gem is not found, a Gem::LoadError is raised. More information on
     version requirements can be found in the Gem::Version
     documentation.

     The gem directive should be executed before any require statements
     (otherwise rubygems might select a conflicting library version).

     You can define the environment variable GEM_SKIP as a way to not
     load specified gems. you might do this to test out changes that
     haven't been intsalled yet. Example:

       GEM_SKIP=libA:libB ruby-I../libA -I../libB ./mycode.rb

     gem:                 [String &lt;/pre&gt;</description>
    <dc:creator>Joel Pearson</dc:creator>
    <dc:date>2013-06-19T07:57:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365406">
    <title>Strange require behaviour</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365406</link>
    <description>&lt;pre&gt;Why does gem 'bson_ext' work, but require 'bson_ext' does not. Ruby
1.9.3. Same on Windows or Linux.

C:\irb
irb(main):001:0&amp;gt; require 'bson_ext'
LoadError: cannot load such file -- bson_ext
        from
c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
        from
c:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
        from (irb):1
        from c:/Ruby193/bin/irb:12:in `&amp;lt;main&amp;gt;'
irb(main):002:0&amp;gt; gem 'bson_ext'
=&amp;gt; true
irb(main):003:0&amp;gt;


by
TheR

&lt;/pre&gt;</description>
    <dc:creator>Damjan Rems</dc:creator>
    <dc:date>2013-06-19T07:30:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365405">
    <title>Re: trying to load a .rb file in irb</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365405</link>
    <description>&lt;pre&gt;I'd use
File.foreach( 'text.txt' ) {|line| puts line }

&lt;/pre&gt;</description>
    <dc:creator>Joel Pearson</dc:creator>
    <dc:date>2013-06-19T06:40:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365404">
    <title>[ANN] Slide Show (S9) 2.0.0 Update - Command Suite Added - build,install,ls,new,etc.</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365404</link>
    <description>&lt;pre&gt;Hello,

  I've updated the slideshow gem, that is, version 2.0.0. What's new?

  I've added a git or gem like command suite. For example, to build
your slideshow use:

  $ slideshow build welcome.txt

  Fetching template packs has changed to slideshow install &amp;lt;MANIFEST&amp;gt;. Example:

  $ slideshow install impress.js

  or

  $ slideshow install
https://raw.github.com/slideshow-s9/slideshow-impress.js/master/impress.js.txt

  To list all install template packs and quick starter packs use:

  $ slideshow list  or slideshow ls

  And to create a quick starter sample use:

  $ slideshow new -t impress.js


  Note, all commands also let you use single-letter aliases e.g.

   build   -&amp;gt; b
   install -&amp;gt; i
   list    -&amp;gt; l or ls
   new     -&amp;gt; n
   about   -&amp;gt; a

  That's it. More info &amp;lt; at &amp;gt; http://slideshow-s9.github.io

 Questions? Comments? Cheers.


&lt;/pre&gt;</description>
    <dc:creator>Gerald Bauer</dc:creator>
    <dc:date>2013-06-19T06:06:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365403">
    <title>Re: trying to load a .rb file in irb</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365403</link>
    <description>&lt;pre&gt;Am 18.06.2013 23:27, schrieb Eric D.:


   File.open("text.txt").each {|line| puts line }

Never put a space between method name and '('.


BTW. When you figure it out by yourself, you should also include
      the solution in your "Never mind" post. In case other people
      have a similar problem.


&lt;/pre&gt;</description>
    <dc:creator>sto.mar&lt; at &gt;web.de</dc:creator>
    <dc:date>2013-06-19T05:37:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365402">
    <title>Multimode error in 4.6.3</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365402</link>
    <description>&lt;pre&gt;I was not sure where to post this I have worked on this several days.
I posted the entire log from gnu radio and ./multimode.py in attached
txt
I think that 4.6.3 is not compatible or library mismatch "its a clean
install gnuradio-companion is working but ./multimode gives me this and
other errors
Im sorry if I posted this in the wrong place very new to Linux and
gnuradio

self.gr_multiply_const_vxx_2 = gr.multiply_const_vff((1.0 if
mh.get_mode_type(mode) == "FM" else 0.0))
  File
"/usr/local/lib/python2.7/dist-packages/gnuradio/gr/gnuradio_core_gengen.py",
line 9713, in multiply_const_vff

Bryan

Attachments:
http://www.ruby-forum.com/attachment/8525/Untitled_Document_1
http://www.ruby-forum.com/attachment/8526/Untitled_Document_1


&lt;/pre&gt;</description>
    <dc:creator>Bryan G.</dc:creator>
    <dc:date>2013-06-19T02:17:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365401">
    <title>Multimode error in 4.6.3</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365401</link>
    <description>&lt;pre&gt;I was not sure where to post this I have worked on this several days.
I posted the entire log from gnu radio and ./multimode.py in attached 
txt
I think that 4.6.3 is not compatible or library mismatch "its a clean 
install gnuradio-companion is working but ./multimode gives me this and 
other errors
Im sorry if I posted this in the wrong place very new to Linux and 
gnuradio

self.gr_multiply_const_vxx_2 = gr.multiply_const_vff((1.0 if 
mh.get_mode_type(mode) == "FM" else 0.0))
  File 
"/usr/local/lib/python2.7/dist-packages/gnuradio/gr/gnuradio_core_gengen.py", 
line 9713, in multiply_const_vff

Bryan

Attachments:
http://www.ruby-forum.com/attachment/8524/Untitled_Document_1


&lt;/pre&gt;</description>
    <dc:creator>Bryan G.</dc:creator>
    <dc:date>2013-06-19T02:10:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365400">
    <title>Re: getting the most out of Ruby</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365400</link>
    <description>&lt;pre&gt;Brandon W. wrote in post #1112804:

Got any resources you used to help get your head around all these?

&lt;/pre&gt;</description>
    <dc:creator>robin wood</dc:creator>
    <dc:date>2013-06-18T23:09:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365399">
    <title>Re: getting the most out of Ruby</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365399</link>
    <description>&lt;pre&gt;Stu wrote in post #1112800:

I really like Ruby's OO model and it is something that frustrates me 
whenever I have to switch to Python as it doesn't feel quite as nice. I 
did some smalltalk at uni so I think that may be why I'm drawn to it.

I do a lot of shell work so the regex stuff comes naturally luckily but 
it did take a lot of effort to learn in the first place.

It is the functional style stuff that I'm still getting my head around, 
I never really got lisp when they tried to teach it at uni.


I'm looking at the refactoring work to try to learn the more "Ruby" ways 
to do things rather than initially trying to write faster or tighter 
code.


Thanks

&lt;/pre&gt;</description>
    <dc:creator>robin wood</dc:creator>
    <dc:date>2013-06-18T23:08:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365398">
    <title>Re: Creating ruby script exe</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365398</link>
    <description>&lt;pre&gt;Looks like there's an example in the docs:

You can detect whether OCRA is currently building your script by looking
for the ‘Ocra’ constant. If it is defined, OCRA is currenly building the
executable from your script. For example, you can use this to avoid opening
a GUI window when compiling executables:

   app = MyApp.new
   if not defined?(Ocra)
     app.main_loop
   end


On Tue, Jun 18, 2013 at 5:27 AM, Rochit Sen &amp;lt;lists&amp;lt; at &amp;gt;ruby-forum.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Devin Christensen</dc:creator>
    <dc:date>2013-06-18T22:55:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365397">
    <title>Re: trying to load a .rb file in irb</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365397</link>
    <description>&lt;pre&gt;Never mind i figured it out. Thank you guys! Great forum!

&lt;/pre&gt;</description>
    <dc:creator>Eric D.</dc:creator>
    <dc:date>2013-06-18T21:33:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365396">
    <title>Re: trying to load a .rb file in irb</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365396</link>
    <description>&lt;pre&gt;The directory change worked! Thank you both for your help. One question 
though, when I try to load a text file from a program in ruby it says

undefined method `each' for "text.txt":String (NoMethodError).


My code looks like this:

File.open ("text.txt").each {|line| puts line}


Both the text.txt and the program loading it are in the same directory.

Any suggestions?

&lt;/pre&gt;</description>
    <dc:creator>Eric D.</dc:creator>
    <dc:date>2013-06-18T21:27:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365395">
    <title>Re: getting the most out of Ruby</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365395</link>
    <description>&lt;pre&gt;The biggest jumping point for me is when I stopped trying to program Ruby
like C# and started programming Ruby like Ruby.

Coming from C land you have tendencies towards a lot of imperative
techniques, and Ruby is not solely imperative. Learning the functional side
of Ruby is essential to graduate into advanced topics.

Blocks, Lambdas, Closures, Metaprogramming, and Enumerables are the huge
topics. Master them and you'll see a huge difference.
On Jun 18, 2013 3:33 AM, "robin wood" &amp;lt;lists&amp;lt; at &amp;gt;ruby-forum.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Brandon Weaver</dc:creator>
    <dc:date>2013-06-18T19:59:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365394">
    <title>Re: getting the most out of Ruby</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365394</link>
    <description>&lt;pre&gt;Robin, If you look at ruby from a polyglot programmer view of the major
paradigms consider this. Ruby is essentially three major paradigms modeled
after three major programming languages, actually more but lets keep it
simple.

Ruby's object oriented is modeled after smalltalk; Though it's marketed as
python
Ruby's functional style is modeled after scheme lisp; Ruby programmers know
the value of everything, but the cost of nothing =)
Ruby's system programming is modeled after the procedural shell; Basically
the c programming language, awk, bourne shell, UNIX regular expressions Et
al. ; This is marketed as Perl( though the %{ literals } came from perl)

Though refactoring (i.e. less tokens == faster execution) is good to grok
and testing aids the practice and is definitely part of the software
development process it may be also useful to understand Ruby also from it's
ancestors which further reseach can be seen from languages and utilities
dating back to early days of computer science in the 1950's

Good luc&lt;/pre&gt;</description>
    <dc:creator>Stu</dc:creator>
    <dc:date>2013-06-18T19:40:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365393">
    <title>Re: Compare and sort one array according to another.</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365393</link>
    <description>&lt;pre&gt;Bartosz Dziewoński wrote in post #1112795:


&lt;/pre&gt;</description>
    <dc:creator>masta Blasta</dc:creator>
    <dc:date>2013-06-18T18:51:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365392">
    <title>Re: Compare and sort one array according to another.</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365392</link>
    <description>&lt;pre&gt;

I think that's for 100 000 repetitions of the test.

&lt;/pre&gt;</description>
    <dc:creator>Bartosz Dziewoński</dc:creator>
    <dc:date>2013-06-18T18:36:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365391">
    <title>Re: Compare and sort one array according to another.</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365391</link>
    <description>&lt;pre&gt;Robert Klemme wrote in post #1112735:

This has been a great little learning exercise for me. I had never quite 
gotten how the sort_by method worked, and now reading it over again with 
the example it's perfectly clear.

I'm surprised at how slow the method is. In the benchmark, 1.24s for 10 
records...?? That's huge! The SQL query to fetch the records already 
sorted, as big and messy as it is, still only takes 10ms. I might have 
to stick with SQL on this one since for a Rails app response time is 
critical.

I'm certainly glad I came and asked for help about this.

&lt;/pre&gt;</description>
    <dc:creator>masta Blasta</dc:creator>
    <dc:date>2013-06-18T17:46:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365390">
    <title>Re: Timsort in Ruby</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365390</link>
    <description>&lt;pre&gt;Matthew Kerwin wrote in post #1112422:

(as a note, it would be interesting to benchmark both running time, 
which you have, and "number of compares requires" also).

I wonder if the timsort project itself has some benchmark test cases you 
could use.  I know it's supposed to work better with semi-sorted data, 
maybe try that.  Of course, with surprising results like these, it would 
be interesting to port ruby's sort into the python trunk/core and see if 
it makes Python faster there (and if so, to ask the Python and timsort 
people ...):)
-roger-

&lt;/pre&gt;</description>
    <dc:creator>Roger Pack</dc:creator>
    <dc:date>2013-06-18T16:15:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365389">
    <title>Re: Persistent value assign</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365389</link>
    <description>&lt;pre&gt;I had seen yaml when i search with google. But just i didn't want to use 
yaml :) I decided to write variable in a file, thanks :)

&lt;/pre&gt;</description>
    <dc:creator>Ebru Akagunduz</dc:creator>
    <dc:date>2013-06-18T14:40:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365388">
    <title>Re: Persistent value assign</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365388</link>
    <description>&lt;pre&gt;If you want persistent storage you'll need to output the data into a 
file, and read the file at startup.
The usual method for this would be something like an internal database 
(SQlite?), or using YAML files. If it's something really simple you can 
just create a text file somewhere it won't be interfered with.

&lt;/pre&gt;</description>
    <dc:creator>Joel Pearson</dc:creator>
    <dc:date>2013-06-18T13:48:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/365387">
    <title>Re: Persistent value assign</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/365387</link>
    <description>&lt;pre&gt;Am 18.06.2013 15:07, schrieb Ebru Akagunduz:

There are many possibilities: e.g. write to a file (as string),
convert into YAML and write to a file, use some database, ...


Here a simple example using YAML::Store, where the data is stored
in the file 'values.yml':


require 'yaml/store'
store = YAML::Store.new('values.yml')

# create variables with default values in local scope
value = 1
name = 'Fred'

# read old values if stored
store.transaction do
   value = store['value'] || value
   name  = store['name']  || name
end

puts "old:"
p value
p name
puts

# change variables
value += 1
name  = name.reverse.capitalize

puts "new:"
p value
p name

# store values
store.transaction do
   store['value'] = value
   store['name']  = name
end



&lt;/pre&gt;</description>
    <dc:creator>sto.mar&lt; at &gt;web.de</dc:creator>
    <dc:date>2013-06-18T14:07:41</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.general</link>
  </textinput>
</rdf:RDF>
