llua has quit [Quit: <Rudolph> shell code is what greycat reads to kids when he tucks them in]
hanzo has joined #ruby
Fusl has quit [Excess Flood]
andrea[m] has joined #ruby
BSaboia has quit [Quit: ZNC 1.8.2+deb2build1 - https://znc.in]
BSaboia has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
Fusl has joined #ruby
bluedust has joined #ruby
shekelberg has joined #ruby
shekelberg has quit [Client Quit]
bluedust_ has joined #ruby
fporter has quit [Ping timeout: 240 seconds]
bluedust has quit [Ping timeout: 256 seconds]
bluedust has joined #ruby
ur5us has joined #ruby
bluedust_ has quit [Ping timeout: 256 seconds]
Leon_ has joined #ruby
leonthemisfit has quit [Read error: Connection reset by peer]
Leon_ is now known as Guest5824
ua__ has quit [Ping timeout: 256 seconds]
ua__ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
bluedust has quit [Remote host closed the connection]
hanzo has quit [Quit: Connection closed for inactivity]
bluedust has joined #ruby
teclator has joined #ruby
ur5us has joined #ruby
Guest7003 has joined #ruby
Rounin has joined #ruby
roshanavand has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
Rounin has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Quit: Yankies Motherfh@ckers C0[k Astroboys]
Rounin has joined #ruby
exondation has joined #ruby
TomyWork has joined #ruby
oxfuxxx has joined #ruby
jmcgnh has quit [Ping timeout: 240 seconds]
jmcgnh has joined #ruby
Jonopoly has joined #ruby
bluedust_ has joined #ruby
bluedust has quit [Ping timeout: 240 seconds]
gproto23 has joined #ruby
gr33n7007h has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
va5c0 has quit [Quit: WeeChat 3.4]
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
oxfuxxx has quit [Ping timeout: 252 seconds]
va5c0 has quit [Quit: WeeChat 3.4]
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
va5c0 has joined #ruby
bluedust_ has quit [Remote host closed the connection]
bluedust has joined #ruby
va5c0 has quit [Quit: WeeChat 3.4]
va5c0 has joined #ruby
infinityfye has joined #ruby
va5c0 has quit [Read error: Connection reset by peer]
va5c0 has joined #ruby
libsys has quit [Ping timeout: 256 seconds]
libsys has joined #ruby
John_Ivan has joined #ruby
bluedust has quit [Remote host closed the connection]
exondation has quit [Ping timeout: 268 seconds]
exondation has joined #ruby
Guest53 has joined #ruby
Guest53 has quit [Client Quit]
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
bluedust has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
bluedust_ has joined #ruby
hololeap has quit [Remote host closed the connection]
bluedust has quit [Ping timeout: 240 seconds]
hololeap has joined #ruby
bluedust has joined #ruby
bluedust_ has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
michigan has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0]
fef has joined #ruby
bluedust has quit [Remote host closed the connection]
manveru[m] has quit [Quit: You have been kicked for being idle]
bluedust has joined #ruby
oxfuxxx has joined #ruby
bluedust_ has joined #ruby
reset has quit [Quit: reset]
bluedust has quit [Ping timeout: 256 seconds]
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
reset has joined #ruby
<mooff>
are there any fun or useful ways to (mis)use the singleton class of a singleton class?
fef has quit [Ping timeout: 276 seconds]
gproto23_ has joined #ruby
gproto23 has quit [Ping timeout: 256 seconds]
llua has joined #ruby
llua is now known as looah
gproto23_ has quit [Ping timeout: 256 seconds]
michigan has quit []
bluedust_ has quit [Remote host closed the connection]
michigan has joined #ruby
bluedust has joined #ruby
jwr has joined #ruby
<jwr>
how can i properly use quotes in a db connection string so that it would evaluate like this when it gets to the db server? `USE DATABASE "PRODUCTION";`. I tried it like this `conn_string="database=\"<%= Rails.env.upcase %>" ... "`, but i'm seeing `database does not exist`, so the quotes are not being properly escaped, or something.
<jwr>
`conn_string="database=\"<%= Rails.env.upcase %>\" ... "`, i meant.
<weaksauce>
are those backticks? like ` or '
<weaksauce>
' is not interpolated so you need to use "
<weaksauce>
or i guess where is the context of that snippet?
<weaksauce>
but that should work like in that pastebin so it could be something else like Rails.env.upcase not being set at the point of use. the file not getting parsed by erb. some database permission error
___nick___ has joined #ruby
<adam12>
mooff: IIRC, Nakilon was using them to smuggle data around, but my memory is vague on that.
va5c0 has quit [Quit: WeeChat 3.4]
<adam12>
Steep is broken for me because of an activesupport issue, and that makes me sad.
<ox1eef>
anyone here using mruby on things like the Uno R3?
ur5us has joined #ruby
hellstabber[m]12 has joined #ruby
Aylat has joined #ruby
Aylat has quit [Changing host]
Aylat has joined #ruby
_ht has joined #ruby
___nick___ has quit [Ping timeout: 250 seconds]
HyLian has joined #ruby
HyLian_ has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 256 seconds]
Aylat has quit [Quit: Leaving]
onions has joined #ruby
<onions>
hello?
<leah2>
hi
<hellstabber[m]12>
Hii
<libsys>
sup brahs... question... can I specify an executable as dependency on a gemspec? I require a program to be installed which is not available on through rubygems
<leah2>
i dont think so
<leah2>
you could check it on startup
ox1eef has quit [Remote host closed the connection]
ox1eef has joined #ruby
<weaksauce>
or on install by using some kind of C extension building path without the build part?
<libsys>
:(
<leah2>
rubygems couldnt install it anyway, so what's the purpose :p
roshanavand has joined #ruby
<nakilon>
agree with mooff on numbered parameters
<nakilon>
adam12 not sure what I was smuggling lol but I'm pretty much lost in ruby's OOP and I don't feel a shame
<nakilon>
I suppose the fraction of interviewers who ask you oop quiz questionf from google is 10-100 higher than those who really understand the point of the oop
<nakilon>
so when you add all the ruby abilities around it it's just insane how one can remember all the stuff
<nakilon>
decades ago when you was taught how C with structures were getting the shape of C++ every single feature was explained why it had to be invented, at least I feel that it was like that
<nakilon>
now they just copypaste someone's blog posts into one pdf and call it "a book", that has oop in the 2nd or 3rd chapter just because
<nakilon>
resulting in teaching you overcomplicate things
jwr has quit [Remote host closed the connection]
constxd has quit [Quit: WeeChat 2.8]
bluedust_ has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
<cahoots>
hi, if i have a class "class MyClass ; def func1 ; at_exit { func2 } ; end ; def func2 ; end ; end" and i run "obj = MyClass.new ; obj.func1 ; obj = nil ; exit 0", will i run into issues since obj is deallocated?
<leftylink>
I don't see how it could. you can't know that obj is deallocated. I expect it not to be, because whatever is keeping track of at_exit functions would have necessarily need to have kept a reference to obj
<cahoots>
leftylink, how does the block keep a reference to obj?
<cahoots>
would it not keep a reference if the block didn't call func2?
<ox1eef>
i dont think the GC is not going to let you shoot yourself in the foot like that, at worst it would be nil
<ox1eef>
-not
<weaksauce>
i would assume the at_exit keeps a closure
<weaksauce>
and then it would run fine
<weaksauce>
and since there is a closure there the GC wouldn't cull it
<cahoots>
so ruby parses the closure, finds all the callers of functions, and retains them? how does it even know what to retain without running the closure?
<ox1eef>
ruby knows everything about your program, it can easily make informed decisions about when to GC or not
<cahoots>
ruby is also highly dynamic
<ox1eef>
it's also not C. you're not going to cause a segfault this way and if you did it would be a bug.
<weaksauce>
> Converts block to a Proc object (and therefore binds it at the point of call) and registers it for execution when the program exits. If multiple handlers are registered, they are executed in reverse order of registration.
roshanavand has quit [Ping timeout: 256 seconds]
<weaksauce>
everything is in scope in that object so func2 would be valid
<weaksauce>
you could see by playing around with ObjectSpace::garbage_collect before exiting i guess
<cahoots>
yeah true
roshanavand has joined #ruby
cahoots has quit [Ping timeout: 256 seconds]
<nakilon>
I wish I could add 'when' blocks in a loop