411176-411884

410985-411430 subjects 411396-412170

A Student in need of Guidance
411176 [lists@ru y- ] I am currently in my Junior year college and will be looking for some
+ 411185 [chuongv@gm i] Time to pack your bags and move west buddy!
+ 411186 [rubytalk2dav] Much more the latter.  If you look at the help-wanted ads from today
+ 411187 [atma@co va e] charset=utf-8
+ 411195 [lists@ru y- ] Thank you Dave and Panagiotis for your well informed responses. I am
| + 411196 [amichai@te m] ...
| | 411197 [cjsiam@ms .c] ...
| + 411216 [rubytalk2dav] OH!  That does make quite a difference, re mobility.  But still, if
+ 411278 [tamouse.list] Java


411183 [chechu.linux] hey guys,

Creating a Desktop application with Ruby, datagrid needed
411190 [chechu.linux] hey guys,
+ 411202 [lists@ru y- ] Are you using persistent data from a database, or just in volatile
| 411224 [chechu.linux] Thanks Joel,
+ 411225 [garthy_lmklt] wxWidgets may be of interest- it's a mature cross-platform GUI toolkit.
| 411226 [uwe@ku os h.] JRuby + Eclipse SWT/JFace/RCP has worked well for us.
+ 411234 [lists@ru y- ] for GUI you might want to check Shoes: http://shoesrb.com/.

[PATCH 0/2] Fix strptime '%s'
411192 [felipe.contr] There's multiple issues with the way '%s' is handled, starting with the less

[PATCH 1/2] time: fix strptime '%s'
411193 [felipe.contr] Time.strptime('0', '%s')

[PATCH 2/2] datetime: fix strptime '%s %z'
411194 [felipe.contr] DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')

Is there any reference (for Perl) concept in Ruby?
411198 [lists@ru y- ] store a data's reference like Perl, or something like the pointer in
411199 [fxn@ha hr f.] The basic idea is that Ruby *only* has the equivalent of references. Also,

Home project ideas on Ruby
411214 [lists@ru y- ] I want to some home projects using Ruby. I was looking for some books or
411277 [tamouse.list] or
411384 [rubyhacker@g] What Tamara says is exactly correct.
411388 [chuongv@gm i] ...

Beta testing Ruby PaaS
411218 [lists@ru y- ] As I'm french please excuse my english, it could be a bit rough :]

Nested Classes
411219 [root@ch rk s] Is it good idea to use nested classes if they are small and will be used
+ 411227 [atma@co va e] charset=utf-8
| 411238 [root@ch rk s] Thanks a lot Panagioti
+ 411228 [jmck@ia ri a] How do I get removed from this list, please?
| + 411230 [atma@co va e] charset=iso-8859-7
| + 411235 [xeno.campano] ...
|   411242 [tamouse.list] On Oct 8, 2013, at 9:40 AM, Xeno Campanoli <xeno.campanoli@gmail.com> =
+ 411239 [ryand-ruby@z] Do not thread hijack. Start a new one.

Can't install any of the three WMQ gems
411220 [ruby.student] I tried this on *JRUBY *forum first. But I want to expand my chances that
+ 411222 [rob.biedenha] ...
| 411236 [ruby.student] Yes, I do have the source for the installed QM, which is very heavily used.
+ 411742 [lists@ru y- ] Upon closer look at your setup I can see that your environment is
  411754 [ruby.student] It does, and I thank you for taking the time to reply.

List/forum gateway not working? (was Re: What private Really Means)
411221 [echristopher] I never got Paolo's reply in my email. Is the list<->forum gateway

Re: [jruby-user] [ANN] JRuby 1.7.5 released
411223 [uwe@ku os h.] Congratulations!  Well done!

Compiling Ruby for iOS: Undefined Symbol _RUBY_DTRACE_*
411231 [lukas@st be ] charset=us-ascii

Ruby 2.0.1 preview install problem
411232 [gvimrc@gm il] How to fix?
411237 [ryand-ruby@z] That's a bug. You're prolly trying to bootstrap off of 1.8 and it doesn't su=
+ 411240 [gvimrc@gm il] It's not quite so straightforward as I installed successfully on a - to
+ 411241 [gvimrc@gm il] Fixed. Thanks. Digging deeper, the PATH setup was slightly different on

Ruby 2.1.0 preview 1 install problem
411233 [gvimrc@gm il] Sorry, the original post had a typo in the subject line. Additional

Accessing Class Methods
411243 [lists@ru y- ] class Parent
411245 [lists@ru y- ] Module or Class methods are simply methods which don't need or belong to

Class in array
411246 [lists@ru y- ] First of all. I'm new to Ruby. I am working on a program in school -
+ 411247 [mailme@hs s.] Yes you can do that using sorry function of the array.
| 411248 [lists@ru y- ] Thank you so much, Harisankar!
| 411249 [mailme@hs s.] <=> : this is called a combined comparison operator.
+ 411250 [lists@ru y- ] That makes kinda sense :)
| 411251 [mailme@hs s.] Well if you want to sort and also get the highest scorer then i would say
+ 411253 [lists@ru y- ] Sorry, Harisankar. I editted my last reply, because I figured it out my
| 411254 [mailme@hs s.] You are almost correct.
+ 411255 [lists@ru y- ] Isn't there a smart way, to update just the grades and still have the
| 411256 [mailme@hs s.] try this
+ 411257 [lists@ru y- ] class Person
+ 411258 [lists@ru y- ] Thank you guys!
| + 411259 [mailme@hs s.] Variables a, b, are not chosen based any rule. Its just a random variable
| + 411266 [lists@ru y- ] Usually a single-letter variable is just a temporary one. The general
+ 411260 [lists@ru y- ] I've read in the Ruby Doc. But i'm not good enough to understand it :)
| 411262 [mailme@hs s.] The way your visualizing is wrong. students is an array, an array of object
+ 411283 [lists@ru y- ] Thank you very much to both of you! :)
  411284 [iftikhar.bar] Where Can I find a good download site for Ruby for Microsoft Windows? Any
  411285 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
  411286 [iftikhar.bar] ...

Zlib bug or intended behaviour?
411252 [lists@ru y- ] I recently had to inflate a malformed compressed (RFC1950) string. The

smtp and Threads
411261 [lists@ru y- ] I have a method sendEmail that is sending emails correctly and i decided
+ 411263 [mailme@hs s.] Your application (process) ends before the threads completes. I tried your
+ 411265 [Reid.Thompso] look at thread join
+ 411267 [lists@ru y- ] Thread.join is what you're missing, although since you're only spawning
+ 411269 [lists@ru y- ] Thanks

look ahead condition
411264 [lists@ru y- ] may be the heading of the post is not right but i dont know how to
+ 411268 [shortcutter@] It sounds as if you only want to delete empty lines.  That's fairly
+ 411270 [list.push@gm] If I understand what you want (I'm not sure I do), try something like this.
| 411280 [shortcutter@] $ ./x.rb
+ 411271 [tp@ti ed ix ] Dear Fosiul,
  411273 [tp@ti ed ix ] p.s. A slightly shorter way of writing

threads or processes
411272 [pangj@la os ] for a common parallel task (not web service), should I use threads or
411274 [tony.arcieri] Yes, Ruby's threads are stable. If you use a fancy implementation like
411275 [pangj@la os ] Thanks. how about ruby's multi-processes?
411276 [normalperson] That works great, too.  You'll have higher memory usage; but MRI 2.0+

2014 Fukuoka Ruby Award Competition -Entries to be judged by Matz
411279 [kido-r0699@p] Dear Ruby Enthusiasts,

Cannot access HTTPS
411282 [zhiqiang.lei] ...
411294 [tamouse.list] On Oct 10, 2013, at 6:14 AM, Zhi-Qiang Lei <zhiqiang.lei@gmail.com> =
411847 [space.ship.t] I had the same problem, and I found just adding `require 'openssl'` at the
411848 [space.ship.t] http =3D Net::HTTP.start('github.com', 443, :use_ssl =3D> true)
411849 [zhiqiang.lei] ...

Abstract/hide username/password in ruby script
411287 [lists@ru y- ] I have a script that will be talking to Windows.  Based on what we are
+ 411288 [lists@ru y- ] My personal approach to user password management in Windows scripts is
+ 411289 [jstewart@fu ] Would environment variables work?
+ 411290 [jeremy@bo p.] This really isn't a problem unique to Ruby or anything.  The solutions
+ 411293 [lists@ru y- ] I should have been more specific.  The call will be coming from a Linux
  411295 [jeremy@bo p.] Using Kerberos would still require proof of identity initially.  Unless

Installing libxml on windows
411296 [jasonveldico] I am trying to install libxml on windows ruby from gem file [1], and though

methods in ruby code
411297 [lists@ru y- ] I want to use the shuffle method for array, but I want to modify it a
+ 411298 [shortcutter@] I would not change the library method but rather implement another shuffle.
+ 411299 [lists@ru y- ] thanks for your quick answer.
| 411300 [shortcutter@] But then it's not shuffle any more, is it?  You basically associate a
| 411307 [sto.mar@we .] Looking at the source code, I just noticed you can pass a random
| 411316 [shortcutter@] irb(main):001:0> (1..10).to_a.shuffle nil
| 411318 [stefano.croc] The random number generator must be passed as a (pseudo) keyword
| 411319 [shortcutter@] Ah! Thanks for the education!  I had myself mislead by the
+ 411302 [lists@ru y- ] Yes you are right it would not be shuffle anymore.
+ 411305 [sto.mar@we .] Array#shuffle is not implemented in Ruby but in C,
+ 411323 [lists@ru y- ] thank you for your big help, you really helped me out. :-)

How to hiding the scripting?
411301 [lists@ru y- ] After we did the automation using Ruby coding,when we import our code in
411306 [jeremy@bo p.] Good luck.

How to create a debuggable Ruby interpreter
411303 [lists@ru y- ] I am trying to build a debuggable version of the Ruby interpreter on

Vinayak Mithbaokar is on a vacation.
411304 [vinayak.mith] I will be out of the office starting  October 11, 2013 and return on

Singleton classes
411308 [mailme@hs s.] What is the simplest explanation, for the use and purpose of the singleton

Deep Hash creation one liner
411309 [lists@ru y- ] I was trying to create a hash `{ mountain: { river: { tree: 23 } }
+ 411310 [lists@ru y- ] You're trying to use a Symbol argument which is a shorthand way to
| 411314 [lists@ru y- ] Yes something like that I also tried,But I also tried..but didn't work.
+ 411311 [m.fellinger@] [16] pry(main)> path.reverse.reduce({}){|s,v| v == path.last ? v : {v => s}
| 411312 [tp@ti ed ix ] => [:mountain, :river, :tree, 23]
+ 411315 [lists@ru y- ] You're missing the point.

Problem reading /dev/input in Linux
411317 [felipe.contr] File.open('/dev/input/event4', 'r') do |f|
+ 411322 [lists@ru y- ] Just a wild guess. Is /dev/input/event4 a File ? Did you try IO.open ?
| 411332 [felipe.contr] I don't know what you mean, '/dev/input/event4' is a string, IO.open
+ 411334 [normalperson] strace both versions and compare the differences between the relevant
| 411340 [felipe.contr] open("/dev/input/event4", O_RDONLY|O_CLOEXEC) = 7
| + 411345 [lists@ru y- ] SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS all have
| + 411356 [normalperson] My equivalent C version failed, too (event3 is my mouse, I don't
|   411358 [felipe.contr] FILE *f;
|   411361 [normalperson] I bet fread() issues a bigger read() syscall behind-the-scenes
|   411364 [felipe.contr] read(3, "\345sZR\0\0\0\0\333\371\10\0\0\0\0\0\4\0\4\0\34\0\0\0\345sZR\0\0\0\0"...,
+ 411336 [lists@ru y- ] I'm assuming the f.read is line 4;  which version of ruby are you using?
| 411341 [felipe.contr] I tried both 2.0.0p247 and 1.9.3. I suppose -EINVAL comes from the kernel.
| 411344 [jh_ruby-lang] You might try replacing read with sysread.
| 411350 [felipe.contr] I did. Doesn't make a difference.
+ 411355 [tamouse.list] On Oct 11, 2013, at 6:25 AM, Felipe Contreras =
  411359 [felipe.contr] It's probably related to the version of the Linux kernel: 3.11.4+.
  411365 [felipe.contr] Or maybe it's because your system is 32 bits, so you can read 16, but

WIN32OLE inputbox with carriage-returns in the message
411320 [lists@ru y- ] I have a problem using the Windows "Inputbox" function.
411321 [lists@ru y- ] D'oh, just after asking this I realised something. VBScript is

Re: How to hide the scripting?
411324 [lists@ru y- ] Thank you I will refer the topic which you've given.

Read and write to files
411325 [lists@ru y- ] I want to open a file and then I want to read the first the line, play a
+ 411327 [lists@ru y- ] Perhaps you should break this down into 3 tasks to make it simpler for
| 411342 [sto.mar@we .] or
+ 411328 [lists@ru y- ] Thank you for your quickanswer, I have broken down my code in this three
| 411343 [shortcutter@] A general solution for in place line exchange is tricky to do
+ 411351 [lists@ru y- ] Ok, thanks for your helpful answers, I will then change my code.

Ruby and the logging layer
411326 [tim.pease@gm] I've started a new project related to Ruby and the logging layer. I =

httpclient and Microsoft root CA
411329 [lists@ru y- ] Really need some direction in getting a solution working.  I am using
411333 [tp@ti ed ix ] Dear Charlie,

scite to save .rb files
411330 [lists@ru y- ] editor. I've searched online and can't find how to get the programs I
411335 [cjsiam@ms .c] ...

[ANN] Rails 3.2.15.rc3 has been released!
411331 [tenderlove@r] Let's hope this is the last RC! Yay!
411416 [tenderlove@r] Just an update, this rc seems fine, but I don't have my ducks in a row

Undefined local variable | Ruby Beginner
411346 [lists@ru y- ] I just started learning Ruby a few weeks ago and tried to make a credit
+ 411347 [peterhickman] You will need to pass those in as parameters
| 411348 [peterhickman] Oops mistyped there. You should have something like this
+ 411349 [lists@ru y- ] Thank you for your help!
  411363 [sto.mar@we .] Differences might be caused by integer division (just a guess without

Undo shuffle
411352 [lists@ru y- ] with this code I always get the same result
+ 411353 [lists@ru y- ] Store the array before you shuffle it.
+ 411357 [sto.mar@we .] array = [1,2,3,4,5,6,7,8,9,0]

Watir - Chrome - How to retrieve all ˇČliˇÉ entries that are not all visible?
411360 [lists@ru y- ] I'm using Watir on test automation of a Chrome based chatting/IM
+ 411362 [lists@ru y- ] Once you're on the page, you could just read all the HTML into a parser
+ 411433 [lists@ru y- ] Thanks for the advice.
+ 411435 [lists@ru y- ] I was thinking of dropping all the HTML of the page into Nokogiri and

Justify | ljust
411368 [lists@ru y- ] I'm trying to format my output but however I try it just doesn't wanna
+ 411369 [apantsiop@gm] puts "#{m_counter.to_s.ljust(10)}#{payment.to_s.ljust(20)}#{interest.to_s.
+ 411370 [lists@ru y- ] Wow, thank you for the quick answer. First one works like a charm! :)
+ 411371 [tp@ti ed ix ] Dear Greg,
+ 411372 [lists@ru y- ] Thank you, I'm going to check the link out.
| 411373 [shortcutter@] printf "%-10d%-10d%-10d%-10d%-10d\n", m_counter, payment, interest,
| 411374 [lists@ru y- ] printf ("%-10d" * 5 + "\n"), *(1..5)
| 411375 [shortcutter@] You could generalize that approach
+ 411376 [lists@ru y- ] A Hash sounds like a good way of improving the performance of a regular
| 411377 [shortcutter@] I think so.  Just watch out for multiple threads. :-)
| 411392 [tamouse.list] On Oct 14, 2013, at 10:11 AM, Robert Klemme <shortcutter@googlemail.com> =
+ 411383 [lists@ru y- ] Oh, now we're getting into singleton classes. I applaud your skills,

8 bit binary conversion
411378 [ruby.dhanaba] Can anyone help me to convert an integer to 8-bit binary from ruby.
+ 411379 [shortcutter@] irb(main):001:0> 4.to_s(2)
| + 411380 [wbrisett@at ] even better than my routine! Again I bow down to Robert! :)
| | 411382 [ruby.dhanaba] Thank u all, i got one more
| | 411391 [tamouse.list] Have not seen that one before!
| + 411390 [tamouse.list] On Oct 14, 2013, at 10:54 AM, Robert Klemme <shortcutter@googlemail.com> =
|   + 411425 [list.push@gm] I didn't notice it before because I didn't know what I was looking at. :)
|   + 411426 [shortcutter@] Sorry for the late reply, somehow GMail's logic of marking things as
+ 411381 [wbrisett@at ] ng=0A=A0=A0=A0 def convert_base(from, to)=0A=A0=A0=A0=A0=A0=A0 self.to_i(fr=
+ 411393 [list.push@gm] What? Nobody did it this way?
  411395 [shortcutter@] How about
  + 411404 [list.push@gm] That's cool.
  + 411406 [list.push@gm] Seriously, I did like this idea when I saw it, but the result is not a
    411409 [shortcutter@] Ugh, sorry for that. Yes, this is quite embarrassingly not a binary number.

Ruby 2.0.0: Keyword Arguments with Hash as first argument
411385 [lists@ru y- ] I'm not saying this is a bug, but I can't explain this behavior. I'm
+ 411386 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
+ 411884 [lists@ru y- ] def parameters(

Having some confusions with the accesses to the methods in Module from the instances of Class
411387 [lists@ru y- ] I am having some confusions with the accesses to the methods in Module
411389 [lists@ru y- ] Possibly from this?
411394 [lists@ru y- ] module M
411403 [shortcutter@] No.  By extending _any_ object with a module instance methods defined
411407 [infomatic@co] Robert,
411408 [shortcutter@] You're welcome.
threads.html
top