385777-387494
385547-385935 subjects 385984-387447
^ Very Very simple problem
385777 [aef1370 gmai] I have a string like "12345678". I want to remove first character.
+ 385778 [cmdjackryan ] See if the documentation for String[0] lists a method to slice Strings.
+ 385780 [mayank.kohal] Have a look at String's slice method..
| 385789 [josh.cheek g] Sometimes you know it is a simple problem for people familiar with the
| 385794 [Carey.Nation] +1 for s[1..-1]
+ 385788 [w3gat nwlaga] a = "012345678"
+ 385799 [stu rubyprog] A string is actually considered an abstract data type. Essentially
+ 385800 [b.candler po] irb(main):001:0> s="12345678"
+ 385805 [ninja slapha] Since no one else has mentioned it, I thought I'd suggest a method I've found
+ 385808 [josh.cheek g] I usually use slice!
^ Fwd: Trouble adding and committing files to git.
385782 [jen.bottom g] I have some code that uploads a file, then does a git add and git commit
^ [ANN] sqlite3 1.3.4 Released
385790 [luislavena g] sqlite3 version 1.3.4 has been released!
^ Issue installing a gem from local disk. zlib error message received
385795 [ruby.student] I have a server which is not allowed on the web and where I want to install
+ 385797 [josh.cheek g] If you're using RVM, there is a section about zlib
| 385798 [ruby.student] No, I am not using rvm.
+ 385803 [luislavena g] RubyGems requires zlib to install a gem.
^ [ANN] Rails 3.1.0.rc5
385806 [aaron tender] I've pushed a new Rails release candidate (3.1.0.rc5). We've fixed many
^ [ANN] rubygems-update 1.8.6 Released
385807 [drbrain segm] rubygems-update version 1.8.6 has been released!
^ Why aren't string literals treated similarly to symbols?
385810 [jeremy bopp.] Explaining the difference between symbols and strings got me wondering
+ 385811 [matz ruby-la] It's because Ruby strings are mutable, just like array expression
| 385818 [jeremy bopp.] Thank you for your response, matz. :-)
+ 385813 [shortcutter ] Actually this is what happens with COW underneath. Still you get
+ 385820 [whitequark w] Just wanted to mention that RXR is a bit more convenient to lookup
+ 385821 [jeremy bopp.] Thanks for your response, Robert.
385822 [shortcutter ] It's probably not worth the effort because for a short script you won't
^ English!
385812 [sbstn26 yaho] I had no idea Yukihiro Matsumoto is fluent in English!!!
+ 385824 [matt technor] It's not what I know that counts.
+ 385828 [ml convalesc] On 26 =CE=99=CE=BF=CF=85=CE=BB 2011, at 9:48 =CF=80.=CE=BC., Kaye Ng =
^ Ruby to C transpiler
385814 [transfire gm] Are there any?
+ 385815 [hanmac gmx.d] my dictionary does not know the word "transpile"
| 385816 [shortcutter ] I wondered as well. To me it sounds like "read a Ruby program and
+ 385817 [hanmac gmx.d] translating an ruby program into an c program is not as simple possible
| 385819 [shortcutter ] Performance gains would probably be marginal - unless all the dynamic
| + 385823 [peterhickman] Hmm
| | 385829 [shortcutter ] Well, both Pascal and C are Turing complete - so conversion in either
| + 385830 [ryand-ruby z] possible
+ 385826 [luislavena g] Never tried the later.
+ 385827 [ryand-ruby z] ...
^ How do I pass a variable to the Chroinc library function?
385831 [tpensel pobo] require 'chronic'
385832 [echristopher] This sends it the exact string 'next inputday', when what you want to
385838 [tpensel pobo] Thanks, Eric
^ Difference between Ruby Versions
385833 [dataoverflow] Can you tell me please what's the difference between ruby versions..
385834 [steve stevek] They're different.
+ 385836 [bbxx789_05ss] Like Coke classic. If you are a ruby beginner, this is where you start.
| 387494 [headius head] I hope this was a joke. :)
+ 385842 [shortcutter ] We should probably make the distinction clear between the Ruby
^ [ANN] LSRC V: Don't Miss Out On...
385835 [jimfreeze gm] Lone Star Ruby Conference V, August 11-13 in Austin, TX,
^ read excel file
385837 [dickyhide gm] How to read the excel file(.xls)
385839 [rubfor recit] Use win32ole. Easier than falling off a log.
385841 [mhatakeyama ] parseexcel was merged in spreadsheet some years ago.
+ 385862 [barnes7td gm] Win32ole is easy to use. The website that Mike linked to is a great
+ 385875 [sophrinix gm] This. just use it. it works & is dead simple.
^ strange fault using net ssh
385840 [mr.mikaelsso] I am trying to use net ssh and it works well when I do it on a linux
385907 [mr.mikaelsso] From what little I understand it is this line that shows where it goes
^ installing qrtools gem
385845 [ruzvay gmail] I am trying to build an application to decode and encode qr code.
^ Counting lines of code in a ruby code file while ignoring method code lines
385846 [htruax stf.c] I am writing a Ruby program that reads a ruby code file and counts the
^ String manuplation example
385847 [kotin76 yaho] I am new to ruby.
+ 385848 [hanmac gmx.d] string.match(/[\/\w]+/)[0]#=> "/dev/sda4"
+ 385849 [chirag.sweng] You have static value '/dev/sda4'? then you can do the following
| 385851 [kotin76 yaho] Thanks for your quick reply.
| + 385853 [chirag.sweng] Then you can go with only regular expression given by Hans
| + 385854 [josh.cheek g] It's not really clear to me what "extract" means. Are you interested in
| 385855 [kotin76 yaho] Thanks for your quick reply's.
| 385856 [josh.cheek g] Here, I put your strings into rubular http://rubular.com/r/dbuEen46gb
| 385857 [kotin76 yaho] i did not get the how i get logic for my requirement from rubular.
| 385858 [josh.cheek g] You will need to write a regular expression to match the data in your
+ 385852 [hanmac gmx.d] if you use match(/[\/\w]+/)[0]
+ 385859 [hanmac gmx.d] hm use /\/dev\/[\w]+/ then the position is not the problem
+ 385863 [Rob AgileCon] And if you don't want to keep escaping the /'s because you're matching
+ 385864 [kotin76 yaho] Posted via http://www.ruby-forum.com/.
385920 [shortcutter ] I think nobody suggested String#[] so far. You can do
^ Bundle update fails
385850 [sutniuq gmx.] =======================================
^ Counting lines of code in a ruby code file ignoring method code lines in the process
385860 [htruax stf.c] I am writing a Ruby program that reads a ruby code file and counts the
+ 385861 [peterhickman] Well this could be a bit of a cheat but you could put the code through
| + 385873 [htruax stf.c] Thanks for the reply Peter. Yeah, I thought about something like that, but
| + 385874 [htruax stf.c] Thanks for the reply Peter. Yeah, I thought about something like that, but
| 385878 [jgabrielygal] Maybe you could take a look at ruby_parser or parse_tree. I currently
| 385883 [htruax stf.c] Thanks Jesus, I will take a look.
+ 385913 [list.push gm] But, I think it is not so simple.
385914 [jgabrielygal] od
^ Re: Ruby corrupts after a period of time
385865 [danhvidding ] Did you ever resolve this issue? I am running into the same problem on
385899 [doug dseifer] I am 99% sure you are running into problems with prelink. On any centos or
385923 [brabuhr gmai] * Prelink can be safely disabled by setting the following setting
^ if condition for pattern matching
385866 [kotin76 yaho] i have below program
+ 385867 [dave.baldwin] You need to quote the string, i.e.
| 385869 [jakekaiden y] if "pass" is not a method or a local variable, you will also need to
+ 385868 [hanmac gmx.d] you need "" or '' around your string
385870 [kotin76 yaho] i tried as per you suggestions from below program
385871 [kotin76 yaho] as per jake reply,
385872 [kotin76 yaho] i applying same above logic for below program
+ 385876 [kotin76 yaho] Regards
| + 385880 [jgabrielygal] String#match returns a MatchData object. If you want the matched
| + 385882 [code apotheo] Give people a chance to read, formulate a response, and reply. Sometimes
| 385901 [kotin76 yaho] Thanks for all your quick support.
+ 385877 [jakekaiden y] have a look here: http://www.ruby-doc.org/core/classes/File.html, and
^ installing latest version of 1.8.7 with rvm dosn't work
385879 [serialhex gm] i don't believe that this is rvm-specific, but here is the error that it
385900 [wayneeseguin] That is well outside of RVM's scope/control. My recommendation is to bring
^ I Need some help installing ruby
385881 [dataoverflow] I need some help people.. i hope i don't ask too much.
+ 385886 [steve stevek] Check out rvm: https://rvm.beginrescueend.com/
+ 385889 [dataoverflow] RDE(Ruby Development Environment)
+ 385890 [echristopher] Just so you know, FXRuby isn't an implementation of Ruby (the way
+ 385891 [dataoverflow] where i write the come to instal RVM?
385892 [echristopher] RVM doesn't work on Windows. There is something similar called Pik,
^ How do we read this line of code?
385884 [abder.rahman] @x.each do |x|
+ 385885 [cmdjackryan ] A block variable
+ 385887 [jakekaiden y] if @x is an array, you could read this as "for each entry (x) in the
+ 385888 [code apotheo] It's an argument supplied to the block that follows. In this case, the
| 385893 [ryand-ruby z] It is not an instance variable.
| 385895 [code apotheo] Since when is @x not an instance variable?
| 385896 [ryand-ruby z] Ah. I was pre-caffiene and thought you were referring to the block variable.
+ 385894 [stu rubyprog] each is an important part of ruby and it is something people from
| 385917 [shortcutter ] @x actually points to. So we can only say something like
+ 385897 [bbxx789_05ss] @x = [10, 20, 30]
^ Fiber performance in 1.9.2-p290 vs -p180
385898 [lleoem gmail] I ran it one MRI ruby 1.9.2-p180 and -p290. The performance
+ 385912 [mikbe.tk gma] You should note that it's not running the fibers that's taking so much time;
+ 385915 [lleoem gmail] First, thanks for looking at the code.
^ siimple string manuplation logic. But i did not getting correct one
385902 [kotin76 yaho] I am new for ruby.
+ 385904 [botpena gmai] -5451"
+ 385905 [jgabrielygal] -5451"
385909 [kotin76 yaho] thanks for all and especially for Gabriel.
^ intelisense is not working properly in eclipse or netbeans
385903 [shahgomji gm] I am new to ruby and trying to use it for website testing. For that I
385921 [Carey.Nation] UHJvYmFibHkgYmVjYXVzZSBpdCB3b3VsZCBoYXZlIHRvIGV4ZWN1dGUgc2V0dXAgdG8ga25vdyB3
^ Test Unit setup teardown problem
385906 [shahgomji gm] I am using Test::Unit framework for website testing. It has setup and
+ 385911 [chris chrisk] I'm not sure whether it's possible to do what you're suggesting. It's open
+ 385922 [kou cozmixng] In <e26f7206bba0946cf6b01ddca66d10d9@ruby-forum.com>
385959 [shahgomji gm] hey sutou,
385991 [kou cozmixng] In <a63b1a4a8d55adfcebf38941a6abdce8@ruby-forum.com>
^ Location of SSL certificates on Windows (7)
385908 [d_rems yahoo] I am trying to access Exchange server with viewpoint gem. Connection is
385910 [cmdjackryan ] Phillip Gawlowski
385918 [d_rems yahoo] Which tells that I should put certificate into some directory. Nothing
^ [ANN] myrrha 1.1.0 Released
385919 [blambeau gma] myrrha version 1.1.0 has been released!
^ Fwd: AR + TinyTDS timeout fails to trigger on network failure
385925 [peter.fitzgi] Cross-posted to : Ruby-Talk, Rails-Talk, Jruby-Users
385926 [b.candler po] Posted via http://www.ruby-forum.com/.
^ long loops inside threads
385928 [correo migue] I have a newbie question :)
385930 [sduncan weta] Are you join'ing the thread? If not your main thread is likely to exit
385932 [correo migue] That was the problem! I have to reread the threat chapter of the ruby
+ 385933 [sduncan weta] No worries. You are on the doorstep of an exciting and endlessly
+ 385955 [shortcutter ] irb(main):003:0> t = Thread.new do
^ OptionParser on option separator "--"
385929 [blambeau gma] Does anyone here know if it is on purpose that OptionParser#parse!
385931 [b.candler po] It's standard option parsing behaviour. -- indicates "end of options",
385934 [blambeau gma] Whoups, I did not know that there was a commonly agreed
^ Help in Pointer
385936 [tridib04 gma] I am a beginner to Ruby. I want to know how to hide a value with pointer
+ 385937 [josh.cheek g] I don't know what this means, can you be more explicit or give an example?
+ 385938 [stu rubyprog] ~Stu
| 385939 [tridib04 gma] No.
| 385940 [normalperson] rb_global_variable(). It's documented in README.EXT of the Ruby source.
| 385962 [keithrbennet] charset=us-ascii
+ 385965 [hanmac gmx.d] Tridib what did you try?
+ 386079 [tridib04 gma] I got to know from this forum before that the Garbage Collector just
| 386125 [drbrain segm] memory=20
| 386144 [tridib04 gma] So does it delete only the pointer or the pointer with the data its
+ 386149 [hanmac gmx.d] if you use
| + 386150 [jgabrielygal] If I understand correctly, you have to use the mark function if you
| + 386295 [tridib04 gma] So will it make Memory Leak..!!!!
| 386316 [drbrain segm] No. If your object can be freed with free() then everything is fine. =
| 386340 [tridib04 gma] Yeah thats what i am trying to do implement my custom free function.
+ 386595 [tridib04 gma] Is there anyone who can answer to my previous post???
+ 386598 [hanmac gmx.d] the mark function is not important for your problem
+ 386617 [tridib04 gma] Thanks
^ How to overcome network IO block (lost network) ?
385941 [peter.fitzgi] I would like to know of any suggestions you have on working around lost
385942 [normalperson] It depends /heavily/ on the underlying C libraries for you're using
^ get response from soap using curb in ruby
385943 [kumarshiva43] I start working on ruby very recently. i written a small code for SOAP
385946 [b.candler po] But you didn't show us the SOAP data you sent (contents of
^ No tests were specified errror
385944 [shahgomji gm] I am new to ruby and so i am facing this silly issue.
385945 [b.candler po] It's because it's trying to run all test cases in BaseClass and in
385954 [shortcutter ] +1
+ 385960 [shahgomji gm] Thanks robert,
+ 385992 [kou cozmixng] In <3b1a10acac5551a92db4fe01e8581f9e@ruby-forum.com>
^ class variables in modules, annoying
385947 [ibc aliax.ne] module M
+ 385948 [adgar carbon] charset=iso-8859-1
| 385952 [ibc aliax.ne] Great. Thanks a lot for the information.
+ 385951 [bbxx789_05ss] A class is a module. So the statement should be: don't use class =
385953 [ibc aliax.ne] Right. Is it not planned to change the behaviour of class variables in Ruby=
385956 [robert.dober] by?
385958 [ibc aliax.ne] Yes, I try to use instance variables (but let's say "class's instance
^ [ANN] quickl 0.3.0 Released
385949 [blambeau gma] quickl version 0.3.0 has been released!
^ Can't install Gems on Windows 7
385950 [rovf_via_rub] party did not properly res
385963 [luislavena g] This seems to be a network connection issue.
^ Argument error in ludcmp when using Newton module
385957 [wkranec gmai] I am trying to use bigdecimal/newton for an implementation of XIRR. A
386140 [tomonacci gm] You got the error because your Function#values returned a Float
^ Unite test is not woking as per design
385961 [shahgomji gm] require 'test/unit'
385964 [bbxx789_05ss] puts RUBY_VERSION
385966 [shahgomji gm] Actually i have installed test-unit 2.3.0 gem. And ruby 1.8.7 the thing
+ 385967 [shahgomji gm] Okay i got it.. i just include the below line and now it's working.
+ 385969 [josh.cheek g] This is what I see in my mail from 7stud
385973 [bbxx789_05ss] I wonder if it has something to do with editing messages? The website
385974 [jgabrielygal] What would be the best way to fix this, then? Maybe send an email for
385975 [cmdjackryan ] Don't allow editing. Problem solved.
385976 [bbxx789_05ss] In my opinion, there should be unlimited editing--no time limit.
^ why startup and shutdown is not being called?
385968 [shahgomji gm] startup and shudown method is being called if it is inside the one class
385970 [josh.cheek g] Modules don't work that way. You're defining startup and shutdown on
^ [ANN] rb-readline 0.4.1 released
385971 [mark scottis] I'm happy to announce that version 0.4.1 of rb-readline is available now.
^ encoding problem
385972 [trylobeet gm] i'm new to ruby, and having got the basics by now i decided to try and
+ 385977 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
+ 385981 [cwprogram li] Here's an alternative that uses a simple xml parsing gem (xml-object)=2C an=
^ ruby 'require'
385978 [bellcolt hot] working on a ruby project with several files all lumped into a single
+ 385979 [wishdev gmai] John
+ 385980 [josh.cheek g] Personally, I've grown to like explicit requiring, but if you're sure you
+ 386264 [axyd80 gmail] Use =D0=B0utomatic Class Loader and forget about the :require ;)
^ avoiding capturing local variables in closures
385982 [cremes.devli] I do a lot of event-driven programming (Eventmachine, ZMQMachine). You would think that by now I would know how to answer this question but I'm a bit stumped.
+ 385983 [adgar carbon] #schedule_for_execution is capturing the variables foo, bar, bigarg1 and =
+ 385990 [robert.dober] Answered by Michael
+ 385996 [shortcutter ] Generally care should be taken about the value of self when a long
+ 385997 [cremes.devli] I want to be clear that I understand you. Here's some code that I think illustrates what you mean.
| 385998 [robert.dober] <snip> Right?
+ 386007 [bbxx789_05ss] Huh?
386009 [robert.dober] May I ask what your point is?
386019 [bbxx789_05ss] That what you said is wrong/doesn't make sense.
threads.html
top