321007-339530

320812-381294 subjects 321230-336576

(OT) Ruby API file for Notepad++
321007 [aidy.lewis@g] Has anyone written a Ruby API for Notepad++ that provides Intellisense
321079 [chris.hulan@] There is an api file on the site (http://notepad-plus.sourceforge.net/

Battleship Tournament 1 week notice
321017 [micah@8t li ] ...

ODBC, 'Sql server', XP:  beyond connection
321021 [asm.sol@ex i] I believe I've connected to Microsofts' SQL Express, however, I'm stuck.
+ 321369 [Aldric Giaco] How about rows[0][0] ?
+ 321501 [asm.sol@ex i] Though I posted on this forum, I found a valuable answer

my attr_accessor
321028 [CiberCitizen] I tried to
+ 321032 [ shot@ho .p ] f =3D Foo.new {
| 321063 [jgabrielygal] irb(main):001:0> class Foo
+ 321118 [CiberCitizen] My solution above for having

Re: Can you run a command line script with arguments, withou
321029 [s.korteling@] puts ARGV
321096 [williams.jay] Doesn't seem to work that way for me. I created a file called args.rb

Chris Pine tutorial assistance chapter 7 sort data without use of  .sort method
321037 [jgheal@go gl] I'm learning to progam and came accross Chris Pine's Ruby Tutorial.
+ 321038 [robert.dober] Pick a simple on for starters; like Bubble Sort (though it is really a
| 321081 [jgheal@go gl] Thankyou for the responce.
+ 321082 [hgs@dm .a .u] That's all fairly clear....
| 321111 [jgheal@go gl] ram/?Chapter=3D07
| + 321121 [hgs@dm .a .u] ...
| + 321283 [jgheal@go gl] ogram/?Chapter=3D07
+ 321083 [cidza@ti .i ] I am a beginner too;
  + 321085 [list.rb@gm i] I'm ashamed to say I recently learned this, but thought is share just
  | + 321087 [cidza@ti .i ] grazie (italian for thanks)
  | + 321108 [robert.dober] Try
  + 321091 [jgabrielygal] the arguments, which is supposed to give you a better insight on what

Good math/stats libraries for Ruby?
321039 [kenneth.m.mc] There seem to be lots of small stats/math libraries for Ruby, but none
321068 [saji@ap c2 .] Ken,
321077 [AEtzold@gm .] Dear Ken,
+ 321084 [micathom@gm ] On windows you could use the COM/OLE server for R.
+ 321090 [joe@ta kh us] Math/stats libraries still seem to need a bit of work compared to =20
  321126 [cameron.mcbr] uby
  + 321130 [saji@ap c2 .] Ruby
  | 321298 [cameron.mcbr] I've run across this a couple times, but have never tried to use it.
  | 321441 [saji@ap c2 .] I have not much experience with GSL bindings. Looks like a collection of
  + 321176 [joe@ta kh us] ...

Chris Pine tutorial assistance chapter 7 sort data without use of  .sort method
321040 [jgheal@go gl] I'm learning to program and came across Chris Pine's Ruby Tutorial.

Hosts with just Ruby?
321044 [kmurph79@ho ] I'm looking to host a simple, cheap, website, and since all hosts have
+ 321045 [richard.conr] They do exist alright, I have seen a lot of tutorials for getting
+ 321140 [perrin@ap th] Accounts at many shared hosting providers that offer Rails can also be

needed - ass kicking rubyist level 4.2
321049 [ara.t.howard] here's the gig
+ 321062 [lojicdotcom@] Sure you're looking for a Python programmer given the multitude of
| 321064 [tony@me io .] ...
| + 321100 [lojicdotcom@] "Oh no, not again!" :) that's what I get for posting when I'm
| + 321107 [robert.dober] What? Wait,  do you mean that Ada does not stand  for *Ada*ms ????
+ 321102 [martindemell] Best job posting ever :)
  321105 [gregory.t.br] Definitely.  I actually started posting a reply to Ara after realizing

pipe in cmd-line text but then reset STDIN for menu
321050 [sio2usa@ya o] I'm trying to make a customized pager utility that can process
321066 [b.candler@po] I think what you're asking is: how can I write a program which does the
321112 [sio2usa@ya o] Brian,

Permission problem under WinXP
321051 [RichardDummy] I generated a Ruby on Rails app, which among other things,  had to
321053 [djberg96@gm ] data = File.open(name).readlines
+ 321055 [RichardDummy] ed I
+ 321058 [RichardDummy] ed I
  321059 [djberg96@gm ] Excellent, glad to hear it.

Permission problem under WinXP
321052 [RichardDummy] I generated a Ruby on Rails app, which among other things,  had to

Get Paid  100-500$ free one day by click ads
321061 [yingwen@1d s] Get Paid  100-500$ free one day by click ads

no such file to load sqlite3
321069 [bjohnson@bi ] Ever since I updated my gems I have been getting the following error any
321070 [robert.dober] Did you do the threaded
321631 [college914@g] Could you explain this more?  I have seen this error reported over and
+ 321636 [d_rems@ya oo] It is not impossible but it is unfortunate litle more complicated. With
| + 321639 [college914@g] Thanks for the quick response!
| + 321642 [saji@ap c2 .] Maybe it is not necessary to have admin rights. I did this on a machine
+ 321651 [robert.dober] Oops so sorry, you had a problem during installation not using the
  321678 [college914@g] Well, I think you might have a point. I'll try what you're suggesting
  321685 [college914@g] OK, I've tried to compile it locally and I have a basic question.  How
  321688 [college914@g] gem install --version 1.2.3 sqlite3-ruby

Getting single char from string -- Simpler solution?
321073 [s_ayalon@ho ] I'm trying to get a single char from string, but doing it like this
321074 [stefano.croc] "hello"[0,1]
321075 [diogoslisboa] => "h"  # note no need for .chr
321078 [s_ayalon@ho ] Thanks guys, that's exactly what I was looking for.

"closed stream" problem
321086 [pbailey@bn .] Can someone please help me with this error? It gives an exception of a

Getting browser country parameter in Ruby on Rails
321093 [ciriusmex@gm] Here is my problem. I have a page on my RoR site which display prices.
321109 [jballanc@gm ] Best bet is to put the user agent string through a RegExp. The
321113 [flo@an er gr] request.env['Accept-Language'] #=> en-us,en;q=0.5
321180 [ciriusmex@gm] Thanks for the help, that's great, I'm gonna check it right now ^^

Gruff and labeling
321115 [bornemann1@n] I have everything done my output goes to a graph everything is fine
321117 [bornemann1@n] but still need help on how to put the dates(Decades) as the x-col values

Hoe or inline C question
321122 [uzytkownik2@] For some resons I need to use C code (don't worry jruby code will be
321157 [radek.bulat@] QUZBSUsgeW91IGNhbiBidWlsZCBpdCBhbmQgYWRkIGdlbmVyYXRlZCAuc28gZmlsZSB0byB5b3Vy
321196 [uzytkownik2@] In the ext directory or somewhere else? AFAIU the building == running?

Begin else pattern question
321123 [raasdnil@gm ] ...
+ 321124 [rubytraining] One simplification would be to remove the "begin" and the
| 321127 [raasdnil@gm ] ...
| 321131 [rubytraining] ock
+ 321125 [alan.wayne.j] A device that turns exceptions into a return value might assist.
+ 321132 [botp@de mo t] # def initialize(value)
| 321164 [b.candler@po] def initialize(value)
+ 321278 [shortcutter@] def initialize(value)

(none)
321128 [althomas02@g] ...

How to use a passing argument(returned argument)?
321129 [jykim@al ib ] I have question about how to use a passing argument. firstly let me
+ 321133 [rubytraining] Well, Ruby, being a purely object-oriented language, means that
+ 321135 [jballanc@gm ] First, the pattern you are looking for is not very object oriented-y.  That is, you're asking to remove some of the logic pertaining to 'a'
  321137 [einarmagnus@] def swap(aref, bref)
  + 321138 [jykim@al ib ] Einar's suggestion is very good and clear everything for me :)
  + 321203 [kbloom@gm il] That rocks. Thanks for sharing. I thought that this kind of functionality
  + 321207 [lloyd@2l ve ] instead of swap(ref{:a}, ref{:b})
    321210 [einarmagnus@] Because his question was about references, swap was just an example.

Unsubscribe
321136 [dqbtmb44@co ] ...

Ruby + FreeBSD = bandwidth killer?
321141 [rabbitblue@g] This is a bizarre situation. I have a program that makes heavy use of
321143 [saji@ap c2 .] has it anything to do with Daemons? I had a similar issue when running
321145 [rabbitblue@g] I doubt it. As I said, I can run the same program on Leopard with no
321147 [sean@sm .u i] Have you got any netstat data between the two boxes?
321148 [rabbitblue@g] Hmm... each of those show a ton of information. Not sure what you'd want

Reflection method name order
321142 [lists@gr gw ] Can I depend on .methods returning methods in the order they are written
321144 [stefano.croc] class C

How to make SSl work with webrick
321146 [bishalachary] I have a web site and I need to make it ssl enabled. I need to now steps
321162 [b.candler@po] Go to www.google.com, enter "webrick SSL" into the box, and look at some

Exclude members from YAML conversion?
321149 [christian.ke] class user
321151 [ola.bini@gm ] You can override yaml_properties to return only the ones you want to be
321154 [christian.ke] where do i overwrite this method?
321193 [vjoel@pa h. ] require 'yaml'
321218 [christian.ke] Thx!

Sharing ruby code
321152 [CiberCitizen] I've developed a simple plotter of math functions.
321170 [chris.lowis@] If you can package it as a gem, rubyforge is the best place to share it.

Problems while creating a new migration file
321153 [vkv_devaki@r] I am a ROR beginner. I have a controller named "users" and the
+ 321161 [b.candler@po] Welcome, but I'm afraid you're on the wrong list. Please post your
+ 321282 [spamtrap@12 ] ./script/generate migration AddPasswordToUserModel

Contract Ruby Developer Position - Immediate!
321155 [cjestico@al ] We currently have a 3 month contract position open.

KirbyBase : update method problem
321158 [adamtemporar] the basic code below makes kirby complain that im trying to update a
321191 [shawn42@gm i] ...
321235 [adamtemporar] hey shawn, thanks for that, it does work with the short snippet above,

Unofficial Phone,the most cheap mobile phones from china
321159 [yingwen@1d s] Unofficial Phone,the most cheap mobile phones from china

attr_reader, default attribute value, and rdoc of attribute
321160 [donn@cm cm .] What I want to do is create an attribute, allow it to have a default
+ 321163 [CiberCitizen] I don't know about rdoc, but perhaps the following might help.
+ 321194 [vjoel@pa h. ] Something else to consider, along with the other suggestions, is the -A

Re: attr_reader, default attribute value, and rdoc of attrib
321165 [b.candler@po] attr_accessor :fld_delimiter
+ 321167 [donn@cm cm .] ',')
+ 321168 [transfire@gm] ',')
  321171 [b.candler@po] class Foo

time to back peddle? (Ruby 1.8.7)
321166 [transfire@gm] $ ruby -v
+ 321173 [mark@th ma z] This happened to me, and it was an "uh-oh" moment for me too. I think
+ 321174 [rogerpack200] For better or worse, the 187 branch is basically the only one that gets
| 321689 [gregory.t.br] Though support was dropped for Ruby <= 1.8.5, 1.8.6 is still
| 321809 [rogerpack200] It is indeed officially supported but, judging from the commit logs,
| 321815 [gregory.t.br] As they should.  The fact that Ruby 1.8.6 is not changing much is a feature.
| 321821 [rogerpack200] LOL. Yeah I'm wish you on this one.  That is is somewhat annoying to
+ 321195 [m.fellinger@] Using it since the release in spring, had an issue in the prerelease
+ 321197 [djberg96@gm ] I abandoned it quickly when at least one of my libraries (use) because
| + 321257 [mikhailov.an] As you may know Ruby 1.8.7 don't compatable with Rails(http://
| + 321258 [mikhailov.an] As you may know Ruby 1.8.7 don't compatable with
|   321326 [luc@ho k- on] Uh, this page *explicitely* says: "We recommend Ruby 1.8.7 for use
|   321622 [mark@th ma z] Yay! It's been fixed. Probably due to this thread.
|   321645 [peter@ru yr ] ...
|   321680 [charles.nutt] Put simply: 1.8.7 has features and behavioral changes that are
+ 321261 [charles.nutt] FWIW, we've decided not to support 1.8.7 in JRuby. That may change if

multiplatform pipe open?
321169 [sebastian@ye] I'm starting with Ruby and i am trying to migrate some Perl scripts to
321172 [b.candler@po] You don't show your Ruby code, but maybe you just need fh.flush after

ruby wish list item: more standard rescues
321175 [rogerpack200] Currently in Ruby
321177 [b.candler@po] It looks pretty consistent to me. The default is to catch StandardError,
321178 [b.candler@po] There was a mistake there, the Timeout::Error line should say
321798 [rogerpack200] Yeah that one is the the kicker, and it is definitely broken.  Any

How to get a reference to a block (when no explicit block parameter is used?)
321179 [kenneth.m.mc] In a function, I can find out if a block was given using block_given?,
+ 321181 [janfri.rubyf] def my_meth param, &block
| + 321186 [kenneth.m.mc] Unfortunately, that produces a method that _requires_ a block--I want
| | + 321189 [sepp2k@go gl] No, it does not.
| | + 321190 [ymendel@po o] On Nov 26, 10:54=A0am, Kenneth McDonald
| |   321208 [kenneth.m.mc] Whoops, apologies to all. Didn't realize &b arguments were optional.
| + 321187 [jcoglan@go g] ...
+ 321182 [pit.capitain] Ken, you can use Proc.new

regexp problem
321183 [thai4pental@] I have been searching on the Internet about how to solve my problem. I
321198 [b.candler@po] A Regular Expression (by the computer science definition of Regular
321202 [ruby@di it l] def match_pairs s, l, r
321669 [thai4pental@] Thank you very much Brian. It works fine as long as an incoming string
321671 [thai4pental@] Oops, I was pointing to wrong person in my last post. Brian method is

Class setter
321184 [keepitsimple] For the life of me I can figure out why the setter below returns "v" and
321185 [ymendel@po o] That's just the way setters work in Ruby. Any method ending in =3D will
321188 [sepp2k@go gl] That's not really similar. The only connection between new and initialize is
321192 [ymendel@po o] On Nov 26, 10:59=A0am, Sebastian Hungerecker <sep...@googlemail.com>

connection failed error
321211 [diwakar@an l] I am getting the below error while i try to get response from API. What

To get time differnece in hours between two time values
321212 [sijo@ma xi n] I have two values like incidents.first.created_on  and  Time.now
321214 [theyojimbo@g] Time.now-incidents.first.created_on will return you the number of
321219 [florian.assm] (Time.now - incidents.first.created_on) / 1.hour
+ 321229 [sijo@ma xi n] Thanks for the reply
+ 321239 [robert.dober] I do not think that 1 responds to that message.
  + 321240 [peter@ru yr ] ...
  + 328318 [florian.assm] (Time.now-incidents.first.created_on).hours

Read Database Metadata
321213 [jorasmi.gaga] I'm reviewing Ruby if its appropriate for my project. I'm planning to
+ 321242 [b.candler@po] You can certainly connect to different databases and read metadata. I
| 321301 [jorasmi.gaga] In JDBC, to connect into a database you just need to have a driver for
+ 321245 [flo@an er gr] If you want do have a behaviour that matches JDBC, use JRuby and
  321299 [jorasmi.gaga] Thanks Florian for the reply.

Design suggestion for translations/mappings from xml
321215 [brian@tr sf ] The xml is not named, nor formatted like my objects, so i need to define
+ 321234 [jgabrielygal] module XMLMap
| 321275 [brian@tr sf ] Thanks so much for your response!
| 321568 [jgabrielygal] Glad it helped.
| 321606 [brian@tr sf ] Wow, that's pretty kickass.
+ 321273 [tom@to mo ri] Well, if you are going to be parsing lots of different types of XML

Alternatives to ?\C-n, ?\M-a etc in ruby 1.9
321216 [sentinel.200] I need to make a rather important design in my 1.8 application, so i
321221 [botp@de mo t] # But what about ?\C-a or ?\M-a (control and meta keys).
321226 [sentinel.200] irb(main):334:0> "a".ord
321227 [botp@de mo t] # > why not create your own String#ord func?
321309 [Rob@Ag le on] class String
321322 [sentinel.200] Thanks, yes, precisely what i wanted. :-)

How to get RedCloth on Ubuntu Hardy?
321220 [michael.ulm@] I try to get RedCloth installed on my Ubuntu Hardy machine. Naturally, I typed
321243 [flo@an er gr] You can update RubyGems by installing the rubygems_update gem and

AutoIt: Regarging AutoIt usage with Firefox
321222 [anukul.singh] I am trying to automate some operations in Firefox using AutoItX3 dll. I
339526 [agus_85@ho m] I tried it myself and it returns 1 1. This is because you are printing
339528 [anukul.singh] Thanks for your reply. Is it possible for you to send me the script you
339529 [agus_85@ho m] I have the same code that you have, do you have firefox 3.0?? are you
339530 [anukul.singh] Actually, I have been using a very old version of firewatir (1.2.1),

unexpected error in time difference
321223 [phasis@gm il] I found some unexpected errors in time difference test.
+ 321224 [shortcutter@] Works as designed.  With Time.now -1 the parser parses this as
+ 321225 [jorrel@gm il] Time.now().-(1)
+ 321228 [botp@de mo t] #--
threads.html
top