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…

743 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…

876 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…

152 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!

0173 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…

682 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…

670 views

Can Sql Server be configured with Ruby?

531 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…

3362 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…

177 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…

883 views
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

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

1131 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…

6247 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…

3291 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…

295 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…

254 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…

1481 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…

10103 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 …

573 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…

744 views
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

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…

6111 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…

198 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.

1028 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…

4454 views

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

(CODE)

494 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…

455 views
Show more content
201506-LO-Top-001
Top Experts In
Ruby
<
Monthly
>

TOP EXPERTS

view all

RELATED TOPICS view all topics

  1. Java
    (98,623)
  2. Web Development
    (72,987)
  3. Web Frameworks
    (1,834)
  4. Programming
    (51,874)
  5. Scripting Languages
    (26,417)
  6. JavaScript
    (118,873)
  7. PHP
    (117,253)
  8. Linux
    (64,357)
  9. MySQL Server
    (46,354)
  10. Apache Web Server
    (19,595)