Remember
Register
Search With
Seek4Info.com
Programming & Software Q&A | CollectiveSolver
Questions
Tags
Users
Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.
Contact: aviboots(AT)netvision.net.il
Most popular tags
python
java
c
cpp
c#
javascript
php
vb#
typescript
nodejs
go
rust
scala
swift
kotlin
pascal
html
ruby
dart
r
css
bootstrap
win32
groovy
winapi
sql
mysql
vbnet
jquery
pascal-string
lua
winforms
kotlin-string
bash
c-string
swift-string
cpp-string
go-string
c#-string
php-string
java-string
vbnet-string
cobol
rust-string
python-string
cpp-vector
f#
opengl
scala-string
javascript-string
pascal-array
swift-array
typescript-string
c-array
php-array
javascript-array
rust-vector
typescript-array
python-list
reactjs
scala-array
c-windows
nodejs-string
go-array
kotlin-array
nodejs-array
sdl2
cpp-matrix
c-matrix
cpp-array
c#-list
vbnet-list
pascal-matrix
go-slice
c#-array
java-array
nodejs-express
character-code-ascii-unicode
swift-matrix
c#-matrix
sdl3
angularjs
binary-search-algorithm
generate-random-floating-point-numbers
all-permutations-combinations
kotlin-matrix
typescript-matrix
vbnet-array
kotlin-list
sort-words-string
exabyte-constant
petabyte-constant
terabyte-constant
math-functions-constants
dot-product-two-arrays
string-to-title-case
create-infinite-loop
rust-matrix
go-matrix
javascript-matrix
Disclosure:
My content contains affiliate links.
Recent questions tagged ruby
41,298
questions
53,808
answers
573
users
Recent questions tagged ruby
1
answer
2
views
How to find keyword matching between multiple text blocks in Ruby
asked
10 minutes
ago
by
avibootz
ruby
ruby-find-keyword-matching-between-multiple-text-blocks
find-keyword-matching-between-multiple-text-blocks
1
answer
5
views
How to sort the words in a string with Ruby
asked
23 hours
ago
by
avibootz
ruby
ruby-sort-words-string
sort-words-string
1
answer
8
views
How to use the full strftime cheat sheet in Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-use-full-strftime-cheat-sheet
use-full-strftime-cheat-sheet
1
answer
9
views
How to format a date using different formats in Ruby
asked
1 day
ago
by
avibootz
ruby
ruby-format-date-different-formats
format-date-different-formats
1
answer
9
views
How to convert seconds into weeks, days, hours, minutes, and seconds in Ruby
asked
2 days
ago
by
avibootz
ruby
ruby-seconds-into-weeks-days-hours-minutes-seconds
seconds-into-weeks-days-hours-minutes-seconds
1
answer
17
views
How to sort a list of files by name, extension, dates, and size in Ruby
asked
5 days
ago
by
avibootz
ruby
ruby-sort-list-files-by-name-extension-dates-size
sort-list-files-by-name-extension-dates-size
1
answer
20
views
How to create a list of random file names, including extension, dates, and file size in Ruby
asked
6 days
ago
by
avibootz
ruby
ruby-file
ruby-list-random-file-names-extension-dates-size
list-random-file-names-extension-dates-size
1
answer
17
views
How to create a list of random dates in Ruby
asked
6 days
ago
by
avibootz
ruby
ruby-create-list-random-dates
create-list-random-dates
1
answer
17
views
How to compress and decompress repeated string characters by storing the repeated length (RLE) in Ruby
asked
May 14
by
avibootz
ruby
ruby-compress-decompress-repeated-string-characters
compress-decompress-repeated-string-characters
1
answer
17
views
How to calculate the 100th term of the sequence 8, 64, 80, 136, 152 in Ruby
asked
May 12
by
avibootz
ruby
ruby-calculate-100th-term-of-sequence-8-64-80-136-152
calculate-100th-term-of-sequence-8-64-80-136-152
1
answer
18
views
How to convert an array of multi‑digit numbers to a number in Ruby
asked
May 10
by
avibootz
ruby
ruby-array-multi-digit-numbers-to-number
array-multi-digit-numbers-to-number
1
answer
26
views
How to convert an array of digits to a number in Ruby
asked
May 10
by
avibootz
ruby
ruby-array-digits-to-number
array-digits-to-number
1
answer
22
views
How to get accurate ticks from a timer (high‑resolution timer) in Ruby
asked
May 9
by
avibootz
ruby
rust-accurate-ticks-timer
accurate-ticks-timer
1
answer
27
views
How to implement the binary search algorithm in Ruby
asked
May 8
by
avibootz
ruby
ruby-binary-search-algorithm
binary-search-algorithm
1
answer
26
views
How to calculate the CRC32 of a string in Ruby
asked
May 8
by
avibootz
ruby
ruby-calculate-crc32-string
calculate-crc32-string
1
answer
30
views
How to create a sorted unique list from a matrix in Ruby
asked
May 7
by
avibootz
ruby
ruby-sorted-unique-array-from-matrix
sorted-unique-array-from-matrix
1
answer
27
views
How to create a common sorted unique array from 3 integer arrays in Ruby
asked
May 6
by
avibootz
ruby
ruby-common-sorted-unique-array-from-arrays
common-sorted-unique-array-from-arrays
1
answer
26
views
How to convert an integer into its written‑out English words in Ruby
asked
May 5
by
avibootz
ruby
ruby-convert-integer-english-words
convert-integer-english-words
1
answer
24
views
How to calculate all the less than 500 additive prime numbers in Ruby
asked
May 4
by
avibootz
ruby
ruby-calculate-additive-prime
calculate-additive-prime
1
answer
25
views
How to define a terabyte constant in Ruby
asked
May 3
by
avibootz
ruby
ruby-terabyte-constant
terabyte-constant
1
answer
22
views
How to define an exabyte constant in Ruby
asked
May 3
by
avibootz
ruby
ruby-exabyte-constant
exabyte-constant
1
answer
28
views
How to define a petabyte constant in Ruby
asked
May 3
by
avibootz
ruby
ruby-petabyte-constant
petabyte-constant
1
answer
36
views
How to use math functions and constants in Ruby
asked
Apr 30
by
avibootz
ruby
ruby-math-functions-constants
math-functions-constants
5
answers
51
views
How to create a function with an optional parameter in Ruby
asked
Apr 29
by
avibootz
ruby
ruby-function-optional-parameter
function-optional-parameter
1
answer
36
views
How to decode Leet Speak (where numbers resemble letters (7->T, 1->I, 5->S, 3 -> E)) in Ruby
asked
Apr 27
by
avibootz
ruby
ruby-decode-leet-speak
decode-leet-speak
1
answer
37
views
How to reconstruct a full sparse matrix from a compact (triplet) matrix in Ruby
asked
Apr 27
by
avibootz
ruby
ruby-reconstruct-sparse-matrix-from-compact-triplet-matrix
reconstruct-sparse-matrix-from-compact-triplet-matrix
1
answer
32
views
How to express a decimal number as a fixed-length string with leading zeros in Ruby
asked
Apr 26
by
avibootz
ruby
ruby-decimal-number-to-string-leading-zeros
decimal-number-to-string-leading-zeros
1
answer
35
views
How to create an enumeration of constants with and without explicit values in Ruby
asked
Apr 26
by
avibootz
ruby
ruby-create-enumeration-with-without-values
create-enumeration-with-without-values
1
answer
32
views
How to compact a sparse matrix in Ruby
asked
Apr 24
by
avibootz
ruby
ruby-compact-sparse-matrix
compact-sparse-matrix
1
answer
38
views
How to search for a word in a grid of characters with Ruby
asked
Apr 23
by
avibootz
ruby
ruby-search
ruby-grid
ruby-search-word-grid-characters
search-word-grid-characters
4
answers
57
views
How to write a loop with a specified step in Ruby
asked
Apr 10
by
avibootz
ruby
ruby-loop-specified-step
loop-specified-step
2
answers
122
views
How to count backwards (Print the numbers N, N - 1, ..., 0 (included)) in Ruby
asked
Jul 20, 2025
by
avibootz
ruby
ruby-loop
1
answer
154
views
How to round a floating-point number to an integer in Ruby
asked
May 14, 2025
by
avibootz
ruby
ruby-round
1
answer
174
views
How to use gets.chomp() inside a while loop in Ruby
asked
Apr 26, 2025
by
avibootz
ruby
ruby-loop
1
answer
110
views
How to print array values and the indexes in Ruby
asked
Mar 22, 2025
by
avibootz
ruby
ruby-array
1
answer
169
views
How to check if a variable is not nil and not zero in Ruby
asked
Jun 6, 2024
by
avibootz
ruby
2
answers
183
views
How to create a range of numbers in Ruby
asked
Jan 13, 2024
by
avibootz
ruby
1
answer
163
views
How to remove duplicate characters from a string in Ruby
asked
Jun 11, 2023
by
avibootz
ruby
1
answer
180
views
How to swap cases in a string with Ruby
asked
Jun 11, 2023
by
avibootz
ruby
1
answer
188
views
How to convert the first digits in a string to a float with Ruby
asked
Jun 11, 2023
by
avibootz
ruby
1
answer
175
views
How to declare and initialize a set containing unique objects in Ruby
asked
Mar 11, 2023
by
avibootz
ruby
1
answer
203
views
How to remove multiple items from an array by values in Ruby
asked
Mar 1, 2023
by
avibootz
ruby
1
answer
182
views
How to remove an item from an array by index in Ruby
asked
Mar 1, 2023
by
avibootz
ruby
2
answers
191
views
How to create a two dimensional (2D) array in Ruby
asked
Feb 16, 2023
by
avibootz
ruby
2
answers
234
views
How to convert float to string with 2 decimal places in Ruby
asked
Feb 13, 2023
by
avibootz
ruby
3
answers
230
views
How to get character code (ASCII and Unicode) in Ruby
asked
Jan 22, 2023
by
avibootz
ruby
ruby-character-code-ascii-unicode
character-code-ascii-unicode
1
answer
138
views
How to create a function in Ruby
asked
Dec 20, 2022
by
avibootz
ruby
1
answer
175
views
How to merge dictionaries in Ruby
asked
Dec 15, 2022
by
avibootz
ruby
2
answers
174
views
How to create key value dictionary in Ruby
asked
Dec 11, 2022
by
avibootz
ruby
1
answer
154
views
How to access the address of a variable in Ruby
asked
Nov 4, 2022
by
avibootz
ruby
Page:
1
2
3
4
5
6
next »
...