First
|
Prev |
Next
|
Last
Pages: 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
Step 1.0 2009/12/1 Bertram Scharpf <lists(a)bertram-scharpf.de>: Hi, a month ago, there was a discussion about what is the best way to get a string's tail end. There were just some solutions like str[-i,i] str[-i..-1] Those have some problems. They're not quite fast, they don't return proper res... 1 Dec 2009 09:23
How to use "eval" to create method parameters? Hi, let's imagine a method "my_method()" whic allows any number of parameters. And I need to create those parameters list in the following way: lalalala = false if lalalala params = ":user, 'alice', 1456" else params = ":user, 0000" end After it I must invoke the method with "params" string... 1 Dec 2009 11:37
Pell's equation solver in Ruby Here is my "Pell's equation solver in Ruby". Can you make it shorter or faster? $ time ruby pell.rb 1 2 3 2 3 2 1 4 5 9 4 : 998 984076901 31150410 999 102688615 3248924 1000 39480499 1248483 real 0m5.415s user 0m5.403s sys 0m0.011s $ ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [univers... 1 Dec 2009 03:56
one more regular expression, please Hi, I really can't figure out how regular expressions work, and since I don't use them frequently is easier to ask... I have the follwow string ++((100))++askjasdjksjdkasdkjk++((200))++skdjsjd I need a reg expression that extracts only the first number inside the first ++(( ))++ and ignore the rest..., in... 1 Dec 2009 09:23
Searching Text for Multiple Matches I am using ruby to search and match text in a file that has several mathes. Here is the text: Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : corp.pc.com IP Address. . . . . . . . . . . . : 172.1.81.7 Subnet Mask . . . . . . . . . . . : 255.255.255.0 ... 30 Nov 2009 18:04
RubyGems nightmare due to 2 installs I have a recurring problem with my RubyGems install atm.... actually there are 2 of them, one in /usr/local/lib and the other in /usr/lib I think it ended up that way after upgrading ruby to 1.8.6. I have somehow managed to get around problems, but each time I start a new Rails project, on the server it gives m... 30 Nov 2009 13:35
connecting to Oracle using OCI8 and DBI Takehiro Kubo wrote: Hi, On Wed, Apr 15, 2009 at 12:09 AM, Peter Bailey <pbailey(a)bna.com> wrote: Exception: Could not load driver (unitialized constant OCI8::Driver) Did you manually edit dbi.rb? The OCI8 Driver defines DBI::DBD::OCI8::Driver, but not OCI8::Driver. What version of rub... 30 Nov 2009 10:14
Oracle-oci8.2.0 Problem in oci8.2.0.1.gem I installed oci8 using gem1.8 command . Then i required that file using oci8.But I got the error . require 'oci8' LoadError: /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.7-x86-mswin32-60/ext/oci8/oci8lib.so: invalid ELF header - /usr/lib/ruby/gems/1.8/gems/ruby-oci8-1.0.7-... 1 Dec 2009 01:46
What's the new hotness for packaging gems? [Note: parts of this message were removed to make it a legal post.] I've used ad hoc stuff for packaging most of my gems. Long ago there was hoe... is that still relevant? In this age of Gemcutter, what should I be using to generate my gemspecs/build my gems/etc? -- Tony Arcieri Medioh/Nagravision ... 30 Nov 2009 14:43
app/helpers in Rails Hello! I am new to ruby (and to ruby on rails). Having created some helpers with script/generate helper HelperName how do I access them in controllers and views? :-/ Tuo Pe ... 29 Nov 2009 06:53 |