Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
Advice
1 vote
8 replies
172 views

A rookie in Ruby here. I'm trying to count the number of each vowel in a text entered by the user but I'm stuck. My code is this at the moment: def count_vowels(phrase) puts 'Enter a text:' ...
Alexandroskw's user avatar
Tooling
0 votes
5 replies
68 views

I'm running the latest Jed editor from jedsoft.org under Debian 13 and under LinuxMint 22.3. I want to create a mode in Jed for editing code in the Ruby language. Before I try to "re-invent the ...
HippoMan's user avatar
1 vote
1 answer
102 views

HTML has a week selector <input type="week"> which provides a string such as 2026-W05 (Week 5 of 2026). Ruby provides the strptime/strftime methods which seem to be able to handle this ...
David Cook's user avatar
Best practices
0 votes
10 replies
205 views

say you want to find the first duplicate in an array. you could do something like this: cnt = {}; [ 11, 22, 77, 22, 33 ].each_with_index { |x,i| j = cnt[x]; ## <1> break [x, j, i] ...
Toni Schilling's user avatar
0 votes
0 answers
50 views

I'm following the Hanami tutorial documentation for building a web app. I run bin/hanami db migrate and I get the following error: => database db/bookshelf.sqlite migrated in 0.2763s Error: in ...
corgipower's user avatar
0 votes
1 answer
62 views

I'm on MacOS Tahoe (26.3.1 (a)). I have a Ruby project which requires msgpack (1.4.2). Unfortunately, when I run bundle install, I see: Fetching msgpack 1.4.2 Installing msgpack 1.4.2 with native ...
Sam's user avatar
0 votes
1 answer
66 views

I have setup chromium profile and wish to use that with ruby ferrum library. I copied complete configurations directory into /tmp and passed browser switched, but profile extensions seems to not work....
Alex's user avatar
Tooling
0 votes
4 replies
126 views

I followed the advice from this question and I started to experimenting with Selenium, but I feel like it has to many limitations. Could you recommend something more suitable? A simple program that ...
Shruikan's user avatar
0 votes
0 answers
211 views

I had an issue this morning where someone was blowing up our school search function (which uses a MySQL MATCH function) by typing '𝓵𝓲𝓵𝓵𝔂𝓬𝓻𝓸𝓯𝓽' into the school search. This is within the ...
Max Williams's user avatar
-1 votes
1 answer
146 views

Is it possible to have a Regex include the whole string as a named capture group as well as individual named capture groups? I am trying to parse IIS logs and can successfully extract the details I ...
Neil Riach's user avatar
Advice
0 votes
2 replies
152 views

I'm Alex. I program science I was in school and I have concepts of Datatypes which I would like to have in programming language. Ruby is My Favorite languge (10+ years of experience), Are there any ...
Alex's user avatar
3 votes
1 answer
133 views

I started a new rails project and generated a model with rails new nonono --css=bootstrap -j esbuild bin/rails g scaffold State name After that I run the test suite bin/rails test And got the ...
user1644367's user avatar
Advice
0 votes
5 replies
143 views

In VSCode i am tying to increase amount of useful information displayed. A lot of screen space is taken up by UN-numbered blank lines between the lines of code. These are not actual lines as they ...
user3285799's user avatar
0 votes
0 answers
83 views

With the following code: require 'nokogiri' class MyDocument < Nokogiri::XML::SAX::Document def start_element_namespace(name, attrs = [], prefix = nil, uri = nil, ns = []) a = attrs.map ...
jean marc's user avatar
2 votes
1 answer
125 views

I've upgraded Ruby from Ruby 3.1.7 to Ruby 3.2.8; after that, I've encountered a situation where my ruby bundle works for the first deployment on Heroku-deployed servers, but all subsequent ...
G987's user avatar

15 30 50 per page
1
2 3 4 5
…
15278