Fun Board


Go Back   Fun Board » Moderated usnet disscussion » Programming

Ruby Everything about programming in Ruby language.


Popular Tags: Ruby
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

 
Threads in Forum : Ruby Forum Tools Search this Forum
  Rating Thread / Thread Starter Last Post Reverse Sort Order Replies Views

Binding scope

Dave Birch wrote: > Josh, thanks VERY much for the response. I'm going to digest it and > will let you know once I've got it working No. Better to go for a solution without the security hole. It should be possible, but ask on the Rails list instead. > > Have a good weekend. >
Dave Birch
15th December 2010 22:48
by Marnen Laibow-Koser Go to last post
10 1,745

[Q] WIN32OLE memory leaks

On Jan 15, 2010, at 3:45 PM, Chuck Remes wrote: > > On Jan 15, 2010, at 12:28 PM, brabuhr@gmail.com wrote: > >> Jan 13, 2010, Chuck Remes: >>> Jan 13, 2010, brabuhr@gmail.com: >>>> Jan 13, 2010, Chuck Remes: >>>>> Jan 12, 2010, Luis Lavena: >>>>>> Jan 12, 2010, Chuck Remes:
Chuck Remes
15th December 2010 22:48
by Chuck Remes Go to last post
11 221

How to know the OS architecture (32 or 64 bits)?

El Viernes, 15 de Enero de 2010, Walton Hoops escribi=C3=B3: > submit a bug! http://github.com/rdp/os I was to submit a report but Roger has already improved it :)=20 =2D-=20 I=C3=B1aki Baz Castillo <ibc@aliax.net>
=?utf-8?q?I=C3=B1aki_Baz_Castillo?=
15th December 2010 22:48
by =?utf-8?q?I=C3=B1aki_Baz_Castillo?= Go to last post
21 241

Building mysql extension/gem with MinGW (was Re: Gem build issuesUbuntu 9.10 64 bit)

On Jan 14, 9:11 pm, Eric Christopherson <echristopher...@gmail.com> wrote: > > <echristopher...@gmail.com> wrote: > > Since people are talking about the mysql gem, I thought I'd ask how > > you can build it under MinGW. I can't seem to make any combination of > > extconf switches work. > ...
Eric Christopherson
15th December 2010 22:48
by Luis Lavena Go to last post
1 275

Foolproof way of determining host platform

Thomas Sawyer wrote: > The OS gem looks promising. > > My question is why isn't something like this a standard part of Ruby? One word: Skynet. -- Posted via http://www.ruby-forum.com/.
Paul Mckibbin
15th December 2010 22:48
by Aldric Giacomoni Go to last post
5 259

Float Points error

Gary Wright wrote: > I see it is time for the Floating Point 101 thread again. > Lots of discussion in the archives (about once per month I think, maybe more often). Actually, I believe that the last two(!) threads are still running. So, we have now gotten to the point where the *exact...
THAKUR PRASHANT SINGH
15th December 2010 22:48
by =?utf-8?Q?J=C3=B6rg?= W Mittag Go to last post
5 250

End of line problem with xmlrpc

On 15.01.2010 17:46, Hubert Martin-deidier wrote: > Robert Klemme wrote: >> This one irritates me: by using base64 encoding you should be fine, >> shouldn't you? > > I also agree with you, I can even say that I completly agree with you. > I quicky look at source code of XMLRPC protol but I'm...
Hubert Martin-deidier
15th December 2010 22:48
by Phillip Gawlowski Go to last post
4 806

Please Help I'm new in Ruby -- Input Problem

On Sat, 16 Jan 2010, Nolly Mejia wrote: > Matthew K. Williams wrote: >> On Sat, 16 Jan 2010, Nolly Mejia wrote: >> >>>> http://www.marnen.org >>> Please enter number 1 : >>> Please enter number 2 : >>> Answer : 5 >>>
Nolly Mejia
15th December 2010 22:48
by Matthew K. Williams Go to last post
4 260

Nested Function Confusion

Josh Cheek wrote: > Hi, couldn't find any explanation of nested functions (other than an > acknowledgment of their existence) in Programming Ruby or the Ruby > Programming Language, so thought I'd see what people here could tell me. > > I'm having a difficult time understanding what is going...
Josh Cheek
15th December 2010 22:48
by Justin Collins Go to last post
1 323

How to know if $stderr is reopened to /dev/null

El S=E1bado, 16 de Enero de 2010, Seebs escribi=F3: > On 2010-01-15, I=F1aki Baz Castillo <ibc@aliax.net> wrote: > > Hi, how could I know if $stderr has been redirected to /dev/null? >=20 > You couldn't. >=20 > Consider a wrapper: >=20 > exec 5>/dev/null > ruby foo.rb 2>&5
=?utf-8?q?I=C3=B1aki_Baz_Castillo?=
15th December 2010 22:48
by =?iso-8859-1?q?I=F1aki_Baz_Castillo?= Go to last post
6 244

[ANN] ListBrowser 0.1.0 released: Browse tree structures!

Aldric Giacomoni wrote: > ~~~~ ListBrowser README ~~~~ > > I was working on a parser for a very specific tree structure, and was > frustrated > that there wasn't a simple way to parse it in irb. "What??", I thought. > "I have > to use my brain?! God forbid!". Right. As I was saying..
Aldric Giacomoni
15th December 2010 22:48
by Aldric Giacomoni Go to last post
1 240

3D with Ruby (Ogre ?)

I tested Ruby-processing and I saw good 3D samples made thanks to OpenGL. But I did'nt find people using it to do something. I just found some samples using free-context, but it's not 3D. Does someone use Ruby-Processing to made something greater than a 15 seconds technical demo ? --...
Marc-antoine Kruzik
15th December 2010 22:48
by Marc-antoine Kruzik Go to last post
21 259

rubygems: bad urls

Excerpts from Luis Lavena's message of Thu Jan 14 14:45:10 +0100 2010: > On Jan 14, 6:16*am, Phillip Gawlowski <p...@thimian.com> wrote: > > On 14.01.2010 09:56, Marc Weber wrote: > > > > > So what's happening here? > > > > Gems are hosted on gemcutter.org by now, not RubyGems. > > > >...
Marc Weber
15th December 2010 22:48
by Marc Weber Go to last post
3 216

Recommended Reading (also: Arrays/Hashes)

Marnen Laibow-Koser wrote: > > Once you have 2 users -- or 1 user doing multiple simultaneous things -- > you have potential concurrency issues. SQLite is not a suitable > database in that case. Fortunately, there are enough decent database > abstraction layers for Ruby (ActiveRecord,...
Zach Bartels
15th December 2010 22:48
by Bill Kelly Go to last post
16 239

Public Key encryption

If it's an RSA key you can construct it from its parameters. require 'openssl' module OpenSSL module PKey class RSA # Construct an RSA key from parameters. # Input: a large number n # an exponent
MrBanabas@googlemail.com
15th December 2010 22:48
by Brian Candler Go to last post
4 215

using ruby for flash (newbie)

Angel Marques wrote: > Hi..anybody has trying use ruby for flash (using hotruby or other > stuff), where can I search more info how install and work with it? I discovered HotRuby a few hours ago. There are two samples on their website : http://hotruby.yukoba.jp/test-web/pinball.html...
Angel Marques
15th December 2010 22:48
by Marc-antoine Kruzik Go to last post
2 232

Gem build issues Ubuntu 9.10 64 bit

Since people are talking about the mysql gem, I thought I'd ask how you can build it under MinGW. I can't seem to make any combination of extconf switches work. I have the standard Windows mysql-5.1.42-win32 installed in /usr/local/mysql. Do I need some MinGW-specific version? (I've tried...
Dale Ackerman
15th December 2010 22:48
by Eric Christopherson Go to last post
2 228

Net:HTTP questions...

Phillip Gawlowski wrote: > On 15.01.2010 04:46, Jean Nibee wrote: > > How about this? > http://rdoc.info/projects/archiloque/rest-client > > You should be able to use PUT and DELETE if you dig deep enough into > rest-clients sources. > > N.B.: I haven't used rest-client.
Jean Nibee
15th December 2010 22:48
by Jean Nibee Go to last post
2 246

[ANN] os gem: initial release: easier platform management

>> If there are any other features you'd like, let me know. > > Does it do OS.mac? yet? If not, that would be nice, particularly for > JRuby/Swing apps where certain UI stuff is done differently for Mac OS. Great idea. -r -- Posted via http://www.ruby-forum.com/.
Roger Pack
15th December 2010 22:48
by Roger Pack Go to last post
4 250

Notifying via Terminal in Linux

Hello Kurtis, 2010/1/15 Kurtis Rainbolt-greene <thinkwritemute@gmail.com>: > So I've got this idea for a linux CLI program, and one of the things I > want the program to do is notify Users of an event via the terminal. > > Is there something out there I can use to do this? I was thinking of...
Kurtis Rainbolt-greene
15th December 2010 22:48
by Jean-Julien Fleck Go to last post
5 260

Not able to create using rake

jagadeesh@jagadeesh-laptop ~/TODO/mysql $ rake db:create:all (in /home/jagadeesh/TODO/mysql) Couldn't create database for {"encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "database"=>"todo_production", "pool"=>5, "host"=>"localhost", "password"=>"xxx", "socket"=>"/var/run/mysqld/...
Jagadeesh
15th December 2010 22:48
by Jagadeesh Go to last post
0 244

Can not install mysql gem

Hi Dale, Follow the above link to view solution. Luis has showed me that I installed the incompatible MySQL version. Nam. Dale Ackerman wrote: > I am having the same issue with sudo gem install mysql I also have the > same issue with the sqlite3-ruby gem build... Should there be...
Nam gi Vu
15th December 2010 22:48
by Nam gi Vu Go to last post
3 230

Getting Started w Ruby on MacOSX -- ri/RDoc error

M. Norton wrote: > I did finally figure it out so I will document the answer here in case > it helps someone else. > > Somewhere along the line with installing ruby, rails, and other gems, > the local ri cache was created and owned by root. I'm not entirely > sure why, but that explained the...
M. Norton
15th December 2010 22:48
by Aaron Broad Go to last post
3 217

NOOB Question on Instance Variable

On 2010-01-12, BlueHandTalking <jet@whidbey.com> wrote: > I thought it was based on Ruby, and Rails is written in > Ruby that it fit into the category of being about Ruby? There are rails-related questions that are Ruby questions, but not all that many. Lemme give you an example. Say you...
BlueHandTalking
15th December 2010 22:48
by Seebs Go to last post
12 226

Instance Variable

On 2010-01-12, BlueHandTalking <jet@whidbey.com> wrote: > If you have a class 'Thing' > > does name of instance variable have to be: > > @thing = Thing.new > > or is > > @widget = Thing.new
BlueHandTalking
15th December 2010 22:48
by Seebs Go to last post
4 213

Ruby Regex

2010/1/14 Brian Candler <b.candler@pobox.com>: > Robert Klemme wrote: >> For me there is actually something weird about Ruby's escape handling >> - but it's something else: in some circumstances Ruby allows you to >> *omit* a backslash which is meant to be convenient (I believe) but >> which...
Sriram Varahan
15th December 2010 22:48
by Robert Klemme Go to last post
14 212

Bug with end of string characters in regex?

On Thu, Jan 14, 2010 at 12:50 PM, Robert Klemme <shortcutter@googlemail.com> wrote: > 2010/1/13 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan@gmail.com>: >> On Wed, Jan 13, 2010 at 6:33 PM, Justin Coyne <digger250@gmail.com> wrot= e: >>> Looks like I've solved my own problem the \Z in ruby doesn't...
Justin Coyne
15th December 2010 22:48
by =?ISO-8859-1?Q?Jes=FAs_Gabriel_y_Gal=E1n?= Go to last post
5 243

xrefresh server, rb-inotify and ioselect

I've tracked it down: This example require 'rb-inotify' notifier = INotify::Notifier.new begin io = notifier.to_io nr = 1
Marc Weber
15th December 2010 22:48
by Marc Weber Go to last post
1 217

how change encoding?

2010/1/14 Marcelo Cavaco <marcelocavaco@veloxmail.com.br>: > hi everybody, > > please help... > > i have a file (Documenta=C3=A7=C3=A3o.txt) with this structure: > > my_data << = to_a > my_data << .to_a
Marcelo Cavaco
15th December 2010 22:48
by Robert Klemme Go to last post
1 215

Cucumber Scenario Outline

Thanks Jacob! Excelent explanation! I think that Background do exactly what I want. :D -- Posted via http://www.ruby-forum.com/.
Jonatas Paganini
15th December 2010 22:48
by Jonatas Paganini Go to last post
2 273

hash /expecting tASSOC/

On 14.01.2010 22:36, aidy wrote: > Apologies for being an idiot Don't you worry. :) I've noticed that all other key/value pairs have a space around the =>, and the last one didn't. So, your typo was drowned in the noise, as it were. --
aidy
15th December 2010 22:48
by Phillip Gawlowski Go to last post
3 239

[QUIZ] Digits of e (#226)

After recovering some vaguely remembered math, and trying not to look to closely at any code on the net, here is my solution. The reference data for testing, from Project Gutenberg, has been truncated for this posting. The program will report "Incorrect" for more than a couple of hundred...
Daniel Moore
15th December 2010 22:48
by William Rutiser Go to last post
5 205

Ruby editing style rules and recommendation?

On Sat, Jan 9, 2010 at 9:01 PM, Nathan Oyama <nate@culip.net> wrote: > 0.step(0.5,0.1) { |i| p i } > > while Aaron wrote: > > (0..0.5).step(0.1) do |f| > =A0p f > end > > Which one is recommended in terms of the editing style?
Nathan Oyama
15th December 2010 22:48
by Lars Christensen Go to last post
11 198

roll back to last command in irb

>> >> I'm talking about a development box, not a production one. I was >> thinking that maybe ruby1.9 is a snapshot and therefore sometimes >> wouldn't work. So I installed ruby1.9.1. Am I correct? Ruby1.9 is an old release of ruby1.9.0, and is the only one available on Ubuntu releases...
Ruby Newbee
15th December 2010 22:48
by Jonathan Nielsen Go to last post
6 204

Is 'rescue' expensive ?

One of the things that seems to be mostly missing from this discussion (which after all started out with dealing with a difference between Ruby 1.8 and 1.9, is that since Ruby class definitions are executable, you can move the overhead to class definition time with code like class Foo def...
R. Kumar
15th December 2010 22:48
by Rick DeNatale Go to last post
11 188

Using underscores for "private" instance variables?

On Wed, 13 Jan 2010 11:11:34 +0900 Jeff <cohen.jeff@gmail.com> wrote: > On Jan 12, 9:48=C2=A0am, Gregory Brown <gregory.t.br...@gmail.com> wrote: > > On Tue, Jan 12, 2010 at 10:33 AM, Jeff <cohen.j...@gmail.com> wrote: > > > But I haven't seen anyone else need to do this in their modules/ >...
Jeff
15th December 2010 22:48
by Martin Boese Go to last post
5 227

TCPSocket doesn't detect remote disconnection inmediatelly

El Mi=E9rcoles, 13 de Enero de 2010, Aaron Turner escribi=F3: > > Is there a way to detect it in Ruby using TCPSocket? if there some > > attribute of the socket object that changes whe such ACK+FIN arrives? > > (however I've tried most of the TCPSocket methods and found nothing). >=20 >...
=?utf-8?q?I=C3=B1aki_Baz_Castillo?=
15th December 2010 22:48
by =?iso-8859-1?q?I=F1aki_Baz_Castillo?= Go to last post
7 254

instance_eval with local variable

On Jan 12, 1:19 pm, Brian Candler <b.cand...@pobox.com> wrote: > I believe your lambda is bound to the @who in the scope where it was > defined, you can't dynamically rebind it. Nope: >cat tmp.rb @who = "main" proc = ->{ p @who } proc
Phrogz
15th December 2010 22:48
by Phrogz Go to last post
5 200

SPOJ ? Test for end of file input

2010/1/13 Brian Candler <b.candler@pobox.com>: > Robert Klemme wrote: >> I would do >> >> $stdin.each do |line| >> =A0 line.chomp! >> =A0 puts "I got #{line} !!" >> end >> >> because that is the more Ruby typical idiom for iterating all lines.
Aldric Giacomoni
15th December 2010 22:48
by Robert Klemme Go to last post
7 208

ffi, kerberos

Luc Heinrich wrote: > On 13 janv. 2010, at 16:53, Daniel Berger wrote: > > > Now I need to figure out how to create an FFI::MemoryPointer without > > necessarily knowing the size of the first argument. > > The one bit you are missing here is that krb5_context is not a struct. It= 's a...
Daniel Berger
15th December 2010 22:48
by Daniel Berger Go to last post
6 178

how to judge the command result of batch by Net::telnet

tony Tiankoon wrote: > If from the command ,to make sure that > there is not any exit command in the windows batch script. Yes, that's basically what you'll need to get it back from telnet. However, if the server has sshd running then it's possible to execute a command remotely and get the...
Liu Nuaadupu
15th December 2010 22:48
by Brian Candler Go to last post
1 201

Re: XML Manipulating

Anandh =A0 Apply an XSLT with Ruby On Rails.=20 Please refer http://snippets.dzone.com/posts/show/4615 =A0 http://www.xml.com/pub/a/2007/01/17/making-xml-in-a-rails-app-xml-builder.h= tml =A0 thanks
Deepak Vohra
15th December 2010 22:48
by Deepak Vohra Go to last post
0 458

suggestions for using Rack-based Ruby apps on Windows?

On 13.01.2010 20:44, Nick Brown wrote: > Alternatively, what is the best solution for authenticating to Windows > domains from unix Rack servers? We have found that Apache+Samba does not > play well with our domain, but we could potentially move the domain > stuff to the webapp-level if that...
Nick Brown
15th December 2010 22:48
by Phillip Gawlowski Go to last post
1 219

Remote Rake without SSH

Marnen Laibow-Koser wrote: > Would this be ambitiouslemon, by any chance? No.It's called HelioHost. > If you need free Rails hosting, I recommend Heroku. Thanks for the recommendation, I haven't heard of it. :) -- Posted via http://www.ruby-forum.com/.
Anton Pirogovski
15th December 2010 22:48
by Anton Pirogovski Go to last post
7 204

[ANN] bellhop 1.0.0 released

On Tue, Jan 12, 2010 at 2:24 PM, I=F1aki Baz Castillo <ibc@aliax.net> wrote= : > El Martes, 12 de Enero de 2010, Gregory Brown escribi=F3: > I think my laptop has no system bell or I dissabled it long time ago :) That would explain it. I guess I'm in the weird minority that likes to feel...
Gregory Brown
15th December 2010 22:48
by Gregory Brown Go to last post
11 202

The Ruby GUI debacle

On 12/1/2010 9:35 AM, Marnen Laibow-Koser wrote: > Mohit Sindhwani wrote: > >> On 12/1/2010 1:34 AM, Ruby Student wrote: >> >>> nice people, like yourself. I thought this was an "innocent" question! >>> >>> You know, one of the biggest problem I find with the majorities of the >>> GUI... (Multi-page thread 1 2 )
Ruby Student
15th December 2010 22:48
by Mohit Sindhwani Go to last post
36 412

fib.rb 1.9.1/1.8.6 source code conflicts/errors

> No, I disagree that the code is 'wrong' (that's why I used the quotes). Yes, the code is 'wrong' because it does not correctly produce the Fibonacci series. > It's a benchmark. Its sole purpose in life is to be run a number of > times, and to have its execution time measured. If fib()...
jzakiya
15th December 2010 22:48
by jzakiya Go to last post
4 202

redirecting output ruby and from stdout results in blank file

On Jan 11, 2010, at 5:05 PM, comp.lang.ruby wrote: >=20 > Thanks a lot for the suggestion. However, std_error is redirecting > fine and I have noticed that when I omit the redirection characters in > the open command, the ouput is outputted to stdout, as I expect. I am > happy to switch to...
comp.lang.ruby
15th December 2010 22:48
by Gary Wright Go to last post
4 225

File::exists?( "filename with a blank in it" )

W. James wrote: > Ralph Shnelvar wrote: > >> >> Isn't a Windows pathname with surrounding double quotes a valid >> pathname?!?!? > ... > If you enter > dir foo*
Ralph Shnelvar
15th December 2010 22:48
by Ralph Shnelvar Go to last post
7 208

A.module_eval question

On 11.01.2010 21:42, Aryk Grosz wrote: > I'm having trouble understanding why this is: > > module A > module B > end > end > > A.module_eval "B" -> A::B > A.module_eval do B end -> ERROR!
Aryk Grosz
15th December 2010 22:48
by Robert Klemme Go to last post
1 205

Integration testing ..

Ohh .. M sorry .. :) Brian Candler wrote: > Hemant Bhargava wrote: >> I have defined a module and running a simple get request to it as like >> >> def test_access_pages_admin >> get "employees" >> assert_response :success
Hemant Bhargava
15th December 2010 22:48
by Hemant Bhargava Go to last post
3 197

How to close a TCP socket? (TCPSocket#close doesn't close it)

El Martes, 12 de Enero de 2010, Brian Candler escribi=C3=B3: > When I run this code, substituting a 'www.google.com' and port 80, I see > the socket in TIME_WAIT state if I go to another terminal. >=20 > This is with > ruby 1.8.6 (2007-09-24 patchlevel 111) > built from source, running...
=?utf-8?q?I=C3=B1aki_Baz_Castillo?=
15th December 2010 22:48
by =?utf-8?q?I=C3=B1aki_Baz_Castillo?= Go to last post
7 205

XML Manipulating

Hi Anandh, I've cross-posted my reply to nokogiri-talk, which is where followup questions are probably best sent. On Tue, Jan 12, 2010 at 6:44 AM, Anandh Kumar <anandhthiyagarajan@gmail.com>wrote: > Hi everybody >
Anandh Kumar
15th December 2010 22:48
by Mike Dalessio Go to last post
2 500

What is ruby-web.exe

Walton Hoops wrote: > On 1/8/2010 8:15 AM, Michael Hughesdon wrote: >>> tell me what ruby-web.exe is and where I can get an installer from? >>> >>> Thanks. >>> >> After a little more searching...ruby web was a foundation built to >> better support ruby on the web. It appears to have been...
Michael Hughesdon
15th December 2010 22:48
by Michael Hughesdon Go to last post
3 206

Non-blocking communication between Ruby processes

El Lunes, 11 de Enero de 2010, Gary Wright escribi=F3: > On Jan 10, 2010, at 8:00 PM, I=F1aki Baz Castillo wrote: > > I got the mixed strings using a name pipe (created with "mkfifo" comman= d) > > and shared by two different Ruby programs (a writer and a reader). >=20 > A named pipe and a...
=?utf-8?q?I=C3=B1aki_Baz_Castillo?=
15th December 2010 22:48
by =?iso-8859-1?q?I=F1aki_Baz_Castillo?= Go to last post
29 209

Debugger pains

On Mon, Jan 11, 2010 at 15:02, tuti plain <hypermeister@yahoo.com> wrote: > Hi all, > > I am testing a script using the built-in debugger (running 1.8.6 - > windows - one click installer version). =A0I want to set a breakpoint on = a > particular method. =A0The problem is, my first line is >...
tuti plain
15th December 2010 22:48
by Jano Svitok Go to last post
1 193

OT: Setting up Paypal/Merchant processing

On this topic, does the ActiveMerchant gem cover the recent PayPal 'X' spli= t payments options? Does such an upgrade to PayPal api allow better options supporting subscriptions? MarkT -- =E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=A2=E3=82=A6=E3=83=88=E3=81=8C=E3= =80=81Jingle =E3=81=A0!
Rajinder Yadav
15th December 2010 22:48
by Mark T Go to last post
4 203

[ANN] LA Ruby Conference 2010 - Call for Proposal Extended 48 hours

The Los Angeles Ruby Conference is being held February 20th in Burbank, CA at the Holiday Inn Media Center. For more information visit the conference web-site at http://budurl.com/larc. This is the second year we have held the conference. Here are the videos from last year...
Coby Randquist
15th December 2010 22:48
by Coby Randquist Go to last post
0 236

Regex help

At 2010-01-11 07:57AM, "Robert Klemme" wrote: > 2010/1/11 Stefano Crocco <stefano.crocco@alice.it>: > > =A0/^{4},{4}$/ > > > > Note that your string can contain newlines, you must replace ^ and $ with= > \A > > and \Z respectively. > > I believe this should rather be \z because \Z...
Chris Lervag
15th December 2010 22:48
by Glenn Jackman Go to last post
7 208

How to modify a text value in a xml?

Hi, folks I met a problem with xml. I can't write to the file directly, here is my code: f = File.open(FILE_NAME) xml = REXML::Document.new(f) xml.root.each_element do |xml| xml.each_element do |node| #if the node name equal to Properties
Milo Luo
15th December 2010 22:48
by Milo Luo Go to last post
0 747
 

Display Options
Showing threads 1 to 60 of 1835
 
Forum Tools Search this Forum
Search this Forum :

Advanced Search

New posts New posts More than 15 replies or 150 views Hot thread with new posts
No new posts No new posts More than 15 replies or 150 views Hot thread with no new posts
Closed Thread Thread is closed  
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +1. The time now is 09:05.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2