eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<comet23>
is there something wrong with me in not being able to pass upwork tests?
karapetyan has quit [Ping timeout: 240 seconds]
gix- has quit [Ping timeout: 265 seconds]
segy has joined #ruby
cagmz has joined #ruby
<baweaver>
comet23 What do they test?
<comet23>
they have tricky code
<comet23>
and trick questions, maybe you have to be an expert
schneider has joined #ruby
<baweaver>
you're going to have to be a lot more specific than that
<baweaver>
whining about something being tricky is defeatist
<cagmz>
How does the block in the first line know what 'tree_block' is? `tree_block = lambda{|h,k| h[k] = Hash.new(&tree_block) } ; opts = Hash.new(&tree_block)`
<baweaver>
all problems are solveable
<baweaver>
you just have to find the pieces to get there
<baweaver>
people.select(&Qo[name: Qo.or(/Wallace/, /William/), age: 40..50]) # All people with William or Wallace in their name between 40 and 50 years of age
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
alfiemax has quit [Remote host closed the connection]
ianfleeton has quit [Ping timeout: 260 seconds]
Matthew1 has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 245 seconds]
claudiuinberlin has joined #ruby
erlend has quit [Ping timeout: 260 seconds]
sidx64_ has quit [Read error: Connection reset by peer]
erlend has joined #ruby
schneider has joined #ruby
sidx64 has joined #ruby
<mozzarella>
kapil___: use a temporary variable then?
the_drow has joined #ruby
sidx64_ has joined #ruby
<the_drow>
How do I raise a different exception if its('stderr') { should match Regexp.escape("Connection to #{LXC_CONTAINER_IP} 22 port [tcp/ssh] succeeded!") } fails with a specific value?
schneider has quit [Ping timeout: 264 seconds]
sidx64 has quit [Ping timeout: 240 seconds]
<the_drow>
I'd like to retry the test only if a specific failure has occured
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
herbmillerjr has quit [Quit: Konversation terminated!]
schneider has joined #ruby
ciscam has quit [Ping timeout: 255 seconds]
redlegion has quit [Ping timeout: 268 seconds]
ciscam has joined #ruby
redlegion has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
<kapil___>
Mozzarella thanks a lot
BTRE has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
Vamava has joined #ruby
<Vamava>
Anyone here know how to use Azure SDK for ruby with SAS (shared access signature)?
schneider has joined #ruby
chihhsin has quit [Quit: leaving]
x0f has quit [Quit: quit]
x0f has joined #ruby
<the_drow>
How do I shut down a process I spawned using Ruby?
schneider has quit [Ping timeout: 240 seconds]
despai has joined #ruby
cschneid_ has quit [Ping timeout: 265 seconds]
schneider has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
cschneid_ has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
deadnull has joined #ruby
tomphp has joined #ruby
deadnull has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 276 seconds]
Guest41814 has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
jdawgaz has joined #ruby
karapetyan has joined #ruby
schneider has joined #ruby
ryzokuken has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
banisterfiend has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
p0p0pr37_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
despai has quit [Quit: ...]
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37_ is now known as p0p0pr37
schneider has quit [Ping timeout: 265 seconds]
cschneid_ has joined #ruby
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
Guest41814 has quit [Ping timeout: 276 seconds]
chihhsin has joined #ruby
schneider has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raynold has quit [Quit: Connection closed for inactivity]
dr3w_ has joined #ruby
mtkd has joined #ruby
the_drow_ has joined #ruby
dr3w_ has quit [Client Quit]
schneider has quit [Ping timeout: 265 seconds]
the_drow has quit [Ping timeout: 240 seconds]
despai has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
ryzokuken has joined #ruby
claudiuinberlin has joined #ruby
Guest41814 has joined #ruby
alfiemax has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
despai has quit [Quit: ...]
alfiemax has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
dr3w__ has joined #ruby
erlend has quit [Ping timeout: 245 seconds]
erlend has joined #ruby
dr3w__ has quit [Read error: Connection reset by peer]
dr3w_ has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
kies has quit [Quit: baaaaiiiiiiiiiii~]
kies has joined #ruby
darkhanb has joined #ruby
apparition has quit [Quit: Bye]
kurko_ has joined #ruby
dr3w_ has quit [Ping timeout: 256 seconds]
Asher has quit [Ping timeout: 260 seconds]
the_drow__ has joined #ruby
Dimik has joined #ruby
Strepsils has joined #ruby
the_drow_ has quit [Ping timeout: 256 seconds]
the_drow has joined #ruby
cschneid_ has joined #ruby
the_drow__ has quit [Ping timeout: 264 seconds]
Guest39892 has quit [Ping timeout: 240 seconds]
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
tomphp has joined #ruby
venmx has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
cschneid_ has quit [Ping timeout: 264 seconds]
Strepsils has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 265 seconds]
schneider has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
karapetyan has joined #ruby
cschneid_ has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
schneider has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
schneider has joined #ruby
^mtkd has quit []
mtkd has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
shinnya has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
kapil___ has joined #ruby
chouhoulis has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Ping timeout: 264 seconds]
kurko_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
Mike11 has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata has quit [Ping timeout: 240 seconds]
<Guest41814>
Is there some kind of syntax or Ruby convention for linking, say, a DomainRegistrar class with a Domain class, within a project? Like, in SQL I can say that "DomainRegistrar HAS Domain"
comet23 has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 245 seconds]
nicesignal has quit [Quit: WeeChat 1.4]
nicesignal has joined #ruby
alfiemax has joined #ruby
schneider has joined #ruby
hkais has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
TinkerT has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
schneider has joined #ruby
TinkerT has joined #ruby
<cagmz>
the_drow, how did you spawn it?
<the_drow>
nm already got it...
schneider has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
<cagmz>
if I call `super` from in method :name in Person < User, will the call return to the Person class after calling `name` in User?
nicesignal has quit [Quit: WeeChat 1.4]
jeffreylevesque has quit [Ping timeout: 240 seconds]
nicesignal has joined #ruby
despai has joined #ruby
cschneid_ has quit [Ping timeout: 265 seconds]
despai has quit [Quit: ...]
cschneid_ has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
minimalism has quit [Quit: minimalism]
erlend has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
venmx has quit [Remote host closed the connection]
schneider has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
mtkd has quit [Read error: Connection reset by peer]
ryzokuken__ has joined #ruby
chouhoulis has joined #ruby
mtkd has joined #ruby
the_drow has quit [Ping timeout: 268 seconds]
ryzokuken__ has quit [Client Quit]
schneider has joined #ruby
venmx has joined #ruby
cyberg has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
quarters has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
<quarters>
hello. I was trying to run bundle install with rbenv but am getting this message: "rbenv: ruby_executable_hooks: command not found"
leitz has joined #ruby
<leitz>
Ideas on how to fix a missing symbol? symbol lookup error: /usr/local/lib/ruby/2.0.0/x86_64-linux/openssl.so: undefined symbol: rb_str_new_static
<leitz>
had od rebu-devel rpm installed. Removed it, then tried again with same effect.
<leitz>
"old ruby-devel", different keyboard, different angle..
schneider has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
SirFunk has joined #ruby
apeiros has joined #ruby
alfiemax has joined #ruby
schneider has joined #ruby
SirFunk has quit [Client Quit]
cschneid_ has quit [Ping timeout: 256 seconds]
dr3w_ has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
noobineer has joined #ruby
dr3w_ has quit [Ping timeout: 260 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
dr3w_ has joined #ruby
jdawgaz has joined #ruby
<havenwood>
?rbenv quarters
<ruby[bot]>
quarters: Missing command under rbenv? Did you try `rbenv rehash`?
<havenwood>
Or you might even say: Missing a command under rbenv? Switch to chruby.
<havenwood>
;-)
<havenwood>
quarters: Though executable hooks looks like you have RVM remnants.
<havenwood>
quarters: What do you get for?: command -v bundle
<havenwood>
quarters: And: gem which bundler
schneider has quit [Ping timeout: 264 seconds]
imode has joined #ruby
<havenwood>
quarters: With your rbenv Ruby, try: gem install bundler && rbenv rehash
cschneid_ has joined #ruby
<quarters>
havenwood: I'm trying to work on a project here: github.com/github/classroom which requires rbenv. Otherwise, I'd use another ruby version manager. but yeah, I moved from rvm and ran rbenv rehash
<havenwood>
quarters: And bundler is installed with the rbenv Ruby?
noobineer has quit [Ping timeout: 260 seconds]
<havenwood>
(The fact that executable_hooks are involved makes me thing you're hitting an RVM bunder executable.
<havenwood>
)
<havenwood>
think*
<quarters>
command -v bundle => ~/.rbenv/shims/bundle and gem which bundler => ~/.gem/ruby/2.4.0/gems/bundler-1.15.3/lib/bundler.rb
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
erlend has quit [Ping timeout: 264 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
erlend has joined #ruby
schneider has joined #ruby
amar has quit [Remote host closed the connection]
cadillac_ has joined #ruby
amar has joined #ruby
elopnrocs has joined #ruby
<elopnrocs>
Does someone think they can help me transliterate 3-4 liner scripts in an mirc bot into some kind of ruby irc bot framework? It's just writing to text files, filtering out links and commands with prefixes, then reading random lines from said text file.
<elopnrocs>
Well I can't figure out how to use mirc to do the regex filtering, I'm sure ruby has something I can use that's much more efficient and fast
<leitz>
havenwood, especially since it fails make and then says it installed successfully. :)
<havenwood>
leitz: that's just because of the removal of -e
<leitz>
What I had set up was 1. Use Ruby 1.8.7 (default) to build Ruby 2.0.0. Then use Ruby 2.0.0 to build 2.6.0. I'm missing some rpm though, the 2.0.0 build is failiing.
<havenwood>
leitz: I made the script of macOS, and haven't yet tried to make it portable at all.
<leitz>
havenwood, CentOS 6 here.
schneider has joined #ruby
<leitz>
I was just pointing out, elsewhere, that Go quit supporting some of the older Macs. LIke most of the ones we have. :(
<havenwood>
leitz: Can you use SCL packages? The rh-ruby24 would be very tempting to me if I was on CentOS right now.
<leitz>
I'm trying to get to 2.6.0. I really got tired of people telling me to upgrade after several dozen times of telling them I can't upgrade at work. So I just code for myself and have failed to get Ruby any traction at work.
<havenwood>
ah
<havenwood>
leitz: I should make that ruby-install-nightly script portable.
<havenwood>
leitz: I'd personally shoot for 2.5.1, just since 2.6 won't be out 'till Christmas.
alfiemax has quit [Remote host closed the connection]
<leitz>
I had one that sort of worked, was writing an Ansible playbook for it.
<havenwood>
The nightly is a slightly better bet than master.
<havenwood>
(If you want bleeding edge.)
n008f4g_ has joined #ruby
clemens3_ has joined #ruby
<havenwood>
leitz: Though in 2.6-nightly you get #filter, so that's a pretty good reason. :-)
mtkd has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
<leitz>
I'm more the "either sit still or keep moving forward" type.
darkhanb has joined #ruby
<leitz>
And, like I said, the whole "you should upgrade" think left a very bad taste in my mouth.
<leitz>
So now it's "Can't stay still, can't go forward.".
<havenwood>
I typically shoot for latest stable.
<leitz>
Forturnately on IRC you can't hear what I'm trying hard not to say. :P
<leitz>
I usually go for "It if can't be installed or used, find something else."
schneider has joined #ruby
<leitz>
I would like to figure out what I'm missing and document that. Not smart enough, it seems.
<havenwood>
I guess if it wan't golf I might not use a string at all.
<leitz>
And -e
<apeiros>
"Spacing shouldn't be more than 30% of your total to avoid possible cheats"
mtkd has quit [Ping timeout: 265 seconds]
<apeiros>
reminds me of when I used newlines+spaces+eval
<phaul>
the abs2 trick was nice, TIL abs2
mtkd has joined #ruby
karapetyan has quit [Remote host closed the connection]
<phaul>
also the * for join. Never seen that one either
cschneid_ has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
<apeiros>
the problem with * is that it's difficult to chain
<phaul>
or read
mjolnird has quit [Remote host closed the connection]
schneider has joined #ruby
<phaul>
but none of that matters here :)
cschneid_ has quit [Ping timeout: 264 seconds]
<havenwood>
phaul: Here's a solution that doesn't use a string: 64.digits.map(&:abs2).zip(0.step(by: 2).lazy.map { |n| 10 ** n }).map { |a, b| a * b }.sum #=> 3616
Azure|dc has joined #ruby
alfiemax has joined #ruby
<havenwood>
phaul: Better written as: 64.digits.map.with_index { |n, i| n.abs2 * 10 ** (i * 2) }.sum
<havenwood>
#=> 3615
<havenwood>
3616*
Azure has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 268 seconds]
<havenwood>
phaul: This come in just below the golf limit while still keeping it mathy: n.digits.map.with_index { |n, i| n * n * 10 ** (i * 2) }.sum
eb0t_ has quit [Read error: Connection reset by peer]
Yzguy has quit [Client Quit]
despai has joined #ruby
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
Yzguy has joined #ruby
madgen has quit [Ping timeout: 256 seconds]
Yzguy has quit [Client Quit]
eblip has joined #ruby
eb0t_ has joined #ruby
schneider has joined #ruby
eb0t has quit [Ping timeout: 255 seconds]
<leitz>
neohunter, usually try to keep good screen spacing. That says whatever is using that namespace may know a lot about the insides of your classes.
schneider has quit [Ping timeout: 264 seconds]
<leitz>
That said, I'm just a wannabe coder. :)
<konsolebox>
if LovDictionary is an example of a DataStructure i wouldn't agree with the style
dviola has joined #ruby
eckhardt has joined #ruby
mtkd has quit [Ping timeout: 264 seconds]
schneider has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
c0ncealed1 has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
TvL2386 has joined #ruby
axsuul has quit [Ping timeout: 255 seconds]
axsuul has joined #ruby
schneider has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
mtkd has quit [Client Quit]
schneider has joined #ruby
banisterfiend has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
<banisterfiend>
baweaver jesus you have so many unfathomable SJW douchebags working at stripe
<banisterfiend>
;)
<banisterfiend>
(yourself not included, ofc)
alfiemax has joined #ruby
schneider has joined #ruby
chouhoulis has quit [Ping timeout: 263 seconds]
<mr-robert>
hi banisterfiend
<banisterfiend>
mr-robert hey what's up
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mr-robert>
nothing much. good to see you here
<banisterfiend>
you too. brb gogtta change treins, just seeing ruby in amsterda, now heading home
<banisterfiend>
gotta change trains in schipol
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]