377268-378857
377121-378746 subjects 377472-377988
^ Lexical vs Dynamic Scope
377268 [tim timmorga] Forgive this very basic question, but Googling has not answered my
377269 [josh.cheek g] The x in g is the same as the x outside of g. There is only one single x in
+ 377276 [tim timmorga] in
+ 377282 [abinoam gmai] or
^ [ANN] kramdown 0.13.1 released
377270 [t_leitner gm] ## About kramdown
^ swig and ruby
377272 [bomastudio g] build a binding to LIBREDWG library, but I don't know SWIG ..... need
+ 377278 [echristopher] LibreDWG is C; I was thinking you might consider Rb++
| 377280 [bomastudio g] yes, rb++ seems to work with C++, confusion!!
+ 377279 [sutniuq gmx.] have a look at their forum: http://www.ruby-forum.com/forum/wxruby
377281 [bomastudio g] good idea, I'm going to the group. Let me see....
^ Plurals in RDoc documentation
377285 [pedzsan gmai] I can't find my post from yesterday. Sorry if this is a repeat.
377328 [drbrain segm] This annoys me too. I have not decided to automatically link plural class na=
^ How to use image_tag method from module ActionView::Helpers::AssetTag?
377290 [andrew.dange] I am just getting started using ruby and rails and I have a simple class
^ Easiest way in Ruby to express "given this, set target to this if nil or undefined, else increment by this"
377295 [RichardDummy] class Z
+ 377296 [jeremy bopp.] Replace the @@'s with @'a so that you use a class instance variable
| 377326 [RichardDummy] Thanks for that lucid explanation of where my error lay which in turn
+ 377317 [yermej gmail] On Jan 22, 10:50=A0pm, RichardOnRails
377330 [RichardDummy] Thanks for introducing me to the Singleton class from the Ruby
^ detection process in windows xp, vista, seven.
377298 [bureaux.seba] Is it possible to detect such processes in windows xp, vista, seven?
+ 377299 [cmdjackryan ] Not sure what you mean.
+ 377321 [luislavena g] tasklist.exe
+ 377322 [john.allen e] require 'win32ole'
^ FastCSV fcsv and how to keep imported field format (or how to convert it)
377300 [dot_baiki ya] Dear Community,
+ 377303 [james grayso] true)
| 377306 [botpena gmai] umeric,
| 377307 [james grayso] =3D>
+ 377310 [dot_baiki ya] This way seems to be right, but now somehow the :header_converters =>
| 377311 [james grayso] Time;Work
+ 377318 [dot_baiki ya] Yes! Sweet. And BIG THANKS! And shame on me :-) Of course it works like
^ Enumerable.inject_with_index?
377304 [redstun gmai] Enumerable.inject is pretty cool, but it treat the elements as if they have
377308 [botpena gmai] how about,
377309 [botpena gmai] sorry if that wasn't so clear. again,
377357 [redstun gmai] Cool! thanks!
377406 [colinb2r goo] I'm curious as to when and why people use each_with_index and/or
+ 377564 [redstun gmai] Interesting, thanks Colin.
| 377589 [eregontp gma] sing
| 377593 [redstun gmai] guess we find a spot to improve when chaining up multiple enum methods?
+ 377583 [b.candler po] I think you answered it yourself: people will generally choose the more
^ Help! Please, I'm lost!
377312 [lord_dark_ha] Well, I'm a spanish user, so I'm sorry if my English isn't good
+ 377313 [martindemell] 1. Use an array to represent each die
| 377315 [lord_dark_ha] The answer well explained for a newbie, plz. Thanks.
| 377316 [martindemell] Here you go. We make a class to represent a die, with methods to roll
+ 377314 [blambeau gma] just a hint for the interactive part: have a look at the
+ 377320 [lord_dark_ha] Well I tried that code but, when I try to run it, Shoes freezes and RDE
| 377324 [martindemell] it's pure ruby code, not shoes. not sure why rde doesn't do anything,
| 377329 [lord_dark_ha] It isn't. When I try to run it from console, it asks for the number of
+ 377339 [lord_dark_ha] KO, sorry for the double posting, but I can't edit my last message. I
^ How to convert letters to uppercase?
377323 [skolopen yah] Im unfamiliar with regular expressions.
+ 377325 [b.candler po] 1. Write a regular expression to match everything before the first
| 377375 [nobuoka r-de] When the string doesn't contain a period, you want to change all
+ 377327 [martindemell] ruby-1.9.2-p0 > a = "helpuser01.hello.txt"
377337 [tad.bochan b] a="helpuser01.hello.txt"
^ Obtain 'CSV' data
377335 [niezam54 hot] I have some problem while obtaining data from the csv file format. Here
+ 377336 [james grayso] File.foreach(path) do |line|
+ 377344 [niezam54 hot] What do you mean by '# use fields here...'? and how to tell ruby that i
| 377345 [d_rems yahoo] Result of split is actually an array. So your "Active" column would be
+ 377349 [niezam54 hot] When i printed out fields[2], the outputs are nil. This goes for
| 377368 [shortcutter ] Are you sure?
+ 377351 [angel_steel ] open("file").each do |line|
+ 377408 [niezam54 hot] "Issue,,Risk/Opportunity,Compliance,Consequence,Current Status,Due
| 377442 [jgabrielygal] Because you said the fields were separated by '|' and this is why
+ 377409 [niezam54 hot] ["1.a,Maximise use of natural lighting,,Active,,,,,,\n"]
+ 377464 [niezam54 hot] Thanks for the solution. i change the "|" to "," and it worked. But Im
377473 [james grayso] The C in CSV stands for "comma."
^ Get 2 last letters of a string and increased
377342 [louposk gmai] how can i make the string "admin_X10-11_001" increased by 1 in order
+ 377346 [zhangsu live] "admin_X10-11_001".succ
+ 377347 [mentionuse g] a = "admin_x10-11_001"
^ reverse engineering: "property[name=steps] > array"
377343 [danthom1000 ] I'm new to Ruby, I've inherited some code for my job, and I'm trying to
377379 [anurag08priy] If you have a look at [1], you are actually looping through all the
^ Compile a Ruby script
377348 [lord_dark_ha] Now, thanks to the forum, I have my brand-new and shining Ruby script,
+ 377350 [luislavena g] Luis Lavena
+ 377385 [jdp jd-page.] Looks like you have an old version. There is an updated version
+ 377404 [lord_dark_ha] Thanks everyone ^^ I owe you another. Just a final question: If I use
^ class_eval
377352 [lorenzo.brit] I cant not understand why these code is well
377354 [botpena gmai] then just put it Person
377356 [lorenzo.brit] Ok, thanks, in that way what actually we are doing is a class method
377358 [botpena gmai] yes. a class method
377360 [lorenzo.brit] WOW thanks a lot, i really got crazy about that. i will continue to
^ CodeFest - Online Coding Festival by Computer Engineering Society, IT-BHU
377353 [vishal2295 g] We are delighted to inform you that Codefest'11, the annual International o=
^ [OT] Cannot unsubscribe from ruby-talk
377359 [denis.defrey] I=92ve been meaning to unsubscribe from ruby-talk (nothing personal; I =
377364 [blambeau gma] i.e. you have to send a email to ruby-talk-ctl@ruby-lang.org with the word
^ from 'socket' to 'eventmachine' http client.
377361 [i8igmac aim.] im working on a vulnerability scanner, basically a http client... i have
^ pg gem 0.10.1 wth Ruby 1.9.2 does not work with method @pg_conn.exec_prepared(stmt_name, parameters)
377362 [zdavatz gmai] The pg gem 0.10.1 does not seem to work with Ruby 1.9.2 with the method
377363 [ben bleythin] You don't actually show the exception, only the backtrace. What is the
^ Re: pg gem 0.10.1 wth Ruby 1.9.2 does not work with method @pg_conn.exec_prepared(stmt_name, paramet
377365 [zdavatz gmai] Dear Ben
377366 [zdavatz gmai] Dear Ben
+ 377367 [zdavatz gmai] Ok, it seems that this again is related to some subtle changes from Ruby
+ 377381 [rick.denatal] Zeno,
377383 [zdavatz gmai] Dear Rick
^ String replace ' for mySQL insert
377370 [roland klein] I'm a newbie, just started programming Ruby about 1 month ago. Have lots
+ 377371 [b.candler po] You're probably going about this the wrong way - your database layer
+ 377372 [roland klein] Thanks Brian,
+ 377376 [ian.asaff gm] in VB, '=' can means both assignment and equality, so the following does
+ 377382 [roland klein] thanks Ian,
^ FileUtils writing to stderr
377384 [marcuslamb y] I'm having a few issues with FileUtils writing stuff to stderr when no
+ 377393 [drbrain segm] or has occurred. For example I might have the following simple
| 377398 [drbrain segm] no error has occurred. For example I might have the following simple
+ 377433 [marcuslamb y] I see your point. I should be able to check the return code for errors.
^ New to Ruby - Twitter API
377386 [robert.brenn] I am looking to retrieve data from TWitter - ideally I want the dta in
378537 [peter vanden] $ rvm use 1.8.7
^ Block-Argument-Scope changes in Ruby 1.9.1 to Ruby 1.9.2 and breaks dbi-0.4.5
377387 [zdavatz gmai] Ok, it seems this is related to dbi (0.4.5) and the way Ruby 1.9.2
^ The finer points of postfix conditionals.
377388 [j jonathanle] foo if foo = 1
+ 377389 [mentionuse g] Not being assigned to nil here makes sense, even without knowing why it gets
+ 377390 [shortcutter ] -e:1: warning: found =3D in conditional, should be =3D=3D
| 377471 [peter vanden] To understand this better, I used the method 'defined?'.
| + 377504 [shortcutter ] You can certainly do that for learning purposes but I have not yet had
| + 377506 [b.candler po] Yes, but you should rarely if ever need this in practice.
+ 377396 [j jonathanle] Thanks for the explanation. FWIW I think it is a shame that postfix
+ 377401 [gwtmp01 mac.] to=20
+ 377423 [shortcutter ] See Gary's reply.
377453 [j jonathanle] Yes, I agree that it's surprising this is done at parse time. But
377509 [shortcutter ] Why do you find that surprising? Parse time is exactly the time when
377516 [j jonathanle] I guess I expected that the two different concrete syntaxes would be
377522 [shortcutter ] But that would lead to a situation where a local variable declared in
^ dbi force to Array in Ruby 1.9.2 - works for 1.9.1 as well - row.to_a
377391 [zdavatz gmai] Ok just FYI we solved the problem. It again (after the Hash-Iteration
^ Login does not work
377392 [zyxel21d gma] created a database for users called user1, I have the login screen set
^ Re: gem install mysql error
377395 [biegun.m gma] # aptitude install libmysqlclient16-dev
^ Worker pool - what to use?
377399 [ch.blank gma] Hey,
+ 377426 [shortcutter ] <disclaimer>I don't know stomp and I have only rudimentary knowledge
| 377451 [tim.pease gm] Initially
+ 377753 [cb unused.at] Hey, thanks a lot for the input!
^ Re: reverse engineering: "property> array"
377402 [danthom1000 ] Cool! thanks for the help.
^ confused about andand
377403 [danthom1000 ] I'm reverse engineering some code I inherited, and having a little
377405 [gwtmp01 mac.] comment
^ Is an instance of a class really an instance of its superclass too?
377410 [kedar.mhaswa] I understand that the answer to that question is yes.
377414 [gwtmp01 mac.] included
^ Obtain data from .csv
377411 [niezam54 hot] ["Issue,,Risk/Opportunity,Compliance,Consequence,Current Status,Due
+ 377416 [leslieviljoe] \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
+ 377417 [yongjiawei g] Sorry to say but I think I'm quite confused. You started out trying CSV
+ 377419 [angel_steel ] does you CSV file actually really have those square brackets?? If yes,
| 377421 [yongjiawei g] Actually I have this feeling the posted segment
+ 377466 [niezam54 hot] Leslie : I dont think I have time to create a new script based on the
| 377475 [yongjiawei g] Saw in the other thread changing to ',' for the regexp works. The
+ 377477 [niezam54 hot] Yeah, iam still having trouble extracting some data from the csv file
| + 377482 [yongjiawei g] The thing is i need to extract those data
| + 377483 [brabuhr gmai] You mean something like this?
+ 377484 [niezam54 hot] Thanks for your post. btw, how do you specifically obtain data for
| + 377485 [yongjiawei g] Yes you need to add logic to filter out the rest of the rows for which
| + 377486 [brabuhr gmai] $ ruby baz.rb
+ 377487 [niezam54 hot] didnt realize your second post. yes, i mean like that but what if i only
+ 377488 [niezam54 hot] Unquoted fields do not allow \r or \n (line 1). (CSV::MalformedCSVError)
| 377491 [brabuhr gmai] Is the csv file you posted the same as the file you are testing with?
+ 377490 [niezam54 hot] is it because im using windows 7 or because of my ide NetBeans 6.9.1?
+ 377492 [niezam54 hot] Yes im using the same file. And it worked!!! after changing into 'rb'.
377494 [brabuhr gmai] That is related to the traditional difference in line-endings between
^ Surely there's a better way to do this... (implementing a DSL)
377413 [tony.arcieri] I'm trying to write a method that builds a class and takes arguments from
377437 [shortcutter ] g a
377450 [tony.arcieri] Because I'm building these classes for another API, namely Resque. I'm
377503 [shortcutter ] Then it seems this would do
^ Re: Does Ruby support exception wrapping (exception chaining)?
377415 [ryan artofmi] begin
377420 [drbrain segm] $ ri Exception.set_backtrace
377425 [shortcutter ] Why? This is a feature most needed by languages with checked exceptions.
+ 377445 [ryan artofmi] An example of where this can be infinitely useful is in parsing a CSV or
| 377449 [shortcutter ] raise e, "#{e} on row #{i}", e.backtrace
| 377499 [cmdicely gma] ",
+ 378709 [wever axini.] It's very common to want to catch an exception and wrap it in a custom
378792 [shortcutter ] Is it really that common? It may seem so on first sight but I can't
378807 [groups inbox] common? =A0It may seem so on first sight but I can't
378857 [jan.topinski] There is actually a library implementing this kind of exception
^ dynamic drop down menu based on xml data
377422 [danthom1000 ] I'm new to ruby, html and javascript (ouch). In an erb file I am
^ List Processor Issue (spamassassin again)
377424 [shortcutter ] it happened again (see below).
^ Add new value to top of an Array
377427 [samtreweek g] instead of the bottom. eg. When using <<, this appends to the end.
+ 377428 [ondemannen g] a = [ "b", "c", "d" ]
+ 377429 [ian.asaff gm] ruby-1.9.2-p136 :009 > x = [2,3,4]
+ 377431 [samtreweek g] Posted via http://www.ruby-forum.com/.
| 377480 [botpena gmai] note, there is also Array#insert.
+ 377432 [anurag08priy] Array#unshift
^ Re: New String rules?
377434 [b.candler po] You want to know the new String rules in ruby 1.9? Try
^ How can I tell rake to publish the docs to a different directory
377435 [zdavatz gmai] How can I tell Rake to publish the documentation not to doc but to a
377436 [zdavatz gmai] rdoc1.9 --op doc3
^ STI with many to many association
377438 [rodrigopavan] Im using ruby 1.9.2 and Rails 3.0.3.
377468 [b.candler po] This is the Ruby (programming language) list. There are separate
^ Re: check a checkbox
377439 [ramesh.yatam] I have tired usign this but still not working, can anyone help me on
^ module_function and Object include.
377440 [kedar.mhaswa] I understand that the use of the Module's class method "module_function"
377500 [zhangsu live] "Including a module in Object class" simply makes every object respond
377511 [kedar.mhaswa] Thanks! You are right.
^ Hidding debug messages
377443 [fuksito gmai] I`m writing ruby console app, it uses some Rails gems, and there is a
377459 [kedar.mhaswa] Can you check what your RUBYOPT environment variable contains? If it
^ Problem with GEM configuration
377446 [zortag rcn.c] I've ben running Ruby and Gem for a few years without any problems until
+ 377448 [luislavena g] can you try "gem env" ?
+ 377452 [zortag rcn.c] Thanks for the response. From "gem env" ...
+ 377454 [zortag rcn.c] Thanks, problem is now fixed. It was your last suggestion, that is the
^ General Ruby Object Oriented
377455 [jcarter leup] I'm a newbie to Ruby (hmm... rhymes) and to object oriented programming
+ 377456 [jcarter leup] I'll answer my own question (sort of ...). This configuration for
+ 377457 [josh.cheek g] This should be instance_eval (with an underscore)
+ 377463 [jcarter leup] Awesome! That did the trick. Thanks
^ matrix: exchange rows + exchange columns
377458 [bomastudio g] class Matrix
^ [ANN] test-loop 5.0.3
377460 [sunaku gmail] test-loop - Continuous testing for Ruby with fork/eval
^ Newbie moving from other language - simple inline Rails conditional
377461 [peter.bethke] I'm moving to Ruby from another language and I'm working through the basics by altering an existing Rails project. One of the basic things I'd like to do is to highlight a link for example with the css id "current" when the current url matches a certain string.
+ 377462 [gwtmp01 mac.] basics by altering an existing Rails project. One of the basic things =
+ 377596 [Gennady.Byst] cs by altering an existing Rails project. One of the basic things I'd like =
377598 [ruby urgewal] Do you need to call 'render' at all, because you are using already an
^ How to call a method from within a module or class.
377465 [cameronjc200] I really love Ruby but there are some concepts that I'm having a hard
+ 377467 [b.candler po] What you've defined is an instance method (which would be available if
+ 377470 [cameronjc200] Thanks. That worked. I knew it was something simple.
^ IO from text file
377469 [macentricrub] New to Ruby
+ 377479 [driodeiros g] Print the numbers of elements in lines. Most likely you have two blank line=
+ 377481 [jeremy bopp.] You need to use double quotes rather than single quotes here. Single
| 377512 [shortcutter ] Note also that in this particular string evaluation is completely
+ 377515 [macentricrub] Thanks for the excellent advice as I now have the correct information
377521 [shortcutter ] The format of that file does not really matter - all these are proper
threads.html
top