394201-395227

394020-395206 subjects 394407-414389

Can't open url with a subdomain with an underscore
394201 [lists@ru y- ] I try to open the following URL: http://auto_diversen.marktplaza.nl/
+ 394203 [matma.rex@gm] Underscore is not a valid character in a hostname, thus Ruby rejects it.
| + 394230 [lists@ru y- ] Thanks for the reply, but I don't think it's a good idea to 'hack' the library. Like you said 'it could break other URI's'.
| | 394239 [matma.rex@gm] Well, you could also copy the patched URI::Parser#initialize_pattern
| | 394254 [josh.cheek@g] 2012/3/31 Bartosz Dziewoski <matma.rex@gmail.com>
| + 394771 [matma.rex@gm] W dniu 30 marca 2012 13:28 uytkownik Bartosz Dziewoski
|   394782 [lists@ru y- ] ret[:HOSTNAME] = hostname = "(?:[a-zA-Z0-9\\-._]|%\\h\\h)+"
+ 394760 [lists@ru y- ] if I have the following url: http://auto_diversen.marktplaza.nl
  394764 [matma.rex@gm] I have already explained. Change or monkey-patch the URI library.
  394765 [lists@ru y- ] I tried, but when I paste the source from: http://apidock.com/ruby/URI/Parser/initialize_pattern I couldn't get it to work for the URL: http://auto_diversen.marktplaza.nl

Apparent Math issues
394205 [lists@ru y- ] I'm just starting out with the Ruby language, and appear to either be
+ 394207 [gedece@gm il] I'm not saying you should read all this, but this issue is a well
| 394208 [lists@ru y- ] Thanks for the link. We are both new to the language and were unsure of
| 394211 [gregory_brow] If you need precision, you can look into Ruby's BigDecimal standard
+ 394214 [lists@ru y- ] Currency was my prime concerns with this.  Thanks guys.
  394216 [flo@an er gr] I would recommend to use one of the many money handling gems, for =

[ANN] Rails 3.2.3 was released!!!
394221 [santiago@wy ] Rails 3.2.3 has been released!!!.

Ruby openssl ECC help plz
394222 [lists@ru y- ] I am confused on how to properly export public ECC key. I can see it
+ 394224 [martin.bossl] It's a bit tricky in the sense that you need to create a second EC instance
+ 394226 [lists@ru y- ] Thanks I have it working now. I have one other question, why doesn't
| 394227 [martin.bossl] Ruby's Cipher class supports whatever OpenSSL's EVP_CIPHER interface
+ 394245 [lists@ru y- ] thanks for the help. I am having a hellish time getting ruby to
| 394246 [martin.bossl] Am 1. April 2012 02:57 schrieb randompasswords arenotgoodidea
+ 394247 [lists@ru y- ] Also from OpenSSL if I have it list the algorithms it supports it does
| 394248 [martin.bossl] Yes, I got it working here. I'm very confident you're having the problem I
+ 394249 [lists@ru y- ] yes I didn't read your post before I made my second post (which I tried
+ 394257 [lists@ru y- ] make clean is my friend
+ 394559 [lists@ru y- ] I have a question about ECDH and I will put it here since there is no
| 394591 [martin.bossl] Just to make sure - the computed secret is the x coordinate of some point,
+ 394593 [lists@ru y- ] Yes, what I am implementing requires me to treat the shared secret as an

Ruby regex match hex string
394228 [lists@ru y- ] Hey guys,
+ 394231 [lists@ru y- ] What makes you think that only the last two pairs are matched? This is
| 394236 [peter@va de ] The confusion is that only two capturing groups are returned
| 394252 [mike@st k. a] Note that hexadecimal digits can be matched by a POSIX character class, =
+ 394232 [lists@ru y- ] I hope this help
+ 394234 [ammarabuali@] You can use \h to match a hexadecimal digit as well, which match both
  394268 [lists@ru y- ] Just a tiny remark: this one should be more efficient

regexp replace every other one
394229 [lists@ru y- ] puts "Mike Lan move the string abc def".gsub(/(\A|\s)(.{3})($|\s)/,"
+ 394233 [ammarabuali@] The ending pattern ($|\s) is consuming what would be matched by the
+ 394235 [lists@ru y- ] thank you Ammar
| + 394237 [ammarabuali@] You're welcome!
| + 394269 [lists@ru y- ] irb(main):001:0> "gabriel y martha iba gtz ibanez nat".gsub /\b\w{3}\b/,
+ 394238 [lists@ru y- ] I understand what you explain but I don't think I am going to check a
| 394243 [ammarabuali@] I don't think so. I in no way meant for you to change the data. I
+ 394357 [lists@ru y- ] Thank you so much Robert Klemme I knew it was possible that works great.

[ANN] Updated pygments.appspot.com
394240 [zachary@za h] =3D=3D An update to pygments.appspot.com

Capturing return value from method invoked with 'send'
394241 [lists@ru y- ] Is there a way to capture the return value from a method that was
394242 [lists@ru y- ] What do you mean? The return value of send *is* the return value of the
394244 [lists@ru y- ] You answered my question.  That is exactly what I didn't know.  That is,

using sinatra as a web-service
394251 [jarodzz@gm i] I'm working on this project, need me to change some config file on a server.

gtk2 install error
394253 [lists@ru y- ] I installed gem gtk2 on linux, but it show a error.
+ 394256 [hawat.thufir] I'm not quite sure how useful this is for your scenario, but have you
+ 394262 [lists@ru y- ] wish i could help more, but try posting this problem on the 'Gnome 2'
  394264 [hawat.thufir] or the RVM mailing list...
  394270 [lists@ru y- ] How to use RVM on redhat3 ?
  394300 [hawat.thufir] Yes, exactly, if you're trying to use RVM on redhat the rvm list is
  394349 [lists@ru y- ] I try on redhat5/ruby1.9.2 also have some problem when I exce "gem
  394364 [hawat.thufir] Have you asked on the RVM mailing list?  That's my suggestion, the RVM

Code Zauker suggestions wanted
394255 [jj@gi or i. ] ...

[ANN] return_bang 1.1 Released
394259 [drbrain@se m] home :: https://github.com/drbrain/return_bang
394265 [emacsray@gm ] Your projects looks like an delimited continuation implementation of shift/reset operators
394266 [tony.arcieri] Was that also an April Fool's Day joke?
394289 [drbrain@se m] ...

array of hashes
394260 [lists@ru y- ] Newbie how to display  the following output?
394261 [ryand-ruby@z] We're here to help, but please do your own homework.
394263 [lists@ru y- ] Thank you Ryan.. I got the solution.

Visual Ruby GUI Development Environment Released
394267 [lists@ru y- ] I hoping to get some feedback on the latest release of visual ruby.
+ 394272 [richard.conr] will give it a whirl soon. I don't do much with visual environments
+ 394275 [lists@ru y- ] works on windows. only one issue : the run of glade-3.exe don't work

install unicode gem in ruby1.8.7
394271 [lists@ru y- ] I don't understand why the gem install of unicode goes wrong.
394274 [jens.wille@u] <http://www.gnu.org/software/make/manual/html_node/Error-Messages.html>
394277 [lists@ru y- ] Thanks for answer,

no such file to load tk
394276 [lists@ru y- ] require 'tk'
394278 [lists@ru y- ] Ruby 1.9.2
394283 [matma.rex@gm] Have you installed Ruby with RubyInstaller? You have to enable tk

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

Can someone throw me a bone
394281 [lists@ru y- ] Struggling to learn Ruby and can't even upgrade from 1.8 to 1.9.  I have
+ 394282 [richard.conr] I would keep looking through the RVM docs, it's a very well documented
| 394284 [steve@st ve ] You don't copy the $.
| 394286 [its.code.in.] How to Play Bones with Dom Flemons
+ 394291 [lists@ru y- ] Steve,
+ 394293 [lists@ru y- ] Steve,
| 394294 [hassan.schro] The entire command goes on one line, just like the RVM site shows
+ 394295 [lists@ru y- ] Hassan (et al),
| 394296 [mike@st k. a] It saved me a lot of grief!  If you are using homebrew =
+ 394333 [lists@ru y- ] MIke,
| + 394335 [saji@u- iz .] You could give the one-click installer for OSX a try..
| + 394336 [alanschwarz@] Xcode 4.3 is a 2+ GB download so that you can make Mac and iOS apps
+ 394376 [lists@ru y- ] MIke,
  394413 [groups.2009a] Ruby 1.8 is still very powerful and useful, as well as being very =

[ANN] celluloid/celluloid-io/celluloid-zmq 0.10.0: Actor-based concurrent objects (with evented I/O and 0MQ support) for Ruby
394285 [tony.arcieri] Now with a snazzy new web site!

TypeError Message. Help required
394287 [lists@ru y- ] I have created an extension and within the extension file I have
394297 [echristopher] I don't know precisely, but I can tell you that your call to

fastercsv filter question
394288 [Reid.Thompso] I have a csv file that is comma delimited, with quoted text and with 3

openSUSE fan?
394290 [jos@op ns se] Heya Ruby and Rails hackers!

Using Git / Pivotal Tracker? Want improved open source tooling around the two?
394298 [zach.dennis@] We're taking a survey for Git / Pivotal Tracker integration related to

Problem Installing Rails on Ruby 1.9.3
394299 [lists@ru y- ] I am trying to install rails on Ruby 1.9.3.
+ 394306 [lists@ru y- ] I too faced the same issue. I have installed the Ruby 1.9.3.
+ 394341 [lists@ru y- ] Sorry for the basic question, but I am just getting started with ruby.
  394345 [lists@ru y- ] You just give gen uninstall command as like below.

[ANN] Confection v0.3.0 released
394301 [transfire@gm] Confection 0.3.0 has been released.

extracting mp3 image and its data when upload is done
394302 [lists@ru y- ] When a user uploads a MP3,
394309 [lists@ru y- ] Of course it's possible. Even if there were no libraries, you could

Ruby tk - Tk::GetOpenFile - How to set the dialog view
394304 [lists@ru y- ] I am using Tk::GetOpenFile (on a WinXP machine) and I am trying to

fibonacci and defining variables
394310 [lists@ru y- ] I was doing an example on Fibonacci sequences and this confused me a
+ 394313 [matma.rex@gm] W dniu 3 kwietnia 2012 19:29 uytkownik Christopher D.
| 394317 [lists@ru y- ] Cool, that makes sense, is there any way to do it sequentially without
+ 394319 [matma.rex@gm] W dniu 3 kwietnia 2012 21:24 uytkownik Christopher D.
  + 394322 [lists@ru y- ] Matma Rex,
  + 394344 [lists@ru y- ] p = p + i
    394346 [andrea@an re] ...

using hash as database? Secure databases with ruby?
394311 [lists@ru y- ] I am new to programming and am learning ruby as my first language. I
+ 394314 [matma.rex@gm] *If* you only need something this simple, and *if* you somehow save
+ 394315 [hassan.schro] Sorry, that's wrong. Storing your data as plain text in a file is hardly
| 394318 [lists@ru y- ] Well, I do not plan to store it as plaintext but symmetrically encrypted
| + 394320 [flo@an er gr] Yep, you do overlook that widely used code is also less likely to have =
| | 394321 [lists@ru y- ] Good point, but would it be fair enough for me to say that since I
| | 394323 [hassan.schro] No. While arrays and hashes are native objects, you are proposing
| | 394325 [lists@ru y- ] Okay it seems MySQL is the way to go then, but just want to confirm one
| | + 394326 [jos@ca no k.] Or PostgreSQL ;-p
| | | 394328 [steve@st ve ] Or a database that understands hashes, like MongoDB or Redis...
| | + 394327 [matma.rex@gm] W dniu 3 kwietnia 2012 23:37 uytkownik ruby rocks
| | + 394329 [sduncan@we a] Then maybe you want to use SQLite?
| | | 394331 [code@ap th o] Yes.
| | + 394330 [hassan.schro] No, I never said "use MySQL"; I said use an existing datastore *like*
| + 394412 [groups.2009a] I think you have oversimplified the equation.=20
+ 394361 [lists@ru y- ] That is not using the Hash properly.  If you have a key value store

rspec-expectations-2.9.1 is released!
394316 [dchelimsky@g] ...

RegEx for a string between two symbols
394324 [lists@ru y- ] I'm looking to build a dictionary application. One part that I am having
+ 394332 [lists@ru y- ] I don't really get what you're trying to do. Do you want to store the
| 394340 [lists@ru y- ] Hey, thanks for the reply. I've been practising my ruby but if you have
| 394343 [lists@ru y- ] If it's only one word and one definition per line, then XML or JSON is
| 394347 [lists@ru y- ] That's unsafe because it will break if there is a '::' in the
| 394348 [lists@ru y- ] It's meant to break, because multiple double colons make the line
| 394359 [lists@ru y- ] Since we are talking about "words" I deem it reasonable to assume they
+ 394356 [lists@ru y- ] Jan, Robert,

Ruby on Windows...
394334 [rubyhacker@g] It's been a long time since I did anything on Windows... I'm now
394339 [steve@st ve ] Did you install with RubyInstaller? Do you have DevKit installed?

[ANN] hoe 3.0.2 Released
394337 [ryand-ruby@z] hoe version 3.0.2 has been released!

[ANN] minitest 2.12.0 Released
394338 [ryand-ruby@z] minitest version 2.12.0 has been released!

Fortran namelists with Ruby
394342 [saji@u- iz .] For those interested in manipulating fortran namelists with ruby,

Newbie loops question
394350 [lists@ru y- ] I am learning Ruby as my first programming language using the excellent
+ 394351 [ruby@sl gh l] You're not actually storing the result of subtracting 1 from int anywhere,
+ 394352 [lists@ru y- ] Instead of i = i - 1, you can also write i -= 1. This is the short form
+ 394353 [pironim@ra b] like for me int.to_i - 1 does operation but do not handle result
+ 394360 [lists@ru y- ] Bryan, and if you have your loop working you can do
+ 394363 [g.diemant@gm] you must assign the result of int.to_i - 1 to int. And you don't need the .to_i

Re: Ruby on Windows.
394354 [lists@ru y- ] The very first thing you should do is reinstall both Ruby and the DevKit
394367 [rubyhacker@g] Thanks. He got it working. I think it was the space in the dir name.
394406 [lists@ru y- ] Excellent. The MSYS/MinGW based DevKit doesn't like spacey dirs.

while loop
394355 [lists@ru y- ] while loop,but the linkis not working properly to while loop the
394411 [echristopher] You should use double equals in such a condition, e.g. `status ==

sqlite3 install error
394362 [lists@ru y- ] I try to install sqlite3 in Ruby1.9.2 and RedHat5
394366 [eolamey@gm i] The latest sqlite3 library version on RedHat (or CentOS) 5 is 3.3.6,

`rescue in rbuf_fill': Timeout::Error (Timeout::Error)
394365 [lists@ru y- ] I am using the StorageRoom App Ruby Gem with the StorageRoom App API.
394373 [sean.ohalpin] Looks like your HTTP request is timing out. Are you trying this from

Re: regularexpression for check specialchars
394368 [lists@ru y- ] What do you mean by "specialchars"? You have to be more specific.
394372 [lists@ru y- ] Try looking at character classes
394378 [lists@ru y- ] I have one variable for example
394379 [lists@ru y- ] If you only consider ASCII specialchars, you can simply enumerate them

Terminated Object Error. Help Needed
394369 [lists@ru y- ] Here is my sample code:-
+ 394370 [ryand-ruby@z] myA
+ 394371 [lists@ru y- ] How to use with self?
  + 394383 [neleai@se na] Guess that GC ate it. Do you rb_gc_mark and array?
  | 394403 [lists@ru y- ] I do have mark function. The array is a global declaration. When I try to run this code
  + 394388 [shortcutter@] associate state with self.  If you use Ruby's standard mechanisms

Call for comments - Structure
394375 [rubyhacker@g] Greetings, fellow Rubyists...
+ 394389 [lists@ru y- ] I'll see whether I can look into this over the weekend.
| 394397 [matma.rex@gm] W dniu 5 kwietnia 2012 14:21 uytkownik Robert Klemme
| 394398 [shortcutter@] es
| 394400 [rubyhacker@g] 2012/4/5 Robert Klemme <shortcutter@googlemail.com>
| 394417 [shortcutter@] That I don't understand, maybe that's the reason for the previous
| 394419 [rubyhacker@g] You are correct, of course. But it feels a little clumsy to me not to have
| + 394421 [code@ap th o] Actually . . . obj.foo.bar looks pretty nice.
| + 394439 [shortcutter@] nd?
| | 394761 [shortcutter@] Hal, are you still following?
| + 395169 [lists@ru y- ] If the main driver is taking Hash-like data, depending on the
+ 394409 [lists@ru y- ] "The Ruby Way" book is one of my Mentors :)
+ 394420 [lists@ru y- ] I think this is a good project idea on two counts 1) better Struct b/c
+ 395144 [gsinclair@gm] I like what I read in the README, and would definitely use it in future if

[ANN] ruby-growl 4.0 Released
394377 [drbrain@se m] ruby-growl version 4.0 has been released!

For beginners: Rubeque.com, interactive Ruby coding practice
394381 [lists@ru y- ] I stumbled across this site recently and found it very useful for
+ 394467 [josh.cheek@g] This was fun, thanks for sharing. Know of contact info for them? I'd like
| 394468 [adnan.ayon@g] Looks promising :-)
+ 394579 [lists@ru y- ] Contact info for Rubeque is here:  http://rubeque.com/help
+ 395227 [lists@ru y- ] And there's Ruby Quiz, of course.

Writer to help change the world
394382 [lists@ru y- ] I'm looking for a programmer to help change the world.

Not a Memory Leak but Stale Objects - clears with GC.start
394384 [lists@ru y- ] I have a long running process.
+ 394385 [andrea@an re] ...
+ 394387 [shortcutter@] Many of those threads here which deal with GC are caused by
  394396 [matma.rex@gm] I don't know which gems are you using, but some gems interfacing with

Want to get exact match from sentence
394386 [lists@ru y- ] I need to search exact match from sentence .I want the expected
394391 [peterhickman] With the last example why should "brown fox jumps" not match "The
394401 [lists@ru y- ] for my requirement i need to consider only single specialchar before and
394402 [peterhickman] The you could use a.index(b) to find at what position b starts as a

Design pattern question
394390 [James.French] I wonder whether you could give me any advice on how to structure some code=
+ 394392 [saji@u- iz .] Maybe this one gives some good pointers..
| 394394 [James.French] Maybe this one gives some good pointers..
+ 394393 [lists@ru y- ] You better do
  394395 [James.French] You better do
  394399 [shortcutter@] m happy with. Thanks for the help Robert, as always :)
  394404 [James.French] That's just a mechanism to generate delegation.  And you redefine methods a=
  394405 [steve@st ve ] That's not very ruby-like at all.
  394408 [ryand-ruby@z] exceptions saying the method must be implement.
  394410 [steve@st ve ] We'll have to agree to disagree on this one, Ryan. Abstract classes
  394414 [matma.rex@gm] W dniu 5 kwietnia 2012 21:27 uytkownik Steve Klabnik
  394415 [steve@st ve ] Use duck typing.
  394416 [matma.rex@gm] Sequel provides a lot of helper methods and aliases in the abstract
  394418 [steve@st ve ] Insert a 'def bar; puts "bar"; end' into my Abstract class, the end
  394430 [ryand-ruby@z] Adding an empty method that throws a slightly
threads.html
top