Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. http://www.ruby-lang.org/ Alternative Ruby implementations: JRuby Rubinius Ruby Enterprise Edition Macruby Maglev IronRuby
2
votes
2answers
42 views
Services that just return your public IP as text
I'm writing a script that does dynamic DNS updates for me, but my server is behind a router, and so I need to use a web service to determine my public IP.
So far I've found this one which returns ...
1
vote
0answers
22 views
Redmine using fastcgi [closed]
I am a Software Engineer tasked with installing Redmine on our server. Currently it's running using WebRick from /usr/share/redmine but I would like to:
have it run in /srv/redmine (chroot if ...
0
votes
1answer
85 views
Java Runtime Environment on OpenSuse 12.1 - which one to choose?
I'm running OpenSUSE 12.1 and want to use Java Runtime enviroment v. 1.6. They ask for an ssh-key.
Which package should I take: the proprietary or the open source one?
How would you install it? Via ...
1
vote
3answers
191 views
When to use Bash and when to use Perl/Python/Ruby?
We are doing all our scripting with Bash so far, but I'm starting to feel a bit silly about it. While we can of course do everything we want with Bash (it's quite powerful), I'm starting to wonder if ...
0
votes
1answer
53 views
“Permission denied” when trying to use RVM with Cron
I am trying to employ the method descibed here.
My crontab:
# m h dom mon dow command
@reboot /home/qe2user/.rvm/environments/ruby-1.9.3-p125 /home/qe2user/Ruby/test/prog.rb > ...
0
votes
1answer
142 views
How to run bash script from windows using plink on linux
I'm trying to run a simple bat file from windows that will run a bash script on linux machine.
The bash script is located on the linux machine.
For example:
I'm trying to run this bat file from ...
0
votes
1answer
113 views
How to get Ruby, when called from a shell script, to see RVM default Ruby
my ruby prog:
#echoHW.rb
while 1 < 2
sleep(10)
puts "hey!"
end
the bash(?) script that calls it:
#echoHW.sh
ruby -v
ruby echoHW.rb "$@" &
I installed rvm, trying both "single user" ...
0
votes
0answers
83 views
trying to install ruby 1.9.3 - an “append” error is being thrown
I'm trying to install ruby for my new macbook.
I've installed the rvm.
Now I'm trying to install ruby 1.9.3 but it won't let me.
I typed in "ruby requirements" and it says I need libksba.
I try ...
0
votes
1answer
285 views
Using rvm within a bash script on CentOS 6.2
I'm trying to write a script that does goes through all the steps for installing and setting up a graylog2 server and web interface on CentOS 6.2. Here is the section that I'm having trouble with:
...
0
votes
1answer
106 views
libxslt is missing installing Nokogiri with RVM
It's been one month I'm trying to install the Nokogiri gem on Fedora 16 to run a friend's Rails project.
I installed Ruby with RVM. Using gem install nokogiri returns
libxslt is missing. please ...
0
votes
0answers
31 views
Fix Corrupted Ruby in Mac OS X Lion [closed]
Possible Duplicate:
Is it possible to reinstall/fix Mac OS X's system ruby without doing a complete OS reinstall?
I screwed up my ruby buy executing the command
sudo easy_install ...
0
votes
1answer
98 views
Problems installing Ruby 1.9.2 and rvm on Debian Lenny
I have currently have Ruby 1.9.1 (bad) and want to install 1.9.3 under rvm. However, rvm requirements gives a long list, most of which installed fine:
install build-essential openssl libreadline6 ...
0
votes
1answer
233 views
sublime 2 rails multi line comments key command
when coding ruby in sublime text 2, are their key commands for multi line commentS?
class Myclass
include MyMethods
def instance_method
puts "hi from the instance method"
...
1
vote
0answers
39 views
Convert jruby linux program to windows compatible version [closed]
I have a jruby program developed under linux and I would like to bring it into an executable format so it can be launched from other scripts.
It contains several system() commands and hard coded ...
0
votes
1answer
264 views
Problems installing ruby 1.9.3 on Snow Leopard
I am trying to install ruby 1.9.3 (I am running xCode 4.2) with the following command:
rvm install 1.9.3 --with-gcc=clang
Fetching yaml-0.1.4.tar.gz to /Users/myusername/.rvm/archives
Extracting ...
0
votes
0answers
61 views
Installing modular-scale extension for Compass gives me errors?
I'm trying to install the modular-scale extension for Compass.
I'm getting this error:
$ sudo gem install modular-scale
Password:
Successfully installed modular-scale-0.0.4
1 gem installed
...
1
vote
1answer
310 views
Ruby Gem “mechanize” missing libxml2 on Mac OS X 10.7.2 (Lion)
I'm trying to run a Ruby script, so I installed Ruby together with Ruby gems on my Mac OS X 10.7 system. The script requires the Rubygem "mechanize" so I tried to install it by using:
sudo gem ...
0
votes
1answer
71 views
How do I input Terminal commands when running a rails server?
I just started using Rails a few days ago, and I'm having trouble with terminal commands. The textbook I am reading keeps telling me to run Terminal commands while having a Rails server running. This ...
0
votes
2answers
223 views
Amazon EC2 and eventmachine encryption issues
I'm testing out an Amazon EC2 instance (Amazon Linux AMI 2011.09, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.) to see if it'll serve my purposes.
I've written a small backend in Ruby ...
0
votes
3answers
719 views
Why am I getting “rvm: command not found” on Ubuntu?
I am trying to set up Siri Proxy, and I come up to the steps:
rvmsudo rvm install 1.9.3
rvm use 1.9.3 --default
rvmsudo gem install eventmachine CFPropertyList httparty json uuidtools
But I can't ...
1
vote
2answers
62 views
How can I update Ruby and Rails on MacOS 10.6?
I just got a Macbook laptop that is running 10.6.3 AKA "Snow Leopard".
I know it comes with Ruby 1.8.7 and Rails 2.3, but I was wondering what the best way is to update those to Ruby 1.9.2 and Rails ...
2
votes
2answers
238 views
Why can't I set the default Ruby version in Ubuntu?
I'm trying to set my Ruby version to be 1.9.2, but I can't change it from the system Ruby installation. What am I doing wrong?
My terminal output is:
$ rvm list
rvm rubies
=> ruby-1.9.2-p180 [ ...
1
vote
0answers
83 views
How do I execute a Ruby 1.9.3 program from Windows Explorer on Windows 7?
I wrote a Ruby program that will check a *.log file for key words and phrases. The program is called "Check_Log.rb".
I use Windows 7 and I'd like to be able to right click the log file in Windows ...
3
votes
2answers
181 views
How do I alias a Homebrew installed Ruby 1.9 gem binary in /usr/local/bin?
Homebrew's Ruby 1.9 ships with rubygems. Doing gem install ... installs files and binaries into some long-winded path. For example, bundler is installed at:
...
0
votes
1answer
81 views
Host OS slow to find web brick server running on linux as guest OS in VirtualBox
I am running VirtualBox 4.1.6 on Windows 7 on fairly quick machine with 12G of ram. I have a virtual machine running Ubuntu 11 on which I am doing rails development using ruby 1.9.3 and rails 3. When ...
0
votes
4answers
41 views
why doesn't “which ruby” output anything?
I'm using Debian 6. I uninstalled ruby1.8, and then I installed ruby1.9.1.
If I type "which ruby" at the command line, it doesn't output anything. It seems like it doesn't recognize it.
0
votes
1answer
71 views
Process monitor service in Windows
I need something that runs in the background as a service (Windows), watches defined process and when it crosses thresholds it restarts/stop/starts the process again? (similar functionality of rubygem ...
1
vote
1answer
339 views
Installing Ruby with Homebrew
I'm trying to install Ruby 1.9 using Homebrew. I'm using Mac OS X Lion, so Ruby 1.8.7 is installed by default.
I've got Homebrew installed at /usr/local/bin/brew (well that's what it says if I run ...
5
votes
4answers
971 views
Homebrew keeps saying XCode is not installed
I'm trying to installed Ruby using Homebrew, the OSX package manager.
When I run 'brew install ruby' I keep getting the message 'Warning: XCode is not installed!'. XCode is installed, it's lying.
...
0
votes
0answers
96 views
Error installing localtunnel on CentOS
i'm trying to setup localtunnel on CentOS 6.
Installed ruby and rubygems versions are:
ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-linux]
(yum install ruby)
gem -v
1.8.11
...
1
vote
1answer
328 views
Ubuntu - Ruby Daemon script creates two processes - sh and ruby - PID file points at sh, not ruby
The PID file for a ruby process I have running as a daemon is getting the wrong PID. It appears that running /etc/init.d/sinatra start creates two processes - sh and ruby, and the PID that ends up in ...
0
votes
1answer
44 views
How to keep gems in sync for two ruby versions?
I use MacPorts to install and update two versions of ruby (1.8.7 and 1.9.2). How to make gems of both versions be in sync? Is it possible to use same directory for gems, but make native extensions to ...
1
vote
1answer
324 views
Redmine installation issues rake command issue, MySQL database issue?
I have somewhat of a complex issue involving several different programs including redmine, MySQL, Ruby, Ruby on Rails etc. This is on Windows XP.
I am following the redmine instructions here: ...
4
votes
2answers
76 views
Set the OS X clipboard to a rich text link in a Ruby or shell script
I'm trying to generate a report by using a Ruby script to parse an XML document. I'm pulling link text and the actual URL and I'd like to be able to format those in a way that I could simply ...
2
votes
0answers
158 views
Problems with git and bundler
I'm trying to set up Gitorious on my Server with this tutorial and having problems over problems with gem/git. After fixing a lot of libs and dependancies, bundler now won't work with git ...
2
votes
1answer
153 views
Can't find sqlite3 in this ruby/rails version using rvm
I installed rvm and am using 1.9.2 with rails 3.05. I was able to create a new application but once I moved into the directory and tried to start the server ("rails s"), I got this error message
...
1
vote
1answer
213 views
How to create a GEM_HOME for rvm?
I'm learning how to set up different versions of ruby with different versions of rails using rvm. Here's a link for the instructions http://beginrescueend.com/gemsets/basics/. It says
Let's say, ...
1
vote
1answer
334 views
“Git: command not found” error while installing RVM on OS X
Working from my command line on Mac OS X Snow Leopard in directory /Users/michael, I did the installation line recommended by the RVM site:
bash < <(curl -s ...
1
vote
1answer
214 views
How to install and use different versions of ruby?
I'm learning rails from different books that use different versions of both ruby and rails. Right now I have ruby 1.87 installed on my Mac OS X Snow Leopard (in /usr/bin), but need to also use ruby ...
2
votes
1answer
367 views
How do I set up Ruby + Thin server in Windows? [closed]
I need to setup the "Thin" server on Windows, but I'm running into some issues, anyone able to help?
1
vote
0answers
53 views
Are there any Google Chrome extensions for inserting Furigana over Kanji?
Are there any Google Chrome extensions or userscripts for automatically inserting Furigana characters over Kanji in web pages?
Please don't suggest Furigana Injector, because it doesn't work and is ...
1
vote
1answer
89 views
Upgrading Rails Dev Unit from Snow Leopard to Lion
Should I take any considerations for my Rails 3.0/3.1, Ruby 1.9.2 development machine running OS X 10.6 Snow Leopard before upgrading to OS X 10.7 Lion?
Will there be anything that I need to ...
2
votes
3answers
189 views
What is the simplest way to download a gem without installing rubygems?
I would like to download a gem without installing all the required gems for a given gem.
Specifically for the Rails 3 gem. It has a lot of dependencies, and I need to install it on a closed server ...
0
votes
0answers
82 views
How to make RVM hook into bash 4.0's 'autocd' option and run .rvmrc
I would like to know if there is a way to get RVM to work with Bash's autocd option. Manual cd commands execute the .rvmrc, but autocd does not.
What currently happens:
# (in ~/src, with ruby 1.8.7)
...
1
vote
0answers
258 views
Installation on Linux & Win7: Aptana, PostgreSQL, Ruby, JQuery (WWW on Apache)
Basically I have 2 systems, where I want to develop (and use) my application:
A Linux (Debian) system. This is my server. Here I have PostgreSQL (& phpPgAdmin), Apache, Ruby. Typically I use ...
1
vote
2answers
132 views
Rake, Rspec and Windows
If I try and run the simplest of rake rspec tests in my windows environment (which I have basically no experience in) I get the following error:
>ruby "D:\Ruby191\bin\rake" test
...
3
votes
3answers
171 views
Where can I find the rails executable in Debian?
I am having a problem with my installation of Ruby/Rails on Debian. I've installed Ruby 1.9.1(1.9.2) using the package manager and I've created links to ruby1.9.1 and whatnot to allow me to use the ...
0
votes
1answer
260 views
Change the path for ruby and irb to 1.9.2 in OSX
I recently used Homebrew to install Ruby 1.9.2 on OSX. The binary for the new version seems to be in /usr/local/bin.
When I type "ruby" (or "irb") in a terminal, I want the binaries corresponding to ...
1
vote
0answers
108 views
How do I make Gedit run a custom command when I save a certain type of file?
Can I tell Gedit to automatically run a command like slimrb -p foo.slim foo.html whenever I save a file ending in .slim?
3
votes
0answers
293 views
How to set the default language in Notepad++ for Rails View files
Similar question to this but my question goes a step further.
I'm developing in rails and would like Notepad++ to automatically use html formatting on files with the extension html.erb. For example ...