Ruby

1K

Solutions

4

Articles & Videos

1K

Contributors

Ruby is an open-source dynamic object-oriented interpreted language that supports multiple programming frameworks including functional, object oriented and imperative. It also has a dynamic type system and automatic memory management. Ruby focuses on simplicity and productivity. Ruby's market share spiked due to Ruby on Rails, a model-view-controller (MVC) framework for building web applications.

Refine results

I have several rows of twin radio buttons that are generated via a loop in ruby on rails.  For each row, one of the button is already selected, how do i detect if the user accidentally click on a radi…

737 views
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Hello I have two XML files that I need to merge into one. I am able to use Python or Ruby to accomplish this and so far I have had little to no success.

The two XML files are as follows (unfortunat…

858 views

I'm trying to compare two windows registry keys.  I have the code working in Ruby but when I run chef I get errors.  Is there a way to compare to registry keys and if they don't match perform an actio…

139 views

Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differently based on the default value of the type field!

0149 views

Hello, I am trying to update a Ruby script that looks in html files downloaded from the IRS site and finds specific text in the file to extract the Year from the document.   The script works fine howe…

671 views

I am creating a short Ruby script to kill a stuck process. I checked the syntax (see attached script) and I get the error message below. Please help.

______________

killProcStk.rb:24:in `block i…

660 views

Can Sql Server be configured with Ruby?

528 views

Hi,

Im getting this error while trying to access a https URL.

[2016-01-14 14:42:58] ERROR OpenSSL::SSL::SSLError: SSL_accept SYSCALL returned=5 errno=0 state=SSLv2/v3 read client hello A /usr/li…

3225 views

Just getting started with using chef recently.  I have created custom JSON in AWS Opswork and trying to access it as an attribute in Chef recipe, but its failing to grab the JSON values. JSON file loo…

164 views

I have a multi-select dropdown, eg:
<select id="mySelect" multiple="multiple" onchange="myFunction(event)">
  <option value="Audi">Audi
  <option value="BMW">BMW
  <option value="Mercedes">Mercede…

865 views
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

I am new to Ruby. I have a Rakefile. How do i run a Rakefile?

1115 views

Hello and thanks in advance for your help.

I am trying to install redmine on an ubuntu server. I am on the step where I am trying to call:

bundler update

And it errors out on installing rmagi…

6216 views

I currently have a list of ip addresses that I would like to have a ruby script for loop though and find an ip address that is not pingable and cannot ssh to. I'm new to ruby so I am not sure what gem…

3284 views

Need to validate that the date entered is a certain day of the week.

View:
   
      <div class="form inline">
       <%= f.label :meeting_date, "Meeting Date" %>
      <%= f.date_select :mee…

282 views

In Ruby how can I take a command put stdout in a variable or array?


# bosh deployment | awk  -F"\`|'" '{print $2}'   ---This is the bash command
/opt/app/cloudfoundry/cf/manifests/cf_openstack_b…

240 views

I just installed chef using omnibus:

curl -L https://www.chef.io/chef/install.sh | sudo bash

I got below error:
(CODE)

Now I would like to understand how it will be upgraded to new version w…

1434 views

Hi
I have a large text file and need to remove any duplicate rows - eg
example text (original)
select *
from table1
table 1
table 1
select * from ref where
table1
etc etc
...what I want retu…

1094 views

How to use sed to replace a pattern out of a file?

Below is the line in rsyslog.conf that I am trying to replace.
*.info;mail.none;authpriv.none;cron.none                /var/log/messages

Want …

563 views

How to capture my stdout when run Ruby script and place in log file.
Would like to run a Ruby script and place stdout,stdin,stderr into a log file.
Would want the specific where the logs would be pl…

734 views
 Java Android Coding Bundle

Whether you're an Apple user or Android addict, learning to code for the Android platform is an extremely valuable, in-demand skill. It all starts with Java, the language behind the apps and games that make Android the top platform it is today.

Hi

I want to be able to use a regular expression which goes through a large txt file where all my Packages (around 100) are kept.
The objective is for the ruby script/regex to return the Package n…

6102 views

Hi,
I have been doing some Ruby development using cloud9 which is all using a browser.  I wanted to get a vm going on my machine.  I have virtual box and vagrant installed.  I am new to all of this a…

184 views

How to write a new file with output from script? My script logins into few remoter servers and runs few commands and I would like to take output and place into a log file with Name,time and date.

1021 views

Hi All,

We are planning to utilize Apace Solr (sunspot) for our website built using ruby on rails. We already have Solr setup and working using the sunspot Solr gem for rails.

When we first impl…

4442 views

I am getting below error while installing puppet master in my centos6.5 machine. kindly advise?

(CODE)

488 views

What is the best way to pull multi-line records from all files in a directory?
Would want to pull information between “Start string” and “End string”
Looking for some generic code that could do this…

447 views
Show more content
201506-LO-Top-001

TOP EXPERTS

view all

RELATED TOPICS view all topics

  1. Java
    (98,446)
  2. Web Development
    (72,786)
  3. Web Frameworks
    (1,834)
  4. Programming
    (51,768)
  5. Scripting Languages
    (26,323)
  6. JavaScript
    (118,506)
  7. PHP
    (116,812)
  8. Linux
    (64,149)
  9. MySQL Server
    (46,194)
  10. Apache Web Server
    (19,561)