First  |  Prev |  Next  |  Last
Pages: 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
how i execute a method variable numer of times
hi ruby example i have this method: def little_meth puts "hi there\n" end and say i want to run this method run x number of times. i make program that looks something this way: do little_meth x times i request what is this for ruby? thanks -noose -- Posted via http://www.ruby-forum.com/.... 28 Jun 2010 01:56
About method naming convention with "!"
Hi, Is there a reason why Array#clear method have not a exclamation mark (!) at the end? Just like Array#map! because the object is altered (so it's called a dangerous method). In my opinion, Array#clear is an as dangerous one that alters its object, and it may be used with the exclamation mark... What do y... 27 Jun 2010 18:18
Convert \uXXXX to character
I have string: '\u041f\u0440\u0438\u0432\u0435\u0442!' and i need to convert it to string such as 'привет!'. I can convert string to '041f 0440 0438 0432 0435 0442', then convert to decimal and at the end convert each code to character with function: str.scan(/[0-9]+/).each {|x| result_str << x.to_i} but i d... 28 Jun 2010 11:42
Happy Intransition Day!
To hold a grudge is like drinking poison and hoping your enemy will get sick. ... 9 Jul 2010 14:58
[ANN] Erubis 2.6.6 released - a bug fix release
I released Erubis 2.6.6. http://rubyforge.org/frs/?group_id=1320 http://www.kuwata-lab.com/erubis/ Erubis is another eRuby implementation which is very fast and extensible than ERB and eruby. Changes in this release: * Fixed a bug around InterporationEnhancer and FastEruby to escape back-quote. (tha... 27 Jun 2010 04:10
Can Ruby 1.9.1 filenames with unicode characters on Windows?
Can Ruby 1.9.1 finally get a list of filenames if the filenames have unicode characters on Windows? I think back in the Ruby 1.8.6 and 1.8.7 days, that wasn't possible on Windows. -- Posted via http://www.ruby-forum.com/. ... 27 Jun 2010 09:32
Odd Issue With DBD::SQLite3 - Inserts Don't Work
On Windows XP using Ruby 1.9.1 the following fails to insert: db = DBI.connect("dbi:SQLite3:#{ARGV.shift}") s = db.prepare "insert into hits (hit_id, status_id, local_path, remote_path, created_at) values (?, ?, ?, ?,?)" s.execute "A123", 1, "A", "B", "2009-01-01" s.finish s = db.prepare "select * from hits" s... 26 Jun 2010 21:44
Using ruby as linux shell
How to access command line parameters of a ruby script? -- Posted via http://www.ruby-forum.com/. ... 26 Jun 2010 18:29
DNote v1.4.0 released
On Jun 26, 11:48 am, transf...(a)gmail.com wrote: DNote 1.4.0 has been released. Dnote makes it easy to extract developer's notes from source code, and supports almost any language. * home:http://proutils.github.com/dnote This release adds auto-determination of marker based on file extension. Thi... 26 Jun 2010 14:06
[ANN] local-openid 0.2.0 - Single User, Ephemeral OpenID Provider
local-openid allows users with shell accounts on servers to authenticate with OpenID consumers by editing a YAML file in their home directory instead of authenticating through HTTP/HTTPS. * http://bogomips.org/local-openid/ * local.openid(a)librelist.com * git://git.bogomips.org/local-openid.git Changes: loc... 26 Jun 2010 05:27
First  |  Prev |  Next  |  Last
Pages: 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70