havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
deviantfero has quit [Ping timeout: 245 seconds]
roadt_ has quit [Ping timeout: 240 seconds]
roadt_ has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
s3nd1v0g1us has quit [Ping timeout: 264 seconds]
roadt_ has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
cloud69 has quit [Quit: Connection closed for inactivity]
roadt_ has joined #ruby
swaggboi has quit [Quit: C-x C-c]
Swyper has joined #ruby
swaggboi has joined #ruby
supercoven_ has joined #ruby
supercoven has quit [Ping timeout: 245 seconds]
swaggboi has quit [Quit: C-x C-c]
deviantfero has joined #ruby
ruurd has quit [Ping timeout: 272 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
swaggboi has joined #ruby
kristian_on_linu has quit [Read error: Connection reset by peer]
salvor has quit [Ping timeout: 246 seconds]
Cork has quit [Ping timeout: 276 seconds]
Cork has joined #ruby
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 240 seconds]
salvor has joined #ruby
salvor has joined #ruby
salvor has quit [Changing host]
GodFather has quit [Ping timeout: 240 seconds]
<banisterfiend> anyone here goood with rake?
rafadc has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
meinside has joined #ruby
deviantfero has quit [Ping timeout: 260 seconds]
code_zombie has quit [Quit: Leaving]
bvdw has quit [Ping timeout: 240 seconds]
napcae has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 260 seconds]
gearnode has quit [Ping timeout: 264 seconds]
Vingador has joined #ruby
Vingador_ has joined #ruby
rafadc has joined #ruby
Tuor has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Tuor has joined #ruby
napcae has joined #ruby
Vingador has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
bvdw has joined #ruby
jmcgnh has quit [Ping timeout: 246 seconds]
Tumac55 has joined #ruby
Tumac55 has left #ruby [#ruby]
Kilo`byte has quit [Ping timeout: 260 seconds]
Kilo`byte has joined #ruby
Xiti has quit [Quit: Leaving]
jmcgnh has joined #ruby
landakram has quit [Ping timeout: 240 seconds]
PaulePanter has quit [Ping timeout: 256 seconds]
dg1727 has quit [Ping timeout: 268 seconds]
iNs has quit [Ping timeout: 268 seconds]
teardown has quit [Ping timeout: 268 seconds]
ccooke has quit [Ping timeout: 246 seconds]
_aeris_ has quit [Ping timeout: 268 seconds]
bamdad has quit [Ping timeout: 268 seconds]
dan64- has joined #ruby
dan64 has quit [Ping timeout: 256 seconds]
dan64- has quit [Client Quit]
dan64 has joined #ruby
PaulePanter has joined #ruby
_aeris_ has joined #ruby
ccooke has joined #ruby
dg1727 has joined #ruby
bamdad has joined #ruby
iNs has joined #ruby
Vingador_ has quit [Ping timeout: 264 seconds]
teardown has joined #ruby
trautwein1 has joined #ruby
trautwein1 has quit [Ping timeout: 240 seconds]
m27frogy has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
Xiti has joined #ruby
howdoi has joined #ruby
landakram has joined #ruby
envex has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
ChmEarl has quit [Quit: Leaving]
rafadc has quit [Quit: ZNC - https://znc.in]
rafadc has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Changing host]
dionysus69 has joined #ruby
Rounin has joined #ruby
moldorcoder7 has quit [Ping timeout: 245 seconds]
moldorcoder7 has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
trautwein1 has joined #ruby
teclator has joined #ruby
vondruch has joined #ruby
actuallybatman has left #ruby [#ruby]
actuallybatman has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
spectra has quit [Ping timeout: 244 seconds]
hiroaki_ has quit [Ping timeout: 272 seconds]
Tempesta has joined #ruby
spectra has joined #ruby
gearnode has joined #ruby
hiroaki_ has joined #ruby
henk[m]1 has quit [Quit: Idle for 30+ days]
split-brain has joined #ruby
ramfjord has joined #ruby
powerhouse has quit [Ping timeout: 260 seconds]
jla has joined #ruby
fercell has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
akem has quit [Quit: leaving]
howdoi has quit [Quit: Connection closed for inactivity]
<yxhuvud> banister: no, not really, but can you describe your problem?
<yxhuvud> perhaps we have seen different parts of it :)
Rudd0 has joined #ruby
landakram has quit [Ping timeout: 240 seconds]
mniip has quit [Ping timeout: 600 seconds]
fercell has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
mniip has joined #ruby
jla has quit [Ping timeout: 265 seconds]
entel has joined #ruby
jla has joined #ruby
Mrgoose has quit [Quit: The Lounge - https://thelounge.chat]
tpanarch1st has joined #ruby
Mrgoose has joined #ruby
cd has quit [Quit: cd]
Swyper has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m27frogy has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 260 seconds]
cow[moo] has joined #ruby
giorgian has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leah2> unfortunately jim died years ago
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
fercell has quit [Ping timeout: 245 seconds]
fercell has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
cow[moo] has joined #ruby
andremedeiros has joined #ruby
cow[moo] has quit [Client Quit]
dka has quit [Quit: My Ex-Girlfriend once told me: I'm not a slut, I'm just popular]
LeviDuncan has joined #ruby
fercell has quit [Ping timeout: 265 seconds]
cow[moo] has joined #ruby
LeviDuncan has quit [Quit: I shall return...]
fercell has joined #ruby
fercell has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
iNs_ has joined #ruby
iNs has quit [Ping timeout: 268 seconds]
vondruch has joined #ruby
akem has joined #ruby
DaRock has joined #ruby
al2o3-cr has joined #ruby
kashike has quit [Remote host closed the connection]
powerhouse has joined #ruby
deviantfero has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
fercell has quit [Ping timeout: 240 seconds]
cuerbot has joined #ruby
fercell has joined #ruby
Swyper has quit [Remote host closed the connection]
weaksauce has quit [Ping timeout: 245 seconds]
gueorgui has joined #ruby
Swyper has joined #ruby
super has joined #ruby
<super> Is there any project about ruby on MCU?
super has quit [Quit: Leaving]
adibistc has joined #ruby
<adibistc> guys, is any project for ruby on mcu?
<adibistc> like stm32 or esp32
gearnode has quit [Ping timeout: 240 seconds]
jla has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
dionysus69 has quit [Quit: Konversation terminated!]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 264 seconds]
Swyper has joined #ruby
Swyper_ has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
dg1727 has quit [Ping timeout: 268 seconds]
Swyper_ has quit [Ping timeout: 240 seconds]
jla has joined #ruby
Swyper has joined #ruby
ChmEarl has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
dg1727 has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
DaRock has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 264 seconds]
fercell has quit [Quit: WeeChat 3.0]
actuallybatman has quit [Ping timeout: 276 seconds]
meinside has quit [Quit: Connection closed for inactivity]
vondruch has joined #ruby
trautwein1 has quit [Ping timeout: 246 seconds]
dfucci has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
adibistc has quit [Quit: Leaving]
jla has quit [Ping timeout: 245 seconds]
dinfuehr has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
gearnode has joined #ruby
dinfuehr has joined #ruby
ramfjord has joined #ruby
Xiti` has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 260 seconds]
jla has joined #ruby
jla has quit [Quit: Leaving.]
Swyper has quit [Ping timeout: 264 seconds]
moldorcoder7 has quit [Ping timeout: 276 seconds]
yann-kaelig has quit []
moldorcoder7 has joined #ruby
dhollinger has quit [Ping timeout: 272 seconds]
<havenwood> adi, ah, they left
<havenwood> I was going to suggest mruby
<havenwood> http://mruby.org/
gearnode has quit [Ping timeout: 272 seconds]
howdoi has joined #ruby
ramfjord has joined #ruby
pepperoni has joined #ruby
moldorcoder7 has quit [Quit: %bye mirc%]
vondruch has quit [Read error: Connection reset by peer]
<pepperoni> i have the error "Could not find concurrent-ruby-1.1.8 in any of the sources" when running 'bundle install', however, if i do "gem info concurrent-ruby", it shows it as a local install. how to get past this?
<adam12> havenwood: ohai
tpanarch1st has quit [Ping timeout: 260 seconds]
<adam12> pepperoni: What does the line in your gemfile for concurrent-ruby look like?
gueorgui has quit [Ping timeout: 265 seconds]
<pepperoni> adam12: i don't have a line in the Gemfile with that in it, should i?
<pepperoni> i was always able to run my jekyll app before w/o it
<adam12> pepperoni: Can you paste `bundle config` to dpaste.org or similar service? Retract any sensitive info.
gueorgui has joined #ruby
<adam12> pepperoni: And actually, what's the output of `bundle -v`?
<pepperoni> adam12: when i type "$ bundle config", the only thing that shows up is "Settings are listed in order of priority. The top value will be used." But that's it. Nothing afterwards.
<adam12> pepperoni: That's OK! I was lookign to see if it said anything about deployment.
<adam12> pepperoni: What version of bundler? And if you can just share Gemfile/Gemfile.lock it might help me cut down questions.
gearnode has joined #ruby
<pepperoni> the Gemfile.lock I delete, my understanding is that running bundle install regenerates it
<pepperoni> i use these versions because i place this in a gitlab pages repo
<adam12> pepperoni: That's correct. So you dont' have a Gemfile currently?
<adam12> err. Gemfile.lock currently
<pepperoni> adam12: correct
<pepperoni> well, i'll make one
moldorcoder7 has joined #ruby
<pepperoni> https://dpaste.org/Zkq9 ... better formatting
<adam12> pepperoni: It looks fine. How did you make one? with `bundle install`?
<pepperoni> yes
<adam12> pepperoni: But wasn't it raising the error about not finding concurrent-ruby?
<pepperoni> adam12: it's when i run "bundle exec jekyll serve" that I get the "could not find ..." error
<pepperoni> ah, apologies, i said that wrong in the initial post
<adam12> Ah! OK. So you're in the folder with Gemfile, Gemfile.lock, and you run `bundle exec jekyll serve` and you see the error.
<pepperoni> adam12: yesa
<adam12> pepperoni: Do you have a .bundle/config in that folder? Can you share contents if so.
moldorcoder7 has quit [Ping timeout: 276 seconds]
<adam12> pepperoni: Output of `bundle show concurrent-ruby --paths`
<pepperoni> adam12: no, not in this folder, but I do have a .bundle/cache folder in ~
actuallybatman has joined #ruby
<adam12> pepperoni: Output of `bundle doctor`. Also, what platform is this? and architecture?
<pepperoni> Linux Numbers 5.4.72-gentoo #2 SMP Wed Jan 20 15:45:34 CST 2021 x86_64 Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz GenuineIntel GNU/Linux
<pepperoni> issuing "$ bundle doctor" listed more output than my console buffer has, but in the end says "No issues found with the installed bundle"
moldorcoder7 has joined #ruby
<adam12> pepperoni: Is there more to the error in `bundle exec ...`?
<pepperoni> adam12: no, just "could not find concurrent-ruby-1.1.8 ..." followed by "Run 'bundle install' to install missing gems."
<adam12> pepperoni: How did you install ruby? and what's the path to bundle? `which bundle`
<pepperoni> does installing using "bundle" vs. "gem" place stuff in diff locations?
<pepperoni> ruby is installed on gentoo via portage as it's management system
<pepperoni> which reports /usr/bin/bundle
<adam12> pepperoni: It depends. Unprivilged gem will usually error out, but if it's gem from a user-writable path (ie. you used rbenv) then it might work because it might be in ~/.rubies.
<adam12> pepperoni: Similarly, with bundle. It will default to trying to install via `gem`, which has the same rules. But `bundle` supports `--path` which will write anywhere it has permissions.
<adam12> pepperoni: What user are you running bundler as? and did you install concurrent-ruby manually? if so, did you use sudo/doas?
<pepperoni> i feel like there's something to the locations. 'bundle install' can't find it, but 'gem info <gem>' says it's there
<adam12> pepperoni: How about `bundle install --path vendor/bundle && bundle exec jekyll server`. Then it will be local to this project and would eliminate that.
lordarkmemo has joined #ruby
<pepperoni> i'm running as a non-root user. and when i run 'bundle install' that also as non-root user. however, if somemthing needs sudo, it will switch to sudo and ask for passwd
s3nd1v0g1us has joined #ruby
<adam12> pepperoni: OK. Try my suggestion for installing to a path and then.. I'm not sure. But we can go from there.
<pepperoni> ok, running bundle install --path vendor/bundle ... caused bundle exec jekyll server to report another error, i'll dpaste ...
<pepperoni> i wonder if it's working and that's an error in the site it's trying to generate
<pepperoni> because it gets passed all that and into "Generating ..."
gearnode has quit [Ping timeout: 260 seconds]
gix has joined #ruby
<adam12> pepperoni: Yeah. That looks like an issue with the frontmatter in that one post.
<pepperoni> adam12: thanks for getting me this far, i'll try to follow from here
<adam12> pepperoni: No problem. Good luck!
actuallybatman has quit [Ping timeout: 240 seconds]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
dfucci has quit [Read error: No route to host]
duderonomy has joined #ruby
weaksauce has joined #ruby
Xiti` has quit [Quit: Leaving]
andremedeiros has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
andremedeiros has joined #ruby
powerhouse has quit [Quit: Leaving]
kashike has joined #ruby
nertzy has joined #ruby
tempate has joined #ruby
<tempate> Is there a way to iterate over a piece of code n times and collect all the results into an array?
<adam12> tempate: 5.times.map { do_something }
<tempate> oh, marvelous
<tempate> thanks
<adam12> tempate: Enumerable is nicely chainable.
<tempate> adam12: yeah, I obviously knew about n.times. I had forgotten you could just add .map. :^)
nertzy has quit [Ping timeout: 272 seconds]
landakram has joined #ruby
<tempate> What about this: I have an array with many repeated elements. I want to pick n of them, at random, and remove one instance of all the elements I've chosen. So, for example, say may initial array was [1, 1, 2, 2, 2, 3] and I pick 3 elements at random ([2, 2, 3]), I want the initial array to be: [1, 1, 2]
Xiti` has joined #ruby
<tempate> Is there an idiomatic way to do it?
lordarkmemo has quit [Ping timeout: 240 seconds]
hiroaki_ has quit [Ping timeout: 272 seconds]
<tempate> Never mind. Got it
supercoven has joined #ruby
Xiti has quit [Ping timeout: 276 seconds]
supercoven_ has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
<weaksauce> .sample(n)
hiroaki_ has joined #ruby
Xiti` has quit [Quit: Leaving]
<tempate> weaksauce: .sample(n) doesn't remove the elements from the original array though
<weaksauce> ah yeah that's true
<tempate> What about deleting the first instance of an element in an array?
cd has joined #ruby
hiroaki_ has quit [Ping timeout: 245 seconds]
<weaksauce> tempate delete_at paired with another method to find the index
<tempate> Yeah, that's what I did
<tempate> Thanks
Iarfen has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
hiroaki_ has joined #ruby
kashike has quit [Ping timeout: 240 seconds]
kristian_on_linu has joined #ruby
supercoven has quit [Ping timeout: 245 seconds]
kashike has joined #ruby
Xiti has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
qizwiz has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
AndreYuhai has joined #ruby
<AndreYuhai> With xpath how can I select the following sibling only if there wasn't any other tag in between? For example I want to select second <p> tag only if there is not any other tag in between the first <p> tag and 2nd <p> tag
<nakilon> can't tell exactly but to AND several conditions you just write them as [...][...][..]...
<nakilon> so probably you should just chose the next tag and append the condition that it's <p>
goepsilongo has joined #ruby
hiroaki_ has quit [Ping timeout: 272 seconds]
Danishman has joined #ruby
hiroaki has quit [Ping timeout: 264 seconds]
hiroaki has joined #ruby
hiroaki_ has joined #ruby
split-brain has quit [Remote host closed the connection]
BTRE has quit [Remote host closed the connection]
rafadc has quit [Quit: ZNC - https://znc.in]
deviantfero has quit [Ping timeout: 265 seconds]
rafadc has joined #ruby
actuallybatman has joined #ruby
qizwiz has quit [Remote host closed the connection]
cognemo has quit [Ping timeout: 265 seconds]
cognemo has joined #ruby
Iarfen has quit [Remote host closed the connection]
BTRE has joined #ruby
Iarfen has joined #ruby
<Iarfen> hi!
<Iarfen> is there a way to sort an array by some attribute of the objects it contains, and to sort after that again by another attribute for the objects which have been equal in the first attribute (sorting only in a relative position, then)?
jenrzzz has joined #ruby
<weaksauce> larfen why not just sort it all at once?
Danishman has quit [Ping timeout: 272 seconds]
actuallybatman has quit [Ping timeout: 240 seconds]
<Iarfen> weaksauce: how?
<Iarfen> how I can sort by more than one value at the same time?
kinduff has joined #ruby
DaRock has joined #ruby