<nakilon>
I guess does not support nested tables though
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Ping timeout: 240 seconds]
<nakilon>
to draw nested tables... you can't draw it line by line because any another cell can resize the row or column so you might need to traverse the whole object first
<nakilon>
so it's not even two iterations but probably three -- one to get all sizes, another one to gather the information for each border char about what direction should lines go, and only then print it; idk
johnny56 has quit [Ping timeout: 256 seconds]
Furai has quit [Quit: WeeChat 3.0]
orbyt_ has joined #ruby
Furai has joined #ruby
cthulchu_ has quit [Ping timeout: 264 seconds]
supercoven has joined #ruby
johnny56 has joined #ruby
bocaneri has joined #ruby
bocaneri has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uplime has quit [Quit: failure to comply will be met with :('s]
Rudd0 has quit [Ping timeout: 240 seconds]
cd has quit [Quit: cd]
ua_ has joined #ruby
ua has quit [Ping timeout: 264 seconds]
plant_enjoyer has joined #ruby
vondruch has joined #ruby
infernix has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
Glumetu has joined #ruby
dfucci has joined #ruby
TomyWork has joined #ruby
gigetoo_ has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
infernix has joined #ruby
gigetoo_ is now known as gigetoo
gigetoo has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
dionysus69 has joined #ruby
ruurd has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
fippy_ has joined #ruby
akem__ has quit [Quit: Leaving]
fippy__ has quit [Ping timeout: 240 seconds]
ruurd has quit [Read error: Connection reset by peer]
akem_ is now known as akem
ruurd has joined #ruby
fippy has joined #ruby
fippy_ has quit [Ping timeout: 260 seconds]
<plant_enjoyer>
sometimes `bundle exec ruby main.rb` takes a lot longer to execute than normal - is there any fix for that?
dionysus70 has joined #ruby
_whitelogger has joined #ruby
Rudd0 has joined #ruby
infinityfye has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
roshanavand has joined #ruby
infinityfye has quit [Ping timeout: 272 seconds]
dionysus70 has joined #ruby
ignorand has joined #ruby
<ignorand>
HI, shouldnt bundle install allow one to do a require?
<ignorand>
even after gem install I get the kernel_require.rb:92:in `require': cannot load such file --
<jhass>
it's case sensitive, on most filesystems anyway
BenDover has joined #ruby
<ignorand>
jhass: sigh, thanks
infinityfye has joined #ruby
<ignorand>
Odd that it had worked on my mac, should be case sensitive there too
HitmanV has joined #ruby
<jhass>
iirc by default HFS isn't
<ignorand>
was hoping to run my code in docker to see if my ssl error would disappear
<jhass>
but yeah, bad pratice to rely on any filesystem case insensitivity, since there's enough filesystems where it does matter
<ignorand>
jhass: I didnt realize it was case sensitive and that I was relying on it :)
vondruch has quit [Ping timeout: 256 seconds]
Mia has quit [Read error: Connection reset by peer]
HitmanV has quit [Remote host closed the connection]
jokester_ is now known as jokester
jokester has quit [Quit: WeeChat 2.9]
crankharder has joined #ruby
HitmanV has joined #ruby
<ignorand>
ruby 2.7.2p137 SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError) Seems most issues discussed are about ruby 2.1 and solved in 2.3.1
HitmanV has quit [Remote host closed the connection]
<jhass>
so your options are to not verify or add LEs intermediate certificate to your CA bundle (could be a custom CA bundle you set only for the SSLContext for this request)
jokester has joined #ruby
<ignorand>
jhass: thanks for the pointers
<jhass>
I've seen this particular configuration mistake all too often before :)
<ignorand>
jhass: I have too, but expected it to be ignored just how my FF ignored it
<ignorand>
but it seems that sslshopper correctly indicates that not all browsers will accept it :)
<jhass>
FF doesn't ignore it. Most leaf certificates actually provide an URL to fetch the parent certificate from and browsers implement doing that. Plain OpenSSL just does not
<nofrex>
also means your site will load slower, as the browser has to go fetch the intermediate cert
<ignorand>
jhass: Can't I just download the LE and add it in the code instead of 'add LEs intermediate certificate to your CA bundle'
<jhass>
I mean you could add code to fetch it first I guess xD
baojg has joined #ruby
<ignorand>
well, local works :)
crankharder has quit [Ping timeout: 256 seconds]
<plant_enjoyer>
is there a nicer way of writing `unless (foo = might_be_nil); log_and_exit`? I want to exit if foo would become nil, and use foo later (knowing it's not nil)
<plant_enjoyer>
oops, forgot `end`
dionysus70 has quit [Quit: dionysus70]
<jhass>
is might_be_nil a method or a local already?
crankharder has joined #ruby
<plant_enjoyer>
jhass: it's a hash lookup to be exact (so a method call, right?)
<jhass>
mh, yes but a constant time one
<jhass>
so I would consider just repeating it without the local
<plant_enjoyer>
but then the linter screams at me >:(
<jhass>
make it shut up :P
<jhass>
other options I would consider are foo = lookup; log_and_exit unless foo; do_stuff_with(foo) or if foo = lookup; do_stuff_with_foo(foo); else; log_and_exit; end
<jhass>
(I wish Rubocop's default config would be much much more lenient, there's just too much stuff in there I can't agree with on applying on a dogmatic manner)
<plant_enjoyer>
I did the unless one, looks good - thanks
<plant_enjoyer>
I'm using standard :)
BenDover has quit [Ping timeout: 272 seconds]
<nakilon>
exit if foo.nil?
<nakilon>
(that's a code, not a question)
braincrash has quit [Ping timeout: 260 seconds]
klaas_ is now known as klaas
crankharder has quit [Read error: Connection reset by peer]
akem_ has joined #ruby
<plant_enjoyer>
nakilon: I need more code than that, so I wrote `unless foo; exit_and_other_stuff end`
<nakilon>
I was thinking "why should I use a gem, what can go wrong" and faced this weird syntax issue ..D and lost few days of monitoring data in result
<jhass>
honestly, you deserve it for that level of paren free expression nesting :P
* nakilon
burns parens with fire
<jhass>
when would that ever raise that error anyhow?
<jhass>
ah I guess pid is not your own pid
<nakilon>
yes, and somehow process dies meanwhile
<jhass>
if it's supposed to be long running maybe it forks and lets the parent die
<jhass>
but in general for a whole system, this can happen a lot as there's many many short lived processes
<nakilon>
I guess it just iterates over all OS processes and who knows what it does, it's on a host, not a container
<jhass>
right, so just have somebody login and run ls and you have a fair chance of seeing it but not making it in time to read its cmdline