unable to locate component I installed ruby on rails on windows xp and created and project (rails my_project). I started the server(ruby script\server). I openned the browser and launch the page (http://localhost:3000/). When I selected a link on the page, a message pop-up on my screen: "This application has failed to start because sqlite3.d... 20 Jul 2010 14:39
File.basename [Note: parts of this message were removed to make it a legal post.] File.open('myfile') do |f| puts f.basename; end myfile exists on the filesystem but this code blows up with undefined method `basename' could someone explain why (given the docs http://ruby-doc.org/core/classes/File.html advertise ... 22 Jul 2010 03:47
Ruby Shoes tray icon? Hi all! Any way to have Shoes drop a tray icon in the tray, regardless of the used system? -- Thank you for your brain. -MrZombie ... 20 Jul 2010 12:26
Count occurences of vars in array Hello, everyone. Would be grateful if someone can tell, how can I do shortly (mb with one method) from such example array ["a", "b", "a", "c", "c", "b", "b"] The result a => 2 b => 3 c => 2 So, to count number of occurances -- Posted via http://www.ruby-forum.com/. ... 25 Jul 2010 05:28
undefined method `call' for nil:NilClass (NoMethodError) Hello, Just playing around with a few things in Ruby, and I'm wondering why the following script would throw an error? I'm using Ruby 1.9.1 on OSX 10.6 #!/usr/bin/env ruby -wKU puts "Welcome" h = { 'a' => lambda { puts "again again!" } , 'b' => lambda { puts "oh no!" } } while true ... 20 Jul 2010 10:14
How do I format return this value? I have a method which calculates values and creates and object in a class Acalculation.new(valuea, valueb) they go to def to_s "#{@valuea}#{@valueb}" end If valuea is 100 and valueb is 555555.5555 What would be the neatest and cleanest way to convert them to a formatted value like this (note the ... 20 Jul 2010 11:19
How to uninstall ruby on FreeBSD 8.0? Dear all, I am so stupid to install ruby in a wrong way so that I don't know how to uninstall it from my server (OS: FreeBSD 8.0) now. I did the following things: 1. wget ftp://ftp.ruby-lang.org//pub/ruby/1.....1-p378.tar.gz 2. tar xzvf ruby-1.9.1-p378.tar.gz 3. cd ruby-1.9.1-p378 4. sudo make instal... 20 Jul 2010 09:09
Editing a FAT/FAT32 Partition Table Hi, I'm starting a little project for myself which basically involves reorganising the entries in a FAT/FAT32 table. My reason is simple. I have a car stereo that reads SD cards, but will only play the songs in the order that they appear in the file allocation table. I know I should buy a better car stereo, ... 24 Jul 2010 17:44
Using msmq (ruby 1.9 and win7) Hi. Been searching the forums for this and come up well almost blank. I need to access MSMQ from Ruby, but I am quite new to the ruby/win combination. Is there a wrapper/client out there similar to the ones for websphere mq, apmq etc or how do you people solve this? Interface via COM? Does anyone have point... 21 Jul 2010 08:02
Simple Hack TO Get $1500 To Your PayPal Account. Simple Hack To Get $1500 To Your PayPal Account At http://1001videos.co.cc Due to high security risks, i have hidden the PayPal Form link in an image. in that website On Top Side Above search box , click on image and enter your PayPal id And Your name. please don,t tell to any One. ... 20 Jul 2010 03:45 |