First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
question about sub-class of array
I don't understand why thsi isn't working. I wanted to introduce a subclass of the Array class called Bitvector. A bit vector is an array of 0s and 1s, ordered from lsb at index 0 to msb at the highest index, so "10011" as a string would be [1,1,0,0,1] as an Bitvector. Here's what I tried: class Bitvector < Arra... 7 Aug 2010 21:15
Where + how to download Shoes
I'am trying to create an education database software,which can create analysis + reports, being new to programming I was advice to consider Ruby. After reading a very confusing Ruby, I was directed to Shoes. I have Windows 7, can anyone advice on which Shoes + from where to download it. Tk in advance Hil -- ... 8 Aug 2010 03:42
trouble with mysqldump
when i try program="C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin\ \mysqldump.exe" irb(main):008:0> system(program) Usage: mysqldump [OPTIONS] database [tables] OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...] OR mysqldump [OPTIONS] --all-databases [OPTIONS] it works and is able to launc... 7 Aug 2010 15:49
Looking for good Ruby OpenSSL TLS docs
Hi, I've got a custom TCP protocol that currently runs plaintext/cleartext to which I want to add something akin to SMTP's STARTTLS. The scripts use Ruby's TCPSockets. The protocol will for the most part remain unencrypted, but when client or server requests that TLS begin, I need to take the existing TCPSocke... 9 Aug 2010 05:44
Search on text
I have a text <html> ........ site.imageList = { images: [['http://site/1.jpg', 'http://site/2.jpg', 'http://site/3.jpg']] }; .............. </html> I get this text through Nokogiri::HTML(open(@url)) Full text of this full page of the website is only part of which I need to get just that I n... 7 Aug 2010 11:28
Term meaning "Class or Module"
Anyone have a term, for an attribute name, meaning "Class or Module". I probably would just use #class but that's a keyword so that's out. So far I've tried #scope and #namespace, but neither seem quite right. Any suggestions? ... 7 Aug 2010 20:10
regexp help - substring of a backreference
I'm putting together a web forum and want to parse web addresses that are part of messages into clickable links. This is my attempt, I'm not claiming its perfect but it works: text.gsub!(/http:?\/*(\w+[\w\-\.\/~\?%&=#;,\+:\@]+)/, ' <a href="http://\1" target="_blank">http://\1</a>') The problem is th... 7 Aug 2010 13:38
[ANN] Win32::Screenshot 0.0.6
Hello! I'm happy to announce that new version of Win32::Screenshot got just released! You can get it by "gem install win32screenshot"! Win32::Screenshot - Capture Screenshots on Windows with Ruby = 0.0.6 2010-08-07 * Trying to bring window to the foreground more aggressively (Roger Pack) * Added utility... 7 Aug 2010 09:18
School teacher still at it learning programming language
Samuel Williams wrote: Dear Hilary, I wouldn't recommend using Shoes for what you are trying to do. Shoes is a way to display content on the screen using windows, text, buttons, etc. I'd recommend that you get the algorithm and data processing working first, and then make the web application later... 9 Aug 2010 22:18
A problem with "puts"
Hi Considering that , "puts" always return "nil" why in below code the highlighted part of code just print the contents of "first,second,third,forth" variable ? for example content of "first" variable is "nil" and when we type "puts first" ruby must execute 2 times "nil" . def test1 number puts "test1"*number... 7 Aug 2010 07:10
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20