Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Browsing all 4609 articles
Browse latest View live
↧

LoadError - cannot load such file -- ffi_c when running "pod install"

I encountered the following error when trying to run pod install for my iOS project:LoadError - cannot load such file --...

View Article


Ruby in VSCode, Couldn't find a workspace [closed]

I've started to learn how to use Ruby on VSCode, but I've never used VSCode before, I find it struggle to setup thingsEverytime I try to debug my code, there always will be an error "Couldn't find a...

View Article


How can I write a happy birthday message in Ruby to put on a cake?

Original QuestionMy boyfriend is celebrating his birthday shortly and I am ordering a custom cake for him. I want to write Happy Birthday on it in a clever Ruby coding way. It will be on a black...

View Article

Karafka on AWS Fargate with MSK: Process Hangs When Consuming Messages One at...

I'm running a Karafka application that consumes messages one at a time inside an ECS container on AWS Fargate, using Amazon MSK as my Kafka broker.Setup Details:Karafka configuration and code:class...

View Article

How might I pass text data from the ruby console into my clipboard without...

I'm trying to pass the array contained in a global variable I've created into my clipboard on my mac.It is very long so I don't want to highlight, copy & paste on my console.I want to use embedded...

View Article


String#gsub how to use a match occurrence in the replace attribute and also...

With String#gsub I can insert break lines in the replace attribute:"my string".gsub(/\s/, "\n") #=> "my\nstring"But if I also what to use part of the regex match in the replace attribute I am forced...

View Article

How to backreference in Ruby regular expression (regex) with gsub when I use...

I would like to patch some text data extracted from web pages.sample:t="First sentence. Second sentence.Third sentence."There is no space after the point at the end of the second sentence. This sign me...

View Article

Ruby to Actionscript3 Bytecode

Hi I was looking into Ruby to actionscript 3 bytecode compilers and found a mention of a project called Red Sun but can find very little information on it. So my Question is ... what tools are...

View Article


Getting unpermitted parameter: :locale in react on rails

I getting the below error. error'↳ app/controllers/concerns/set_locale.rb:35:in `switch_locale'Unpermitted parameter: :locale'Here is my set_locale.rbmodule SetLocale extend ActiveSupport::Concern...

View Article


Way to handle SNMPv3 Traps in built-in libaray in Ruby? [closed]

We are currently using an SNMP library that only supports SNMPv1 and SNMPv2, but for security reasons, we want to move to SNMPv3 for receiving SNMP traps/alerts.I do not want to use something like...

View Article

Ruby loop isn't working as I thought it would

I am new to programming and have just begun learning Ruby. I wrote the program below to practice about loops, variables etc. Essentially, the program mimics a laundry card machine where the user can...

View Article

Chris Pine Ruby ch 10, recursion

I have been trying to learn ruby using the book 'learn to program' by Chris Pine. I was actually getting excited when going through the book until I got to chapter 10 and the examples used. Now this...

View Article

How can I minify a Ruby source file?

I have a situation where I'd like to be able to minify (not compile) a Ruby script. The goals are to:Reduce the overall character count of the script;Perform a degree of obfuscation to make it...

View Article


How to keep user authenticated long term using google api client library

BackgroundI'm working on an app that will run on a device which does not contain a browser, but I want to get the users google tasks through the google api.Because of the lack of browser, they can't...

View Article

Connect Apple Store Connect API app to rails backend

I have an app build with react native and Ruby on rails as backend. We deployed iOS reactnative app to testflight. We can't figure how to connect ruby on rails API to iOS app on testflight?I have...

View Article


uninitialized constant API::V2::BaseController::UserApiAccessRecorder when...

I am including a concern in a controller:# app/controllers/api/v2/base_controller.rbclass API::V2::BaseController < ActionController::Base include UserApiAccessRecorderend#...

View Article

Rails 5 - How to fix Middleware/Rack/ActionDispatch::Routing::RouteSet#call...

In rails 5, I am using NewRelic to monitor the application. In newrelic, instantly I am getting Middleware/Rack/ActionDispatch::Routing::RouteSet#call as most time consuming. I don't know why this...

View Article


Is there a Ruby .NET Compiler?

Is there a .NET Framework compiler for the Ruby language? I've heard of the DLR (Dynamic Language Runtime), is this going to enable Ruby to be used with .NET development?

View Article

Unable to install any Ruby version using any Ruby version manager on MacOS M1...

I've been trying to install Ruby using any version management for Ruby (RVM, Rbenv, ASDF and also ruby-install directly) and keep getting the same error.for some context:I am trying to install it for...

View Article

Check-In/Map API

I'm trying to get some information for a application we would like to develop for our business. We run a chain of stores (approximately 20) and would like to give our customers reward points when they...

View Article
Browsing all 4609 articles
Browse latest View live