394979-395488
394797-395954 subjects 395197-396629
^ Join this code reading study group - already 20+ members
394979 [lists ruby-f] If you're like me you want to get into the habit of reading source code
394986 [ryand-ruby z] code
395008 [lists ruby-f] thanks and good question. Forking the project gives us our own project
395022 [jefflunt gma] Github just seems like a weird place to do it, since it is not built for
395031 [ymendel pobo] No, it's not a bulletin board, but that's not the only way to foster
^ How to stop getting emails from list@ruby-forum.com
394980 [lists ruby-f] Please can some one show me how to stop getting emails from
394981 [enderyurt gm] *Ender Ahmet Yurt *
+ 394982 [mcpierce gma] Darryl L. Pierce <mcpierce@gmail.com>
+ 394983 [phildobbin g] This is a cryptographically signed message in MIME format.
^ Watir 3 Released!
394987 [lists ruby-f] I'm happy to announce that Watir 3 has been finally released!
394989 [ryand-ruby z] I recommend sorting the list next time. That way related items (mostly) =
394991 [lists ruby-f] Thanks for the tip! Next time i'll pay more attention to that detail.
^ [ANN] Ruby-Mongrel2 0.21.0 Released
394998 [ged FaerieMU] Ruby-Mongrel2 version 0.21.0 has been released!
^ Where are Ruby's private methods documented online?
395000 [lists ruby-f] I can't seem to find any documentation for for Ruby's attr_accessor
+ 395001 [shortcutter ] $ ruby19 -e 'p String.method(:attr_accessor)'
+ 395002 [josh.cheek g] There are no official docs. I use rdoc.info and ruby-doc.org when it fails
+ 395028 [lists ruby-f] Okay guys, thx very much. Some more sources there I can look at to find
^ problem with SystemStackError
395011 [ralf.mueller] ?> a = (0...size).to_a
+ 395012 [ralf.mueller] it works with jruby-1.6.3
+ 395015 [lists ruby-f] It seems to be a memory limitation of IRB. When I replace a.size (i. e.
+ 395021 [neleai sezna] See bug splat with many arguments on ruby tracker.
| 395036 [ralf.mueller] Thanks for the hint, it seems to be related to variable length argument l=
+ 395034 [ralf.mueller] I extracted it from scripts, which shows this error. there is no difference between irb and ruby concerning
^ New to Ruby, need install advice
395014 [lists ruby-f] I'm hoping I can get some advice on Ruby installs, as I sit a bit
+ 395016 [richard.conr] Well, WAMP isn't a very common option for deploying Rails apps.
+ 395079 [lists ruby-f] Yah, I figured launching a Ruby app would be harder then a simple PHP
| 395080 [richard.conr] You will probably find that the WAMP is pretty tricked out for PHP. Ruby
+ 395082 [lists ruby-f] For Ruby I highly recommend: Programming Ruby 1.9, Dave Thomas
+ 395083 [lists ruby-f] Have you considered Nginx as a webserver (or even proxy to Apache)? I
+ 395484 [lists ruby-f] Hope its ok to dredge up a thread a few weeks old...
+ 395487 [lists ruby-f] I use Apache + ruby .cgi scripts.
+ 395488 [lists ruby-f] I dont think anyone will shoot you down for this.
^ Need help on email.
395023 [lists ruby-f] I need to get emails from outlook.
^ -BEGINNERS- Where do I Start?
395024 [lists ruby-f] for years. Catching glimpses here and reading articles there, but, I
+ 395025 [sduncan weta] Cool, so far you are doing everything right; well, one version of right =]
| 395026 [lists ruby-f] Thanks for getting back to me quickly, I was lingering hopeing I'd get a
+ 395027 [lists ruby-f] update-
| 395029 [sduncan weta] I'll try to illustrate with a few examples. Assume a script called
+ 395030 [lists ruby-f] I don't want to be rude, but I think you could answer most questions
+ 395032 [lists ruby-f] Yes I understand that this is not a tutorial class I ask lots of stupid
+ 395033 [josh.cheek g] Awesome :) Nice job getting all that installed, I know it can be really
| 395052 [lists ruby-f] No, this has nothing to do with being new. It's a matter of using the
| + 395053 [josh.cheek g] Sure, but when you're new, the set of things you know is so large that it
| + 395054 [stevena arno] my response I received.
+ 395111 [alexandermcm] Try http://www.oldkingjames.org and click on learn to program and there are=
395116 [zachary zach] Just saw this[1], not sure if anyone has mentioned it yet.
^ if if if statment
395035 [lists ruby-f] if I take this code.
+ 395037 [martindemell] File.open("destination.txt", "w") do |out|
| 395038 [shortcutter ] Another approach
+ 395040 [lists ruby-f] Thanks Martin,
| 395041 [shortcutter ] Please post the exact code you are using.
+ 395042 [lists ruby-f] bin
| + 395043 [martindemell] you are using
| | 395046 [lists ruby-f] Oooh that was stupid of me :(
| + 395044 [martindemell] Also, there are several ways you can clean your code up. Here's one
+ 395047 [lists ruby-f] One more that is nagging me is this
| 395049 [ruby-talk la] Use a proper XML parser/writer, like Nokogiri: http://nokogiri.org/
+ 395048 [ruby-talk la] File.open("destination.txt", "w") do |out|
| 395050 [lists ruby-f] That problem is actually solved but I agree that I need to look in to a
| 395051 [ruby-talk la] Why not? It's evidently the proper tool for the job.
+ 395070 [lists ruby-f] Lars I thought I check out nokogiri ^^ and humm I feel completely lost,
395071 [ruby-talk la] require 'nokogiri'
+ 395073 [shortcutter ] # make Nokogiri read from the file to avoid to copy the whole file into mem=
+ 395109 [lists ruby-f] When I do this it will insert it like I want but is it also possible to
395110 [ruby-talk la] You can use node.add_child(new_node), node.add_next_sibling(new_node)
^ Re: How to convert long/milliseconds to DateTime?
395039 [lists ruby-f] Then, how to convert datetime to milliseconds in rails?
395045 [ruby-talk la] => 329
^ matching substrings
395055 [lists ruby-f] I need a little help with an assignment. Following is the code I am
+ 395056 [echristopher] aazz=E2=80=9D
+ 395057 [lists ruby-f] I understand that. I am looking more for where to start,in attempt to
| 395058 [shortcutter ] Think how you would do it on paper and translate the approach into a program.
| 395059 [lists ruby-f] I also understand this concept. I mean more should I be thinking, array?
| 395060 [astounding g] Stop trying to decide things like if statements, arrays, etc. Take
+ 395061 [lists ruby-f] I do understand. I have that part done, but it doesn't help me to figure
| 395062 [lists ruby-f] So, post the list of steps you have come up with here.
| 395064 [ryand-ruby z] huge=20
+ 395154 [idkravitz gm] I also against solving someones homework, but I'll give you maybe a helpful
^ Method Missing as Filter
395063 [lists ruby-f] Let's say I have a model called User. User has two attributes or table
+ 395065 [hassan.schro] @user = User.find_by_username("Tom") ? @user.id : 0
| 395069 [shortcutter ] Why waste a member variable for this? I'd also stick with the truthy seman=
| 395096 [echristopher] Wouldn't this have to be
| 395108 [shortcutter ] Why should it? Those brackets do not make a difference because that
+ 395066 [ryand-ruby z] 1) This is a rails question, not a ruby question. Please use the =
395067 [ymendel pobo] And if you're having trouble telling whether something is truthy, let me
395081 [lists ruby-f] Thanks for the help guys..
^ A question of style
395072 [lists ruby-f] When you write something like
395074 [shortcutter ] I think the conditional is completely superfluous. Or are there any
395075 [lists ruby-f] def create_report
+ 395076 [lists ruby-f] There is even a static analyser for which "else" is a smell.
+ 395077 [shortcutter ] Looks perfectly OK to me. Creating two additional methods seems like
395078 [lists ruby-f] Glad you agree ! reek can be overstuffed.
^ net::smtp carriage returns
395084 [lists ruby-f] I'm new to ruby and trying to build a script that logs into a cisco pix
+ 395086 [lists ruby-f] dif = Diffy::Diff.new("#{@a[0]}", "#{@a[1]}", :source => 'files',
| 395087 [lists ruby-f] I get the desired results from the puts dif. It creates a separate line
+ 395088 [lists ruby-f] I think I found an easier way to do this. I loaded the mail gem and
^ Wrappng up my Text Game! Need Help!
395085 [lists ruby-f] Very quick background: I decided I wanted to learn Ruby so I could use
+ 395089 [ryand-ruby z] Why?
| 395093 [matma.rex gm] W dniu 26 kwietnia 2012 22:00 u=C5=BCytkownik Ryan Davis
| 395095 [ryand-ruby z] That's correct. I just verified this by creating a simple platypus =
+ 395097 [lists ruby-f] Hmmm, you guys got any other suggestions that could handle user input?
| 395098 [echristopher] I'm thinking Shoes could do the trick, if you want to learn a little
| 395107 [zachary zach] You _should_ try shoes, and have a look at samples/expert-irb.rb[1]
+ 395136 [lists ruby-f] In the end, you guys were right. Shoes will do what I want for now, but
+ 395141 [lists ruby-f] Shoes.app :title => "Guardians at the Threshold",
| 395148 [ashbbb gmail] Cool!
+ 395173 [lists ruby-f] Ashbb,
+ 395180 [lists ruby-f] Okay guys, again, I thank you for helping me!
| 395182 [echristopher] reincarnation is an instance method of Map, not a class method, so you
| 395188 [ashbbb gmail] About this error, Eric has already answered.
| 395192 [ashbbb gmail] I came up with an idea for Red Shoes. ;-)
+ 395249 [lists ruby-f] Ash!
| 395260 [ashbbb gmail] Wow, Cool! Great goals!
+ 395272 [lists ruby-f] Hey Ash, I'm trying to run this last version you uploaded. I downloaded
^ running a command line argument from rudy
395090 [lists ruby-f] Straight up. I have to use windows @ work but I still require some
395091 [martindemell] pdfs = Dir["*.pdf"].sort.join(" ")
395092 [lists ruby-f] Martin, thanks for getting back to me.
395094 [martindemell] It looks like it isn't finding the pdftk executable. I'm not sure how
395112 [lists ruby-f] Appreciate the follow up.
^ ruby/shoes GUI - sqlite, how to isert a variable key in table?
395099 [lists ruby-f] @name = edit_line
+ 395103 [michel.reves] db.execute( "insert into teste values ( ?)", @name)
+ 395104 [zachary zach] Make sure to interpolate those instance variables!
| 395105 [michel.reves] Yes, you can do like that. But I think that works only with VARCHAR types, because #{var} calls the to_s method on var.
| + 395106 [zachary zach] From what I've read[1], sqlite will coerce values into the declared
| | 395157 [michel.reves] It seems that sqlite doesn't have the same behavior in Linux (fedora)
| | 395164 [michel.reves] If I add : db.type_translation = true just after openning the data base,
| + 395117 [lists ruby-f] I tried it but did not work =3D /
| 395118 [hassan.schro] 1) What does "did not work" mean??
| + 395135 [ashbbb gmail] Umm,...
| + 395145 [lists ruby-f] Sorry me for not explaining,
| 395149 [ashbbb gmail] Try out the following again.
| 395160 [lists ruby-f] Worked man, thanks :D
+ 395184 [lists ruby-f] I have a new problem =\
| 395185 [ashbbb gmail] Umm,.. your code works on my Windows 7 with Shoes 3...
| 395186 [lists ruby-f] I tried but the same problem occurred
+ 395187 [lists ruby-f] i got it
^ Re: Deaf Grandma Program doesn't work right
395100 [lists ruby-f] I just had a go with this and tried for at least an hour before getting
^ trouble with spreadsheet load error
395101 [lists ruby-f] I'm pretty new to Ruby, but have a basic grasp. I'm trying to read from
+ 395102 [lists ruby-f] More info as I play around with this.
+ 395174 [lists ruby-f] Figured this out, although I'm still not sure how I got it to work once.
^ why does this return 255 bits instead of 256 (and general bit byte hex string array crypt mayhem :P)
395113 [lists ruby-f] So I am doing something that requires me to manipulate things on the bit
395121 [Reid.Thompso] T24gU2F0LCAyMDEyLTA0LTI4IGF0IDAxOjA1ICswOTAwLCBpbnN0YW5jZV92YXJpYWJsZSBvayB3
^ Re: running a command line argument from ruby
395114 [lists ruby-f] I couldn't edit my above post but I figured it out. Thank you martin!
395124 [martindemell] Glad you got it working. One further note: you don't need to say things like
^ Re: why does this return 255 bits instead of 256 (and general bit byte hex string array crypt mayhem
395115 [lists ruby-f] puts OpenSSL::BN.new(test_hash_value.to_s,
395119 [mikbe.tk gma] I got 256 when running your code. It will always be 256 because of the hash
395120 [lists ruby-f] Yes but unfortunately I need the bit string, I was only getting its
395123 [lists ruby-f] Huh from IRB it shows 256 when I just went through it like you did, but
395127 [Reid.Thompso] T24gU2F0LCAyMDEyLTA0LTI4IGF0IDAzOjEwICswOTAwLCBpbnN0YW5jZV92YXJpYWJsZSBvayB3
395131 [lists ruby-f] hash = OpenSSL::Digest::SHA256.new
395132 [mikbe.tk gma] You're asking for the length of two different things, one is an
395134 [lists ruby-f] why does a 32 character long string have a length (and bytesize) of 64
+ 395137 [mikbe.tk gma] Sorry, I misspoke, I meant a 64 character string. The hash is 64
+ 395138 [astounding g] Remember, when you convert an integer to a string (#to_s) that leading
395139 [astounding g] rb(main):001:0> require 'digest/sha2'
395168 [lists ruby-f] Of course it does, because it can't guess how many leading zeros you
^ Can you speed this up?
395122 [lists ruby-f] I often use ruby to run through one set of files and then look at
395125 [zettabyte gm] I don't think this is likely to be faster, but it is a slightly different
395128 [lists ruby-f] Kendall,
^ Global variable for spaces per tab?
395126 [transfire gm] Is there any global variable in Ruby for specifying how tabs ("\t") should
395129 [ryand-ruby z] should be translated into spaces?
395130 [tenderlove r] uld be translated into spaces?
395133 [echristopher] should be translated into spaces?
395143 [transfire gm] I guess I worded that poorly. I was just wondering if there is some setting
+ 395150 [matthias wae] Sure you¡Çre not writing a Python parser, eh? ;)
+ 395167 [lists ruby-f] I'm afraid not, it's entirely application-specific. For example, I
395171 [transfire gm] Ok, thanks. I might go with 2 b/c it's Ruby indention tradition. OTOH,
^ [ANN] rubygems-update 1.8.24 Released
395140 [ evan phx.io] rubygems-update version 1.8.24 has been released!
^ [ANN] ruby-oci8 2.1.2
395146 [kubo jiubao.] Ruby-oci8 2.1.2 is released. This is the Oracle module using OCI8 API.
^ FWD:
395147 [raj_abc38 ya] =0Awow this is crazy you should give it a look http://t.co/DXsSK54j =0A=0A=
^ list local_variables in a def by means of a method
395151 [lists ruby-f] As I work with ruby in combination with a programs API , i'm not able
395152 [matma.rex gm] You can't. The "listvar" method has a different scope than "one" or
395153 [lists ruby-f] Thnx Matma,
395155 [matma.rex gm] class A
395158 [lists ruby-f] Thank you Bartosz
395166 [lists ruby-f] class A
^ What is the meaning of rb_thread_interrupted() ?
395161 [ibc aliax.ne] of rb_thread_interrupted() function defined in thread.c, whose
395165 [normalperson] The best way to know the meaning of a function is often to see how it's
395172 [whitequark w] Try Ruby Cross Reference -- it uses ctags inside and has full-text
395175 [normalperson] (warning: I don't like using websites in general :)
395203 [ibc aliax.ne] =C3=B1aki
395207 [ibc aliax.ne] cengine_ruby.c#L61
^ [ANN] unicorn 4.3.1 - Rack HTTP server for fast clients and Unix
395163 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve
^ Include C code in a FFI-based gem
395170 [denis.defrey] charset=windows-1252
+ 395390 [lists ruby-f] just compile it to a dll and distribute it with that. I'm not sure if
+ 395407 [lists ruby-f] You can create a shared object for any platform, and during gem install
^ _why documentary trailer
395176 [lists ruby-f] this
395183 [tony.arcieri] If the rest of the movie is as postmodern as the trailer, I think it's what
^ Some advice for a project of mine
395177 [lists ruby-f] Attached is an overview of my project I am working on. I am having a bit
^ I need some advice for a project I am working on
395178 [lists ruby-f] Attached is an overview of my project I am working on. I am having a bit
+ 395190 [peterhickman] Is it too late to read the text books that you were assigned by your
+ 395211 [lists ruby-f] Well, I have been looking over everything and just can't seem to see
+ 395212 [lists ruby-f] I guess what is scaring me is that there is so much degree of freedom as
395229 [peterhickman] Patterns come with experience. It's one of those things that some
^ Need help with unit test
395179 [lists ruby-f] I'm a newbie to Ruby. I tried the below code but don't understand why
+ 395181 [martindemell] raise "string" does raise a RuntimeError. If you want a custom
+ 395205 [lists ruby-f] Why do you expect to see assertion failure?
^ How can I sleep current ruby thread and break from rb_eval_string
395189 [lijiayu83 gm] I have only one thread in ruby side with a infinite loop. I want to
^ Manchester City vs Manchester United Live Match
395191 [lists ruby-f] The history of Etihad Stadium about Premier Leagues, Man City named 0
^ delete character from array
395193 [lists ruby-f] Here is my question...
+ 395194 [jgabrielygal] If I understand correctly, you want to delete all strings in the array
+ 395195 [ixti member.] ["aa", "bb", "c", "d", "ee", "f"].find_all{ |c| 1 < c.length }
+ 395196 [lists ruby-f] Yes that was exactly it. I have one more question maybe you can help me
+ 395198 [daveg radica] If it was an array you were talking about the index of the letter you
+ 395199 [hassan.schro] => "abdeghjk"
+ 395200 [the.chrismo ] '123123123123'.scan(/(\w\w)\w/).to_s
| 395202 [lists ruby-f] That doesn't delete every third character in the string though, as a
| + 395208 [the.chrismo ] Good point.
| + 395222 [shortcutter ] No need for a block. We can have it a bit more efficient
| 395228 [lists ruby-f] I used the block form because I believe it to be clearer (no issues
| + 395230 [matma.rex gm] Why the regex?
| | 395233 [botpena gmai] i dont see the first letter. maybe (i+1)%3 !=3D 0...
| | 395234 [botpena gmai] another variant,
| | 395263 [ruby-talk la] 0.step(s.size, 3).map {|n| s[n, 2]}.join
| + 395237 [shortcutter ] ch}
+ 395201 [jgabrielygal] 1.9.2p290 :023 > s = "abcdefghi"
threads.html
top