377864-378382

377666-379916 subjects 378121-379405

^ unsubscribe
377864 [e-ken yandex] unsubscribe

^ unsubscribe
377865 [e-ken yandex] unsubscribe    unsubscribe   unsubscribe 'unsubscribe'
377866 [jeremy bopp.] ruby-talk-ctl@ruby-lang.org instead.  If that doesn't work for some

^ Search String and Delete Line Containing String
377868 [roberth mona] I am new to Ruby and am pulling my hair out on something that I know is
+ 377869 [roberth mona] I am new to Ruby and am pulling my hair out on something that I know is
+ 377872 [jeremy bopp.] path='c:\ruby192\my_projects\IIS_Logs\ex11012607.log'
+ 377873 [b.candler po] gsub! returns the whole line after the substitution has taken place, or
+ 377920 [shortcutter ] The simplest solution for this that I can think of is

^ TweetStream locations?
377870 [skins96 gmai] As I understand it, TweetStream has support for searching by locations.

^ remove array bracket
377882 [niezam54 hot] [{"name"=>"Efficiency (Energy)",
+ 377883 [yongjiawei g] Are these output to a txt file, or irb? Mind sharing your output
+ 377884 [jeremy bopp.] How does your script produce that output in the first place?  I'm going
+ 377887 [niezam54 hot] Actually i just want to remove the bracket (The very first and last
| 377888 [jeremy bopp.] The variable tar is an array of hashes, and the first output you posted
+ 377889 [niezam54 hot] class EnergyManagement < Environmental
| + 377890 [jeremy bopp.] At this point I can't see where the problem is since none of this
| + 377892 [cmdjackryan ] What does the Environmental class look like?
+ 377893 [niezam54 hot] class Environmental
| 377894 [jeremy bopp.] Given the way you used this class within the EnergyManagement class,
| 377910 [shortcutter ] title
| 377933 [jeremy bopp.] I think there is confusion here because of the way Nizam phrased the
+ 377901 [niezam54 hot] Thanks Jeremy,
| 377932 [jeremy bopp.] Check out Hash#merge.  Assuming you have an array of hashes in the
+ 377902 [niezam54 hot] Btw there is a catch, {yyyyyy} hash is created based on a looping method
| 377935 [jeremy bopp.] I'm not sure what you're saying here.  If you're saying you need some
+ 377992 [niezam54 hot] I have already solved the problem by myself by manipulating bit of the
  377993 [jeremy bopp.] What's important is that you fixed your problem and that you understand

^ What is the reason behind Array#zip's name?
377895 [darkintent g] I'm just curious I know that Array#zip generates a new array from arguments
377896 [jeremy bopp.] I think it's inherited from a similarly named function that carries out
377898 [darkintent g] Haskell happened to be the second place I have seen this particular function

^ What is the difference between a Ruby array and a list in Haskell or Lisps?
377897 [darkintent g] As the title asks what is the difference between a Ruby array and a list in
377904 [ninja slapha] Ruby arrays are probably closest to C++ vectors or Java ArrayLists -- almost
377908 [shortcutter ] in
377909 [fxn hashref.] FWIW, Common Lisp at least has also arrays.

^ [ANN] parslet 1.1 - a PEG parser library
377905 [eule space.c] parslet is a Parsing Expression Grammar based[1] parser generator
378007 [ryand-ruby z] library. Uff. Now that is out of our system, here goes what it really =

^ rjb - java vm error
377911 [nedumeritulc] in 'load': can't create Java VM (RuntimeError).
377914 [dhruva.sagar] Make sure Java is in your PATH and your JAVA_HOME environment variable is
377916 [nedumeritulc] I have set JAVA_HOME but i get the same error
377953 [artonx yahoo] I need more information about your envionment.
378036 [nedumeritulc] Microsoft Windows [Version 6.1.7600]
378041 [artonx yahoo] Then please let me know the command line output of
378191 [nedumeritulc] Exception `LoadError' at C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1113
378251 [artonx yahoo] Sorry for late reply

^ Question about donation
377917 [max dom-tv.i] Good afternoon!

^ cp_r is not working
377922 [eliranbz gma] I'm trying to build a program which copy from source folder to dest
377924 [shortcutter ] You need do prepend the path, e.g.
377944 [eliranbz gma] Thanks all, I figure it out, It tried to copy the folder itself to
378031 [xavier.nayra] Dir.foreach(path) do |file|

^ Is there a Date.now equivalent of Time.now/new?
377925 [mfcoder-ap y] On Ruby 1.8.7 and 1.9 somewhere (some ARM NAS device).
+ 377926 [rahegge gmai] Date.today.to_s
+ 377927 [peterhickman] You could just use Date.today
  377929 [mfcoder-ap y] Thanks.  I guess my point was (probably) that Date.now is more intuitive
  377940 [botpena gmai] not an anglois expert here, but

^ Soliciting some help with inject method
377934 [edmond.kacha] Rubysters,
+ 377936 [jeremy bopp.] array.inject({}) do |result, (key, value)|
+ 377937 [mentionuse g] You can do this without an inject, with a simple iteration and a bit of ||=
+ 377938 [wagner.andre] hash = array.inject({}) do |result, array|
| 377942 [edmond.kacha] 2011/2/2 Andrew Wagner <wagner.andrew@gmail.com>
| 377943 [edmond.kacha] e))
| + 377948 [jgabrielygal] You'd be surprised :-). If I didn't do anything wrong (I usually make
| + 377949 [botpena gmai] contribution,
+ 377941 [jgabrielygal] fails

^ Editing a text file and then replacing existing file
377945 [roberth mona] I have a script that I use to find text in a file and then delete the
377951 [jeremy bopp.] First of all, let's simplify this code by using a single regexp that
377957 [shortcutter ] Just an additional perspective: for things like this it's probably

^ General conceptual question
377946 [jmdetloff gm] I'm trying to have a script that runs at all times, pulling tasks from a
377947 [h3rald h3ral] Distributed Programming with Ruby --
378034 [jmdetloff gm] Thanks, that was just the guidance I needed to get me started in the

^ Amazing behavior of include module
377952 [pavel.strnad] charset=us-ascii
+ 377999 [wagner.andre] This is really quite odd to me. Especially since AAA::BBB.constants returns
| 378001 [mentionuse g] Including AAA at the top level, as in line 7, acts the same as including it
| 378013 [wagner.andre] This explanation makes sense, and certainly fits the facts. But why is doing
| + 378015 [adgar carbon] I'm actually working on a static analysis tool that came up against the =
| + 378035 [shortcutter ] it
+ 378008 [josh.cheek g] module A

^ Bug in system()?
377954 [anthony over] I've just hit a problem where the system() method to call an external program failed in a fairly unpredictable way, and I couldn't get any clues from within ruby to diagnose the problem, so I ended up debugging process.c to work out what the problem was.
378042 [shortcutter ] gram failed in a fairly unpredictable way, and I couldn't get any clues fro=

^ Gem win32-eventlog v0.5.2 on Ruby 1.9.1
377956 [lmayorga1980] 1.Requirement:  Read the latest lines of the Windows Application Event
377959 [luislavena g] Please try Ruby 1.9.2-p136.
+ 377960 [lmayorga1980] I will try this new version.
| 377962 [lmayorga1980] I tried the new version Ruby 1.9.2, installing the win32-eventlog gem
| 377966 [luislavena g] ne
| 377968 [lmayorga1980] You mean adding at the top of the script the following line.
+ 378003 [lmayorga1980] SOLUTION!!!!

^ problems installing Ruby Unit-0.5.6
377964 [bott2k7 yaho] To Whom It May Concern-

^ Need "=" to look like a strint
377965 [roberth mona] I have the following variable. Ruby looks at the = sign as a regex
+ 377975 [hassan.schro] ruby-1.8.7-p302 > pattern =3D %r{=3D}
+ 377978 [jeremy bopp.] You have a typo in your code sample here, and the message you see as a
  378012 [echristopher] I think he meant to use =3D~ instead.
  378014 [jeremy bopp.] That's a possibility, but take a look at the conversations in recent

^ Net::Telnet question
377970 [nick.hill.03] I am trying to use Net::Telnet to telnet to a website  to check network
378055 [b.candler po] That's the wrong tool for the job. If you just want to test that the

^ Help with outfile.write(line) unless line =~ search_text
377972 [roberth mona] Rather than having the output write the line unless it equals
377976 [pat.eyler gm] try if instead of unless
377981 [jeremy bopp.] Using if instead of unless is definitely clearer here, but you can also

^ master select list changes contents of slave select lists
377974 [danthom1000 ] I have one drop-down list (call it master) that needs to change the

^ Re: How do I get the server name?
377977 [weyus att.ne] `uname -n`.chop
378053 [b.candler po] You shouldn't get an error - it should give nil for unknown key.

^ Problem with return from method
377982 [byrnejb hart] .  .  .
377984 [byrnejb hart] Found the error.  I was not explicitly returning the remapped hash as a

^ Combining two file write commands
377986 [roberth mona] First, let me think everyone for the wonderful advice, especially,
377987 [jeremy bopp.] Each of these writes is executed under separate conditions, so they need

^ sql IN (and other special operators) and bind parameters
377994 [iainspeed gm] Does anyone know if any of the Ruby gems for SQL implement support for =

^ Converting date format (CSV to yaml)
377996 [niezam54 hot] Anyone know how to convert date format of .csv to . yaml?
+ 378002 [anurag08priy] cdate = "12/1/2011"
+ 378009 [brabuhr gmai] Another option could be to parse the String into a Date that is then
+ 378016 [niezam54 hot] cdate = "2011-01-12"
| 378017 [jeremy bopp.] The pp method is adding the quotation marks when printing the string.
+ 378018 [niezam54 hot] But when i tried transferring the ydate into my yaml structure, it still
| 378020 [jeremy bopp.] It's because you actually have a String rather than a Date object.  Try
+ 378021 [niezam54 hot] I used both method. Both of them return an error
+ 378024 [botpena gmai] when csv reads the data, it's still a string. you may want to convert
+ 378026 [niezam54 hot] problem solved. thanks guys!!!

^ Help needed for Ruby & Watir Configuration
378000 [successware ] Recently I installed following versions
378382 [pmckibbin gm] require 'watir'

^ Re: 1.9.2 irb and readline problem on ubuntu
378011 [user compgro] Do you acknowledge that this is correct time to receive the <a href="http://bestfinance-blog.com">loans</a>, which can help you.

^ Win32 Service Logon Failure
378022 [ashish_deepa] I desperately need help with this as I can't understand why it is
378348 [ashish_deepa] Found the solution.

^ For Loop with Steps?
378023 [thescholar h] And I already have a noob question.
+ 378025 [adgar carbon] charset=windows-1252
+ 378027 [botpena gmai] try this,
| 378033 [shortcutter ] There is also Fixnum#step
+ 378028 [thescholar h] Thank you very much!

^ wolf 0.1.0 - Initial release
378029 [gabriel.horn] Announcing an initial release of wolf, https://github.com/cldwalker/wolf,

^ loop, insdide do loop. do twice?
378030 [i8igmac aim.] mply = 0
378032 [shortcutter ] You can use #times for iteration.

^ [ANN] noe 1.3.0 Released
378037 [blambeau gma] noe version 1.3.0 has been released!

^ Re: noe 1.3.0 Released
378039 [jrmair gmail] What are the advantages of noe over https://github.com/twp/bones
378040 [blambeau gma] * I've tried to summarize the differences in two sections at

^ Class Instanciation in loop
378045 [alizee.penel] I am a beginner in Ruby and i am faced to a problem I do not understand.
+ 378076 [alizee.penel] Nobody wants to help me ?
| 378080 [botpena gmai] maybe because you did not provide all the relevant data/codes/classes/
+ 378078 [stefano.croc] nd.

^ Setter method for Hash value
378046 [rolfhsp gmai] I guess there is a simple solution to this, but right now, I can't come up
+ 378047 [botpena gmai] ct
| 378050 [chris.hulan ] You might want to have a look at http://www.ruby-doc.org/stdlib/libdoc/forwardable/rdoc/index.html
+ 378048 [Carey.Nation] Try calling it props=3D for the method name itself.
+ 378049 [zhangsu live] class MyClass
+ 378051 [rolfhsp gmai] I see I have forgotten something when extracting code to a more generic
+ 378052 [b.candler po] def []=(key,value)
  378056 [rolfhsp gmai] line)
  + 378073 [botpena gmai] objects receive methods wc return objects, wc in turn can receive
  | 378074 [botpena gmai] sorry, ignore the previous unclear post..
  | 378082 [rolfhsp gmai] Thanks for the input, botp.
  + 378081 [b.candler po] Then the 'props' object which you return needs methods [] and []=
    378094 [rolfhsp gmai] Hei Brian
    + 378095 [jgabrielygal] class MyClass
    | 378098 [rolfhsp gmai] It does seem to be working. At least the example "requirements" that I
    | 378105 [jgabrielygal] 1.- Calls on the instance of MyClass: props and props=
    | + 378138 [rolfhsp gmai] 2011/2/4 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>
    | + 378180 [rolfhsp gmai] 2011/2/4 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>
    |   378196 [jgabrielygal] ore
    + 378097 [b.candler po] Then simply return an object with those characteristics. This is Ruby,

^ Need a method to generate cubic spline control points
378058 [rich gandalf] My name is Rich Price and I am looking for some help from a
378066 [wagner.andre] So this math is a little over my head, but I can read the ruby and c# pretty

^ Search directory for containing specified string
378060 [roberth mona] I am trying to search a directory for all files that contain a specific
+ 378064 [jeremy bopp.] It's able to filter files based on regular expressions as well as
+ 378071 [angel_steel ] check to make sure MQ4 are text files. I suspect its an executable file
+ 378084 [shortcutter ] Do you want to look for literal parentheses?  Otherwise this empty

^ Parsing Log records with regular expressions
378061 [iamkrisko gm] I have a log file which is text based which has records in two formats
378083 [shortcutter ] Question is: why do you want to do that?  Line based parsing is simple
378107 [iamkrisko gm] Thanks for the prompt response. Apprecite your taking the time to

^ windows: show activex
378065 [rogerpack200] or its equivalent for WIN32OLE ?
378092 [koulikoff gm] I'm afraid, you will have to write it yourself ;-)

^ Strange "ruby -r debug t.rb" for PickAxe ver. 2's Fibonacci example
378067 [RichardDummy] Following are two examples of using ruby-debug on PickAxe ver. 2
378069 [rocky.bernst] The Ruby program debug.rb which comes with Ruby 1.x is what you get when
378093 [RichardDummy] ithub.com/rocky/rb-trepanningandhttp://github.com/rbx-trepanning) I've trie=

^ [ANN] kgio 2.2.0 - kinder, gentler I/O for the Internets
378072 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising

^ Re: kgio 2.2.0 - kinder, gentler I/O for the Internets
378075 [sunaku gmail] In case anyone is new to programming: the above is in ROT13.

^ problem with inheritance
378077 [lwrncmaina g] class Input_Agent
+ 378079 [b.candler po] In this code you are reading these values into local variables, which
+ 378091 [lwrncmaina g] Thanks Brian. I declared the matrices in Solution_Agent in class

^ require 'kwalify' fails
378085 [jean-christo] I need to validate a YAML schema. I have found the Kwalify gem, but then
378125 [Ruby GoogleM] "fails" is not exactly a descriptive error message.

^ Major update for R2CORBA available
378086 [mcorino reme] Remedy IT is pleased to announce the release of version 1.0 of the Ruby

^ Arrays and defs
378087 [jens.finnas ] I've now run in to a problem I can't get my head around.
+ 378088 [wagner.andre] The problem here is that whenever you type "def", you start a new scope. An=
| 378090 [masap.hat gm] My recommends are
+ 378089 [jens.finnas ] Cheers. Thanks for all the advice. I have to admit that I'm not very
+ 378099 [botpena gmai] ^^^^^ lose this. not needed since you created list below
  378114 [b.candler po] Good idea here.

^ problem determining uniqueness in array of arrays
378100 [byrnejb hart] I create an array of arrays, each inner array containing the mtime value
+ 378102 [botpena gmai] pls show your code.
+ 378103 [byrnejb hart] I discovered my error. The Pathname varied ever so slightly

^ Qt: Can't require 'qtwebview', and problems with SIGNALs
378101 [gi11 open.by] Ruby186/lib/ruby/gems/1.8/gems/qtruby4-2.1.0-x86-mswin32/lib/QtWebKit.dll=

^ Ocra: Problems with encoding(maybe)
378104 [gi11 open.by] When the "compile" the program (which uses qt) is in place characters

^ Does RSTRING_PTR() return a '\0' terminated C?
378106 [ibc aliax.ne] a Ruby string. I'm just interesed in Ruby 1.9.
+ 378110 [normalperson] It's one of my favorite things about Ruby 1.9: small strings (3 words -
| 378112 [drbrain segm] given
| 378115 [normalperson] Yes, embedded NULLs are always a problem :/
+ 378124 [matz ruby-la] It was true on 1.8 but no longer on 1.9.  If you need NUL terminated
  378136 [ibc aliax.ne] Thanks to all. Indeed StringValueCStr() does the job. However until

^ [ANN] unicorn 3.4.0 - for people with very big LANs
378116 [normalperson] Unicorn is an HTTP server for Rack applications designed to only serve

^ Determining uniqueness on a single array element
378117 [byrnejb hart] I am loading file names and mtimes into an array and then putting that
+ 378118 [gwtmp01 mac.] outer_array.uniq { |mtime, name, md5| md5 }.do |mtime, name, md5|
+ 378133 [b.candler po] (1) auto-splat to avoid the [2] magic index
  378215 [byrnejb hart] Very nice. Thank you.

^ MFT parsing - NTFS
378119 [stuart.clark] I have done some searching and have not dug anything up.

^ [ANN] rake-compiler 0.7.6 Released
378120 [luislavena g] rake-compiler version 0.7.6 has been released!
threads.html
top