apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
carlyle has joined #ruby
xaq has joined #ruby
DrShoggoth has joined #ruby
mansi has joined #ruby
burlyscudd has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
jmau5 has quit [Remote host closed the connection]
Wolland has joined #ruby
burlyscudd has quit [Client Quit]
dx7 has quit [Remote host closed the connection]
mmoretti has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dx7 has joined #ruby
thumpba has quit [Remote host closed the connection]
phat4life has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
moted has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
bbloom has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikeg has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
carlyle has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
geopet has quit []
burlyscudd has joined #ruby
fridim__ has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
mlpinit_ has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
mary5030 has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
DrShoggoth has quit [Quit: Leaving]
burlyscudd has quit [Client Quit]
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
blackmesa has quit [Quit: WeeChat 0.4.3]
xaq has quit [Remote host closed the connection]
cj3kim__ has quit [Read error: Connection reset by peer]
jonah_k has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
pfg has joined #ruby
burlyscudd has joined #ruby
cj3kim has joined #ruby
burlyscudd has quit [Client Quit]
cj3kim has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
pel_daniel has left #ruby [#ruby]
burlyscudd has quit [Client Quit]
Jdubs has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ilyam has quit [Quit: ilyam]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mlpinit has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
Naoe-Kanno has joined #ruby
burlyscudd has joined #ruby
i_s has joined #ruby
burlyscudd has quit [Client Quit]
Jdubs has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
predator217 has quit [Ping timeout: 272 seconds]
jmau5 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
predator117 has joined #ruby
phutch1n1 has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
i_s has quit [Client Quit]
weems has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
bgy has quit [Changing host]
bgy has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
centrx has quit [Quit: All this computer hacking is making me thirsty]
jtdowney has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
aspires has quit []
dayepa has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
zz_jrhorn424 is now known as jrhorn424
burlyscudd has quit [Client Quit]
Mongey has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
aspires has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jonah_k has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
cj3kim has joined #ruby
burlyscudd has quit [Client Quit]
lolmaus has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
MattStratton has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd has quit [Client Quit]
andy__ has quit [Read error: Connection reset by peer]
Chris- has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
andy has joined #ruby
IceyEC has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
aspires has quit [Client Quit]
vpretzel has quit [Quit: Adios!]
aspires has joined #ruby
Soliah has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kzrl has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
gtc|ghost has quit [Quit: kill -9 gtc]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mansi has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
tedstriker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burlyscudd has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbueza has quit [Read error: Connection reset by peer]
srji_ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack_ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
gtc has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
srji has quit [Ping timeout: 252 seconds]
yasushi has joined #ruby
gtc has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
IceyEC has quit [Quit: IceyEC]
zz_karupanerura is now known as karupanerura
mikepack has quit [Ping timeout: 244 seconds]
rickruby has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
weie has joined #ruby
rickruby has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mlpinit has quit [Remote host closed the connection]
mikepack_ has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
shadoi has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
Wolland has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Jdubs has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xaq has joined #ruby
Altonymous has quit [Quit: Altonymous]
BWStearn2 has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rickruby has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
gtc has joined #ruby
burlyscudd has quit [Client Quit]
S0da has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Zunonia__ has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
randomnick_ has quit [Quit: Leaving]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
stringoO has quit [Quit: stringoO]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
speakingcode has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
nanoyak has joined #ruby
tkuchiki has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Wolland has joined #ruby
mikesplain has quit [Ping timeout: 264 seconds]
whomp has quit [Ping timeout: 264 seconds]
snuffeluffegus has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Wolland has quit [Remote host closed the connection]
bean has joined #ruby
whomp has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Lightstalker has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lightstalker has quit [Changing host]
Lightstalker has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rainmanjam has quit [Remote host closed the connection]
kitak has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kitak has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
equex has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lolmaus has joined #ruby
burlyscudd has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
burlyscudd has quit [Client Quit]
auxbuss has quit [Quit: ZZZzzz…]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
centrx has joined #ruby
ta9to has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xerox357 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mocfive has quit [Remote host closed the connection]
xerox357 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mocfive has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Lightstalker has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mocfive has quit [Read error: Connection reset by peer]
mocfive_ has joined #ruby
yasushi has quit [Remote host closed the connection]
parduse has quit [Ping timeout: 264 seconds]
ciopte7 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Kricir has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
rmorello_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
burlyscudd has quit [Client Quit]
Guest46269 is now known as ixx
brucele__ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xerox357 has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
IceyEC has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
brucele_ has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
yfeldblu_ has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
ItSANgo has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Guest89694 is now known as mmochan
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Kricir has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mary5030 has joined #ruby
evenix has joined #ruby
mary5030 has quit [Remote host closed the connection]
mlpinit has joined #ruby
replay has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
oso96_2000 is now known as oso|away
kevind has quit [Quit: kevind]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
hiyosi has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
shiftins has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jgoss has joined #ruby
tkuchiki has joined #ruby
aryaching has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
yarou has quit [Remote host closed the connection]
kenneth has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
yarou has joined #ruby
burlyscudd has quit [Client Quit]
robustus has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
drumsrgr8forn8 has joined #ruby
burlyscudd has joined #ruby
IceyEC has quit [Quit: IceyEC]
burlyscudd has quit [Client Quit]
snath has quit [Ping timeout: 272 seconds]
drumsrgr8forn8 has quit [Client Quit]
burlyscudd has joined #ruby
nifty has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
robustus has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lw has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
parduse has joined #ruby
Mongey has quit [Quit: Mongey]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Mongey has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
wiku5_ has joined #ruby
lmickh has quit [Remote host closed the connection]
tils` has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
carlyle has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
slowcon has joined #ruby
Wolland has joined #ruby
aryaching has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
tils has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
carlyle has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
SCommette has joined #ruby
aryaching has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<jrhorn424> what does self refer to in a nested module? https://gist.github.com/jrhorn424/5d688e32e55c0b703b54
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
Zunonia___ has joined #ruby
burlyscudd has quit [Client Quit]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
andy has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Zunonia__ has quit [Ping timeout: 244 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
olivier_bK has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
ta9to has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
xaq has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jmau5 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<centrx> jrhorn424, The class it's include in?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Asher has joined #ruby
zeade has quit [Quit: Leaving.]
Zunonia___ has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
razrunelord has quit []
burlyscudd has quit [Client Quit]
_bart has quit [Remote host closed the connection]
carlyle has joined #ruby
Zunonia___ has joined #ruby
coderdad has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<jrhorn424> centrx that makes sense. i was thinking it might refer to an instance.
butblack has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
<centrx> jrhorn424, Yes, sorry, the instance of the class it's included it
andy has joined #ruby
burlyscudd has quit [Client Quit]
carlyle has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lpavan has quit [Quit: Saindo]
<jrhorn424> centrx is there a rule-of-thumb for when self refers to a class versus instance?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<jrhorn424> i guess def self.foo ; end is obviously referring to the class. is self inside a method always referring to an instance?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<centrx> jrhorn424, Only if it's an instance method
snuffeluffegus has quit [Write error: Broken pipe]
mikepack has quit [Ping timeout: 259 seconds]
<jrhorn424> centrx thanks. :)
cmhobbs has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
aryaching has joined #ruby
rickruby has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikecmpbll has quit [Quit: ciao.]
habanany has joined #ruby
omegahm has quit [Quit: Killed by a giraffe]
moneydouble has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
coderdad has quit [Ping timeout: 264 seconds]
mlpinit has quit [Remote host closed the connection]
aryaching has quit [Read error: Connection reset by peer]
shinobi_one has quit [Quit: shinobi_one]
ephemerian has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dayepa has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mlpinit has joined #ruby
lethjakman has quit [Quit: WeeChat 0.4.0]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rickruby has quit [Ping timeout: 264 seconds]
sparrovv has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
brucele__ has quit [Ping timeout: 272 seconds]
Aryasam has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mocfive_ has quit [Quit: Leaving...]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Salve has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Salve has joined #ruby
andy has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kevind has joined #ruby
glaksmono has joined #ruby
<glaksmono> how do you pass by reference in ruby?
<glaksmono> i want to modify the array but i want it through a reference, ideas?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jrhorn424 is now known as zz_jrhorn424
burlyscudd has joined #ruby
funburn has quit [Quit: funburn]
burlyscudd has quit [Client Quit]
alexju has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pietr0 has quit [Ping timeout: 246 seconds]
zumba_addict has joined #ruby
serp` has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
figgleberry has joined #ruby
danshultz has joined #ruby
thomasxie has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has joined #ruby
Zunonia____ has joined #ruby
lukec has quit [Quit: lukec]
subbyyy_ has quit [Ping timeout: 272 seconds]
Zunonia____ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
Zunonia___ has quit [Read error: Connection reset by peer]
burlyscudd has quit [Client Quit]
mlpinit has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lw has quit [Quit: s]
Zunonia____ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
meatherly has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
wjlafrance__ has joined #ruby
oso|away is now known as oso96_2000
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dingus_khan has quit [Remote host closed the connection]
mocfive has joined #ruby
Zunonia_____ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dingus_khan has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jetblack has joined #ruby
Waheedi has quit [Quit: Waheedi]
ilyam has joined #ruby
burlyscudd has joined #ruby
dayepa has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
marr has joined #ruby
lw has joined #ruby
sailias has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<slowcon> hey guys, having a little trouble with my script. it goes to a zippyshare.com download page, but I've noticed that on the first 2-3 attempts at using a browser.goto(zippy share url), it redirects to some other ad page. on the third browser.goto it will show the correct link. do you guys have anyway to recommend to handle getting past those ad pages? http://pastebin.com/SPUs8ZQ3
nichtdiebohne1 has joined #ruby
cj3kim has quit [Remote host closed the connection]
snath has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Zunonia____ has quit [Read error: Connection reset by peer]
marr has quit [Client Quit]
nichtdiebohne has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dingus_khan has quit [Ping timeout: 244 seconds]
Jetchisel has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<slowcon> centrx: apeiros: havenwood
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jetblack has quit [Ping timeout: 272 seconds]
jetblack has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
serp` has quit [Quit: serp`]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Mongey has quit [Quit: Mongey]
carlyle has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
iliketurtles has quit [Quit: zzzzz…..]
burlyscudd has joined #ruby
shadoi has quit [Quit: Leaving.]
burlyscudd has quit [Client Quit]
m00nlight has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jgoss has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
SteveBenner09 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Kricir has joined #ruby
<Robbo_> ruby exceptions in terminal are horrible
itadder has quit [Remote host closed the connection]
burlyscudd has joined #ruby
stryek has joined #ruby
burlyscudd has quit [Client Quit]
<Robbo_> I remember seeing something that made them better but I can't remmeber what it was
<slowcon> pry?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<pontiki> PRY!
<pontiki> oh sorry
burlyscudd has joined #ruby
<Robbo_> that's to run the shell, can I use it to run other stuff too?
evenix has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
<Robbo_> to be exact, middleman serve
<pontiki> sorry, i was just responding to "pry?"
<pontiki> well, you could
burlyscudd has joined #ruby
<pontiki> but it would mean modifying the middleman source a tiny bit
burlyscudd has quit [Client Quit]
hfp`away is now known as hfp
Megtastique has quit []
<Robbo_> I just want to easily be able to read exceptions
braincra- has joined #ruby
<pontiki> and it would be for debugging
Hobogrammer has quit [Ping timeout: 247 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
hfp is now known as hfp`away
burlyscudd has joined #ruby
<Robbo_> awesome_print is the one I heard of
burlyscudd has quit [Client Quit]
dayepa has joined #ruby
<pontiki> yes, but whatever your running has to actually call it
saarinen has quit [Quit: saarinen]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
tvw has quit []
<Robbo_> I will just set it to load them gem when in development
<Robbo_> which is always
Kricir has quit [Ping timeout: 246 seconds]
<Robbo_> lol
thumpba has joined #ruby
burlyscudd has joined #ruby
aspires has quit []
burlyscudd has quit [Client Quit]
<pontiki> set *what* to load the gem?
dizzdiamods has joined #ruby
jonah_k has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<Robbo_> add it to the gemfile?
itadder has joined #ruby
<dizzdiamods> what's a more concise way to do the following using built in methods on emums? http://pastie.org/8784483
burlyscudd has joined #ruby
<Robbo_> doesn't do what I thought it did anyway
<Robbo_> it is for shell use
burlyscudd has quit [Client Quit]
<pontiki> that doesn't cause middleman to require it, and also call ap when it's outputting something
braincrash has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
<Robbo_> meh ill live with default stuff
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
Zunonia______ has joined #ruby
hfp`away is now known as hfp
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<pontiki> dizzdiamods: that's totally a reduce
thumpba has quit [Ping timeout: 272 seconds]
Zunonia______ has quit [Remote host closed the connection]
Zunonia_____ has quit [Ping timeout: 244 seconds]
rickruby has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
freerobby has joined #ruby
Zunonia______ has joined #ruby
<pontiki> @items.reduce(0){|obj, item| obj += item.quantity * item.price}
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<dizzdiamods> pontiki: thanks
burlyscudd has joined #ruby
<pontiki> (see what i did thar?)
burlyscudd has quit [Client Quit]
mary5030 has joined #ruby
burlyscudd has joined #ruby
<dizzdiamods> so the 0 is the default?
burlyscudd has quit [Client Quit]
<centrx> starting value
macclearich has quit [Quit: Computer has gone to sleep.]
<Robbo_> I should probably actually learn ruby
<Robbo_> lol
<Robbo_> #yolo
burlyscudd has joined #ruby
macclearich has joined #ruby
s2013 has joined #ruby
burlyscudd has quit [Client Quit]
<centrx> You live once, forever.
Zunonia_______ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
tkuchiki has joined #ruby
Zunonia______ has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pietr0 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
jack_rabbit has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
<slowcon> centrx: you see my question from before by any chance?
burlyscudd has quit [Client Quit]
sdouglass has joined #ruby
macclearich has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
<centrx> slowcon, Yeah, scraping sucks :)
burlyscudd has quit [Client Quit]
<slowcon> hahaha
cpruitt has joined #ruby
<slowcon> hows my formatting look?
dizzdiamods has quit [Quit: Page closed]
burlyscudd has joined #ruby
cpruitt has quit [Client Quit]
burlyscudd has quit [Client Quit]
lukec has joined #ruby
<centrx> Your indentation could use some work
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lolmaus_ has joined #ruby
<slowcon> ok true ill note it
lolmaus has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
Sirupsen has joined #ruby
burlyscudd has quit [Client Quit]
evenix has joined #ruby
<slowcon> wait i think i got it, one second
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
shadoi has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
amclain has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jlast has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
axsuul has joined #ruby
jlast has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
cj3kim has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
JBreit has joined #ruby
ffranz has quit [Quit: Leaving]
nifty has quit [Ping timeout: 246 seconds]
snuffeluffegus has joined #ruby
SteveBenner09 has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lewix has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
earthquake has joined #ruby
burlyscudd has joined #ruby
lewix has joined #ruby
burlyscudd has quit [Client Quit]
jlast has quit [Ping timeout: 246 seconds]
pranny has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
iliketurtles has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Celm has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ta9to has joined #ruby
s2013 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
jmau5 has joined #ruby
burlyscudd has quit [Client Quit]
Voodoofish430 has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
kevind has quit [Quit: kevind]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
benlieb has joined #ruby
sdouglass has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
shiftins has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
ylluminate has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jmau5 has quit [Read error: Connection reset by peer]
omegahm has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jmau5 has joined #ruby
sindork has joined #ruby
speakingcode has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mansi has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
soheil has quit [Remote host closed the connection]
TheWhisper has joined #ruby
burlyscudd has joined #ruby
jetblack has quit [Ping timeout: 244 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
soahccc_ is now known as soahccc
TheWhisper has left #ruby ["Leaving"]
benlieb has quit [Quit: benlieb]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd has joined #ruby
jfelchner_ has quit [Quit: Connection closed for inactivity]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
chrisseaton has quit []
Kricir has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
sensen has joined #ruby
earthquake has quit [Quit: earthquake]
sensen has quit [Changing host]
sensen has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
cj3kim has joined #ruby
ultraflash3 has quit [Quit: Leaving...]
kevinykchan has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
whomp has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
s2013 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pigzzcanfly has joined #ruby
evenix has quit [Remote host closed the connection]
burlyscudd has joined #ruby
jetblack has joined #ruby
burlyscudd has quit [Client Quit]
figgleberry has quit [Ping timeout: 264 seconds]
pigzzcanfly has quit [Remote host closed the connection]
burlyscudd has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
burlyscudd has quit [Client Quit]
Aryasam has quit [Ping timeout: 264 seconds]
dx7 has joined #ruby
pigzzcanfly has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
bluehavana_ has quit [Quit: Connection closed for inactivity]
burlyscudd has joined #ruby
kevinykchan has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Celm has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kevinykchan has joined #ruby
nwkr is now known as Nowaker
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
geggam has quit [Quit: Leaving]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jetblack has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
Kricir has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
Celm has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Celm has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
nisstyre_ has joined #ruby
axsuul has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
thomasxie has quit [Read error: Connection reset by peer]
mocfive has quit [Remote host closed the connection]
burlyscudd has joined #ruby
firewater has joined #ruby
burlyscudd has quit [Client Quit]
mocfive has joined #ruby
Salve has joined #ruby
rahult is now known as rahult_
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Salve has quit [Remote host closed the connection]
<firewater> If something is a hash, shouldn't saying @hash[key] == "key" => "value"?
burlyscudd has joined #ruby
Salve has joined #ruby
burlyscudd has quit [Client Quit]
rahult_ is now known as rahult
<firewater> Anyone?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mocfive has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> Is anyone else here by chance?
Hanmac has joined #ruby
burlyscudd has joined #ruby
<firewater> .......
<firewater> .
<firewater> .
<firewater> .
burlyscudd has quit [Client Quit]
<firewater> .
<firewater> .
<firewater> .
<firewater> .
<firewater> .
<firewater> .
<firewater> .
<firewater> .
<firewater> .
nisstyre_ has quit [Client Quit]
<firewater> .
<YourBestFriend> stop
nisstyre has quit [Quit: WeeChat 0.4.3]
nisstyre has joined #ruby
<firewater> Sorry, it just seems like someone keeps entering and exiting.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> Its the same person.
snuffeluffegus has quit [Quit: Leaving]
Aryasam has joined #ruby
kenneth has joined #ruby
<YourBestFriend> so you should spam even more?
sean_s has joined #ruby
burlyscudd has joined #ruby
<firewater> YourBestFriend: Would you like to help me with the problem?
burlyscudd has quit [Client Quit]
<YourBestFriend> he probably has problems with his Internet
<YourBestFriend> I don't understand your question
<firewater> If you have a hash, with objects in it.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<YourBestFriend> yeah?
kenndel has quit [Quit: Leaving]
<firewater> You put that hash through a each loop
<YourBestFriend> keep going
<firewater> And then test if it contains something
Hanmac1 has quit [Ping timeout: 244 seconds]
cj3kim has quit [Read error: Connection reset by peer]
<firewater> AKA, the key matches up with the thing you are testing it matches up with.
burlyscudd has joined #ruby
sdouglass has joined #ruby
kenndel has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> Lets say you want to add that one part of the hash to another hash.
rickruby has quit [Remote host closed the connection]
<firewater> Do you do hash2.merge!@hash[key] to do it?
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
cj3kim has joined #ruby
<firewater> Because when I do that, it says can't convert string to a hash.
<firewater> Which makes no sense.
rickruby has joined #ruby
burlyscudd has joined #ruby
pigzzcanfly has joined #ruby
<YourBestFriend> show me the actual code
burlyscudd has quit [Client Quit]
ringaroses has joined #ruby
<firewater> ok.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
<firewater> THis is part of a class..
burlyscudd has quit [Client Quit]
<firewater> THat is where the @hash comes from, its just an existing hash with everything in it.
<bricker`LA> firewater: hash.merge! takes a hash
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<bricker`LA> firewater: you want something like hash[key] = @hash[key]
<firewater> bricker`LA: Isn't that whats its doing?
<bricker`LA> firewater: @hash[key] is returning the value
mikepack has quit [Remote host closed the connection]
<bricker`LA> which is a String according to your error
<YourBestFriend> I'd do something like hash2[key] = value
burlyscudd has joined #ruby
Jdubs has joined #ruby
burlyscudd has quit [Client Quit]
TripTastic has joined #ruby
mikepack has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
cj3kim has quit [Read error: Connection reset by peer]
<firewater> That will only return the value though bricker`LA .
burlyscudd has joined #ruby
sdouglass has quit [Ping timeout: 240 seconds]
<firewater> I'm stupid right now, I know, but how would I get it so it add both the key and value?
lewix has joined #ruby
cj3kim has joined #ruby
burlyscudd has quit [Client Quit]
The-Mad-Pirate has joined #ruby
<bricker`LA> firewater: hash2[key] = { key => value }
<bricker`LA> it's pretty unclear what you're trying to do
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> I'm trying to add a specific part of the first hash to another hash if it meets a certian criteria.
<firewater> Then return that new hash at the end.
burlyscudd has joined #ruby
rickruby has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Client Quit]
<firewater> AKA, if something in the hash matches, add to that hash, loop through the hash, add next thing if necessary.
<firewater> Etc. til the end, then return the new hash.
<centrx> firewater, Use select
JBreit has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
<bricker`LA> centrx is right
jlast has joined #ruby
burlyscudd has quit [Client Quit]
<centrx> firewater, Hash#select
<firewater> centrx: How would that work in my current code?
<bricker`LA> hash2 = @hash.select { |k, v| k.start_with?(input) }
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
evenix has joined #ruby
<firewater> bricker`LA: Couldn't I just work with my currnet code without ditching the whole thing?
burlyscudd has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
burlyscudd has quit [Client Quit]
<firewater> I'm sure that is right, but I don't understand it 100% right now.
ponga has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
andy___ has joined #ruby
andy___ is now known as Guest19826
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> bricker`LA: Fixed my current code actually doing it another way.
<bricker`LA> firewater: yes, hash2[key] = value instead of that merge line
<ponga> any recommended web tutorial for ruby ? there just seems to too many when googled
<firewater> I did it this way.
<bricker`LA> lol, ok.
<firewater> hash2.merge!({key => value})
burlyscudd has joined #ruby
<havenwood> ponga: for starting out, tryruby.org
burlyscudd has quit [Client Quit]
<firewater> It solves the problem.
<havenwood> firewater: you should use #select
<ponga> havenwood: thnkax
mikepack has joined #ruby
<bricker`LA> firewater: that's definitely some ruby code you got there.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jlast has quit [Ping timeout: 244 seconds]
<firewater> bricker`LA: Is that being joking :P?
<firewater> havenwood: I may, is there a problem not using it though and doing it my way?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
itadder has quit [Remote host closed the connection]
<bricker`LA> firewater: your way is slower, for starters, but that may not matter if you have a small hash
<havenwood> firewater: It is slower, less idiomatic, harder to understand, less concise, etc.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<ponga> I hear ruby is becoming very hot in web-development , always wanted to learn it thnkxs havenwood
<firewater> Ok, so to do select would involve using this then: ash2 = @hash.select { |k, v| k.start_with?(input) }?
<firewater> If I copy and paste that exactly, it will accomplish the same thing?
burlyscudd has joined #ruby
<havenwood> ponga: It is a great lang for web and otherwise!
burlyscudd has quit [Client Quit]
yarou has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
burlyscudd has joined #ruby
Cache_Money_ has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
itadder has joined #ruby
burlyscudd has quit [Client Quit]
ta9to has quit [Ping timeout: 246 seconds]
jonr22 has quit [Remote host closed the connection]
<havenwood> firewater: Yes, that will select elements where the key starts with input.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> IC, its basically setting hash2 equal to it.
<firewater> Thanks, I get it now.
AlexRussia has joined #ruby
jonr22 has joined #ruby
pigzzcanfly has quit [Ping timeout: 272 seconds]
<havenwood> firewater: [1, 2, 3, 4].select { |i| i.even? } #=> [2, 4]
burlyscudd has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
<firewater> havenwood: One other question, any idea of a simple method that lists things (strings) alphabetically? I can probably do it manually but doubt its as fast.
burlyscudd has quit [Client Quit]
shadoi has quit [Quit: Leaving.]
<centrx> firewater, String#sort
<centrx> firewater, Actually, Array#sort
burlyscudd has joined #ruby
Celm has quit [Remote host closed the connection]
<firewater> yep, thanks centrx . Forgot about that. I was going to look through docs, but figured it was something easy like that.
pigzzcanfly has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> So, you would have to put the strings in an array first then right centrx ?
<firewater> To use the sort?
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> firewater, Yes, or any enumerable
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> right, kk.
<havenwood> firewater: `['a', 'c', 'g'].sort` or `{aim: 'a', follow: 'c'}.sort_by { |k, v| v }` etc.
ta9to has joined #ruby
burlyscudd has joined #ruby
<havenwood> firewater: When you sort a Hash an Array is returned. So you'll need to turn it back into a Hash if that's what you want.
burlyscudd has quit [Client Quit]
<firewater> It can be an array.
jlast has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xerox357 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jtdowney has quit []
itadder has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
burlyscudd has quit [Client Quit]
jonr22 has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> What is up with all the spam entering and leaving this IRC today btw?
burlyscudd has joined #ruby
<havenwood> firewater: can you disable enter/leave notification for your irc client?
burlyscudd has quit [Client Quit]
pigzzcanfly has quit [Ping timeout: 246 seconds]
<firewater> Probably, I just don't really care about looking into it.
<firewater> Its not usually an issue.
<firewater> I can ignore it.
<firewater> Its just really random tonight.
<havenwood> firewater: when freenode auth gets ddos'ed things get crazy
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<havenwood> firewater: blame GHCQ
<firewater> Why would someone ddos freenode?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lyanchih_ has joined #ruby
<firewater> Is that really what its associated with?
Spami has quit [Quit: This computer has gone to sleep]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
burlyscudd has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
<havenwood> firewater: I don't know about this DDoS, but GCHQ's JTRIG got caught redhanded illegally DDoSing IRC.
charliesome has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> Was it related to those docs sent out?
<firewater> They just need to stop, this is getting stupid.
SCommette has quit [Quit: SCommette]
<havenwood> firewater: operation "Rolling Thunder"
<firewater> Operation waste of money more like it.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has joined #ruby
SCommette has joined #ruby
nobitanobi has quit [Quit: Leaving]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<havenwood> not a way to win friends!
kori has joined #ruby
<firewater> You talking about what they are doing or me calling what is being done a waste of money :P?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<havenwood> firewater: what they are doing. ;)
<havenwood> firewater: complain about it all you'd like, i'm furious :P
pranny has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
codeFiend has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
codeFiend has quit [Client Quit]
jcs222 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> IC.
jcs222 has quit [Client Quit]
<firewater> I'm going to probably get off now either way. THanks for the help and see ya :).
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> One last question, is there a way to return something if you just have the key to it?
<firewater> AKA, return the value if you only have the key of a hash?
<havenwood> {aim: true}[:aim]
<havenwood> #=> true
pranny has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<havenwood> firewater: Hash#[] #targeting brackets
<firewater> Well, if I do @hash[key] it returns only the key.
jcs222 has joined #ruby
<firewater> but I only have the key to work with righ tnow.
burlyscudd has joined #ruby
<havenwood> firewater: oh, sorry i may have misunderstood
burlyscudd has quit [Client Quit]
<firewater> So, any idea how to do it using @hash?
<firewater> and return the value only using the key?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<havenwood> >> {this: 'is', an: 'example'}[:an]
<eval-in___> havenwood => "example" (https://eval.in/105706)
jcs222 has quit [Client Quit]
griffindy has quit [Quit: Computer has gone to sleep.]
sdouglass has joined #ruby
burlyscudd has joined #ruby
jcs222 has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> IDK, I will have to try this another time.
<havenwood> firewater: ^ call Hash#[key] and get the value: http://www.ruby-doc.org/core-2.1.1/Hash.html#method-i-5B-5D
burlyscudd has joined #ruby
<firewater> I did that, it returns the key.
burlyscudd has quit [Client Quit]
<havenwood> firewater: they the value must be the same as the key
<firewater> IDK, I will play around with this later, I think I'm doing something wrong.
<firewater> I have to head to bed.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<firewater> Have people from work screwing with me in a call center.
Celm has joined #ruby
<firewater> And someone ratted on them, without me asking.
griffindy has joined #ruby
<firewater> So going to have to deal with that drama tomorrow.
burlyscudd has joined #ruby
griffindy has quit [Client Quit]
<firewater> Worse, they could mess with my stuff cause they have other shifts.
burlyscudd has quit [Client Quit]
<firewater> SO stressed and need to go to bed :/.
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
robbyoconnor has joined #ruby
<havenwood> >> {'oh dear' => 'oh dear'}['oh dear']
<havenwood> firewater: later
<havenwood> #=> "oh dear"
<eval-in___> havenwood => "oh dear" (https://eval.in/105707)
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<havenwood> eval-in___: indeed
mansi has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ta9to has quit [Ping timeout: 244 seconds]
mansi has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
firewater has quit [Quit: Page closed]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mansi has quit [Read error: Connection reset by peer]
havenwood has quit []
Hobogrammer has joined #ruby
burlyscudd has joined #ruby
mansi has joined #ruby
yarou has joined #ruby
iliketurtles has joined #ruby
zeade has joined #ruby
sean_s has quit [Quit: sean_s]
krz has joined #ruby
Cache_Money has quit [Quit: Leaving]
Cache_Money_ is now known as Cache_Money
jetblack has joined #ruby
absolutezeroff has joined #ruby
ta9to has joined #ruby
rahult is now known as rahult_
browndawg has joined #ruby
invinceable has quit [Quit: Textual IRC Client: www.textualapp.com]
jetblack has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has quit [Quit: Konversation terminated!]
whomp has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
danshultz has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
nrezinorn has quit [Quit: Lost terminal]
burlyscudd has joined #ruby
binaryhat has quit [Quit: Leaving]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
sensen has quit [Quit: leaving]
sensen has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
Kricir has joined #ruby
burlyscudd has quit [Client Quit]
whomp has quit [Ping timeout: 244 seconds]
<YourBestFriend> can someone ban that guy? lol
<YourBestFriend> until tomorrow
Jdubs has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jonah_k has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jonah_k has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Salve_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
alvaro_o has quit [Quit: Ex-Chat]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Salve has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Kricir has joined #ruby
IceDragon has quit [Quit: Space~~~]
burlyscudd has joined #ruby
<centrx> burlyscudd, Stop it
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
Steve445 has joined #ruby
xerox357 has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
AlexRussia has quit [Ping timeout: 244 seconds]
griffindy has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mary5030 has joined #ruby
mansi has quit [Remote host closed the connection]
burlyscudd has joined #ruby
mansi has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
s2013 has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ponga has quit [Quit: Leaving :)]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
braincra- has quit [Quit: bye bye]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mansi has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
wlanboy has quit [Ping timeout: 244 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rahult_ is now known as rahult
Zunonia_______ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
wlanboy has joined #ruby
burlyscudd has quit [Client Quit]
ta9to has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
burlyscudd has joined #ruby
ekinmur has quit []
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
bahar has quit [Changing host]
bahar has joined #ruby
pigzzcanfly has joined #ruby
burlyscudd has joined #ruby
sailias has quit [Ping timeout: 247 seconds]
burlyscudd has quit [Client Quit]
xerox357 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
YourBestFriend has quit [Changing host]
YourBestFriend has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
sdouglass has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
dayepa has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
gnephiak has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dodosan has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
griffindy has quit [Quit: Computer has gone to sleep.]
hfp is now known as hfp`away
burlyscudd has joined #ruby
ta9to has joined #ruby
burlyscudd has quit [Client Quit]
Celm has quit []
pigzzcanfly has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
michael_lee has joined #ruby
pigzzcanfly has joined #ruby
burlyscudd has quit [Client Quit]
thomasxie has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ktosiek_ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
<centrx> Turns out, there is a RubyCoin: http://www.rubycoin.org/
burlyscudd has quit [Client Quit]
jlast has joined #ruby
Zunonia has joined #ruby
ktosiek has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
burlyscudd has quit [Client Quit]
cj3kim has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dx7 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dx7 has joined #ruby
xerox357 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pigzzcanfly has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pigzzcanfly has joined #ruby
iaj has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
tubbo has quit [Ping timeout: 264 seconds]
Nyyx has quit [Ping timeout: 264 seconds]
segmond has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jlast has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kori has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has joined #ruby
burlyscudd has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
sensen_ has joined #ruby
kori has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pranny has joined #ruby
burlyscudd has joined #ruby
sdouglass has joined #ruby
burlyscudd has quit [Client Quit]
tubbo has joined #ruby
alekst has quit [Quit: Leaving...]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
sensen has quit [Ping timeout: 272 seconds]
Shidash has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
nobitanobi has joined #ruby
burlyscudd has joined #ruby
Jetchisel has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has quit [Ping timeout: 249 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<slowcon> centrx: did that just start?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pranny has quit [Ping timeout: 272 seconds]
<centrx> slowcon, I don't know, I just saw it on the list of Freenode channels
burlyscudd has joined #ruby
iaj has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<slowcon> damn only windows?!
amritanshu_RnD has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dayepa has joined #ruby
amritanshu_RnD is now known as Guest98574
burlyscudd has joined #ruby
dayepa1 has joined #ruby
burlyscudd has quit [Client Quit]
yacks has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
zeade has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dodosan has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Nyyx has joined #ruby
rezzack has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<centrx> slowcon, Oh that is some crap Ruby then
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dayepa has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xerox357 has joined #ruby
mocfive has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
burlyscudd has joined #ruby
xerox357 has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
xerox357 has joined #ruby
ringaroses has quit [Ping timeout: 244 seconds]
shiftins has quit [Ping timeout: 264 seconds]
tubbo has left #ruby ["WeeChat 0.4.3-dev"]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lewix has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jetblack has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kzrl has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
zeade has joined #ruby
Vovko has quit [Remote host closed the connection]
minsa has quit [Quit: WeeChat 0.4.1]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dodosan has joined #ruby
<pontiki> GUISE! GUISE! I have found the ultimate way to teach programming!!! http://www.c-jump.com/
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jxf has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<centrx> oh boy
jetblack has quit [Ping timeout: 264 seconds]
<centrx> holy crap
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jeregrine has quit [Quit: Connection closed for inactivity]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ta9to has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
yfeldblum has joined #ruby
burlyscudd has quit [Client Quit]
chrisseaton has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mavcunha has quit [Quit: Computer has gone to sleep.]
destructure has quit [Quit: leaving]
whomp has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kwatz has joined #ruby
kwatz is now known as destructure
jonah_k has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
funburn has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
binaryhat has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
chrisseaton has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
sensen_ has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
whomp has quit [Ping timeout: 272 seconds]
<nhmood> $24.95, what a bargain to be a C master
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dodosan has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<slowcon> centrx: for the last hour I've been searching about ruby coin -_-
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Aryasam has quit [Ping timeout: 272 seconds]
kzrl has joined #ruby
danshultz has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<centrx> slowcon, There a channel, #rubycoin.org they seem very helpful :)
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<slowcon> hahaha just watching youtube videos about crypto currency
<centrx> slowcon, I went in to make wisecracks about only supporting Windows but then they said they would help me compile it on Linux
<slowcon> hahahaha awesome!
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
funburn has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
yasushi has joined #ruby
fridim__ has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
itadder has joined #ruby
burlyscudd has quit [Client Quit]
binaryhat has quit [Quit: Leaving]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
heftig has quit [Ping timeout: 264 seconds]
Salve_ has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 272 seconds]
CaptainJet has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
browndawg has quit [Quit: Leaving.]
Salve has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
heydonovan has joined #ruby
burlyscudd has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
burlyscudd has quit [Client Quit]
lukec has quit [Quit: lukec]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
brucele_ has joined #ruby
yasushi has quit [Remote host closed the connection]
heftig has joined #ruby
<heydonovan> exit
<heydonovan> exit
heydonovan has quit [Client Quit]
Astralum has joined #ruby
burlyscudd has joined #ruby
itadder has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rationalrevolt has joined #ruby
Nyyx has quit [Ping timeout: 244 seconds]
heydonovan has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Salve has quit [Ping timeout: 264 seconds]
heydonovan has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
MattStratton has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
Solnse has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
stkowski has joined #ruby
burlyscudd has joined #ruby
crystal71 has joined #ruby
Zunonia has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
jetblack has joined #ruby
Zunonia has joined #ruby
xerox357 has quit [Remote host closed the connection]
crystal71 has quit [Client Quit]
burlyscudd has joined #ruby
xerox357 has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ktosiek has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ktosiek_ has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
yasushi has joined #ruby
figgleberry has joined #ruby
sensen has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
nichtdiebohne1 has left #ruby [#ruby]
burlyscudd has joined #ruby
serp` has joined #ruby
serp` has quit [Client Quit]
burlyscudd has quit [Client Quit]
Deele has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jxf has quit [Quit: Leaving]
Krajsnick has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
glaksmono has quit [Quit: This computer has gone to sleep]
Kricir has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jlast has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Nyyx has joined #ruby
jetblack has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dodosan has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
dodosan has quit [Remote host closed the connection]
ta9to has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jlast has quit [Ping timeout: 246 seconds]
Asher has quit [Quit: Leaving.]
rafaelmagu has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xerox357 has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<ceej> evening, so I'm trying to do this http://ruby-doc.org/stdlib-2.0/libdoc/observer/rdoc/Observable.html#module-Observable-label-Example and I have https://gist.github.com/98a249a35843ace157f4 but the trigger_event method never gets called.... am I missing something?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pranny has joined #ruby
<ceej> line 35 is getting called though
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Krajsnick has quit [Quit: Leaving...]
davedev24 has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
ta9to has quit [Ping timeout: 246 seconds]
meatherly has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
AlexRussia has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rationalrevolt has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
rationalrevolt has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
whomp has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xerox357 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pranny has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
<ceej> ah crap, I was missing changed
zumba_addict has quit [Ping timeout: 244 seconds]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
burlyscudd has joined #ruby
figgleberry has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Client Quit]
dodosan has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
yasushi has quit [Remote host closed the connection]
xerox357 has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
wallerdev has joined #ruby
xerox357 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
sparrovv has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
nari has joined #ruby
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
burlyscudd1 has joined #ruby
Guest19826 has quit [Remote host closed the connection]
davedev24 has joined #ruby
burlyscudd1 has quit [Client Quit]
sparrovv has quit [Ping timeout: 244 seconds]
burlyscudd has quit [Client Quit]
Jetchisel has quit [Read error: Connection reset by peer]
xerox357 has quit [Ping timeout: 272 seconds]
jetblack has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Chris- has quit [Quit: Chris-]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
AlexRussia has quit [Ping timeout: 244 seconds]
ilyam has quit [Quit: ilyam]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lyanchih_ has quit [Quit: lyanchih_]
funburn has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
slowcon has quit [Quit: slowcon]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rickruby has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jetblack has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
slowcon has joined #ruby
burlyscudd has quit [Client Quit]
lyanchih has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
TripTastic has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
carlyle has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kzrl has quit [Ping timeout: 244 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Aryasam has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Cache_Money has quit [Quit: Cache_Money]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
nakadai_ has quit [Quit: leaving]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
nisstyre has quit [Quit: WeeChat 0.4.3]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
JasmeetQA has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
lolmaus_ has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
meatherly has joined #ruby
burlyscudd has quit [Client Quit]
Wolland has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
doritostains has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
cj3kim has joined #ruby
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
rationalrevolt has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
ta9to has joined #ruby
mansi has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pranny has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Jetchisel has joined #ruby
CpuID has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
meatherly has quit [Ping timeout: 272 seconds]
kzrl has joined #ruby
cj3kim has quit [Remote host closed the connection]
thumpba_ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Salve has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
sdouglass has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mansi has quit [Ping timeout: 264 seconds]
rickruby has quit []
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Wolland has joined #ruby
sdouglas_ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
zumba_addict has joined #ruby
burlyscudd has quit [Client Quit]
jle` has quit [Ping timeout: 244 seconds]
thumpba_ has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
Salve has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jle` has joined #ruby
lyanchih has quit [Quit: lyanchih]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
shaileshg has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lukec has joined #ruby
browndawg has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
lukec has quit [Client Quit]
Cache_Money has joined #ruby
cj3kim has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
yfeldblum has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
pigzzcanfly has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
cj3kim has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
kori has quit [Ping timeout: 272 seconds]
mbuf has joined #ruby
burlyscudd has joined #ruby
cj3kim has joined #ruby
nobitanobi has left #ruby ["Leaving"]
burlyscudd has quit [Client Quit]
ziyadb_ has joined #ruby
<mbuf> any one uses inf-ruby with Emacs here? is there a short-cut in inf-ruby to switch from inf to the Ruby source buffer?
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
geopet has joined #ruby
kori has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
rickruby has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
jlast has joined #ruby
lyanchih_ has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Faris has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
CpuID2 has quit [Quit: Leaving]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
koell has quit [Read error: Connection reset by peer]
anarang has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
SCommette has quit [Quit: SCommette]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has joined #ruby
burlyscudd has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Client Quit]
ndrei has joined #ruby
cj3kim has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
Vovko has joined #ruby
Macaveli has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
xaq has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
mikepack has quit [Ping timeout: 246 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
craigp has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Client Quit]
burlyscudd has joined #ruby
geopet has quit []
burlyscudd has quit [Client Quit]
wiku5_ has quit [Ping timeout: 244 seconds]
Vovko has quit []
Kricir has quit [Remote host closed the connection]
craigp_ has joined #ruby
craigp has quit [Read error: Connection reset by peer]
kenndel has quit [Read error: Connection reset by peer]
kenndel has joined #ruby
tonni has quit [Remote host closed the connection]
bluOxigen has joined #ruby
rickruby has quit [Remote host closed the connection]
slowcon has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
pigzzcanfly has joined #ruby
gaussblurinc has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
OdNairy has joined #ruby
jetblack has joined #ruby
Steve445 has quit [Quit: Steve445]
sdouglas_ has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
rickruby has quit [Ping timeout: 244 seconds]
yfeldblu_ has joined #ruby
subbyyy has joined #ruby
pigzzcanfly has quit [Ping timeout: 270 seconds]
slowcon has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jetblack has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
Kilo`byte has joined #ruby
yasushi has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
lurch_ has joined #ruby
ciopte7 has quit [Quit: ciopte7]
itadder has joined #ruby
yasushi has quit [Ping timeout: 264 seconds]
andy__ has joined #ruby
heftig has quit [Quit: Quitting]
cj3kim has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n88 has quit [Write error: Broken pipe]
ta9to has quit [Ping timeout: 264 seconds]
n88 has joined #ruby
ta9to has joined #ruby
subbyyy has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
lurch_ has left #ruby [#ruby]
itadder has quit [Ping timeout: 244 seconds]
andy__ has quit [Ping timeout: 244 seconds]
AlexRussia has joined #ruby
guilleiguaran has quit [Quit: Connection closed for inactivity]
mocfive has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
mocfive has joined #ruby
AlexRussia has quit [Remote host closed the connection]
apeiros has joined #ruby
slowcon has quit [Quit: slowcon]
AlexRussia has joined #ruby
pranny has quit [Quit: Leaving.]
xaq has quit [Remote host closed the connection]
ta9to has quit [Ping timeout: 272 seconds]
meatherly has joined #ruby
habanany has quit [Ping timeout: 272 seconds]
pigzzcanfly has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 244 seconds]
mocfive has quit [Ping timeout: 244 seconds]
agjacome has joined #ruby
mansi has joined #ruby
kobain has quit []
MrBoolean has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
Salve has joined #ruby
shevy has quit [Read error: Connection reset by peer]
JBreit has joined #ruby
funburn has quit [Quit: funburn]
mansi has quit [Ping timeout: 244 seconds]
skammer has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
JasmeetQA has quit [Quit: Leaving.]
rickruby has joined #ruby
JasmeetQA has joined #ruby
klaut has joined #ruby
Salve has quit [Ping timeout: 246 seconds]
BadQuanta has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 272 seconds]
dodosan has quit [Remote host closed the connection]
user258467 has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
dodosan has joined #ruby
diegoviola has joined #ruby
browndawg has quit [Read error: Connection timed out]
cj3kim has quit [Remote host closed the connection]
bal has joined #ruby
browndawg has joined #ruby
lyanchih has joined #ruby
kzrl has quit [Ping timeout: 264 seconds]
rationalrevolt has joined #ruby
rationalrevolt has left #ruby [#ruby]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
aspires has joined #ruby
tvw has joined #ruby
miah has quit [Quit: Lost terminal]
alexju has joined #ruby
jlast has joined #ruby
b00stfr3ak has quit [Ping timeout: 246 seconds]
subbyyy has joined #ruby
dseitz has joined #ruby
aspires has quit [Client Quit]
ayaz has joined #ruby
shevy has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
Waheedi has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
ta9to has joined #ruby
Faris has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby
codenapper has quit [Quit: codenapper]
mbuf has quit [Quit: Leaving]
miah has joined #ruby
TripTastic has joined #ruby
jmau5 has quit [Remote host closed the connection]
JBreit has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
jack_rabbit has quit [Remote host closed the connection]
sdouglass has joined #ruby
gyKa_ has quit [Ping timeout: 244 seconds]
noopq has joined #ruby
lele has quit [Ping timeout: 246 seconds]
jack_rabbit has joined #ruby
coderhs has joined #ruby
coderhs has quit [Client Quit]
JBreit has joined #ruby
aspires has quit []
lxsameer has joined #ruby
TripTastic has quit [Ping timeout: 244 seconds]
sdouglass has quit [Ping timeout: 240 seconds]
jack_rabbit_ has joined #ruby
wjlafrance__ has quit [Quit: This computer has gone to sleep]
rickruby has quit [Ping timeout: 264 seconds]
segmond has quit [Ping timeout: 244 seconds]
tagrudev has joined #ruby
jetblack has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
TripTastic has joined #ruby
JBreit has quit [Ping timeout: 244 seconds]
browndawg has left #ruby [#ruby]
dodosan has quit [Ping timeout: 264 seconds]
epireve has quit [Ping timeout: 264 seconds]
Affix has quit [Ping timeout: 252 seconds]
cj3kim has joined #ruby
jetblack has quit [Ping timeout: 244 seconds]
cj3kim_ has joined #ruby
amclain has quit [Quit: Leaving]
dayepa1 has quit [Ping timeout: 272 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
makara has joined #ruby
jack_rabbit_ has quit [Quit: Leaving]
andikr has joined #ruby
jph98 has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
NovapaX has joined #ruby
<shevy> "ff".hex # => 255
<shevy> hmm
makara has quit [Max SendQ exceeded]
<shevy> why is ff 255?
<j416> why not?
makara has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
<shevy> j416 it could be another number?
<apeiros> because f = 15, 15*16**1 + 15*16**0 == 255
<j416> shevy: no
<j416> ^
<apeiros> not in hex
<shevy> thanks apeiros
<apeiros> the formula is sum-of(digit-value * base ** digit-position)
ayaz has quit [*.net *.split]
n88 has quit [*.net *.split]
kitak has quit [*.net *.split]
pontiki has quit [*.net *.split]
timmow has quit [*.net *.split]
stkowski has quit [Quit: stkowski]
brucele_ has quit [Ping timeout: 264 seconds]
timmow has joined #ruby
makara has quit [Excess Flood]
meatherly has joined #ruby
<apeiros> not to forget, digit position is zero-based, though
makara has joined #ruby
pigzzcanfly has joined #ruby
SegFaultAX has quit [Excess Flood]
<apeiros> 0b11111111 --> 1 * 2**7 + 1 * 2**6 + 1 * 2**5 + 1 * 2**4 + 1 * 2**3 + 1 * 2**2 + 1 * 2**1 + 1 * 2**0 --> 255
sikor_sxe has joined #ruby
SegFaultAX has joined #ruby
JasmeetQA1 has joined #ruby
makara has quit [Max SendQ exceeded]
<shevy> hmm
makara has joined #ruby
sigurding has joined #ruby
Wolland has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
makara has quit [Max SendQ exceeded]
meatherly has quit [Ping timeout: 264 seconds]
JasmeetQA has quit [Ping timeout: 264 seconds]
makara has joined #ruby
pigzzcanfly has quit [Ping timeout: 272 seconds]
dayepa has joined #ruby
makara has quit [Max SendQ exceeded]
jack_rabbit has quit [Client Quit]
makara has joined #ruby
mansi has joined #ruby
makara has quit [Max SendQ exceeded]
figgleberry has joined #ruby
moneydouble has quit [Quit: Leaving.]
makara has joined #ruby
makara has quit [Max SendQ exceeded]
ta9to has quit [Remote host closed the connection]
davidcollom_ is now known as davidcollom
Salve has joined #ruby
brandthdl has joined #ruby
makara has joined #ruby
lele has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
<gaussblurinc> by the way, where can I find classes, that imported by standard?
<apeiros> you mean things you don't have to require?
MJBrune_ has quit [Ping timeout: 252 seconds]
makara has quit [Max SendQ exceeded]
<apeiros> libs you don't have to require are called 'core'. see ruby-doc.org
<apeiros> libs that (should) ship with ruby are called 'stdlib'.
makara has joined #ruby
aganov has joined #ruby
jph98 has quit [Quit: jph98]
<gaussblurinc> apeiros: thanks
jonah_k has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 246 seconds]
makara has quit [Max SendQ exceeded]
<brandthdl> can anyone please help me with the referencing of i in this http://pastebin.com/L4cYgLjy
oso96_2000 is now known as oso|away
<brandthdl> #{i} doesnt work either
makara has joined #ruby
maZtah is now known as maZtah
<existensil> yes it does
<existensil> that's how string interpolation works
pfg has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
figgleberry has quit [Ping timeout: 264 seconds]
makara has quit [Max SendQ exceeded]
<apeiros> [2] pry(main)> %x{echo #{'hello'}}
<apeiros> => "hello\n"
<apeiros> works just fine
elcontrastador has joined #ruby
makara has joined #ruby
makara has quit [Read error: Connection reset by peer]
lele has quit [Quit: Coyote finally caught me]
tils` has quit [Ping timeout: 272 seconds]
lele has joined #ruby
lyanchih has quit [Quit: lyanchih]
funburn has joined #ruby
yacks has quit [Quit: Leaving]
<brandthdl> what i mean is i am not getting a return from the for loop section
<brandthdl> the first part returns links
Advocation has joined #ruby
<brandthdl> second doesnt give errors but gives me no return
<existensil> >> (2..3).map{|i| %x{echo hello#{i}} }
<eval-in___> existensil => (https://eval.in/105783)
<existensil> clearly your references of i isn't the problem
<existensil> despite eval-in not letting me use %x
<apeiros> existensil: "gives errors". you just learned that being vague is bad. why are you still vague?
<apeiros> if you get an error, paste it along.
* apeiros got to get back at work anyway, though
jlast has joined #ruby
<existensil> not sure what you mean by "return from the for loop". for loops aren't exactly encouraged, and it would return the range 2..3, not the the return value
<existensil> apeiros: you meant that for brandthdl
MrBoolean has quit [Quit: Linkinus - http://linkinus.com]
leonidlm has joined #ruby
workmad3 has joined #ruby
mikepack has joined #ruby
<apeiros> existensil: d'oh, yes, of course. sorry.
jlast has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
jayne has quit [Ping timeout: 600 seconds]
brucele_ has joined #ruby
einarj has joined #ruby
claymore has joined #ruby
<brandthdl> thanks guys
bleak has quit [Ping timeout: 264 seconds]
mikepack has quit [Ping timeout: 244 seconds]
cj3kim_ has quit [Read error: Connection reset by peer]
dayepa has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
whomp has quit [Ping timeout: 272 seconds]
davedev24 has quit [Remote host closed the connection]
axsuul has joined #ruby
sk87 has joined #ruby
tonni has joined #ruby
camilasan has joined #ruby
itadder has joined #ruby
yacks has joined #ruby
Kelgors has joined #ruby
blaxter_ has joined #ruby
echevemaster has quit [Quit: Leaving]
auxbuss_ has joined #ruby
auxbuss_ has quit [Client Quit]
jetblack has joined #ruby
itadder has quit [Ping timeout: 246 seconds]
coder_neo has joined #ruby
funburn has quit [Quit: funburn]
lolmaus has joined #ruby
incade has joined #ruby
jetblack has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
MJBrune has joined #ruby
pigzzcanfly has joined #ruby
gja has joined #ruby
greenarrow has joined #ruby
pigzzcanfly has quit [Ping timeout: 272 seconds]
whomp has joined #ruby
ilyam has joined #ruby
BWStearn1 has joined #ruby
kitak has joined #ruby
pontiki has joined #ruby
timonv has joined #ruby
mengu has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
jlebrech has joined #ruby
robbyoconnor has joined #ruby
jlebrech has quit [Client Quit]
sski has joined #ruby
gigetoo has quit [Remote host closed the connection]
mansi has joined #ruby
gigetoo has joined #ruby
noopq has quit [Ping timeout: 246 seconds]
tedstriker has joined #ruby
_bart has joined #ruby
n88 has joined #ruby
whomp has quit [Ping timeout: 272 seconds]
gigetoo has quit [Read error: Connection reset by peer]
j416 has quit [Quit: o/]
anarang has quit [Ping timeout: 246 seconds]
Salve has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
jlebrech has joined #ruby
gigetoo has joined #ruby
sski has quit []
Wolland has joined #ruby
sski has joined #ruby
ponga has joined #ruby
roolo has joined #ruby
klaut has quit [Remote host closed the connection]
starfox21 has joined #ruby
olivier_bK has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
ilyam has quit [Quit: ilyam]
Wolland has quit [Ping timeout: 246 seconds]
jhass|off is now known as jhass
nvrch has joined #ruby
evenix has quit [Remote host closed the connection]
craigp_ has quit [Remote host closed the connection]
evenix has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
plexus_ has joined #ruby
ikaros has joined #ruby
Matriks has joined #ruby
BWStearn1 has quit [Ping timeout: 246 seconds]
timonv_ has joined #ruby
spider-mario has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
evenix has quit [Ping timeout: 264 seconds]
noopq has joined #ruby
einarj_ has joined #ruby
jlast has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
ephemerian has joined #ruby
Black-Heaven has joined #ruby
<sigurding> anyone able to tell me, why I get `init_object': undefined method `constantize' when doing `init_object': undefined method `constantize'
sigurding has left #ruby [#ruby]
dayepa has joined #ruby
sigurding has joined #ruby
<apeiros> sigurding: because you call a method 'constantize' which is not defined.
elaptics`away is now known as elaptics
mikepack has joined #ruby
<certainty> captain obvious strikes back :)
<sigurding> apeiros: that's what I guessed
jayne has joined #ruby
<sigurding> :D
_Andres has joined #ruby
obs has joined #ruby
<apeiros> constantize is a method added by activesupport
<apeiros> maybe you tried to use rails code outside of rails?
razibog has joined #ruby
ponga has left #ruby ["Leaving :)"]
lxsameer has quit [Ping timeout: 264 seconds]
<sigurding> apeiros: I did 'gem install constantize'
<sigurding> perhaps I missed the correct require
anarang has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
m00nlight has quit [Quit: Konversation terminated!]
<certainty> sigurding: but you are using activerecord there in your project? That's what constantize seems to be for
aryaching has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
<sigurding> certainty: yes
<certainty> sigurding: so you installed it and you required it?
mikepack has quit [Ping timeout: 246 seconds]
supershabam_ has quit []
flowerhack has joined #ruby
<sigurding> certainty: `require': cannot load such file -- constantize
plexus_ has quit [Ping timeout: 244 seconds]
supershabam_ has joined #ruby
<sigurding> argh one moment
<certainty> sigurding: do you have a Gemfile?
supershabam_ has quit [Client Quit]
<sigurding> certainty: yes
<certainty> sigurding: did you add it to your gemfile?
<Black-Heaven> Hi all, I'm trying to limit some external programs execution time, but I'm failing to kill them when the time is over. I have this code: http://bpaste.net/show/182867/ (runner.rb) and this code http://bpaste.net/show/182867/ (tmp.rb), when I run the runner, it is unable to kill tmp.rb because it has forked. Have any idea on this problem? Thanks by advance for your help.
<sigurding> nope, that's what I think is missing
_Andres has quit [Read error: Connection reset by peer]
subbyyy has quit [Ping timeout: 250 seconds]
rdark has joined #ruby
supershabam has joined #ruby
TMM has joined #ruby
flowerhack is now known as hoypriest
<certainty> Black-Heaven: you linked the same paste twice
gja has quit [Quit: This computer has gone to sleep]
mipo has joined #ruby
mipo has left #ruby [#ruby]
<certainty> Black-Heaven: also how do you tell that it could not be killed?
dayepa has quit [Ping timeout: 272 seconds]
timonv_ has quit [Remote host closed the connection]
hoypriest has quit [Remote host closed the connection]
craigp has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Black-Heaven> oops: http://bpaste.net/show/182868/
<Black-Heaven> sorry for that
<Black-Heaven> it is tmp.rb
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<Black-Heaven> I think it can be killed, but currently it isn't because I still can see it <ith top
<certainty> Black-Heaven: you need to kill the entire process group, otherwise you'll just create orphans
<Black-Heaven> with*
<certainty> also -9 is pretty rude
<Black-Heaven> ok, how can I do this ?
oso|away is now known as oso96_2000
<certainty> Black-Heaven: just negate the pid
<Black-Heaven> It is unsafe code
<certainty> so if you want to kill the father and all children and the father's pid is 42 then do kill -9 -42
nari has quit [Ping timeout: 245 seconds]
<certainty> s/pid/group id/
dayepa has joined #ruby
<apeiros> -9 -42?
<apeiros> not -9 42?
<Black-Heaven> I have done kill -9 -#{pid} and I have this error: kill: sending signal to -25645 failed: No such process
<toretore> -
vlad_starkov has joined #ruby
<toretore> .abs
jetblack has joined #ruby
dayepa has quit [Remote host closed the connection]
avril14th has joined #ruby
<toretore> oh
<apeiros> at least BSD kill doesn't seem to support negative pids to indicate "and all descendants"
vlad_sta_ has joined #ruby
dayepa has joined #ruby
<apeiros> also you don't have to shell out for kill
<apeiros> Process.kill
plexus_ has joined #ruby
zeade has quit [Quit: Leaving.]
Faris has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
klaut has joined #ruby
pigzzcanfly has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
Hanmac has quit [Ping timeout: 244 seconds]
karupanerura is now known as zz_karupanerura
Xeago has joined #ruby
jetblack has quit [Ping timeout: 264 seconds]
ylluminate has quit [Quit: Bye!]
Giorgio has quit [Read error: Connection reset by peer]
srji_ has quit [Quit: leaving]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
srji has joined #ruby
einarj_ has quit [Remote host closed the connection]
<sigurding> certainty: now I have defined it in my gem file and I am now getting: uninitialized constant Constantize::ClassMethods::ActiveSupport
pigzzcanfly has quit [Ping timeout: 244 seconds]
<sigurding> Gemfile has the following line: gem 'constantize', :require => 'activerecord, activesupport'
<certainty> Black-Heaven: note the substitution i wrote after, the negative groupid not pid. I just looked at SO and it seems that the preferred way is to select the child pids first and then kill them. I'm pretty sure though that i have a script at work that works with the negative group id
<apeiros> sigurding: I don't think this works: :require => 'activerecord, activesupport'
<existensil> ha, no. at least i hope that doesn't work.
<sigurding> apeiros: removed I, but error still exists
<sigurding> *removed it
<plexus_> gem 'activesupport', require: 'active_support/all'
<plexus_> or something to that effect
felixjet has quit [Read error: Connection reset by peer]
relix has joined #ruby
<certainty> tagrudev: here?
<tagrudev> always
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nfk has quit [Excess Flood]
timonv has joined #ruby
<Black-Heaven> It works with pkill -9 -P pid
<Black-Heaven> thanks
<plexus_> if all you need is constantize you might get away with
<plexus_> gem 'activesupport, require: 'active_support/core_ext/string/inflections'
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
sk87 has joined #ruby
<certainty> plexus_: note that he uses a different constantize, one thet comes from a gem
_bart has quit [Ping timeout: 244 seconds]
<plexus_> ah right, didn't realize there was such a thing
_bart_ has joined #ruby
dayepa has quit [Quit: dayepa]
<plexus_> in that case "gem 'constantize'" might be enough
<certainty> his constantize however depends on activesupport :)
<certainty> confusing as hell
meatherly has joined #ruby
<plexus_> ok, I'm going to shut up then. Maybe run around screaming with my hands in the air a bit
yfeldblu_ has quit [Remote host closed the connection]
AlexRussia has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
workmad3 has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 272 seconds]
alexherbo2 has joined #ruby
mansi has joined #ruby
thumpba has joined #ruby
einarj has joined #ruby
oso96_2000 is now known as oso|away
razibog has quit [Ping timeout: 264 seconds]
_Andres has joined #ruby
bluehavana_ has joined #ruby
Zunonia has quit [Quit: Computer has gone to sleep.]
Salve has joined #ruby
mansi has quit [Ping timeout: 244 seconds]
<certainty> workmad3: i hear you're an elixir fan? :p
coder_neo has quit [Quit: This computer has gone to sleep]
thumpba has quit [Ping timeout: 264 seconds]
skaflem has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
Salve has quit [Ping timeout: 264 seconds]
razibog has joined #ruby
intuxicated has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
alexju has quit [Remote host closed the connection]
kukyakya_ has joined #ruby
mehlah has joined #ruby
razibog has quit [Quit: Leaving.]
claymore has quit [Quit: Leaving]
aasmith has quit [Ping timeout: 240 seconds]
camilasan has quit []
ndrei has quit [Ping timeout: 244 seconds]
m1lt0n has joined #ruby
<apeiros> this legacy data import class is TEH HORROR
<apeiros> riddled with 50+ line methods, overall over 1kLoC
* apeiros going slightly mad
Xeago has quit [Remote host closed the connection]
yasushi has joined #ruby
eka has joined #ruby
jlast has joined #ruby
Kneferilis has quit [Quit: Leaving]
alexherbo2 has joined #ruby
phansch has joined #ruby
aryaching has joined #ruby
mengu has quit [Remote host closed the connection]
itadder has joined #ruby
cj3kim has quit [Remote host closed the connection]
browndawg has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
skammer has joined #ruby
skammer has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
ndrei has joined #ruby
camilasan has joined #ruby
Scientz has joined #ruby
itadder has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
felixjet has joined #ruby
user258467 has quit [Remote host closed the connection]
andrewlio has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
<sigurding> why are there actually no docs for using constantize?
<sigurding> argh
joelroa has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<certainty> apeiros: sounds like fun
itadder has joined #ruby
<apeiros> certainty: endless…
<certainty> apeiros: i hope not
<certainty> there are docs
pigzzcanfly has joined #ruby
<apeiros> whenever I think I have it, the data manages to come up with *yet another* stupid mess
<apeiros> I'd like to flail whoever thought validations were not necessary for the entry forms of this horror
<sigurding> jhass: that's what I found. What's not documented is how configure my Gemfile and which requires are necessary
<certainty> also the code is actually quite simple
skaflem has quit [Read error: Connection reset by peer]
makara has joined #ruby
camilasan has quit [Remote host closed the connection]
<diegoviola> i'm working with a codebase that is not tested, the code feels terribly clumsy, what's the best thing to do in this case?
<diegoviola> no organization at all with the code
camilasan has joined #ruby
<jhass> sigurding: gem 'activesupport', require: no and require 'active_support/core_ext/string/inflections' but think again, AS is quite a huge dependency for a functionality like this, it's easy to implement a simple version
camilasan has quit [Read error: Connection reset by peer]
makara has left #ruby [#ruby]
jetblack has joined #ruby
<jhass> er, require: false of course
<diegoviola> it seems like they just care about "things that work" but trying to implement a new feature with the current code is harder
camilasan has joined #ruby
<certainty> diegoviola: if you have time and it's feasable you should add tests. Start with the greatest integration
skaflem has joined #ruby
<certainty> to cover the core functionality without having too much to know about internals
camilasan has quit [Read error: Connection reset by peer]
<diegoviola> certainty: will do, thanks
camilasan has joined #ruby
<sigurding> jhass: ok, so there are other implementations?
camilasan has quit [Read error: Connection reset by peer]
<jhass> simplest one is Object.get_const('Foo')
pigzzcanfly has quit [Ping timeout: 272 seconds]
camilasan has joined #ruby
<jhass> what you need entirely depends on the specific usecase you have
camilasan has quit [Read error: Connection reset by peer]
<sigurding> as you said to me yesterday, I stopped talking and started coding
camilasan has joined #ruby
<certainty> sigurding: i thought you needed the functionality provided by https://github.com/minch/constantize?
<certainty> that's different from String#constantize as added by activesupport
roolo has quit [Read error: Connection reset by peer]
<sigurding> jhass: that's what I am trying to do: value.instance_of?(Hash) ? (get_module_name + klass.to_s.capitalize).constantize.new(value) : value
roolo has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<certainty> ok apparently not
ctp has joined #ruby
jetblack has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
<jhass> okay, then the slightly more complex version that respects namespaces: klass = 'Foo::Bar'.split('::').inject(Object) {|mod, const| mod.const_get const }
<jhass> stuff that into a utility method somewhere and be happy
<sigurding> food, will be back soon
<jhass> oh and I hope value isn't user input
sigurding has quit [Read error: Connection reset by peer]
<certainty> :)
ksinkar has joined #ruby
yasushi has quit [Remote host closed the connection]
_bart_ has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 272 seconds]
<marius> hi, I'm playing with knife tool and I try to hack gem files - how to add my current work dir to gem search path?
mikecmpbll has joined #ruby
eVRiAL has joined #ruby
klaut has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
meatherly has joined #ruby
__main__ has joined #ruby
meatherl_ has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
dvorak has quit [Ping timeout: 252 seconds]
bricker`LA has quit [Read error: Connection reset by peer]
dvorak has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
sawtooth_ has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
sawtooth has joined #ruby
meatherl_ has quit [Ping timeout: 272 seconds]
noopq has quit [Ping timeout: 246 seconds]
pontiki has joined #ruby
anarang has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 272 seconds]
_bart has joined #ruby
_tpavel has joined #ruby
Xeago has joined #ruby
timonv has quit []
rahult has joined #ruby
himsin has joined #ruby
Salve has joined #ruby
itadder has quit []
kirun has joined #ruby
blackmesa has joined #ruby
Atrumx has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
flayer has joined #ruby
mengu has joined #ruby
poulson has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
<flayer> Hi I have a small issuel with my ruby installation. every script I start I get "No such file or directory - (unreachable) (Errno::ENOENT)" error.
spider-mario has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Remote host closed the connection]
<flayer> I has worked before. now it isn't. I honestly don't know what I did to botch it.
workmad3 has joined #ruby
camilasa_ has joined #ruby
timonv has joined #ruby
habanany has joined #ruby
noopq has joined #ruby
brucele_ has quit [Ping timeout: 246 seconds]
anarang has joined #ruby
browndawg has joined #ruby
sigurding has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
Mongey has joined #ruby
<flayer> When I start irb I get "(unreachable)/code" when I am running puts Dir.pwd. I imagine this is my issue
intuxicated has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
_bart has quit [Remote host closed the connection]
yeboot has joined #ruby
<yeboot> hi, I'm trying to find rdoc documentation so I can put latex math symbols in my code
jtdowney has joined #ruby
<yeboot> (in the comments)
danshultz has joined #ruby
aasmith has joined #ruby
Gadgetoid has joined #ruby
dawkirst has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 246 seconds]
bricker`LA has joined #ruby
yfeldblum has joined #ruby
phreax_ has quit [Ping timeout: 264 seconds]
davedev24 has joined #ruby
Mongey has quit [Quit: Mongey]
<sigurding> jhass: not sure I understand your sample code correctly
danshultz has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 249 seconds]
<jhass> what troubles you?
burlyscudd1 has joined #ruby
pigzzcanfly has joined #ruby
burlyscudd1 has quit [Client Quit]
Atw has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
mostlybadfly has joined #ruby
[gmi] has joined #ruby
<Hanmac1> jhass: newer ruby support "::" in const_get
<jhass> oh, didn't notice. what's newer? 2.0?
tolstoi has quit [Ping timeout: 245 seconds]
phreax has joined #ruby
coder_neo has joined #ruby
nomenkun has quit [Quit: Leaving...]
coder_neo has quit [Client Quit]
<Hanmac1> hm i think 2.0
Fraeon has joined #ruby
super_g has joined #ruby
m00nlight has joined #ruby
<Hanmac1> >> module A; B = 3; end; Object.const_get("A::B")
<eval-in___> Hanmac1 => 3 (https://eval.in/105846)
<Hanmac1> 19>> module A; B = 3; end; Object.const_get("A::B")
<eval-in___> Hanmac1 => wrong constant name A::B (NameError) ... (https://eval.in/105847)
<Hanmac1> jhass: yes its 2.0
pigzzcanfly has quit [Ping timeout: 272 seconds]
Hanmac1 is now known as Hanmac
cj3kim has quit [Read error: Connection reset by peer]
<jhass> hm
<jhass> >> RUBY_VERSION
<eval-in___> jhass => "2.1.0" (https://eval.in/105848)
<jhass> 20>> module A; B = 3; end; Object.const_get("A::B")
<eval-in___> jhass => 3 (https://eval.in/105849)
sdouglass has joined #ruby
cj3kim has joined #ruby
Criztian has joined #ruby
habanany has quit [Quit: Leaving.]
dawkirst has joined #ruby
vlad_starkov has joined #ruby
nari has joined #ruby
mavcunha has joined #ruby
Mongey has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
<jokke> hey
sdouglass has quit [Ping timeout: 240 seconds]
<jokke> i noticed that URI::Generic has the method build
<jokke> why doesn't URI have that?
<jokke> i need to use build for generating a url and then join a path to it
<jokke> URI::Generic doesn't have a join method though
marcgg_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<jokke> i want to build the url by defining scheme, host and port
<jokke> maybe this is possible with URI too?
waxjar_ has quit [Ping timeout: 264 seconds]
Beoran has joined #ruby
marcgg has quit [Ping timeout: 252 seconds]
_Andres has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
itadder has joined #ruby
ndrei has joined #ruby
Beoran_ has quit [Ping timeout: 246 seconds]
nvrch has quit [Quit: nvrch]
tolstoi has joined #ruby
tolstoi has quit [Changing host]
tolstoi has joined #ruby
LiohAu has quit [Ping timeout: 245 seconds]
Bish has joined #ruby
lkba has joined #ruby
Robbo_ has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
makara has joined #ruby
kukyakya_ has quit [Ping timeout: 272 seconds]
eka has quit [Ping timeout: 272 seconds]
eka has joined #ruby
JasmeetQA1 has quit [Ping timeout: 246 seconds]
meatherly has joined #ruby
evenix has joined #ruby
chrisseaton has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kukyakya_ has joined #ruby
joelroa has joined #ruby
Criztian has quit [Remote host closed the connection]
MattStratton has quit [Write error: Broken pipe]
Xeago has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
m00nlight_ has joined #ruby
Black-Heaven has quit [Remote host closed the connection]
mansi has joined #ruby
Lennier has joined #ruby
m00nlight has quit [Write error: Broken pipe]
kayamm has joined #ruby
srji_ has joined #ruby
evenix has quit [Ping timeout: 245 seconds]
meatherly has quit [Ping timeout: 245 seconds]
griffindy has joined #ruby
DaniG2k has quit [Quit: leaving]
jtdowney has quit []
nvrch has joined #ruby
srji has quit [Ping timeout: 252 seconds]
mansi has quit [Ping timeout: 244 seconds]
kayamm has quit [Client Quit]
Lennier has quit [Quit: Lennier]
Salve has joined #ruby
rahult has joined #ruby
roolo has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
<sigurding> jhass: what I don't understand is this part: {|mod, const| mod.const_get const }
ndrei has quit [Ping timeout: 264 seconds]
<jhass> do you know what a block is already?
Salve has quit [Ping timeout: 264 seconds]
sdouglass has joined #ruby
klaut has joined #ruby
Kelgors has quit [Remote host closed the connection]
Kneferilis has joined #ruby
rails426 has joined #ruby
SystemObject has joined #ruby
claymore has joined #ruby
<Hanmac> jhass: also works: 'Foo::Bar'.split('::').inject(Object,:const_get)
krz has quit [Ping timeout: 246 seconds]
<existensil> ha. that is badass and only going to freighten a noob
vlad_starkov has quit [Remote host closed the connection]
sdouglass has quit [Ping timeout: 272 seconds]
nism has joined #ruby
Guest98574 has quit [Quit: Leaving]
<sigurding> jhass: I though so, until now
popl has quit [Ping timeout: 264 seconds]
<sigurding> jhass: that's how I converted it: https://gist.github.com/jhiemer/9228486
boboc has joined #ruby
itadder has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
SystemObject has quit [Ping timeout: 246 seconds]
<jhass> what's your ruby version?
itadder has joined #ruby
boboc_ has joined #ruby
<jhass> also that line is waaay too long for my taste
boboc has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
boboc_ has quit [Client Quit]
boboc has joined #ruby
<apeiros> Hanmac: omits a couple of cases, though
lyanchih has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
boboc has quit [Client Quit]
sk87 has joined #ruby
pigzzcanfly has joined #ruby
himsin has quit [Quit: himsin]
<jhass> sigurding: so inject takes each element in the array and passed it to the block, together with the result of the previous iteration, with the optional parameter you can set the initial value to something else than the first two elements of the array. For example you can use this to build a sum: [1,2,3].inject {|a,b| a+b}
itadder has quit [Ping timeout: 264 seconds]
<jhass> if a symbol is passed but no block inject will call the corresponding method
poulson has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
<sigurding> jhass: version is 2.0.0
sk87 has quit [Client Quit]
<jhass> so as Hanmac pointed out you can skip the split.inject part and just do Object.const_get("Foo::Bar")
yfeldblum has joined #ruby
pigzzcanfly has quit [Ping timeout: 246 seconds]
xaq has joined #ruby
poulson has joined #ruby
pigzzcanfly has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
PLejeck has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
<sigurding> mh this is really embarrassing. learning a new language is always frustating
<sigurding> to much patterns from your known languages in your head, but troubles to get it running
itadder has joined #ruby
PLejeck has joined #ruby
bluehavana_ has quit [Quit: Connection closed for inactivity]
krnflake has quit [Excess Flood]
yfeldblum has quit [Ping timeout: 334 seconds]
<certainty> sigurding: why's that embarrassing? We all go through that phase when we learn a new language
<itadder> it so hard to focus on learning
pigzzcanfly has quit [Ping timeout: 272 seconds]
krnflake has joined #ruby
<itadder> but it is fun when you do bulid something
<toretore> sigurding: learning ruby should really not include the kind of stuff you're doing in that gist
<itadder> learning is starting to get harder
<itadder> to much information to learn from
<toretore> that's advanced usage, and quite smelly
<itadder> bbl
itadder has quit [Client Quit]
<sigurding> toretore: but if that would work, it would help me a lot
<sigurding> :)
<toretore> it would also hurt you a lot in the long term
kukyakya_ has quit [Remote host closed the connection]
<existensil> i doubt "a lot". its usually not that hard to unlearn bad practices.
<toretore> it teaches him that this sort of stuff is standard practice in ruby, when it is far from it
jetblack has joined #ruby
<existensil> that's all true, just saying if this is his goal, achieving it isn't going to set him back "a lot"
<toretore> it's ok if you just think it's interesting, but for real code, no
<existensil> but kind of a moot point. i agree its not something you should be doing
danshultz has joined #ruby
<sigurding> mh
* sigurding is sad now
<sigurding> ;)
marcgg has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
<olivier_bK> i get on error in my script and i dont understand
freerobby has joined #ruby
jetblack has quit [Ping timeout: 244 seconds]
nism has quit [Quit: Leaving]
danshultz has quit [Ping timeout: 246 seconds]
<jhass> olivier_bK: define the method before you call it. Also why that useless begin end block?
yasushi has joined #ruby
stryek has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
<olivier_bK> gr....
<olivier_bK> i m stupid
<olivier_bK> sorry jhass
<olivier_bK> thanks
avril14th has quit [Ping timeout: 245 seconds]
<dachi> hi
<dachi> i was just reading some articles about ruby community
<dachi> i know you're all here
<dachi> I've got a question like, what does one need to do to become a part of your community
mlpinit has joined #ruby
Megtastique has joined #ruby
dkamioka has joined #ruby
tjr9898 has quit [Remote host closed the connection]
dachi has quit [Quit: ...]
greenarrow has quit [Quit: 500]
dkamioka has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 246 seconds]
dkamioka has joined #ruby
ikaros has quit [Quit: Ex-Chat]
davidcollom is now known as davidcollom_afk
IceyEC has joined #ruby
meatherly has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mercwithamouth has joined #ruby
greenarrow has joined #ruby
moneydouble has joined #ruby
meatherly has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
jcs222 has quit [Quit: Lost terminal]
end_guy has joined #ruby
decoponio has joined #ruby
tolstoi has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 264 seconds]
Salve has joined #ruby
mcls has joined #ruby
yeticry has joined #ruby
<apeiros> more patience, as it seems…
Megtastique has quit []
LekeFly has joined #ruby
phutch1ns has joined #ruby
mary5030 has quit [Remote host closed the connection]
davidcollom_afk is now known as davidcollom
Salve has quit [Ping timeout: 260 seconds]
Mongey has quit [Quit: Mongey]
aryaching_ has joined #ruby
sdouglass has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
yacks has quit [Ping timeout: 244 seconds]
heftig has joined #ruby
ffranz has joined #ruby
Kelgors has joined #ruby
mcls has quit [Remote host closed the connection]
starfox21 has quit [Quit: starfox21]
sdouglass has quit [Ping timeout: 259 seconds]
Advocation has quit [Quit: Advocation]
tonni has quit [Remote host closed the connection]
Speed has joined #ruby
elimS has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 244 seconds]
mark_locklear has joined #ruby
mikepack has joined #ruby
elimS has joined #ruby
Salve has joined #ruby
elimS has quit [Client Quit]
elimS has joined #ruby
jlast has joined #ruby
Megtastique has joined #ruby
jtdowney has joined #ruby
vpretzel has joined #ruby
ndrei has joined #ruby
norm has joined #ruby
pigzzcanfly has joined #ruby
Astralum has joined #ruby
<norm> i'm receiving raw TCP data, appending it to a string, then parsing the string with .unpack(). I have to manually manage an offset for how far into the string i need to read. is there a better class to use? something like java's buffered readers?
<norm> something made for binary parsing
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Salve has quit [Ping timeout: 246 seconds]
mikepack has quit [Ping timeout: 272 seconds]
mlpinit_ has joined #ruby
jlast has quit [Ping timeout: 244 seconds]
pigzzcanfly has quit [Ping timeout: 264 seconds]
plexus_ has quit [Ping timeout: 246 seconds]
mlpinit has quit [Ping timeout: 272 seconds]
adamnbowen has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
lyanchih_ has joined #ruby
end_guy has joined #ruby
<toretore> norm: google returned http://bindata.rubyforge.org/manual.html
<toretore> there is an "alternatives" list at the bottom too
<norm> haha, just stumbled on that
<norm> i had googled some yesterday, must have skipped over it
mlpinit_ has quit [Ping timeout: 244 seconds]
tolstoi has joined #ruby
tolstoi has quit [Changing host]
tolstoi has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesuji has joined #ruby
mlpinit has joined #ruby
<norm> thanks
marius is now known as nkts
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
Salve has joined #ruby
jtdowney has quit []
elimS has quit []
yacks has joined #ruby
enebo has joined #ruby
ikaros has joined #ruby
craigp has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
craigp has joined #ruby
jetblack has joined #ruby
ae-r has joined #ruby
rmorello has joined #ruby
sk87 has joined #ruby
sailias has joined #ruby
tonni has joined #ruby
wjlafrance__ has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
nhhagen has joined #ruby
brandthdl has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
user258467 has joined #ruby
mansi has joined #ruby
jetblack has quit [Ping timeout: 272 seconds]
redlines has joined #ruby
Xeago has joined #ruby
elimS has joined #ruby
prc has quit [Ping timeout: 244 seconds]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
brian___ has quit [Quit: brian___]
dx7 has joined #ruby
jcs222 has joined #ruby
dblessing has joined #ruby
teoric has joined #ruby
teoric has quit [Client Quit]
ae-r has quit [Remote host closed the connection]
spider-mario has joined #ruby
dik_dak has joined #ruby
wjlafrance__ has quit [Quit: This computer has gone to sleep]
AlexRussia has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
Advocation has joined #ruby
<flayer> is there some form of debug log or something for ruby? it seems to crash for me all the time
kaldrenon has joined #ruby
Xeago has quit [Remote host closed the connection]
stryek has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
makara has quit [Ping timeout: 272 seconds]
lockweel has joined #ruby
<lockweel> help please! I have an error when I run gem install 'marshal file format (can't be read) ' how can I fix it ?
rudisimo has joined #ruby
Xeago has quit [Remote host closed the connection]
<existensil> flayer: you can set default exception handlers. sometimes those are already built into tools, like --trace in rake.
rgoodwin has quit [Quit: ZNC - http://znc.in]
Kricir has joined #ruby
<flayer> thanks existensil!
<existensil> but by default ruby should at least give you some basic information when it crashes
<existensil> indicating the exception and where it was thrown
mary5030 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
jerius has joined #ruby
lkba has quit [Read error: Connection reset by peer]
slowcon has joined #ruby
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
vindictive27 has joined #ruby
thumpba has joined #ruby
ahawkins has joined #ruby
tonni has quit [Read error: Connection reset by peer]
jetblack has joined #ruby
jerius has quit [Client Quit]
<pontiki> Time.now.appropriate_greeting
jackneill has joined #ruby
nowthatsamatt has joined #ruby
anarang has quit [Quit: Leaving]
<toretore> yuck
<toretore> appropriate_greeting(Time.now)
Speed has quit [Ping timeout: 244 seconds]
mlpinit_ has joined #ruby
ikaros has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
thumpba has quit [Ping timeout: 272 seconds]
himsin has joined #ruby
danshultz has joined #ruby
fridim__ has joined #ruby
pedda has joined #ruby
cmhobbs has quit [Ping timeout: 253 seconds]
jetblack has quit [Ping timeout: 244 seconds]
<sikor_sxe> hello, in rails i have an unique index in my schema. to get proper error handling, i also need a validation for that. that seems a bit redundant to me? am i doing anything wrong here?
<ddd> #rubyonrails
mlpinit has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
danshultz has quit [Read error: Connection reset by peer]
<sikor_sxe> oh, pardon
dorei has joined #ruby
jprovazn has quit [Quit: Leaving]
danshultz has joined #ruby
ikaros has quit [Client Quit]
rails426 has quit []
jprovazn has joined #ruby
ikaros has joined #ruby
zumba_addict has quit [Ping timeout: 244 seconds]
<apeiros> TimeDependentMessages.new(Time.now).greeting
kpshek has joined #ruby
tonni has joined #ruby
zumba_addict has joined #ruby
pigzzcanfly has joined #ruby
jprovazn has quit [Client Quit]
super_g has quit [Ping timeout: 245 seconds]
tjr9898 has joined #ruby
nhhagen has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
jprovazn has joined #ruby
DEA7TH has joined #ruby
DEA7TH has left #ruby [#ruby]
ctp has quit [Quit: Linkinus - http://linkinus.com]
pigzzcanfly has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
angusiguess has joined #ruby
lockweel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140218140338]]
joestrong has joined #ruby
lockweel has joined #ruby
joestrong has left #ruby [#ruby]
Macaveli has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
<lockweel> pontiki: boris na voithiseis ?
mehlah has joined #ruby
Macaveli has joined #ruby
ksinkar has quit [Ping timeout: 264 seconds]
Avahey has joined #ruby
fedesilva has joined #ruby
Macaveli has quit [Client Quit]
Macaveli has joined #ruby
<jhass> class Time; def ugt; UGT.new; end; end; class UGT; def greeting; "good morning"; end; end; Time.now.ugt.greeting
treehau55 has joined #ruby
adamnbowen has quit [Quit: Computer has gone to sleep.]
vpretzel_ has joined #ruby
lockweel has quit [Client Quit]
ggg has joined #ruby
jlast has quit [Ping timeout: 246 seconds]
<slowcon> hhahaha whatup jhass
sparrovv has joined #ruby
angusiguess has quit [Ping timeout: 244 seconds]
tonni has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
vpretzel has quit [Ping timeout: 244 seconds]
blandflakes has joined #ruby
pico-pete has joined #ruby
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
vpretzel_ is now known as vpretzel
matchaw has quit [Remote host closed the connection]
scarolan has joined #ruby
nhhagen has joined #ruby
Xeago has joined #ruby
xaq has quit [Remote host closed the connection]
Mongey has joined #ruby
matchaw has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
dkamioka has quit [Remote host closed the connection]
jtdowney has joined #ruby
_maes_ has joined #ruby
Speed has joined #ruby
mary5030 has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
mary5030 has joined #ruby
cj3kim has joined #ruby
tonni has joined #ruby
<sigurding> jhass: challenge accepted. works now as expected
<sigurding> ;)
treehau55 has left #ruby [#ruby]
cj3kim has quit [Read error: Connection reset by peer]
dkamioka_ has joined #ruby
cj3kim has joined #ruby
freerobby has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
segmond has joined #ruby
Wolland has joined #ruby
rails426 has joined #ruby
matchaw has quit [Remote host closed the connection]
rmorello has quit [Ping timeout: 244 seconds]
yacks has quit [Ping timeout: 246 seconds]
tishOFF has joined #ruby
endless_walrus has joined #ruby
tishOFF has left #ruby [#ruby]
shashin has joined #ruby
Mongey has quit [Quit: Mongey]
yacks has joined #ruby
ringaroses has joined #ruby
<rails426> hi I've been refactoring someone else's code and ended up here https://gist.github.com/wpp/9230672
rmorello has joined #ruby
lolmaus has joined #ruby
ringaroses has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
<rails426> is there a way to generalize/extract the "lower" part of these four methods?
kcombs has joined #ruby
tonni has quit [Ping timeout: 260 seconds]
ctp has quit [Quit: Linkinus - http://linkinus.com]
meatherly has joined #ruby
ctp has joined #ruby
<dorei> rails426: i've got no idea about refactoring, but how about making a method that accepts the core_params symbol and the response.code number ?
jefflyne has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
jefflyne has quit [Max SendQ exceeded]
danshult_ has joined #ruby
<certainty> rails426: what do you mean by "lower" part? The exception handling?
<rails426> certainty yes exactly
jefflyne has joined #ruby
<rails426> the problem is the second rescue returns the response
17SAAH96V is now known as jeekl
<apeiros> rails426: `get(_path)`, _path? for real?
Macaveli has quit [Quit: Leaving]
lxsameer has quit [Quit: Leaving]
<apeiros> leading _ indicates that the value is ignored/not used…
jeekl has quit [Changing host]
jeekl has joined #ruby
<certainty> apeiros: only in your world
* certainty hides
<rails426> apeiros like I said I'm jus refactoring someone elses code
geopet has joined #ruby
jetblack has joined #ruby
<apeiros> certainty: yes, in my world. don't know in which one you live :-p
nszceta has joined #ruby
budrose has joined #ruby
<apeiros> rails426: well, then I'd suggest you refactor that too
poguez_ has joined #ruby
<certainty> rails426: there is more repition in those methods then just the handling of errors
<rails426> certainty the problem is the second rescue, returns the response
Shidash has quit [Ping timeout: 246 seconds]
<rails426> apeiros yeah, but perhaps the person has some reason for naming _variables that way. I will ask him about it
danshultz has quit [Ping timeout: 244 seconds]
<apeiros> rails426: you can omit explicit full-body-covering begin/end
hiyosi has quit [Quit: WeeChat 0.4.1]
<apeiros> I find get's missing else disturbing
craigp has joined #ruby
<apeiros> same actually for all 4 methods
segmond has quit [Ping timeout: 246 seconds]
tonni has joined #ruby
hiyosi has joined #ruby
adamnbowen has joined #ruby
geopet has quit [Client Quit]
hoypriest has joined #ruby
<rails426> apeiros yep :) I actully have a testcase for that which just returns nil (again I'm not suppossed to change any return values, soo)
<apeiros> rails426: implicit nil return - bad
<apeiros> IMO
<rails426> apeiros my thinking exactly
<rails426> apeiros anyways except for the explicit begin? any ideas?
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> sure, could map it all to a single method
andikr has quit [Remote host closed the connection]
dweeb_ has joined #ruby
<rails426> could you elaborate? (sry if I'm bugging you)
budrose has quit [Client Quit]
griffindy has quit [Quit: Computer has gone to sleep.]
enebo has quit [Quit: enebo]
npearson has joined #ruby
jobewan has joined #ruby
<dorei> rails426: def get(_path); xxx(:get, 200); end
dkamioka_ has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
<dorei> rails426: oops, def get(_path); xxx(:get, 200, _path); end
<rails426> dorei and just send :get to Restclient?
mary5030 has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
<rails426> dorei or public_send
momomomomo has joined #ruby
dkamioka has joined #ruby
<apeiros> if git would work…
<dorei> rails426: sort of, but u have to take care that get accept one param less that the others
<rails426> dorei mhm
<apeiros> rails426: ^
<dorei> apeiros: invoke :) much better than my xxx :)
_bart has joined #ruby
zachallett has joined #ruby
lw has quit [Quit: s]
mansi has joined #ruby
<rails426> apeiros thanks <3
Advocation has quit [Quit: Advocation]
LastWhisper has joined #ruby
gja has joined #ruby
jlast has joined #ruby
plexus_ has joined #ruby
dkamioka has quit [Ping timeout: 272 seconds]
nhhagen has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
mansi has quit [Ping timeout: 244 seconds]
gja has quit [Client Quit]
<certainty> apeiros: ah nice. my version did not use public_send. I keep forgetting this
geopet has joined #ruby
rickruby has joined #ruby
m00nlight_ has quit [Quit: Konversation terminated!]
s2013 has joined #ruby
browndawg has joined #ruby
pigzzcanfly has joined #ruby
browndawg has quit [Max SendQ exceeded]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
doodlehaus has joined #ruby
<rails426> apeiros I went with https://gist.github.com/wpp/9230672
<rails426> (because I'm not suppossed to change any return values)
kate_r has joined #ruby
dkamioka has joined #ruby
Solnse has joined #ruby
<rails426> apeiros but thanks again :)
<apeiros> I still wish they had changed the behavior of send. yes, it'd have broken certain code. but that's in this case actually good.
jrist_ has quit [Excess Flood]
jrist_ has joined #ruby
hfp`away has quit [Ping timeout: 245 seconds]
<certainty> it's an odd api. If there was an error return the raw result otherwise return the parsed json data
jlebrech has quit [Write error: Broken pipe]
browndawg has joined #ruby
jlebrech has joined #ruby
rickruby has quit [Ping timeout: 272 seconds]
<certainty> this way you're hiding errors (potentially)
<apeiros> rails426: my code returns exactly the same as yours
phat4life has joined #ruby
<apeiros> well, as your first code. not sure about the new gist (didn't check)
mansi has joined #ruby
s2013 has quit [Client Quit]
<rails426> not if the json parse throws an error
<apeiros> now I checked. your new code returns different values than your old code.
<apeiros> so if you're not supposed to change any return values, then you just did the wrong thing.
axl_ has joined #ruby
srji_ has quit [Quit: leaving]
<apeiros> I agree with certainty, that it is an odd API.
maroloccio has joined #ruby
srji has joined #ruby
Advocation has joined #ruby
<apeiros> returning instead of reraising is a bad idea IMO and a smell.
<rails426> certainty I have mentioned that as well.
pigzzcanfly has quit [Ping timeout: 272 seconds]
hfp`away has joined #ruby
<rails426> thanks for all you suggestions! I will certainly mention them
gja has quit [Quit: This computer has gone to sleep]
yasushi has joined #ruby
<rails426> certainty which return values have changed? I don't see it
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
interactionjaxsn has joined #ruby
Es0teric has joined #ruby
kevind has joined #ruby
sdouglass has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
blackmesa has joined #ruby
postmodern has quit [Quit: Leaving]
ctp has quit [Quit: Linkinus - http://linkinus.com]
bean has joined #ruby
v0n has joined #ruby
ctp has joined #ruby
thomasxie has quit [Quit: Leaving.]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
andy__ has joined #ruby
tagrudev has quit [Remote host closed the connection]
Gspot has joined #ruby
xerox357 has joined #ruby
Azulinho has joined #ruby
rails426 has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
sambao21 has joined #ruby
Gspot has left #ruby [#ruby]
mengu has quit []
dx7 has quit [Ping timeout: 246 seconds]
AlexRussia has quit [Remote host closed the connection]
koell has joined #ruby
yfeldblum has joined #ruby
lw has joined #ruby
_bart has quit [Remote host closed the connection]
AlexRussia has joined #ruby
matchaw has joined #ruby
rails426 has joined #ruby
baroquebobcat has joined #ruby
Es0teric has quit [Remote host closed the connection]
rippa has joined #ruby
browndawg1 has joined #ruby
jprovazn_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
gja has joined #ruby
browndawg has quit [Read error: Connection timed out]
ndrei has quit [Ping timeout: 272 seconds]
rayners has joined #ruby
jprovazn_ has quit [Client Quit]
jprovazn has quit [Ping timeout: 246 seconds]
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matchaw has quit [Ping timeout: 244 seconds]
end_guy has quit [Ping timeout: 240 seconds]
pigzzcanfly has joined #ruby
ggg has quit [Ping timeout: 245 seconds]
<certainty> rails426: i think you wanted to ask apeiros
niftyn8 has joined #ruby
j416 has joined #ruby
jonr22 has joined #ruby
<j416> o/ is the source of Net::HTTP available somewhere? Perferably 1.9.3. The documentation is rather lacking.
SCommette has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<apeiros> j416: github.com/ruby/ruby
<apeiros> j416: also obviously on your machine…
tkuchiki has joined #ruby
<j416> ah, just found. thanks.
bean has quit [Remote host closed the connection]
tommyvyo__ has joined #ruby
elimS has quit [Remote host closed the connection]
Es0teric has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
lkba has joined #ruby
tkuchiki_ has joined #ruby
acrussell has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
freezey has joined #ruby
shime has joined #ruby
andy__ has quit [Remote host closed the connection]
figgleberry has joined #ruby
tonni has joined #ruby
alexju has joined #ruby
dseitz has joined #ruby
<j416> is there a way to pass an optional block (not specified as argument but checked with block_given?) as an argument to another method taking a block?
tkuchiki has quit [Remote host closed the connection]
<j416> I want to do something like: File.open(path, 'rb', &block) if block_given?
<j416> obviously there is no &block
NovapaX has joined #ruby
<j416> do I have to: File.open(path, 'rb') { |io| yield io } if block_given?
<shevy> in these moments I always remember how apeiros wanted to have multiple blocks passed to the same method :-)
<j416> ?
niharvey has quit [Remote host closed the connection]
<j416> shevy: o_O
wald0_ has joined #ruby
incade_ has joined #ruby
<shevy> j416 when he was young and energetic he even worked on a new programming language
abstractj is now known as abstractj_
<shevy> but all of that changed when he got into rails :-(
ptierno has joined #ruby
ahawkins_ has joined #ruby
<j416> eek
havenwood has joined #ruby
abstractj_ is now known as abstractj
<shevy> I have not tested, but given that you can convert blocks into objects, what you wanted above should be possible
incade has quit [Write error: Broken pipe]
mikee has quit [Write error: Broken pipe]
wald0 has quit [Write error: Broken pipe]
jcs222 has quit [Write error: Connection reset by peer]
<shevy> you can yield-assign it to a variable after all
_bart has joined #ruby
griffindy has joined #ruby
gl- has quit [Remote host closed the connection]
ahawkins has quit [Remote host closed the connection]
<j416> I was thinking maybe it is stored in some magic variable
destructure has quit [Write error: Broken pipe]
Guest14870 has quit [Remote host closed the connection]
<dorei> j416: i think u've got to specify it to the definition of the method, aint sure
<norm> is there a way to peek at upcoming bytes on an IO without actually reading them? that is, without advancing the pointer?
<dorei> def some_method(args, &block)
mikee has joined #ruby
noopq has quit [Ping timeout: 267 seconds]
lachesis has left #ruby ["Leaving"]
<j416> dorei: alright, thanks
<dorei> norm: i'm pretty sure u can, let me check
<norm> dorei: i could have sworn there was a .peek(), but i don't see it anywhere
ndrei has joined #ruby
<shevy> isn't it seek()?
Xeago has quit [Remote host closed the connection]
<j416> seek is like pos
<dorei> norm: i think i've seen something low level that allows you to do it with sockets ( C / linux )
<j416> isn't it
jrist_ is now known as jrist
caveat- has quit [Ping timeout: 256 seconds]
<dorei> MSG_PEEK
yarou has quit [Remote host closed the connection]
<apeiros> j416: `def foo(&block); something(&block); end` just works
phat4life has left #ruby [#ruby]
snath has quit [Ping timeout: 244 seconds]
<apeiros> j416: it will only pass a block on if it got a block
<shevy> norm, f = File.new("testfile"); f.pos = 17; f.gets #=> "This is line two\n"
destructure has joined #ruby
<shevy> hmm
end_guy has joined #ruby
Xeago has joined #ruby
<norm> shevy: i think (correct me if i'm wrong) that won't work on all IOs. like a tcp socket
<shevy> norm you actually have to read them to know what is coming ahead, or?
<j416> you could always make it, just read then seek back
caveat- has joined #ruby
andy__ has joined #ruby
<shevy> yeah
gl- has joined #ruby
<shevy> and call it peek() :-)
<j416> apeiros: oh, I'll have to experiment with that. I thought setting it as an argument meant it always needed to be used as block.
pigzzcanfly has quit [Remote host closed the connection]
kzrl has joined #ruby
Kricir_ has joined #ruby
<apeiros> j416: no, &block in the method def does not mean the block is required
<shevy> just like mike tyson Peek-a-Boo technique
<j416> (check if you _can_ seek back first)
<apeiros> there's actually no way to require a block via method def
<j416> apeiros: cool, thanks
nhhagen has joined #ruby
koell has quit [Ping timeout: 244 seconds]
tesuji has quit [Ping timeout: 244 seconds]
<j416> nice, it works
<j416> apeiros++
enebo has joined #ruby
dweeb_ has quit [Quit: Computer has gone to sleep.]
lw has quit [Quit: s]
npearson has quit [Remote host closed the connection]
shay- has joined #ruby
Kricir has quit [Ping timeout: 244 seconds]
kayamm has joined #ruby
npearson has joined #ruby
npearson has quit [Remote host closed the connection]
npearson has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
wald0_ has quit [Quit: Lost terminal]
<shay-> hey, How can I add one string to an arrayx and then iterate over the new array on one line? like: array << string.each do | element |
nfk is now known as Kamijou_Touma
<j416> shay-: (array << string)
Kamijou_Touma is now known as nfk
<shay-> j416: alright thank you very much so (array << string).each ... right?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<j416> shay-: right
<shevy> hehe
<apeiros> shay-: stop trying to put everything into a single line
<shevy> j416 did not modify your code much at all, did he ;)
<apeiros> seriously, it's stupid
sk87 has joined #ruby
mary5030 has joined #ruby
* apeiros off, commute
<shevy> when apieros says so it is true!
kpshek has quit []
apeiros has quit []
<j416> shay-: as you see, << returns the array with the value appended, so you can use it just like that. Parentheses is just to get the right grouping.
yarou has joined #ruby
<j416> yes, I also agree with God on this
<j416> separate lines look better
sailias has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
niharvey has joined #ruby
mary5030 has joined #ruby
<NovapaX> wel... depends on context and function. If I need to choose I just read the line. If it doesn't make sense in my mind I rewrite it
<shevy> they are easier to debug
ndrei has quit [Ping timeout: 272 seconds]
<shevy> but when there are no bugs, it's ok to be terse!
<NovapaX> Same with if not / unless
sailias has joined #ruby
pigzzcanfly has joined #ruby
<shevy> given that I do not make bugs, my ruby code is all on one line
<shevy> NovapaX do you use unless?
<NovapaX> haha... that would be a nice challenge
kpshek has joined #ruby
lw has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sdouglass has quit [Remote host closed the connection]
jprovazn has joined #ruby
stringoO has joined #ruby
BWStearns has joined #ruby
freezey has quit [Remote host closed the connection]
<NovapaX> yes i do:
_maes_ has joined #ruby
CaptainJet has joined #ruby
JasmeetQA has joined #ruby
<NovapaX> unless food.is_good?
<NovapaX> call pizzeria
<NovapaX> trash food
<NovapaX> end
<NovapaX> hmm... thought I could use line-breaks in a msg....
depesz has left #ruby ["WeeChat 0.4.2"]
[ROOT]XxNeoLiTHi has joined #ruby
x81robert has joined #ruby
<NovapaX> hmm.. bad example I might use if not here
<[ROOT]XxNeoLiTHi> hi all, anyone here using vagrant
x81robert has left #ruby [#ruby]
npearson has quit [Ping timeout: 240 seconds]
<[ROOT]XxNeoLiTHi> i have a vagrant config with more than one provider and I tried setting the config.ssh settings inside one of the provider blocks but noticed that it took effect for the other provider as well even though I didnt want it to. How can I check the current provider being used before setting the value?
LekeFly has joined #ruby
shay- has left #ruby [#ruby]
gja has quit [Quit: This computer has gone to sleep]
LekeFly has quit [Client Quit]
bean has joined #ruby
npearson has joined #ruby
sailias has quit [Quit: Leaving.]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gaussblurinc has quit [Quit: Leaving.]
davidcollom is now known as davidcollom_afk
mikepack has joined #ruby
lmickh has joined #ruby
mikepack has quit [Remote host closed the connection]
sk87 has joined #ruby
MattStratton has joined #ruby
super_g has joined #ruby
zachallett has quit [Remote host closed the connection]
mikepack has joined #ruby
crus has quit [Read error: Connection reset by peer]
pietr0 has quit [Quit: pietr0]
apeiros has joined #ruby
WormDrink has quit [Ping timeout: 252 seconds]
rurban_ has quit [Ping timeout: 240 seconds]
apeiros has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
sambao21 has joined #ruby
Xeago has joined #ruby
zachallett has joined #ruby
<shevy> hmm
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has joined #ruby
<shevy> do modern consoles output R,G,B colours? like kde or gnome-terminal
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> it's not much fun to keep on using ansi colours alone :(
mary5030 has quit [Remote host closed the connection]
xerox357 has quit [Quit: Leaving...]
<j416> doubt
<j416> but not sure
<j416> 256 colours at least.
<j416> @ shevy
jeregrine has joined #ruby
cherrypeel has joined #ruby
rails426 has quit []
cherrypeel has left #ruby [#ruby]
rurban_ has joined #ruby
shime has quit [Ping timeout: 244 seconds]
kaliya has joined #ruby
m1lt0n has quit [Quit: leaving]
<shevy> hmm yeah
<shevy> 256 colour shades of pink
jonr22 has quit [Remote host closed the connection]
<shevy> it works for osx users?
<shevy> I think they can do fancy unicode symbols in their terminal at least
<j416> that depends on the font, not the colours
<j416> (yes we can, btw @ fancy unicode)
guilleiguaran has joined #ruby
<wuest> shevy: konsole supports 24 bit colour, I believe.
<j416> whoa.
<j416> I'm using iTerm2 on OS X, that supports 246 at least
jtdowney has quit []
kirun has quit [Ping timeout: 272 seconds]
budrose has joined #ruby
jtdowney has joined #ruby
sriehl has joined #ruby
snath has joined #ruby
xaq has joined #ruby
<shevy> wuest hmm
xerox357 has joined #ruby
rurban_ has quit [Ping timeout: 240 seconds]
<shevy> wuest ok, logically that should mean... I could output all those colours, from a ruby script, onto the kde konsole terminal and it *should*, in principle, work, right?
xaq_ has joined #ruby
lw has quit [Quit: s]
ndrei has joined #ruby
kevind_ has joined #ruby
Advocation has quit [Quit: Advocation]
<wuest> shevy: shevy should.
shiftins has joined #ruby
yfeldblum has joined #ruby
heftig has quit [Quit: Quitting]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
chipotle_ has joined #ruby
<wuest> shevy: Yup, works
lw has joined #ruby
xaq has quit [Ping timeout: 244 seconds]
kevind has quit [Ping timeout: 244 seconds]
<wuest> "\e[38;2;#{r};#{g};#{b}m"
kevind_ is now known as kevind
lw has quit [Client Quit]
<xibalba> what does :: signify? when you've got ::MY_VAR
chipotle has quit [Read error: Connection reset by peer]
shime has joined #ruby
<j416> wuest: that's crazy.
<j416> cool.
mary5030 has joined #ruby
* j416 afk o/
davidcollom_afk is now known as davidcollom
mehlah has quit [Quit: Leaving...]
LadyRainicorn has joined #ruby
browndawg1 has quit [Read error: Connection timed out]
brucele_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy> wow
<shevy> wuest, you are my new hero!
zachalle_ has joined #ruby
zachallett has quit [Read error: Connection reset by peer]
<shevy> \o/
Advocation has joined #ruby
<shevy> death to ansi!
<shevy> long live a million shades of pink
<wuest> shevy: :)
<LadyRainicorn> What did wuest do?
browndawg has joined #ruby
<shevy> LadyRainicorn he gave me RGB colours for KDE konsole!
<LadyRainicorn> ooh
browndawg has quit [Max SendQ exceeded]
no0code has joined #ruby
<LadyRainicorn> Yay pink!
* LadyRainicorn color rays the room pink.
<wuest> I prefer to approximate colors from 24b to 214color (ANSI), personally -- but fewer shades of pink in such a case.
dx7 has joined #ruby
browndawg has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
<shevy> hehe
browndawg has quit [Max SendQ exceeded]
<shevy> happiness rays
<wuest> (https://github.com/cwuest/console-glitter/blob/master/lib/console-glitter/ansi.rb#L105-121 for my aproximation -- this works on every term emulator rather than just konsole :))
browndawg has joined #ruby
<shevy> wow
<wuest> You'll also notice your favorite color given as an example, shevy ;)
mehlah has joined #ruby
<shevy> you actually have written a library
yasushi has quit [Remote host closed the connection]
<wuest> Yeah, I do enough on the command line that it was warranted.
<shevy> hehe
nhhagen has quit [Ping timeout: 264 seconds]
FL1SK has joined #ruby
michael_lee has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
leonidlm has quit [Ping timeout: 244 seconds]
srji has quit [Quit: Lost terminal]
sikor_sxe has quit [Ping timeout: 272 seconds]
s2013 has joined #ruby
nfk has joined #ruby
endless_walrus has quit [Quit: Textual IRC Client: www.textualapp.com]
poulson has quit [Ping timeout: 264 seconds]
chipotle_ has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
chipotle has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
npearson has quit [Remote host closed the connection]
_maes_ has joined #ruby
npearson has joined #ruby
_Andres has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Faris has quit [Ping timeout: 272 seconds]
lyanchih_ has quit [Ping timeout: 272 seconds]
evenix has joined #ruby
existensil has quit [Quit: leaving]
mary5030 has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
<s2013> so if i have time range arrays in this format: ["02:15", "04:30"], ["05:15", "06:30"] etc.. and i need to get number of seconds that the range is between for each hour.. ie 2-3: 1800, 3-4: 3600, 4-5: 900 etc..
cina has joined #ruby
bal has quit [Write error: Broken pipe]
poulson has joined #ruby
evenix has quit [Remote host closed the connection]
mary5030 has joined #ruby
brucele_ has quit [Ping timeout: 240 seconds]
evenix has joined #ruby
<s2013> how would i best approach it? it hought about converting them into something like ["02:15", "03:00", "04:00", "04:30"] and then get the time difference for each of those segments and put them in a hash
<s2013> can someone suggest a better approach?
chipotle has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
nfk has joined #ruby
jkamenik has joined #ruby
baroquebobcat has joined #ruby
<wuest> s2013: are you getting 2-tuples, or n-tuples? What do you want the output to look like? Is your format guaranteed to always be "HH:MM"?
<s2013> yes wuest
PLejeck has quit [Changing host]
PLejeck has joined #ruby
PLejeck is now known as nuck
<s2013> its always going to be HH:MM and i have a method that gets the time difference between two "HH:MM"
Xeago has quit [Remote host closed the connection]
<s2013> its always going to be arrays of ["HH:MM", "HH:MM"]
<wuest> Then it sounds like a solved problem.
<s2013> im thinking if there is a more elegant solution
<s2013> or wondering rather
bigkevmcd has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
workmad3 has joined #ruby
sk87 has joined #ruby
apeiros has joined #ruby
jtdowney has quit []
jmau5 has joined #ruby
chipotle has joined #ruby
jtdowney has joined #ruby
shiftins has quit [Ping timeout: 246 seconds]
jtdowney has quit [Client Quit]
elcontrastador has joined #ruby
dguettler has joined #ruby
jtdowney has joined #ruby
ikaros has quit [Quit: Ex-Chat]
evenix_ has joined #ruby
<Hanmac> s2013:
<Hanmac> >> require "time";["02:15", "04:30"].map {|s| Time.parse(s) }.each_cons(2).map{|a,b| b - a}
<eval-in___> Hanmac => [8100.0] (https://eval.in/105953)
aganov has quit [Remote host closed the connection]
stryek has quit [Ping timeout: 246 seconds]
evenix_ has quit [Remote host closed the connection]
pietr0 has joined #ruby
stryek has joined #ruby
evenix_ has joined #ruby
<certainty> .map(&Time.method(:parse))
adamnbowen has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 244 seconds]
<s2013> Hanmac, im not worried about the time difference between 02:15 and 04:30
<s2013> my problem is i need to segment it by the hour
<havenwood> s2013: huh?
npearson has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 272 seconds]
Xuisce has joined #ruby
<havenwood> s2013: example desired output given your sample input?
npearson has joined #ruby
<s2013> yes i posted it. one sec let me paste it
zeeraw has joined #ruby
<s2013> . and i need to get number of seconds that the range is between for each hour.. ie 2-3: 1800, 3-4: 3600, 4-5: 900 etc..
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<havenwood> s2013: so you don't care about the minutes?
<s2013> i do
<s2013> so between 2:15 - 3 is 2700s
plexus_ has quit [Ping timeout: 246 seconds]
<s2013> between 3 and 4 is 3600s
<s2013> between 4 and 4:15 is 900s
<s2013> does that make sense?
evenix_ has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood> s2013: no
<havenwood> s2013: given this input: ["02:15", "04:30", "06:30"]
<s2013> its fine. anyways ill just go along with how i approached it
IceDragon has quit [Ping timeout: 240 seconds]
cephalostrum has quit [Max SendQ exceeded]
cephalostrum has joined #ruby
<s2013> input is going to be always ["HH:MM", "HH:MM"]
Thanatermesis has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
IceDragon has joined #ruby
camilasa_ has quit []
mavcunha has quit [Quit: Computer has gone to sleep.]
_tpavel has quit [Quit: Leaving]
<havenwood> s2013: given that input, output would be?: ['02:15-04:30' => 8100, '04:30-0630' => 7200]
davidcollom is now known as davidcollom_
robbyoconnor has joined #ruby
<havenwood> s2013: or something else?
<s2013> no
* havenwood needs more coffee.
msmith_ has joined #ruby
<havenwood> s2013: what would it be? i'm curious now. ;P
<s2013> given input ["02:15", "4:30"] output would be 2: 2700, 3: 3600, 4: 1800
<s2013> basically you are segmenting out how long it was occupied for by each hour
srji has joined #ruby
<s2013> ["02:15", "04:30"] is a time range a customer was active in our app for example
<s2013> so we need to have an hourly breakdown
existensil has joined #ruby
thumpba has joined #ruby
bhaak has quit [Ping timeout: 252 seconds]
m8 has joined #ruby
bhaak has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
jonah_k has joined #ruby
beond has joined #ruby
Hobogrammer has joined #ruby
forced_request has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
rudisimo has quit [Remote host closed the connection]
gja has quit [Client Quit]
rudisimo has joined #ruby
vpretzel_ has joined #ruby
<Hanmac> s2013:
<Hanmac> >> require "time";["02:15", "04:30", "06:30"].map(&Time.method(:parse)).each_cons(2).map {|a,b| h={}; i = 0; while (a + i) < b; i += (h[(a + i).hour]=(60 - (a+i).min) * 60);end; h[b.hour] = b.min * 60; h }
<eval-in___> Hanmac => [{2=>2700, 3=>3600, 4=>1800}, {4=>1800, 5=>3600, 6=>1800}] (https://eval.in/105961)
gja has joined #ruby
gja has joined #ruby
<Hanmac> beat that shevy! ;D
<havenwood> Hanmac: dangit you beat me again!
ephemerian has left #ruby [#ruby]
* havenwood sulks
<shevy> I beat awful code with elegance
<s2013> i always confuse both of you
soheil has joined #ruby
<shevy> havenwood and Hanmac?
milhite has joined #ruby
agarie has joined #ruby
<s2013> yes
<shevy> that is easy
<shevy> one is on drugs
nfk has quit [Changing host]
nfk has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
milhite has quit [Client Quit]
moted has joined #ruby
sambao21 has joined #ruby
<Hanmac> shevy: and the other is Hanmac ;P
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<s2013> >> require "time";["02:15", "04:30"].map(&Time.method(:parse)).each_cons(2).map {|a,b| h={}; i = 0; while (a + i) < b; i += (h[(a + i).hour]=(60 - (a+i).min) * 60);end; h[b.hour] = b.min * 60; h }
<eval-in___> s2013 => [{2=>2700, 3=>3600, 4=>1800}] (https://eval.in/105965)
<s2013> nice
<s2013> im not even sure wth is going on there but thats very impressive
jmau5_ has joined #ruby
zeeraw has joined #ruby
Voodoofish430 has joined #ruby
rudisimo has quit [Ping timeout: 272 seconds]
vpretzel has quit [Ping timeout: 264 seconds]
kirun has joined #ruby
<havenwood> s2013: and it can take more than two times ;)
<havenwood> s2013: ["02:15", "04:30", "06:45"] #=> [{2=>2700, 3=>3600, 4=>1800}, {4=>1800, 5=>3600, 6=>2700}]
marr has joined #ruby
<havenwood> s2013: not that your usecase requires that, but nice
gemmy has joined #ruby
<s2013> yeah tahts very nice
<s2013> im tryign to break it down and see wth you did
jmau5 has quit [Ping timeout: 240 seconds]
<havenwood> /s/havenwood/Hanmac
mocfive has joined #ruby
<havenwood> shevy: Ruby 2.1.1!
BlakeRG has joined #ruby
<shevy> well
<s2013> but anyways i was more curiosu about how youd approach it, rather than the code itself. so thats what im trying to figure out
<shevy> doesn't matter as long as I can not use non-utf for yaml!
[ROOT]XxNeoLiTHi has quit [Quit: Leaving.]
<havenwood> shevy: sure!
<havenwood> shevy: is the yaml related to your editor? was curious what the tie in is?
blaxter_ has quit [Quit: foo]
<shevy> yeah
cina has quit [Ping timeout: 240 seconds]
<havenwood> shevy: could you just convert the yaml to utf-8, or editor balks?
<b00stfr3ak> How do you guys seperate code? I know library code goes in a lib folder but what about other types of files?
<shevy> the editor displays german umlauts incorrectly when I do so havenwood
timonv has quit [Remote host closed the connection]
<havenwood> b00stfr3ak: the filesystem should mirror the namespace
<havenwood> shevy: ahhh
browndawg has quit [Quit: Leaving.]
<havenwood> how odd
blaxter_ has joined #ruby
gomix has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
<shevy> pwdlöinya: pwdlinyam
<havenwood> b00stfr3ak: so `RootNamespace::Something#this` would be in `/lib/root_namespace/something/this.rb`
<shevy> pwdlöinya: pwdlinyam
<shevy> do these two appear the same for you?
Advocation has quit [Quit: Advocation]
redlines has quit [Read error: Connection reset by peer]
<b00stfr3ak> havenwood: ahh ok thanks
glaksmono has joined #ruby
<havenwood> shevy: the left and right now, the above and below yes
<havenwood> /s/now/no
<BlakeRG> Hey all, this is kind of off topic but i need to give a presentation today. Is there anything simple/free that can do network topology stuff as well?
<shevy> hmmmm
burlyscudd1 has joined #ruby
redlines has joined #ruby
burlyscudd1 has quit [Client Quit]
zeade has joined #ruby
saarinen has joined #ruby
razrunelord has joined #ruby
OdNairy has joined #ruby
<shevy> I just tried with vim as well
<shevy> the display is now pwdlöin rather than ö inside
<havenwood> b00stfr3ak: the `this.rb` of course doesn't have to be per-method, but good to have folders mirror the module/class namespaces
<shevy> :set fileencoding=utf-8
nfk has quit [Quit: yawn]
<IceDragon> shevy: QUICK, Tell me whats new in Ruby 2.1.1 ! ;_; I haven't been ruby-ing lately
nfk has joined #ruby
<havenwood> pop quiz!
einarj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<shevy> IceDragon no idea, I dont follow it as I cant upgrade
mikecmpbll has quit [Ping timeout: 272 seconds]
yacks has quit [Quit: Leaving]
<redlines> Was Ruby 1.9 > Ruby 2 a huge change?
<IceDragon> say wut
mmoretti has joined #ruby
retnuh has joined #ruby
<shevy> redlines sure
vpretzel_ has quit [Quit: Adios!]
<havenwood> redlines: an incremental chance, not breaking like 1.8 to 1.9
<redlines> RailsInstaller still includes 1.9.3
<IceDragon> performance wise, probably :O nothing compared to 1.8.x to 1.9
<havenwood> redlines: think of 1.9 as the release candidate for 2.0 :P
mmoretti has quit [Remote host closed the connection]
<shevy> redlines code that would perfectly work on 1.9 won't work in 2.0 - if you use invalid yaml files for instance
<havenwood> shevy: hehe
<redlines> ah I see
Advocation has joined #ruby
<RubyPanther> Why some people hate Ruby 1.9.1: https://gist.github.com/rubypanther/7e1eccfa8b0747c4cc49
<shevy> there are some minor changes in warnings which can be annoying
nvrch has quit [Quit: nvrch]
<havenwood> RubyPanther: 1.9.1 was way broken!
Faris has joined #ruby
<havenwood> RubyPanther: but it is past end-of-life ;)
<havenwood> 1.9.2 is past end of life as well.
<shevy> I never saw someone require such crazy things before
<havenwood> 1.9.3 lives on.
<RubyPanther> gems probably have to support it for awhile yet
<shevy> require 'rubygems/user_interaction'
<havenwood> RubyPanther: aye
TMM has quit [Quit: Ex-Chat]
<havenwood> RubyPanther: but hopefully not much longer, they're working hard to put it down
<RubyPanther> shevy: That is advanced stuff lol
<shevy> hmm
<RubyPanther> I cribbed my extconf largely from google's perftools :o
<shevy> havenwood I have an ally here
<shevy> havenwood debian
<shevy> they will probably maintain 1.9.3 for the next 10 years to come
gemmy has quit [Ping timeout: 240 seconds]
<shevy> for ruby gem should I use
<shevy> USAGE.rdoc
<shevy> or
<shevy> USAGE.md
<shevy> quick!
Matriks has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<LadyRainicorn> md
<LadyRainicorn> rdoc is too long
pel_daniel has joined #ruby
<RubyPanther> Are you sure you want a usage file? why not just README?
<BlakeRG> thanks for the suggestions everyone!
cina has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
sski has quit [Remote host closed the connection]
shiftins has joined #ruby
ctp_ has joined #ruby
ctp_ has quit [Client Quit]
<havenwood> BlakeRG: JointJS was the best i could think of, so I didn't bother piping in. :O
<havenwood> BlakeRG: you mean for visualizing, right?
<BlakeRG> havenwood: yes
gnephiak has quit [Quit: Konversation terminated!]
rootshift_ has joined #ruby
<havenwood> shevy: so true
<havenwood> shevy: they'll maintain security patches long after it's no longer served up by ruby-lang.org
rurban has joined #ruby
mattmcclure has joined #ruby
<havenwood> BlakeRG: JointJS is my vote but i have little experience in that arena. Curious to hear what you go with.
greenarrow has quit [Quit: 500]
ndrei has quit [Ping timeout: 240 seconds]
ctp has quit [Ping timeout: 272 seconds]
<havenwood> IceDragon: you mean new since 2.1.0?
banister has quit [Ping timeout: 244 seconds]
<havenwood> IceDragon: bug fixes!
<shevy> RubyPanther dunno, I hate writing readmes that are longer than the class
<IceDragon> Yup
<IceDragon> :O
<IceDragon> No new features?
<havenwood> IceDragon: Important ones. 2.1.1 is now production ready.
<IceDragon> no big performance boosts?
<RubyPanther> Documentation should always be longer than the class
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bricker`LA has quit [Remote host closed the connection]
<shevy> IceDragon it got slower
Hobogrammer_ has joined #ruby
<RubyPanther> 1.9 didn't have COWs
claymore has quit [Quit: Leaving]
<IceDragon> o___e
<IceDragon> I think I'll stick with 2.1 then
<IceDragon> It works fine for me
<havenwood> IceDragon: There were a ton of issues with 2.1.0, and 2.1.1 fixes them.
<IceDragon> my version: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
eVRiAL has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BlakeRG has left #ruby [#ruby]
<existensil> that's so old now IceDragon. 2.1.1 dropped.
<existensil> ;-)
<shevy> question:
<shevy> #to_s should return a string right?
rudisimo has joined #ruby
<IceDragon> yup
<havenwood> IceDragon: ^ those are all fixed
<IceDragon> unless someone overwrote it
<IceDragon> O:
<IceDragon> Holy
<IceDragon> shit
<IceDragon> thats a lot of breakage
<IceDragon> Such Fix, Much Breakage, Wow
<havenwood> IceDragon: 2.1.1 is important, since it allows 2.1 in production without patches. :)
<IceDragon> I'll upgrade later, I need to tackle a friend for the PKGBUILD file
pigzzcanfly has quit [Remote host closed the connection]
<IceDragon> > Arch
Hobogrammer has quit [Ping timeout: 264 seconds]
gemmy has joined #ruby
timonv has joined #ruby
doritostains has quit [Quit: Linkinus - http://linkinus.com]
banister has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Solnse has quit [Quit: Leaving.]
rickruby has joined #ruby
rickruby has quit [Remote host closed the connection]
nanoyak has joined #ruby
rickruby has joined #ruby
ndrei has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
claymore has joined #ruby
pranny has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
Xiti has quit [Ping timeout: 240 seconds]
rickruby_ has joined #ruby
Xiti` has joined #ruby
evenix has joined #ruby
Vovko has joined #ruby
ixti has quit [Quit: WeeChat 0.4.3]
ixti has joined #ruby
nanoyak_ has joined #ruby
Hobogrammer has joined #ruby
nanoyak has quit [Ping timeout: 264 seconds]
xerox357_ has joined #ruby
rickruby_ has quit [Client Quit]
stryek has quit [Ping timeout: 295 seconds]
danshult_ is now known as danshultz
dbf has joined #ruby
yekta has joined #ruby
Xiti` has quit [Quit: Leaving]
mikecmpbll has joined #ruby
apeiros has joined #ruby
Hobogrammer_ has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
beond has quit [Ping timeout: 260 seconds]
ReachingFarr has joined #ruby
macclearich has joined #ruby
<dbf> i am doing a little poll for my blog, would you mind voting for your favorite RDBMS? https://docs.google.com/forms/d/1au2FKsXLQl7xb59K7jvqyzXoxRru5MFerTgnr13r-9M/viewform
bleak has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
subbyyy has joined #ruby
obs has quit [Quit: Konversation terminated!]
xerox357 has quit [Ping timeout: 246 seconds]
xerox357_ has quit [Remote host closed the connection]
<ReachingFarr> I accidentally pushed a bad version of a gem, so I yanked it. Now, when I try and push the correct version I get `Repushing of gem versions is not allowed.` What am I doing wrong?
tolstoi has quit [Ping timeout: 245 seconds]
Hobogrammer_ has joined #ruby
tolstoi has joined #ruby
tolstoi has quit [Changing host]
tolstoi has joined #ruby
wiku5_ has joined #ruby
centrx has joined #ruby
dbf has quit [Quit: Page closed]
<agarie> You'll probably need to push a newer version
xerox357 has joined #ruby
klaut has quit [Remote host closed the connection]
koell has joined #ruby
kaliya has quit [Quit: Lost terminal]
BadProphet has joined #ruby
Finlay has joined #ruby
Megtastique has quit []
Vivekananda has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 264 seconds]
<Finlay> How would I get the path of the current ruby file? Is there a constant or something?
<jhass> yep, __FILE__
<shevy> Finlay yeah __FILE__
<Finlay> ah, thank you very much
<jhass> since 2.0 there's also __dir__ for the directory of the current file
<shevy> ReachingFarr hmm interesting
<havenwood> Finlay: or __dir__ for the containing directory
<havenwood> jhass: beat me to it ;)
whomp has joined #ruby
jonah_k has quit [Remote host closed the connection]
<shevy> ReachingFarr anyway, just increment the version by +1 minor. if you can't or don't want, ask the guys on #rubygems
<Finlay> like PHP then. I should have guessed/been able to find that. I'm in puppet and was searching the puppet docs to no avail. Should have expanded my search :)
Hanmac1 has joined #ruby
<shevy> ack
<shevy> PHP!
<ReachingFarr> shevy: Done and done.
<ReachingFarr> shevy: Thanks
<shevy> \o/
<Finlay> shhhh
<shevy> the rubygems.org policy is weird
<shevy> they keep yanked gems
alexherbo2 has joined #ruby
<shevy> I hate that
<havenwood> shevy: for the sake of dependency managers
<havenwood> shevy: yeah, you just need to contact a human to do a full-blown removal
<havenwood> shevy: for now..
VTLob has joined #ruby
<shevy> havenwood what is there to manage when I want it gone? it is my gem, not some other dude's gem
xerox357 has quit [Remote host closed the connection]
vindictive27 has quit [Ping timeout: 272 seconds]
burlyscudd1 has joined #ruby
enebo has quit [Ping timeout: 246 seconds]
burlyscudd1 has quit [Client Quit]
<shevy> it even is displayed on my gem page: https://rubygems.org/gems/unified_colours
xerox357 has joined #ruby
<havenwood> shevy: but if other gems depend on it, things break, if a popular gem many, many things break
pigzzcanfly has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
Azulinho has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<shevy> havenwood ok so basically the system forces me to keep it and list it despite me explicitely yanking it and removing it
<havenwood> shevy: yes :P
<shevy> if someone else wants to take that name, that is fine - don't bother me with it anymore
xerox357 has joined #ruby
gemmy has quit [Quit: leaving]
blaxter_ has quit [Quit: foo]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<havenwood> shevy: at least the RubyGems team is responsive, has someone on call, and will promptly remove upon request
<shevy> they could at least not display it under the listing of gems
<havenwood> shevy: but yeah, a better solution is needed and debate is underway
burlyscudd1 has joined #ruby
<shevy> or
burlyscudd1 has quit [Client Quit]
<shevy> they could take ownership actually
<shevy> something like a meta account "rubygems.org orphans"
<banister> shevy is this u https://github.com/shevegen
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<havenwood> doxed!
<shevy> or perhaps make a threshold
stryek has joined #ruby
burlyscudd1 has joined #ruby
<shevy> like only do it for gems with at least 5000 downloads or something like that
burlyscudd1 has quit [Client Quit]
<shevy> havenwood I am full of useless ideas :P
hopkin has joined #ruby
<havenwood> shevy: that isn't unreasonable
ndrei has joined #ruby
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<jhass> I think allowing repushing the same version within 10 to 20 minutes of the last push would be sufficient
<shevy> at work I have to use on one server ruby 1.8.7 and a very old gem version
<shevy> it's funny when you want to use some gem <submodule> and it is not working
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<shevy> and I keep forgetting doing require 'rubygems'
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<shevy> jhass probably, I guess that would have solved ReachingFarr's problem
Matriks has joined #ruby
Hobogrammer_ has quit [Quit: WeeChat 0.4.3]
marcgg_ has joined #ruby
burlyscudd1 has joined #ruby
jonah_k has joined #ruby
burlyscudd1 has quit [Client Quit]
Hobogrammer has joined #ruby
xerox357 has quit [Remote host closed the connection]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
xerox357 has joined #ruby
burlyscudd1 has joined #ruby
shashin has quit [Quit: shashin]
burlyscudd1 has quit [Client Quit]
carraroj has joined #ruby
Finlay has quit [Ping timeout: 245 seconds]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
sputnik1_ has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<hopkin> Hey guys can someone help me with a parsing/scraping problem? gist:9235187
marcgg has quit [Ping timeout: 246 seconds]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
zeeraw has joined #ruby
burlyscudd1 has joined #ruby
kzrl has quit [Ping timeout: 272 seconds]
burlyscudd1 has quit [Client Quit]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
Kricir_ has quit [Remote host closed the connection]
Faris2 has joined #ruby
xerox357 has quit [Ping timeout: 240 seconds]
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<shevy> i cant click on that url
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<apeiros> because it's not an url :)
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
MattStratton has joined #ruby
aspires has quit []
ferr has joined #ruby
* shevy clicks on hopkin
<centrx> apeiros, Thanks, that guy has been quitting and joining since last night
noopq has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
Faris has quit [Ping timeout: 272 seconds]
<hopkin> its a gist sorry
aspires has joined #ruby
mehlah has quit [Quit: Leaving...]
mansi has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
mansi has joined #ruby
ctp has joined #ruby
<hopkin> I am just hoping someone has already created something before that I can just mod to meet my needs but my google searches have been fruitless
<certainty> apache logs as it seems
pigzzcanfly has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 240 seconds]
<hopkin> yes apache logs using ruby 1.9
Czupa has joined #ruby
<certainty> hopkin: have you looked at https://github.com/weppos/apachelogregex ?
nari has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 240 seconds]
<certainty> bbl
koell has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<shevy> hopkin hmm regex won't suffice?
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<hopkin> Honestly this is my first time doing anything like this beyond normal less and grep from the logs and occasionally awk
_ixti_ has joined #ruby
<hopkin> normally I just less and pipe in grep but these are huge logs so I have to do something different
freezey has quit [Remote host closed the connection]
rails426 has joined #ruby
mehlah has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
ahawkins_ has quit [Remote host closed the connection]
ixti has quit [Read error: Connection reset by peer]
<hopkin> and I figured since I am working on learning Ruby I might try to hack something out with it
Faris2 has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
aspires has quit []
derpdederp has joined #ruby
<shevy> ok
<hopkin> I have to look for 4 urls over a 90 day period and when I do a grep for just the count on 1 url over a 9 day period it takes 20 minutes so that is bad for me.
TMM has joined #ruby
xerox357 has joined #ruby
<shevy> huh
<shevy> grep requires 20 minutes?
<shevy> how huge is that log file
<shevy> hopkin it helps to reduce the problem down to small, solvable components
<shevy> (1) File.readlines to iterate over the file
<shevy> (2) grep
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<shevy> (3) display
<shevy> hmm no
<hopkin> 1259991226 per day
<shevy> not File.readlines
yfeldblum has joined #ruby
mjs2600 has joined #ruby
<shevy> File.foreach
<hopkin> sorry basically 1gb per file
aspires has joined #ruby
<hopkin> 9 days = ~9gb
<shevy> hmm
<hopkin> 90 days is just over 100 gb of logs
<shevy> why does it take your grep 20 minutes
himsin has quit [Quit: himsin]
<hopkin> so I did this less filename | grep -iwc 'url'
npearson has quit [Remote host closed the connection]
<shevy> hopkin ok I guess the first thing you need is to build a regex that works
npearson_ has joined #ruby
<shevy> http://rubular.com/ is helpful for that
<shevy> so you need to provide example input, like any URL
<slash_nick> hopkin: what if you use xargs and grep?
<apeiros> centrx: I had banned him already, but not with added numbers
freezey has joined #ruby
timonv has quit [Remote host closed the connection]
<havenwood> hopkin: for your non-Ruby solution, you could use multiple cores if you got em: cat filename | parallel --pipe grep -iwc 'url'
<shevy> cool
<shevy> what is "parallel"?
<shevy> actually
shime has quit [Ping timeout: 240 seconds]
<shevy> how do I find out how many cores I have...
aspires has quit [Client Quit]
<slash_nick> no manual entry for parallel?
<shevy> AMD Sempron(tm) 145 Processor :(
<shevy> cool
glaksmono has quit [Quit: This computer has gone to sleep]
apeiros has quit [Remote host closed the connection]
<havenwood> slash_nick: os?
<slash_nick> ubuntu raring
apeiros has joined #ruby
sepp2k has joined #ruby
mary5030 has joined #ruby
<havenwood> slash_nick: sudo apt-get install parallel
mary5030 has quit [Remote host closed the connection]
aspires has joined #ruby
<hopkin> So the reason I was thinking Ruby is I could use this bit over again and I can use it to make an output file based on the url I am looking for, I could even get fancy and ask for a piece of the url to look for if I don't have a full string
<shevy> come on slash_nick!
dachi has joined #ruby
<slash_nick> :)
<shevy> hopkin you wanna use ruby on big heavy chunks, I would have rather tried to start with some smaller
mary5030 has joined #ruby
<shevy> hopkin I have an idea - let's pretend the log file is like 10 lines long only
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
kraljev5 has joined #ruby
alvaro_o has joined #ruby
<havenwood> hopkin: or shell out from Ruby with a parallel grep then do your logic in Ruby once you've got your mark
<kraljev5> I'm using MonitorMixin
<kraljev5> However, when I use synchronize {} block, I cannot access @ variables from it
<hopkin> so I put a copy in my gist of one of the entries in the log file if that helps
andy__ has quit [Remote host closed the connection]
<havenwood> hopkin: GNU grep?
<havenwood> hopkin: if you're using BSD grep, switch to GNU for the crazy speed
andy__ has joined #ruby
Speed has left #ruby ["WeeChat 0.4.3"]
<hopkin> yeah its on openbsd machines
glaksmono has joined #ruby
<havenwood> hopkin: GNU grep plus parallel would make it scream
<hopkin> er freebsd I mean lol
<havenwood> multiple cores and much more optimized grep
Hanmac1 has quit [Ping timeout: 272 seconds]
xerox357 has quit [Remote host closed the connection]
<hopkin> I sadly can't as I am only app support the ops team I don't think will implement this before I need to turn in my findings on the urls I am searching for lol
apeiros has quit [Ping timeout: 264 seconds]
<havenwood> aha
aspires has quit [Client Quit]
<hopkin> and apachelogregex looks good I just have to figure it out beyond 'require apachelogregex'
<hopkin> that and Rubular should help me out lol
whomp has quit [Ping timeout: 272 seconds]
nhhagen has joined #ruby
JarJarBi1ks has quit [Read error: Operation timed out]
JarJarBinks has joined #ruby
aspires has joined #ruby
mjs2600 has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
xerox357 has joined #ruby
<shevy> hopkin, there is one regex that works: (^http:\/\/\d+.\d+.\d+.\d+)
Kricir has joined #ruby
andy__ has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
Hanmac has joined #ruby
pietr0 has quit [Quit: pietr0]
<shevy> hopkin p File.read('name_of_your_logfile_here').scan(/(^http:\/\/\d+.\d+.\d+.\d+)/).flatten
banister has joined #ruby
senayar has joined #ruby
pigzzcanfly has joined #ruby
Xiti has joined #ruby
SloggerKhan has quit [Quit: Leaving.]
randomnick_ has joined #ruby
whomp has joined #ruby
Solnse has joined #ruby
yarou has quit [Remote host closed the connection]
pietr0 has joined #ruby
<hopkin> so I put some test data into rubular and tried that regex but it says no matches and when I try ).flatten is says invalid option
<shevy> you are trying .flatten in rubular?
<shevy> use rubular only for testing a regex
<shevy> once you have the regex, use the ruby irb
shadoi has joined #ruby
alexherbo2 has quit [Ping timeout: 244 seconds]
rubyracer has joined #ruby
<shevy> hopkin give the specific line that has a URL
<shevy> I mean here on #ruby so I can test
<hopkin> I tried just this in rubular (^http:\/\/\d+.\d+.\d+.\d+)
<shevy> ok but what was the input string you used
sailias has joined #ruby
rdark has quit [Quit: leaving]
freezey has quit [Remote host closed the connection]
<havenwood> hopkin: log.split(?")[3]
<hopkin> This is a single entry from the log:
<hopkin> 74.111.23.7 - - [01/Nov/2013:00:00:00 -0700] "GET /?tid=cbmaestro HTTP/1.1" 301 - "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.4; http://www.majestic12.co.uk/bot.php?+)"
mcls has joined #ruby
Megtastique has joined #ruby
<havenwood> hopkin: so the log varies?
<havenwood> hopkin: there are many patterns to match on, but depending on how uniform the logs are your options vary
<hopkin> it can yeah but the parts I pasted there are the same
<hopkin> I need the url
<shevy> hopkin ok then http can not match because your input string lacks that part
<havenwood> hopkin: can you give an actual example Gist of 5 or 10 logs?
<shevy> hopkin, in that case, try at rubular: ^\d+.\d+.\d+.\d+
<havenwood> lines*
yarou has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<hopkin> shevy that matches the ip out it looks like
<slash_nick> \d{1,3}
mjs2600 has joined #ruby
<shevy> hopkin \o/
mansi has joined #ruby
<havenwood> oh, i was confused what was desired
<havenwood> today that is happening a lot
<shevy> hopkin now you should try it in irb
senayar_ has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
jaredrhine has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparrovv has quit [Remote host closed the connection]
<dachi> hello. i have got another question... I am Christian but as a person I am having not few prejudices about different things. I always found Ruby to be positive, but I understand that you are using Vim as real community tool for terminal editing. I am thinking that I need to stay away from that because of vi beast thing, and that is why I am still using nano. . . what do you think? Is this stupid that vim = vi 6 thing?
<wuest> (Keep in mind that \d{1,3} is not going to only match valid IPs)
shinobi_one has joined #ruby
derpdederp has quit [Remote host closed the connection]
shinobi_one has quit [Client Quit]
<shevy> wtf
yeboot has quit [Quit: afkbrb]
<centrx> dachi, What is the "vi beast thing"?
<shevy> a Christian and a Vim user
wiku5_ has quit [Ping timeout: 272 seconds]
jaredrhine has joined #ruby
Kelgors has quit [Remote host closed the connection]
<shevy> dachi the end goal is to use ruby to generate ruby really
<dachi> so? shevy you understand yes? I should stay away from vim right?
shashin has joined #ruby
shashin has joined #ruby
shashin has quit [Changing host]
<shevy> you should stay away from vim in general
<dachi> thank you I will not ask anything more about this. Thank you.
<shevy> it messes with your brain
<shevy> you'll start to think in terms of 6dd :set wtf
<wuest> vim uber alles.
<centrx> vim is a good text editor.
<shevy> wuest yeah, at work I have to use vim :(
jlast has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
<wuest> (seriously though, I had my fill of holy wars two decades ago; I don't care what others use to edit)
<shevy> I don't care but I insult them
shashin has quit [Client Quit]
<havenwood> vim and emacs are powerful, but TIMTOWTDI
<shevy> gvim is best
mocfive has quit [Remote host closed the connection]
bricker has quit [Remote host closed the connection]
<wuest> havenwood: thank you, exactly :)
<shevy> dachi, use gvim
<shevy> the g stands for
<shevy> hmmm
<shevy> something
<havenwood> shevy: graphical
jlast_ has joined #ruby
<shevy> great
crystal77 has joined #ruby
mocfive has joined #ruby
<shevy> no, I think it is standing for greatness havenwood
<havenwood> shevy: goody-goody-gumdrops
<shevy> hehehe
<shevy> I remember the old days of the web with the warez sites
<wuest> shevy: heh. My gvimrc is one line: set guioptions=ac
<crystal77> In ruby, I can do "echo {1..100}". Does ruby have anything similar? I just want to make an array of 1 to 100 in irb, but don't want to type it all out :p
<shevy> I don't know what that option does, but actually, vim beats gvim hands down
<crystal77> *In bash, I can do
<wuest> (Because when I launch gvim really I just want real vim in a gui, none of this extra gui nonsense)
shime has joined #ruby
<havenwood> crystal77: [*1..100]
<havenwood> crystal77: or: 1.upto(100).to_a
<havenwood> crystal77: etc
<centrx> (1..100).to_a
npearson_ has quit [Remote host closed the connection]
<shevy> crystal77 ruby beats bash!
<centrx> Last one is faster
<havenwood> centrx: depending...
npearson has joined #ruby
skaflem has left #ruby ["Leaving"]
<centrx> havenwood, Depending on what?
timonv has joined #ruby
<havenwood> centrx: the implementation of Ruby
<centrx> Well, it's faster in 2.0 and 2.1
<crystal77> hmm. let me try.
<centrx> MRI
<centrx> about 2x as fast in MRI 2.0
<havenwood> centrx: aye, in incredibly tight loops, but i think aesthetics is the real deciding factor
s2013 has joined #ruby
<shevy> crystal77 1.upto(100).each {|e| print e,' ' }
<centrx> It looks better too :)
mary5030 has quit [Remote host closed the connection]
freezey has joined #ruby
<hopkin> @shevy I am in the irb and trying to type something like p File.read('access-hop-201311*-cbnwrwlb*.log).scan(^\d+.\d+.\d+.\d+)/).flatten put it comes back with nothing at all
<shevy> havenwood centrx beat you there!
jmau5_ has quit [Remote host closed the connection]
<shevy> hopkin look man
<shevy> hopkin ruby is short and elegant and so you must look with your eyes carefully
no0code has quit [Ping timeout: 246 seconds]
<shevy> hopkin in your case, you seem to have forgotten a '
cina has quit [Quit: leaving]
mocfive has quit [Ping timeout: 244 seconds]
jmau5 has joined #ruby
<havenwood> centrx: I'm not seeing that speed difference, depending on what I bench.
<shevy> youa lso seem to have forgotten a /
jlast_ has quit [Read error: Connection reset by peer]
<shevy> so please first look if you properly used the chars
jlast has joined #ruby
<shevy> hopkin if you need to first do a match, do this: Dir['access-hop-201311*-cbnwrwlb*.log'][0] before passing this into File.read
<havenwood> centrx: `1.upto(100_000_000).to_a` vs `(1..100_000_000).to_a` vs `[*1..100_000_000]` i'm seeing chaotic but similar results
<shevy> hopkin if the command gets too long, using the editor is usually better
<shevy> irb is helpful for small snippets of code
<havenwood> centrx: i think [*1..100] is pretty pretty
<shevy> I like the .upto more
<havenwood> centrx: though i prefer: 1.upto 100
<havenwood> shevy: hooah
<shevy> in that specific case at least
<wuest> [*1..100] is definitely the prettiest, havenwood
* wuest states subjective opinions in an objective manner.
<centrx> havenwood, 100,000,000 is going to implicate the garbage collector and so forth more than the range/array
<shevy> I am a weird person though, I like loop {} more than while
<shevy> and I hate for
super_g has quit [Quit: Page closed]
<shevy> every single time I use for, it stands out at being at odds with the rest of the code it resides in :(
jlast has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<shevy> wuest [*1..100] is ok too, it's terse, terse is almost always great
bricker has joined #ruby
<shevy> I just don't like endless method chaining... .map.tap.scratch.the.monkey
<crystal77> How come puts 1.upto(100) doesn't work? ;_;
Asher has joined #ruby
<shevy> crystal77 what should it do
jmau5 has quit [Ping timeout: 246 seconds]
<crystal77> put 1 through 100 in my console...
<shevy> crystal77 and did you try my variant... 1.upto(100).each {|e| print e,' ' }
Asher has quit [Client Quit]
<shevy> crystal77 no it just counts up
<shevy> there is no put there so it won't put
<havenwood> centrx: i don't think speed should factor in on this particular decision expect for vary rare cases, but good point re GC (i'd argue it does matter though since premature optimization foiled! :p)
jmau5 has joined #ruby
<havenwood> crystal77: you need to turn it into an Array
<havenwood> crystal77: 1.upto(100).to_a
<centrx> havenwood, Yeah, it looks like the huge difference is only with very small n too
<crystal77> 1.upto(100) { |i| puts i } works (; - though not too elegant
JustinAiken has joined #ruby
<centrx> havenwood, with n=100 it is only 15% faster than #upto and even less than [*]
<centrx> with
<shevy> crystal77 but puts appends a newline
<shevy> your shell variant does not, so print should be used
<hopkin> @shevy thanks I got the ' and the / as well as a ( that I was missing
<shevy> hopkin \o/ time to use a good editor too!
<shevy> a programmer should have sharp eyes
<shevy> sadly, most programmers have awful eyes
<hopkin> yeah that was totally on the command line
noopq has quit [Ping timeout: 246 seconds]
<hopkin> I normally use sublime
<shevy> \o/
<hopkin> well computer users have bad eyes because we stare at computers all day long lol
slacko26050 has joined #ruby
<hopkin> and night
<shevy> hmm
<shevy> yeah
<shevy> too much indoor, not enough sunshine
<havenwood> crystal77: `[1..100]` is an Array with a Range as its single element, but the splat in `[*1..100]` explodes the Range into 100 elements.
<shevy> especially bad when you are young
lolmaus has quit [Remote host closed the connection]
<hopkin> yeah and now I am old rofl
wiku5_ has joined #ruby
lolmaus has joined #ruby
Asher has joined #ruby
xibalba has quit [Quit: ZNC - http://znc.in]
apeiros has joined #ruby
mary5030 has joined #ruby
slacko26050 has left #ruby ["Leaving"]
<havenwood> crystal77: another example is `[*'a'..'z']` versus `'a'.upto('z').to_a`.
mary5030 has quit [Remote host closed the connection]
<crystal77> Ahh my brain!
<shevy> hopkin happens to the best of us
<shevy> crystal77 DESTROY IT!
xibalba has joined #ruby
Kelgors has joined #ruby
mary5030 has joined #ruby
m8 has quit [Ping timeout: 264 seconds]
sailias has quit [Ping timeout: 246 seconds]
Advocation has quit [Quit: Advocation]
<kraljev5> Array.new {|i| i}
freerobby has quit [Quit: Leaving.]
<wuest> crystal77: actually. This should be enlightening for you, if you haven't done it yet: `1.upto(100).class`
<kraljev5> Array.new(100) {|i| i}
arcanez has left #ruby [#ruby]
vlad_starkov has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mengu has quit [Read error: Connection reset by peer]
<wuest> kraljev5: 101. Fencepost. :)
<kraljev5> Array.new(100) {|i| i+1} # this one :)
<crystal77> The Enumerator class...interesting. I didn't know such a class existed.
momomomomo has joined #ruby
<wuest> Yep. Become friends with Enumerator. It's nice.
freerobby has joined #ruby
<existensil> I've been using Enumerator.new{ } a lot lately
no0code has joined #ruby
<centrx> dachi, Have you tried Ubuntu Christian Edition?
SHyx0rmZ has joined #ruby
<dachi> I don't know what's that
dingus_khan has joined #ruby
<dachi> I'm using osx
<dachi> and debian for server
<dachi> I don't think Ubuntu Christian is going to be something really christian related
<kraljev5> something is unlocking my mutex, i have no #unlock or #synchronize
<dachi> i'm just trying to stay away form evil things
<centrx> dachi, I do not know. I just stumbled on it. I thought you might be interested.
s2013 has quit [Ping timeout: 244 seconds]
<shevy> dachi lol
momomomomo has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
<centrx> dachi, According to an article in a 2006 edition of Linux Format magazine, "One of the great features of Ubuntu Christian Edition is the inclusion of a popular firewall, preconfigured for parental control of harmful web content."
s2013 has joined #ruby
tjr9898 has quit []
<JustinAiken> what happens if a ruby class wraps something in #synchronize, without specifying a Mutex or the such?
bogeyd6 has joined #ruby
<shevy> crystal77 let ruby replace all of bash
tjr9898 has joined #ruby
atmosx has joined #ruby
dingus_khan has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
<havenwood> JustinAiken: #synchronize is a method on Mutex (other classes as well, but not available universally)
faulkner has joined #ruby
senayar_ has quit [Remote host closed the connection]
<havenwood> JustinAiken: but NoMethodError if it isn't available
alekst has joined #ruby
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<atmosx> havenwood: mutex has to be used only when you write you rown tcp server right? where you need to handle simultaneous connections/requests?
<crystal77> shevy: trying. trying real hard to be a rails dev. some of the things just confuse the heck out of me. :)
<havenwood> atmosx: threading is one option for concurrency but not the only way
<wuest> atmosx: mutex/etc. is useful anywhere that you're dealing with concurrency and any manner of shared state.
<havenwood> wuest: if threading
<shevy> crystal77 pfft I thought you came to ruby because of ruby... railsers are sent into hell aka #rubyonrails
<atmosx> ah okay
<wuest> havenwood: "shared state"
<shevy> hey atmosx
elaptics is now known as elaptics`away
SegFaultAX has quit [Excess Flood]
<havenwood> wuest: good point, you can use mutexes with IPC
<atmosx> shevy: hey, how's the work?
<shevy> atmosx awful
<atmosx> shevy: started writing my thesis, I spent 4 hours for 2 paragraphs
<havenwood> wuest: aye
<atmosx> shevy: really? :-(
<shevy> atmosx they use different rubies on different servers and I have to connect via putty on a windows machine to the rest
<shevy> atmosx yeah. but they are nice so I can't complain, I just can't wait to get out of there
<havenwood> atmosx: what is your thesis on?
<shevy> atmosx is that good? 2 paragraphs? how many paragraphs will you need?
agent_white has joined #ruby
tjr9898_ has joined #ruby
xibalba has left #ruby ["Leaving"]
s2013_ has joined #ruby
<atmosx> havenwood: current status and future developments of sequence alignment, why do you ask? :-P
<havenwood> atmosx: curiosity
<atmosx> shevy: I need ~ 50 pages
<atmosx> havenwood: ah sure, I thought you were on the field or something, into bioinformatics
s2013 has quit [Write error: Broken pipe]
tjr9898 has quit [Write error: Broken pipe]
snath has quit [Ping timeout: 240 seconds]
<atmosx> havenwood: I also have to write a proof of concept, sequence software (sinatra or rails + fasta format for E.Coli)... it's easy..
<atmosx> with the bio gem
<crystal77> shevy: LOL. I'd rather be pure ruby, then a rails guru.
<dachi> centrx i don't know but i believe that should be better than http://ubuntusa*anic.org/ for some
<shevy> atmosx cool you'd fit right next to the guy that sits next to me haha
<havenwood> atmosx: very cool, is the bio gem related to BioRuby
Advocation has joined #ruby
shashin has joined #ruby
rubyoskar has joined #ruby
<rubyoskar> Is it possible to convert this SQL Query Request into Datamapper? SELECT twitchtv FROM twitchtvsts WHERE twitchtvsts.user_id = thisisavaraible
<shevy> all day long people come to him and ask him random stuff about sequence algorithms
<havenwood> crystal77: Ruby on Ruby > Ruby on Rails
<atmosx> shevy: it's slow. I'm doing the 'history' part now. It's impressive, theoretical biologists were *there* since 1970s
vindictive27 has joined #ruby
<rubyoskar> Is it possible to convert this SQL Query Request into Datamapper? SELECT twitchtv FROM twitchtvsts WHERE twitchtvsts.user_id = thisisavaraible
blueOxigen has joined #ruby
<shevy> crystal77 I remember the days before rails, it was great
<wuest> atmosx: neat. I had always associated python with the sciences, rather than ruby.
<shevy> even _why was still here!
<atmosx> havenwood: yeah I'm usint ig
<wuest> s/had/have/
<atmosx> havenwood: using it
<rubyoskar> yes
<rubyoskar> Is it possible to convert this SQL Query Request into Datamapper? SELECT twitchtv FROM twitchtvsts WHERE twitchtvsts.user_id = thisisavaraible
<centrx> rubyoskar, Stop spamming
<rubyoskar> sorry sorry!
<centrx> rubyoskar, Go look at the Datamapper docs, it is probably the very first example.
<havenwood> rubyoskar: you said sorry twice!
<atmosx> wuest: yeah, python has way more libraries but I'm a rubyist (proud of it) and for what I do, I don't need much more. I could roll my own if I didn't find anything (or maybe go with py)
<havenwood> rubyoskar: j/k j/k
jlast has joined #ruby
rails426 has quit []
<rubyoskar> havenwood: !ping sorry.
<rubyoskar> sorry
SegFaultAX has joined #ruby
joelroa has quit [Ping timeout: 264 seconds]
<havenwood> :P
bklane has joined #ruby
<atmosx> rubyoskar: sure it's possible
bluOxigen has quit [Ping timeout: 260 seconds]
<shevy> damn
<shevy> python has too many libraries
<shevy> why are you people not writing more gems
<wuest> atmosx: Bignum's slowness doesn't kill you? (As I understand it, that's where python coders get big benefit over ruby--but I don't do python so don't speak from firsthand experience)
casheew_ has joined #ruby
weeems has joined #ruby
lw has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
marcgg has joined #ruby
rbartos has joined #ruby
<atmosx> wuest: no. No one is going to use my PoC for any serious tasks, thre's BLAST for that.
xerox357_ has joined #ruby
<terrellt> shevy: 72k gems on rubygems is enough for me.
banister_ has joined #ruby
vlad_starkov has joined #ruby
Salve_ has joined #ruby
wjlafrance__ has joined #ruby
<wuest> atmosx: gotcha :)
whomp has quit [Quit: leaving]
blackmes1 has joined #ruby
dguettler_ has joined #ruby
* wuest has nearly no knowledge in that domain, to note, atmosx
bricker_ has joined #ruby
<rubyoskar> thanks everyone
<rubyoskar> im out
kaldreno_ has joined #ruby
Axsuul_ has joined #ruby
rubyoskar has quit [Client Quit]
meatherl_ has joined #ruby
<havenwood> wuest: Ruby 2.0.0 got flonum for Bignum, things are better now
pietr0_ has joined #ruby
s2013_ is now known as s2013
<havenwood> 1.8 is dead, long live 2.1!
bricker_ is now known as bricker`work
vindictive27_ has joined #ruby
bricker has quit [Disconnected by services]
JustinAiken1 has joined #ruby
<wuest> havenwood: I heard, but didn't know how much better "better" is
<JustinAiken1> @havenwood - ah, haha - was trying to figure out why my #synchronize was magically working when I forgot to declare it on a Mutex, realized it was because of this: https://github.com/adhearsion/adhearsion/blob/develop/lib/adhearsion/foundation/thread_safety.rb#L6-L9
yourmysin has joined #ruby
wiku5__ has joined #ruby
sdouglass has joined #ruby
ouie has joined #ruby
<havenwood> JustinAiken1: aha!
Wolland_ has joined #ruby
mocfive has joined #ruby
Naoe-Kanno has joined #ruby
axl__ has joined #ruby
The-Mad-Pirate-2 has joined #ruby
yekta_ has joined #ruby
bleak2 has joined #ruby
The-Mad-Pirate-2 has quit [Excess Flood]
<havenwood> wuest: JRuby 9k and Topaz are blazing fast. The future looks bright.
Koshian_ has joined #ruby
dblessing_ has joined #ruby
<wuest> Topaz is super nifty. Alex is freaking brilliant.
<apeiros> wuest: oh dear… that's a race condition right there
tvw has quit []
xaq has joined #ruby
ganesh_ has joined #ruby
<wuest> apeiros: ha?
dx7_ has joined #ruby
<apeiros> wuest: ||=
The-Mad-Pirate-2 has joined #ruby
<apeiros> A and B call synchronize
<apeiros> both get a different Mutex instance
moted_ has joined #ruby
The-Mad-Pirate-2 has quit [Excess Flood]
<wuest> apeiros: not my code; try again. ;)
Jeticus has joined #ruby
<apeiros> oh lol
IceyEC_ has joined #ruby
<apeiros> JustinAiken1: that code is not thread safe
<apeiros> wuest: sorry :D
mansi has quit [Remote host closed the connection]
The-Mad-Pirate-2 has joined #ruby
<wuest> apeiros: haha, no worries.
eregon_ has joined #ruby
The-Mad-Pirate-2 has quit [Excess Flood]
chipotle_ has joined #ruby
The-Mad-Pirate-2 has joined #ruby
mansi has joined #ruby
kevinykc_ has joined #ruby
pfg_ has joined #ruby
dvorak_ has joined #ruby
The-Mad-Pirate-2 has quit [Excess Flood]
<shevy> apeiros was "hiking" again
ndrei_ has joined #ruby
<JustinAiken1> but it's threadsafe if it's used in different methods within the same instance of an obect..
mansi has quit [Read error: Connection reset by peer]
<shevy> so he might be drunk
Es0teric_ has joined #ruby
mansi has joined #ruby
<apeiros> JustinAiken1: no.
interactionjaxsn has quit [Remote host closed the connection]
mcls_ has joined #ruby
crystal7_ has joined #ruby
<apeiros> it's not thread-safe, period.
Es0teric_ has quit [Max SendQ exceeded]
<crystal7_> I'm trying to loop through this array, and grab all the numbers less than 4. Any ideas why this isn't working?
<crystal7_> x = [1, 2, 3, 4, 5]; x.each { |x| x.select { |x| x < 4 } }
<apeiros> that way of creating a mutex and then synchronizing over it is pointless.
mocfive has quit [Ping timeout: 240 seconds]
incade_ is now known as incade
Kricir has quit [Remote host closed the connection]
The-Mad-Pirate-2 has joined #ruby
Es0teric_ has joined #ruby
<apeiros> crystal7_: .each returns the receiver
The-Mad-Pirate-2 has quit [Excess Flood]
<apeiros> >> [1,2,3].each { nil }
<eval-in___> apeiros => [1, 2, 3] (https://eval.in/106011)
<havenwood> crystal7_: [1, 2, 3, 4, 5].select { |x| x < 4 }
mupkoo has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
The-Mad-Pirate-2 has joined #ruby
<crystal7_> I thought I had to loop through it with each?
The-Mad-Pirate-2 has quit [Excess Flood]
shabgard has joined #ruby
<crystal7_> I don't know what a receiver is -_-
The-Mad-Pirate-2 has joined #ruby
<havenwood> crystal7_: #select, #each, #map, #reject etc all iterate
The-Mad-Pirate-2 has quit [Excess Flood]
AlSquire has joined #ruby
<havenwood> crystal7_: in addition to many other methods
<crystal7_> Ooooh. So I don't even need a loop
<crystal7_> how does one know if it iterates or not?
The-Mad-Pirate-2 has joined #ruby
sirecote_ has joined #ruby
TakumoKatekari has joined #ruby
The-Mad-Pirate-2 has quit [Excess Flood]
_Andres has quit [Read error: Connection reset by peer]
agent_wh1te has joined #ruby
TakumoKatekari has quit [Changing host]
TakumoKatekari has joined #ruby
<wuest> crystal7_: reading the doc helps
The-Mad-Pirate-2 has joined #ruby
the_ment- has joined #ruby
<havenwood> crystal7_: Array, Hash, etc include Enumerable - check out its methods: http://ruby-doc.org/core-2.1.0/Enumerable.html
<shevy> crystal7_ you just need a data structure
<wuest> (Not a snarky response. Ruby has some decent documentation which is weird and rare for a language)
<shevy> crystal7_ if you have an array, populated with the data you need, you simply print it out
<havenwood> crystal7_: the Enumerable methods are important to learn
<crystal7_> wuest: haha, looking. Trying to do select.class or something, guess I forgot the syntax for that already.
<apeiros> crystal7_: the receiver is the object you call the method on
SegFaultAX has quit [*.net *.split]
vindictive27 has quit [*.net *.split]
Advocation has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
wiku5_ has quit [*.net *.split]
mcls has quit [*.net *.split]
rubyracer has quit [*.net *.split]
Solnse has quit [*.net *.split]
pietr0 has quit [*.net *.split]
banister has quit [*.net *.split]
xerox357 has quit [*.net *.split]
dachi has quit [*.net *.split]
_ixti_ has quit [*.net *.split]
MattStratton has quit [*.net *.split]
marcgg_ has quit [*.net *.split]
ndrei has quit [*.net *.split]
yekta has quit [*.net *.split]
bleak has quit [*.net *.split]
shiftins has quit [*.net *.split]
moted has quit [*.net *.split]
forced_request has quit [*.net *.split]
chipotle has quit [*.net *.split]
JustinAiken has quit [*.net *.split]
FL1SK has quit [*.net *.split]
dx7 has quit [*.net *.split]
LadyRainicorn has quit [*.net *.split]
xaq_ has quit [*.net *.split]
guilleiguaran has quit [*.net *.split]
CaptainJet has quit [*.net *.split]
gl- has quit [*.net *.split]
caveat- has quit [*.net *.split]
mikee has quit [*.net *.split]
lkba has quit [*.net *.split]
Es0teric has quit [*.net *.split]
rayners has quit [*.net *.split]
crystal77 has quit [*.net *.split]
blackmesa has quit [*.net *.split]
axl_ has quit [*.net *.split]
geopet has quit [*.net *.split]
phantasm66 has quit [*.net *.split]
meatherly has quit [*.net *.split]
Wolland has quit [*.net *.split]
pico-pete has quit [*.net *.split]
kaldrenon has quit [*.net *.split]
dblessing has quit [*.net *.split]
Salve has quit [*.net *.split]
dguettler has quit [*.net *.split]
IceyEC has quit [*.net *.split]
dvorak has quit [*.net *.split]
Scientz has quit [*.net *.split]
axsuul has quit [*.net *.split]
pfg has quit [*.net *.split]
lele has quit [*.net *.split]
Waheedi has quit [*.net *.split]
ziyadb_ has quit [*.net *.split]
Nyyx has quit [*.net *.split]
The-Mad-Pirate has quit [*.net *.split]
kevinykchan has quit [*.net *.split]
weie has quit [*.net *.split]
weems has quit [*.net *.split]
sirecote has quit [*.net *.split]
casheew has quit [*.net *.split]
aboudreault has quit [*.net *.split]
pitzips has quit [*.net *.split]
maZtah has quit [*.net *.split]
Sammael has quit [*.net *.split]
Olipro has quit [*.net *.split]
ohcibi has quit [*.net *.split]
jds has quit [*.net *.split]
msch has quit [*.net *.split]
justinxreese has quit [*.net *.split]
Angelous has quit [*.net *.split]
`MArceLL` has quit [*.net *.split]
halfie has quit [*.net *.split]
eregon has quit [*.net *.split]
tommyblue has quit [*.net *.split]
the_mentat has quit [*.net *.split]
jinie has quit [*.net *.split]
phrozen77 has quit [*.net *.split]
mtjandra has quit [*.net *.split]
hanikazmi has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
artmann has quit [*.net *.split]
Koshian has quit [*.net *.split]
idoru has quit [*.net *.split]
Takumo has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
juni0r has quit [*.net *.split]
pietr0_ is now known as pietr0
moted_ is now known as moted
dguettler_ is now known as dguettler
dblessing_ is now known as dblessing
sirecote_ is now known as sirecote
yekta_ is now known as yekta
timonv has quit [Write error: Broken pipe]
the_ment- is now known as the_mentat
weeems is now known as weems
<apeiros> crystal7_: obj.foo # <-- obj is the receiver, foo is the method called on the receiver
<shevy> crystal7_ #each in general is used to iterate over something. think of it as a container like a backpack, that is your array. you apply something on each element
weems has quit [Changing host]
weems has joined #ruby
<shevy> huh... is freenode acting crazy again
<apeiros> and it's called receiver, because it receives a message (the method call)
<crystal7_> ahh, gotcha. I just call it the object
<wuest> shevy: compared with a few weeks ago, I'll settle for this level of "weird" from freenode
<apeiros> crystal7_: every receiver is an object, not every object is a receiver
<crystal7_> makes sense why select wouldn't work. it's trying to iterate on...nothing..
Waheedi has joined #ruby
pico-pete has joined #ruby
vindictive27_ is now known as vindictive27
pigzzcanfly has quit [Write error: Broken pipe]
IceyEC_ is now known as IceyEC
<apeiros> crystal7_: foo.bar(arg1, arg2) # <-- 3 objects involved, only 1 receiver
Scientz has joined #ruby
timonv has joined #ruby
wjlafrance__ has quit [Quit: This computer has gone to sleep]
<crystal7_> I wouldn't count args as objects, but I guess you're right (cause they are).
axl__ is now known as axl_
<wuest> crystal7_: everything is an object in Ruby. Even nothing.
<JustinAiken1> nothing is object 4 :p
lazyguru has quit [Ping timeout: 252 seconds]
<crystal7_> Just stop :x
pigzzcanfly has joined #ruby
<wuest> JustinAiken1: yuuuuup :p
<apeiros> crystal7_: of course the arguments are objects
<apeiros> not counting them as objects is simply wrong, in every possible way :)
<wuest> JustinAiken1: Actually... 8 on my build.
<shevy> crystal7_ well, arguments to a method are living in the ruby objectspace. the objectpsace you can obtain via p ObjectSpace in irb
<shevy> errr make that ... p ObjectSpace.count_objects
<shevy> and ObjectSpace.each_object
<shabgard> Hi
<shevy> crystal7_ do that in bash hahahaha
<crystal7_> bash is starting to look more and more like a toy right no
<shabgard> I have a small question
<crystal7_> *now
timonv has quit [Remote host closed the connection]
mupkoo has quit []
pel_daniel1 has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
<shevy> crystal7_ you can write really powerful shell scripts (lol)
pel_daniel has quit [Read error: Connection reset by peer]
enebo has joined #ruby
zegerjan has joined #ruby
LadyRainicorn has joined #ruby
<shabgard> for making a get request to a web server I found that I can use Net::HTTP.get method
rayners has joined #ruby
decoponio has quit [Quit: Leaving...]
<shabgard> but I don't want to use Net::HTTP everytime I want to use it.
tommyvyo__ has quit [Ping timeout: 240 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
Emmanuel_Chanel has joined #ruby
NovapaX has joined #ruby
<shabgard> is there someway to get rid of it like an alias or something without wraping it in another method?
senayar has joined #ruby
Solnse has joined #ruby
shime has quit [Read error: Connection reset by peer]
kpshek has quit []
<RubyPanther> shabgard: if you're trying to save 5 keystrokes or something, it is not worth it to add indirection
pitzips has joined #ruby
saturn_usa has joined #ruby
aryaching_ has quit [Ping timeout: 244 seconds]
<shabgard> RubyPanther, what's an indirection?
<RubyPanther> you could say nh = Net::HTTP ; nh.get # but it would be awful and disgusting
zzak has quit [Ping timeout: 240 seconds]
tommyvyo__ has joined #ruby
AlSquire has joined #ruby
npearson_ has joined #ruby
_bart_ has joined #ruby
chinkung has joined #ruby
<RubyPanther> Ew = Net::HTTP
LadyRainicorn has quit [Ping timeout: 240 seconds]
mtjandra has joined #ruby
kaldrenon has joined #ruby
lazyguru has joined #ruby
mjmac has quit [Ping timeout: 240 seconds]
davorb has quit [Ping timeout: 240 seconds]
Trip has joined #ruby
aboudreault has joined #ruby
_ixti_ has joined #ruby
enebo_ has joined #ruby
spyderma_ has joined #ruby
Klumben has quit [Ping timeout: 240 seconds]
bedouin has quit [Ping timeout: 240 seconds]
pcarrier__ has quit [Ping timeout: 240 seconds]
<JustinAiken1> Or use something friendly than Net::HTTP like HTTParty
<havenwood> HTTPClient
nanoyak_ has quit [Quit: Computer has gone to sleep.]
Kricir has joined #ruby
Wolland has joined #ruby
The-Mad-Pirate has joined #ruby
davorb has joined #ruby
mikepack_ has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
idoru has joined #ruby
<JustinAiken1> which is the most unfortunately named one, but my favorite…
Trip is now known as 17SAAJ8CR
ItSANgo is now known as 20WABDMM4
kraljev5 is now known as 20WABEEC8
zzak has joined #ruby
* shabgard is searching for httpclient
invinceable has joined #ruby
maZtah has joined #ruby
phrozen77 has joined #ruby
Sammael has joined #ruby
jds has joined #ruby
jinie has joined #ruby
ziyadb_ has joined #ruby
lele has joined #ruby
Nyyx has joined #ruby
gl- has joined #ruby
dachi has joined #ruby
`MArceLL` has joined #ruby
hanikazmi has joined #ruby
SegFaultAX has joined #ruby
artmann has joined #ruby
shiftins has joined #ruby
Angelous has joined #ruby
ohcibi has joined #ruby
tommyblue has joined #ruby
caveat- has joined #ruby
Soulcutter has joined #ruby
juni0r has joined #ruby
justinxreese has joined #ruby
guilleiguaran has joined #ruby
halfie has joined #ruby
mikee has joined #ruby
mjmac has joined #ruby
kraljev5 has joined #ruby
saltsa has quit [Ping timeout: 240 seconds]
<RubyPanther> see also openuri
pcarrier_ has joined #ruby
caveat- has quit [Max SendQ exceeded]
doodleha_ has joined #ruby
bedouin has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [*.net *.split]
kraljev5 has quit [*.net *.split]
invinceable has quit [*.net *.split]
justinxreese has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
dachi has quit [*.net *.split]
shiftins has quit [*.net *.split]
guilleiguaran has quit [*.net *.split]
gl- has quit [*.net *.split]
mikee has quit [*.net *.split]
lele has quit [*.net *.split]
ziyadb_ has quit [*.net *.split]
Nyyx has quit [*.net *.split]
maZtah has quit [*.net *.split]
Sammael has quit [*.net *.split]
ohcibi has quit [*.net *.split]
jds has quit [*.net *.split]
Angelous has quit [*.net *.split]
`MArceLL` has quit [*.net *.split]
halfie has quit [*.net *.split]
tommyblue has quit [*.net *.split]
jinie has quit [*.net *.split]
phrozen77 has quit [*.net *.split]
hanikazmi has quit [*.net *.split]
artmann has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
juni0r has quit [*.net *.split]
stringo0 has joined #ruby
eregon has joined #ruby
Klumben has joined #ruby
sriehl_ has joined #ruby
Wolland has quit [Client Quit]
vongrippen_ has joined #ruby
<saturn_usa> '-'
<shabgard> ok
kevinykchan has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
<shabgard> thank you alll
caveat- has joined #ruby
beardedn1nja has joined #ruby
danshult_ has joined #ruby
lmickh_ has joined #ruby
SirFunk_ has joined #ruby
joshwines has quit [Ping timeout: 245 seconds]
pedda_ has joined #ruby
claymore_ has joined #ruby
My_Hearing has joined #ruby
predator217 has joined #ruby
stringo0 has quit [Client Quit]
rezonanc_ has joined #ruby
NovapaX has quit [Client Quit]
_maes_ has quit [Read error: Connection reset by peer]
20WABEEC8 has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 272 seconds]
retnuh has quit [Ping timeout: 272 seconds]
budrose has quit [Ping timeout: 272 seconds]
SirFunk has quit [Ping timeout: 272 seconds]
Relaxation___ has quit [Ping timeout: 272 seconds]
jaimef has quit [Ping timeout: 272 seconds]
Spleeze has quit [Ping timeout: 272 seconds]
DrCode has quit [Ping timeout: 240 seconds]
stringoO has quit [Read error: Connection reset by peer]
Scientz has quit [Ping timeout: 272 seconds]
the_mentat has quit [Ping timeout: 272 seconds]
poulson has quit [Ping timeout: 272 seconds]
jtdowney has quit [Ping timeout: 272 seconds]
Bish has quit [Ping timeout: 272 seconds]
Fraeon has quit [Ping timeout: 272 seconds]
gtc has quit [Ping timeout: 272 seconds]
devdazed has quit [Ping timeout: 272 seconds]
wiku5__ has quit [Ping timeout: 272 seconds]
npearson has quit [Ping timeout: 272 seconds]
_bart has quit [Ping timeout: 272 seconds]
rmorello has quit [Ping timeout: 272 seconds]
predator117 has quit [Ping timeout: 272 seconds]
_5kg_ has quit [Ping timeout: 272 seconds]
peterhu has quit [Ping timeout: 272 seconds]
mnms_ has quit [Ping timeout: 272 seconds]
rezonanc has quit [Ping timeout: 272 seconds]
beardedninja has quit [Ping timeout: 272 seconds]
kevinykc_ has quit [Ping timeout: 272 seconds]
eregon_ has quit [Ping timeout: 272 seconds]
kaldreno_ has quit [Ping timeout: 272 seconds]
Wolland_ has quit [Ping timeout: 272 seconds]
no0code has quit [Ping timeout: 272 seconds]
DrShoggoth has quit [Ping timeout: 272 seconds]
carraroj has quit [Ping timeout: 272 seconds]
claymore has quit [Ping timeout: 272 seconds]
mikepack has quit [Ping timeout: 272 seconds]
jobewan has quit [Ping timeout: 272 seconds]
pedda has quit [Ping timeout: 272 seconds]
dorei has quit [Ping timeout: 272 seconds]
zumba_addict has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 272 seconds]
chrisseaton has quit [Ping timeout: 272 seconds]
sawtooth has quit [Ping timeout: 272 seconds]
__main__ has quit [Ping timeout: 272 seconds]
TripTastic has quit [Ping timeout: 272 seconds]
miah has quit [Ping timeout: 272 seconds]
Kilo`byte has quit [Ping timeout: 272 seconds]
braincrash has quit [Ping timeout: 272 seconds]
JZTech101 has quit [Ping timeout: 272 seconds]
flori_ has quit [Ping timeout: 272 seconds]
ValicekB has quit [Ping timeout: 272 seconds]
vongrippen has quit [Ping timeout: 272 seconds]
vipinj has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit [Ping timeout: 272 seconds]
Symbiosisz has quit [Ping timeout: 272 seconds]
patteh has quit [Ping timeout: 272 seconds]
abstractj has quit [Ping timeout: 272 seconds]
toretore has quit [Ping timeout: 272 seconds]
qqw has quit [Ping timeout: 272 seconds]
wchun has quit [Ping timeout: 272 seconds]
kung has quit [Ping timeout: 272 seconds]
flagg0204 has quit [Ping timeout: 272 seconds]
DanBoy has quit [Ping timeout: 240 seconds]
sriehl has quit []
crystal7_ has quit [Ping timeout: 272 seconds]
shashin has quit [Ping timeout: 272 seconds]
Hobogrammer has quit [Ping timeout: 272 seconds]
niftyn8 has quit [Ping timeout: 272 seconds]
jrist has quit [Ping timeout: 272 seconds]
danshultz has quit [Ping timeout: 272 seconds]
dik_dak has quit [Ping timeout: 272 seconds]
ninegrid has quit [Ping timeout: 272 seconds]
vt102 has quit [Ping timeout: 272 seconds]
troyready has quit [Ping timeout: 272 seconds]
The-Mad-Pirate-2 has quit [Read error: Connection reset by peer]
marr has quit [Read error: Connection reset by peer]
sawtooth has joined #ruby
dorei has joined #ruby
flagg0204 has joined #ruby
bricker`work has quit [Ping timeout: 272 seconds]
lmickh has quit [Ping timeout: 272 seconds]
patteh_ has joined #ruby
flori has joined #ruby
rezonanc_ is now known as rezonanc
The-Mad-Pirate has joined #ruby
rmorello_ has joined #ruby
tommyvyo__ has quit [Changing host]
tommyvyo__ has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
the_ment- has joined #ruby
davorb has quit [Changing host]
davorb has joined #ruby
bedouin has quit [Changing host]
bedouin has joined #ruby
zzak has joined #ruby
zzak has quit [Changing host]
patteh_ has quit [Signing in (patteh_)]
patteh_ has joined #ruby
pcarrier_ has quit [Changing host]
the_ment- is now known as the_mentat
niftyn8 has joined #ruby
pcarrier_ has joined #ruby
enebo_ is now known as enebo
wiku5_ has joined #ruby
<apeiros> still amazed how many http clients exist for ruby
kori has quit [Quit: WeeChat 0.4.3]
<apeiros> lets write one more!
SpleezeDos has joined #ruby
doodlehaus has quit [Ping timeout: 272 seconds]
DrShoggoth has joined #ruby
Relaxation___ has joined #ruby
The-Mad-Pirate has joined #ruby
__main__ has joined #ruby
braincrash has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
jrist has joined #ruby
<RubyPanther> one http client to rule them
abstractj has joined #ruby
The-Mad-Pirate has joined #ruby
troyready has joined #ruby
_Andres has joined #ruby
poguez_ has quit [Ping timeout: 246 seconds]
The-Mad-Pirate has quit [Excess Flood]
Kilo`byte has joined #ruby
<RubyPanther> it could be worse, we could have all the same functionality rolled into a single giant API for both simple and complex uses
_5kg_ has joined #ruby
<shabgard> havenwood, That's tooo much for me
vt102 has joined #ruby
The-Mad-Pirate has joined #ruby
Guest23510 has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
Bish has joined #ruby
interactionjaxsn has joined #ruby
SloggerKhan has joined #ruby
SloggerKhan has quit [Client Quit]
aspires has quit [Write error: Broken pipe]
The-Mad-Pirate has joined #ruby
jaimef has joined #ruby
Scientz has joined #ruby
devdazed has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
aboudreault has quit [Excess Flood]
<shabgard> hah, HttpClient is sweet: c = HTTPClient.new; c.get(url)
kayamm has quit [Ping timeout: 244 seconds]
cephalostrum has quit [Ping timeout: 244 seconds]
Karu has quit [Ping timeout: 244 seconds]
The-Mad-Pirate has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
[gmi] has quit [Ping timeout: 272 seconds]
alekst has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
dik_dak has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The-Mad-Pirate has joined #ruby
saltsa has joined #ruby
toretore has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
pigzzcanfly has joined #ruby
<JustinAiken1> @RubyPanther - You mean faraday? :p
joshwines has joined #ruby
`MArceLL` has joined #ruby
kraljev5 has joined #ruby
qqw has joined #ruby
justinxreese has joined #ruby
[gmi] has joined #ruby
invinceable has joined #ruby
Symbiosisz has joined #ruby
Olipro has joined #ruby
poulson has joined #ruby
shiftins has joined #ruby
dachi has joined #ruby
gl- has joined #ruby
mikee has joined #ruby
guilleiguaran has joined #ruby
lele has joined #ruby
ziyadb_ has joined #ruby
SegFaultAX has joined #ruby
Nyyx has joined #ruby
Sammael has joined #ruby
maZtah has joined #ruby
Angelous has joined #ruby
ohcibi has joined #ruby
halfie has joined #ruby
jds has joined #ruby
jinie has joined #ruby
phrozen77 has joined #ruby
tommyblue has joined #ruby
artmann has joined #ruby
Soulcutter has joined #ruby
juni0r has joined #ruby
hanikazmi has joined #ruby
poguez_ has joined #ruby
The-Mad-Pirate has joined #ruby
poguez_ has quit [Changing host]
poguez_ has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
Fraeon has joined #ruby
<havenwood> shabgard: its a good one!
gtc has joined #ruby
<havenwood> it's*
Waheedi has quit [Ping timeout: 244 seconds]
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
breakingthings has quit [Ping timeout: 244 seconds]
toddabrahm has quit [Ping timeout: 244 seconds]
ganesh_ has quit [Remote host closed the connection]
The-Mad-Pirate has quit [Excess Flood]
peterhu has joined #ruby
rbartos has quit [Write error: Broken pipe]
mnms_ has joined #ruby
[gmi] has quit [Max SendQ exceeded]
mikepack_ has quit [Remote host closed the connection]
aboudreault has joined #ruby
Olipro has quit [Max SendQ exceeded]
The-Mad-Pirate has joined #ruby
ganesh_ has joined #ruby
poulson has quit [Max SendQ exceeded]
kpshek has joined #ruby
enebo has quit [Ping timeout: 244 seconds]
Port3M5[Work] has quit [Ping timeout: 244 seconds]
The-Mad-Pirate has quit [Excess Flood]
retnuh has joined #ruby
Waheedi has joined #ruby
no0code has joined #ruby
[gmi] has joined #ruby
sdouglass has quit [Ping timeout: 240 seconds]
ninegrid has joined #ruby
kayamm has joined #ruby
The-Mad-Pirate has joined #ruby
miah has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
ndrei_ has quit [Ping timeout: 244 seconds]
The-Mad-Pirate has quit [Excess Flood]
sdouglass has joined #ruby
The-Mad-Pirate has joined #ruby
ilyam has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
Olipro has joined #ruby
cephalostrum has joined #ruby
linduxed has quit [Ping timeout: 244 seconds]
The-Mad-Pirate has quit [Excess Flood]
toddabrahm has joined #ruby
rbartos has joined #ruby
Emmanuel_Chanel has joined #ruby
enebo has joined #ruby
poulson has joined #ruby
ItSANgo_ has joined #ruby
The-Mad-Pirate has joined #ruby
Karu has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
crystal77 has joined #ruby
bean has joined #ruby
The-Mad-Pirate has joined #ruby
<crystal77> remind me one more time. how do I know that the Array#select method iterates by itself? Just gotta google it?
blueOxigen has quit [Ping timeout: 269 seconds]
The-Mad-Pirate has quit [Excess Flood]
mocfive has joined #ruby
<apeiros> crystal77: use the API documentation
The-Mad-Pirate has joined #ruby
<apeiros> ri Array#select
Aquilo_ has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
pranny has quit [Quit: Leaving.]
<apeiros> or if you use pry, ? Array#select
auxbuss has joined #ruby
yarou_ has joined #ruby
The-Mad-Pirate has joined #ruby
<havenwood> crystal77: and do use Pry ;)
Guest23510 is now known as JZTech101
JZTech101 has quit [Changing host]
JZTech101 has joined #ruby
sigurding has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
jonah_k_ has joined #ruby
sigurding has left #ruby [#ruby]
cburyta has joined #ruby
<havenwood> crystal77: gem install pry pry-doc; pry
<crystal77> I do use Pry, just as an IRB replacement though. Still learning these things. Only been at this a week :p
sigurding has joined #ruby
The-Mad-Pirate has joined #ruby
slowcons has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
<crystal77> I got pry-plus installed, so far. Boostrapping my sinatra project to mess around.
existensil_ has joined #ruby
<sigurding> when doing a rest call like that: @@rest['/' << entity].get
wiku5__ has joined #ruby
The-Mad-Pirate has joined #ruby
<sigurding> how do I provide request header=
The-Mad-Pirate has quit [Excess Flood]
<havenwood> crystal77: checkout the pry command sometime with `help` then `help show-doc` for example.
<Hanmac> sigurding: why does it smells after a rails question?
The-Mad-Pirate has joined #ruby
ValicekB has joined #ruby
<shevy> crystal77 man you jump like right into everything, why don't you learn little by little instead
ndrei has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
<sigurding> Hanmac: it is not. It is a rest client
nowthatsamatt_ has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
no0code has quit [Quit: Lost terminal]
rbartos has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
The-Mad-Pirate has quit [Excess Flood]
Freijo has joined #ruby
sdouglass has quit [Remote host closed the connection]
<crystal77> shevy: just my learning style. yolo, right? just jump in, and if I drown, oh well.
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
<shevy> hmm
chipotle has joined #ruby
<shevy> that was different 10 years ago as well
The-Mad-Pirate has joined #ruby
<shevy> people had more time
charles81_ has joined #ruby
sawtooth1 has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
mocfive_ has joined #ruby
tjr9898 has joined #ruby
sriehl_ is now known as sriehl
<centrx> Yes, that is a dumb philosophy
mocfive has quit [Ping timeout: 252 seconds]
The-Mad-Pirate has joined #ruby
FL1SK has joined #ruby
17SAAJ8CR is now known as JBreit
ptierno_ has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
<centrx> "YOLO so I might as well be an idiot"
senayar has quit [Remote host closed the connection]
The-Mad-Pirate has joined #ruby
Bish_ has joined #ruby
<centrx> Not referring to you particularly crystal77
The-Mad-Pirate has quit [Excess Flood]
senayar has joined #ruby
The-Mad-Pirate has joined #ruby
<centrx> Time is an illusion
rootshift_ has joined #ruby
<crystal77> None taken. I started from the bottom, now I'm here. (:
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
Sirupsen has joined #ruby
<centrx> >> Time.exists?
<eval-in___> centrx => undefined method `exists?' for Time:Class (NoMethodError) ... (https://eval.in/106014)
The-Mad-Pirate has quit [Excess Flood]
<centrx> QED
Xuisce_ has joined #ruby
The-Mad-Pirate has joined #ruby
bahar_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
Xuisce_ has quit [Client Quit]
flagg0204_ has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
Xuisce_ has joined #ruby
bricker has joined #ruby
drago777- has joined #ruby
yfeldblum has quit [Remote host closed the connection]
The-Mad-Pirate has joined #ruby
yfeldblum has joined #ruby
mary5030 has quit [Remote host closed the connection]
The-Mad-Pirate has quit [Excess Flood]
dorei_ has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
<RubyPanther> That is a dumb attack on a good philosophy
mocfive_ has quit [Ping timeout: 241 seconds]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
<RubyPanther> You can jump in because software is 100% reversible, you can't cut your thumb off or anything
Fraeon has quit [*.net *.split]
Scientz has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
wiku5_ has quit [*.net *.split]
dorei has quit [*.net *.split]
sawtooth has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
jaimef has quit [*.net *.split]
Bish has quit [*.net *.split]
pico-pete has quit [*.net *.split]
chipotle_ has quit [*.net *.split]
yarou has quit [*.net *.split]
jonah_k has quit [*.net *.split]
existensil has quit [*.net *.split]
Xuisce has quit [*.net *.split]
elcontrastador has quit [*.net *.split]
ptierno has quit [*.net *.split]
slowcon has quit [*.net *.split]
nowthatsamatt has quit [*.net *.split]
tedstriker has quit [*.net *.split]
20WABDMM4 has quit [*.net *.split]
bahar has quit [*.net *.split]
drago777 has quit [*.net *.split]
cburyta_ has quit [*.net *.split]
gregf has quit [*.net *.split]
Aquilo has quit [*.net *.split]
charles81 has quit [*.net *.split]
Olipro has quit [Max SendQ exceeded]
bahar_ is now known as bahar
bahar has quit [Changing host]
bahar has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
aspires has joined #ruby
incade has quit [Quit: Lost terminal]
simoz111 has joined #ruby
Kricir has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
momomomomo has joined #ruby
vongrippen_ has quit [Read error: Connection reset by peer]
mdpatrick_ has quit [Read error: Connection reset by peer]
The-Mad-Pirate has joined #ruby
nowthatsamatt_ is now known as nowthatsamatt
jaimef_ has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
Xuisce_ is now known as Xuisce
pico-pete has joined #ruby
mdpatrick has joined #ruby
Scientz has joined #ruby
vongrippen has joined #ruby
pigzzcanfly has joined #ruby
DrShoggoth has joined #ruby
The-Mad-Pirate has joined #ruby
<shevy> man RubyPanther people broke their fingers on keyboards
mdpatrick has quit [Max SendQ exceeded]
zumba_addict has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
nanoyak has joined #ruby
geopet has joined #ruby
The-Mad-Pirate has joined #ruby
stryek has quit [Ping timeout: 264 seconds]
The-Mad-Pirate has quit [Excess Flood]
gregf has joined #ruby
The-Mad-Pirate has joined #ruby
charles81_ has quit [Changing host]
charles81_ has joined #ruby
zachalle_ has quit [Remote host closed the connection]
The-Mad-Pirate has quit [Excess Flood]
pigzzcanfly has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
<shevy> you have a video for every occasion
mdpatrick has joined #ruby
ferr has quit [Write error: Connection reset by peer]
ktosiek has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
msch has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
Olipro has joined #ruby
nanoyak_ has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
elcontrastador has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
ndrei has quit [Quit: leaving]
tjr9898 has joined #ruby
zachallett has joined #ruby
The-Mad-Pirate has joined #ruby
ndrei has joined #ruby
kirun has quit [Remote host closed the connection]
The-Mad-Pirate has quit [Excess Flood]
jmau5 has quit [Remote host closed the connection]
Notte has joined #ruby
<shabgard> how to select the smallest amount using regex?
The-Mad-Pirate has joined #ruby
<shabgard> I'm trying to find mp3 files with this pattern: https?://.*\.mp3
The-Mad-Pirate has quit [Excess Flood]
ilyam has quit [Quit: ilyam]
jmau5 has joined #ruby
<shabgard> which gets more than expected
The-Mad-Pirate has joined #ruby
klaut has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
saturn_usa has left #ruby ["Leaving"]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
<RubyPanther> It is a 90s classic, that video was even on the local BBSes before they died
rubyoskarisback has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
<rubyoskarisback> Datamaapper question.. . get '/watch/:id' do |id| erb :mystream @result = Twitchtvst.all( :fields => [:Twitchtv ], :conditions => { :user_id => "#{id}" } ) puts @result end ( how Do I get twitchtv only instead of evetything in @reusult??
nanoyak has quit [Ping timeout: 264 seconds]
The-Mad-Pirate has joined #ruby
<centrx> shabgard, You mean not use greedy expression for .* ?
twiceaday has quit [Ping timeout: 244 seconds]
The-Mad-Pirate has quit [Excess Flood]
<rubyoskarisback> @result.inspect ?!?!??!?!
<RubyPanther> I haven't made it up to those newfangled xkcd links
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
twiceaday has joined #ruby
kpshek has quit []
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
tvw has joined #ruby
mdpatrick has quit [Ping timeout: 272 seconds]
vongrippen has quit [Ping timeout: 272 seconds]
The-Mad-Pirate has quit [Excess Flood]
mcls_ has quit [Quit: Computer has gone to sleep.]
ilyam has joined #ruby
The-Mad-Pirate has joined #ruby
jmau5 has quit [Ping timeout: 265 seconds]
The-Mad-Pirate has quit [Excess Flood]
<shabgard> centrx, I know but there was a selector or something for finding the smallest match in length
The-Mad-Pirate has joined #ruby
<AntelopeSalad> #scan supports the same syntax that rubular supports right?
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
vongrippen has joined #ruby
Kelgors has quit []
The-Mad-Pirate has joined #ruby
mdpatrick has joined #ruby
<shabgard> I guess so
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
interactionjaxsn has quit []
The-Mad-Pirate has joined #ruby
<AntelopeSalad> i'm getting mismatches for some reason
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
sparrovv has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
einarj has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
Olipro has quit [Max SendQ exceeded]
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
<dachi> GNU nano ‏@gnunano Apr 1
<dachi> We've been acquired by VIM! Please see the announcement on the mailing list for more details: http://bit.ly/Z38ylC :| :| :|
The-Mad-Pirate has quit [Excess Flood]
kraljev5 has left #ruby [#ruby]
The-Mad-Pirate has joined #ruby
<dachi> i'll be using ed :|
The-Mad-Pirate has quit [Excess Flood]
npearson_ has quit [Remote host closed the connection]
The-Mad-Pirate has joined #ruby
<centrx> apeiros, It's back
The-Mad-Pirate has quit [Excess Flood]
macclearich_ has joined #ruby
The-Mad-Pirate has joined #ruby
wiku5__ has quit [Ping timeout: 240 seconds]
npearson has joined #ruby
aspires has quit []
The-Mad-Pirate has quit [Excess Flood]
macclearich has quit [Ping timeout: 244 seconds]
jackneill has quit [Ping timeout: 264 seconds]
The-Mad-Pirate has joined #ruby
npearson has quit [Remote host closed the connection]
The-Mad-Pirate has quit [Excess Flood]
npearson has joined #ruby
The-Mad-Pirate has joined #ruby
heftig has joined #ruby
Axsuul_ has quit [Read error: Connection reset by peer]
The-Mad-Pirate has quit [Excess Flood]
<AntelopeSalad> example: foo.scan(/^export (COOL_.*|HELLO.*)/)
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
stryek has joined #ruby
axsuul has joined #ruby
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
fedesilv_ has joined #ruby
The-Mad-Pirate has joined #ruby
fedesilv_ has quit [Read error: Connection reset by peer]
<AntelopeSalad> why does that not return the same data type as foo.scan(/^export COOL_.*/)
The-Mad-Pirate has quit [Excess Flood]
oso|away is now known as oso96_2000
<AntelopeSalad> the first one returns an array while the second return a string
The-Mad-Pirate has joined #ruby
fedesilv_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
The-Mad-Pirate has quit [Excess Flood]
<AntelopeSalad> but rubular doesn't show this difference
The-Mad-Pirate has joined #ruby
<bean> AntelopeSalad: because one has a match group, the other doesn't
The-Mad-Pirate has quit [Excess Flood]
<centrx> AntelopeSalad, "If the pattern contains no groups, each individual result consists of the matched string, $&. If the pattern contains groups, each individual result is itself an array containing one entry per group."
<bean> string = "export COOL_"
The-Mad-Pirate has joined #ruby
<AntelopeSalad> bean: how can i modify it so that the first one returns a flattened result just like the 2nd?
The-Mad-Pirate has quit [Excess Flood]
<bean> AntelopeSalad: see what centrx said.
The-Mad-Pirate has joined #ruby
kpshek has joined #ruby
<ineb> i have some troubles with duck-typing. i have a function which needs a integer as parameter. should my function also accept a string or any object that supports .to_i?
<AntelopeSalad> here's what i have setup in rubular http://rubular.com/r/nsmv0KlJVi
The-Mad-Pirate has quit [Excess Flood]
<ineb> should i check for is_numeric in my function?
fedesilva has quit [Ping timeout: 264 seconds]
The-Mad-Pirate has joined #ruby
The-Mad-Pirate has quit [Excess Flood]
The-Mad-Pirate has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rubyoskarisback has quit [Quit: Page closed]
JustinAiken1 has left #ruby [#ruby]
fella6s has joined #ruby
carraroj has joined #ruby
<AntelopeSalad> centrx: any tips on making the return value of using () a single array?
edwardly has quit [Max SendQ exceeded]
retnuh has joined #ruby
kpshek has quit [Read error: Connection reset by peer]
<centrx> ineb, Depends on why your function needs an Integer as parameter
Alina-malina has quit [Read error: Connection reset by peer]
<apeiros> centrx: hm?
mary5030 has joined #ruby
simoz111 has quit [Quit: Nettalk6 - www.ntalk.de]
WormDrink has joined #ruby
Alina-malina has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fella5s has quit [Ping timeout: 252 seconds]
<centrx> AntelopeSalad, Maybe don't use scan if you need something special from it?
<centrx> apeiros, The-Mad-Pirate kept quitting and re-joining. Looks like it might be over
<apeiros> yeah, looking at that right now
edwardly has joined #ruby
jonr22 has joined #ruby
<AntelopeSalad> centrx: previously i didn't have to use (foo|bar) in my regex and the return value of scan worked great in what i was doing afterwards
<AntelopeSalad> it wasn't until i started using (foo|bar) where it became a problem
craigp has quit []
vt102 has quit [Ping timeout: 252 seconds]
<ineb> centrx: in my case its a variable which holds a size value (in bytes). i then put it into a filesize object to easy calculate it in MB, GiB etc.
vt102 has joined #ruby
<centrx> AntelopeSalad, #match always returns a MatchData object, from which you can get an array with #captures
<ineb> centrx: so ich have set_size(bytes) as function, and i need a numeric value or filesize object
lolmaus has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<ineb> but an object like string, which represents a number would also be fine i guess
agent_wh1te has quit [Quit: leaving]
agent_white has quit [Quit: leaving]
mikepack has joined #ruby
lolmaus has joined #ruby
<centrx> ineb, Duck typing is generally favored
<AntelopeSalad> centrx: might be easier if i gist what i'm doing?
raluxgaza has joined #ruby
<centrx> AntelopeSalad, Yes
meatherl_ has quit [Remote host closed the connection]
ctp has quit [Quit: Leaving...]
Xuisce has quit [Remote host closed the connection]
<ineb> centrx: how should i code it? sth. like begin x.is numeric ? rescue x.to_i rescue ... ?
<ineb> to cover all possible valid cases
<centrx> ineb, Duck typing would be something like: raise TypeError unless x.respond_to?(:to_i)
Xuisce has joined #ruby
zxq9 has quit [Remote host closed the connection]
<centrx> ineb, Otherwise, you can use x.is_a?(Numeric)
<pipework> Well, that's more like duck-checking.
zxq9 has joined #ruby
Jeticus has quit []
dguettler has quit [Quit: dguettler]
<centrx> Whatever it's called, it's a duck
<ineb> centrx: okay, but your second thought would fail for strings
Spami has joined #ruby
<ineb> yes, i got the idea, but i struggle in implementing it a bit.
<centrx> ineb, is_a? works with any class
Spami has quit [Max SendQ exceeded]
<apeiros> or Module even
<centrx> ineb, respond_to?(:to_i) will return true for any class that has a #to_i method
raluxgaza has quit [Remote host closed the connection]
<apeiros> object, even
<ineb> centrx: i think thats better. string is not a numeric and will fail
Spami has joined #ruby
mary5030 has quit [Remote host closed the connection]
fedesilv_ has quit [Ping timeout: 264 seconds]
pigzzcanfly has joined #ruby
mary5030 has joined #ruby
<pipework> ineb: Asking if something responds to a message is one way of not asking if it's a kind of a thing. Most people take duck typing with tell don't ask principle and just send the message.
<centrx> AntelopeSalad, I can tinker with this, but would /^export #{something}_.*/.match(contents).captures not return the desired result?
<AntelopeSalad> centrx: here's the rubular of it working as expected http://rubular.com/r/nsmv0KlJVi
shinobi_one has joined #ruby
glaksmono has quit [Quit: This computer has gone to sleep]
<pipework> There's certainly nothing wrong with asking if something responds_to something, but it makes some pretty intimidated code, one would think. Look into Confident Code by Avdi Grimm.
<ineb> pipework: so what would be your solution for my problem?
<pipework> ineb: Just call #to_i
<pipework> Or use Integer(arg)
<pipework> Or whatever.
<AntelopeSalad> centrx: on my side your proposed solution returns an empty hash
lachesis has joined #ruby
CaptainJet has joined #ruby
aces1up9939 has joined #ruby
<AntelopeSalad> but i assigned it to env_vars in this case and left everything else as is
reset has joined #ruby
<pipework> AntelopeSalad: I see what you're doing, but I cna't find what you're trying to accomplish at a higher level.
<aces1up9939> what does this error mean ? Unable to activate mws-connect-0.0.3, because nokogiri-1.6.1-x86-mingw32 conflicts with nokogiri (~> 1.5.5) my nokogiri is 1.6.1 which is > 1.5.5
<AntelopeSalad> my end goal would be to return the single hash with all 3 matches
momomomomo has joined #ruby
rezzack has joined #ruby
<ineb> pipework: Confident Code lookup on Amazon gave me 'The Confidence Code: The Science and Art of Self-Assurance---What Women Should Know'. dont know what that means
dapz has joined #ruby
<ineb> but i think 'confident ruby' is it.
Hobogrammer has joined #ruby
npearson has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
lukec has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
<pipework> Oh sorry, yeah it's Confident Ruby.
sambao21 has quit [Quit: Computer has gone to sleep.]
<AntelopeSalad> pipework: i added the expected output just to make it super clear https://gist.github.com/AntelopeSalad/b41077b282a06f02e875#file-test-rb-L8
npearson has joined #ruby
<pipework> AntelopeSalad: Well, what is that for? You have some environment variables and you're trying to do something with them?
mansi has joined #ruby
hiyosi has joined #ruby
<AntelopeSalad> pipework: yeah, i need to extract the env variables out of a file and supply them in a hash
<AntelopeSalad> but only certain env variables
havenwood has joined #ruby
<AntelopeSalad> and in this case only env variables that match both patterns
<pipework> AntelopeSalad: Oh so you've got a file that you want to use to determine some variables?
<AntelopeSalad> it's chef related, it doesn't source any files for env values but instead accepts them taken as a hash
<pipework> Oh reading a shell file? So they're not already in ENV?
<AntelopeSalad> so i figured i'd open the file where i have ~20 env variables exported and parse it
jmau5 has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
pfg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
freezey has quit [Remote host closed the connection]
<AntelopeSalad> it was working perfect until i added the 2nd match to the regex
pigzzcanfly has joined #ruby
<pipework> AntelopeSalad: Why not just #gsub("export " => " ").split('=') ?
<AntelopeSalad> i'd also be curious if the route i took do parse it all is reasonable/idiomatic
aspires has joined #ruby
<pipework> Or rather, no space for the value of the key
<AntelopeSalad> *to
<pipework> AntelopeSalad: Why not just #gsub('export ' => '').split('=') ?
<AntelopeSalad> i don't really know what that does haha
_Andres has quit [Quit: jazz]
mansi_ has joined #ruby
<AntelopeSalad> i've used gsub before on files (with thor) but never with syntax like that
<pipework> Read the manual, it's good stuff.
TripTastic has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
<AntelopeSalad> but pipework, the key is i only want to popular certain env variables
<pipework> Alternately, #gsub('export ', '').split('=')
freezey has joined #ruby
<pipework> AntelopeSalad: So then just do #select
<AntelopeSalad> they must start with FOO or BAR, but not BAZ, etc.
mansi has quit [Read error: Connection reset by peer]
norm has quit [Quit: norm]
mansi has joined #ruby
sambao21 has joined #ruby
<AntelopeSalad> let me try out your gsub solution first as is and go from there
<AntelopeSalad> it looks interesting
hiyosi has quit [Ping timeout: 264 seconds]
pigzzcanfly has quit [Ping timeout: 240 seconds]
<AntelopeSalad> btw what does it expect as input? i tried feeding it file.read
mercwithamouth has joined #ruby
kayamm has left #ruby ["part"]
JBreit has quit [Ping timeout: 240 seconds]
<AntelopeSalad> but then it blows up with an undefined method split
wiku5__ has joined #ruby
jlast has quit [Remote host closed the connection]
<pipework> AntelopeSalad: Read manual. Is good.
Notte has quit [Remote host closed the connection]
glaksmono has joined #ruby
<aces1up9939> how can i resolve this error ? Unable to activate mws-connect-0.0.3, because nokogiri-1.6.1-x86-mingw32 conflicts with nokogiri (~> 1.5.5)
<AntelopeSalad> pipework: it says it belongs to String
bklane has quit [Remote host closed the connection]
<aces1up9939> seem 1.6.1 > 1.5.5 where would this gem be saying it needs ~> 1.5.5 ?
<AntelopeSalad> pipework but file.read returns a string
mr_red has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
mlpinit_ has quit [Remote host closed the connection]
papes11 has joined #ruby
m8 has joined #ruby
jlast has joined #ruby
papes11 has left #ruby [#ruby]
<AntelopeSalad> pipework: it says it returns an enumerator but you can't split on an enum
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
mlpinit has joined #ruby
alexherbo2 has joined #ruby
ktosiek has joined #ruby
<slash_nick> AntelopeSalad: i feel like it said none of those things, rather those are your interpretations of the actual output..
v0n has quit [Ping timeout: 264 seconds]
<shevy> hehe
<AntelopeSalad> slash_nick: the documentation says When neither a block nor a second argument is supplied, an Enumerator is returned.
<AntelopeSalad> is that not saying "hey guys, i can't .split on something of type enum"?
ddelrio1986 has joined #ruby
<slash_nick> AntelopeSalad: so why call String#split on an enumerator?
<AntelopeSalad> because pipework told me to use that code?
<shevy> NoMethodError: undefined method `split' for #<Enumerator:0xb143b78>
<slash_nick> no, it's saying "undefined method `split' for #<Enumerator:0xb8730b8c> (NoMethodError)"
<shevy> AntelopeSalad well teaches you to listen to pipework ;)
<shevy> AntelopeSalad Enumerator does not have #split method defined by default
<pipework> AntelopeSalad: File.read('test').gsub('export ', '').split('=')
<pipework> The first arg to gsub when you use a hash should be a regular expression, I suppose.
<AntelopeSalad> pipework: i get the same error
<slash_nick> gsub on enum
<AntelopeSalad> i'm using ruby 2.1.0 if it matters
<shevy> AntelopeSalad ok let's break it down
<pipework> Does File#read not return the whole string?
<shevy> AntelopeSalad File.read must return a string yes? then you apply .gsub on a string, still fine
<pipework> When you use #gsub('export ','') it returns another string
<AntelopeSalad> shevy: i'm looking on http://www.ruby-doc.org/core-2.1.1/File.html
pranny has joined #ruby
<AntelopeSalad> i don't even see File.read (yet)
Notte has joined #ruby
<pipework> AntelopeSalad: IO#read
<shevy> awww
baordog has joined #ruby
<shevy> AntelopeSalad ok, when you pass a hash, you actually get back an Enumerator
<AntelopeSalad> ok, yes IO.read returns a string
plexus_ has joined #ruby
<pipework> shevy: I forgot to add the regular expression as the first arg when passing a hash to #gsub
<dvorak_> well, except that IO#read and File#read can take different parameters, so it really sucks that File#read isn't documented
<shevy> pipework hmm dunno, I never would have expected it to actually return an enumerator... I always thought it would return a string, now I learned something
<dvorak_> actually, I take that back, nm!
<shevy> scary .gsub
<AntelopeSalad> what's the missing link then? don't use the hash style arg into gsub?
<pipework> AntelopeSalad: It's not really necessary, since you only replace one thing.
dingus_khan has joined #ruby
<AntelopeSalad> File.read('test').gsub('export ', '').split('=')
<pipework> So swapping to the hash style wouldn't have any benefit.
<AntelopeSalad> this seems to work
<shevy> AntelopeSalad \o/ string happiness!
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> but i mean, this doesn't help me much as is
<AntelopeSalad> because i need to somehow filter this list
Kricir has joined #ruby
jcs222 has joined #ruby
<shevy> pipework haha yeah... at least I am not the only one who didn't know that behaviour, according to the comment section there
v0n has joined #ruby
<pipework> shevy: Pretty weird stuff, yeah?
xastion has joined #ruby
<shevy> AntelopeSalad filter is easy! find the condition that describes what data you will reject, then .reject
<pipework> AntelopeSalad: It does because now you're using ruby methods instead of regular expressions.
<pipework> AntelopeSalad: Now you use #select
pranny has quit [Ping timeout: 241 seconds]
<AntelopeSalad> what is #select even a method on, string?
<shevy> well
<pipework> AntelopeSalad: You don't have a string anymore
<shevy> typically you use it on an Array
<pipework> Or Hash
<AntelopeSalad> oh right, since we split it
<shevy> so now you must tell ruby what condition you want to use
fedesilva has joined #ruby
<pipework> AntelopeSalad: irb is an immensely valuable tool. Pry being even more valuable.
vlad_starkov has joined #ruby
<shevy> like reject if size is less than 8
<shevy> or select if size is bigger than 12
esuave_ has joined #ruby
<shevy> or!
<pipework> I prefer the positive case, so I use #select more
<shevy> hehe
<shevy> I guess it depends how the brain is wired
<pipework> But I use #reject when I know what I don't want.
ilyam has quit [Quit: ilyam]
<shevy> I like the reject because it reminds me of input->filter->output style
<pipework> shevy: It's kind of like using if !(condition) over unless
<AntelopeSalad> pipework: i only want to match 2 types of env variables based on what they start with
shabgard has quit [Quit: Aji maji la taraji]
<shevy> well actually select is the same input->filter->output, just the opposite
Czupa has quit [Remote host closed the connection]
<pipework> AntelopeSalad: Do it!
rootshift__ has joined #ruby
fedesilva has quit [Remote host closed the connection]
<AntelopeSalad> i did it with a regex but .scan freaks out when i use the 2nd match :<
Tobarja_yikes has joined #ruby
<AntelopeSalad> with select it won't even let me print out the value of each item so i can see what it is
<pipework> Sure it will.
<AntelopeSalad> also in this gsub version, it printed out the key and value of the ENV each on a new line
<pipework> AntelopeSalad: What should be accepted? What do they have to start with?
fayimora___ has joined #ruby
_adeponte has joined #ruby
<AntelopeSalad> does that mean the array is actually dumb to the fact they are pairs?
vlad_starkov has quit [Read error: Connection reset by peer]
<AntelopeSalad> [key, value, key, value]?
`MArceLL` has quit [Remote host closed the connection]
vcoinminer_ has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
`MArceLL` has joined #ruby
Hamled|Erp has joined #ruby
bklane has joined #ruby
pranny has joined #ruby
klipeto has joined #ruby
jeregrine has joined #ruby
<AntelopeSalad> also isn't #select going to remove the values from the array?
<AntelopeSalad> since they clearly won't match
msmith_ has quit []
<pipework> Well, that's the point.
figgleberry has quit [Ping timeout: 244 seconds]
<pipework> You only want to select the things you want.
esuave has quit [Ping timeout: 252 seconds]
fayimora__ has quit [Ping timeout: 252 seconds]
Tobarja has quit [Ping timeout: 252 seconds]
adeponte has quit [Ping timeout: 252 seconds]
vcoinminer has quit [Ping timeout: 252 seconds]
rootshift_ has quit [Ping timeout: 252 seconds]
Gate_ has quit [Ping timeout: 252 seconds]
ggherdov has quit [Ping timeout: 252 seconds]
Hamled has quit [Ping timeout: 252 seconds]
lpvn has quit [Ping timeout: 252 seconds]
__noname001__ has joined #ruby
plexus_ has quit [Ping timeout: 252 seconds]
noname001 has quit [Ping timeout: 252 seconds]
bier_ has quit [Ping timeout: 252 seconds]
klip has quit [Ping timeout: 252 seconds]
lpvn has joined #ruby
esuave_ is now known as esuave
bier has joined #ruby
vcoinminer_ is now known as vcoinminer
plexus_ has joined #ruby
mr_red has joined #ruby
<AntelopeSalad> pipework: yeah but i want to extract the key/value of the ENV variables into a hash
<pipework> AntelopeSalad: And?
<AntelopeSalad> and right now with the gsub split combo it gives me a single array that has both keys and values dumped together
<AntelopeSalad> if i run a match on that array with split it's going to remove every value
<AntelopeSalad> i mean with select
<pipework> Let me grab the file.
havenwood has quit [Ping timeout: 252 seconds]
mr_red has quit [Remote host closed the connection]
rbartos has joined #ruby
Xiti` has joined #ruby
<AntelopeSalad> and here was the fully working rubular version that doesn't work the same using .scan http://rubular.com/r/nsmv0KlJVi
wigg has joined #ruby
bean__ has joined #ruby
spyderman4g63 has joined #ruby
kevind_ has joined #ruby
awarner has joined #ruby
ItSANg___ has joined #ruby
ggherdov has joined #ruby
Axsuul_ has joined #ruby
Asher2 has joined #ruby
AlSquirrel has joined #ruby
mjs2600_ has joined #ruby
thumpba_ has joined #ruby
mansi_ has joined #ruby
baroquebobcat_ has joined #ruby
mark_locklear has quit [Ping timeout: 244 seconds]
IceyEC_ has joined #ruby
blackmesa has joined #ruby
pranny has quit [Ping timeout: 240 seconds]
banister has joined #ruby
bklane has quit [Quit: Leaving...]
nowthatsamatt_ has joined #ruby
vindictive27_ has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
terrellt_ has joined #ruby
terrellt has quit [Disconnected by services]
ziyadb_ has quit [Quit: Connection closed for inactivity]
terrellt_ is now known as terrellt
Jeticus has joined #ruby
figgleberry has joined #ruby
npearson has quit [Remote host closed the connection]
gsvolt_ has joined #ruby
npearson has joined #ruby
lukec_ has joined #ruby
lmickh has joined #ruby
toertore has joined #ruby
maximski has joined #ruby
glaksmono_ has joined #ruby
tejas has joined #ruby
<bricker> AntelopeSalad: I don't understand the problem
saltsa_ has joined #ruby
jgoss has joined #ruby
Sirupsen has joined #ruby
<pipework> AntelopeSalad: Hash[File.read('test').gsub('export ','').gsub("\'", '').split("\n").map{|str| str.split('=') }]
jayne has quit [Read error: Connection reset by peer]
<AntelopeSalad> look at line 9 (2 lines under)
KK4MGV has quit [Remote host closed the connection]
saltsa has quit [Read error: Connection reset by peer]
yarou_ is now known as yarou
predator117 has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
Hamled has joined #ruby
camt has quit [Write error: Connection reset by peer]
Hamled|Erp has quit [Write error: Broken pipe]
yarou has quit [Changing host]
yarou has joined #ruby
mr_red has joined #ruby
casheew_ has quit [Write error: Connection reset by peer]
lmickh_ has quit [Write error: Connection reset by peer]
glaksmono has quit [Write error: Connection reset by peer]
gsvolt has quit [Write error: Connection reset by peer]
beardedn1nja has quit [Write error: Broken pipe]
<pipework> From there you can reject things, but I'd probably slip in the reject/select stuff in the array before turning it into a hash.
AlSquire has quit [Write error: Connection reset by peer]
<AntelopeSalad> that is like 45 trillion times more complicated
<pipework> Yeah, sucks that you have to actually write code to do things.
<pipework> But the benefit is that you're not using regular expressions.
incade has joined #ruby
<AntelopeSalad> well, i did write the code to do exactly what i wanted, it's just scan seems to return it in a different format when you use ()
<pipework> 'when you use ()' doesn't mean much to me thinking in ruby.
<AntelopeSalad> that's why i came here, hoping maybe i could do something to make it work how it works without ()
<bricker> AntelopeSalad: you get the undefined method when you try to do what?
<AntelopeSalad> bricker: when i uncomment line 9 and comment line 12
<pipework> Mind that my version is a bit compacted.
<AntelopeSalad> the only difference between those 2 lines is that i introduce a () style match in the regex
<pipework> If you broke it across a few lines, it'd be easier, but IRC isn't great for multiple lines.
pranny has joined #ruby
<AntelopeSalad> being compact is fine, it's just extremely complicated
<pipework> Well, if you'd rather write regular expressions over ruby, I can't fix that.
pranny has quit [Read error: Connection reset by peer]
<pipework> Oh no, it's super simple.
<bricker> AntelopeSalad: did you read the String#scan documentation? "If the pattern contains groups, each individual result is itself an array containing one entry per group."
pranny1 has joined #ruby
<AntelopeSalad> bricker: yeah i was hoping i could have done something to flatten it all, but i couldn't get it to work -- that's why i came here
pranny1 has quit [Read error: Connection reset by peer]
_adeponte is now known as adeponte
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<pipework> I can't fix the desire to use regular expressions, I'm going to go play with some tests.
<AntelopeSalad> pipework: maybe if you have multiple years of ruby under your belt it's simple, but there's a lot of craziness going on there
<pipework> AntelopeSalad: Oh, nothing in there is crazy.
<pipework> It's all simple methods on simple objects.
thejoecarroll_ has joined #ruby
thejoecarroll has quit [Read error: Operation timed out]
jph98 has joined #ruby
prc has joined #ruby
axl_ has quit [Quit: axl_]
npearson has quit [Read error: Operation timed out]
<AntelopeSalad> i mean look at it lol
<AntelopeSalad> you're doing all of that inside of the key of a hash
<AntelopeSalad> how does the value of the hash even get set?
pranny has joined #ruby
npearson has joined #ruby
jmau5 has quit [Remote host closed the connection]
<pipework> I'm sure you know what File#read, String#gsub, String#split, Array#map, and Hash[] are.
casheew has joined #ruby
<pipework> It isn't the key of a hash, it's Hash[]
<AntelopeSalad> i've neve seen Hash[] being used like that
<pipework> It's a neat thing.
machuga_ has joined #ruby
Jeticus has quit []
<pipework> So you just need to learn what Hash[] is, luckily for you it's documented.
<AntelopeSalad> it says it makes a new hash
predator217 has quit [Remote host closed the connection]
Gate has quit [Remote host closed the connection]
randomnick_ has quit [Excess Flood]
machuga_ is now known as machuga__
rezonanc_ has joined #ruby
<pipework> It says a lot more than that.
klaut has quit [Remote host closed the connection]
beardedninja has joined #ruby
randomnick_ has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
lukec has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
CaptainJet has quit [Ping timeout: 252 seconds]
axsuul has quit [Ping timeout: 252 seconds]
nowthatsamatt has quit [Ping timeout: 252 seconds]
ItSANgo_ has quit [Ping timeout: 252 seconds]
bean has quit [Ping timeout: 252 seconds]
toretore has quit [Ping timeout: 252 seconds]
nowthatsamatt_ is now known as nowthatsamatt
crystal77 has quit [Ping timeout: 252 seconds]
spyderma_ has quit [Ping timeout: 252 seconds]
IceyEC has quit [Ping timeout: 252 seconds]
vindictive27 has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 252 seconds]
IceyEC_ is now known as IceyEC
vindictive27_ is now known as vindictive27
machuga has quit [Disconnected by services]
machuga__ is now known as machuga
banister_ has quit [Ping timeout: 252 seconds]
Asher has quit [Ping timeout: 252 seconds]
mjs2600 has quit [Ping timeout: 252 seconds]
Xiti has quit [Ping timeout: 252 seconds]
hopkin has quit [Ping timeout: 252 seconds]
razrunelord has quit [Ping timeout: 252 seconds]
thumpba has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Ping timeout: 252 seconds]
kevind has quit [Ping timeout: 252 seconds]
awarner_ has quit [Ping timeout: 252 seconds]
beardedninja has quit [Remote host closed the connection]
baroquebobcat_ is now known as baroquebobcat
Asher2 is now known as Asher
kevind_ is now known as kevind
grotr has joined #ruby
<AntelopeSalad> i don't see anything else there in the docs, unless that massive chain of function calls returns something other than an array?
gja has quit [Ping timeout: 458 seconds]
beardedninja has joined #ruby
<pipework> It's not massive, just compact.
<bricker> AntelopeSalad: so this line: https://gist.github.com/AntelopeSalad/b41077b282a06f02e875#file-test-rb-L15 should instead be item[0].split
<bricker> Are my messages going through? Freenode's bumming me out
helpa has quit [Ping timeout: 252 seconds]
<bricker> AntelopeSalad: Why even use the regex group then?
<bricker> second of all, you can use env_vars.flatten.each if you want
<bricker> first of all
rezonanc has quit [Ping timeout: 252 seconds]
oz has quit [Ping timeout: 252 seconds]
lukec_ has quit [Ping timeout: 252 seconds]
lpvn has quit [Read error: Operation timed out]
shinobi_one has quit [Ping timeout: 252 seconds]
jxport_ has quit [Ping timeout: 252 seconds]
gsvolt_ has quit [Ping timeout: 252 seconds]
robwilliamsuk has quit [Ping timeout: 252 seconds]
rezonanc_ is now known as rezonanc
koell has joined #ruby
robwilliamsuk has joined #ruby
jxport has joined #ruby
KK4MGV_ has joined #ruby
ilyam has joined #ruby
<AntelopeSalad> bricker: using regex group because i wanted to filter out env variables that start with FOO or BAR
malcolmva has quit [Ping timeout: 252 seconds]
helpa has joined #ruby
lpvn has joined #ruby
<pipework> 6 messages being sent, plus the number of elements in the array returned by the last call to #split
oz has joined #ruby
malcolmva has joined #ruby
gsvolt has joined #ruby
<pipework> AntelopeSalad: So the next part is using #select, which can use /FOO|BAR/
<shevy> or #reject
<shevy> :)
<AntelopeSalad> bricker: i tried using flatten there, same error
jayne has joined #ruby
jmau5_ has joined #ruby
<AntelopeSalad> and item[0].split also causes the same error
<pipework> #select{|k,_| k.matches?(/FOO|BAR/) I think
<pipework> #select{|k,_| k.matches?(/FOO|BAR/)} I think
<AntelopeSalad> but then you're back to using regexes
<pipework> Simple ones.
<shevy> AntelopeSalad break it down until it is so simple that even your grandma can solve it
<pipework> You can do it without regular expressions.
<aces1up9939> anyone know how i set ssl_verify_none within this line : Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https')
<pipework> But then you'd have two method calls.
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
dkamioka has quit [Remote host closed the connection]
<pipework> k.match?("FOO") || k.match?("BAR")
jgoss has quit [Ping timeout: 264 seconds]
agarie has quit [Ping timeout: 264 seconds]
Gate has joined #ruby
<pipework> I always mix up whether it's #match? or #matches?
camt has joined #ruby
CaptainJet has joined #ruby
xibalba has joined #ruby
bogeyd6 has joined #ruby
ianfleeton has joined #ruby
einarj has quit [Remote host closed the connection]
<AntelopeSalad> it's just .match
<pipework> I would take the time to learn more ruby instead of leaning on regular expressions all the time.
<pipework> No, it's match?
<AntelopeSalad> does this look right?
lkba has joined #ruby
jmau5_ has quit [Remote host closed the connection]
<AntelopeSalad> Hash[File.read('test').gsub('export ','').gsub("\'", '').split("\n").select{|k,_| k.match(/HELLO|WORLD/)}.map{|str| str.split('=') }]
<shevy> guys, when you have a class that handles R,G,B values for colours, what to do if the user inputs a number greater than 255?
<shevy> should I autoconvert it down to 255 or should I raise an error?
<AntelopeSalad> because that returns the correct output in the test
jmau5 has joined #ruby
guest12214 has joined #ruby
<pipework> AntelopeSalad: Hash[File.read('test').gsub('export ','').gsub("\'", '').split("\n").map{|str| str.split('=') }].select{|k,_v| k.match?('FOO') or k.match?('BAR') }
<centrx> shevy, Complain and ask the user again
<pipework> AntelopeSalad: Yours is slightly better in that it matches before it gets to the hash.
<AntelopeSalad> pipework: is that identical to the ver i pasted?
testcore has joined #ruby
<shevy> hmm centrx that seems worse than the two alternatives
<AntelopeSalad> (only without using a regex of course)
<pipework> AntelopeSalad: Except for using the regular expression, it outputs roughly the same.
<centrx> shevy, It is the most user friendly.
<shevy> no, because you nag the user
<incade> aces1up9939: I'm stabbing in the dark here, 'http.verify_mode = OpenSSL::SSL::VERIFY_NONE' ?
<pipework> And we used nothing surprising except maybe Hash[]
<AntelopeSalad> pipework: i figured i'd do the it before the map because then map does less work?
<AntelopeSalad> not that it matters
<centrx> shevy, Your alternatives are to silently accept the user's incorrect value, or to nag the user even worse with an explosive error.
<shevy> centrx indeed except that in the first case I continue without problem, in the second at least there is a clear indication about an error
<pipework> shevy: You set it to 255
<pipework> But you'd show them the output or the value after it's been limited to 255 instead of the greater value, if you can.
<AntelopeSalad> pipework: is there a convention to break this into multiple lines so it's readable?
<shevy> hmm
<AntelopeSalad> i would normally put line breaks before the period, but i mean about the Hash[] part
<pipework> AntelopeSalad: Just format the code differently
pigzzcanfly has joined #ruby
<shevy> AntelopeSalad readability is a good thing
jmau5_ has joined #ruby
<pipework> AntelopeSalad: I already did 90% of the conversion for you.
DouweM has joined #ruby
<centrx> shevy, Telling the user that he entered an incorrect value is a clear indication.
<pipework> I'm sure you can break this one-liner into multiple lines with local variables for taste.
<shevy> centrx hmm yeah I guess I can agree there
<centrx> shevy, Continuing "without problem" is not continuing without problem. You are silently assuming you know best what the user meant, when he actually entered an incorrect value.
jmau5 has quit [Read error: Connection reset by peer]
<shevy> but I do know
<centrx> shevy, If user does not know what he is doing, it is best to tell him
jhass is now known as jhass|off
<pipework> shevy: Mind that none of us, as much as we'd like to insist, are professional UX engineers of any merit.
<shevy> he is an idiot for inputting anything greater than 255
testcore has quit [Client Quit]
maximski has quit [Remote host closed the connection]
<AntelopeSalad> pipework: maybe something like this? https://gist.github.com/AntelopeSalad/b41077b282a06f02e875#file-final-rb
<pipework> If it were me, I'd just set it to 255 and optionally output a warning.
maximski has joined #ruby
jprovazn has quit [Quit: Odcházím]
<pipework> AntelopeSalad: Probably not what I'd write.
vlad_starkov has joined #ruby
evenix is now known as eenix
aspires has quit []
<AntelopeSalad> pipework: what don't you like about it?
v0n has quit [Ping timeout: 240 seconds]
<shevy> pipework I think centrx said something similar along those lines, at least I haven't yet heard someone say that it should raise, which confuses me
<pipework> AntelopeSalad: If your patterns might vary, I'd do something a bit different.
<pipework> shevy: Why would you raise?
eenix is now known as evenix
<shevy> it's an error!
<pipework> That's not a program-ending situation.
<pipework> It's user input!
<shevy> the user is an error!
<pipework> If you think raising for that is appropriate, I don't want to see any of your code ever.
<AntelopeSalad> pipework: i'd break the .select line into a do/end multi-block as soon as it got out of hand
<shevy> well perhaps his cat mistyped for him
jgoss has joined #ruby
<pipework> shevy: So the program should end?
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
<pipework> Read Exceptional Ruby
<shevy> pipework hmm perhaps
poulson has quit [Remote host closed the connection]
axl_ has joined #ruby
popl has quit [Ping timeout: 272 seconds]
xerox357_ has quit [Remote host closed the connection]
ctp has joined #ruby
xerox357 has joined #ruby
<centrx> shevy, Should your IRC client disconnect you if you misspell a word?
elimS has joined #ruby
<AntelopeSalad> pipework: thanks btw, also it passed my tests on the real env file too
<shevy> centrx no but it should disconnect others who misspell words
larissa has joined #ruby
<pipework> So to whomever suggested raising, I think you should either read Exceptional Ruby or jump off a cliff.
jmeeuwen has joined #ruby
aspires has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
xerox357 has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
jkamenik has left #ruby [#ruby]
nanoyak_ has quit [Quit: Computer has gone to sleep.]
xerox357 has joined #ruby
ndrei has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
xerox357 has quit [Read error: Connection reset by peer]
xerox357 has joined #ruby
zegerjan has quit [Quit: WeeChat 0.4.3]
chuk has joined #ruby
mneorr has joined #ruby
charliesome has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
<RubyPanther> exception raising and when to do it and what generally to use exceptions for is a subject with a history of various opposing exclusive opinions, generally, if you hold any of them strongly you're simply wrong by consensus
hiyosi has joined #ruby
<AntelopeSalad> shevy: i scrolled up, i'd just cap it at 255 if it's > 255
idkazuma has joined #ruby
* centrx raises an exception on RubyPanther and crashes his IRC client
ukd1 has joined #ruby
idkazuma has quit [Remote host closed the connection]
no6 has joined #ruby
xerox357 has joined #ruby
<pipework> Good thing that I don't simply depend on consensus to determine what's right and wrong.
x1337807x has joined #ruby
idkazuma has joined #ruby
<RubyPanther> Sorry, I use xchat, you'll have to trick me into installing a plugin for that to happen
<shevy> pretty definite so far, 0 are for raise
<slash_nick> if you've got an issue with raising, i suggest you handle it
<AntelopeSalad> i'm a big fan of just fixing user errors when possible
<shevy> ok slash_nick is the first one
<slash_nick> shevy: i'm just making jokes...
<AntelopeSalad> but i wouldn't do it always, like i wouldn't just truncate someones password without letting them know hah
<slash_nick> comedic relief
Stalkr_ has joined #ruby
<shevy> ok, back to 0 again then
xerox357 has quit [Read error: Connection reset by peer]
idkazuma has left #ruby [#ruby]
mary5030 has quit [Remote host closed the connection]
<pipework> Luckily there are other flow control mechanisms you can make use of since exceptions really aren't meant to handle that.
<AntelopeSalad> you could always troll them and modulo it
habanany has joined #ruby
<RubyPanther> If everybody agrees it is subjective and that real engineers have varying opinions, there is nothing noble or superior in insisting your One True Way is true. At that point you should join the "opinionated programming" set, because a strong opinion can't be wrong, just different, but claiming things are universal when they're opinions is wrong, even if the opinion itself is acceptable
xerox357 has joined #ruby
<pipework> RubyPanther: Are you really meta-arguing?
<pipework> I just meta^2-argued.
<RubyPanther> It is the level where the mistake happened.
<Stalkr_> Anyone used the RubyPython gem before?
_Cody has joined #ruby
<_Cody> i try to setup guard-livereload
<_Cody> is there a tutorial explaining guardfile-syntaxb
<RubyPanther> The difference between subjective and objective is actually rather critical to understanding even your own opinions
<pipework> RubyPanther: Yeah, arguing for using exceptions to do things they aren't or is the problem.
<AntelopeSalad> pipework: is there alternative to using Hash[] btw?
<RubyPanther> But one person, who didn't invent exceptions, can't decide what they "are"
phat4life has joined #ruby
<AntelopeSalad> chef's version of ruby seems to not support that
<pipework> I, however, don't subscribe to "It works, and there's no law saying it shouldn't be done" I leave that to quitters.
<RubyPanther> It is well known there are lots of views on that, from real engineers.
<phat4life> is it possible to eval() the contents of an entire file
ddelrio1986 has quit [Quit: Leaving]
IceyEC has quit [Quit: IceyEC]
<shevy> well we also have catch and throw
<slash_nick> This really is an exceptional dialogue guys, thanks :)
<centrx> RubyPanther, Too bad there aren't any real engineers here.
mjs2600_ has quit [Remote host closed the connection]
<pipework> I sometimes think that most rubyists aren't engineers, and then I look at who I figure those people are, and I feel confirmed.
ndrei has quit [Ping timeout: 272 seconds]
<phat4life> im a real engineer
hiyosi has quit [Ping timeout: 265 seconds]
<sigurding> that's my impression as well centrx
<sigurding> ;)
* pipework is an IRC engineer
lmickh has quit [Remote host closed the connection]
shashin has quit [Quit: shashin]
<centrx> Did you know that the first commercial steam train (Stephenson’s “Rocket”) managed to reach the speed of 96 kilometers per hour in 1830?
<RubyPanther> No, no, but when real engineers have already considered this problem before you were out of diapers, maybe it is good to consider that your own opinions are probably only opinions. Especially if you're unfamiliar with the details of the opposing views. And there are a huge variety of views on exceptions.
thomd has joined #ruby
<shevy> phat4life should be possible... something like: eval File.read('name_of_file') or something like that
mansi_ has quit [Remote host closed the connection]
<phat4life> shevy: this file is 100k lines long
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
<phat4life> this is the most insane rails migration ever
v0n has joined #ruby
mansi has joined #ruby
<shevy> wow
<pipework> RubyPanther: I think it's cute that you want to shove any thoughts we have into opinions. It may have some validity, but if you take it far enough, nothing is ever objective.
<shevy> when did rails become java phat4life
<centrx> RubyPanther, That's just an opinion.
xerox357 has quit [Read error: Connection reset by peer]
<pipework> So with that in mind, I'd like to say that my ultimately subjective opinion is that you don't understand exceptions.
<RubyPanther> If you take it "too far," sure it would eventually get too far.
Port3M5[Work] has joined #ruby
xerox357_ has joined #ruby
<pipework> RubyPanther: That's your opinion.
testcore has joined #ruby
grotr has quit [Quit: Leaving.]
<RubyPanther> At the other end, it is _well_established_ that there is no consensus on what exceptions are "for"
rootshift__ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<phat4life> shevy: the databases schema changed so much, and we have so much production data
<pipework> RubyPanther: Can you give a concrete objective example?
freggles has quit [Remote host closed the connection]
<RubyPanther> There are a wide variety of sets of best practices for exceptions
xerox357_ has quit [Read error: Connection reset by peer]
<pipework> There's zero value to sitting back and going, "You guys, it's just opinions!"
<slash_nick> Well, you know, that's just like, your opinion, man!
<sigurding> sorry to disturb this meta-discussion, but is there a lib for scheduling tasks?
<phat4life> we had to metaprogramically generated updates and creates for every db object
xerox357 has joined #ruby
<centrx> sigurding, Several. The one off the type of my head is called DelayedJob
<pipework> Some opinions, subjectively, are much better than others.
kcombs has quit [Remote host closed the connection]
xerox357 has quit [Read error: Connection reset by peer]
* centrx raises an exception any time a user uses HM:T instead of HABTM
xerox357 has joined #ruby
testcore has quit [Client Quit]
<pipework> I raise exceptions randomly just to keep users on their toes, subjectively.
thomd has left #ruby [#ruby]
<sigurding> centrx: if found whenever
xerox357 has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Quit: Leaving]
AlSquirrel has quit [Quit: This computer has gone to sleep]
xerox357 has joined #ruby
Notte has quit [Remote host closed the connection]
<RubyPanther> Right, if your understanding of the subject is such that you only know about the ways you use exceptions, ways you think are wrong, and random exceptions (which isn't anybody's view), then your opinion is simply not well founded. It has no chance of being useful.
<slash_nick> sigurding: that's the one i was going to suggest... if i could've recalled its name
<sigurding> centrx: on that right now :)
<sigurding> thx
sambao21 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
oso96_2000 is now known as oso|away
aspires has quit []
testcore has joined #ruby
workmad3 has joined #ruby
kindjal has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
<slash_nick> sigurding: i really want to play with https://github.com/tobiassvn/sidetiq/wiki ...
at284km has joined #ruby
xerox357 has joined #ruby
zachallett has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
xerox357 has quit [Read error: Connection reset by peer]
<sigurding> clockwork looks nice as well
mary5030 has joined #ruby
wiku5__ has quit [Ping timeout: 240 seconds]
xerox357 has joined #ruby
mansi has joined #ruby
mary5030 has quit [Remote host closed the connection]
xerox357 has quit [Read error: Connection reset by peer]
enebo has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
codabrink has joined #ruby
xerox357 has joined #ruby
<pipework> RubyPanther: You're trying to assert that I only know the way I prefer? I think you're grasping really hard here.
<pipework> Good try, come again.
<codabrink> Just a quick syntax question.. If 'unless' didn't exist in ruby, how would I go about implementing it?
<pipework> codabrink: It's a keyword, in C.
<pipework> I don't think you could do it with the same syntax
<codabrink> How would I write it in ruby, though?
<RubyPanther> No, I'm saying there are a wide variety of different theories on how to use exceptions, on what they are "for," and that holding any of them out as the One True Way, or claiming the others are wrong, is wrong
<shevy> codabrink perhaps via a filter
<pipework> codabrink: You can't.
xerox357 has quit [Read error: Connection reset by peer]
aspires has joined #ruby
<pipework> RubyPanther: I disagree, but it's probably just a hint that we'd have a hard time writing code together.
<RubyPanther> There simple is no agreement on what exceptions "are for" other than in general terms
xerox357 has joined #ruby
<pipework> In your opinion, perhaps.
<pipework> I think that there's agreement with a certain group of people who adopt a particular name for that group though.
xerox357 has quit [Remote host closed the connection]
habanany has quit [Ping timeout: 240 seconds]
AFKGeek has joined #ruby
xerox357 has joined #ruby
mansi_ has joined #ruby
weems has quit [Ping timeout: 244 seconds]
<pipework> But I don't really care to get 100% buy-in from everyone who ever existed and thought about exceptions.
<RubyPanther> No, that is objective; there are lots of views and there is no consensus best practices. The best practices are all within a particular viewpoint, but are different.
v0n has quit [Quit: WeeChat 0.4.3]
<gl-> pipework what's wrong with unless = if not() ?
<RubyPanther> It is not opinion that there are conflicting opinions ;)
mary5030_ has joined #ruby
<pipework> gl-: Does it work?
mansi has quit [Read error: Connection reset by peer]
<gl-> or did I misunderstand the question ?
v0n has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
<shevy> now that's an evil idea... to define a method called not
codabrink has quit [Client Quit]
<shevy> not.exist?
codabrin_ has joined #ruby
<pipework> RubyPanther: Ah, I re-read it and corrected your mistake.
codabrin_ is now known as codabrink
<pipework> Yes, there is a difference of opinion on a great many things, it doens't mean that one party isn't correct.
<gl-> hmm unless is checking that the tested condition is negative
<gl-> so you just have to negate the tested condition and use if
<shevy> slash_nick you were right, it was an exceptional dialogue
<momomomomo> RubyPanther: pipework I think you're both right and wrong; pipework you might benefit from reading this https://news.ycombinator.com/item?id=7270978 and RubyPanther might benefit from reading Exceptional Ruby :p
<shevy> noooo :(
<shevy> momomomomo, they already STOPPED
<shevy> now you bring them back into the ring...
<RubyPanther> >> def not; raise end ; not(false)
<eval-in___> RubyPanther => true (https://eval.in/106030)
<shevy> hahaha
linduxed has joined #ruby
<gl-> I must be missing something.
<momomomomo> shevy: i'm not instigating, just adding to the discussion because I think it's relevant.
rbartos has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
<RubyPanther> At least somebody pays attention to content, thanks momomomomo :)
<shevy> oh man ... if I'd have time to discuss, I'd even throw in why we have catch and throw in ruby, but I have to sleep soon and go to work so I shut up
mrchris has joined #ruby
<mrchris> Is there a ruby gem that can automatically detect what type of media content is in a blob of text and insert the appropriate markup? So lets say there is a youtube url in the text then it will add the youtube container, or if i add a link to a web video then it will add the html ???
<RubyPanther> catch and throw may be disgusting, but I've heard of real engineers who claim to make good use of them
mary5030 has quit [Ping timeout: 264 seconds]
<AntelopeSalad> hey pipework, i have a really important question for you
plexus_ has quit [Ping timeout: 265 seconds]
<shevy> mrchris hmm sounds rather specialized... I think there may be a couple of different gems that do parts of what you need, at the very least
<AntelopeSalad> pipework: why does this have so many warnings using your Hash[] trick? https://eval.in/106034
<mrchris> shevy: there is a gem which does it all but im not even sure what to search for
rbartos has joined #ruby
<slash_nick> shevy: github has a library for recognizing languages, i wonder if it'd handle it
Hobogrammer has quit [Ping timeout: 240 seconds]
<shevy> hmm
axl_ has quit [Quit: axl_]
AFKGeek has quit [Quit: Leaving]
<shevy> we could need a way to rate gems on rubygems...
shinobi_one has joined #ruby
<toertore> AntelopeSalad: http://rdoc.info/stdlib/core/Hash#%5B%5D-class_method
<slash_nick> mrchris: maybe https://github.com/github/linguist
<shevy> but only positive votes
<AntelopeSalad> >> puts Hash[1, 2, 3]
<eval-in___> AntelopeSalad => odd number of arguments for Hash (ArgumentError) ... (https://eval.in/106038)
<AntelopeSalad> >> puts Hash[[1, 2, 3]]
<eval-in___> AntelopeSalad => /tmp/execpad-cbb1cab31b62/source-cbb1cab31b62:2: warning: wrong element type Fixnum at 0 (expected array) ... (https://eval.in/106039)
rezzack has quit [Quit: Leaving.]
Azulinho has quit [Quit: WeeChat 0.4.2]
<toertore> >>Hash[1,2,3,4]
<eval-in___> toertore => {1=>2, 3=>4} (https://eval.in/106040)
asteros has joined #ruby
<toertore> >>Hash[[1,2],[3,4]]
<eval-in___> toertore => {[1, 2]=>[3, 4]} (https://eval.in/106041)
<AntelopeSalad> toertore: https://eval.in/106029
<toertore> >>Hash[*[1,2,3,4]]
<eval-in___> toertore => {1=>2, 3=>4} (https://eval.in/106042)
<centrx> >>Hash[GC.start]
<eval-in___> centrx => odd number of arguments for Hash (ArgumentError) ... (https://eval.in/106043)
mary5030_ has quit [Remote host closed the connection]
<AntelopeSalad> same style, but no warnings
shinobi_one has quit [Client Quit]
mary5030 has joined #ruby
<toertore> no, it's not the "same style"
rezzack has joined #ruby
<toertore> you are giving it 1 argument
<AntelopeSalad> aren't both of those an array?
<toertore> it expects an equal number of arguments, 2 or more
xerox357_ has joined #ruby
<AntelopeSalad> [1,2,3] and the return value of .map() are both arrays?
xerox35__ has joined #ruby
xerox357_ has quit [Read error: Connection reset by peer]
<shevy> AntelopeSalad hash wants even amount, not odd amount
<slash_nick> AntelopeSalad: #map returns an array, yes
<centrx> >>[[1,2,3]].length.even?
<eval-in___> centrx => false (https://eval.in/106044)
fedesilva has joined #ruby
chuk has quit [Quit: This computer has gone to sleep]
chuk has joined #ruby
wiku5__ has joined #ruby
momomomomo has quit [Quit: momomomomo]
weems has joined #ruby
xerox357 has quit [Ping timeout: 272 seconds]
<RubyPanther> If you have unbalanced args, just use #inject
<toertore> "The second and third form take a single argument which is either an array of key-value pairs or an object convertible to a hash."
<AntelopeSalad> oh
<toertore> >> Hash[ [ ['foo', 1], ['bar', 2] ] ]
<eval-in___> toertore => {"foo"=>1, "bar"=>2} (https://eval.in/106048)
jlast has quit [Remote host closed the connection]
<AntelopeSalad> so that last eval is what this map is returning in this case?
sigurding has quit [Quit: sigurding]
<AntelopeSalad> a single array consisting of arrays as elements
[gmi] has quit [Read error: Connection reset by peer]
yekta has quit [Quit: yekta]
<toertore> >> ['foo=bar'].map{|str| str.split('=') }
<eval-in___> toertore => [["foo", "bar"]] (https://eval.in/106051)
AFKGeek has joined #ruby
AFKGeek has quit [Client Quit]
Steve445 has joined #ruby
dingus_khan has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
_bart_ has quit []
shinobi_one has joined #ruby
xerox35__ has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 244 seconds]
jonah_k_ has quit [Remote host closed the connection]
snath has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linojon has joined #ruby
<Stalkr_> How is RubyPython exactly supposed to work? How do I specify I am dealing with a Python dict, not just some object, I need to convert it to a hash https://gist.github.com/anonymous/9240033
zB0hs has joined #ruby
Salve_ has quit []
Salve has joined #ruby
habanany has joined #ruby
jonah_k has joined #ruby
grvgr has joined #ruby
chrisja has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
Matriks has quit [Remote host closed the connection]
<gl-> Stalkr_: I hope you have a good reason to use such crazy stuff to mix languages :)
acrussell has quit [Quit: Leaving.]
s2013 has joined #ruby
alvaro_o has joined #ruby
<Stalkr_> gl-: My only reason is being lazy, Ruby doesn't have a guess library unfortunately
<slash_nick> what is a guess library anyway?
<shevy> you guess its name
pigzzcanfly has quit [Remote host closed the connection]
<RubyPanther> Stalkr_: normally you would know what is from what language by where you got it
<slash_nick> i'd call it "wag"
joelroa has joined #ruby
<slash_nick> but that's just a wild ass guess
<Stalkr_> slash_nick: A great example here, you give guessit a file name, it guesses the movie name/tv episode http://guessit.readthedocs.org/en/latest/
<Stalkr_> RubyPanther: I don't understand
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
Voodoofish430 has quit [Ping timeout: 244 seconds]
Jagori has joined #ruby
Voodoofish430 has joined #ruby
<RubyPanther> Stalkr_: Data has to come from somewhere. Normally when you're mixing languages, their data comes from different places, and is being combined.
lw has quit [Quit: s]
Astralum has quit [Ping timeout: 264 seconds]
<gl-> Stalkr_: I'd rather instantiate another python script to do the guess for me giving it the attribute with whatever inter-procee method (easiest probably being stdin-stdout)
Kricir has quit [Remote host closed the connection]
<RubyPanther> If you want to mix data together, you need to put each chunk in some sort of labeled container before mixing
dapz has quit [Ping timeout: 265 seconds]
asteros_ has joined #ruby
<gl-> Stalkr_: that would be easier to code and debug.
<gl-> and reuse.
Kricir has joined #ruby
<Stalkr_> gl-: and save the output from the python script so Ruby can read it?
<gl-> you read stdout
joelroa has quit [Ping timeout: 252 seconds]
<gl-> basically it's like reading/writing a file, except you do it with a process.
Kricir has quit [Read error: Connection reset by peer]
rudisimo has quit [Remote host closed the connection]
<gl-> I've never done this in ruby but normally it's called popen
benatkin has joined #ruby
Kricir has joined #ruby
rudisimo has joined #ruby
<Stalkr_> So Ruby calls a Python script, Python just writes out (with print I assume), the Ruby is able to read the output?
zachallett has joined #ruby
asteros has quit [Ping timeout: 240 seconds]
asteros_ is now known as asteros
<Stalkr_> I will look into popen
pedda_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<gl-> Stalkr_: yes, ruby will read text as output, so you will have to parse it
<Stalkr_> I think I know why potrDict won't work also
jph98 has quit [Quit: jph98]
<Stalkr_> Looks like it's not a dict, it's actually a guessit.guess.Guess object
<Stalkr_> Interesting
xerox357 has joined #ruby
Steve445 has quit [Quit: Steve445]
habanany1 has joined #ruby
rahult has joined #ruby
Azulinho has joined #ruby
absolutezeroff has quit [Disconnected by services]
sambao21 has quit [Quit: Computer has gone to sleep.]
ff__ has joined #ruby
<Stalkr_> It didn't work unfortunately, I may have to look into your solution gl-
rudisimo has quit [Ping timeout: 240 seconds]
<toertore> just have your py script output json
<Stalkr_> The easiest might be for Python to write a JSON to me, then parse it with Ruby
<Stalkr_> toertore: Yeah, I think that would easiest
j416 has quit [Quit: o/]
<toertore> there was another guy in here a few days ago trying to do the same thing
<gl-> well, json is ok.
<phat4life> do it in c
habanany1 has quit [Client Quit]
<gl-> you don't have to use json if your data structure is straightforward
at284km has quit [Remote host closed the connection]
<phat4life> use yml
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
habanany has quit [Quit: Leaving.]
<toertore> you have to use some sort of format, and json is as good as any
<slash_nick> use ebcdic
testcore has quit [Quit: Killed (einride (requested by panasync))]
<gl-> you can simply output text one per linein your python script and put this in an array in the ruby script.
mocfive has joined #ruby
jmau5_ has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
<phat4life> gl-: why not do it all in ruby?
kenneth has joined #ruby
cj3kim_ has joined #ruby
jmau5 has joined #ruby
<gl-> phat4life: because the library he wants to use is only a python one.
<slash_nick> phat4life: because there's already a library written for python to do what he wants
<phat4life> ahh i see
cj3kim_ has quit [Remote host closed the connection]
testcore has joined #ruby
sambao21 has joined #ruby
Hanmac1 has joined #ruby
dapz has joined #ruby
npearson has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
senayar_ has joined #ruby
<gl-> toertore: sure, but when you control both sides of the interface, maybe you don't need to learn the json library api in both languages.
yarou has quit [Remote host closed the connection]
<slash_nick> Stalkr_: there are several ways to shell out from ruby: http://stackoverflow.com/questions/2232/calling-bash-commands-from-ruby
<gl-> (and yes, I know, it's not complicated)
jmau5_ has joined #ruby
Hanmac has quit [Ping timeout: 269 seconds]
hoypriest has quit [Quit: Connection closed for inactivity]
mlpinit has quit [Quit: Leaving...]
<_Cody> this is my guardfile (for using livereload)
jrhorn424 is now known as zz_jrhorn424
pel_daniel1 has left #ruby [#ruby]
<_Cody> it seems to work if I am not connected to my server
yfeldblum has joined #ruby
jmau5 has quit [Read error: Connection reset by peer]
<_Cody> yet as soon as i do that (port 5000) it fails
<Stalkr_> slash_nick: I tried playing with that, but I had no idea what to do with the output https://gist.github.com/anonymous/9240513
m8 has quit [Quit: Sto andando via]
<_Cody> what can i do to change that?
<slash_nick> Stalkr_: json_output = `calling the python script`
<slash_nick> right?
senayar has quit [Ping timeout: 246 seconds]
<Stalkr_> slash_nick: That's the output from running guessit
<gl-> slash_nick: he needs to give some input to the python script as well.
yarou has joined #ruby
<slash_nick> Stalkr_: looked at the gist... so you either modify the script to give you JSON, or you parse the given output as is
<gl-> hence my suggestion to use popen.
<Stalkr_> slash_nick: How would I parse it? JSON.parse is not able to, probably because of the horrible formatting
yarou has quit [Remote host closed the connection]
<slash_nick> Stalkr_: basic string operations..
mary5030 has quit [Remote host closed the connection]
<slash_nick> Stalkr_: I think gl- is giving some good help though, sorry i interrupted
<gl-> it's ok
freezey has quit [Ping timeout: 240 seconds]
<gl-> :)
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Stalkr_> I will check out popen, I think it was also mentioned in Pick Axe
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larissa has joined #ruby
yarou has joined #ruby
hiyosi has joined #ruby
tyfighter has joined #ruby
kzrl has joined #ruby
<toertore> gl-: you have to serialize it as json on the python side too
jcs222 has quit [Read error: Connection reset by peer]
claymore_ has quit [Quit: Leaving]
<gl-> toertore: sure. That's why you have to learn two APIs and use two additionnal libraries :)
auxbuss has quit [Quit: I'm gone.]
mrchris has quit [Quit: Page closed]
Guest34019 has quit [Quit: WeeChat 0.4.1]
aspires has quit []
rbartos has quit [Remote host closed the connection]
bean__ has quit [Quit: Textual IRC Client: www.textualapp.com]
funburn has joined #ruby
freerobby has quit [Quit: Leaving.]
aspires has joined #ruby
mduvall has joined #ruby
jmau5_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 240 seconds]
jmau5 has joined #ruby
mansi_ has quit [Remote host closed the connection]
agarie has joined #ruby
The-Mad-Pirate has quit []
mansi has joined #ruby
Jagori_ has joined #ruby
SegFaultAX has quit [Excess Flood]
DanBoy has joined #ruby
phat4life has quit [Quit: Leaving.]
lw has joined #ruby
The-Mad-Pirate has joined #ruby
slowcons has quit []
tjr9898 has quit []
jmau5_ has joined #ruby
lmickh has joined #ruby
rmorello_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jmau5 has quit [Read error: Connection reset by peer]
Jagori has quit [Ping timeout: 265 seconds]
Jagori_ is now known as Jagori
dblessing has quit [Quit: dblessing]
Shidash has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
IceyEC has joined #ruby
rbartos has joined #ruby
wallerdev has joined #ruby
sambao21 has joined #ruby
<toertore> gl-: still better than coming up with your own imo, and you never know who/what else will be using it
lachesis has left #ruby ["Leaving"]
evenix has joined #ruby
bogeyd6 has quit [Ping timeout: 240 seconds]
<toertore> Stalkr_: oops, last sentence was fo you obviously not gl-
<toertore> second last
<Stalkr_> toertore: Coming up with my own guess library?
nisstyre has joined #ruby
vpretzel has joined #ruby
<toertore> well, third last now. fourth. this won't work, will it?
<toertore> Stalkr_: no, outputting json from the python script
<toertore> (or your own format if that's your thing)
<Stalkr_> toertore: If Python is able to serialize it such that Ruby can parse the output, sure
<_Cody> http://sprunge.us/UGEd <- Guardfile
mocfive has quit [Remote host closed the connection]
<_Cody> why dont i get a connection when using localhost in firefox or any other browser?
<Stalkr_> but I can't figure out how to serialize the dict...
<toertore> Stalkr_: hence json
wchun has joined #ruby
xerox357 has quit [Remote host closed the connection]
<toertore> which will be the intermediate format
Kricir has quit [Remote host closed the connection]
dapz has quit [Quit: Textual IRC Client: www.textualapp.com]
baordog has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
andrewlio has quit [Quit: Leaving.]
<Stalkr_> toertore: I am trying to make my Python dict to a JSON so Ruby can read it :-)
baordog has joined #ruby
<toertore> right, that's what i'm sayng :)
nfk has quit [Quit: yawn]
charles81_ is now known as charles81
redlines has quit [Ping timeout: 244 seconds]
andy___ has joined #ruby
redlines has joined #ruby
andy___ is now known as Guest22677
IceyEC has quit [Quit: IceyEC]
SegFaultAX has joined #ruby
phutch1ns has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
frem has joined #ruby
xerox357_ has joined #ruby
shashin has quit [Client Quit]
<Stalkr_> Oh my, I think I am too tired for this. The serialized string works just fine, silly me
The-Mad-Pirate has quit []
lkba has quit [Ping timeout: 272 seconds]
ianfleeton has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
doodleha_ has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
<Paradox> rubocop doesn't like my format lines in my rails controller, whines about em being too long
<Paradox> they look like this format.html { redirect_to @gift, notice: "Gift \"#{@gift.title}\" was successfully updated." }
<Paradox> which i assumed was canonical rails
<Paradox> any advice on making em look proper?
scarolan has quit [Ping timeout: 264 seconds]
xastion has quit [Ping timeout: 272 seconds]
atmosx has quit [Quit: Lost in trance]
stryek has quit [Ping timeout: 265 seconds]
BadQuanta has joined #ruby
dx7_ has quit [Remote host closed the connection]
ganesh_ has quit [Quit: Konversation terminated!]
xerox357_ has quit [Remote host closed the connection]
incade has quit [Remote host closed the connection]
wigg is now known as razrunelord
xerox357 has joined #ruby
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
<bnagy> #rubyonrails
nateberkopec has joined #ruby
<centrx> He cross-posted IRCarrhea everywhere
tonni has quit [Quit: Leaving...]
xerox357 has quit [Ping timeout: 272 seconds]
itadder has joined #ruby
dmyers has joined #ruby
nszceta has quit [Remote host closed the connection]
jmau5_ has quit [Remote host closed the connection]
jmau5 has joined #ruby
Guest22677 has quit [Remote host closed the connection]
dorei_ has quit []
rezzack has quit [Quit: Leaving.]
joelroa has joined #ruby
asteros has quit [Quit: asteros]
wallerdev has quit [Quit: wallerdev]
elimS has quit [Read error: Connection reset by peer]
jmau5_ has joined #ruby
elimS has joined #ruby
echevemaster has joined #ruby
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
Steve445 has joined #ruby
jmau5 has quit [Read error: No route to host]
lw has quit [Quit: s]
rezzack has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
Celm has joined #ruby
wiku5__ has quit [Ping timeout: 240 seconds]
VTLob has quit [Quit: VTLob]
Alina-malina has quit [Ping timeout: 240 seconds]
rayners has quit [Remote host closed the connection]
dayepa has joined #ruby
baordog has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
<bricker> Anybody in here want an invite to try Atom beta?
echevemaster has quit [Remote host closed the connection]
<bricker> just need an e-mail
_reset has joined #ruby
mocfive has joined #ruby
zacts has joined #ruby
<bricker> going once, going twice...
<zacts> does ruby allow for multi-line regex?
<bricker> gone
<bnagy> it might, but sanity doesn't
platforms has joined #ruby
<zacts> (does ruby allow for ignoring spaces in a regex so I can format it over multiple lines)
Vivekananda has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
platforms has left #ruby [#ruby]
reset has quit [Ping timeout: 265 seconds]
<bnagy> afaik the newlines in regex are significant
ilyam has quit [Ping timeout: 240 seconds]
<apeiros> zacts: //x
<apeiros> enables comments in regexen and lets it ignore whitespace
yaroslav has joined #ruby
Honsby has joined #ruby
gka_hn has joined #ruby
<bnagy> ha TIL
lw has joined #ruby
kzrl has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 264 seconds]
yasushi has joined #ruby
<apeiros> I think I've used it once in the last 10 years
kevind has quit [Quit: kevind]
<apeiros> I prefer composing regexen
lewix has joined #ruby
<apeiros> x = /foo/; y = /bar/i; z = /#{foo}whatever#{bar}/
<apeiros> properly handles the flags too
rudisimo has joined #ruby
* apeiros off
wiku5__ has joined #ruby
Alina-malina has joined #ruby
dingus_khan has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
dingus_khan has joined #ruby