baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
despai has joined #ruby
msmith has quit [Remote host closed the connection]
agent_white has quit [Quit: bbl]
Guest69 has joined #ruby
railswebdev has joined #ruby
bkxd has joined #ruby
samdvr has left #ruby [#ruby]
samdvr has joined #ruby
samdvr has quit [Client Quit]
samdvr has joined #ruby
samdvr has quit [Client Quit]
bkxd has quit [Ping timeout: 255 seconds]
OTORelic1 has quit [Ping timeout: 260 seconds]
nertzy has joined #ruby
duderono_ has joined #ruby
jhack has quit [Quit: jhack]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
Guest66 has joined #ruby
Guest66 has quit [Client Quit]
Guest66 has joined #ruby
cschneid_ has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 255 seconds]
cschneid_ has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
brendan- has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
marxarelli is now known as marxarelli|afk
Guest66 has quit [Quit: Textual IRC Client: www.textualapp.com]
cschneid_ has quit [Ping timeout: 255 seconds]
brendan- has joined #ruby
hutch34 has joined #ruby
despai has quit [Ping timeout: 276 seconds]
nowhereman has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
bocaneri has joined #ruby
sucks has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
hutch34 has quit [Ping timeout: 276 seconds]
dgs has joined #ruby
marxarelli|afk is now known as marxarelli
xlegoman has joined #ruby
malconis has quit [Read error: Connection reset by peer]
l4v2 has quit [Quit: l4v2]
cdg_ has quit [Ping timeout: 240 seconds]
nckpz has quit [Ping timeout: 252 seconds]
markholmes has quit [Remote host closed the connection]
scottpgallagher has joined #ruby
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
cgibsonmm has joined #ruby
toretore has quit [Ping timeout: 258 seconds]
roamingdog has joined #ruby
jhack has quit [Quit: jhack]
boombox_ has joined #ruby
mikecmpbll has joined #ruby
solocshaw has joined #ruby
r_rios has joined #ruby
r_rios has joined #ruby
r_rios has quit [Changing host]
boombox_ has quit [Ping timeout: 255 seconds]
JeanCarl1Machado has joined #ruby
A_Drone has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Definity has quit [Ping timeout: 240 seconds]
nertzy has quit [Ping timeout: 252 seconds]
JeanCarl1Machado has quit [Client Quit]
_sfiguser has joined #ruby
JeanCarl1Machado has joined #ruby
JeanCarl1Machado has quit [Client Quit]
JeanCarl1Machado has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
newbie1 has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
JeanCarl2Machado has joined #ruby
JeanCarl3Machado has joined #ruby
skweek has joined #ruby
JeanCarl4Machado has joined #ruby
JeanCarl1Machado has quit [Quit: Lost terminal]
JeanCarloMachado has quit [Quit: Lost terminal]
JeanCarl2Machado has quit [Client Quit]
JeanCarl3Machado has quit [Client Quit]
JeanCarl4Machado has quit [Client Quit]
JeanCarloMachado has joined #ruby
bkxd has joined #ruby
marr has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 260 seconds]
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
Channel6 has joined #ruby
ecuanaso has joined #ruby
cschneid_ has joined #ruby
whathappens has quit [Remote host closed the connection]
dcunit3d has joined #ruby
KCmetro has quit [Quit: Leaving...]
eblip has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
tolerablyjake has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
cgibsonmm has quit [Remote host closed the connection]
cgibsonmm has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
sucks has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
ketan_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
cgibsonmm has quit [Ping timeout: 264 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
mistermocha has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
ketan has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
GarethAdams has joined #ruby
agent_white has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
johnzorn has quit [Ping timeout: 240 seconds]
GarethAdams has quit [Client Quit]
montanonic has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 264 seconds]
djbkd has quit [Quit: My people need me...]
mikeXsh has quit [Quit: Connection closed for inactivity]
saneax is now known as saneax-_-|AFK
danielpclark has quit [Remote host closed the connection]
jameser has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
arescorpio has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mumm-ra has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 256 seconds]
ecuanaso has joined #ruby
johnzorn has joined #ruby
marxarelli is now known as marxarelli|afk
jameser has quit [Max SendQ exceeded]
solocshaw has quit [Quit: solocshaw]
mistermocha has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
jameser has joined #ruby
amagawdd has quit [Quit: Leaving...]
duderonomy has joined #ruby
JeanCarloMachado has joined #ruby
raspado has joined #ruby
kht has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 1.7]
raul782 has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
hutch34 has joined #ruby
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusrub_ has quit []
Guest69 has joined #ruby
bkxd has joined #ruby
railswebdev has joined #ruby
bmurt has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
bkxd has quit [Ping timeout: 255 seconds]
raspado has quit [Remote host closed the connection]
nankyokusei has joined #ruby
jcao219 has joined #ruby
aryaching has joined #ruby
whathappens has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
raspado has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
bryancp_ has quit [Quit: Connection closed for inactivity]
nettoweb has joined #ruby
whathappens has quit [Ping timeout: 276 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
nettoweb has quit [Client Quit]
JeanCarloMachado has joined #ruby
cdg has joined #ruby
cpruitt has quit [Quit: cpruitt]
duderono_ has joined #ruby
duderono_ has quit [Client Quit]
msmith has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
agent_white has quit [Quit: brb]
roamingdog has joined #ruby
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
felltir has quit [Remote host closed the connection]
safetypin has joined #ruby
elifoster has joined #ruby
felltir has joined #ruby
Derperpe1 has quit [Ping timeout: 255 seconds]
A_Drone has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
johnzorn has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
A_Drone has joined #ruby
felltir has quit [Ping timeout: 264 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
ben_vulpes has joined #ruby
agent_white has joined #ruby
<ben_vulpes> so i'm looking at this function, call it a method on a class, that performs an assignation without ever returning anything. does ruby return the last assignation by default?
<elomatreb> Methods return the last evaluated expression, and an assignment returns the assigned value (the RHS)
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
solocshaw1 is now known as solocshaw
<ben_vulpes> elomatreb: neat, thanks
<ben_vulpes> linter probably bitching pointlessly
<elomatreb> What's the error/warning?
brent__ has joined #ruby
bthesorceror has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ben_vulpes> `assigned but unused variable`
Channel6 has quit [Quit: Leaving]
<elomatreb> Oh, you're assingning to a local variable (not an instance var)?
bthesorceror has quit [Client Quit]
<ben_vulpes> apparently
johnzorn has joined #ruby
<ben_vulpes> local vars aren't...local to the class instance and so ergo an instance var?
JeanCarloMachado has joined #ruby
<elomatreb> local variables (no @ in front) are local to the method
<ben_vulpes> dare i ask if they're threadsafe?
<elomatreb> Although setter methods (e.g. through attr_accessor) can look like assignment
<elomatreb> I'm not really experienced with Ruby threading, sorry
<ben_vulpes> eesh
<ben_vulpes> well now i'm just scared
<ben_vulpes> BUSHWHACKING ALONE THROUGH AN EMPTY FOREST OF CODE
<ben_vulpes> alone but for the leaves my predecessors pinned to the trunks
brent__ has quit [Ping timeout: 255 seconds]
<ben_vulpes> oh god okay here i go type the question into google i guess
amclain has quit [Quit: Leaving]
<ben_vulpes> looks like lexical scope holds? except for instance vars and class vars
<ben_vulpes> which i suppose makes sense
scottpgallagher has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
<Radar> ben_vulpes: hi.
d^sh has quit [Ping timeout: 256 seconds]
<agent_white> Be brave friend. I hope your scissors are of the sharpest.
<ben_vulpes> Radar: hi!
<ben_vulpes> Radar: what's up?
<Radar> ben_vulpes: It'd really help in situations like this if you could show us the method in question.
<Radar> Talking about code using just words isn't as great as bringing in the code itself.
<ben_vulpes> Radar: had someone not answered the question already using the words, i might oblige
<ben_vulpes> ;)
d^sh has joined #ruby
cgibsonmm has joined #ruby
<Radar> ben_vulpes: Just something to keep in mind for the future.
ecuanaso has joined #ruby
JeanCarloMachado has joined #ruby
<ben_vulpes> Radar: kind of you
<ben_vulpes> unnecessary, but kind.
<Radar> Hm I think not.
<Radar> (on the unnecessary part)
<Radar> But it's ok to have a different opinion.
<elomatreb> Radar: Again, sorry for pinging you earlier
t-recx has quit [Quit: t-recx]
<Radar> elomatreb: is ok
bthesorceror has joined #ruby
UnknownSoldier has joined #ruby
cgibsonmm has quit [Ping timeout: 264 seconds]
railswebdev has joined #ruby
Guest69 has joined #ruby
Xeago has joined #ruby
zerun0 has quit [Quit: Leaving]
johnzorn has quit [Ping timeout: 256 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
govg has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
JeanCarloMachado has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
bthesorceror has quit [Quit: bthesorceror]
GodFather has joined #ruby
leah2 has joined #ruby
UnknownSoldier is now known as tau
Chagel has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
hahuang65 has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
bthesorceror has joined #ruby
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]]
blackmesa has quit [Ping timeout: 256 seconds]
johnzorn has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
marxarelli|afk is now known as marxarelli
genpaku has quit [Remote host closed the connection]
brandon_ has quit [Ping timeout: 255 seconds]
marxarelli is now known as marxarelli|afk
whathappens has quit [Ping timeout: 240 seconds]
johnzorn has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
tdy has quit [Read error: Connection reset by peer]
tdy1 has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brandon_ has joined #ruby
ecuanaso has joined #ruby
jenrzzz has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
Silthias has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Silthias1 has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
Chagel has quit [Ping timeout: 260 seconds]
fowlduck has quit [Remote host closed the connection]
totimkopf has quit [Ping timeout: 255 seconds]
harfangk has joined #ruby
speakingcode has joined #ruby
raspado has quit [Remote host closed the connection]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
totimkopf has joined #ruby
elifoster has quit [Quit: update]
Chagel has joined #ruby
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
JeanCarloMachado has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
A_Drone has quit [Remote host closed the connection]
dcunit3d has joined #ruby
beilabs has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
bkxd has joined #ruby
braincrash has quit [Quit: bye bye]
aryaching_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
johnzorn has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
johnzorn has joined #ruby
tau has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
whathappens has joined #ruby
braincras has joined #ruby
P1ro has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
totimkopf has quit [Ping timeout: 255 seconds]
whathappens has quit [Ping timeout: 258 seconds]
totimkopf has joined #ruby
bruce_lee has joined #ruby
armyriad has quit [Ping timeout: 276 seconds]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
totimkopf has quit [Ping timeout: 260 seconds]
dcunit3d has quit [Ping timeout: 255 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
totimkopf has joined #ruby
cgibsonmm has joined #ruby
cgibsonmm has quit [Ping timeout: 276 seconds]
jcao219 has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
arescorpio has quit [Read error: Connection reset by peer]
raspado has joined #ruby
dcunit3d has joined #ruby
jack has joined #ruby
Cohedrin has joined #ruby
roamingdog has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
gix has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
tmtwd has joined #ruby
tmtwd has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
gusrub_ has joined #ruby
borodin has quit [Ping timeout: 255 seconds]
elifoster has joined #ruby
mlindahl_ has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
mlindahl has joined #ruby
gix has joined #ruby
jenrzzz has joined #ruby
JeanCarloMachado has joined #ruby
djbkd has joined #ruby
xall has joined #ruby
bkxd has joined #ruby
msmith has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 276 seconds]
mlindahl_ has joined #ruby
mlindahl has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
gusrub_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
A_Drone has joined #ruby
_djbkd has joined #ruby
l4v2 has joined #ruby
whathappens has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
JeanCarloMachado has joined #ruby
pilne has quit [Quit: Quitting!]
whathappens has quit [Ping timeout: 240 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
JeanCarloMachado has quit [Ping timeout: 256 seconds]
montanonic has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hutch34 has joined #ruby
Chagel has joined #ruby
Derperpe1 has joined #ruby
squ has joined #ruby
JeanCarloMachado has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Derperpe1 has quit [Ping timeout: 264 seconds]
Chagel has quit [Ping timeout: 240 seconds]
nictrasavios has joined #ruby
<nictrasavios> Hello, is anyone here to help diagnose a "Block in" error? I can't find what this error means via google >.<
hutch34 has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
rippa has joined #ruby
speakingcode has joined #ruby
marchelzo has quit [Quit: marchelzo]
<nictrasavios> Here is a gist of the problem: https://gist.github.com/
renchan has joined #ruby
Chagel has quit [Ping timeout: 255 seconds]
LoneHermit has joined #ruby
speakingcode has quit [Client Quit]
dcunit3d has joined #ruby
xall has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 252 seconds]
Chagel has joined #ruby
<agent_white> nictrasavios: That is a gist of the website offering gists of problems
<nictrasavios> .... Well, I failed.
<nictrasavios> Give me a few seconds >.<
benlieb has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
learning has joined #ruby
mistermocha has joined #ruby
<nictrasavios> It's the strangest error, because it does not happen if I run the commands manually via the console. It's also strange because usually putting an error into google gives me 5000 solutions, and 1-2 useful ones. But, I get almost nothing with this.
mistermocha has quit [Remote host closed the connection]
agent_white has quit [Quit: agent_white]
bthesorceror has quit [Quit: bthesorceror]
mistermocha has joined #ruby
<nictrasavios> agent_white, any clues?
anisha has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
l4v2 has quit [Quit: l4v2]
JeanCarloMachado has joined #ruby
Derperpe1 has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 255 seconds]
EckT has joined #ruby
howdoi has joined #ruby
b0nn has quit [Remote host closed the connection]
bkxd has joined #ruby
rajat_ has joined #ruby
markholmes has joined #ruby
ifctj has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
xen0fon has quit [Quit: xen0fon]
agent_white has joined #ruby
govg has joined #ruby
JeanCarloMachado has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
JeanCarloMachado has joined #ruby
whathappens has joined #ruby
dcunit3d has joined #ruby
cjk101010 has quit [Read error: Connection reset by peer]
anisha has quit [Ping timeout: 276 seconds]
whathappens has quit [Ping timeout: 256 seconds]
patarr has joined #ruby
grh has joined #ruby
enterprisey has quit [Ping timeout: 256 seconds]
Chagel has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
charliesome has joined #ruby
JeanCarloMachado has quit [Ping timeout: 255 seconds]
cgibsonmm has joined #ruby
Chagel has joined #ruby
patarr has quit [Ping timeout: 245 seconds]
cjk101010 has joined #ruby
nullfxn has joined #ruby
anisha has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
xall has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
cjk101010 has joined #ruby
elifoster has quit [Quit: sleep]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anisha has joined #ruby
grh has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Quit: Leaving.]
JeanCarloMachado has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
learning has quit [Remote host closed the connection]
learning has joined #ruby
anisha has joined #ruby
JoshS has joined #ruby
Alina-malina has quit [Ping timeout: 256 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
anisha has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
reverberations has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
Anonymoose2 has quit [Ping timeout: 256 seconds]
armyriad has joined #ruby
JeanCarloMachado has quit [Ping timeout: 255 seconds]
JeanCarloMachado has joined #ruby
raul782 has quit []
cyphase has joined #ruby
s0l__ has quit [Ping timeout: 252 seconds]
nictrasavios has quit [Quit: Ex-Chat]
s0l__ has joined #ruby
naftilos76 has joined #ruby
bkxd has joined #ruby
naftilos76 has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 255 seconds]
benlieb has quit [Ping timeout: 264 seconds]
jeyraof^mbpr has joined #ruby
jgnagy has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
milardovich has joined #ruby
johnzorn has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 240 seconds]
_djbkd has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
JeanCarloMachado has joined #ruby
_djbkd has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
Alina-malina has joined #ruby
Mortomes|Work has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
JeanCarloMachado has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
ifctj has quit [Ping timeout: 256 seconds]
nofxx has quit [Ping timeout: 245 seconds]
aryaching_ has quit [Ping timeout: 276 seconds]
johnzorn has joined #ruby
learning has quit [Remote host closed the connection]
Bish_ has joined #ruby
milardovich has quit []
Bish has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
Ishido has quit [Remote host closed the connection]
lenwood has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
JeanCarloMachado has joined #ruby
conta has joined #ruby
last_staff has joined #ruby
ifctj has joined #ruby
kotakhitam has joined #ruby
<kotakhitam> \q
<kotakhitam> ah sorry.. wrong window
<kotakhitam> exit
kotakhitam has quit [Quit: leaving]
andikr has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
grh has joined #ruby
JeanCarloMachado has joined #ruby
LoneHerm_ has joined #ruby
solocshaw has joined #ruby
sysvalve has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
ifctj has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 255 seconds]
jshjsh has joined #ruby
rajat_ has quit [Remote host closed the connection]
jack has quit [Ping timeout: 260 seconds]
tonini has joined #ruby
JoshS has quit [Ping timeout: 256 seconds]
jcao219 has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
lenwood has joined #ruby
jcao219 has joined #ruby
xall has quit [Ping timeout: 245 seconds]
bkxd has joined #ruby
zeroDivi1 has quit [Quit: WeeChat 1.7]
newcoder has joined #ruby
chouhoulis has joined #ruby
JeanCarloMachado has quit [Ping timeout: 255 seconds]
Chagel has quit [Ping timeout: 258 seconds]
newcoder has left #ruby [#ruby]
JeanCarloMachado has joined #ruby
teclator has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
conta has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
conta has joined #ruby
aryaching has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aganov has joined #ruby
lenwood has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
cgibsonmm has joined #ruby
DTZUZU2 has joined #ruby
whathappens has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
DTZUZU has quit [Ping timeout: 255 seconds]
minimalism has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
mark_66 has joined #ruby
jaruga______ has joined #ruby
cgibsonmm has quit [Ping timeout: 255 seconds]
blaxter has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
Snickers has joined #ruby
JeanCarloMachado has joined #ruby
patarr has joined #ruby
Silthias1 has joined #ruby
teclator has joined #ruby
roamingdog has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
ifctj has joined #ruby
cschneid_ has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
roamingdog has quit [Ping timeout: 276 seconds]
markholmes has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 258 seconds]
djbkd_ has joined #ruby
JeanCarloMachado has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
infernix has quit [Ping timeout: 255 seconds]
blaxter has quit [Quit: foo]
ifctj has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
djbkd_ has quit [Remote host closed the connection]
Burgestrand has joined #ruby
infernix has joined #ruby
solocshaw has joined #ruby
xen0fon has joined #ruby
ferr1 has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
tomphp has joined #ruby
cfwnob has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
minimalism has joined #ruby
bkxd has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
xall has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
<pagios> Hello, so i have a localDatabase and a remoteDatase. Both databases are replicas and contain the same number of columns of data and rows. Now, i need to update database1 column1 and make it autoreplicate only those columns to database 2. At the same time i want to update column2 in database2 and autoreplicate the changes to column2 in database1. database1 should never update column2 it should only receive the updates and vice versa
aufi has joined #ruby
mikecmpbll has joined #ruby
dionysus69 has joined #ruby
jsrn has joined #ruby
vuoto has joined #ruby
whathappens has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<Burgestrand> pagios two things, 1) sounds like you might be in the wrong channel 2) your message looks cut off
Dimik has quit [Ping timeout: 264 seconds]
xall has quit [Ping timeout: 240 seconds]
whathappens has quit [Ping timeout: 245 seconds]
beilabs has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
Bish_ is now known as Bish
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
nettoweb has joined #ruby
bergalath has joined #ruby
LoneHermit has quit [Remote host closed the connection]
bergalath is now known as Guest67598
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
Fernando-Basso has joined #ruby
antgel has joined #ruby
LoneHermit has quit [Remote host closed the connection]
Fernando-Basso has quit [Client Quit]
Fernando-Basso has joined #ruby
jinie has quit [Ping timeout: 255 seconds]
raatiniemi has quit [Read error: Connection reset by peer]
dasher00 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
raatiniemi has joined #ruby
jinie has joined #ruby
dasher00 has joined #ruby
montanonic has quit [Ping timeout: 256 seconds]
davezd has joined #ruby
jz has joined #ruby
hutch34 has joined #ruby
jz is now known as Guest15205
agent_white has quit [Quit: agent_white]
blackmesa has joined #ruby
johnzorn has quit [Ping timeout: 240 seconds]
nettoweb has quit [Ping timeout: 264 seconds]
tomphp has quit [Read error: Connection reset by peer]
yeticry_ has joined #ruby
tomphp has joined #ruby
JoshS has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
jshjsh has quit [Ping timeout: 256 seconds]
Guest_ has joined #ruby
ketan_ has quit [Remote host closed the connection]
Burgestrand has quit [Read error: Connection reset by peer]
ketan has joined #ruby
marr has joined #ruby
Burgestrand has joined #ruby
mim1k has joined #ruby
Burgestrand has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
charliesome has joined #ruby
pandaant has joined #ruby
A_Drone has quit [Remote host closed the connection]
nettoweb has joined #ruby
bkxd has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Guest_ is now known as davidv
cgibsonmm has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
nadir has quit [Quit: Connection closed for inactivity]
bkxd has quit [Ping timeout: 255 seconds]
stoffus has joined #ruby
mim1k has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
ketan has quit []
jeyraof^mbpr has quit [Quit: Leaving]
ketan has joined #ruby
nankyokusei has joined #ruby
ketan has quit [Client Quit]
ketan has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
nankyokusei has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
JoshS has quit [Read error: Connection reset by peer]
JoshS has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
workmad3 has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
cfwnob has quit [Remote host closed the connection]
cschneid_ has joined #ruby
patarr has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
nribec has joined #ruby
JeanCarloMachado has joined #ruby
Lord_of_Life has quit [Excess Flood]
ldnunes has joined #ruby
jshjsh has joined #ruby
Lord_of_Life has joined #ruby
lxsameer has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
Burgestr_ has joined #ruby
Burgestrand has quit [Ping timeout: 258 seconds]
twodayslate has quit [Quit: Connection closed for inactivity]
toretore has joined #ruby
jcao219 has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
jenrzzz has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
Guest67598 has quit [Quit: Leaving]
binaryplease has joined #ruby
prestorium has quit [Ping timeout: 245 seconds]
jameser has joined #ruby
Burgestr_ has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
DarthGandalf has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 256 seconds]
cschneid_ has joined #ruby
eb0t has quit [Quit: WeeChat 1.4]
DarthGandalf has joined #ruby
milardovich has joined #ruby
prestorium has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
whathappens has joined #ruby
jdm has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
mim1k has quit [Disconnected by services]
mim1k|work has joined #ruby
mim1k has joined #ruby
patarr has joined #ruby
whathappens has quit [Ping timeout: 276 seconds]
milardovich has quit []
jenrzzz has quit [Ping timeout: 252 seconds]
tomaw has quit [Quit: Quitting]
patarr has quit [Ping timeout: 258 seconds]
tomaw has joined #ruby
jdm has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
jdm has joined #ruby
jdm has quit [Remote host closed the connection]
jdm has joined #ruby
binaryplease has quit [Quit: binaryplease]
binaryplease has joined #ruby
UserJosh has joined #ruby
minimalism has quit [Read error: Connection reset by peer]
jshjsh has quit [Ping timeout: 256 seconds]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
solocshaw has joined #ruby
cgibsonmm has joined #ruby
eb0t has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
cgibsonmm has quit [Ping timeout: 245 seconds]
Guest69 has joined #ruby
railswebdev has joined #ruby
Ishido has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
hutch34 has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
jameser has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
despai has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
jdm has quit [Quit: Leaving]
jdm has joined #ruby
nowhereman has joined #ruby
cschneid_ has joined #ruby
gregf_ has joined #ruby
nowhere_man has joined #ruby
solocshaw has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
solocshaw has quit [Ping timeout: 255 seconds]
adaedra has quit [Quit: ZNC 1.6.4 - http://znc.in]
nankyokusei has quit [Ping timeout: 256 seconds]
Beams has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
adaedra has joined #ruby
binaryplease has quit [Ping timeout: 260 seconds]
harfangk has joined #ruby
whathappens has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
whathappens has quit [Ping timeout: 255 seconds]
catphish has joined #ruby
Derperpe1 has quit [Ping timeout: 240 seconds]
braincras has quit [Ping timeout: 276 seconds]
cpruitt has joined #ruby
Cork has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
binaryplease has joined #ruby
nowhere_man has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
binaryplease has quit [Client Quit]
blackmesa has quit [Ping timeout: 260 seconds]
binaryplease has joined #ruby
Cork has joined #ruby
sepp2k has joined #ruby
Jackneill_ has joined #ruby
tdy1 has quit [Read error: Connection reset by peer]
sepp2k has quit [Client Quit]
oivoodoo has joined #ruby
sepp2k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jgnagy has joined #ruby
UnknownSoldier has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
UserJosh has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
LiquidIn1ect has quit [Ping timeout: 276 seconds]
nadir has joined #ruby
JoshS has joined #ruby
solocshaw has joined #ruby
despai has quit [Ping timeout: 255 seconds]
despai has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
<catphish> the documentation for Socket#connect_nonblock contains the following example:
<catphish> socket = Socket.new(AF_INET, SOCK_STREAM, 0); sockaddr = Socket.sockaddr_in(80, 'www.google.com')
jameser has joined #ruby
<catphish> however this doesn't work, because it assumes the protocol will be AF_INET, which is not actually the case for www.google.com, is there an obvious way to resolve this?
<matthewd> Do it the other way around?
psychicist__ has joined #ruby
<catphish> ah, i think the result of sockaddr_in contains the family
ocbtec has joined #ruby
<catphish> it's not very obvious because it returns a string
<catphish> >> Socket.sockaddr_in(80, 'www.google.com')
<ruby[bot]> catphish: # => uninitialized constant Socket (NameError) ...check link for more (https://eval.in/736834)
<catphish> >> require 'socket'; Socket.sockaddr_in(80, 'www.google.com')
<ruby[bot]> catphish: # => (https://eval.in/736837)
BackEndCoder has quit [Excess Flood]
<catphish> guess i'm not allowed to do that
<catphish> but it returns "\n\x00\x00P\x00\x00\x00\x00*\x00\x14P@\t\b\x02\x00\x00\x00\x00\x00\x00 \x04\x00\x00\x00\x00"
<matthewd> IIRC if you really care about not blocking, you need to do the DNS resolution yourself too
<catphish> Socket::Constants::AF_INET6 == 10
LiquidInsect has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<catphish> matthewd: that's also true
bkxd has joined #ruby
<catphish> though i'm not too worried about that
BackEndCoder has joined #ruby
<matthewd> (at which point you'd know whether it's 4 or 6)
<catphish> that's true i suppose
Definity has joined #ruby
<catphish> nothing's ever simple :)
tyang has joined #ruby
dionysus69 has joined #ruby
<catphish> async dns resolution in ruby is nontrivial it would seem :)
a1fa has quit [Ping timeout: 255 seconds]
a1fa has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
roamingdog has joined #ruby
<matthewd> If you don't care about making it async, the source of Socket.tcp (using Addrinfo.foreach) seems relevant
JeanCarloMachado has quit [Remote host closed the connection]
<catphish> i'm probably going to go ahead and make an async implementation of rsolution using a DNS socket and Resolv
davezd has quit [Quit: Leaving]
<catphish> having realised this is probably quite important
lxsameer has quit [Ping timeout: 264 seconds]
l4v2 has joined #ruby
nictrasavios has joined #ruby
<catphish> thanks for the pointers
roamingdog has quit [Ping timeout: 255 seconds]
<matthewd> Bonus points for a gem/method that does the async stuff and produces an Addrinfo ;)
<catphish> the async stuff will be rather propriatery to my event loop
whathappens has joined #ruby
<nictrasavios> May I ask questions with rails stuff in here, or is that not allowed since RubyonRails exists? I figure you guys might be better at the logic and database side of things.
Cork has quit [Ping timeout: 258 seconds]
nettoweb has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
millerti has joined #ruby
byte512 has joined #ruby
Cork has joined #ruby
millerti has quit [Client Quit]
Derperpe1 has joined #ruby
LoneHerm_ has joined #ruby
naprimer_2 is now known as patrique
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patrique is now known as Patrique
Patrique is now known as naprimer
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
jameser has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
nertzy has joined #ruby
JeanCarloMachado has joined #ruby
LoneHermit has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
Derperpe1 has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 276 seconds]
spiette has quit [Quit: :qa!]
govg has quit [Ping timeout: 240 seconds]
squ has quit [Remote host closed the connection]
Cork has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
nertzy has quit [Ping timeout: 256 seconds]
t-recx has joined #ruby
chouhoulis has joined #ruby
newrubycoder has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
nertzy has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapouik has joined #ruby
<kapouik> hi
dcunit3d has joined #ruby
mim1k has joined #ruby
Derperpe1 has joined #ruby
learning has joined #ruby
hutch34 has joined #ruby
despai has quit [Ping timeout: 255 seconds]
despai has joined #ruby
despai has quit [Client Quit]
<ketan> nictrasavios: there is a #RubyOnRails channel
tobiasvl has quit [Ping timeout: 240 seconds]
avrelaun has quit [Ping timeout: 276 seconds]
avrelaun has joined #ruby
bkxd has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
Derperpe1 has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
bmurt has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
vuoto has quit [Remote host closed the connection]
ramortegui has joined #ruby
<catphish> nictrasavios: if you properly distil your question, it should become clear whether it's a language question, or a framework question, or a database question, but as a rule, just ask :)
bkxd has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
kapouik has left #ruby ["WeeChat 1.6"]
ldnunes has joined #ruby
despai has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubian has joined #ruby
<rubian> hi
<rubian> Does somebody know what BigDecimal should return when passing an empty string? Like BigDecimal("")
cdg_ has joined #ruby
<toretore> >> require 'bigdecimal'; BigDecimal('')
<ruby[bot]> toretore: # => #<BigDecimal:414a9cc8,'0.0',9(9)> (https://eval.in/736952)
nankyokusei has quit [Ping timeout: 245 seconds]
tlahtoani has joined #ruby
* apeiros would prefer if it raised an exception :-|
<rubian> cause im dealing with this error invalid value for BigDecimal(): ""
<apeiros> you may have a non-printable there
<apeiros> also, which ruby version?
<rubian> I was running ruby 1.9.3 and since upgrading to 2.4.0 I experience this error
cdg has quit [Ping timeout: 268 seconds]
<toretore> ?code rubian
<ruby[bot]> rubian: We can't help you without your code, please post it to https://gist.github.com
<rubian> It's just about this: BigDecimal("")
<matthewd> Yeah, looks like apeiros got his wish in 2.4
<apeiros> yaaaay \o/ :D
<rubian> So in ruby < 2.4.0 BigDecimal did not care about getting passed an empty string?
millerti has joined #ruby
<apeiros> ooh, good to know that I only have 2.3 on this machine
* apeiros upgrades
<apeiros> rubian: yupp. at least I just tried in 2.3, and there it does indeed not care about empty string.
govg has joined #ruby
<apeiros> and since you used to use 1.9, I'd say it didn't care for a long time and just turned it into 0
<rubian> okay thank you very much. Time to validate before passing ^
<rubian> *^^
JeanCarloMachado has quit [Ping timeout: 264 seconds]
msmith has joined #ruby
oivoodoo has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
shinnya has joined #ruby
Qchmqs has joined #ruby
hutch34 has joined #ruby
^_^Ce_ImOet^_^ has joined #ruby
hutch34 has quit [Read error: Connection reset by peer]
anisha_ has quit [Quit: This computer has gone to sleep]
psychicist__ has quit [Ping timeout: 268 seconds]
DLSteve has joined #ruby
oivoodoo has joined #ruby
Derperpe1 has joined #ruby
Snickers has quit [Ping timeout: 264 seconds]
jud has quit [Read error: Connection reset by peer]
jud has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
solocshaw has quit [Remote host closed the connection]
jmhmccr has quit [Ping timeout: 258 seconds]
deimos has quit [Ping timeout: 258 seconds]
SteenJobs has joined #ruby
jwheare has quit [Ping timeout: 258 seconds]
jmhmccr has joined #ruby
nadir has quit [Ping timeout: 240 seconds]
Jay_ has joined #ruby
solocshaw has joined #ruby
tonini has quit [Ping timeout: 258 seconds]
cschneid has quit [Ping timeout: 258 seconds]
w5isp has quit [Ping timeout: 258 seconds]
lx4 has quit [Ping timeout: 258 seconds]
quiller has quit [Ping timeout: 258 seconds]
bartzy has quit [Ping timeout: 258 seconds]
jxf has quit [Ping timeout: 258 seconds]
Yonk_ has quit [Ping timeout: 258 seconds]
avdi has quit [Ping timeout: 258 seconds]
Heero has quit [Ping timeout: 258 seconds]
zack6849 has quit [Ping timeout: 258 seconds]
bazz_ has quit [Ping timeout: 258 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 258 seconds]
epochwolf has quit [Ping timeout: 258 seconds]
<Jay_> for :except in as_json, is there anyway to exempt a method found in a method defined in :methods ?
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
mroth has quit [Ping timeout: 258 seconds]
rideh- has quit [Ping timeout: 276 seconds]
jwheare has joined #ruby
a1fa has quit [Ping timeout: 276 seconds]
nadir has joined #ruby
a1fa has joined #ruby
lupine_ has quit [Quit: No Ping reply in 180 seconds.]
bartzy has joined #ruby
Heero has joined #ruby
Bilge has quit [Ping timeout: 258 seconds]
jxf has joined #ruby
deimos has joined #ruby
Bilge has joined #ruby
avdi has joined #ruby
fuzzyhorns has joined #ruby
mroth has joined #ruby
jhack has joined #ruby
lx4 has joined #ruby
rideh has joined #ruby
cschneid has joined #ruby
epochwolf has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yonk_ has joined #ruby
Guest65356 has joined #ruby
Tempesta has quit [Ping timeout: 255 seconds]
ferr1 has quit [Quit: WeeChat 1.6]
Fire-Dragon-DoL has joined #ruby
kikadisa has joined #ruby
^_^Ce_ImOet^_^ has quit [Ping timeout: 276 seconds]
<kikadisa> Hello
<kikadisa> I got a loop with a do
quiller has joined #ruby
<kikadisa> Is it possible to add an if statement after the end ?
bazzy has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<kikadisa> i agree it's possible to do foos.each {|foo| p foo } unless foos.nil?
<kikadisa> ut is it possible to do
Azure has quit [Ping timeout: 252 seconds]
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
Jay_ has quit [Quit: Page closed]
<ruby[bot]> kikadisa: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c1420a998a62f343268348b78159a735
<ruby[bot]> kikadisa: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
kristofferR has joined #ruby
lupine has joined #ruby
<apeiros> kikadisa: yes, that works
<apeiros> ?try kikadisa
<ruby[bot]> kikadisa: Why don't you try it and see for yourself?
<apeiros> you can use irb (comes with ruby) or pry (a gem) to try stuff like that
<kikadisa> becaue i know myself if i try and it doesn't work i will made everything to be working
<kikadisa> and break my head
<kikadisa> mostly
malconis has joined #ruby
<kikadisa> apeiros: i do not have this reflexe
<kikadisa> but thanks
<apeiros> well, try whether it works, and if it doesn't, ask…
<kikadisa> i'll try
<kikadisa> thanks a lot
<apeiros> s/if/when/
<kikadisa> ;)
Beams has quit [Remote host closed the connection]
Guest65356 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
rt has quit [Ping timeout: 258 seconds]
kikadisa has left #ruby [#ruby]
despai has quit [Quit: This computer has gone to sleep]
solocshaw has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
beilabs has quit [Remote host closed the connection]
lejit has joined #ruby
Beams has joined #ruby
Macrobiotic has joined #ruby
Definity has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rt has joined #ruby
mistermocha has joined #ruby
grh has quit [Ping timeout: 240 seconds]
GeorgesLeYeti has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
Definity has joined #ruby
Azure has joined #ruby
mikecmpbll has quit [Quit: inabit.]
mikecmpbll has joined #ruby
<centrx> !hi
<GeorgesLeYeti> Hi
<GeorgesLeYeti> I would like to joins 2 hash
kristofferR has joined #ruby
Cork has joined #ruby
<GeorgesLeYeti> with merge it remove my mp3_path and just let the ogg_path
mistermocha has quit [Ping timeout: 260 seconds]
kristofferR has quit [Client Quit]
klaas has quit [Read error: Connection reset by peer]
matled has quit [Remote host closed the connection]
klaas has joined #ruby
matled has joined #ruby
millerti has joined #ruby
blackmesa has joined #ruby
kristofferR has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
bkxd has joined #ruby
<GeorgesLeYeti> I reedit with the correct syntaxe: https://gist.github.com/anonymous/b63852120c60efc868dca3a54bce181f
blackmesa has quit [Ping timeout: 264 seconds]
rubian has quit [Quit: Page closed]
pandaant has quit [Remote host closed the connection]
roamingdog has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
Azure has quit [Read error: Connection reset by peer]
<newrubycoder> guys when i'm looking at ruby benchmarks like "user system total real 3.960000 0.010000 3.970000 ( 3.990886)", what does the numbers mean?
<centrx> newrubycoder: it divides up the time taken by the app itself, and the kernel/OS
__Yiota has joined #ruby
<centrx> newrubycoder: "user" is the app, "system" is the kernel/OS/background
<centrx> newrubycoder: "total" is user + system
<newrubycoder> ah ok
<centrx> newrubycoder: "real" is the actual real-world time, the other times are based on CPU timing or something (still very close)
roamingdog has quit [Ping timeout: 264 seconds]
<newrubycoder> what time is used? miliseconds? nanoseconds?
GodFather has joined #ruby
<centrx> I thought it was seconds
<newrubycoder> yeah it might be cuz i think the benchmark does it 1000 times or something
fuzzyhorns has quit [Quit: Leaving.]
<centrx> newrubycoder: "This report shows the user CPU time, system CPU time, the sum of the user and system CPU times, and the elapsed real time. The unit of time is seconds."
whathappens has joined #ruby
SteenJobs has joined #ruby
despai has joined #ruby
<newrubycoder> apparently the sort function is slower than sort_by
prestorium has quit [Quit: Leaving]
fuzzyhorns has joined #ruby
Beams_ has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
Beams has quit [Ping timeout: 240 seconds]
<Zarthus> i wouldn't worry too much about performance
<Zarthus> if you work in a field where microoptimizations are important, ruby is the wrong language to begin with
teclator has quit [Remote host closed the connection]
<newrubycoder> but 4 seconds vs 0.65 seconds is a lot
<newrubycoder> it's like 6 times more efficient
<newrubycoder> not very micro i think
patarr has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
beilabs has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Derperpe1 has quit [Max SendQ exceeded]
<elomatreb> newrubycoder: This is a good read for optimizations like that: https://github.com/JuanitoFatas/fast-ruby
<fuzzyhorns> newrubycoder: missed the upthread, what're you looking at?
<fuzzyhorns> and Zarthus i think i agree it's not micro
<fuzzyhorns> i wish we wouldn't give up on ruby being faster
<Zarthus> fuzzyhorns: his name is newrubycoder
blackmesa has joined #ruby
<fuzzyhorns> Zarthus: doesn't mean he can't do math lol
<Zarthus> fuzzyhorns: I think if you already start benchmarking as a beginner you're taking the wrong road of learning :P
Derperpe1 has joined #ruby
<fuzzyhorns> Zarthus: depends. i don't agree necessarily
<Zarthus> benchmarks in general are pretty useless
<fuzzyhorns> i think we'll agree to disagree
<elomatreb> sort_by isn't necessarily faster than regular sort though, it's just it often uses a cheaper comparison method (usually integers)
<toretore> i think it's useless to be benchmarking and trying to optimize when you don't know basic ruby yet
<toretore> newrubycoder: ^
<fuzzyhorns> again, depends on learning style
<Zarthus> aye, while i agree 4 seconds vs 0.6 is a good gain, it won't come down to "sort by" being faster, just that in this scenario it performs better.
<fuzzyhorns> benchmarking merge vs merge! can lead to some good insights
blackmesa has quit [Ping timeout: 245 seconds]
mikecmpb_ has joined #ruby
<Zarthus> benchmarking gives the idea "this method is always faster, i should always use this"
<fuzzyhorns> i know premature optimization is the root of all evil, but if you're just using these tools to ask "why"
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<fuzzyhorns> Zarthus: it _can_, it does not necessarily do so.
synthroid has quit [Remote host closed the connection]
<Zarthus> one good signal of this is in fast-ruby itself, it recommends array[0] over array.first, but readability is worth so much more
<fuzzyhorns> writing bad benchmarks doesn't mean benchmarks are useless; same logic applied to tests in general
patarr has quit [Ping timeout: 268 seconds]
<Zarthus> how can you write good benchmarks if you're new to the language
synthroid has joined #ruby
<fuzzyhorns> Zarthus: ime, using property tests is a cross language practice
<toretore> i think learning variable assignment, expressions vs statements, iteration etc. should take precedence over trying to optimize for speed
* Zarthus shrugs
<fuzzyhorns> i know i'm not going to convince you Zarthus
<Zarthus> I've never had to really resort to benchmarking to find the bottleneck of my application
<fuzzyhorns> just offering a different perspective
kristofferR has joined #ruby
<fuzzyhorns> I have — in prod and for fun
mikecmpbll has quit [Ping timeout: 256 seconds]
<Zarthus> it'll help, sure, but to each their own :)
agent_white has joined #ruby
<agent_white> Mornin' folks
benlieb has joined #ruby
ifctj has joined #ruby
<newrubycoder> it's more like afternoon here
<fuzzyhorns> to me it's telling that everyone here was more interested in beating back newrubycoder's curiosity than admitting they don't really know why ruby behaves the way it does — why the large difference in performance for this test, and how you could test differently to surface the "why"
Definity has quit [Ping timeout: 240 seconds]
xall has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
Qchmqs has quit [Ping timeout: 264 seconds]
Definity has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
cschneid_ has joined #ruby
Azure has joined #ruby
JeanCarloMachado has joined #ruby
<matthewd> newrubycoder: 4s vs 0.6s *on ruby 1.8*
aganov has quit [Quit: Leaving]
<fuzzyhorns> for instance, in this test, i find it really Smelly that reverse is compared to reverse! — ime using a bang can often speed you up from quadratic to linear
<fuzzyhorns> actually, looking again, the labels are wrong — both use reverse, even though one is labeled reverse!
x00r__ has joined #ruby
<newrubycoder> matthewd: yeah i guess the info is a bit outdated i will be doing some benchmarking myself maybe when i can figure out gems and stuff
<fuzzyhorns> newrubycoder: you can also use https://github.com/mooreniemi/graph-function to compare
<matthewd> The point stands, though, that the answer is actually "it depends"
<fuzzyhorns> ruby's core benchmark doesn't average a bunch of trials for you, but GF does
<elomatreb> Yep, they're also all run on 2.2, 2.4 speeds a few things up
malconis has quit [Read error: Connection reset by peer]
beilabs_ has joined #ruby
malconis has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
mark_66 has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
<fuzzyhorns> fwiw, I'm still genuinely curious why sort_by behaves better than sort in this circumstances :d
teclator has joined #ruby
nertzy has quit [Ping timeout: 240 seconds]
oivoodoo has quit [Remote host closed the connection]
nertzy has joined #ruby
rafadc_ has joined #ruby
<matthewd> fuzzyhorns: It's less operations. It's why sort_by exists.
rafadc_ has quit [Client Quit]
rafadc_ has joined #ruby
rafadc_ has quit [Client Quit]
bkxd has joined #ruby
<fuzzyhorns> matthewd: yah, how does it achieve that though?
rafadc_ has joined #ruby
<fuzzyhorns> is it not a comparison sort? (it lacks an explicit comparator but idk…)
skweek has quit [Ping timeout: 264 seconds]
<centrx> fuzzyhorns: handling a block has some overhead, that's part of it
<matthewd> The slow part -- the invocation of the block -- occurs N times for sort_by, along with an array allocation. For sort, it occurs however many times the sort algorithm needs to compare two elements.
tvw has quit [Ping timeout: 260 seconds]
<fuzzyhorns> matthewd: yeah how does it achieve that without memory overhead? (or does it have that?)
rafadc_ has quit [Client Quit]
<matthewd> > along with an array allocation
<fuzzyhorns> yah so it's not a comparison sort but doing ehh insertion sort? i follow
<matthewd> It's still a comparison sort, but it's a comparison sort on the transformed array
<matthewd> ... so the comparisons are comparatively fast, and in common cases (like this one) don't hit user code
rafadc_ has joined #ruby
nankyokusei has joined #ruby
rafadc_ has quit [Client Quit]
OTORelic1 has joined #ruby
rafadc_ has joined #ruby
<fuzzyhorns> neat this originated in Perl apparently? http://agelber.com/blog/ruby-sort-vs-sort-by
bkxd has quit [Ping timeout: 276 seconds]
dcunit3d has joined #ruby
<fuzzyhorns> i never knew! very interesting
rafadc_ has quit [Client Quit]
<fuzzyhorns> this reminds me of something i read in a functional programming book actually, the transformed array
samdvr has joined #ruby
rafadc_ has joined #ruby
ych has joined #ruby
learning has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 245 seconds]
ych has quit [Max SendQ exceeded]
abdulmugni has joined #ruby
armyriad has quit [Quit: Leaving]
blackmesa has joined #ruby
jsrn__ has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
cgibsonmm has joined #ruby
tlahtoani has quit [Quit: Connection closed for inactivity]
jaruga______ has quit [Quit: jaruga______]
jaruga______ has joined #ruby
jsrn has quit [Ping timeout: 258 seconds]
despai has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
jsrn has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
jsrn__ has quit [Ping timeout: 240 seconds]
davidv has quit [Quit: Textual IRC Client: www.textualapp.com]
samdvr has left #ruby [#ruby]
shortdudey123 has quit [Ping timeout: 240 seconds]
warreng_ has joined #ruby
warreng_ has quit [Changing host]
warreng_ has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
brent__ has joined #ruby
Synthead has joined #ruby
shortdudey123 has joined #ruby
w5isp has joined #ruby
<warreng_> can somebody help me understand if the expression "@queue.empty? && @queue.num_waiting == 10" is threadsafe or if the ruby intepreter could switch to another thread between .empty? and .num_waiting (and that thread could add something to the queue)? More context - https://gist.github.com/wkonkel/bcda8bd569bd7d6b8ca8a2928159044d
Synthead has quit [Remote host closed the connection]
rafadc_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Quit: WeeChat 1.7]
conta has quit [Ping timeout: 276 seconds]
Xiti has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
Xiti has joined #ruby
jshjsh has joined #ruby
<baweaver> assuming that's what @queue is you should be fine
<baweaver> "The Queue class implements all the required locking semantics."
Guest69 has joined #ruby
oivoodoo has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
<toretore> specifically, `@queue.empty? && @queue.num_waiting == 10` is not thread safe in the way you describe it
Derperpe1 has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 260 seconds]
<toretore> but it's a weird thing to be asking and you should instead provide more context
railswebdev has joined #ruby
<newrubycoder> toretore: can i whisper you?
<toretore> no
<toretore> what
<toretore> no
username_ has joined #ruby
username1 has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
<toretore> i know it's valentine's day and all but that's weird
cagomez has joined #ruby
JoshS has joined #ruby
<newrubycoder> lol i didnt mean it like that
<baweaver> XD
* baweaver cleans up tea he spit on desk
<toretore> if you want to ask me something you should ask in the channel
<toretore> that way everyone can help
solocshaw has joined #ruby
<newrubycoder> do you know any ruby books or resources in norwegian
<toretore> no idea
jshjsh has quit [Ping timeout: 240 seconds]
learning has joined #ruby
amclain has joined #ruby
<toretore> you should seek out english versions, they have the best quality and you seem proficient enough
<newrubycoder> thanks
GodFather has quit [Read error: Connection reset by peer]
GeorgesLeYeti has quit [Quit: Leaving]
millerti has joined #ruby
montanonic has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
<warreng_> toretore: for context, i provided that gist link with a 15 line snippet... TL;DR - i'm putting a few "requests" into a Queue. each request can optionally add additional requests to the queue. and i'm creating a thread pool to work on the requests. and when the queue is empty and no workers are working, i want to kill the threads and continue code execution.
solocshaw has quit [Ping timeout: 240 seconds]
jsrn has quit [Quit: Leaving]
<warreng_> if there's a better way to use @queue, i'd be happy to change around the approach
jcao219 has joined #ruby
Derperpe1 has joined #ruby
username1 has quit [Quit: Lost terminal]
username_ has quit [Quit: Lost terminal]
<toretore> well then you have a race condition: "when the queue is empty and no workers are working" is not something you can determine at any point in time if "each request can optionally add additional requests to the queue"
tlaxkit has joined #ruby
JoshS has quit [Quit: Leaving]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> warreng_: what makes you want to use a thread pool instead of just a thread per request?
<warreng_> if @queue.empty? && @queue.num_waiting == 10 was threadsafe, then i could. because if there's 10 workers, and they're all waiting on the queue rather than working, and the queue is empty, then we're finished.
<warreng_> right?
marxarelli has joined #ruby
<warreng_> toretore: there's sometimes thousands of requests. and i want to throttle the actual HTTP connections being made
<matthewd> warreng_: No, because the last two could both check that condition at the same time
<toretore> ok, that's legitimate
<warreng_> matthewd: could i use a mutex around just that check?
<toretore> you need some form of "job" abstraction, which can be marked as finished; then "associated requests" belong to this
<warreng_> but another thread could be in the middle of @queue.pop, so mutex doesn't help
<toretore> that way, you know exactly how many jobs you have, and each job can be >1 req
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<warreng_> toretore: i had that with a @number_workers_running that went up/down. but i still had race conditions in figuring out when to kill the threadpool
<toretore> when a job determines it needs to perform another request, it can just do it, or reschedule itself back on the queue
<matthewd> I suspect concurrent-ruby has a more closely-fitting abstraction for you
_djbkd has joined #ruby
<toretore> you didn't read what i wrote close enough: "worker" and "job" are two different things
<matthewd> warreng_: Can you move the check to the main thread?
<warreng_> so two queues!?
<matthewd> warreng_: When num_waiting == CONCURRENCY, they're all done.
<warreng_> matthewd: here was another approach with a timer: https://gist.github.com/wkonkel/abb0cd2abf3cb9afe69f19b5be7c8cc1
<matthewd> Thread.pass until @queue.num_waiting == CONCURRENCY; workers.each(&:kill)
<matthewd> (instead of the join)
<warreng_> ahhh, interesting...
mim1k has joined #ruby
Derperpe1 has quit [Max SendQ exceeded]
<warreng_> does "Thread.pass until" thrash CPU when threads are idle?
<matthewd> I'd check the implementation to be 100% sure, but I'm 99% sure that num_waiting won't get bumped unless the queue is empty... so your original thread-safety concern can just go away.
_djbkd has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
<warreng_> that's clever!
<matthewd> Worth checking what it does if all the others are doing IO or something, I guess -- you could go with a sleep if you prefer
[Butch] has joined #ruby
<warreng_> ya, a sleep 1 is no problem here. this loop can take 15 minutes sometimes, so an extra second at the end is fine :)
<warreng_> how would i check implementation? MRI source code i assume?
fuzzyhorns has quit [Quit: Leaving.]
<warreng_> sleep(1) until @queue.num_waiting == CONCURRENCY; workers.each(&:kill)
<warreng_> ^-- with a sleep, there's no need for Thread.pass, right?
<matthewd> Right
<matthewd> And yes, MRI source.
<warreng_> awesome, thanks
<warreng_> that seems like a 1-liner solution, awesome stuff
bkxd has joined #ruby
tlaxkit has quit [Quit: tlaxkit]
enterprisey has joined #ruby
<toretore> this assumes you have a list of uris or whatever as a starting point
BTRE has quit [Quit: Leaving]
oivoodoo has quit [Remote host closed the connection]
oivoodoo has joined #ruby
<warreng_> toretore: that's not the case
BTRE has joined #ruby
<toretore> well how do you know when you're done then?
<warreng_> i'm actually starting with 1 job, and that job creates N jobs, and each of those can create M and so on and so on
<warreng_> it's interacting with a remote API and looping over results
gusrub_ has joined #ruby
<warreng_> so if the remote API returns 50 results in the first API call, it's 50 additional requests that need to happen
hahuang61 has joined #ruby
<djellemah> warreng_: did you look at Queue#close ?
<warreng_> so at first, only one job runs and there's 9 idle workers still waiting on the queue
jhack has quit [Quit: jhack]
bkxd has quit [Ping timeout: 240 seconds]
<warreng_> djellemah: i don't know when to close the queue, that's the problem.
<toretore> warreng_: the whole thing revolves around figuring out what it means to be "done"
<toretore> that's what you must focus on
yk_ has joined #ruby
<warreng_> toretore: done is when the queue is empty and there are no current requests
<toretore> that's a race condition
<warreng_> if there's even 1 request currently running, that could create 1000 new requests
<warreng_> toretore: it's not a race condition
<toretore> you don't know when the queue is empty
<warreng_> the queue is often empty
<toretore> exactly
<warreng_> but if there is a request running, it can add stuff to the queue
Beams_ has quit [Quit: .]
cgibsonmm has joined #ruby
<warreng_> assuming matthewd is correct in that num_waiting isn't updated if there's a thread waiting on pop, then @queue.num_waiting == CONCURRENCY is a very elegant solution
<warreng_> it means "if all the threads are waiting" as in, none of them are working on a request
tristanp has joined #ruby
<warreng_> and if all threads are waiting, then the queue must be empty
<djellemah> only your producer side (ie the requests) can know when all requests have been put on the queue. So you have to wait for all requests to be finished, then close the queue.
<warreng_> matthewd: actually... i have doubts now that it will work.
anisha has joined #ruby
<warreng_> if i push a bunch of stuff on to the queue, there's a possibility that the queue has stuff on it, but no threads have popped yet. in this case num_waiting will still be all the threads
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<warreng_> the check around empty && num_threads still seems necessary (and is the whole problem)
cgibsonmm has quit [Ping timeout: 255 seconds]
<matthewd> I haven't checked the code, but I believe it'll be fine
shinnya has quit [Ping timeout: 240 seconds]
<matthewd> The thread that pushed the work wasn't waiting at the time it pushed it
<matthewd> And when it loops to the pop, there's work available, so it never goes to sleep == never touches num_waiting
montanonic has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
markholmes has joined #ruby
nofxx has joined #ruby
sysvalve has quit [Quit: Leaving]
jose_leeto has joined #ruby
mim1k has joined #ruby
ineb_ has joined #ruby
Synthead has joined #ruby
whathappens has quit [Ping timeout: 264 seconds]
ColeHub has joined #ruby
<warreng_> C code looks like it pushes, then wakes a thread, then returns
duderonomy has quit [Ping timeout: 240 seconds]
<warreng_> what's the thread safety of those C methods?
l4v2 has quit [Quit: l4v2]
learning has quit []
<matthewd> That's the one we care about
<matthewd> In pop, the thread only becomes a waiter if the queue is empty
catphish has quit [Quit: Leaving]
mistermocha has joined #ruby
whathappens has joined #ruby
ocbtec has quit [Quit: leaving]
beilabs_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
Derperpe1 has joined #ruby
montanonic has joined #ruby
cgibsonmm has joined #ruby
<jose_leeto> hello guys, any ideias how I can execute a rails action x minutes after a models has been created in database?
<matthewd> warreng_: The thread safety is the same as the ruby code; other threads are executing at the same time.
LoneHerm_ has joined #ruby
<matthewd> ?rails jose_leeto
<ruby[bot]> jose_leeto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<matthewd> jose_leeto: But you probably want Active Job
LoneHerm_ has quit [Remote host closed the connection]
yk_ has quit [Quit: Leaving]
oivoodoo has quit []
LoneHerm_ has joined #ruby
kith has quit [Quit: kith]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
ResidentBiscuit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<matthewd> warreng_: Actually, correction: the GVL prevents other threads from running while we're inside these functions.
LoneHermit has joined #ruby
nribec has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
cagomez has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
TPug has joined #ruby
nckpz has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
despai has quit [Read error: Connection reset by peer]
despai has joined #ruby
Silthias1 has joined #ruby
conta has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
<warreng_> thanks
Silthias has quit [Ping timeout: 240 seconds]
jaruga______ has quit [Quit: jaruga______]
<djellemah> warreng_: I think it would work better to invert the problem - treat it as a tree traversal, and use a thread pool to fetch the next n links in the tree.
<warreng_> matthewd: would this work as well - https://gist.github.com/wkonkel/ce246e1a9a6e101afa0f75a6ef761829
<warreng_> djellemah: the tree isn't know beforehand though
<djellemah> doesn'
<djellemah> t need to be.
<matthewd> warreng_: No
cgibsonmm has quit [Remote host closed the connection]
<djellemah> you can identify a leaf - when a document has no more links, right?
cgibsonmm has joined #ruby
<matthewd> warreng_: Also, `Array.new(N) do .. end` or `N.times.map do .. end` is probably clearer than 0...N, just as a side thought
benlieb has quit [Quit: benlieb]
gusrub_ has quit [Remote host closed the connection]
<warreng_> matthewd: why doesn't that work? isn't CONCURERNCY-1 it equivalent to doing it in the main thread?
gusrub_ has joined #ruby
SuperLag has joined #ruby
<matthewd> It has the same race we talked about before
<matthewd> Two threads can check that condition, see that two threads are currently awake, and decide to loop & pop
Cohedrin has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
<warreng_> but if two threads are currently awake, then num_waiting would never be -1
<warreng_> it'd be -2
<matthewd> Exactly
hahuang61 has joined #ruby
<warreng_> ahh.. and both would finish and the queue would never get closed
malconis has quit [Read error: Connection reset by peer]
malconis has joined #ruby
abdulmugni has quit [Changing host]
abdulmugni has joined #ruby
szulak has joined #ruby
cgibsonmm has quit [Ping timeout: 255 seconds]
fuzzyhorns has joined #ruby
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
gusrub_ has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
hutch34 has joined #ruby
aryaching has joined #ruby
_sfiguser has quit [Quit: Leaving]
abdulmugni has quit [Read error: Connection reset by peer]
<matthewd> warreng_: If you're just uncomfortable about killing the threads, you can close the queue instead
abdulmugni has joined #ruby
Anonymoose2 has joined #ruby
<warreng_> i wasn't uncomfortable until you said that... should i be uncomfortable about killing thread? :)
renchan has quit [Quit: Leaving...]
fuzzyhorns1 has joined #ruby
<matthewd> In general yes, it's bad practice and dangerous. In this case, no, because we know exactly where it's stuck waiting.
fuzzyhorns has quit [Ping timeout: 260 seconds]
<matthewd> Bad/dangerous == any random innocent-looking line of code can suddenly raise an exception. Has the potential to wreak havoc on your nice careful ensure clauses, for example.
Anonymoose2 has quit [Max SendQ exceeded]
Anonymoose2 has joined #ruby
despai has joined #ruby
reverberations has quit [Ping timeout: 255 seconds]
fuzzyhorns1 has quit [Client Quit]
<warreng_> matthewd: any problems with this approach - https://gist.github.com/wkonkel/a85af915fe3b8384bf02d9c3a5d7d56f
fuzzyhorns has joined #ruby
bkxd has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
VladGh has quit [Remote host closed the connection]
Renich has joined #ruby
lxsameer has joined #ruby
VladGh has joined #ruby
ben_vulpes has left #ruby ["WeeChat 1.4"]
nankyokusei has joined #ruby
lenwood has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
vuoto has joined #ruby
cagomez has quit [Remote host closed the connection]
fuzzyhorns has quit [Quit: Leaving.]
lxsameer has quit [Read error: Connection reset by peer]
<matthewd> I don't understand why you've turned a one-liner into a whole separate thread to join, but yes, that looks equivalent.
fuzzyhorns has joined #ruby
<warreng_> long story short, this is an extraction of a bigger chunk of code. that timer is already in place with a 1 second sleep doing some other things as well
duderonomy has joined #ruby
<warreng_> (basically just debug logging on the status of queues and workers and so forth)
nankyokusei has quit [Ping timeout: 258 seconds]
<warreng_> anyways, i've been running testing this a bit locally and it seems to work perfectly... thanks so much for the help!
fuzzyhorns has quit [Client Quit]
msmith has quit []
despai has quit [Quit: This computer has gone to sleep]
despai has joined #ruby
cagomez has joined #ruby
<matthewd> You're welcome! Always fun to think through threading stuff
_djbkd has joined #ruby
mholmes has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Renich has quit [Quit: leaving]
Renich has joined #ruby
Derperpe1 has quit [Ping timeout: 245 seconds]
gusrub_ has joined #ruby
markholmes has quit [Ping timeout: 268 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
nunchuck has joined #ruby
fuzzyhorns has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
chouhoulis has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<rkeene> I submitted my issue with cross-compiling Ruby Gems: https://bugs.ruby-lang.org/issues/13215
swills_ is now known as swills
tdy has joined #ruby
cgibsonmm has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
cgibsonmm has quit [Remote host closed the connection]
cgibsonmm has joined #ruby
BackEndCoder has quit [Excess Flood]
troulouliou_dev has joined #ruby
yyyyy has joined #ruby
vuoto has quit [Remote host closed the connection]
BackEndCoder has joined #ruby
lxsameer has joined #ruby
AndrewIsHere has joined #ruby
Guest69 has joined #ruby
pilne has joined #ruby
railswebdev has joined #ruby
tdy1 has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lanc has joined #ruby
dopamean_ has joined #ruby
Lord_of_Life has quit [Excess Flood]
geekb4ck_ has joined #ruby
<geekb4ck_> having trouble with UnixSocket. I'm able to use 'socat' to read/write a socket but when I run my Sinatra app, it creates a <UNIXSocket:fd> object but I'm not able to read/write. Can someone point me to docs to help out?
reverberations has joined #ruby
Lord_of_Life has joined #ruby
binaryplease has quit [Ping timeout: 252 seconds]
Dimik has joined #ruby
solocshaw has joined #ruby
Anonymoose2 has quit [Ping timeout: 260 seconds]
fuzzyhorns has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
Anonymoose2 has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
reverberations has quit [Ping timeout: 240 seconds]
KCmetro has joined #ruby
DLSteve has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
cagomez has quit [Remote host closed the connection]
saneax-_-|AFK is now known as saneax
dopamean_ has quit [Quit: WeeChat 1.3]
warreng_ has quit [Ping timeout: 260 seconds]
hobodave has joined #ruby
lanc has quit [Quit: zzZZZZzzZZZZzzZZzzZZZZzzzzzzzzz]
Definity has quit [Ping timeout: 258 seconds]
despai has quit [Quit: This computer has gone to sleep]
cagomez has joined #ruby
tolerablyjake has joined #ruby
bkxd has joined #ruby
lanc has joined #ruby
whiteline has left #ruby ["Leaving"]
roamingdog has joined #ruby
mlindahl_ has quit [Remote host closed the connection]
mlindahl has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest69 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
libastral has quit [Quit: ZNC - http://znc.in]
bocaneri has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 264 seconds]
snath has joined #ruby
kirun has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
cgibsonmm has quit []
cgibsonmm has joined #ruby
mlindahl has quit [Ping timeout: 240 seconds]
hotratz has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
cgibsonmm has quit [Client Quit]
blackmesa has joined #ruby
Slinky_Pete has joined #ruby
Slinky_Pete has quit [Client Quit]
jcao219 has quit [Ping timeout: 255 seconds]
markholmes has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
mholmes has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
<knutmithut> Hey, is there a way to tell bundler to just create the Gemfile.lock (without actually installing), so it's faster?
<matthewd> knutmithut: `bundle lock`
Slinky_Pete has joined #ruby
mim1k has joined #ruby
ofkors has joined #ruby
<knutmithut> thanks!
<Slinky_Pete> Hey, quick Question I accidentally sent a code snippet over many send on the rails channel and got banned, lol.... anyone know how to fix this?.... it was a irc Noob mistake
milardovich has quit []
grh has joined #ruby
cdg has joined #ruby
<Slinky_Pete> many lines ant then sent*
Dimik has quit [Ping timeout: 245 seconds]
conta has quit [Quit: conta]
Fernando-Basso has quit [Quit: WeeChat 1.5]
mim1k has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 240 seconds]
gusrub_ is now known as gusrub
opt9 has quit [Quit: Bye bye]
szulak has joined #ruby
opt9 has joined #ruby
whathappens has quit [Remote host closed the connection]
abdulmugni has quit [Read error: Connection reset by peer]
ifctj has quit [Ping timeout: 240 seconds]
renchan has joined #ruby
<Papierkorb> Slinky_Pete: Are you just not able to talk? You're in #RubyOnRails
<Papierkorb> Slinky_Pete: In either case, I'm not able to help directly. I suggest you ask one of the currently online operators here: https://ruby-community.com/pages/irc_staff
<Slinky_Pete> <Papierkorb> It give me a Error(404): #RubyOnRails Cannot send to channel
hotratz has left #ruby ["Leaving"]
<Slinky_Pete> Awesome thanks@
lanc has quit [Quit: zzZZZZzzZZZZzzZZzzZZZZzzzzzzzzz]
mim1k has joined #ruby
<cagomez> I have an object called foo, with methods foo.format_pay_date, foo.format_recv_date, etc. how do I dynamically call format* methods?
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
snath has left #ruby ["Leaving"]
<Papierkorb> cagomez: You can use #public_send like `foo.send("format_pay_date", some_argument_to_format_func, ...)`
<Papierkorb> foo.public_send(..)`
<Papierkorb> You can use #send, but if not needed, #public_send is better.
<cagomez> Papierkorb: yup, just tried that. since it's foo.format* , is string concat hacky?
<Papierkorb> cagomez: What's your use-case?
<cagomez> Papierkorb: I need to call that method to retrieve an attribute. the method formats an attribute and returns a string
mim1k has quit [Ping timeout: 264 seconds]
lanc has joined #ruby
<Papierkorb> cagomez: as far #public_send is concerned, doing it like public_send("format_#{which_one}") is fine
<cagomez> very nice! thanks
<havenwood> Slinky_Pete: Try talking in #RubyOnRails now.
psychicist__ has joined #ruby
<Papierkorb> cagomez: If you let the user choose one (e.g. through a combobox on the web), make sure check the input against a whitelist of allowed method names
<cagomez> yes, definitely Papierkorb. working on a whitelist
<Slinky_Pete> <havenwood> thank you!
<havenwood> Slinky_Pete: you're welcome
<Papierkorb> cagomez: A simple `foo.public_send(...) if %w[ pay_date something_else and_so_on ].includes?(which_one)` suffices for the start
anisha has quit [Quit: This computer has gone to sleep]
<Papierkorb> cagomez: include?* - includes? is a rails-ism :)
xen0fon has quit [Ping timeout: 240 seconds]
<cagomez> cool, thanks :)
<Papierkorb> Cheers
xen0fon has joined #ruby
omphe has joined #ruby
Renich has quit [Quit: leaving]
dopamean_ has joined #ruby
l4v2 has joined #ruby
mim1k has joined #ruby
kitikonti has joined #ruby
jhack has quit [Quit: jhack]
jhack has joined #ruby
ldnunes has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
synthroid has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
saneax is now known as saneax-_-|AFK
mim1k has quit [Ping timeout: 245 seconds]
byte512 has quit [Ping timeout: 255 seconds]
lxsameer has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
jhack has quit [Client Quit]
dionysus69 has joined #ruby
lxsameer has joined #ruby
roamingdog has joined #ruby
jphase has joined #ruby
spooq has joined #ruby
spooq has quit [Client Quit]
mlindahl has joined #ruby
ColeHub has quit [Quit: Snooze.]
nankyokusei has joined #ruby
_sfiguser has joined #ruby
RickHull has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
yehowyada has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
rippa has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
nankyokusei has quit [Ping timeout: 245 seconds]
aufi has quit [Quit: Leaving]
rippa has joined #ruby
mlindahl_ has joined #ruby
mlindahl has quit [Ping timeout: 264 seconds]
fuzzyhorns has quit [Quit: Leaving.]
fulgore_ has quit [*.net *.split]
bkxd has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mlindahl_ has quit [Ping timeout: 240 seconds]
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
x00r__ has quit [Ping timeout: 240 seconds]
Slinky_Pete has quit [Remote host closed the connection]
ColeHub has joined #ruby
mikecmpbll has joined #ruby
Slinky_Pete has joined #ruby
spooq has joined #ruby
mim1k has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
ColeHub has quit [Client Quit]
mim1k has quit [Ping timeout: 240 seconds]
centrx has quit [Remote host closed the connection]
yyyyy has quit [Remote host closed the connection]
zeroDi has joined #ruby
SeepingN has joined #ruby
mlindahl has joined #ruby
mlindahl_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
spooq|2 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
blackmesa has joined #ruby
mlindahl has quit [Ping timeout: 264 seconds]
spooq|2 has quit [Client Quit]
spooq has quit [Ping timeout: 245 seconds]
omphe has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has joined #ruby
mim1k has joined #ruby
spooq has joined #ruby
psychicist__ has quit [Remote host closed the connection]
whathappens has joined #ruby
Fernando-Basso has joined #ruby
cagomez has quit [Ping timeout: 268 seconds]
jhack has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
lenwood has quit [Ping timeout: 255 seconds]
freddymungo has joined #ruby
AndrewIsHere has quit []
dh64 has joined #ruby
dh64 has quit [Client Quit]
whathappens has quit [Ping timeout: 245 seconds]
markholmes has quit [Ping timeout: 268 seconds]
freddymungo_ has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zapata has quit [Quit: WeeChat 1.7]
jenrzzz_ has joined #ruby
Derperpe1 has joined #ruby
optiz0r has quit [Quit: Leaving]
acosonic has joined #ruby
optiz0r has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
tolerablyjake has joined #ruby
dopamean_ has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
Derperpe1 has quit [Ping timeout: 240 seconds]
lanc has quit [Quit: zzZZZZzzZZZZzzZZzzZZZZzzzzzzzzz]
<Zarthus> try asking #rubyonrails
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 258 seconds]
johnny56 has joined #ruby
vuoto has joined #ruby
Asher has quit [Quit: Leaving.]
johnny56_ has quit [Ping timeout: 264 seconds]
mim1k has joined #ruby
RickHull has quit [*.net *.split]
geekb4ck_ has quit [*.net *.split]
gregf_ has quit [*.net *.split]
s0l__ is now known as sol_
Slinky_Pete has quit [Remote host closed the connection]
sol_ is now known as 18WAAKD4C
gregf_ has joined #ruby
geekb4ck_ has joined #ruby
RickHull has joined #ruby
Slinky_Pete has joined #ruby
lanc has joined #ruby
OTORelic1 has quit [Ping timeout: 240 seconds]
renchan has quit [Remote host closed the connection]
RickHull has quit [*.net *.split]
geekb4ck_ has quit [*.net *.split]
gregf_ has quit [*.net *.split]
Asher has joined #ruby
gregf_ has joined #ruby
geekb4ck_ has joined #ruby
RickHull has joined #ruby
gregf_ has quit [Quit: qwebirc exception: Buffer overflow.]
roamingdog has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
Slinky_Pete has quit [Ping timeout: 252 seconds]
zapata has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
vuoto has quit [Quit: Lost terminal]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
charliesome has joined #ruby
fuzzyhorns has joined #ruby
jenrzzz has joined #ruby
brent__ has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
bkxd has joined #ruby
roamingdog has quit [Remote host closed the connection]
malconis has quit [Read error: Connection reset by peer]
freddymungo_ has quit [Ping timeout: 255 seconds]
freddymungo has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 268 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyang has quit [Ping timeout: 260 seconds]
synthroid has quit []
grh has quit [Ping timeout: 252 seconds]
Slinky_Pete has joined #ruby
chouhoul_ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
roamingdog has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
elifoster has joined #ruby
<newrubycoder> is there any way to not delete the characters i exclude when i set a range for sorting? like `words.split.map { |k| k.chars.sort[1..-2] }` i dont get the first and last letter back
jose_leeto has quit [Quit: Leaving.]
szulak has quit [Quit: Textual IRC Client: www.textualapp.com]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Derperpe1 has joined #ruby
<fuzzyhorns> map returns the results of your block
<fuzzyhorns> your block returns [1..-2]
<newrubycoder> so i have to use the dreaded each function?
<fuzzyhorns> lol first idk if each is so bad, but second, what are you really trying to accomplish here?
<newrubycoder> sort the inner content of every word in a string
biberu has quit []
lanc has quit [Quit: zzZZZZzzZZZZzzZZzzZZZZzzzzzzzzz]
cagomez has joined #ruby
safetypin has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
cdg has joined #ruby
markholmes has joined #ruby
dionysus69 has joined #ruby
<ljarvis> so "foo bar baz" because "bar baz foo"?
Coldblackice_ has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
gloscombe has joined #ruby
gloscombe is now known as gloscombe_
<ljarvis> wait, sorted by inner content, wat
<matthewd> "fedcba lkjihg" -> "fbcdea lhijkg", I think
gusrub has quit [Remote host closed the connection]
<ljarvis> weird
<newrubycoder> yes
<matthewd> > set a range for sorting
<matthewd> ^ not what that's doing
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
<newrubycoder> maybe
gusrub has joined #ruby
<matthewd> >> "apple".sort[1..-2]
workmad3 has joined #ruby
<ruby[bot]> matthewd: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
LoneHermit has joined #ruby
<toretore> you said apple
SeepingN has quit [Remote host closed the connection]
<newrubycoder> >>"apple".chars.sort.join
AndBobsYourUncle has joined #ruby
SeepingN has joined #ruby
dopamean_ has joined #ruby
SeepingN has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
kirun has quit [Quit: Konversation terminated!]
LoneHermit has joined #ruby
<ljarvis> >> "fedcba lkjihg".split.map { |word| chars = word[1..-2].chars; word[1..-2] = chars.sort.join; word }
<ruby[bot]> ljarvis: # => ["fbcdea", "lhijkg"] (https://eval.in/737136)
<ljarvis> *shrug*
SeepingN has joined #ruby
<newrubycoder> thats hella smart
<ljarvis> it could be done better but meh
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
grh has joined #ruby
whathappens has joined #ruby
<ljarvis> >> "fedcba lkjihg".split.map { |word| [word[0], word[1..-2].chars.sort, word[-1]].flatten.join }
<ruby[bot]> ljarvis: # => ["fbcdea", "lhijkg"] (https://eval.in/737138)
<ljarvis> without mutating
<ljarvis> >> "fedcba lkjihg".split.map { |word| [word[0], *word[1..-2].chars.sort, word[-1]].join }
<ruby[bot]> ljarvis: # => ["fbcdea", "lhijkg"] (https://eval.in/737139)
<ljarvis> because flatten sucks
<ljarvis> ok im done
<newrubycoder> i liked first one better cuz i could understand it :D
<darix> hmm Array#take should be able to take a block
<ljarvis> the first one is the worst really though
<toretore> first, inner, last = word[0], word[1..-2], word[-1]; first + inner.chars.sort.join + last
<ljarvis> so what i wrote? :D
Guest69 has joined #ruby
TPug has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has joined #ruby
solocshaw has joined #ruby
geekb4ck_ has quit [Quit: Page closed]
whathappens has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
<ta> Anyone have experience with Virtus and can tell me if this is expected behaviour - http://pastebin.com/zzaNfj0S
<ruby[bot]> ta: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b82f70d9d23086122cd0957ca086387e
<ruby[bot]> ta: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<ta> I'm sort of expecting second irb entry to also set an empty address instance on the User object)
<darix> ah each_slice
biox has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
blackwind_123 has quit [Ping timeout: 276 seconds]
solocshaw has quit [Ping timeout: 255 seconds]
roamingdog has quit [Remote host closed the connection]
mim1k has joined #ruby
<toretore> ta: why are you expecting that?
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<toretore> i would expect exactly this: i give it a hash of attributes, and it instantiates the Address with those attributes
roamingdog has joined #ruby
blackwind_123 has joined #ruby
roamingdog has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
tomphp has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
charliesome has joined #ruby
grh has quit [Ping timeout: 268 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 255 seconds]
whathappens has joined #ruby
bigkevmcd has quit [Ping timeout: 245 seconds]
centrx has quit [Remote host closed the connection]
kitikonti has quit [Quit: Textual IRC Client: www.textualapp.com]
malconis has joined #ruby
Jackneill_ has quit [Read error: Connection reset by peer]
hutch34 has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
rrios has joined #ruby
tyang has joined #ruby
nankyokusei has joined #ruby
dcunit3d has quit [Ping timeout: 268 seconds]
tyang_ has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
OTORelic1 has joined #ruby
centrx has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
tyang has quit [Ping timeout: 255 seconds]
r_rios has joined #ruby
rrios has quit [Ping timeout: 268 seconds]
ramortegui has quit [Quit: Ex-Chat]
kendocode has joined #ruby
bkxd has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
millerti has joined #ruby
_whitelogger has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
nullfxn has quit [Quit: leaving]
cschneid_ has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mim1k has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 276 seconds]
endemic has joined #ruby
cagomez has quit [Remote host closed the connection]
arooni has joined #ruby
minimalism has joined #ruby
twe4ked has joined #ruby