391047-392810
390835-391287 subjects 391273-392028
^ Close? ... or have I been messing up from the get go?
391047 [wbrisett att] f = File.open("blossom.xml")
+ 391049 [richard.conr] When you read in the info in a block, the file closes automatically.
+ 391050 [whitequark w] No, files aren't automatically closed upon encountering EOF. You may
^ Trouble. parse error
391053 [zzcrash gmai] I have some problem when i want start program. What should I do to fix
391054 [peter.c.r.la] def l(h, r1, r2)
^ gem build options -- how to make them persist?
391058 [joelvanderwe] On one of my systems, the pg gem won't build unless you tell it the
391059 [ryand-ruby z] There is no way. I have a ticket filed for this feature. Patches welcome.
391068 [steve stevek] If you're using bundler, bundle config can do this for you.
^ Httparty parsed response
391060 [rubythemyste] I am using httparty to get the content of a service.
^ REST CLient Example
391061 [rubythemyste] Can anyone explain me with an example, by using REST Client to do
391062 [hassan.schro] The doc has examples: http://rubydoc.info/gems/rest-client/1.6.7/frames
391067 [rubythemyste] Thanks ..
391072 [hassan.schro] No, I can't, but all you need is right there :-)
^ Can't convert String into Integer
391063 [rubythemyste] Using Httparty, I get the following response
391065 [lw2011 sonic] puts @response.inspect
^ Custom fields Unlimited
391066 [winn67257 gm] In my application I would like to allow users to dynamically add custom
^ HTTParty PUT/POST/GET/DELETE Example
391069 [rubythemyste] I need to do POST/PUT operation using httparty.
^ Building a method - Learn to Program Section 9.5
391074 [emekapatrick] In this program
+ 391077 [list.push gm] if (reply != 'yes' || reply != 'no')
+ 391078 [rubytalk2dav] [from]
391086 [emekapatrick] Thanks for the feedback and help! Definitely clarifies this. Didn't =
391088 [rubytalk2dav] Oh! They're usually covered more or less together.
^ [ANN] pg 0.12.0 Released
391075 [ged FaerieMU] pg version 0.12.0 has been released!
^ Ruby module error
391079 [zzcrash gmai] How in ruby i can write module ?
+ 391080 [peter vanden] For the module Math, you can easily see the documented
+ 391081 [jakekaiden y] a = -4
+ 391082 [shevegen lin] You should use
^ RubyXL::Hash.prepare
391085 [micky.tour g] What is the difference between RubyXL::Hash.prepare and basic Hash.
^ Re: Treetop - parsing to nil result
391087 [mjessick att] Thanks for the debugging hints - just the suggestions I was looking for.
^ mp3 slowing down
391092 [code984265 g] everything works alright but after about 20..30 Up and Down keystrokes
^ How to call a method from a different class
391097 [dhulem1 umbc] I am currently stuck trying to call a method from a different class.
+ 391098 [peter vanden] So that could be done like this.
+ 391116 [jakekaiden y] hey folks,
391123 [peter vanden] Sorry for the confusion ... (hits hammer on head: _always_ test code before
391126 [lrodriguezsa] 1 module Checkout
^ HELP: i need to programm a traffic light an it doesn't work
391101 [akviliukasle] i need this Programm for my exam on wednesday and i am getting out of my
391102 [gennady-ruby] my
391103 [akviliukasle] Shoes.app :height=3D> 500, :width=3D> 500 do
+ 391106 [ashbbb gmail] Umm,...
+ 391119 [reid.thompso] use www.pastebin.com
^ [ANN] arcadia ide 0.11.1 released
391104 [antonio.gale] a new version of arcadia was just released including minor enhancements
391108 [transfire gm] Hmm.... tried it but there seems to be no bin?
^ Scope and Instance Variable Question
391105 [cleverlemmin] Hail Caesars!
391110 [jgabrielygal] Can you show the caller code? From your description and the code,
391181 [cleverlemmin] I think I have it figured out. It looks like there is more than one
^ How can i make this procedure into a function?
391111 [akviliukasle] def pause (dauer)
391112 [mbj seonic.n] This is a busy loop and should not be used unless you are doing much
391113 [akviliukasle] Hey,
+ 391120 [b.candler po] If that's really the case then your professor doesn't know much about
+ 391156 [ashbbb gmail] I think it's better to use timer() method in this case.
^ Re: arcadia ide 0.11.1 released
391117 [antonio.gale] I'll examine it trying installation under rbenv. Thanks
^ Q. reg modules -scope of executed code
391118 [sentinel1879] I am DRYing up some code. Earlier I was creating modules and calling a
^ enforcing module contract with self.included?
391124 [grary.stimon] Hey,
+ 391125 [sylvester.ke] Try self.extended. For instance, the following code should print 'PASS' =
+ 391127 [grary.stimon] Sylvester,
| 391131 [sylvester.ke] In this case, the proper hook method is Module.included (as you =
+ 391132 [grary.stimon] OK, right.
| 391133 [sylvester.ke] That's an interesting question and I'd be interested to read more =
+ 391134 [grary.stimon] Yes, I understand your proposed approach.
391136 [sylvester.ke] because=20
^ Using HTTParty - POST/PUT/GET/DELETE for RestService
391128 [rubythemyste] Any one who is working with HTTParty can provide me an example for
^ How to access Hash containing Array of Hashes ?
391129 [rubythemyste] Can anyone give me an example of getting each individual elements of
+ 391130 [mbj seonic.n] hash_in_response['key'][index_of_array]['other_key']
| 391149 [rubythemyste] Markus
+ 391148 [rubythemyste] Markus
^ I need advice on what to do next.
391135 [system_freak] I am new to programming. I read the ebook "Learn to Program" by Chris
+ 391140 [code apotheo] What kind of programming do you think you'll want to do? Web
+ 391182 [system_freak] I would like to do web programming, integration, and coding mainly. I
| + 391186 [josh.cheek g] I put together Ruby Kickstart (http://ruby-kickstart.com/) to help people
| | 391187 [josh.cheek g] For this, check http://www.meetup.com/
| + 391193 [code apotheo] In my experience, using a Unix-like OS as one's primary working
+ 391189 [system_freak] Hey Josh,
| + 391192 [josh.cheek g] Curious. They're hosted on Amazon S3. Anyone else having trouble with S3?
| + 391284 [josh.cheek g] Got this fixed, I hadn't set the headers, so the content type was coming in
+ 391211 [chris.hulan ] Get a copy of http://pragprog.com/book/tpp/the-pragmatic-programmer
+ 391221 [shevegen lin] The only way to learn ruby is to write ruby scripts.
+ 391271 [system_freak] So basically what you're saying Marc is write a simple program that
| 391272 [alex.lang.ut] OOP is Object Oriented Programming, Ruby is an Object Oriented Programming
| 391274 [jonanscheffl] If you need a project go to http://projecteuler.net/ and start working
| 391275 [josh.cheek g] I've done 140 of those, and can say that while they're wonderful for
+ 391293 [system_freak] Hey Josh,
+ 391295 [system_freak] Hey Josh,
| 391312 [code apotheo] Have you tried right-clicking the link and choosing the option to
+ 391412 [system_freak] That seemed to have worked. Thank you.
+ 391484 [system_freak] Can I ask for help with coding no matter how simple it is to others? I
+ 391485 [isaacbfsande] I have had to learn this the hard way, but you need to do your research
+ 391486 [rubytalk2dav] =A0I
391487 [steve stevek] ...
^ Send rtf files to printer
391137 [glenn_ritz y] like to use Ruby to do this.=A0 My guess is that I'll have to open MS Word =
+ 391138 [garthy_lmklt] - Google "batch print rtf".
| 391139 [garthy_lmklt] Oh, I almost forgot: A good starting point is to look into the Ruby
+ 391146 [b.candler po] libreoffice?
+ 391147 [richard.conr] Rautomation https://github.com/jarmo/RAutomation is a nice little windows
^ How to get Rio working again
391142 [gsinclair gm] If you use a recent Ruby (in my case 1.9.2p0) then the very useful, cool,
^ after downloading showing empty file
391143 [ajitteli gma] def export_rawdata
^ [ANN] jobQueue 1.0.1 - Running stuff with a user defined number of threads
391151 [ralf.mueller] JobQueue is a ruby gem, that allows you to run Ruby methods and system commands in parallel. It comes with an
+ 391157 [shortcutter ] You're welcome!
| 391166 [ralf.mueller] This was my first interface idea, too. But I skipped it to be able to push a whole list of items at once. But
| 391180 [shortcutter ] h a
| 391250 [ralf.mueller] I skipped this for the moment, but the current 1.0.2 release has implemented the strait forward interface you
+ 391188 [tony.arcieri] Just curious, have you seen girl_friday?
391248 [ralf.mueller] no, I didn't. Seems to have a different interface concept, but looks interesting. It seems to have a
^ Install Ruby on Win7
391152 [umpierre.fel] but I have a problem...
391162 [luislavena g] 1) Did you use RubyInstaller or RailsInstaller?
^ How to create Arrays (and Hashes) correctly?
391153 [umrzykus gaz] As far as I know, I can create Arrays and Hashes in Ruby at least in two
391155 [shortcutter ] No, if you only consider constructor without arguments. But
^ WIN32OLE taking 100% CPU utilisation
391158 [shareef jall] just having a quick play with WIN32OLE and it looks like the
+ 391167 [shareef jall] The Perl version works with no such issues so I'm using that for now.
+ 391168 [rogerpack200] do all versions of ruby do the same thing?
| 391419 [shareef jall] Sorry, missed these replies. Not tried any more versions I'm affraid -
+ 391195 [cremes.devli] This is how #message_loop is supposed to work. It polls the Win32 event sink and processes all of the events that are in queue. Try putting a short sleep in your "loop do" like "sleep(0.1) # 100 ms".
^ How to call method of one class in another class
391159 [rubythemyste] Any help is appreciated.
391160 [mikaa123 gma] Since classes are objects themselves, they also have methods. To define clas=
391161 [rubythemyste] I am confused.
^ Could not create Makefile (Mac OS X 10.7.2)
391163 [wbrisett att] Not sure why exactly, but nokogiri installed fine on my desktop, but I've been
^ How to include Atom format in Httparty
391164 [rubythemyste] Need your help to include Atom format in HTTParty
^ [ANN] VCLog v1.9.0 released
391169 [transfire gm] VCLog 1.9.0 has been released.
^ ANN: american_date 1.0.0 Released
391171 [code jeremye] = ruby-american_date
^ [ADV] JEG2's Articles on How to Think About Programming With Ruby
391172 [james grayso] I know I haven't been too active on this list lately, but that's because I
^ To Access One Class method from Another
391174 [rubythemyste] I have two classes say,
+ 391177 [matma.rex gm] Have you tried reading a Ruby tutorial before asking questions about it?
+ 391179 [jakekaiden y] hey there,
^ How to parse the Hash reponse of HTTParty
391175 [rubythemyste] can anyone help me how to parse the hash reponse of a rest web service
391178 [josh.cheek g] It would be helpful if you posted the request.
^ Ruby 1.9.3-p0 + Cygwin 1.7.9-1 + posix-spawn-0.3.6: Can't set RUBY_PLATFORM = cygwin
391176 [muraii yahoo] I've been trying to get jekyll installed within the Cygwin 1.7.9-1
+ 391184 [luislavena g] Click download, place posix-spawn-0.3.6.gem somewhere accessible by
+ 391220 [muraii yahoo] Exceedingly helpful. I didn't recognize the platform condition as a
+ 391222 [muraii yahoo] The issue was that I didn't have rake-compiler installed. I have now
^ Searching an array for a pattern derived from another array
391183 [chaim interc] I've just started using Ruby last week and have a somewhat complex task to
+ 391185 [jakekaiden y] hey there,
+ 391199 [martindemell] $ irb
+ 391201 [shortcutter ] 1. Write a method which receives two arguments (servers and nics of course).
391205 [rob agilecon] task to
391225 [chaim interc] I must say that Ruby is very elegant! I've been scripting in bash for years
^ Didi you know? - Wirble Reverse
391190 [transfire gm] Did you know Wirble is about a 1000x more helpful if you set
391198 [jens.wille u] true. but it's the default in /brice/, which inherited most of
^ Fixing Net::TFTP
391191 [reid.ruby-fo] I'm extremely new to Ruby programming. Forgive me.
391194 [sduncan weta] What happens if you set non-blocking on the socket and try to catch an
391217 [reid.ruby-fo] Thanks for the help.
391230 [sduncan weta] And you said that changing the recv buffer size (2**16) made no
^ [ANN] kgio 2.7.0 - kinder, gentler non-blocking I/O
391197 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising
^ "aaabbccccdadd" => [ [a, 3], [b, 2], [c, 4], [d, 1], [a, 1], [d, 2] ]
391200 [matematika.a] "aaabbccccdadd" => [ [a, 3], [b, 2], [c, 4], [d, 1], [a, 1], [d, 2] ]
+ 391202 [martindemell] "aaabbccccdadd".scan(/((.)\2*)/).map { |a,b| [b, a.size] }
+ 391208 [josh.cheek g] Anyone else look at String#squeeze and get sad that it didn't take a block?
+ 391212 [shortcutter ] Hm....
^ [ANN] ruby-oci8 2.1.0
391203 [kubo jiubao.] Ruby-oci8 2.1.0 is released. This is the Oracle module using OCI8 API.
^ Problems with Net::Ping
391206 [darkpython g] I'm trying to make a small program to ping an IP through TCP/ICMP but
391210 [darkpython g] Fixed.
^ Re: cast_off-0.4.0 released
391207 [rogerpack200] As a note, there may have been a related work several years ago (though
391213 [kc9cmt earth] I am now getting three copies of each posting to the forums.
^ redmine.ruby-lang.org -> bugs.ruby-lang.org
391214 [shugo ruby-l] redmine.ruby-lang.org has been moved to bugs.ruby-lang.org.
^ perf optimization using profile results
391216 [cremes.devli] I need some help with optimizing a set of libraries that I use. They are ffi-rzmq, zmqmachine and rzmq_brokers (all up on github).
391218 [cremes.devli] In case someone wants to try and duplicate what I am doing, all of the code has been pushed up to github. I'm really hoping someone can look at the profile results and suggest 2-3 places that are ripe for optimization, but in the event you are feeling frisky now you can reproduce the whole shebang on your own machine.
391234 [headius head] A couple quick observations.
391238 [cremes.devli] Yes. The call to zmq_poll is essentially time spent blocked on I/O.
+ 391247 [headius head] ple, can it tell me how many of each class type have been allocated? If so,=
| + 391251 [shortcutter ] e." I know what a singleton is, but I don't understand your use of it in th=
| | 391255 [headius head] For CPU, yes. This is not CPU profiling, however, and runhprof does
| + 391260 [cremes.devli] Okay, so I should look for lines where I execute "Class.new {}" in my code. Off the top of my head, it is *rare* that I call Class.new directly; it's almost always via an actual class constant name.
| + 391263 [headius head] e. Off the top of my head, it is *rare* that I call Class.new directly; it'=
| + 392810 [cremes.devli] cr
+ 391292 [cremes.devli] For those of you following along, I was able to shave off another 50 microseconds per client. I learned a few things along the way.
391297 [normalperson] Exactly.
391367 [headius head] Indeed. Array#[] is slower on JRuby because String#[] uses backref
^ Re: Using DLLs with my Ruby app
391223 [imran.nazir ] understanding. Can someone explain why the 'extern' is used here? Is it
^ Servers, Threads, and the Ruby Way -- Architecture Question
391224 [epasquali ho] I'm currently trying to program something I have no experience in ANY
391226 [epasquali ho] [snipped, it is long!]
+ 391233 [tony.arcieri] Celluloid is a library for making concurrent objects that each run in their
+ 391259 [shortcutter ] You do not need two processes. One process with multiple threads is
391267 [epasquali ho] what you're saying and it makes sense. I've also decided that I won't
^ how to generate a pdf calendar?
391227 [danbus shinz] I want to generate a pdf calendar, and I have incoming calendar data
391228 [kclair pickl] 1. use an html -> pdf generator such as wkhtmltopdf or princexml (and
+ 391235 [reid.thompso] the ruby bindings to libharu may be useful also
+ 391314 [danbus shinz] Interesting. Do the html to pdf generators use the html 5 standard when
391315 [kclair pickl] Each one does it differently, so you'd have to look at the individual
^ [ANN] minitest 2.9.1 Released
391236 [ryand-ruby z] minitest version 2.9.1 has been released!
^ How to pass a list of conditions as parameters
391237 [thescholar h] I=E2=80=99m unsure how to explain this one so I'll do my best.
+ 391239 [sduncan weta] Nothing pretty or fancy here, but seems to do it? Note, I think the hash
| 391249 [shortcutter ] But what is the desired output? That's crucial for the solution (see below=
| 391265 [sduncan weta] Having the expressions as strings means you can very easily load them
| 391266 [shortcutter ] But it helps understanding to explicitly mention this fact. That was
+ 391244 [thescholar h] Thank you very Sam! It seems there are still a lot more I need to learn
| 391245 [sduncan weta] That is interpolating hash values in a string based on their key - it
+ 391246 [thescholar h] The technology I'm using uses a version inferior to 1.9.x, fortunately
+ 391261 [regis.aubare] require 'pp'
^ remove ends of array and interleave
391242 [sherri vsoun] I have some problems getting a couple of elements working right... I
+ 391252 [shortcutter ] What exactly is your problem?
+ 391253 [g.diemant gm] Is your problem, that a gets altered?
^ ruby sharepoint
391254 [dickyhide gm] I want to create a ruby script (on linux) that can upload folder/file to
391256 [peter.hicks ] Have you looked at Sharepoint's functionality that will take an attachment
391533 [dickyhide gm] Could you tell me how to do that by using Ruby script?
^ How to build platform specific gems?
391257 [martin angle] Dear All,
391258 [luislavena g] spec.platform = Gem::Platform::CURRENT
^ [ANN] RSpecOnTap v0.1.0 released
391262 [transfire gm] RSpecOnTap 0.1.0 has been released.
^ round float to integer if whole number
391268 [liquid98 gma] I'm looking for a way to pick out the whole numbers (ff) in the function
+ 391269 [g.diemant gm] ff.floor =3D=3D ff
| 391270 [liquid98 gma] thanxs Gunther!
| 391278 [shortcutter ] irb(main):006:0> x = 1.0
| 391281 [g.diemant gm] You're right, but floating point numbers don't work reliably (as one
| 391294 [frosty unluc] I would think the most accurate way to do it would be to convert the
+ 391317 [liquid98 gma] Converting to a string was also one of my ideas. Although it was not
+ 391322 [shortcutter ] Yeah. I'd go with a proximity check like
+ 391334 [g.diemant gm] Converting to a string isn't better as directly comparing the numbers,
threads.html
top