412684-414325 subjects 413113-413713

Analyse SMTP Response
412880 [lists@ru y- ] I have an SMTP emailer in Ruby that I need to use to send emails using
412899 [bradleydsmit] Graeme,

iterating a complex data structure
412896 [lists@ru y- ] stuff = [  { name: foo, tags: { one: blah, two: blah } }, etc ]
+ 412897 [stefano.croc] I'm not sure what exactly you need. The following gives you a nested
| 412898 [lists@ru y- ] I was hoping to be handed the value of :name and :tags right out of an
+ 412900 [fluido@fl id] If, instead of an array of hashes, you go for a hash of hashes, where
  412910 [lists@ru y- ] Ah, that's a better idea.  Thanks.
  412938 [abinoam@gm i] stuff.each do |h|

Trying to make make an array of all different combinations of a string and running into fibonacci.
412901 [lists@ru y- ] I am trying to make an array of all different combinations of a string.
412903 [hassan.schro] I would strongly suggest that this is an excellent opportunity to get

Re: Trying to make make an array of all different combinations of a string and running into fibonacc
412909 [lists@ru y- ] #=> ["st", "ri", "ng", "str", "ing", "stri", "strin"]
412912 [hassan.schro] see "Test Driven Development" (TDD) for a lot more info :-)
412922 [abinoam@gm i] Dear Jim Whittaker,
412943 [lists@ru y- ] cool solution, Jr. !

Remove and merge duplicates in a CSV file
412915 [lists@ru y- ] The data set has duplicates records. There can be more than one
412916 [lists@ru y- ] Since you can't only match on first name, you'll actually end up with 3

[ANN] irust 1.0.0: a REPL for the Rust programming language (powered by Ruby)
412918 [bascule@gm i] iRust is an interactive Rust REPL, i.e. a Read Eval Print loop which lets

Update all gems after upgrading Ruby 2.0.0 version?
412920 [gvimrc@gm il] I just upgraded Ruby 2.0.0-p247 to Ruby 2.0.0-p353 using `rbenv install
412940 [echristopher] I use RVM, not rbenv, but I've discovered the communal plugin, which seems
412947 [hmaddocks@me] How do you know that your old gems are compatible with the new Ruby version?
412954 [gvimrc@gm il] Well, coming from Perl, I'm assuming this isn't an issue with

Ruby Interpreter Usage
412926 [martin.ennem] ...
412927 [lists@ru y- ] I've just noticed that my question looks very odd here. I think my
412932 [ryand-ruby@z] Yarv and MRI are the same as of 1.9+. Not dead in the slightest.
+ 412936 [lists@ru y- ] Thanks for the answer.
| 412998 [ryand-ruby@z] I've got commit bit on MRI/yarv and I used to work professionally on =
| 413011 [lists@ru y- ] I trust you.
+ 412939 [matthew@ke w] JRuby is actually very strong, with a very active development community,
  412942 [stu@ru yp og] Actually cruby: MRI/Yarv benches faster
  412944 [lists@ru y- ] Of course it does.  In some cases.  On short-lived, artificial

how can i use 'default_proc' in this code to get same output?
412928 [lists@ru y- ] #!/usr/bin/ruby

regular expression
412930 [lists@ru y- ] puts 'raja(dklfjdfldjkfd)gopalan(fdf)'.gsub(/(\(.*\))/, 'raja')
+ 412931 [ryand-ruby@z] Google ruby greedy regexp
+ 412933 [lists@ru y- ] puts 'raja(dklfjdfldjkfd)gopalan(fdf)'.sub(/(\(\w*?\))/, ' raja ')
+ 412934 [lists@ru y- ] Thank you . It works. I designed like
+ 412935 [lists@ru y- ] This is a great time to practice your String comparison skills. Your
+ 412937 [lists@ru y- ] Ok thank you.
+ 412959 [lists@ru y- ] puts "line1 (SS13864619). line1 (SS13864619), line3
+ 412962 [lists@ru y- ] When you're using Regexp to solve a problem, there's usually more than
+ 412963 [lists@ru y- ] Yes you are right, but my problem is, each and every time the numbers
+ 412965 [lists@ru y- ] irb(main):009:0> s.sub(/(\Aline1 \(SS\d+\)\. line1 )(\(SS\d+\))/, '\1')
+ 412966 [lists@ru y- ] line1 (SS13864619) must have been removed. Output would be,

Fixnum #hash all odd or all even
412946 [lists@ru y- ] (0..1000000).map { |i| i.hash % 2 }.uniq

Move from point x to point y alghoritm
412949 [lists@ru y- ] I want to make you a question. Need your advice, just a clue about how
+ 412951 [lists@ru y- ] Very well, thank you :)
+ 412953 [lists@ru y- ] Understood, thank you very much, I can see the light of this. :)
| 412958 [abinoam@gm i] You can search for Pathfinding algorithms.
| 412964 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 412982 [lists@ru y- ] I've made the Lee alghoritm, work great. However I'm researching the

composite pattern and DSL design
412950 [lists@ru y- ] I am currently writing a little DSL for gui framework (Ruiby, for gtk).
+ 412952 [andrew@av t.] The same way you yield events to your callbacks, you should yield some
| 412955 [lists@ru y- ] Thank you, that work.
+ 412971 [shortcutter@] You can easily avoid that by providing a proxy instance to the block
  412973 [tamouse.list] Nice to hear from you, Robert. :)
  412978 [shortcutter@] the widget class could store an internal state indicating that it is
  413010 [lists@ru y- ] yes,this  is my solution : this avoid the instance_val on an objectwhich is unknown by the user.

regular expressions
412960 [lists@ru y- ] I have string as "12345678", Anybody assist me to convert this string
+ 412961 [ammarabuali@] text =3D =9312345678=94
| 412974 [tamouse.list] text="12345678"
+ 412970 [shortcutter@] What do you want to do with it subsequently?  If it is a date it
+ 412975 [lists@ru y- ] to date format to store in DB.
  + 412977 [digital.ipse] text.match(/\A(\d{4})(\d{2})(\d{2})\z/) { puts "#{$1}-#{$2}-#{$3}" }
  + 412979 [shortcutter@] Then it seems even more appropriate to use class Date instead of a

rdoc & hanna: readme.md not included in doc?
412967 [lists@ru y- ] When having a readme file named "readme.md" and running

[ANN] football.db - World Cup Brazil 2014 Plain Text Fixtures 'n' HTTP JSON API w/ sportdb Ruby gem
412968 [gerald.bauer] The sportdb Ruby gem [1] that lets you read plain text football

regular expression
412969 [lists@ru y- ] a="Subsequent deposit instructions not found or incomplete.Initial

regular expression,
412976 [lists@ru y- ] errorMsg="Subsequent deposit instructions not found or
+ 412980 [shortcutter@] Because that is the shortest sequence that will match. Note that
+ 412981 [lists@ru y- ] That's an excellent way, thank you so much.
+ 413134 [lists@ru y- ] Please consider another condition here,
| 413135 [HANSEM1@na i] (x86)\Lotus\Notes\notes.ini"From:       Raja gopalan
+ 413136 [lists@ru y- ] It works.I was not aware of this conversion. Thank you so much.
| 413142 [shortcutter@] $ ruby x.rb
+ 413145 [lists@ru y- ] Thank you for other alternative ways.

print natively on Windows
412983 [varro@no om ] I would like to be able to print a simple report (text, some lines and
+ 412985 [michel.reves] To do that I used to output html pages and launch the default internet
+ 412986 [lists@ru y- ] I used to write my 'report' in a HTML file, with an onload handler wich
+ 412987 [lists@ru y- ] One option is to use a gem to write a PDF file, then use acrobat
| 412988 [varro@no om ] That's what I'm doing now, but it means that when I request a print
+ 412989 [lists@ru y- ] That's more of a flaw of Adobe in lacking an "invisible" option. Any
| 412990 [varro@no om ] I wouldn't know how to write one myself, and I don't want my users to
+ 412991 [lists@ru y- ] I was thinking small, portable, command-line only or a gem. Still, I
  412992 [tamouse.list] Oh, my I just saw one yesterday, let me see if I can find it again. It
  412993 [tamouse.list] Okay, my apologies, what I saw was this

Ruby and Excel,
412984 [lists@ru y- ] I am using Adodb connector which is made of Ruby code to update and

[ANN] Ruby-GNOME2 2.1.0
412994 [kou@co mi ng] The Ruby-GNOME2 project released Ruby-GNOME2 2.1.0.

inspect, eval & security
412995 [lists@ru y- ] Just a quick question... Is this code safe to execute ?
+ 412997 [stu@ru yp og] Depends on what string represents.
+ 412999 [lists@ru y- ] "string" represents a user input.
| 413000 [rubytalk2dav] Long story short, it mainly gives you the details of a complex object.
+ 413018 [lists@ru y- ] Thanks so much, Dave !

[ANN] ruby-oci8 2.1.6
412996 [kubo@ji ba .] Ruby-oci8 2.1.6 is released. This is the Oracle module using OCI8 API.

chmod: operation not permitted
413001 [lists@ru y- ] I am a sophomore at UWGS.  I tried installing gnu radio software
+ 413002 [ryand-ruby@z] [36545/36545]
| + 413003 [lists@pa el ] I guess that there is a difference in the name only because he executed that
| + 413008 [lists@ru y- ] sorry about that
+ 413014 [lists@ru y- ] The installation ended as below

AviGlitch help
413004 [lists@ru y- ] I am quite confused about how this works. I used the simpler code which
+ 413006 [echristopher] Although AviGlitch is written in Ruby, this doesn't look like a question
+ 413007 [lists@ru y- ] No I have not but I will try to do that.

[ANN] sleepy_penguin 3.3.0 - Linux I/O events (and kqueue) for Ruby
413005 [normalperson] sleepy_penguin provides access to newer, Linux-only system calls to wait

[ANN] dtas 0.7.0 - duct tape audio suite for *nix
413009 [normalperson] Free Software command-line tools for audio playback, mastering, and

ssh: connect to host onehost port 22: No route to host
413012 [lists@ru y- ] Could anyone help to rectify this error which occurred when i tried to
413013 [atma@co va e] Well, that's a good place to start: http://support.suso.com/supki/SSH_Tutorial_for_Linux
413073 [lists@ru y- ] Thank you so much, but i get explanation like this destination
413116 [atma@co va e] mind you, that's not a ruby related problem at all.

[ANN] timers 2.0.0: pure Ruby timer collections (now powered by hitimes)
413015 [bascule@gm i] The 'timers' gem provides easy-to-use timer collections that can be

[ANN] Easy Ruby encryption with RandomNonceBox
413016 [bascule@gm i] Some of you my have tried using RbNaCl and found it confusing. I've just

Solutions to programming problems at http://www.puzzlenode.com
413017 [lists@ru y- ] Maybe we can create our own solutions in ruby? Where could we post these

installing jekyll-rst - don't understand instructions
413019 [tomcloydmsma] ...
413020 [tamouse.list] It means the directory where you created your jekyll site with `jekyll new`

nested repeat operator & instance_eval
413022 [lists@ru y- ] I get a strange behavior from instance_eval when reporting warnings on
413028 [HANSEM1@na i] I don't believe it's a bug in instance_eval, I get similar output just
413029 [abinoam@gm i] I think Hansem is finding strange not the warning per si but the file
413033 [lists@ru y- ] It's Thierry Lambert ^_^
413034 [abinoam@gm i] Heheh Sorry Thierry LAMBERT!!!

Byte Arrays in Ruby
413023 [lists@ru y- ] I have an algorithm which uses an array of boolean (True/False) data.
+ 413024 [fluido@fl id] Maybe there is something that helps in that direction, but from what I
| 413026 [fluido@fl id] Oops. I had not noticed that you'd like to use those data as
| 413042 [shortcutter@] Actually no.  If you need, say, 120 boolean flags you can store them
+ 413025 [rubytalk2dav] If you search "boolean" on Ruby-Toolbox.com, it shows several hits
| 413027 [abinoam@gm i] Is it something like this https://github.com/ingramj/bitarray ?
+ 413031 [ryand-ruby@z] Why? Do you have a measurable problem?
  413041 [lists@ru y- ] Yes.
  413043 [shortcutter@] What algorithm is that?
  413070 [lists@ru y- ] Thanks for the info on strings holding flags.
  413074 [shortcutter@] You're welcome.
  413076 [shortcutter@] I noticed a potential bottleneck when expanding individual segments. I
  413127 [lists@ru y- ] Here is the article on Strings length performance I alluded to.
  413128 [shortcutter@] Btw, did you do some testing with the changed implementation from above?

Renaming in dynamic languages
413030 [lists@ru y- ] I recently worked on a Java project, and the ease of renaming classes

ANN: TKXXS, a very simple "GUI"
413032 [lists@ru y- ] Happy new year!
+ 413035 [mailme@hs s.] I was trying out the library in ruby. It had an issue of missing 'tk'
| 413036 [lists@ru y- ] * Which OS (Windows xxx, Linux, ...) are you using?
| 413037 [mailme@hs s.] Oh sorry for not including much information in my previous mail.
| 413038 [lists@ru y- ] I tested it only on Windows, but I'm _not_ aware of things which are
| 413039 [mailme@hs s.] Yes, it seems the tk library is missing. But i tried gem install tk, but it
+ 413040 [lists@ru y- ] gem q -r -n tk
  413057 [lists@ru y- ] I found it here: https://www.ruby-forum.com/topic/441820

[ANN] yahns 1.0.0 -_- sleepy application server for Ruby
413044 [normalperson] A Free Software, multi-threaded, non-blocking network application server

Best approach to convert string to unique value
413045 [lists@ru y- ] I am trying to generate a unique number for a string and would like some
+ 413046 [joelvanderwe] Maybe because of key ordering differences? String#hash will not detect
| 413047 [flo@an er gr] On 02 Jan 2014, at 06:12, Joel VanderWerf <joelvanderwerf@gmail.com> =
+ 413049 [shortcutter@] You could use MD5 or another cryptographic robust hash code.
| 413056 [lists@ru y- ] Thanks for the comments. Just answering Robert's post.
| 413058 [shortcutter@] Can you please stick with the usual quoting style? That will make it
| 413061 [lists@ru y- ] exactly the same files, the same quantities, the same price for the
| 413062 [shortcutter@] That was just an option depending on what you want to achieve.
| 413063 [lists@ru y- ] thanks Robert,
+ 413059 [mike@ca ga .] The difficulty that you=92ll run into is in your need for the new, =

How to use ruby read/write Berkeley DB file?
413048 [jfhgmv@gm il] I create a Berkeley DB file for Vsftpd, I want user Ruby add new Vsftpd
413143 [justincollin] DBM.open("test") do |db|

call a function outside the test doesn't work
413050 [lists@ru y- ] I am using Ruby 2.0 and Rspec as test framework.
+ 413051 [jgabrielygal] You are calling get_locales before defining the method. Try moving the
+ 413052 [lists@ru y- ] Thanks for your reply, I tried to place the method in the top. But still
+ 413053 [lists@ru y- ] properties is probably defined within your RSpec environment as well.
+ 413054 [lists@ru y- ] Sorry did see first now it was another error message. But are still
+ 413055 [lists@ru y- ] yes, correct. I will have it in my helper module and have tried that as
+ 413060 [lists@ru y- ] Can I only get access to the methods inside "it do end"? Because it
| 413068 [tamouse.list] I don't think anyone can help if the only thing stated is "DO NOT WORK"
+ 413072 [lists@ru y- ] Thanks for you answer, maybe have been unclear in my descriptions above.
+ 413075 [lists@ru y- ] Problem solved.

[ANN] nba gem 0.0.2
413064 [lists@ru y- ] nba gem 0.0.2 has been released!

ANN: Sequel 4.6.0 Released
413065 [lists@ru y- ] Sequel is a lightweight database access toolkit for Ruby.

download files speed
413066 [lists@ru y- ] I offer you today a wonderful Web site

[ANN] Tork 19.6.0 - test with fork
413067 [sunaku@gm il] 1. Absorbs test execution overhead into a master process.

WHILE loops are so much faster. Why?
413071 [lists@ru y- ] Testing old code in MRI 2.1.0 I noticed that using WHILE loops in place
+ 413077 [shortcutter@] Please post your test code (as Gist or whatever).
+ 413078 [stu@ru yp og] You have to back it up with proper benchmarks. A screenshot would even be
| 413153 [lists@ru y- ] Here is sample code that illustrates different loop performance.
| 413155 [wbrisett@at ] ...
| + 413156 [wyhaines@gm ] What Tony said.  The other looping structures are not equivalent because a
| + 413157 [lists@ru y- ] On my system, with rvm installed Rubies, MRI ruby-2.1.0p0 is by far the
|   413158 [tony.arcieri] That's because it's a microoptimization that is typically cancelled out by
|   413161 [abinoam@gm i] I completly agree with Tony Arcieri.
|   + 413164 [lists@ru y- ] Well, my point is I think it should be documented, for the benefits of
|   | 413166 [saji@u- iz .] Thanks for the benchmarks and demonstration. Numerical codes are compute
|   + 413165 [lists@ru y- ] Well, my point is I think it should be documented, for the benefits of
+ 413154 [tony.arcieri] The other looping structures all utilize blocks, which make a new scope

Re: dtas 0.7.0 - duct tape audio suite for *nix
413082 [lists@ru y- ] Posted via http://www.ruby-forum.com/.

respond_to do |format| confusion
413093 [lists@ru y- ] respond_to do |format|
+ 413095 [cookrn@gm il] The code inside the {}s from this line ("format.xml  { render :xml =>
+ 413097 [lists@ru y- ] Thank you very much for your quick reply. I still have problem to
| + 413098 [andrew@av t.] The format (Responder object) has methods that correspond to registered
| + 413108 [abinoam@gm i] Dear Warren,
+ 413099 [lists@ru y- ] Andrew,
| + 413101 [sirbunicolae] Why is it that important for you to understand how that code works, instead
| | + 413106 [ryand-ruby@z] On Jan 3, 2014, at 16:26, S=EErbu Nicolae-Cezar =
| | + 413107 [lists@ru y- ] Thank you for your suggestion. :) But for me, I don't want to be a novice but an expert. So I guess it will take efforts to understand things inside out. I learn hard lesson on "just taking it as it is".
| + 413102 [cookrn@gm il] Both statements are interpreted sequentially as you would expect. But,
| + 413104 [andrew@av t.] Both of those methods "format.html" and "format.xml" *are* called
+ 413103 [lists@ru y- ] It definitely gets clearer. Thank you very much for your time to answer
+ 413105 [lists@ru y- ] Hey Andrew,
+ 413114 [lists@ru y- ] Your example serves me very well. I now have profound understanding on

Confusion with #class_eval with block form and with no block form.
413096 [lists@ru y- ] class Foo
413100 [cookrn@gm il] => 10
413112 [abinoam@gm i] The Ruby documentation gives a clue ...

in-line if statement with parentheses vs without parentheses
413109 [lists@ru y- ] I'm relatively new to Ruby, and when I was reading this post
+ 413110 [rubytalk2dav] -   @owner ||= User.find_by_login(params[:user_id]) if
+ 413111 [wishdev@gm i] Order of operations - in the first example the if statement is fired first
  413129 [lists@ru y- ] Ah, okay! Thanks, John and Dave!