apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
MrZYX is now known as MrZYX|off
dmiller has quit [Remote host closed the connection]
gensym` has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
greenarrow|2 has quit [Ping timeout: 256 seconds]
phipes has quit [Quit: phipes]
jacktrick has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
akhet has quit [Remote host closed the connection]
wyhaines has quit [Remote host closed the connection]
HecAtic has joined #ruby
freeayu has joined #ruby
roadt_ has joined #ruby
fridim__ has joined #ruby
rburton- has joined #ruby
guiocava_ has joined #ruby
t0rc has joined #ruby
guiocavalcanti has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
benlieb_ has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb_ is now known as benlieb
mengu has quit [Quit: This computer has gone to sleep]
seich- has quit [Ping timeout: 264 seconds]
rburton- has quit [Quit: Leaving...]
mikepack has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
dmiller has joined #ruby
mrsolo has quit [Quit: Leaving]
sepp2k has quit [Remote host closed the connection]
pcarrier_ has quit [Ping timeout: 248 seconds]
kirkstrobeck has quit [Quit: kirkstrobeck]
ivanoats has quit [Remote host closed the connection]
moos3 has joined #ruby
Artheist has joined #ruby
moos3 has quit [Client Quit]
pcarrier_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Spami has quit [Quit: This computer has gone to sleep]
kevinykchan has joined #ruby
seich- has joined #ruby
brunoro has joined #ruby
devoldmx has joined #ruby
HecAtic has quit [Quit: HecAtic]
rupee has quit [Quit: Leaving]
julian-delphiki has joined #ruby
wsterling has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
roadt_ has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
saarinen has quit [Quit: saarinen]
sambao21 has quit [Quit: Computer has gone to sleep.]
nari_ has quit [Ping timeout: 248 seconds]
Silent__ has quit [Ping timeout: 252 seconds]
skattyadz has quit [Quit: skattyadz]
roadt_ has joined #ruby
saarinen has joined #ruby
tealmage has quit [Remote host closed the connection]
bean has quit [Ping timeout: 240 seconds]
kirkstrobeck has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
mikepack has joined #ruby
tealmage has joined #ruby
Ortuna has joined #ruby
Levin_22 has joined #ruby
wsterling has quit [Ping timeout: 246 seconds]
kf8a has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
Levin_22 has left #ruby [#ruby]
larissa has joined #ruby
skattyadz has joined #ruby
Levin_22 has joined #ruby
rburton- has joined #ruby
tealmage has quit [Ping timeout: 264 seconds]
Levin_22 has left #ruby [#ruby]
apeiros has joined #ruby
Levin_22 has joined #ruby
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
d11wtq has joined #ruby
Hobogrammer has joined #ruby
hogeo has joined #ruby
zeade has quit [Quit: Leaving.]
JZTech101 has quit [Remote host closed the connection]
Lemtzas is now known as Cyam
fuzzyhor_ has joined #ruby
Cyam is now known as Lemtzas
cofin has joined #ruby
Kricir has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ffranz has quit [Quit: Leaving]
dmiller has quit [Remote host closed the connection]
nik_-_ has quit [Quit: nik_-_]
JZTech101 has joined #ruby
mstuefer has joined #ruby
kurtf has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
ephemerian has quit [Quit: Leaving.]
pen has quit [Remote host closed the connection]
apalmblad has quit [Quit: apalmblad]
miskander has joined #ruby
saarinen has quit [Quit: saarinen]
mando has quit [Remote host closed the connection]
mstuefer has quit [Ping timeout: 260 seconds]
banjara has quit [Quit: Leaving.]
jimg has joined #ruby
nari_ has joined #ruby
ttt has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
phipes has joined #ruby
vlad_starkov has joined #ruby
skattyadz has quit [Quit: skattyadz]
rburton- has quit [Quit: Leaving...]
freeayu has quit [Remote host closed the connection]
freeayu has joined #ruby
c0rn has quit [Ping timeout: 276 seconds]
ipalaus has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
c0rn has joined #ruby
JZTech101 has quit [Quit: Hmm... What to do now?]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
niklasb has quit [Ping timeout: 264 seconds]
miskander has quit [Quit: miskander]
ggordan_ has joined #ruby
bionhart has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
arya_ has joined #ruby
<jfelchner> Does anyone have any idea if you can access the REQUIRING filename inside of a file that is being required?
gensym` has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
ggordan has quit [Ping timeout: 248 seconds]
<jfelchner> Example, if in a file named foo.rb, I require bar.rb, can I get access to the fact that foo.rb was the thing the required me inside of bar.rb?
pen has joined #ruby
w|t has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
Loaft has joined #ruby
jarin has quit [Read error: Connection reset by peer]
justsee has joined #ruby
justsee has joined #ruby
apok has quit [Quit: apok]
jdunck has quit [Quit: Computer has gone to sleep.]
jerius has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Remote host closed the connection]
Domon has joined #ruby
yshh has joined #ruby
Ontolog_ has quit [Remote host closed the connection]
gaahrdne_ has quit [Remote host closed the connection]
superscott[8] has quit [Quit: superscott[8]]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Astral_ has quit [Ping timeout: 246 seconds]
gaahrdner has joined #ruby
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
brianpWins has quit [Quit: brianpWins]
Armon has quit [Ping timeout: 260 seconds]
ggordan_ has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 248 seconds]
gaahrdner has quit [Ping timeout: 252 seconds]
kil0byte has joined #ruby
rads has quit [Quit: rads]
djwonk has joined #ruby
twoism_ has quit [Remote host closed the connection]
<fryguy> jfelchner: probably not in any sort of realistic way, since a require might actually no-op (if it was already required somewhere else)
filipe has quit [Read error: Operation timed out]
kofno has joined #ruby
ebobby has quit [Quit: Lost terminal]
chipotle_ has quit [Quit: cya]
chipotle_ has joined #ruby
lewix has joined #ruby
mahmoudimus has joined #ruby
rickruby has joined #ruby
Kricir has joined #ruby
<jfelchner> fryguy True, but I only care about the first time. In this case I'm wanting some generic spec_helpers for various situations that I can store in rspectacular.
<jfelchner> Looks like the closest I can find is $FILENAME but that will fail the majority of the time.
daniel_- has quit [Ping timeout: 252 seconds]
<jfelchner> For my use case at least.
daniel_- has joined #ruby
setient has joined #ruby
kofno has quit [Remote host closed the connection]
rburton- has joined #ruby
mixel has quit [Quit: mixel]
stewart_ has joined #ruby
<jfelchner> I think I'm just going to have to use ENV['PWD']. It will fail if it's being called other than from the root of the repo, but that's where most of us execute rspec in any case.
s_e has joined #ruby
Domon has quit [Ping timeout: 264 seconds]
<stewart_> BonSequitur: check out feedzirra
ivanoats has joined #ruby
dhruvasagar has joined #ruby
filipe has joined #ruby
swex has quit [Ping timeout: 248 seconds]
alx- has quit [Quit: alx-]
atno has quit [Ping timeout: 260 seconds]
bradhe has joined #ruby
mikepack has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
kil0byte has quit [Ping timeout: 246 seconds]
ivanoats has quit [Ping timeout: 276 seconds]
breadthfirst has quit [Remote host closed the connection]
rburton- has quit [Ping timeout: 256 seconds]
breadthfirst has joined #ruby
tomsthumb has joined #ruby
nfk has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mando has joined #ruby
alx- has joined #ruby
alexgordon has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
benlieb has quit [Quit: benlieb]
daniel_- has quit [Ping timeout: 260 seconds]
mando has quit [Remote host closed the connection]
postmodern has joined #ruby
mando has joined #ruby
kil0byte_ has quit [Ping timeout: 276 seconds]
Kricir has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
mstuefer has joined #ruby
mnewton has joined #ruby
atno has joined #ruby
apeiros_ has joined #ruby
kil0byte has joined #ruby
chrishough has quit [Quit: chrishough]
apalmblad has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
robert_ has quit [Ping timeout: 256 seconds]
eykosiou_ has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
eykosioux has joined #ruby
breadthfirst has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 256 seconds]
breadthfirst has joined #ruby
mstuefer has quit [Ping timeout: 260 seconds]
thomasle_ has quit [Remote host closed the connection]
apeiros has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
chipotle_ has quit [Quit: cya]
dmiller has joined #ruby
eykosioux has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
dmiller has quit [Remote host closed the connection]
Levin_22 has quit [Quit: Levin_22]
dmiller has joined #ruby
madb055 has joined #ruby
pen has quit [Remote host closed the connection]
Hanmac1 has quit [Read error: Operation timed out]
jacktrick has quit [Quit: Leaving]
johnkary has joined #ruby
greenarrow has joined #ruby
Kricir has joined #ruby
bradhe has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
Guedes0 has quit [Ping timeout: 276 seconds]
jarin has joined #ruby
xcv_ has quit [Remote host closed the connection]
druonysus has quit [Ping timeout: 260 seconds]
xcv has joined #ruby
mmitchell has joined #ruby
iMadper has joined #ruby
dmiller has quit [Remote host closed the connection]
ivanoats has joined #ruby
Z_Mass has joined #ruby
xcv has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
arubin has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
braincra- has joined #ruby
cj3kim has quit [Remote host closed the connection]
robustus has joined #ruby
Hanmac1 has joined #ruby
fridim__ has quit [Ping timeout: 276 seconds]
jamesfung14 has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
braincrash has quit [Ping timeout: 256 seconds]
brianherman has joined #ruby
jcromartie has joined #ruby
sleetdrop has joined #ruby
falood has joined #ruby
fuzzyhor_ has quit [Remote host closed the connection]
eykosioux has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
eka has quit [Quit: Computer has gone to sleep.]
moos3 has joined #ruby
jeebster has quit [Quit: Leaving.]
krz has joined #ruby
chrishunt has joined #ruby
arya_ has quit [Ping timeout: 276 seconds]
kurtf has quit [Quit: Computer has gone to sleep.]
pyx has joined #ruby
cofin has quit [Quit: cofin]
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
CyberMaN has joined #ruby
arya_ has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
eykosioux has quit [Ping timeout: 252 seconds]
pyx has quit [Client Quit]
breadthfirst has quit [Remote host closed the connection]
breadthfirst has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
dmiller has quit [Remote host closed the connection]
`p has joined #ruby
supercray has quit [Ping timeout: 250 seconds]
mando has quit [Remote host closed the connection]
cofin has joined #ruby
lewix has quit [Remote host closed the connection]
nw has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
dhruvasagar has joined #ruby
nw has joined #ruby
pipework has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
arya_ has joined #ruby
greenarrow has quit [Read error: Operation timed out]
palantir has joined #ruby
freerobby has joined #ruby
pipework has joined #ruby
philcrissman has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
radic__ has joined #ruby
lethjakm1 has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
blandflakes has joined #ruby
<palantir> I'm looking for some help with the Kitabu gem (https://github.com/fnando/kitabu). It states it supports markdown and it seems to some, it does code blocks and a few other things, but seems to ignore **bold** and *italic* attemps. Anyone else experienced this?
DrShoggoth has quit [Ping timeout: 276 seconds]
apok has joined #ruby
radic_ has quit [Ping timeout: 260 seconds]
kurtf has joined #ruby
kurtf has quit [Client Quit]
breadthfirst has quit [Remote host closed the connection]
cj3kim has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
ivanoats has quit [Remote host closed the connection]
mstuefer has joined #ruby
breadthfirst has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
DrShoggoth has joined #ruby
nwertman has quit [Quit: nwertman]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
[[thufir]] has joined #ruby
zeade has joined #ruby
breadthfirst has quit [Remote host closed the connection]
mstuefer has quit [Ping timeout: 260 seconds]
breadthfirst has joined #ruby
kofno has joined #ruby
beneggett has joined #ruby
mmitchell has quit [Remote host closed the connection]
arubin has quit [Quit: blah]
bionhart has quit [Remote host closed the connection]
lethjakm1 has quit [Ping timeout: 256 seconds]
breakingthings has joined #ruby
breadthfirst has quit [Remote host closed the connection]
eykosioux has joined #ruby
breadthfirst has joined #ruby
zeade has quit [Client Quit]
fschuindt has quit [Quit: Computer has gone to sleep.]
breadthfirst has quit [Read error: Connection reset by peer]
breadthfirst has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
non has joined #ruby
beneggett has quit [Ping timeout: 256 seconds]
yashshah has joined #ruby
<non> From the ruby doc: "When referencing constants in classes inheriting from Object you do not need to use the full namespace. For example, referencing File inside YourClass will find the top-level File class."
Matip has quit [Remote host closed the connection]
<non> Does this mean the File eigenclass (may be using that word wrong) as part of the object inheritance tree gets automatically found by name instead of having to have its full path written out?
tomzx_mac has quit [Ping timeout: 252 seconds]
apok has quit [Quit: apok]
v0n has joined #ruby
<r0bglees0n> non: classes nest scopes the deeper you nest them inside each other, and constant lookup will traverse back up those scopes looking for your constant if it doesn't find it within the callers scope.
<r0bglees0n> non: there's an exception to that rule but i think that answers your question?
guiocava_ has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
tyl has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<non> I think it does but I have much to learn
Cultofmetatron has quit [Read error: Connection reset by peer]
Cultofmetatron has joined #ruby
bionhart has joined #ruby
tyl has joined #ruby
non has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
ioNull has joined #ruby
guiocavalcanti has quit [Ping timeout: 256 seconds]
beneggett has joined #ruby
tealmage has quit [Remote host closed the connection]
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
t0rc has quit [Quit: WeeChat 0.4.0]
alx- has quit [Quit: alx-]
palantir has quit [Ping timeout: 252 seconds]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
Ortuna has quit [Quit: Computer has gone to sleep.]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
tomsthumb has joined #ruby
bionhart has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
palantir has joined #ruby
wallerdev has quit [Quit: wallerdev]
banghouse has quit [Remote host closed the connection]
dallasm has quit [Remote host closed the connection]
ttt has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
saarinen has joined #ruby
Rumsteak has quit [Remote host closed the connection]
ttt has joined #ruby
ananthakumaran has joined #ruby
phipes has quit [Quit: phipes]
ttt_ has joined #ruby
ttt has quit [Read error: Connection reset by peer]
rburton- has joined #ruby
dallasm has joined #ruby
ARCADIVS has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
ipalaus has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Quit: Computer has gone to sleep.]
breadthfirst has quit [Remote host closed the connection]
dmiller has joined #ruby
rippa has joined #ruby
tjbiddle_ has joined #ruby
bionhart has joined #ruby
IceDragon has quit [Quit: Space~~~]
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
jbueza has quit [Quit: Leaving.]
saarinen has quit [Quit: saarinen]
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
blandflakes has quit [Quit: Leaving]
kenneth has quit [Quit: kenneth]
rae__ has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
sleetdrop has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
cooldman224 has quit [Remote host closed the connection]
mogsy has quit [Read error: Connection reset by peer]
phipes has joined #ruby
mogsy has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
bigmac has joined #ruby
mstuefer has joined #ruby
graft has quit [Ping timeout: 256 seconds]
rezzack has quit [Quit: Leaving.]
Artheist has quit [Remote host closed the connection]
jaimef has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
poems has joined #ruby
jaimef has joined #ruby
pitzips has joined #ruby
fungoat has joined #ruby
mstuefer has quit [Ping timeout: 260 seconds]
fungoat has quit [Client Quit]
JimmyNeutron has joined #ruby
jurbat has joined #ruby
nowthatsamatt has quit [Ping timeout: 252 seconds]
fungoat has joined #ruby
bionhart has quit [Remote host closed the connection]
<bigmac> how do i find a files locate by its name?
<bigmac> location
prk has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
dallasm has quit [Remote host closed the connection]
saarinen has joined #ruby
saarinen has quit [Client Quit]
pabloh has joined #ruby
kenneth has joined #ruby
arya has joined #ruby
mmitchell has joined #ruby
bionhart has joined #ruby
eldariof has joined #ruby
palantir has quit [Ping timeout: 256 seconds]
pitzips has quit [Quit: Leaving]
mmitchell has quit [Ping timeout: 256 seconds]
nowthatsamatt has joined #ruby
sailias has quit [Quit: Leaving.]
jamesfung14 has quit [Ping timeout: 248 seconds]
freerobby1 has quit [Quit: Leaving.]
<tomsthumb> bigmac: `which`, somtimes `locate`, `ls -R | grep <name>` is dirty, but `find <start dir> -name <name>` is king
jimg has quit [Remote host closed the connection]
ntus1017 has joined #ruby
Animawish has joined #ruby
S1kx has quit [Quit: Leaving]
mnewton has quit [Ping timeout: 240 seconds]
tealmage has joined #ruby
tomsthumb has quit [Quit: Leaving.]
bean has joined #ruby
dmiller has quit [Remote host closed the connection]
L8D has quit [Ping timeout: 246 seconds]
L8D has joined #ruby
<bigmac> i actuly need to replace my existing function `find | grep #{filename}`
julian-delphiki has quit [Ping timeout: 248 seconds]
chrishunt has quit [Quit: ZzZzZz...]
<bigmac> if file name includes charicters like name[12345].txt then this function dont work
<bigmac> file[2012].txt
fivetwentysix has joined #ruby
daniel_hinojosa has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
icecandy has joined #ruby
rakl has joined #ruby
[Rickmasta] has joined #ruby
rickmasta has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<krz> whats a better way of doing this foo = [[1..500000], [500000..1000000], [1000000..1500000], [1500000..2000000], [2500000..300000]…all the way up to 7000000]
philcrissman has quit [Remote host closed the connection]
ivanoats has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: Computer has gone to sleep.]
Domon has joined #ruby
reset_ has joined #ruby
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
decentrality has joined #ruby
<bigmac> you are going to loop this?
jimg has joined #ruby
reset has quit [Ping timeout: 248 seconds]
reset_ has quit [Ping timeout: 256 seconds]
lewix has joined #ruby
dmiller has quit [Remote host closed the connection]
djwonk has quit [Quit: djwonk]
TheMoonMaster has quit [Excess Flood]
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
umren has joined #ruby
TheMoonMaster has joined #ruby
bionhart has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
kofno has joined #ruby
<tylersmith> krz: you could do something like: (0..7_000_000).step(500_000).each_cons(2).map{|r| [(r.first..r.last)] }
kofno has quit [Ping timeout: 252 seconds]
bionhart has joined #ruby
splittingred has quit [Quit: splittingred]
mstuefer has joined #ruby
ry4nn has quit [Remote host closed the connection]
jbueza has joined #ruby
Dreamer3 has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #ruby
Kricir has joined #ruby
mstuefer has quit [Ping timeout: 260 seconds]
madb055 has quit [Ping timeout: 264 seconds]
rburton- has joined #ruby
banghouse has joined #ruby
banghouse has quit [Remote host closed the connection]
breakingthings has quit [Quit: breakingthings]
brunoro has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
voodoofish has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
choobie has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
noop has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Z_Mass has quit [Quit: Leaving]
eldariof has quit [Ping timeout: 248 seconds]
codecop has joined #ruby
chxane has quit [Quit: Leaving]
carlyle has quit [Remote host closed the connection]
Fretta has quit [Quit: Fretta]
Veejay has quit [Ping timeout: 264 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
nouh has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
Kricir has quit [Remote host closed the connection]
dmiller has joined #ruby
carlyle has joined #ruby
carlyle has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 256 seconds]
voodoofish has joined #ruby
philcrissman has joined #ruby
choobie has joined #ruby
mklappstuhl has joined #ruby
JimmyNeutron has quit [Remote host closed the connection]
Veejay has joined #ruby
ngoldman has joined #ruby
havenwood has joined #ruby
dmiller has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
stewart_ has left #ruby [#ruby]
ananthakumaran has joined #ruby
dmiller has joined #ruby
browndawg has joined #ruby
Domon has joined #ruby
dmiller has quit [Remote host closed the connection]
rickruby has joined #ruby
pabloh has quit [Quit: Ex-Chat]
DonRichie has joined #ruby
undersc0re97 has joined #ruby
clocKwize has joined #ruby
arya has quit [Ping timeout: 248 seconds]
dmiller_ has joined #ruby
greenarrow has joined #ruby
saarinen has joined #ruby
fschuindt has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
nobitanobi has joined #ruby
philcrissman has quit [Remote host closed the connection]
kjellski has joined #ruby
clocKwize has quit [Quit: clocKwize]
generalissimo has joined #ruby
fungoat has quit [Quit: fungoat]
jhn has joined #ruby
eykosioux has quit [Ping timeout: 252 seconds]
ColKurtz has joined #ruby
prk has quit [Ping timeout: 248 seconds]
saarinen has quit [Quit: saarinen]
kil0byte has quit [Remote host closed the connection]
tagrudev has joined #ruby
arietis has joined #ruby
ioNull has joined #ruby
mstuefer has joined #ruby
rippa has joined #ruby
palantir has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
larissa has quit [Quit: Leaving]
Astralum has joined #ruby
mstuefer has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
kaushal has joined #ruby
<kaushal> Hi
lafyn has joined #ruby
<kaushal> I am installing snorby gui application which is a frontend for snort IDS/IPS application on CentOS Linux version 6.4
<kaushal> I am faced with http://fpaste.org/13622/02063136/
<lafyn> mickrip beats up to .5 btc for snort ids/ips application?
<kaushal> Any clue?
<lafyn> to represent a plastic faced fake smile consumerist dictatorship
GeissT_ has joined #ruby
apeiros has quit [Remote host closed the connection]
GeissT_ has quit [Client Quit]
apalmblad has quit [Quit: apalmblad]
robottinosino has quit [Ping timeout: 264 seconds]
andikr has joined #ruby
recycle has joined #ruby
nobitanobi has quit [Ping timeout: 256 seconds]
GeissT has quit [Ping timeout: 276 seconds]
lafyn has quit [Read error: Connection reset by peer]
[[thufir]] has quit [Quit: Leaving.]
aganov has joined #ruby
dmiller_ has quit [Remote host closed the connection]
freeayu has joined #ruby
generalissimo has quit [Remote host closed the connection]
roadt_ has quit [Ping timeout: 248 seconds]
bigmac has quit [Ping timeout: 248 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
falood has quit [Remote host closed the connection]
roadt_ has joined #ruby
ipalaus has joined #ruby
clocKwize has joined #ruby
ivanoats has quit [Quit: 'night]
kil0byte has joined #ruby
nomenkun has quit [Remote host closed the connection]
persand has joined #ruby
jhn has quit [Quit: jhn]
KALOZzz has joined #ruby
KALOZzz has left #ruby [#ruby]
ivanoats has joined #ruby
kirkstrobeck has quit [Quit: kirkstrobeck]
ivanoats has quit [Remote host closed the connection]
XtraGas has joined #ruby
decentrality has quit [Quit: decentrality]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kil0byte has quit [Remote host closed the connection]
Elhu has joined #ruby
w|t has joined #ruby
ayaz has joined #ruby
kil0byte has joined #ruby
jprovazn_away is now known as jprovazn
saarinen has joined #ruby
kaushal has quit [Ping timeout: 256 seconds]
kaushal has joined #ruby
Macaveli has joined #ruby
ngoldman has quit [Quit: waka waka]
<Macaveli> When Can you use session or env variables in ruby?
neku has joined #ruby
<havenwood> macaveli: E.g.: ENV['PATH']
<Macaveli> thanks!
girija has joined #ruby
dmiller has joined #ruby
mafolz has joined #ruby
clocKwize has quit [Ping timeout: 248 seconds]
<Macaveli> hidden_field_tag to pass image_tag source is this a clean way of doing things?
saarinen has quit [Quit: saarinen]
workmad3 has joined #ruby
<havenwood> macaveli: Dunno, might have more luck with that one in #RubyOnRails.
DonRichie has quit [Quit: Verlassend]
phipes has quit [Quit: phipes]
eykosioux has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
pduin has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
jimg has quit [Remote host closed the connection]
kaushal has quit [Quit: leaving]
eykosioux has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
palantir has quit [Ping timeout: 276 seconds]
<havenwood> kaushal: You have gcc and automake and such installed?: sudo yum install -y gcc automake
<havenwood> kau, oh oops, he left.
ia___ has joined #ruby
[bugg] has joined #ruby
mklappstuhl has joined #ruby
Animawish has quit [Quit: Animawish]
kofno has quit [Ping timeout: 260 seconds]
Cultofmetatron has quit [Remote host closed the connection]
mstuefer has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
evelyette has quit [Quit: Leaving]
sleetdrop has joined #ruby
dhruvasagar has joined #ruby
jimg has joined #ruby
arturaz has joined #ruby
<tyl> does anyone here have rubber capistrano experience on amazon ec2?
falood has joined #ruby
mstuefer has quit [Ping timeout: 260 seconds]
ParanoidSP has joined #ruby
statarb3 has joined #ruby
sleetdrop has quit [Ping timeout: 252 seconds]
bionhart has quit [Remote host closed the connection]
ParanoidSP_ has joined #ruby
ParanoidSP_ has left #ruby [#ruby]
browndawg has joined #ruby
ntus1017 has quit [Ping timeout: 256 seconds]
sleetdrop has joined #ruby
pieterza has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
tbrock_ has joined #ruby
dangerousdave has joined #ruby
Spami has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
persand has quit [Quit: persand]
rezzack has joined #ruby
pagios has quit [Ping timeout: 245 seconds]
alup has joined #ruby
XtraGas has quit [Quit: I'm sweating like Gary Glitter in Mothercare]
ofd2 has quit [Ping timeout: 250 seconds]
krz has quit [Quit: krz]
jbueza has quit [Quit: Leaving.]
r0bglees0n has quit [Ping timeout: 248 seconds]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
lukeholder has joined #ruby
sideshowcoder has quit [Read error: Operation timed out]
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
<lukeholder> hi everyone… I am trying to make a command line app and having trouble with required parameters, I know OptionParser has a better way to require params. This works but i feel there should be a better way: https://gist.github.com/lukeholder/3875bc1d7dfb52d768fc
banjara has joined #ruby
mklappstuhl has quit []
mklappstuhl has joined #ruby
tealmage has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
corehook has joined #ruby
jbpros has joined #ruby
sideshowcoder has joined #ruby
falood has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 246 seconds]
elaptics`away is now known as elaptics
persand has joined #ruby
whowantstolivefo has joined #ruby
krz has joined #ruby
Al_ has joined #ruby
`p has quit [Read error: Connection reset by peer]
madb055 has joined #ruby
browndawg has quit [Quit: Leaving.]
arya has joined #ruby
roadt_ has quit [Read error: Operation timed out]
browndawg has joined #ruby
falood has joined #ruby
whowantstolivefo has quit [Client Quit]
browndawg has quit [Client Quit]
browndawg has joined #ruby
blaxter has joined #ruby
Al_ has quit [Client Quit]
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby
Cultofmetatron has joined #ruby
devoldmx has joined #ruby
BizarreCake has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
w|t has joined #ruby
browndawg has quit [Quit: Leaving.]
gstamp has quit [Quit: Computer has gone to sleep.]
w|t has quit [Client Quit]
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
whowantstolivefo has joined #ruby
obs has joined #ruby
jimg has quit [Remote host closed the connection]
statarb3 has quit [Ping timeout: 256 seconds]
horrror has joined #ruby
Kar- has joined #ruby
<lukeholder> hi everyone… I am trying to make a command line app and having trouble with required parameters, I know OptionParser has a better way to require params. This works but i feel there should be a better way: https://gist.github.com/lukeholder/3875bc1d7dfb52d768fc
zeeraw has joined #ruby
tockitj has joined #ruby
dmiller has joined #ruby
rickruby has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Ping timeout: 256 seconds]
rcs has quit [Ping timeout: 256 seconds]
teclator has joined #ruby
roadt_ has joined #ruby
brain_shim has quit [Ping timeout: 256 seconds]
elaptics is now known as elaptics`away
k13n has joined #ruby
jimg has joined #ruby
timonv has quit [Remote host closed the connection]
threesome has joined #ruby
timonv has joined #ruby
banjara has quit [Quit: Leaving.]
dmiller has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
rae__ has quit [Quit: rae__]
rcs has joined #ruby
brain_shim has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
reset has joined #ruby
reset has quit [Client Quit]
bionhart has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
mstuefer has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
eykosioux has joined #ruby
kil0byte has joined #ruby
ehaliewicz has quit [Ping timeout: 248 seconds]
madb055 has quit [Ping timeout: 246 seconds]
mstuefer has quit [Ping timeout: 260 seconds]
ferdev has quit [Quit: ferdev]
lukeholder has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
nomenkun has joined #ruby
tommyvyo has quit [Quit:]
w|t has joined #ruby
cj3kim has quit [Remote host closed the connection]
persand has quit [Quit: persand]
Macaveli has quit [Ping timeout: 250 seconds]
troessner has joined #ruby
mstuefer has joined #ruby
mad_hatter_ has joined #ruby
marr has joined #ruby
JohnBat26 has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
mengu has joined #ruby
gyre007 has joined #ruby
roadt_ has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
Soliah has quit [Quit: Soliah]
khushildep has joined #ruby
coderhs has joined #ruby
arya has quit [Ping timeout: 248 seconds]
chandankumar has joined #ruby
timonv has joined #ruby
niceguyjames has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
chandankumar has quit [Max SendQ exceeded]
chandankumar has joined #ruby
noop has quit [Ping timeout: 246 seconds]
dangerousdave has quit [Quit: Leaving...]
nmeum has joined #ruby
alexmreis has joined #ruby
nmeum has quit [Client Quit]
noname001 has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
katsrc has joined #ruby
mahmoudimus has joined #ruby
undersc0re97 has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
ephemerian has joined #ruby
[bugg] is now known as _KGBot_
roadt_ has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
jimg has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
ferdev has joined #ruby
elaptics`away is now known as elaptics
ijaz has joined #ruby
jgrevich has quit [Remote host closed the connection]
chandankumar has quit [Ping timeout: 248 seconds]
poems has left #ruby [#ruby]
seich- has joined #ruby
swistak35 has quit [Ping timeout: 245 seconds]
<kjellski> A good link on how to match against special characters in ruby 1.9.3? Characters like ß, ä, ö etc.
roadt_ has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
roadt_ has joined #ruby
sonne has quit [Ping timeout: 264 seconds]
recycle has quit [Ping timeout: 260 seconds]
tomzx_mac has joined #ruby
noop has joined #ruby
ijaz has quit [Ping timeout: 248 seconds]
katsrc has quit [Quit: leaving]
<lupine> kjellski, it gets encoding-fun :)
<lupine> you can just /ß/u if your encoding is UTF-8
<kjellski> lupine: can I have some please? ;)
<lupine> "aß" =~ /ß/u => 1
<kjellski> lupine: my problem is that I'm not able to write a ß character into a string since ruby won't evaluate the string...
<lupine> but then there's: "aß".force_encoding("ASCII-8BIT") =~ /ß/u
<lupine> Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
<lupine> kjellski, I don't know what you mean
<kjellski> lupine: it sais: invalid multibyte char (US-ASCII)
<lupine> right, so your encoding is wrong
<lupine> welcome to a world of pain
<nobitanobi> Guys, I have a question about Bundler groups. Once I define groups in my Gemfile, how do I use them in terms of requiring or not depending on the group (environment) I am in?
Faris11 has quit [Ping timeout: 248 seconds]
<kjellski> lupine: I just want to use utf8 everywhere :( *sad*
<lupine> so then you want to .force_encoding("UTF8") probably
<lupine> well
<lupine> probably not
bionhart has quit [Remote host closed the connection]
<kjellski> nobitanobi: just write it down as they were not in groups...
brtdv has joined #ruby
<nobitanobi> what??
nari_ has quit [Ping timeout: 245 seconds]
<nobitanobi> I am trying to understand how the groups work though...
undersc0re97 has joined #ruby
<nobitanobi> I am used to the Rails way, where there is :development, :production, :test and voila, everything works
<nobitanobi> but in a straight Ruby project, I fail to see how to use the groups
emergion has joined #ruby
<kjellski> nobitanobi: gem "foo", :group => :development, :require => false becomes gem "foo", :require => false in the block with group :development do ...
<kjellski> nobitanobi: or I don't get your question right...
<lupine> kjellski, mystring.encode("UTF-8") will work for some stuff
browndawg has quit [Quit: Leaving.]
<lupine> every now and again, you'll get Encoding::UndefinedConversionError
browndawg has joined #ruby
<kjellski> lupine: I laughed when I read the "some"
browndawg has quit [Client Quit]
<nobitanobi> my question is, when requiring the gems, how does Bundle relate it to which group is actually in?
<kjellski> lupine: at what point will I start to cry?
persand has joined #ruby
browndawg has joined #ruby
Criztian has joined #ruby
<kjellski> nobitanobi: it can be in more then one, just don't put it in any and write: gem "foo", ">= 4.2.0", :group => [:development, :test]
Al_ has joined #ruby
<nobitanobi> I am not expressing well enough
rezzack has quit [Quit: Leaving.]
<nobitanobi> I will try to dig a little bit more and do a proper question
<kjellski> nobitanobi: sorry, I guess :/
<lupine> kjellski, when you start scanning all incoming strings and replacing certain byte sequences, I guess
<lupine> this isn't a fun game
whitedawg has joined #ruby
Trynemjoel has joined #ruby
dmiller has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
browndawg has quit [Read error: Operation timed out]
mklappstuhl has joined #ruby
jamesaxl has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
tiagonobre has quit [Quit: Leaving]
browndawg has joined #ruby
johnkary has quit [Quit: @johnkary]
xcv has joined #ruby
<kjellski> is there a way to tell ruby globally to always use utf8?
pcarrier_ has quit [Ping timeout: 248 seconds]
timmow has joined #ruby
mklappstuhl has quit [Ping timeout: 256 seconds]
browndawg has left #ruby [#ruby]
monkegjinni has joined #ruby
`p has joined #ruby
mklappstuhl has joined #ruby
pcarrier_ has joined #ruby
cofin has quit [Quit: cofin]
rickruby has joined #ruby
horrror has quit [Quit: horrror]
xcv has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
rdark has joined #ruby
xcv has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
coderhs has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
henn1nk has quit [Ping timeout: 264 seconds]
klaas has quit [Read error: Connection reset by peer]
klaas- has joined #ruby
mtlatif__ has quit [Ping timeout: 264 seconds]
rickruby has quit [Ping timeout: 248 seconds]
tagrudev has quit [Ping timeout: 264 seconds]
Guest85414_ has quit [Ping timeout: 264 seconds]
martxel has quit [Ping timeout: 264 seconds]
Muz has quit [Ping timeout: 264 seconds]
error404 has quit [Ping timeout: 264 seconds]
error404 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tagrudev has joined #ruby
Muz has joined #ruby
martxel has joined #ruby
vlad_starkov has joined #ruby
xcv has quit [Ping timeout: 248 seconds]
martxel is now known as Guest3021
henn1nk has joined #ruby
vlad_sta_ has joined #ruby
julianhurley has joined #ruby
d11wtq has quit [Ping timeout: 252 seconds]
iMadper has quit [Ping timeout: 246 seconds]
klaas- is now known as klaas
afd__ is now known as tibi
Nuck has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
_KGBot_ is now known as kn0tsel
hamed_r has joined #ruby
skattyadz has joined #ruby
adac has joined #ruby
Nuck has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
<adac> i have a "updated_at" database field/ timestamp. I now wanna check if the updated_at timestamp is less then a minute ago. I was wondering how to do that at best?
pieterza has quit [Remote host closed the connection]
tomkad has joined #ruby
khushildep has quit [Quit: khushildep]
cj3kim has quit [Ping timeout: 248 seconds]
jastix has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<Sp4rKy> I owuld like to generate list of hash more or less automatically
mklappstuhl has joined #ruby
nomenkun has joined #ruby
emergion has joined #ruby
<Sp4rKy> for ex : a = [ 2.times do |i| { "a" => i, "b" => "foo#{i}" } end ] , the resutl would be [ { "a" => 1, "b" => "foo1" }, { "a" => 2 , "b" => "foo2" } ]
<Sp4rKy> is it possible ?
<hoelzro> Sp4rKy: you could use map
<hoelzro> (1..2).map { |i| { :a => i, :b => "foo#{i}" } }
Iszak has joined #ruby
<hoelzro> >> (1..2).map { |i| { :a => i, :b => "foo#{i}" } }
<eval-in> hoelzro => [{:a=>1, :b=>"foo1"}, {:a=>2, :b=>"foo2"}] (http://eval.in/31249)
Iszak has quit [Max SendQ exceeded]
<Sp4rKy> let's try
Iszak has joined #ruby
<Sp4rKy> almost
fphilipe has joined #ruby
skattyadz has quit [Quit: skattyadz]
<nobitanobi> Hi guys, any suggestion on tutorials on REST-API designs with Sinatra? I have doubts on how to do any kind of Authentication
mockra has quit [Remote host closed the connection]
tvw has joined #ruby
<lupine> the auth is the easy bit - go for http basic or digest, job done ^^
slainer68 has joined #ruby
<lupine> also, do keep an eye on rails-api and HAL+JSON
cypher1 has joined #ruby
<nobitanobi> mmmmm
<cypher1> Bundler::GemfileNotFound
<cypher1> how to fix it ??
<cypher1> help please
<nobitanobi> lupine, do you suggest rails-api over sinatra?
timonv has joined #ruby
<cypher1> ghost@flames # bundle install
<cypher1> Bundler::GemfileNotFound
<cypher1> help please
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
lyanchih has quit [Quit: lyanchih]
adambeynon has joined #ruby
jbpros has quit [Quit: jbpros]
kil0byte has quit [Remote host closed the connection]
<fuleo2> how do you print a variable literally... say variable contain "Hello \n World". Instead of converting \n into newline. it literally output \n
jbpros has joined #ruby
<canton7> fuleo2, use p rather than puts
gyre007 has quit [Remote host closed the connection]
nouh has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<lupine> nobitanobi, I've never used rails-api, so can't really comment
<lupine> I see no reason why you couldn't shoehorn it into sinatra if you tried hard enough, though
<lupine> hmm. Anyone else have a solution for this? - Net::HTTP.get(URI.parse("http://[::1]:81")) fails with SocketError: getaddrinfo: Name or service not known
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<lupine> hah, it's fixed in ruby2
<lupine> so that's my own fault
<fuleo2> Thanks canton7
viszu has joined #ruby
zeeraw has joined #ruby
ExxKA has joined #ruby
cypher1 has left #ruby [#ruby]
swistak35 has joined #ruby
GeissT has joined #ruby
thone_ has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
ColKurtz has quit [Quit: sleeping]
lkba has quit [Ping timeout: 256 seconds]
nomenkun has quit [Remote host closed the connection]
thone has joined #ruby
BeLucid has joined #ruby
ferdev has quit [Quit: ferdev]
preller has quit [Ping timeout: 264 seconds]
skasio_ has joined #ruby
nomenkun has joined #ruby
jimg has joined #ruby
skasio has quit [Ping timeout: 248 seconds]
recycle has joined #ruby
jimg has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
reset has joined #ruby
recycle has quit [Ping timeout: 246 seconds]
k610 has joined #ruby
mockra has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
aboudreault has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Ping timeout: 256 seconds]
julianhurley has quit [Read error: Connection reset by peer]
s3m73x has quit [Ping timeout: 240 seconds]
BonSequitur has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby
s3m73x has joined #ruby
mad_hatter_ has quit [Quit: Leaving.]
d11wtq has joined #ruby
jbpros has joined #ruby
eykosioux has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
browndawg has joined #ruby
johchri has joined #ruby
daniel_- has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
eykosioux has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
viszu has quit [Quit: Leaving.]
jurbat has quit [Quit: Computer has gone to sleep.]
Morrolan has quit [Ping timeout: 256 seconds]
Dwarf has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
`p has quit [Read error: Connection reset by peer]
viszu has joined #ruby
robottinosino has joined #ruby
machuga|away is now known as machuga
aboudreault has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
sayan has joined #ruby
seich- has quit [Ping timeout: 245 seconds]
`p has joined #ruby
gyre007 has joined #ruby
thebastl has joined #ruby
Morrolan has joined #ruby
guiocavalcanti has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Morrolan has quit [Ping timeout: 256 seconds]
hackeron has quit [Remote host closed the connection]
chandankumar has joined #ruby
kil0byte has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
dustint has joined #ruby
Dwarf has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
obs_ has joined #ruby
Morrolan has joined #ruby
obs has quit [Ping timeout: 252 seconds]
hackeron has joined #ruby
lessless has joined #ruby
mmitchell has joined #ruby
<lessless> If I need to brake{}.merge, which style is good, {}\n.merge or {}.\merge ?
obs_ is now known as obs
<lessless> {}.\nmerge ?
<Spug> what
<Spug> oh
<Spug> had to parse that for a bit
Spug is now known as tobiasvl
<tobiasvl> and translate "brake" to "break" ;)
<tobiasvl> what's the code? i'd keep the closing paren and everything after it on its own line.
Guest3021 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
<tobiasvl> {\n blah blah \n}.merge
havenwood has quit [Remote host closed the connection]
pcarrier_ has joined #ruby
nobitanobi has quit [Read error: Operation timed out]
nomenkun has quit [Remote host closed the connection]
k13n has quit [Ping timeout: 260 seconds]
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby
roadt_ is now known as roadt
Morrolan has quit [Ping timeout: 276 seconds]
arietis has joined #ruby
mockra has joined #ruby
sayan has joined #ruby
nfk has quit [Quit: yawn]
slainer68 has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
tealmage has joined #ruby
timonv has quit [Remote host closed the connection]
nfk has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
Morrolan has joined #ruby
timonv has joined #ruby
senayar_ has joined #ruby
hamed_r has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 248 seconds]
senayar_ has quit [Remote host closed the connection]
skattyadz has joined #ruby
tomzx_mac has quit [Ping timeout: 252 seconds]
senayar_ has joined #ruby
seich- has joined #ruby
kil0byte_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
mad_hatter_ has joined #ruby
Vert has quit [Read error: Connection reset by peer]
camilasan has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 252 seconds]
ntus1017 has joined #ruby
browndawg has quit [Read error: Operation timed out]
vlad_sta_ has quit [Remote host closed the connection]
Vert has joined #ruby
S1kx has joined #ruby
S1kx has joined #ruby
nomenkun has joined #ruby
persand has quit [Quit: persand]
sonne has joined #ruby
iaj has joined #ruby
chase-work has joined #ruby
jprovazn has quit [Quit: Leaving]
hdcimy has joined #ruby
viszu has quit [Ping timeout: 252 seconds]
falood has quit [Remote host closed the connection]
skattyadz has quit [Ping timeout: 245 seconds]
S1kx has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
Astral_ has joined #ruby
browndawg has joined #ruby
threesome has quit [Read error: Operation timed out]
S1kx has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
threesome has joined #ruby
antint has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
<antint> Hi, I'm running ruby 1.9.3p392 and can't get Thread.current to work inside a thread?
<antint> I'll get the main thread instead of the running thread
akam-it has joined #ruby
<apeiros> antint: "can't get to work" is n unusable problem description
<apeiros> *an
machuga is now known as machuga|brb
machuga|brb is now known as machuga|away
ghr has joined #ruby
<antint> Sorry, I create a new thread with Thread.new { puts Thread.current.inspect } shows me details of the main thread?
zeeraw has joined #ruby
dawkirst has joined #ruby
<apeiros> and how do you know it shows you the details of the main thread?
<antint> By putting Thread.main before executing the main thread
browndawg has quit [Quit: Leaving.]
<apeiros> ok, look, puzzling is all fun and good but not here.
<apeiros> paste the *full* code you use to see your problem
<apeiros> describe the output
browndawg has joined #ruby
<apeiros> describe what you expected and how it differs from what you've got
<apeiros> then we have a workable problem description
browndawg has quit [Client Quit]
camilasan has joined #ruby
<tobiasvl> and make a gist with all the relevant code
browndawg has joined #ruby
<apeiros> right. by "paste" I mean "preferably on gist.github.com"
<tobiasvl> didn't see that you already told him/her to paste the code ;)
johchri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl> http://www.catb.org/esr/faqs/smart-questions.html should seriously be in the topic :)
<apeiros> http://pastie.org/7942998 example of it working correctly
browndawg has quit [Client Quit]
browndawg has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
viszu has joined #ruby
<apeiros> antint: ugh, why pastebin? there are ad-free paste services…
kjellski has quit [Quit: This computer has gone to sleep]
khushildep has joined #ruby
tomkad has quit [Ping timeout: 260 seconds]
mtlatif__ has joined #ruby
julianhurley has quit [Read error: Connection reset by peer]
<antint> Sorry, didn't know that. Do you want me to post it there instead?
Guest85414_ has joined #ruby
<apeiros> no, but for the future
senayar_ has quit [Remote host closed the connection]
<antint> OK, thanks
lkba has joined #ruby
julianhurley has joined #ruby
`p has quit [Ping timeout: 248 seconds]
<apeiros> your issue is `THREAD started: #<Thread:0x000000005dc5f0 run>` which looks like the main thread printed earlier?
<antint> Yes, exactly
yacks has quit [Ping timeout: 260 seconds]
<antint> When I try it in a vanilla script it works. But not here inside a nested block.
vlad_starkov has joined #ruby
kjellski has joined #ruby
daniel_- has quit [Read error: Operation timed out]
<apeiros> I wonder whether passthrough somehow transfers in what thread the code is being executed. I'm not aware that this is possible, but I haven't written that much threaded code.
davetherat has quit [Remote host closed the connection]
<antint> OK, but thank you very much for trying
cj3kim has joined #ruby
davetherat has joined #ruby
<apeiros> ah well, yes, it is possible
<apeiros> let me come up with an example. might be what is happening.
<antint> Great! Thanks!
evenix has joined #ruby
k13n has joined #ruby
tommyvyo has joined #ruby
<apeiros> I'm pretty sure passthrough does not immediately execute, but passes the block around
<antint> Good point
monkegjinni has joined #ruby
Shrink has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
cj3kim has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
postmodern has quit [Quit: Leaving]
adambeynon has joined #ruby
roadt_ has joined #ruby
niklasb has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<apeiros> antint: an example of what might be going on: http://pastie.org/7943039
monkegjinni has joined #ruby
tommyvyo has quit [Quit:]
jcromartie has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
xcv has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
roadt has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
Coffers has joined #ruby
<antint> apeiros: Thank you very much!
roadt_ has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
pskosinski has joined #ruby
browndawg has joined #ruby
senayar has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
bluOxigen has joined #ruby
F1skr has joined #ruby
antint has quit [Ping timeout: 252 seconds]
jprovazn has joined #ruby
sleetdrop has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
persand has joined #ruby
mockra has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lyanchih has joined #ruby
`p has joined #ruby
kofno has joined #ruby
fphilipe has quit [Remote host closed the connection]
Shrink has joined #ruby
tealmage has joined #ruby
Guest27861 has quit [Ping timeout: 260 seconds]
eka has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
machuga|away is now known as machuga
monkegjinni has joined #ruby
daniel_- has joined #ruby
ParanoidSP has quit [Remote host closed the connection]
Ortuna has joined #ruby
skasio_ has quit [Quit: Leaving]
mklappstuhl has quit [Remote host closed the connection]
arya has joined #ruby
viszu has quit [Quit: Leaving.]
tealmage has quit [Ping timeout: 276 seconds]
alexgordon has joined #ruby
ParanoidSP has joined #ruby
mmitchell has quit [Remote host closed the connection]
senayar has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
senayar has quit [Remote host closed the connection]
jamesaxl has joined #ruby
senayar has joined #ruby
mikecmpbll has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
ttt_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
zastaph has joined #ruby
julianhurley has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
fivetwentysix has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
arya has quit [Ping timeout: 248 seconds]
jbpros has joined #ruby
Xeago has joined #ruby
skasio has joined #ruby
skattyadz has joined #ruby
alexmreis has left #ruby [#ruby]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
joshu has quit [Ping timeout: 246 seconds]
fphilipe has joined #ruby
hogeo has quit [Remote host closed the connection]
arya has joined #ruby
skattyadz has quit [Ping timeout: 252 seconds]
arya_ has joined #ruby
buscon has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
buscon has quit [Remote host closed the connection]
nkr has joined #ruby
preller has joined #ruby
arya has quit [Ping timeout: 248 seconds]
sailias has joined #ruby
Mon_Ouie has joined #ruby
jkamenik has joined #ruby
jkamenik has left #ruby [#ruby]
ericmathison has quit [Quit: leaving]
nomenkun has quit [Remote host closed the connection]
d-snp has quit [Ping timeout: 252 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
niceguyjames has joined #ruby
icecandy has quit [Remote host closed the connection]
LennyLinux has joined #ruby
kil0byte_ has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
fphilipe has quit []
fphilipe has joined #ruby
kil0byte has joined #ruby
fphilipe has quit [Remote host closed the connection]
Guest27861 has joined #ruby
fphilipe has joined #ruby
jonathanwallace has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
sailias has quit [Quit: Leaving.]
jbpros has joined #ruby
devoldmx3 has joined #ruby
alx- has joined #ruby
nomenkun has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
johchri has joined #ruby
jani has quit [Ping timeout: 252 seconds]
fphilipe has quit [Remote host closed the connection]
kaushal has joined #ruby
<kaushal> Hi
gasbakid has joined #ruby
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
cj3kim has joined #ruby
nari_ has joined #ruby
jbpros_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
ExxKA has quit [Quit: This computer has gone to sleep]
<hoelzro> kaushal: what OS are you on?
Xeago has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Takehiro has joined #ruby
yshh has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 245 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
jbpros has quit [Ping timeout: 252 seconds]
jbpros_ is now known as jbpros
niceguyjames has quit [Quit: Computer has gone to sleep.]
johchri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geekbri has joined #ruby
backjlack has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
monkegjinni has quit [Remote host closed the connection]
hackeron has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
hackeron has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fphilipe has joined #ruby
Shrink has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
breadthfirst has joined #ruby
mark_locklear has joined #ruby
johchri has joined #ruby
eykosiou_ has joined #ruby
jbpros has quit [Quit: jbpros]
nomenkun has quit [Remote host closed the connection]
rdark has joined #ruby
jbpros has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
swex has joined #ruby
johchri has quit [Client Quit]
eykosioux has quit [Ping timeout: 256 seconds]
norm has quit [Ping timeout: 252 seconds]
devoldmx3 has quit [Ping timeout: 256 seconds]
ntus1017 has quit [Remote host closed the connection]
reppard has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<reppard> hello
<hoelzro> reppard: hi
reppard has quit [Client Quit]
norm has joined #ruby
danslo has joined #ruby
nomenkun has joined #ruby
monkegjinni has joined #ruby
mockra has joined #ruby
vlad_starkov has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
Takehiro has joined #ruby
niceguyjames has quit [Ping timeout: 245 seconds]
yashshah has joined #ruby
xcv has quit [Remote host closed the connection]
Bry8Star has quit [Remote host closed the connection]
niceguyjames has joined #ruby
Takehiro has quit [Remote host closed the connection]
Shrink has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Shrink has quit [Changing host]
Shrink has joined #ruby
mockra has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
tomkad has joined #ruby
monkegjinni has joined #ruby
Bry8Star has joined #ruby
jtharris has joined #ruby
wargasm has quit [Ping timeout: 245 seconds]
tyl has joined #ruby
cofin has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
chandankumar has quit [Remote host closed the connection]
Zai00 has joined #ruby
monkegjinni has joined #ruby
nomenkun has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
coderhs has quit [Read error: Connection reset by peer]
chrisja has joined #ruby
Takehiro has joined #ruby
k13n has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
tommyvyo has joined #ruby
apod has joined #ruby
backjlack has joined #ruby
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
pcarrier_ has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
philcrissman has joined #ruby
w|t has quit [Quit: Textual IRC Client: www.textualapp.com]
RiftyMcF3arless has quit [Ping timeout: 252 seconds]
atmosx has quit [Remote host closed the connection]
pcarrier_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<apeiros> banisterfiend: ping
<banisterfiend> apeiros: su[
<banisterfiend> p
kobain has joined #ruby
ntus1017 has joined #ruby
<apeiros> banisterfiend: when I do `module Kernel; alias q exit; end` in pryrc, q is not truly equivalent to exit
<kaushal> hoelzro: apologies was away
atmosx has joined #ruby
<apeiros> is exit in pry implemented as a pry command?
<kaushal> I am on CentOS Linux 6.4
monkegjinni has joined #ruby
<apeiros> or in another way treated specially?
<hoelzro> kaushal: have you installed the devel package for Ruby?
<kaushal> nope
ntus1017 has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
<banisterfiend> apeiros: yeah, but only if you specifically type 'exit' (with no preceding space) it'll invoke the pry command. if you alias q to exit, it should be the real ruby exit that gets called
<banisterfiend> we dont override the exit method
<banisterfiend> we just shadow it with our command (unless you prepend a space)
<apeiros> ok, then that'd be the reason
breadthfirst has quit [Remote host closed the connection]
<apeiros> how can I alias the pry command `exit` to `q`?
<hoelzro> kaushal: then you should do that =)
<banisterfiend> apeiros: Pry.commands.alias_command "q", "exit"
<apeiros> awsumm! thx
<banisterfiend> np
adambeynon has joined #ruby
jgarvey has joined #ruby
nezumi has quit [Ping timeout: 248 seconds]
corehook has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
pandawarrior has joined #ruby
skattyadz has joined #ruby
kindjal has joined #ruby
MrZYX|off is now known as MrZYX
monkegjinni has quit [Read error: Connection reset by peer]
<pandawarrior> hi all. i was wondering if there was a way to evaluate if two things are like each other, so - for instance 2.5 is like '2.5' the == sign obviously doesn't work, as neither or the same type. I'm looking for similar content, rather than same type.
tk_ has joined #ruby
monkegjinni has joined #ruby
skattyadz has quit [Client Quit]
DestinyAwaits has joined #ruby
falood has joined #ruby
<pandawarrior> also, without to_typing either.
<tobiasvl> >> 2.5 == '2.5'.to_f
<eval-in> tobiasvl => true (http://eval.in/31267)
<tobiasvl> oh.
<pandawarrior> :)
<pandawarrior> i suppose i can regex it?
coderhs has joined #ruby
monkegjinni has quit [Remote host closed the connection]
banisterfiend is now known as banister`shop
jbpros has joined #ruby
breadthfirst has joined #ruby
xcv has joined #ruby
iMadper has joined #ruby
`p has quit [Ping timeout: 256 seconds]
mklappstuhl has joined #ruby
Nanuq has quit [Read error: Operation timed out]
tommyvyo has quit [Quit:]
jurbat has joined #ruby
Spami has quit [Quit: Leaving]
monkegjinni has joined #ruby
carloslopes has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
LaPetiteFromage has joined #ruby
yshh has joined #ruby
Takehiro has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
breadthfirst has quit [Remote host closed the connection]
cj3kim has joined #ruby
l33 has joined #ruby
Coffers has quit [Quit: Computer has gone to sleep.]
jurbat has quit [Ping timeout: 260 seconds]
lyanchih has quit [Ping timeout: 245 seconds]
splittingred has joined #ruby
chandankumar has joined #ruby
devoldmx has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
cj3kim has quit [Ping timeout: 252 seconds]
fphilipe has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Nanuq has joined #ruby
monkegjinni has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
breakingthings has joined #ruby
tomzx_mac has joined #ruby
gaahrdner has joined #ruby
ewag_ has joined #ruby
thebastl has quit [Read error: Operation timed out]
chandankumar has quit [Quit: Leaving]
ewag has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
Nanuq has quit [Read error: Operation timed out]
kindjal has quit [Quit: Computer has gone to sleep.]
kil0byte_ has joined #ruby
fridim__ has joined #ruby
akhet has joined #ruby
juarlex has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
juarlex has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
juarlex has joined #ruby
krawchyk has joined #ruby
ParanoidSP has quit [Remote host closed the connection]
monkegjinni has joined #ruby
cj3kim has joined #ruby
mmitchell has joined #ruby
mockra has joined #ruby
vlad_starkov has joined #ruby
codecop has quit [Remote host closed the connection]
kil0byte has joined #ruby
Roa has quit [Read error: Operation timed out]
k3rn3lito has quit [Ping timeout: 264 seconds]
fermion has joined #ruby
kil0byte_ has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
wmoxam has joined #ruby
wallerdev has joined #ruby
arturaz has quit [Quit: Leaving]
ExxKA has joined #ruby
k3rn3lito has joined #ruby
mockra has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
julianhurley has joined #ruby
fuzzyhorns has joined #ruby
XtraGas has joined #ruby
<Xeago> does anyone know of a decent ssh client and terminal emulator for windows?
fridim__ has quit [Ping timeout: 276 seconds]
theRoUS has quit [Ping timeout: 248 seconds]
<apeiros> putty?
jerius has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<Xeago> putty is crap :\
monkegjinni has joined #ruby
<ericwood> yep.
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<ericwood> I don't use winders, but for future reference, are there any SSH clients that *don't* suck for windows?
<ericwood> Putty has the worst UI I've ever seen...
ipalaus has quit [Ping timeout: 240 seconds]
madb055 has joined #ruby
<Xeago> nope, and after 30minutes I am settling with putty again
<ericwood> :'(
<Xeago> hope the chrome tty terminal thingy comes to stable soon
<ericwood> I can't stand doing dev work on windows for reasons like this...
<lupine> you could take all of cygwin
<Xeago> oh no
dhruvasagar has quit [Ping timeout: 245 seconds]
<lupine> :p
<Xeago> not on my gf's laptop ;p
<lupine> putty's the best of a bad bunch then
<ericwood> I like how cmd.exe can't possibly resize wider than 80 chars
<ericwood> because lets all live in the year 1980
<lupine> well, that's a feature, not a bug
<apeiros> doesn't windows have a new one?
ferdev has joined #ruby
<s_e> powershell even suffers the same fate
<lupine> keeps us developers honest
<apeiros> powershell I believe?
Dummies_freelanc has joined #ruby
* apeiros is honest on 160 columns, thank you
<ericwood> really, even powershell is restricted to that?
<s_e> the chrome around it is exactly the same as cmd
<ericwood> that's depressing
<apeiros> rofl
ipalaus has joined #ruby
<apeiros> does windows still enforce 3 letter suffixes? afaik not?
<ericwood> pry OS X from my cold dead hands
<s_e> you can actually adjust the buffer width in properties menu
<s_e> but it's dumb that you can't do it by hand
<ericwood> aaaah, really?!
<s_e> yeah mine is set to 200 wide
tommyvyo has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
solidoodlesuppor has joined #ruby
johnmilton has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tesuki has joined #ruby
blaxter has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
sambao21 has joined #ruby
Aristata has joined #ruby
<Aristata> I am trying to do a query like this : User.first(:id.not => [1, 2]). This always gives me no results, are you not able to pass an array of items not to be into the not datamapper query?
<MrZYX> Aristata: -> #RubyOnRails
<MrZYX> oh datamapper, sorry
<Aristata> I have asked there
<Aristata> This is still ruby
<apeiros> that argument doesn't work
<apeiros> or do you escalate to #computer and #math if you don't get an answer here?
persand has quit [Quit: persand]
r0bglees0n has joined #ruby
lupine is now known as [pm]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<apeiros> if you must, then at least use an argument which works. like: maybe there's DM users here who don't hang out in #datamapper
[pm] is now known as lupine
<ericwood> lol
lupine is now known as pm]lupine[
`p has joined #ruby
pm]lupine[ is now known as lupine
<Aristata> apeiros: I escalate to any and every irc I can when I have been working on a project 36 hours straight and am trying to meet a deadline. Deal.
rickruby has joined #ruby
mlue has quit [Changing host]
mlue has joined #ruby
multi_io_ has quit [Quit: leaving]
anderson has quit [Ping timeout: 256 seconds]
<bhaak> Aristata: if you load up your stuff in irb, you can easily check that line there. But for me your line works (caveat: I'm still on dm 1.1)
monkegji_ has joined #ruby
<Xeago> ericwood: it actually can :)
<Xeago> to the more than 80 characters stuff
<Xeago> you can set it in the properties
<Aristata> bhaak: I am doing it in there, datamapper says you can pass an array to a not query, yet doing that is not getting me records at all as it should
<Xeago> (both cmd.exe and ps.exe)
xcv has quit [Remote host closed the connection]
anonymuse has joined #ruby
xcv_ has joined #ruby
failshell has joined #ruby
<bhaak> Aristata: and if you just pass 1? are you sure your data is there at all
freerobby has joined #ruby
stkowski has joined #ruby
<Aristata> I can pass wither individually and get back a record with an id different from both the ones I am rejecting
nowthatsamatt has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
<Aristata> only when I do :id.not => [1, 2] does it give me no records
<Aristata> :id.not => 1 gives me record 3
<Aristata> :id.not => 2 gives me record 3
kil0byte has quit [Ping timeout: 240 seconds]
<Aristata> :id.not => [1, 2] gives me an empty set
monkegjinni has quit [Ping timeout: 248 seconds]
chrishunt has joined #ruby
daniel_- has quit [Ping timeout: 264 seconds]
<bhaak> that's weird. I would check what SQL statements are generated and then check directly on the db
generalissimo has joined #ruby
ariedler has joined #ruby
osvico has quit [Ping timeout: 264 seconds]
corehook has joined #ruby
kil0byte has joined #ruby
ipalaus has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
atmosx has quit [Remote host closed the connection]
monkegji_ has quit [Read error: Connection reset by peer]
wu_lmao has quit [Ping timeout: 276 seconds]
ipalaus has joined #ruby
monkegji_ has joined #ruby
browndawg has joined #ruby
vlad_starkov has joined #ruby
kpshek has joined #ruby
jslowe has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
rickruby has quit [Remote host closed the connection]
icecandy has joined #ruby
agjacome has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
ewag_ is now known as ewag
ewag has quit [Changing host]
ewag has joined #ruby
jlast has joined #ruby
huoxito has joined #ruby
kpshek has quit []
atno has quit [Ping timeout: 260 seconds]
johnkary has joined #ruby
wallerdev has quit [Quit: wallerdev]
k13n has joined #ruby
akells` has joined #ruby
wallerdev has joined #ruby
_nitti has joined #ruby
_nitti has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
chrishunt has quit [Quit: So long...]
<graft> is there a NaN object or class?
senayar_ has joined #ruby
_nitti has joined #ruby
tbrock has quit [Remote host closed the connection]
johnrlive has joined #ruby
freeayu has quit [Ping timeout: 276 seconds]
senayar has quit [Read error: Connection reset by peer]
ColKurtz has joined #ruby
umren has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
freeayu has joined #ruby
Takehiro has joined #ruby
k13n has quit [Ping timeout: 260 seconds]
<tobiasvl> graft: you can check for it with number.nan?
LaPetiteFromage has quit [Quit: LaPetiteFromage]
ColKurtz has quit [Client Quit]
freeayu has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
pandawarrior has left #ruby [#ruby]
<graft> tobiasvl: i want to generate it... apparently Float::NAN will return it, but i don't understand what NaN actually is
alexwh has quit [Ping timeout: 252 seconds]
kpshek has quit [Client Quit]
tomkad has quit [Ping timeout: 240 seconds]
breadthfirst has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
jcromartie has joined #ruby
kindjal has joined #ruby
andikr has quit [Read error: Connection reset by peer]
dawkirst has quit [Ping timeout: 252 seconds]
alexwh has joined #ruby
philcrissman has quit [Remote host closed the connection]
atno has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
awarner has quit [Ping timeout: 248 seconds]
bobdobbs has quit [Remote host closed the connection]
Kricir has joined #ruby
lxsameer has joined #ruby
fschuindt has joined #ruby
<lxsameer> does bundle supports to installing gem from a remote git branch
mockra has joined #ruby
dawkirst has joined #ruby
tbrock has joined #ruby
bionhart has joined #ruby
rakl has joined #ruby
rhys has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
mockra has quit [Ping timeout: 248 seconds]
madb055 has quit [Remote host closed the connection]
madb055 has joined #ruby
<canton7> lxsameer, sure
<lxsameer> canton7: how can i specify the branch ?
johnkary has quit [Quit: @johnkary]
<lxsameer> canton7: thanks
Animawish has joined #ruby
<apeiros> yay, 150MBit/s internet soon :D
danslo has quit [Quit: danslo]
* lupine sits on his 2Gbit/sec link
<lupine> I think we're going to 10GigE soon
d11wtq has left #ruby [#ruby]
AgentWillyWonka has quit [Quit: Leaving...]
johnkary has joined #ruby
wesside_ has joined #ruby
kn0tsel has quit [Remote host closed the connection]
k13n has joined #ruby
<apeiros> lupine: may I hate you? :)
<apeiros> fiber I assume?
<lupine> feel free
<r0bglees0n> apeiros: i have 30mbit (Or something) and don't have any excuse to use it most of the time :p
ayaz has quit [Quit: Bye!]
<lupine> aye, we've got a datacentre below the office now
wimplash has joined #ruby
<lupine> so as part of that, we have diverse uncontended fibre
<apeiros> r0bglees0n: yeah, I have 25Mbit right now and it's easily enough 90% of the time
cofin has joined #ruby
jY has left #ruby [#ruby]
tagrudev has quit [Remote host closed the connection]
wimplash has quit [Client Quit]
<apeiros> but my wife is watching HD streams more often lately, and when downloading stuff like xcode it's a nice luxury :)
<apeiros> (or a game or whatever)
<r0bglees0n> true
<atno> hehe apeiros
brunoro has joined #ruby
yann_ck has joined #ruby
b0oh has joined #ruby
interactionjaxsn has joined #ruby
AgentWillyWonka has joined #ruby
KDiddy has joined #ruby
geekbri has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
teclator has quit [Ping timeout: 276 seconds]
Astral_ has quit [Ping timeout: 245 seconds]
LennyLinux has quit [Remote host closed the connection]
Mattix has joined #ruby
devoldmx has quit [Read error: No route to host]
kil0byte_ has joined #ruby
devoldmx has joined #ruby
LennyLinux has joined #ruby
csaunders has joined #ruby
kaushal has quit [Quit: leaving]
LennyLinux has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
LennyLinux has joined #ruby
Z_Mass has joined #ruby
threesome has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
kil0byte has quit [Ping timeout: 276 seconds]
kn0tsel has joined #ruby
kaneda^ has joined #ruby
thebastl has joined #ruby
`brendan has joined #ruby
neku has quit [Ping timeout: 252 seconds]
rins has joined #ruby
<kaneda^> hey all, i have a weird issue, i wrote some code in a ruby script, and the if statement fires when it should not. i run the same code from irb and the if statement does not fire: http://pastie.org/private/uquelqsrajs63zc5hzlihw
sarpanch1 has joined #ruby
<kaneda^> why would it be different from the script? or what could cause it to be different?
whitedawg has quit [Quit: Leaving.]
<kaneda^> i verify the file is there, is readable, and does not enter the if statement inside of irb
ChristianS has quit [Excess Flood]
[1]KDiddy has joined #ruby
ChristianS has joined #ruby
<kaneda^> oh, it only fails when it's inside of the .each statement, if i move the if statement out and make it for a specific day this works...
<kaneda^> so confused, any help would be appreciated
<canton7> is the file path absolute in your actual script?
girija has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
<kaneda^> canton7: yes, i ensured that the file path is absolute
fphilipe has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<kaneda^> i also tried day.to_s, same result
csaunders has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<kaneda^> if i run the if statement with the resulting path by itself it's fine, just not inside of this each statement
[1]KDiddy has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Like it? Visit #hydrairc on EFNet]
hogeo has joined #ruby
<canton7> kaneda^, I'll tell you one thing... nothing's interpolated inside single quotes
cofin has quit [Quit: cofin]
<tockitj> is there a way to automatically run tests for changed code
persand has joined #ruby
geekbri has joined #ruby
<kaneda^> canton7: well that explains a lot
<kaneda^> canton7: let me fix this!
kn0tsel has quit [Remote host closed the connection]
<tockitj> i'm looking for tool that will execute tests based on test coverage (not just predetermined file patterns)
<kaneda^> canton7: that fixed it, thanks!
kaneda^ has quit [Quit: thanks!]
<canton7> :)
coderhs has quit [Ping timeout: 256 seconds]
joshu has joined #ruby
<canton7> things like \n don't get substituted properly inside single quotes either
joshu has quit [Remote host closed the connection]
breadthfirst has quit [Remote host closed the connection]
tomkad has joined #ruby
thebastl has quit [Remote host closed the connection]
joshu has joined #ruby
jamesaxl_ has joined #ruby
Takehiro has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
<joshu> hi guys I have an instance variable like this @subject = "FAX_SAAS_PROVIDER - Fax Received to [Your Fax Number] from [/Some Company]" how do I get "Some Company" in its own variable?
<joshu> regex?
_maes_ has joined #ruby
breadthfirst has joined #ruby
Alasdairrr has joined #ruby
<Alasdairrr> Hi all - I'm packaging up Ruby 1.9.3 and it has added over 5000 .ri files since my last 1.9.1 build. Are .ri files needed or are they just autogenerated API documentation that should probably not be packaged?
nari_ has quit [Ping timeout: 246 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
<ipalaus> hey, anyone have a friend or contact that works at twitter? thanks in advance!
kiri has quit [Read error: Operation timed out]
corehook has quit [Ping timeout: 256 seconds]
<r0bglees0n> Alasdairrr: RI riles are documentation. I never use them.
kiri has joined #ruby
LennyLinux has quit [Remote host closed the connection]
kpshek has joined #ruby
kpshek has quit [Client Quit]
<Alasdairrr> r0bglees0n: okay great, that's what I thought. I just can't decide whether to package them up or not
<epochwolf> Could someone help me with a require problem? I can't get require to accept an absolute path. https://gist.github.com/epochwolf/043a9a0b0b1e86eb4602
jprovazn is now known as jprovazn_afk
Neomex has joined #ruby
anirudh24seven has joined #ruby
jlast has quit [Remote host closed the connection]
anirudh24seven has quit [Client Quit]
lushious has joined #ruby
b0oh has left #ruby [#ruby]
LennyLinux has joined #ruby
Neomex has quit [Client Quit]
niceguyjames has quit [Quit: Computer has gone to sleep.]
sarpanch1 has quit [Remote host closed the connection]
<epochwolf> Nevermind. When editing a file, double check it's the file you're trying to run… derp.
breadthfirst has quit [Remote host closed the connection]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
cofin has joined #ruby
horrror has joined #ruby
DonRichie has joined #ruby
AgentWillyWonka has quit [Quit: Leaving...]
sambao21 has joined #ruby
k13n has quit [Ping timeout: 260 seconds]
kn0tsel has joined #ruby
monkegji_ has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: Leaving]
kpshek has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
ananthakumaran has joined #ruby
wsterling has joined #ruby
camilasan has quit [Remote host closed the connection]
<joshu> I've got this regex so far (\[\/)(\w+\b+\s+\w+\b) but it's not great
pduin has quit [Remote host closed the connection]
thebastl has joined #ruby
johnjohnson has joined #ruby
MarioEIU has joined #ruby
MarioEIU has left #ruby [#ruby]
xcv_ has quit [Remote host closed the connection]
bry_ has joined #ruby
mikepack has joined #ruby
wyhaines has joined #ruby
<joshu> maybe like this (\[\/)(.+)(\]) any feedback?
chrishough has joined #ruby
aganov has quit [Quit: aganov]
alex__c2022 has joined #ruby
mengu has quit [Quit: Leaving]
AgentWillyWonka has joined #ruby
Animawish has quit [Quit: Animawish]
Leighton has joined #ruby
agjacome has quit [Quit: leaving]
bionhart has quit [Remote host closed the connection]
Astralum has joined #ruby
apod has quit [Quit: apod]
threesome has quit [Ping timeout: 276 seconds]
<LennyLinux> joshu: what would you like to match?
mando has joined #ruby
KDiddy has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<joshu> hi LennyLinux I have this @subject = "FAX_SAAS_PROVIDER - Fax Received to [Your Fax Number] from [/Some Company] and I just want "Some Company" which might be one word, more than two and may contain numbers in the name.
mockra has joined #ruby
<joshu> This is what I've managed to do myself (\[\/)(.+)(\])
adac has quit [Ping timeout: 260 seconds]
Nanuq has joined #ruby
megha has joined #ruby
camilasan has joined #ruby
<LennyLinux> joshu: maybe this one can go /A.*\[\/(.+)\]\Z/
_nitti_ has joined #ruby
<LennyLinux> you can use ^ and $ if you like
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LennyLinux> i think part of that isn't even necessary
<joshu> LennyLinux wow you did that without groups
rippa has joined #ruby
_nitti has quit [Read error: Operation timed out]
<MrZYX> I'd just scan(\[[^\]+\])[1] :P
mockra has quit [Ping timeout: 256 seconds]
momomomomo has joined #ruby
<MrZYX> eh, plus the missing ]
Kudos has joined #ruby
monkegji_ has joined #ruby
lethjakm1 has joined #ruby
persand has quit [Quit: persand]
io_syl has joined #ruby
baroquebobcat has joined #ruby
zastern has quit [Read error: Connection reset by peer]
zastern has joined #ruby
<joshu> MrZYX is scan different from just using the regex?
carloslopes has quit [Remote host closed the connection]
xcv has joined #ruby
<MrZYX> >> "FAX_SAAS_PROVIDER - Fax Received to [Your Fax Number] from [/Some Company]".scan(/\[([^\]]+)\]/)[1].first
<eval-in> MrZYX => "/Some Company" (http://eval.in/31277)
<rippa> scan returns all matches
corehook has joined #ruby
d2dchat has joined #ruby
apok has joined #ruby
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby
<joshu> MrZYX ah I see. How do I get rid of the "/" before Some?
gasbakid_ has joined #ruby
<MrZYX> is it always there?
arturaz has joined #ruby
tesuki has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 240 seconds]
tomsthumb has joined #ruby
forrest has joined #ruby
b0oh has joined #ruby
gasbakid has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
Beoran_ has joined #ruby
blandflakes has joined #ruby
enebo has joined #ruby
k13n has joined #ruby
thebastl has quit [Remote host closed the connection]
b0oh has quit [Client Quit]
danslo has joined #ruby
Beoran__ has quit [Ping timeout: 252 seconds]
kn0tsel has quit [Remote host closed the connection]
<joshu> MrZYX yeah unfortunately
<MrZYX> then the whole thing gets easy
<MrZYX> >> "FAX_SAAS_PROVIDER - Fax Received to [Your Fax Number] from [/Some Company]".match(%r{\[/(.+)\]})[1]
<eval-in> MrZYX => "Some Company" (http://eval.in/31278)
<joshu> wow MrZYX you're super fast ;)
<MrZYX> you left enough time before answering the question ;P
hogeo has quit [Remote host closed the connection]
mityaz has joined #ruby
wsterling has quit [Remote host closed the connection]
lessless has quit [Remote host closed the connection]
sodalitumpianum_ has joined #ruby
khismetix has joined #ruby
<joshu> hehe sorry had to step away
<joshu> thanks for your help!
<joshu> you too LennyLinux
ColKurtz has joined #ruby
gasbakid_ has quit [Read error: Connection reset by peer]
niceguyjames has joined #ruby
apok has quit [Quit: apok]
kn0tsel has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
_nitti_ has quit [Remote host closed the connection]
senayar_ has quit [Read error: Operation timed out]
senayar has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
cj3kim has quit [Remote host closed the connection]
wsterling has joined #ruby
chrisja_ has joined #ruby
_nitti has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
<LennyLinux> np
danslo has quit [Quit: danslo]
arya_ has quit [Ping timeout: 248 seconds]
whitedawg has joined #ruby
danslo has joined #ruby
danslo has quit [Client Quit]
Kar- has quit [Remote host closed the connection]
sebastiansier has joined #ruby
Aristata has quit [Quit: Leaving.]
jamesaxl has joined #ruby
rakl has quit [Quit: sleeping]
noop has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jamesaxl_ has quit [Ping timeout: 240 seconds]
ColKurtz has quit [Quit: sleeping]
ckrailo has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
Cultofmetatron has joined #ruby
<kpwz> I wish to downgrade the version of a gem I'm bundling in my application. For some reason one of the dependencies listed in my Gemfile.lock has the later version still listed. How can I force my gemfile to update to only using the earlier version?
kn0tsel has quit [Remote host closed the connection]
ivanoats has joined #ruby
<MrZYX> try addinng the specific version to your Gemfile, i.e. gem 'gemname', '0.1.2.3' and bundle update gemname
jlast has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
* kpwz tries that
<kpwz> aha! I think that did the trick, cheers
carloslopes has joined #ruby
cj3kim has joined #ruby
haxrbyte has joined #ruby
gaahrdner has quit [Remote host closed the connection]
whitedawg has quit [Quit: Leaving.]
kpshek has quit []
Astral_ has joined #ruby
gaahrdner has joined #ruby
ivanoats_ has joined #ruby
pkrnj has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
tk_ has quit [Quit: ばいばい]
bradhe has joined #ruby
noname001 has quit [Remote host closed the connection]
geekbri_ has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
geekbri has quit [Read error: Connection reset by peer]
zastern has quit [Ping timeout: 248 seconds]
chrisja_ has quit [Quit: leaving]
sambao21 has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
Astralum has quit [Ping timeout: 256 seconds]
ivanoats has quit [Ping timeout: 256 seconds]
chandankumar has joined #ruby
filipe has quit [Read error: Operation timed out]
Macaveli has joined #ruby
carloslopes has quit [Ping timeout: 260 seconds]
threesome has joined #ruby
jtharris has joined #ruby
ColKurtz has joined #ruby
chandankumar has quit [Excess Flood]
lethjakm1 has quit [Ping timeout: 256 seconds]
slash_nick has joined #ruby
sambao21 has quit [Ping timeout: 248 seconds]
chandankumar has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
_nitti has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
tbrock has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
chandankumar has quit [Max SendQ exceeded]
kn0tsel has joined #ruby
daniel_- has joined #ruby
_Amaan has joined #ruby
slash_nick has quit [Quit: leaving]
cj3kim has quit [Remote host closed the connection]
l33 has quit [Remote host closed the connection]
altamic has quit [Quit: altamic]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
l33 has joined #ruby
timonv has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
Z_Mass has quit [Ping timeout: 252 seconds]
chandankumar has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
lethjakm1 has joined #ruby
banjara has joined #ruby
nik_-_ has joined #ruby
ColKurtz has quit [Quit: sleeping]
Voodoofish430 has joined #ruby
nik_-_ has quit [Client Quit]
kil0byte has joined #ruby
bradhe has quit [Remote host closed the connection]
carloslopes has joined #ruby
chandankumar has quit [Max SendQ exceeded]
mockra has joined #ruby
jamie_ca_ has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.1]
cj3kim has joined #ruby
chandankumar has joined #ruby
mikewintermute has joined #ruby
arturaz has quit [Ping timeout: 256 seconds]
thomaslee has joined #ruby
jamie_ca_ has quit [Client Quit]
k13n has quit [Ping timeout: 260 seconds]
bionhart has joined #ruby
zeade has joined #ruby
tbrock has joined #ruby
<mikewintermute> What does the "?!" in this statement mean? if var == ?!
chandankumar has quit [Max SendQ exceeded]
mockra has quit [Ping timeout: 248 seconds]
chandankumar has joined #ruby
eldariof has joined #ruby
apalmblad has joined #ruby
jbueza has joined #ruby
<apeiros> >> ?!
<eval-in> apeiros => "!" (http://eval.in/31279)
<apeiros> that
<apeiros> @ mikewintermute
<breakingthings> how's that s'posed ta work?
<apeiros> it used to be useful. now it's just ugly.
<apeiros> >> [?a, ?\C-c]
<eval-in> apeiros => ["a", "\u0003"] (http://eval.in/31280)
<MrZYX> oO
<breakingthings> oh
<breakingthings> yeah
<MrZYX> when was that useful?
<breakingthings> that makes sense.
<apeiros> MrZYX: when it returned the ascii code
<apeiros> i.e., it used to be what now would be ?!.ord
IrishGringo has quit [Ping timeout: 264 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> but even then the use-cases were rare
jdunck has joined #ruby
<MrZYX> you mean '!'.ord :P
chandankumar has quit [Max SendQ exceeded]
<apeiros> no, I mean ?!.ord
chandankumar has joined #ruby
xcv has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
<mikewintermute> so is the ? escaping the ! somehow?. i.e. why not just: if var == !
ephemerian has left #ruby [#ruby]
<MrZYX> can't even find it in the 2.0 docs anymore
<breakingthings> mikewintermute: ? was a special operator that would return the ascii code
<breakingthings> so, if I understand correctly, ?! returns 33, the ascii number for the exclamation.
DanKnox_away is now known as DanKnox
daniel_- has quit [Ping timeout: 248 seconds]
<apeiros> mikewintermute: it does not escape
<apeiros> it's a literal
<apeiros> just like "foo" is a literal
<breakingthings> err
<breakingthings> im backwards
* breakingthings stops trying to think thoughts
<apeiros> it's a one-character literal (used to be an integer literal)
jamie_ca_ has joined #ruby
chandankumar has quit [Max SendQ exceeded]
<joshu> MrZYX another regex question. I have this string "YYYYMMDDHHMMSS-your_fax_number--fax_identifier.pdf" and I want "YYYYMMDDHHMMSS" and "fax_identifier" both of which are digits only.
<ChristianS> >> "!".ord
<eval-in> ChristianS => 33 (http://eval.in/31284)
<joshu> I have these regexes
jamie_ca_ has quit [Client Quit]
<canton7> >> '!' == ?!
<eval-in> canton7 => true (http://eval.in/31285)
<MrZYX> joshu: .split('-')
<breakingthings> ?! in 1.8.7 spits out 33 so I was confuse.
<joshu> .match(%r{(\d{14})}) and match(%r{--(.+)\.})[1]
<rippa> >> ??
<breakingthings> Because workmachine only has 1.8.7 atm
<eval-in> rippa => "?" (http://eval.in/31286)
chandankumar has joined #ruby
johnnyfuchs has joined #ruby
<apeiros> breakingthings: because in 1.8 ?! was what now is ?!.ord - as I said.
<breakingthings> yeah
<breakingthings> I was confusing myself
<joshu> MrZYX I should split instead of match?
<apeiros> which was slightly (but really only slightly) more useful
<apeiros> btw., "\C-c" works the same as ?\C-c and is (IMO) less confusing
<rippa> %%#{??}%::b
<apeiros> (it means control-c)
kil0byte has quit [Ping timeout: 240 seconds]
<rippa> >> %%#{??}%::b
<eval-in> rippa => "?" (http://eval.in/31287)
cj3kim has joined #ruby
<MrZYX> >> "YYYYMMDDHHMMSS-your_fax_number--fax_identifier.pdf".chomp('.pdf').split('-', 2)
<eval-in> MrZYX => ["YYYYMMDDHHMMSS", "your_fax_number--fax_identifier"] (http://eval.in/31288)
<MrZYX> oh, just fax_identifier
Takehiro has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
sambao21 has joined #ruby
chandankumar has quit [Max SendQ exceeded]
mark_locklear has quit [Ping timeout: 256 seconds]
<MrZYX> "YYYYMMDDHHMMSS-your_fax_number--fax_identifier.pdf".chomp('.pdf').split('-'); [a.first, a.last] then
ghr has quit [Quit: Computer has gone to sleep.]
chandankumar has joined #ruby
<mstksg> >> puts("did not know this was here")
<eval-in> mstksg => did not know this was here ... (http://eval.in/31289)
corehook has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: This computer has gone to sleep]
apok has joined #ruby
Cultofmetatron has joined #ruby
kn0tsel has quit [Remote host closed the connection]
adambeynon has quit [Quit: Computer has gone to sleep.]
jgrevich has joined #ruby
twopoint718 has joined #ruby
chandankumar has quit [Max SendQ exceeded]
l33 has quit [Remote host closed the connection]
khismetix has quit [Quit: Computer has gone to sleep.]
chandankumar has joined #ruby
IrishGringo has joined #ruby
l33 has joined #ruby
Kricir has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
ivanoats_ is now known as ivanoats
sambao21 has quit [Quit: Computer has gone to sleep.]
<joshu> >> "YYYYMMDDHHMMSS-your_fax_number--fax_identifier.pdf".chomp('.pdf').split('-'); [a.first, a.last]
<eval-in> joshu => undefined local variable or method `a' for main:Object (NameError) ... (http://eval.in/31291)
mstuefer has quit [Quit: leaving]
johnrlive has quit [Remote host closed the connection]
xcv has joined #ruby
<joshu> hehe cool learned a new irc trick :P
falood has quit [Remote host closed the connection]
chandankumar has quit [Max SendQ exceeded]
alex__c2022 has quit [Ping timeout: 252 seconds]
geekbri_ has quit [Read error: Connection reset by peer]
chandankumar has joined #ruby
mafolz has quit [Ping timeout: 248 seconds]
browndawg has quit [Ping timeout: 256 seconds]
geekbri has joined #ruby
_nitti has quit [Remote host closed the connection]
sambao21 has joined #ruby
superscott[8] has joined #ruby
_nitti has joined #ruby
<superscott[8]> anybody know/remember how much RubyConf was last year?
ananthakumaran has quit [Ping timeout: 260 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
chandankumar has quit [Max SendQ exceeded]
chandankumar has joined #ruby
timonv has joined #ruby
bionhart has quit [Remote host closed the connection]
geekbri has quit [Read error: Connection reset by peer]
pcarrier_ has quit [Ping timeout: 276 seconds]
geekbri has joined #ruby
camilasan has quit [Remote host closed the connection]
Davey has joined #ruby
brunoro has quit [Quit: WeeChat 0.3.8]
mklappstuhl has quit [Remote host closed the connection]
<MrZYX> joshu: forget to copy the a = at the very beginning ;P
machuga is now known as machuga|away
Fretta has joined #ruby
Kar- has joined #ruby
momomomomo has quit [Quit: momomomomo]
daniel_- has joined #ruby
chandankumar has quit [Max SendQ exceeded]
chandankumar has joined #ruby
xcv has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
Spami has quit [Read error: Connection reset by peer]
ipalaus has quit [Quit: Computer has gone to sleep.]
<joshu> MrZYX thanks ;) just curious how is split able to know how to split when there are two hyphens?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<MrZYX> it split's at everyone and returns an array
hdcimy has quit [Ping timeout: 252 seconds]
jdunck has joined #ruby
<MrZYX> and we just ignore the elements in the middle we don't care about
alex__c2022 has joined #ruby
browndawg has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
alexgordon has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
<joshu> ok. How do you know when to split and when to regex?
pinpin404 has joined #ruby
chandankumar has quit [Ping timeout: 245 seconds]
swiftkey has left #ruby [#ruby]
chrishough has quit [Quit: chrishough]
<joshu> what I mean is I went straight to regex to try and find a solution. Maybe it comes down to experience in knowing what can be done with standard methods
<superscott[8]> when you have a character that you know will be 100% correct to split on, then use split :)
Al_ has quit [Quit: Al_]
AgentWillyWonka has quit [Quit: Leaving...]
mikepack has joined #ruby
djwonk has joined #ruby
sebastiansier has quit [Read error: Connection reset by peer]
Glacer232 has joined #ruby
<r0bglees0n> joshu: as a rule of thumb, unless you need a regexp just use a string.
prk has joined #ruby
<superscott[8]> ^
sambao21 has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
hamakn has quit [Remote host closed the connection]
ravster has joined #ruby
johnrlive has joined #ruby
sambao21 has joined #ruby
kpshek has joined #ruby
Criztian has joined #ruby
rupee has joined #ruby
jeffreylevesque has joined #ruby
corehook has joined #ruby
jamesaxl has quit [Ping timeout: 276 seconds]
emergion has joined #ruby
sambao21 has quit [Client Quit]
kpshek has quit [Client Quit]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
nfk has quit [Remote host closed the connection]
kn0tsel has joined #ruby
kstephens has quit [Ping timeout: 256 seconds]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
daniel_- has quit [Ping timeout: 276 seconds]
twopoint718 has quit [Ping timeout: 276 seconds]
jastix has quit [Quit: Leaving]
graft has quit [Ping timeout: 246 seconds]
ebouchut has joined #ruby
tjbiddle has joined #ruby
wmoxam has quit [Read error: Operation timed out]
Elhu has quit [Quit: Computer has gone to sleep.]
emergion has quit [Ping timeout: 260 seconds]
c0rn has joined #ruby
RiftyMcF3arless has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
Guest27861 has quit [Ping timeout: 246 seconds]
geekbri has quit [Ping timeout: 248 seconds]
mrsolo has joined #ruby
mrsolo has joined #ruby
twoism has joined #ruby
stenno has joined #ruby
danslo has joined #ruby
pinpin404 has quit [Quit: No Ping reply in 180 seconds.]
l33_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
banister`shop is now known as banisterfiend
elaptics is now known as elaptics`away
viszu has joined #ruby
Boohbah has joined #ruby
<Boohbah> hi, how can i combine these two expressions?
<Boohbah> @input = i.split(/\n/); @input.map {|i| i.strip! }
enebo has quit [Quit: enebo]
<apeiros> @input = i.split(/\n/).map { |k| k.strip }
Criztian has quit [Remote host closed the connection]
fschuindt has quit [Quit: Computer has gone to sleep.]
<apeiros> and use better variable names than i & k. those suck.
JimmyNeutron has joined #ruby
l33 has quit [Ping timeout: 256 seconds]
geekbri has joined #ruby
prk has quit [Remote host closed the connection]
<Boohbah> @input = i.split(/\n/).map {|x| x.strip! }
<Boohbah> i guess i don't need the ! because i'm creating a copy
<Boohbah> thanks apeiros
mark_locklear has joined #ruby
geekbri has quit [Read error: Connection reset by peer]
Cultofmetatron has quit [Read error: Connection reset by peer]
johnkary has quit [Quit: @johnkary]
Cultofmetatron has joined #ruby
rads has joined #ruby
obs has quit [Quit: Konversation terminated!]
wmoxam has joined #ruby
peteyg has joined #ruby
<billiam> i.lines.map(&:strip) would work too, no?
<stenno> ^
gaahrdner has quit [Ping timeout: 252 seconds]
<Boohbah> billiam: nice, thanks
emergion has joined #ruby
ananthakumaran has joined #ruby
corehook has quit [Ping timeout: 240 seconds]
pitzips has joined #ruby
arturaz has joined #ruby
johnkary has joined #ruby
danslo has quit [Quit: danslo]
ohcibi has left #ruby [#ruby]
nomenkun has joined #ruby
ned has joined #ruby
DestinyAwaits has quit [Ping timeout: 264 seconds]
<ned> http://pastie.org/7944302 can someone take a look at this please
<apeiros> Boohbah: no you don't need the !
<apeiros> in the opposite
<apeiros> with ! you risk having nils in your result
<apeiros> >> "foo".strip!
<eval-in> apeiros => nil (http://eval.in/31294)
dustint has quit [Ping timeout: 256 seconds]
dangerousdave has quit [Quit: Leaving...]
kn0tsel has quit [Remote host closed the connection]
mark_locklear has quit [Remote host closed the connection]
emergion has quit [Ping timeout: 260 seconds]
palantir has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
banjara has joined #ruby
chandankumar` has joined #ruby
mockra has joined #ruby
mark_locklear has joined #ruby
bubblehead has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
statarb3 has quit [Ping timeout: 246 seconds]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
bean__ has joined #ruby
kirun has joined #ruby
danslo has joined #ruby
motto has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
whitedawg has joined #ruby
m8 has quit [Read error: Operation timed out]
timonv has joined #ruby
krombr has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
machuga|away is now known as machuga
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
carloslopes has quit [Remote host closed the connection]
Takehiro has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
xcv has joined #ruby
fmcgeough has joined #ruby
<tjbiddle> Ruby's niceties are causing me trouble :p What would be the best way to find if an array element does *not* exist? (I want to use the current index, and the one before it) I was using my_array[-1].nil? but then realized that it's actually valid and grabbing the last element lol
apok has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
apok has joined #ruby
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
<tjbiddle> I should say my_array[index_im_at-1]
apok has quit [Client Quit]
interactionjaxsn has joined #ruby
<tjbiddle> fetch() looks to do the same thing
bry_ has quit [Remote host closed the connection]
ToApolytoXaos has joined #ruby
teclator has joined #ruby
crankycoder has left #ruby [#ruby]
<apeiros> tjbiddle: ary.size
Banistergalaxy has joined #ruby
<apeiros> since all indices up to .size-1 are filled (at least with nil)
<apeiros> Array#fetch will raise
IrishGringo has quit [Ping timeout: 264 seconds]
<apeiros> if you're out of bound
alexgordon has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
<tjbiddle> apeiros: Technically the bounds look to be -arr.size…arr.size (With a 3 element array I can get to array[-3] without causing issues [-4] throws out of bounds. I think I'll just check to see if I'm at the first element or not, and ignore it if I am
carloslopes has joined #ruby
<apeiros> for negative indices, it's -ary.size (gets the first item)
Azulinho_ has quit [Ping timeout: 264 seconds]
<apeiros> i.e., -ary.size...ary.size (note the ..., means excluding ary.size)
ferdev has quit [Quit: ferdev]
<apeiros> ah, you already said that
* apeiros only half here
<tjbiddle> apeiros: Morning :p
atmosx has joined #ruby
bionhart has joined #ruby
codecop has joined #ruby
sayan has quit [Ping timeout: 276 seconds]
sayan has joined #ruby
rezzack has joined #ruby
<apeiros> evening actually
chris_ has joined #ruby
emmanuelux has joined #ruby
chris_ is now known as codesoda
colonolGron has joined #ruby
Guest27861 has joined #ruby
dallasm_ has joined #ruby
AndChat| has joined #ruby
dallasm_ has quit [Remote host closed the connection]
colonolGron is now known as Slavopan
Banistergalaxy has quit [Ping timeout: 256 seconds]
<peteyg> I'm attempting to include a method from a module in a class, and have the method that is included access a class variable of the base class that's doing the including, but it's not working like I assumed. Code: https://gist.github.com/peteygao/5629536
Elhu has joined #ruby
graft has joined #ruby
<peteyg> Clearly my understanding of how include work is wonky, I thought include would incorporate the method(s) into the base class and the execution context would be the class, but the error message seems to imply the execution context of included methods is in the original method's module?
mnemon has quit [Quit: meh]
apeiros has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
c0rn has quit [Quit: Computer has gone to sleep.]
mnemon2 has joined #ruby
newUser1234 has joined #ruby
rdark has quit [Quit: leaving]
tymat has quit [Ping timeout: 248 seconds]
dallasm_ has joined #ruby
kf8a has joined #ruby
Elhu has quit [Client Quit]
tymat has joined #ruby
johnkary has quit [Quit: @johnkary]
<banisterfiend> i have: "A::B::C::D" i awnt to get this: ["A", "A::B", "A::B::C", "A::B::C::D"]
<banisterfiend> anyone have an elegant way of doing that?
shevy has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<shevy> test
<otters> huh
<otters> I guess I'd try
sepp2k has joined #ruby
<stenno> it can be done with inject
<stenno> i think
<banisterfiend> i did this: name.split("::").map.with_index { |v, i| name[0..i].join("::") }
<banisterfiend> but dat nasty
bricker`LA has joined #ruby
BizarreCake has quit [Ping timeout: 252 seconds]
arya_ has joined #ruby
enebo has joined #ruby
l33_ has quit [Remote host closed the connection]
smigg has joined #ruby
<bricker`LA> Hi, I keep getting "IOError: closed stream", on Ruby 1.9.3. It seems to happen surrounding working with Tempfile: https://gist.github.com/bricker/5629639
<bricker`LA> but the stack trace is very non-specific
<banisterfiend> MrZYX: seems like your kind of thing
<banisterfiend> bricker`LA: try pry-rescue
Zai00 has quit [Quit: Zai00]
<MrZYX> banisterfiend: not sure I could get that shorter
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
hamakn has joined #ruby
_nitti has joined #ruby
<bricker`LA> banisterfiend: will it work if the error happens during tests? That seems to be the only time this error is happening
<banisterfiend> bricker`LA: if you're using rspec/minitest then pry-rescue can work there, check out the readme
<bricker`LA> oh, okay thanks
jbpros has joined #ruby
pipework has quit [Ping timeout: 264 seconds]
<bricker`LA> banisterfiend: I didn't scroll far enough down to see the huge "rspec" section :-[
<banisterfiend> :P
danslo has quit [Quit: danslo]
momomomomo has quit [Quit: momomomomo]
Glacer232 has quit [Quit: Textual IRC Client: www.textualapp.com]
RORgasm_ has quit [Read error: Connection reset by peer]
<bricker`LA> well now the error isn't happening anymore :(
marr has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
ioNull has joined #ruby
<MrZYX> sounds like a test order issue
interactionjaxsn has joined #ruby
<MrZYX> if you got a seed for a failure try to rerun it with that seed
hamakn has quit [Ping timeout: 252 seconds]
troessner has quit [Quit: Leaving]
johnjohnson has quit [Quit: johnjohnson]
xardas has joined #ruby
danslo has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
rads has quit [Quit: rads]
aedorn has joined #ruby
arietis has joined #ruby
tomkad has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
<stenno> >> 1 + 2
<eval-in> stenno => 3 (http://eval.in/31295)
<stenno> >> "A::B::C".split("::").inject([]) { |memo, word| memo << (memo.empty? ? word : memo.last + "::" + word) }
<eval-in> stenno => ["A", "A::B", "A::B::C"] (http://eval.in/31296)
<stenno> :3
<stenno> banisterfiend: ^
mahmoudimus has quit [Quit: Computer has gone to sleep.]
kenneth has joined #ruby
daniel_- has joined #ruby
<banisterfiend> stenno: thx, but not sure that's prettier than what i had, but +1 for k00 technique :)
<stenno> inject ftw
troessner has joined #ruby
jurbat has joined #ruby
krombr has quit [Remote host closed the connection]
workmad3 has joined #ruby
_nitti has quit [Ping timeout: 248 seconds]
BonSequitur has joined #ruby
<bricker`LA> MrZYX: unfortunately not - I think it has something to do with the GC vs. Tempfile, based on some quick googling.
v0n has joined #ruby
<bricker`LA> and is just dependent on when the GC runs
<aedorn> 114 lines of C code in one line of Ruby. Always fun.
ipalaus has joined #ruby
Takehiro has quit [Remote host closed the connection]
[[thufir]] has joined #ruby
agjacome has joined #ruby
reset has joined #ruby
jonkri has joined #ruby
troessner has quit [Ping timeout: 256 seconds]
megha has quit [Ping timeout: 256 seconds]
whowantstolivef1 has joined #ruby
tmorgan has joined #ruby
dangerousdave has joined #ruby
<jonkri> hey all! i wonder if someone could recommend a good ruby book. i don't know ruby at all, but i'm sort of an expert on haskell and java, and has good knowledge with javascript, html and php. thanks in advance
<wmoxam> aedorn: runs 114 times slower though
purpleidea has quit [Ping timeout: 240 seconds]
tvw has quit []
<jonkri> wmoxam: thanks, but please note that the resources does not need to be free
staafl has quit [Read error: Connection reset by peer]
<wmoxam> jonkri: I don't know what's good and non-free
platzhirsch has joined #ruby
zommi has joined #ruby
<wmoxam> IMO the Pickaxe book is overrated
d2dchat has quit [Remote host closed the connection]
purpleidea has joined #ruby
purpleidea has quit [Changing host]
purpleidea has joined #ruby
<wmoxam> I started with it but it was really the only thing available at the time
apeiros_ has joined #ruby
<platzhirsch> am I mistaken, that it's not so much convention to name methods like get_me_this_object(), but more like just this_object()? For instance I have a method metadata(repository) which returns me all metadata from a database instead of get_metadata(repository)?
johnmilton has joined #ruby
gyre007 has quit [Ping timeout: 260 seconds]
<terrellt> platzhirsch: I would think the convention would be Metadata.all, but maybe that's just me.
<aedorn> wmoxam: no, about the same speed really
<wmoxam> aedorn: I was joking :p
<terrellt> platzhirsch: Or in that case, repository.metadata.
<platzhirsch> terrellt: I thought that's a Rails thing, but you are probably right
<MrZYX> platzhirsch: attr_reader :name defines name and not get_name, so I'd say it's more convention
<terrellt> It's an object thing, ActiveRecord just makes it easy for databases.
c0rn has joined #ruby
f0ster has joined #ruby
<platzhirsch> in a object-oriented language it's a natural choice, you are right
<f0ster> does anyone remember when jetbrains had all their software for $5 once? can't remember what the occasion was
gaahrdner has joined #ruby
<workmad3> terrellt: metadata(repository) or even metadata_for(repository)
<workmad3> terrellt: the second is more smalltalky, afaik
momomomomo has joined #ruby
<platzhirsch> I think I will go for repository.metadata, as I don't model metadata
<workmad3> yeah, that's also good :)
<aedorn> Anyone in CO Springs looking for a job? Nobody ever is, but I feel compelled to test my luck.
<terrellt> aedorn: Telecommuting is your friend.
<wmoxam> is CO Springs a nice place to live?
icecandy has quit [Remote host closed the connection]
axl_ has joined #ruby
brotatos has joined #ruby
<aedorn> terrellt: Not really feasible in this case ... unless you have room for a ton of products, PCs, and other things. Unfortunately we don't have a remote way to disconnect/replace/reconnect networking equipment =)
Armon has joined #ruby
phipes has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<terrellt> aedorn: Ah, assumed you weren't looking for ops. =)
<aedorn> wmoxam: It's fabulous if you don't like big cities, and you like going outside. If you're adverse to nature, and need people interaction, it's not that great. Otherwise, fabulous!
nobitanobi has quit [Quit: Leaving]
eykosiou_ has quit [Remote host closed the connection]
eykosioux has joined #ruby
saarinen has quit [Quit: saarinen]
johnmilton has quit [Ping timeout: 276 seconds]
pinage404 has joined #ruby
nomenkun has quit [Remote host closed the connection]
phipes has left #ruby [#ruby]
<aedorn> terrellt: I guess it's partially ops, but it's really coding for testing products, along with some other things. I'd toss the web stuff off to someone if the company would let me, but it's all or nothing. =\
<aedorn> Gotta get rid of our bottleneck of information, which is currently me. I'm the only one who knows how everything works and so the only one that can provide support 24/7. Doesn't work too well for a business that way... good thing it's not my business. =)
evenix_ has joined #ruby
eykosioux has quit [Ping timeout: 252 seconds]
cespare has joined #ruby
<f0ster> wmoxam: probably :)
jbpros has quit [Quit: jbpros]
awarner has joined #ruby
<aedorn> guess it's ops too.. maybe I should go about this another way. Anyone need a DevOp? =p
zeeraw has quit [Quit: Computer has gone to sleep.]
evenix has quit [Ping timeout: 256 seconds]
evenix_ has quit [Remote host closed the connection]
evenix has joined #ruby
jprovazn_afk is now known as jprovazn
Spami has quit [Quit: This computer has gone to sleep]
JZTech101 has joined #ruby
whitedawg has quit [Quit: Leaving.]
xcv has quit [Remote host closed the connection]
<terrellt> aedorn: Cloudify all the things!
<graft> hmm, can you pass a block to an initializer?
JZTech101 has quit [Max SendQ exceeded]
k13n has joined #ruby
<aedorn> Yeah, I keep trying to put myself in the cloud so I can be the first instance of the singularity.
johnmilton has joined #ruby
phipes has joined #ruby
phipes has quit [Client Quit]
<platzhirsch> can someone tell me, why the upper version is not working, but the lower one? https://gist.github.com/platzhirsch/eabcf93c5c458ea689d1 I am getting "excepting keyword end", how can I replace do end with {} here?
Takehiro has joined #ruby
saarinen has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
<platzhirsch> seems like a precedence problem, I guess I have to set brackets
jbpros has joined #ruby
d3 has joined #ruby
d3 has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
stonevil has joined #ruby
tmorgan has quit [Remote host closed the connection]
<platzhirsch> ok found it, the first method call's arguments have to be enclosed in parantheses
_nitti has joined #ruby
urbanmonk has joined #ruby
<MrZYX> graft: sure
johnmilton has quit [Ping timeout: 276 seconds]
jbpros has quit [Ping timeout: 256 seconds]
jfelchne_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
johnmilton has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
jfelchn__ has joined #ruby
mnemon2 has quit [Remote host closed the connection]
eykosioux has joined #ruby
jfelchner has quit [Ping timeout: 252 seconds]
yann_ck has quit [Quit: Computer has gone to sleep.]
ryannielson has joined #ruby
makerbrakr has joined #ruby
horrror_ has joined #ruby
horrror has quit [Read error: Connection reset by peer]
horrror_ is now known as horrror
<makerbrakr> I am unfamiliar with the deamon gem, would it be a viable solution to constantly monitor the output of netplugd, and take actions based on the the output of the process?
k13n has quit [Ping timeout: 260 seconds]
jfelchne_ has quit [Ping timeout: 252 seconds]
eykosioux has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
eykosioux has joined #ruby
ipalaus has quit [Ping timeout: 260 seconds]
m8 has joined #ruby
Elhu has joined #ruby
motto has quit [Ping timeout: 248 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
ivanoats has quit [Remote host closed the connection]
kindjal has joined #ruby
bionhart has quit [Remote host closed the connection]
ipalaus has joined #ruby
makerbrakr has left #ruby ["Leaving"]
rupee has quit [Read error: Connection reset by peer]
cooldman224 has joined #ruby
chrishough has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
kindjal has quit [Client Quit]
reset has quit [Ping timeout: 245 seconds]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm_ has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
rupee has joined #ruby
kindjal has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
jfelchn__ has quit [Quit: jfelchn__]
C1V0 has joined #ruby
jfelchner has joined #ruby
awarner_ has joined #ruby
awarner has quit [Ping timeout: 252 seconds]
Slavopan has quit [Ping timeout: 252 seconds]
ryannielson has left #ruby [#ruby]
eykosioux has quit [Remote host closed the connection]
eykosioux has joined #ruby
IrishGringo has joined #ruby
cj3kim has joined #ruby
l33_ has joined #ruby
l33_ has quit [Remote host closed the connection]
eykosioux has quit [Ping timeout: 248 seconds]
robbyoconnor has quit [Ping timeout: 248 seconds]
cj3kim has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
l33_ has joined #ruby
devoldmx has joined #ruby
cj3kim has joined #ruby
vlad_starkov has joined #ruby
brotatos has quit [Ping timeout: 276 seconds]
gvz has joined #ruby
Takehiro has joined #ruby
nignaztic has joined #ruby
aknewhope_ has joined #ruby
SDr_ has joined #ruby
fivethre1o has joined #ruby
<shevy> test
k13n has joined #ruby
mando has quit [Remote host closed the connection]
toddWork__ has joined #ruby
<apeiros_> shevy: failed. please reboot.
arturaz has quit [Ping timeout: 256 seconds]
bionhart has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
joschi_ has joined #ruby
txdv_ has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
AllStruck_ has joined #ruby
<shevy> man
<shevy> I am not sure I will manage to boot up successfully...
guns has joined #ruby
toekutr has joined #ruby
<shevy> never change a running system!
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
brotatos has joined #ruby
skogis has joined #ruby
morgajel_ has joined #ruby
marwinis1 has joined #ruby
bhaak_ has joined #ruby
xsdg_ has joined #ruby
sailias has quit [Read error: Operation timed out]
binw_ has joined #ruby
sharpobj1ct has joined #ruby
Mohan__ has joined #ruby
<platzhirsch> How do I access instance variables of my object inside a block?
epta_ has joined #ruby
dinoex has quit [Disconnected by services]
Alasdairr has joined #ruby
dinoex| has joined #ruby
classix has quit [Disconnected by services]
Kov|abx has joined #ruby
rotor` has joined #ruby
wildcard0 has joined #ruby
devyn_ has joined #ruby
stonevil has quit [Quit: stonevil]
Sp4rKy_ has joined #ruby
classix has joined #ruby
gadgetoid_ has joined #ruby
<apeiros_> platzhirsch: depends on a) where the block is defined and b) how it is invoked
saarinen has quit [Quit: saarinen]
<apeiros_> if it is defined in the scope of the object (e.g. in an instance method) and called/yielded, you just use @ivar
motto has joined #ruby
<apeiros_> if it is defined outside the scope of the object (e.g. your_obj.some_method { …block… }), you have to go through some kind of accessor (even if that is ivar_get)
Takehiro has quit [Ping timeout: 252 seconds]
<apeiros_> if the block is instance_eval'ed in the context of the object, then it's just @ivar again (no matter in what scope the block was defined)
chrisja_ has joined #ruby
Todd- has quit [Quit: leaving]
<platzhirsch> apeiros_: maybe it's a bit difficult as this involves two nested blocks? https://gist.github.com/platzhirsch/5ef376f92491691da441#file-gistfile1-rb-L28
rgoodwin_ has joined #ruby
rangle has quit [Quit: Textual IRC Client: www.textualapp.com]
samuelkadolph_ has joined #ruby
csexton- has joined #ruby
davidcel- has joined #ruby
<apeiros_> platzhirsch: nesting doesn't change the rules I just stated
brjannc| has joined #ruby
l33_ has quit [Remote host closed the connection]
raz[zZzz] has joined #ruby
thejoecarroll_ has joined #ruby
rangle has joined #ruby
PhilK_ has joined #ruby
jurbat has quit [Quit: Computer has gone to sleep.]
m8 has quit [Ping timeout: 256 seconds]
teclator has quit [Ping timeout: 256 seconds]
NimeshNeema has quit [*.net *.split]
moeSeth has quit [*.net *.split]
keyvan has quit [*.net *.split]
epta has quit [*.net *.split]
marwinism has quit [*.net *.split]
tethra has quit [*.net *.split]
aknewhope has quit [*.net *.split]
wudofyr__ has quit [*.net *.split]
nazty has quit [*.net *.split]
bhaak has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
SDr has quit [*.net *.split]
rcsheets has quit [*.net *.split]
toddWork_ has quit [*.net *.split]
idoru has quit [*.net *.split]
Norrin has quit [*.net *.split]
raz has quit [*.net *.split]
Hien has quit [*.net *.split]
rgoodwin has quit [*.net *.split]
heftig has quit [*.net *.split]
aspiers has quit [*.net *.split]
A124 has quit [*.net *.split]
sharpobject has quit [*.net *.split]
morgajel has quit [*.net *.split]
binw__ has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
drodicus1 has quit [*.net *.split]
Debaser has quit [*.net *.split]
xsdg has quit [*.net *.split]
etank has quit [*.net *.split]
csexton has quit [*.net *.split]
chid has quit [*.net *.split]
jeekl has quit [*.net *.split]
TMM has quit [*.net *.split]
AllStruck has quit [*.net *.split]
wildcard1 has quit [*.net *.split]
Alasdairrr has quit [*.net *.split]
kapowaz has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
txdv has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
devyn has quit [*.net *.split]
skogis_ has quit [*.net *.split]
joschi has quit [*.net *.split]
Mohan has quit [*.net *.split]
fivethreeo has quit [*.net *.split]
brjannc has quit [*.net *.split]
Koven has quit [*.net *.split]
davidcelis has quit [*.net *.split]
rotor has quit [*.net *.split]
PhilK has quit [*.net *.split]
samuelkadolph_ is now known as samuelkadolph
rgoodwin_ is now known as rgoodwin
davidcel- is now known as davidcelis
rotor` is now known as rotor
AllStruck_ is now known as AllStruck
Norrin has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
raz[zZzz] is now known as raz
raz has quit [Changing host]
raz has joined #ruby
<platzhirsch> apeiros_: because @name doesn't yield a non-null value here, I thought that was the first case you described
Elhu has joined #ruby
end_guy has quit [Remote host closed the connection]
l33_ has joined #ruby
aknewhope__ has joined #ruby
<apeiros_> platzhirsch: I said *the block* is yielded/called
Elhu has quit [Client Quit]
<apeiros_> def foo; yield; end # <-- this
end_guy has joined #ruby
aknewhope_ has quit [Read error: Connection reset by peer]
cooldman224 has quit [Remote host closed the connection]
thejoecarroll_ is now known as thejoecarroll
Hien has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Guest93212 has joined #ruby
julianhurley has quit [Read error: Connection reset by peer]
julianhurley has joined #ruby
k13n has quit [Ping timeout: 260 seconds]
tbrock has quit [Quit: Computer has gone to sleep.]
ferdev has joined #ruby
bitri has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
mark_locklear has quit [Ping timeout: 256 seconds]
_nitti has joined #ruby
_nitti has quit [Remote host closed the connection]
bhaak_ is now known as bhaak
rupee has quit [Ping timeout: 276 seconds]
nhhagen has quit [Ping timeout: 276 seconds]
atmosx has quit [Quit: WeeChat 0.4.1-rc1]
wudofyr__ has joined #ruby
ryannielson has joined #ruby
Kar- has quit [Read error: Operation timed out]
Spami has quit [Client Quit]
jamesaxl has joined #ruby
tethra has joined #ruby
tethra has quit [Changing host]
tethra has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
danslo has quit [Quit: danslo]
aspiers has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
jeekl has joined #ruby
d2dchat has joined #ruby
heftig has joined #ruby
axl_ has quit [Quit: axl_]
Debaser has joined #ruby
jarin has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
etank has joined #ruby
idoru has joined #ruby
ananthakumaran has quit [Write error: Broken pipe]
chid has joined #ruby
vlad_starkov has joined #ruby
drodicus has joined #ruby
A124 has joined #ruby
prk has joined #ruby
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn_ is now known as devyn
IrishGringo has quit [Ping timeout: 264 seconds]
miclen_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
eldariof has quit [Ping timeout: 248 seconds]
F1skr has joined #ruby
codelurker has joined #ruby
mtncoder has joined #ruby
codelurker has quit [Remote host closed the connection]
Slavopan has joined #ruby
cj3kim has quit [Remote host closed the connection]
mnemon has joined #ruby
billiam has quit [Remote host closed the connection]
codelurker has joined #ruby
chrisja_ has quit [Quit: leaving]
<lxsameer> how can i force gem to not to use a ssl connection, or use a socks proxy
_nitti has joined #ruby
jprovazn has quit [Quit: Odcházím]
khismetix has joined #ruby
daniel_- has joined #ruby
awarner_ has quit [Remote host closed the connection]
codelurker has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 256 seconds]
devoldmx3 has joined #ruby
awarner has joined #ruby
ryannielson has quit [Quit: ryannielson]
adac has joined #ruby
sambao21 has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
gadgetoid_ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
cobalt238 has joined #ruby
Kar- has joined #ruby
reset has joined #ruby
<cobalt238> How does Mechanize handle redirection?
mando has joined #ruby
<cobalt238> I call submit on a form I get and the title of the returned object is "Please wait...", which I don't see in my browser
<cobalt238> I'm wondering if Mechanize is getting stuck on some page in between or I have to wait or something...
bamdad has joined #ruby
umren has joined #ruby
madb055 has quit [Ping timeout: 256 seconds]
Dummies_freelanc has quit [Quit: Leaving.]
timonv has joined #ruby
atmosx has joined #ruby
awarner has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
awarner has joined #ruby
corrito has joined #ruby
zommi has quit [Remote host closed the connection]
kjellski has quit [Quit: This computer has gone to sleep]
devoldmx3 has quit [Ping timeout: 256 seconds]
rippa has quit [Ping timeout: 240 seconds]
jcromartie has quit [Quit: Computer has gone to sleep.]
khushildep has quit [Read error: Operation timed out]
kjellski has joined #ruby
xsdg_ has quit [Quit: Reconnecting]
xsdg has joined #ruby
ivanoats has joined #ruby
devoldmx has joined #ruby
khushildep has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
superscott[8] has quit [Quit: superscott[8]]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lopoiuy has joined #ruby
<lopoiuy> is this ruby?
<lopoiuy> i want ruby
<lopoiuy> NOW
<apeiros_> yes. this is ruby.
<lopoiuy> CAN I GET A RUBY?
kjellski has quit [Client Quit]
<apeiros_> are you on drugs?
<wmoxam> apeiros_: yes
kjellski has joined #ruby
gasbakid has joined #ruby
<apeiros_> oh, I see
<apeiros_> /kick lopoiuy!*@* get sober
<apeiros_> /cs op #ruby
<apeiros_> wah?
<apeiros_> fuck limechat
lopoiuy was kicked from #ruby by apeiros_ [get sober]
lopoiuy has joined #ruby
<wmoxam> ;)
CodeZombie has joined #ruby
<lopoiuy> :s
<apeiros_> and why on earth do I use a hostmask?
<apeiros_> and why on earth do I use a hostmask?
lopoiuy was kicked from #ruby by apeiros_ [get sober]
<apeiros_> multitaskingfail
<apeiros_> utter. fail.
<wmoxam> heh
<apeiros_> but I blame limechat.
djwonk has quit [Quit: djwonk]
<apeiros_> that multiline paste was its fault.
dwcook has quit [Read error: Operation timed out]
* apeiros_ is super annoyed atm
djwonk has joined #ruby
<apeiros_> 33GB copy had an ETA of 3h - which was bad enough - now it's on 23h
<apeiros_> which is HORRIBLE
<wmoxam> :(
generalissimo has quit [Remote host closed the connection]
<Xeago> rsync has always been better to me than finder
<apeiros_> yeah, or plain cp
<Xeago> or that
<apeiros_> since I don't need a sync in this case.
<apeiros_> but I keep forgetting to use that for big copies.
<Xeago> apeiros_: what do you use as editor?
<apeiros_> sublime
<apeiros_> sometimes bbedit
generalissimo has joined #ruby
<Xeago> before sublime?
<apeiros_> bbedit
<apeiros_> it's sad how they fell behind
<apeiros_> and for no good reason
dwcook has joined #ruby
dwcook has joined #ruby
dwcook has quit [Changing host]
rins has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
emergion has joined #ruby
chandankumar` has quit [Quit: Leaving]
kjellski has quit [Quit: This computer has gone to sleep]
zeeraw has joined #ruby
<apeiros_> Xeago: why?
<apeiros_> oh
* apeiros_ still wears his wizard hat
<atmosx> textmate can't handle large files
<atmosx> I've read that BBedit was awesome at doing that
<apeiros> not awesome, but much better
<apeiros> also bbedit has an awesome multifile search & replace
<apeiros> I stuck with bbedit because back in the OS6 days, it was the only editor which wasn't slower than my typing
rburton- has joined #ruby
machuga is now known as machuga|away
emergion has quit [Ping timeout: 259 seconds]
rins has joined #ruby
<apeiros> why TF does bundler install mailcatcher 0.2.4 when 0.5.11 is out?
<apeiros> how old is 0.2.4 even? 2y?
<s_e> I always liked notepad++ before sublime
framling has joined #ruby
<apeiros> May 9, 2011
<apeiros> 2y indeed
<apeiros> seriously, what, the, fuck?
<atmosx> apeiros: slower than your typing?
<atmosx> Xeago: I bet you type fast also
<apeiros> lagging behind
ebouchut has quit [Quit: This computer has gone to sleep]
yacks has quit [Ping timeout: 248 seconds]
<atmosx> apeiros: what's your score in http://play.typeracer.com/
<apeiros> I'm not that fast of a typer ;-)
<atmosx> haha
saarinen has joined #ruby
pitzips has joined #ruby
<terrellt> Ooh, mailcatcher's pretty neat.
<apeiros> yeah, it's awesome
<apeiros> but I was totally confused as to why they removed functionality
<apeiros> until I noticed the bundler-fail
<apeiros> oh lol?
<apeiros> mailcatcher (>= 0.5.11) ruby depends on
<apeiros> activesupport (~> 3.0) ruby
Eaven has joined #ruby
theRoUS has quit [Read error: Operation timed out]
johnmilton has quit [Ping timeout: 276 seconds]
Guedes0 has joined #ruby
Eaven has quit [Remote host closed the connection]
horrror has quit [Quit: horrror]
Eaven has joined #ruby
horrror has joined #ruby
lxsameer has quit [Quit: Leaving]
lkba has quit [Ping timeout: 276 seconds]
<shevy> apeiros!!! show some love for bundler!!!!!
<workmad3> atmosx: my best on typeracer is about 109wpm... what's yours?
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<terrellt> This thing is clearly inaccurate. 122.
<atmosx> workmad3: best 93
<Xeago> I started looking for word alternatives when I was 11
<Xeago> :\
<Xeago> because my cursor lagged
<atmosx> shit
<atmosx> I though I was fast
Levin_22 has joined #ruby
enebo has quit [Quit: enebo]
reset has quit [Quit: Leaving...]
Nisstyre-laptop has quit [Quit: Leaving]
<shevy> awww
<Xeago> 82 @ typeracer
<shevy> I had 96
<shevy> I am too slow
<Xeago> not in that comfortable position tho
<atmosx> shevy: my avg is 77
<atmosx> 93 is just my fastest
<shevy> 109 I can understand
<Xeago> and my right hand is not that used to typing yet
<atmosx> try
<shevy> 122 I find hard to believe
<terrellt> It tests you afterward if you go that high.
<shevy> atmosx well that is just training
<terrellt> Test was 112.
<shevy> 77 is clearly "I have not trained at all"
<Xeago> haven't done much since the cast got removed
DonRichie has quit [Quit: Verlassend]
<shevy> hehe
krawchyk has quit [Remote host closed the connection]
stonevil has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
<workmad3> my avg is 85
<terrellt> 123, then a test pops up from alice in wonderland, and that said 132. These are way too short to be accurate.
mixel has joined #ruby
<aedorn> typeracer?
<terrellt> Yeah.
lewix has quit [Remote host closed the connection]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
<aedorn> I'm getting slower ... 152
<Xeago> I agree with terellt
lewix has joined #ruby
<Xeago> also I think wpm is a flawed metric
<Xeago> especially over those small samples
machuga|away is now known as machuga
stkowski has quit [Quit: stkowski]
greenarrow|2 has joined #ruby
pcarrier_ has joined #ruby
<aedorn> Oh.. 172.. yeah, it's easier if you memorize the passage first and then type it. Trying to read and type at the same time will slow a lot of people down. Especially if they have to know what they're typing.
johnrlive has quit [Remote host closed the connection]
greenarrow has quit [Read error: Operation timed out]
horrror has quit [Quit: horrror]
v0n has quit [Ping timeout: 248 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
cobalt238 has quit [Quit: Page closed]
prk has quit [Ping timeout: 245 seconds]
carloslopes has quit [Remote host closed the connection]
lkba has joined #ruby
pitzips has quit [Ping timeout: 240 seconds]
robottinosino has quit [Quit: WeeChat 0.4.0]
froy has quit [Ping timeout: 246 seconds]
<jonkri> i wonder if someone could recommend a good ruby book. i want it in print. i don't know ruby at all, but i know quite a lot about haskell, java, javascript, html and php. thanks in advance :)
plentz has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
froy has joined #ruby
_nitti has quit [Remote host closed the connection]
Leighton has quit [Quit: Leaving]
<atmosx> jonkri: I've read good things about eloquent ruby. You want to learn or just a book to as a reference? If you want the later the pickaxe is what everyone uses.
_nitti has joined #ruby
Al_ has joined #ruby
vlad_starkov has joined #ruby
JimmyNeutron has quit [Ping timeout: 252 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bricker`LA> I'm making a Tempfile and then later calling #close! on it, and I keep getting "undefined method `close!' for #<File:...". https://gist.github.com/bricker/5630883 This doesn't make sense to me
Ontolog has joined #ruby
Zai00 has joined #ruby
<jonkri> atmosx: i don't know, really. i want a book that explains in a good way, but at the same time i want deep understanding of how it works. but a reference would be good too :)
kofno has quit [Remote host closed the connection]
preller has quit [Ping timeout: 264 seconds]
<atmosx> jonkri: I'd say forget the reference, you can find plenty of material online.
<atmosx> ruby is very easy and you seem already a seasoned programmed with object-oriented dev
palantir has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
<plentz> hey guys, I think I'm hitting a ruby bug(sidekiq @ ruby 2.0.0p195) https://gist.github.com/plentz/5630854
devoldmx3 has joined #ruby
<atmosx> jonkri: take a look here: http://tinyurl.com/oxqary8
stonevil has quit [Ping timeout: 252 seconds]
<plentz> ^ gdb output
stonevil has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
evenix has quit [Remote host closed the connection]
Guest93212 is now known as rupee
agjacome has quit [Quit: leaving]
<atmosx> jonkri: and until the book comes home pick one of these to startup http://readwrite.com/2011/04/08/10-free-e-books-on-ruby-for-be
hydrozen has joined #ruby
evenix has joined #ruby
<atmosx> with the basics, you won't need to read them more than once
codecop has quit [Quit: Išeinu]
_Amaan has quit [Quit: _Amaan]
spider-mario has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
devoldmx has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
stewart_ has joined #ruby
_Amaan has joined #ruby
pitzips has joined #ruby
<jonkri> atmosx: thanks :)
smigg has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
miclen_ has quit [Quit: Leaving]
tomkad has joined #ruby
dan2552 has joined #ruby
evenix has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
appleseed has joined #ruby
robottinosino has joined #ruby
kofno has quit [Remote host closed the connection]
Bleah has joined #ruby
jarin has joined #ruby
appleseed has quit [Client Quit]
mklappstuhl has joined #ruby
<jonkri> how about books for ruby on rails? :>
cr3 has joined #ruby
<ericwood> railsguides are good
<cr3> how can I get a reference to a function or method so that I can call it later?
<banisterfiend> cr3: in ruby we normally can avoid having to do that by using blocks/procs instead
wallerdev has quit [Quit: wallerdev]
JimmyNeutron has joined #ruby
<banisterfiend> cr3: but if you really want to do it, you call the 'method' method, i.e: my_meth = obj.method(method_name)
<banisterfiend> my_meth.call
<ericwood> meth: not even once
mmitchell has quit [Remote host closed the connection]
corrito has quit [Quit: Textual IRC Client: www.textualapp.com]
<aedorn> Agile Development with Rails was pretty good, and there's a 4th edition (for Rails 4) in beta
robottinosino has quit [Quit: WeeChat 0.4.0]
robottinosino has joined #ruby
gaahrdner has quit [Remote host closed the connection]
<jonkri> aedorn: i need the book in print (really don't like reading text on monitors). should i wait?
mklappstuhl has quit [Read error: Connection reset by peer]
<workmad3> aedorn: the rails 4 edition is technically the 5th edition ;)
mklappstuhl has joined #ruby
gvz has quit [Quit: pavargau.]
<workmad3> aedorn: they've changed the naming convention now though... the new edition is AWDWR for Rails 4, rather than 5th edition
<platzhirsch> Do you follow any rules when to explicitly type parentheses in Ruby? Excluding the case in which you have to for precedence reasons
<workmad3> platzhirsch: I follow guidelines more than rules
<zphobic> 'bundle update rake' => "ERROR: Gem bundler is not installed, run 'gem install bundler' first."
<zphobic> 'bundle update rake' => "ERROR: Gem bundler is not installed, run 'gem install bundler' first."
<zphobic> 'bundle update rake' => "ERROR: Gem bundler is not installed, run 'gem install bundler' first."
<platzhirsch> workmad3: that's the term I actually wanted to use
<stenno> uhm
<zphobic> Running 'bundle update rake' => "ERROR: Gem bundler is not installed, run 'gem install bundler' first."
<platzhirsch> rules doesn't make much sense here and also not for Ruby in general
<MrZYX> zphobic: stop spamming
<stenno> can you stop that spamming please
<workmad3> platzhirsch: the guidelines are mostly aethsetic in nature, and my tendency is to prefer parens apart from on 0-argument method calls, unless the line reads better without parens
adac has quit [Quit: Leaving]
<zphobic> Running 'bundle update rake' => "ERROR: Gem bundler is not installed, run 'gem install bundler' first."
[[thufir]] has quit [Quit: Leaving.]
<stenno> ops
<zphobic> Running 'bundle update rake' leads to "ERROR: Gem bundler is not installed, run 'gem install bundler' first."
<zphobic> My god I'm an idiot.
<zphobic> Apologies.
graft has quit [Ping timeout: 260 seconds]
<workmad3> zphobic: you were 2 seconds away from a /ignore zphobic :P
<zphobic> Anyway, installing bundler using gems doesn't fix the error...
<workmad3> zphobic: is your gem bin path on your $PATH?
ia___ has quit [Quit: ia___]
pitzips has quit [Ping timeout: 248 seconds]
<zphobic> Ugh. Yeah, it was a stale PATH. Been mucking with rvm and it upgraded the ruby version from p392 to p429 underneath the session.
<zphobic> Sorry for the spam again!
nomenkun has joined #ruby
<workmad3> zphobic: hehe
_Amaan has quit [Quit: _Amaan]
<platzhirsch> what happened, how did you pipe stderr to the IRC?
ravster has left #ruby [#ruby]
johnrlive has joined #ruby
<bricker`LA> Sorry to ask again - Does anybody know why this Tempfile is being turned into a File? https://gist.github.com/bricker/5630883 if I check the class inside the method, it's a Tempfile, but checking the class of the return value (outside of the method) shows File
<zphobic> Oh, I was just scrolled waaaaay up so my sent line wasn't being printed. You know, like those computer-illiterate people whose printer isn't working so they hit print repeatedly until the printer suddenly prints 30 copies? :-/
pitzips has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
<platzhirsch> zphobic: hahaha
preller has joined #ruby
<workmad3> zphobic: oh, you mean grandparents :P
sam113101 has quit [Quit: WeeChat 0.4.0]
emergion has joined #ruby
cooldman224 has joined #ruby
brianpWins has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
Ontolog has quit [Ping timeout: 256 seconds]
sam113101 has joined #ruby
havenwood has joined #ruby
<fuzzyhorns> is there a way to do something like this statement
<fuzzyhorns> nums.each {|n| meow.push n if n %3 == 0 || meow.push n if n %5 == 0}
Dummies_freelanc has joined #ruby
kf8a has joined #ruby
<fuzzyhorns> mostly the bit of having an or operator in the {}
<fuzzyhorns> i know i am doing this wrong
_veer has quit [Ping timeout: 248 seconds]
akhet has quit [Remote host closed the connection]
kf8a has quit [Client Quit]
<MrZYX> huh, just do meow.push n if n % 3 == 0 || n % 5 == 0
breadthfirst has joined #ruby
<bricker`LA> screw it, I'm not using Tempfile anymore for this task. it has defeated me.
<MrZYX> or yet better meow = nums.select {|n| n % 3 == 0 || n % 5 == 0 }
Spooner has joined #ruby
<stenno> this looks like projecteuler :)
<fuzzyhorns> zyx ahh yes
<fuzzyhorns> makes more sense
preller has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
Kar- has quit []
<fuzzyhorns> also what is the difference between map and inject?
<stenno> wut
<stenno> map replaces element, inject reduces them
teclator has joined #ruby
slainer68 has joined #ruby
<zphobic> fuzzyhorns: map is N=>N, inject/reduce is N=>1.
RORgasm_ has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
<xardas> is there a great speed improvement if i skip comments in a file when regexing each_line? it seems already really fast
<fuzzyhorns> thanks folks :)
tomkad has quit [Ping timeout: 248 seconds]
emergion has quit [Ping timeout: 260 seconds]
Criztian has joined #ruby
wmoxam has quit [Ping timeout: 248 seconds]
Criztian has quit [Remote host closed the connection]
Al_ has quit [Read error: Connection reset by peer]
nikor has joined #ruby
Al_ has joined #ruby
jerius has quit [Read error: Operation timed out]
nikor has left #ruby [#ruby]
icco has quit [Ping timeout: 252 seconds]
Cultofmetatron has quit [Write error: Broken pipe]
gasbakid has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
icco has joined #ruby
CyberMaN has quit [Read error: Connection reset by peer]
wesside_ has quit [Quit: Computer has gone to sleep.]
prk has joined #ruby
eykosioux has joined #ruby
CyberMaN has joined #ruby
rads has joined #ruby
breadthfirst has quit [Remote host closed the connection]
kofno has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
fuzzyhorns has quit [Remote host closed the connection]
codelurker has joined #ruby
[Neurotic] has joined #ruby
moeSeth has joined #ruby
keyvan has joined #ruby
kapowaz has joined #ruby
rcsheets has joined #ruby
yann_ck has joined #ruby
codelurker has quit [Remote host closed the connection]
yann_ck has quit [Client Quit]
failshell has quit [Remote host closed the connection]
jgarvey has quit [Quit: Leaving]
monkegjinni has joined #ruby
monkegji_ has joined #ruby
saarinen has quit [Quit: saarinen]
k13n has joined #ruby
<rads> I have routes for a few different controllers that all follow the same URL pattern
<rads> what's the simplest way to get rid of duplication? combining the controllers into a single controller would be one way, but I'd like to keep them separate since they're representing different pages
<rads> it's just that they have the same URLs for browsing them
<MrZYX> -> #RubyOnRails, but your routes file is just ruby, loops are available
<rads> oh, sorry, I thought I was in that channel
saarinen has joined #ruby
NimeshNeema has joined #ruby
r0bby has joined #ruby
stewart_ has left #ruby [#ruby]
breadthfirst has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
monkegjinni has quit [Ping timeout: 256 seconds]
Ontolog has joined #ruby
Cultofmetatron has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
hyeomans has joined #ruby
kirun has quit [Quit: Client exiting]
Al_ has quit [Quit: Al_]
kofno has quit [Ping timeout: 256 seconds]
l33_ has quit [Remote host closed the connection]
r0bby_ has joined #ruby
Criztian has joined #ruby
ephemerian has joined #ruby
l33_ has joined #ruby
dangerousdave has quit [Quit: Leaving...]
TomRone has quit [Ping timeout: 248 seconds]
eykosioux has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
icco has quit [Ping timeout: 256 seconds]
dekz__ has quit [Quit: Connection closed for inactivity]
r0bby has quit [Ping timeout: 248 seconds]
interactionjaxsn has joined #ruby
icco has joined #ruby
reset has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
ToApolytoXaos has quit [Quit: Leaving]
peta_ has quit [Quit: peta_]
krombr has joined #ruby
Criztian has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
forrest has quit [Quit: Leaving]
interactionjaxsn has quit [Ping timeout: 248 seconds]
breakingthings has quit [Quit: breakingthings]
bean__ has quit [Quit: Computer has gone to sleep.]
timepilot has joined #ruby
vlad_starkov has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
machuga is now known as machuga|away
jtharris has quit [Quit: WeeChat 0.4.0]
stenno has quit [Quit: bed]
Eaven has joined #ruby
guns has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
mixel has quit [Quit: mixel]
splittingred has quit [Quit: splittingred]
Levin_22 has quit [Remote host closed the connection]
l33_ has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
Levin_22 has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
icco has quit [Read error: Operation timed out]
mixel has joined #ruby
plentz has left #ruby [#ruby]
becom33 has joined #ruby
<becom33> having a regex problem
<becom33> help
Kricir has quit [Remote host closed the connection]
whowantstolivef1 has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
icco has joined #ruby
DanKnox is now known as DanKnox_away
_veer has quit [Ping timeout: 264 seconds]
TheDick has joined #ruby
becom33 has quit [Client Quit]
twopoint718 has quit [Quit: leaving]
jdunck has joined #ruby
newUser1234 has quit [Remote host closed the connection]
timepilot has quit [Quit: timepilot]
jdunck has quit [Max SendQ exceeded]
rins has quit [Ping timeout: 264 seconds]
TomRone has joined #ruby
Bry8Star has quit [Write error: Connection reset by peer]
ariedler has quit [Remote host closed the connection]
dan2552 has left #ruby [#ruby]
r0bby_ has quit [Ping timeout: 248 seconds]
fschuindt has joined #ruby
jdunck has joined #ruby
TheDick has quit [Client Quit]
Zai00 has quit [Quit: Zai00]
brandon_ has quit [Ping timeout: 246 seconds]
Bry8Star has joined #ruby
brandon has joined #ruby
mad_hatter_ has quit [Read error: Connection reset by peer]
jamesaxl_ has joined #ruby
brandon is now known as Guest94737
bamdad has quit [Quit: bamdad]
thesheff17 has quit [Remote host closed the connection]
<Xeago> becom33 there was quite the flux of regex analyzers
<Xeago> let me see if i can find one
jamesaxl has quit [Ping timeout: 276 seconds]
arya has joined #ruby
niklasb has quit [Read error: Operation timed out]
cj3kim has joined #ruby
toekutr has quit [Remote host closed the connection]
tbrock has joined #ruby
_nitti_ has joined #ruby
toekutr has joined #ruby
monkegji_ has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
devoldmx has joined #ruby
l33 has joined #ruby
chrishough has quit [Quit: chrishough]
DanKnox_away is now known as DanKnox
cr3 has quit [Quit: leaving]
_nitti has quit [Ping timeout: 248 seconds]
_nitti_ has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 256 seconds]
freeayu has joined #ruby
d2dchat has quit [Remote host closed the connection]
mumblerit has quit [Ping timeout: 256 seconds]
cofin has quit [Quit: cofin]
mumblerit has joined #ruby
l33__ has joined #ruby
jamesaxl_ has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
darrik has quit [Ping timeout: 264 seconds]
reset has quit [Quit: Leaving...]
arya has quit [Ping timeout: 248 seconds]
saarinen has quit [Quit: saarinen]
Ontolog has quit [Remote host closed the connection]
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
wsterling has quit [Remote host closed the connection]
l33 has quit [Ping timeout: 256 seconds]
greenarrow|2 has quit [Ping timeout: 256 seconds]
teclator has quit [Read error: Operation timed out]
Bleah has quit [Ping timeout: 248 seconds]
k13n has quit [Ping timeout: 260 seconds]
breadthfirst has quit [Remote host closed the connection]
Eaven has quit [Remote host closed the connection]
arya has joined #ruby
Slavopan has quit [Ping timeout: 240 seconds]
eykosioux has joined #ruby
teclator has joined #ruby
atno has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
atno has joined #ruby
wyhaines_ has joined #ruby
bitri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bigmac> im trying to copy a directory recursively only the folders not the files
wyhaines has quit [Read error: Connection reset by peer]
<bigmac> any one ideas? one liners?
guns has joined #ruby
<havenwood> bigmac: Dir['**/*/']
emergion has joined #ruby
<MrZYX> + mkdir_p
chrishough has joined #ruby
brotatos has joined #ruby
<bigmac> oh thank you lol i seen this already
<bigmac> i been reading on the phone and now got home to try and that seems simple enough
<bigmac> im trying to fix a function that fails when you create a dir that includes in the name [ <---
emergion has quit [Client Quit]
djwonk has quit [Quit: djwonk]
arya_ has joined #ruby
<ned> http://pastie.org/7945460 hi can anyone help me with this?
khismetix has joined #ruby
<ned> ive tried all sorts of rvm, bundler, update-alternatives, etc stuff
<ned> and its driving me insane :(
arya has quit [Ping timeout: 248 seconds]
arya_ has quit [Client Quit]
tymat has quit [Quit: kthnxbye!]
<havenwood> ned: Might try #RubyOnRails if you haven't.
<ned> thanks, good point.
<bigmac> i have to quit using junk like `ls location/` it fails to often
darrik has joined #ruby
momomomomo has quit [Quit: momomomomo]
stkowski has joined #ruby
momomomomo has joined #ruby
TomRone has quit [Ping timeout: 256 seconds]
Ontolog has joined #ruby
wmoxam has joined #ruby
mixel has quit [Quit: mixel]
wallerdev has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
akells` has joined #ruby
Ontolog_ has joined #ruby
arya has joined #ruby
ariedler has joined #ruby
CyberMaN has quit [Changing host]
CyberMaN has joined #ruby
akells` has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
agjacome has joined #ruby
Vert has quit [Read error: Connection reset by peer]
Ontolog has quit [Ping timeout: 248 seconds]
AlbireoX has quit [Remote host closed the connection]
larissa has joined #ruby
jlast has joined #ruby
akells` has joined #ruby
jlast has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
xardas has quit [Ping timeout: 245 seconds]
akells` has joined #ruby
kf8a has joined #ruby
Vert has joined #ruby
wargasm has joined #ruby
akells` has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
TomRone has joined #ruby
Ontolog has joined #ruby
niklasb has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
IrishGringo has joined #ruby
_veer has quit [Ping timeout: 264 seconds]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
tbrock has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
<xibalba> tbrock
akells` has joined #ruby
jonkri has quit [Quit: Lost terminal]
Ontolog_ has quit [Ping timeout: 256 seconds]
alup has quit [Ping timeout: 246 seconds]
r0bby_ has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
arya has quit [Ping timeout: 248 seconds]
takeru has joined #ruby
alup has joined #ruby
johnrlive has quit [Remote host closed the connection]
arya has joined #ruby
emergion has joined #ruby
gstamp has joined #ruby
dankest has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
teclator has quit [Ping timeout: 245 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
<dankest> What does it mean when something is a regression? I've got a failing test that apparently "a mismatch between minutes and seconds in the reporter; it's a regression".
jdunck has joined #ruby
parzo has joined #ruby
<bigmac> havenwood: dir tree looks like--->"/home/dir1/dir2/dir3/dir5/dir6"
druonysus has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<bigmac> for x in Dir["/home/*/"]; Dir.mkdir(x)
Spooner has quit [Quit: Leaving]
<bigmac> this will only make the first directory
lethjakm1 has left #ruby ["WeeChat 0.4.0"]
bamdad has joined #ruby
<parzo> Just wondering is there a simple way to loop through a set of arithmetic operators? i.e. can I place them in an array and then try and use them in a statement?
threesome has quit [Read error: Operation timed out]
Hobogrammer_ has joined #ruby
akells` has quit [Remote host closed the connection]
<LennyLinux> Yes
baroquebobcat has quit [Quit: baroquebobcat]
<LennyLinux> You could use send for example
pitzips has quit [Remote host closed the connection]
<parzo> never heard of it just reading about it now :)
<otters> every ruby programmer should know about send, and few of them should ever need to use it
druonysus has quit [Ping timeout: 256 seconds]
Hobogrammer has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 260 seconds]
tomzx has joined #ruby
<havenwood> ary = [1, 2, 3]; [:+, :-, :*].map { |op| ary.inject op }; #=> [6, -4, 6]
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
JimmyNeutron has quit [Quit: Leaving]
mr_pause has joined #ruby
<mr_pause> Hello
<parzo> thanks havenwood just making sense of it now :)
<mr_pause> Is there a way to lock multiple mutexes in a deadlock-free way ?
fschuindt has joined #ruby
<havenwood> mr_pause: Yes. You mean like a semaphore?
<havenwood> mr_pause: Using libraries that extract away the pain is one nice way.
<havenwood> mr_pause: Celluloid for example: http://celluloid.io/
emergion has quit [Quit: Computer has gone to sleep.]
<mr_pause> Not like a semaphore, i need to lock more than one mutex
Z_Mass has joined #ruby
<mr_pause> Each mutex controls a different object, so can't use a semaphore
<havenwood> mr_pause: Ah.
reppard has joined #ruby
<havenwood> mr_pause: So a bunch of mutexes for different objects.
<reppard> can someone explain what the = -> is doing on the first line?
<havenwood> reppard: Syntactic sugar for lambda.
<mr_pause> havenwood: yes
<havenwood> reppard: To encourage use of lambda over proc, Matz added the stabby lambda syntax (->).
<reppard> nice, now i have something a bit more verbose to search for
<reppard> haha
<havenwood> mr_pause: Celluloid not a good match?
johnnyfuchs has quit [Ping timeout: 264 seconds]
advorak has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
<mr_pause> havenwood: I'm currently trying to add functionality to Celluloid =D
<havenwood> mr_pause: Aha!
<reppard> So i was trying to compare lazy fib generation and recursive fib generation
<mr_pause> I want to add the possibility to wait on multiple futures at once
<reppard> but with recursion anything over the 7702 or so nth, i get a stack level to deep error
bricker`LA has joined #ruby
<havenwood> mr_pause: What would multi-future waiting sytax look like? I'm curious?
<reppard> the same code in C runs flawlessly seemingly without a stack limit
bionhart has quit [Remote host closed the connection]
tomsthumb has quit [Quit: Leaving.]
<havenwood> mr_pause: Makes me curious if I could implement it in a processes futures lib?: https://github.com/havenwood/ifuture
<reppard> any advice on how to enumerate large fib sequences without blowing the stack?
<reppard> efficiently
<mr_pause> havenwood: No idea about the syntax, i'm just trying to make it work for now ;)
viszu has quit [Quit: Leaving.]
<havenwood> exit
<havenwood> >.> mt
<banisterfiend> mr_pause: you're thinking of something like jquery's $.when ?
<advorak> I don't know why I can't remember the name .... what's the name of a rubygem which allows me to browse websites programmatically and even utilizes a cookie file (but doesn't support javascript)? (*not* watir :-) )
aedorn has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
<mr_pause> banisterfiend: I did not think about syntax at all honestly
<banisterfiend> mr_pause: but i mean, conceptually, is that what you're doing?
<mr_pause> No need to think about it before you're sure that what you want to do works
<banisterfiend> im not talking about syntax either :)
<mr_pause> Mhh never did any jquery, let me look it up
<jfelchner> advorak: Mechanize?
devoldmx has joined #ruby
<banisterfiend> mr_pause: it basically generates a new promise that is 'resolved' when all the given promises resolve successfully
<havenwood> advorak: Or HTTPClient?
baroquebobcat has joined #ruby
<havenwood> banisterfiend: ooh, interesting
aedorn has joined #ruby
<banisterfiend> but im not really clear on the relationship between promises and futures tbh
caveat- has quit [Remote host closed the connection]
<havenwood> me neither. futures are easy to wrap head around but i'd have to read up on promises
<banisterfiend> havenwood: how would u define a future?
<advorak> jfelchner: yes, Mechanize. Thanks! :-)
<jfelchner> advorak: np!
caveat- has joined #ruby
tomzx has quit [Quit: tomzx]
<mr_pause> banisterfiend: Yup just like jquery's when =)
<banisterfiend> mr_pause: cool :)
guns has quit [Quit: guns]
<mr_pause> Maybe only one difference: i'd like (optionally) to get any result as soon as it is available
<havenwood> banisterfiend: A block of code that starts running right away in parallel. You can ask it if its ready and decline to ask for the value and block. But if you ask for the value before it is ready you block. Once it is ready it returns then caches the return value./
<mr_pause> Found this which is what i want:
<havenwood> banisterfiend: No callback or anything. You have to ask the future.
<banisterfiend> havenwood: ah ok, i think a promise could be more general then, it doesn't have to run in parallel
kil0byte has joined #ruby
wyhaines_ has quit [Remote host closed the connection]
lele has quit [Ping timeout: 246 seconds]
<r0bglees0n> i think asynchronously is good enough
<havenwood> r0bglees0n: good point
<havenwood> r0bglees0n: implementation detail whether parallel, hrm
rhys has quit [Quit: Leaving]
<havenwood> I think the typical usecase assumes it is capable of running in parallel, but it could try and be unable or whatever.
<banisterfiend> in jquery you can create a promise like this: promise = $.Deferred()
kofno has joined #ruby
<banisterfiend> you can then give that to someone and they can define what happens when it's resolved, i.e: promise.then (val)-> console.log "promise was resolved!"
Mattix has quit [Quit: Leaving]
<banisterfiend> and you resolve the promise by calling: promise.resolve("yo yo yo, i'm resolving this")
Matip has joined #ruby
jdunck has joined #ruby
<havenwood> r0bglees0n: I was pair programming with a Swedish friend and we took a stab at extracting IChannel base behavior out to a Channel class that Redis and UNIXSocket inherit from. I was curious as to your thoughts! https://github.com/havenwood/ichannel/tree/module_to_class
<banisterfiend> or promise.reject("fail")
jdunck has quit [Client Quit]
reset has joined #ruby
foxtrot101 has joined #ruby
johnkary has joined #ruby
<banisterfiend> it's really an extremely simple concept, but pretty sweet once u begin to grok it
<havenwood> r0bglees0n: Just a code spike, not pull request ready.
Mattx has joined #ruby
osvico has joined #ruby
IceDragon has joined #ruby
<banisterfiend> havenwood: in jquery it never blocks, you can not just ask for the value, the best you can do is define a 'then' callback that fires once the value is available
lele has joined #ruby
<r0bglees0n> havenwood: interesting experiment. I'm not sure I like .new(:unix, …) cuz the arg list is a bit long and I like to keep those short. Extracting common behavior between redis & unix socket makes sense but i wonder what do we gain and if it makes the code less straight forward.
<havenwood> r0bglees0n: Yeah, that was an afterthought.
predator217 has quit [Ping timeout: 240 seconds]
ferdev has quit [Ping timeout: 260 seconds]
<havenwood> r0bglees0n: Main intention was to make Redis and unix classes dry and make an future alternate transporter easier to implement.
ferdev has joined #ruby
<havenwood> r0bglees0n: May be premature. Was fun though. :)
<terrellt> Tends to be a good steps to making a better plugin interface. If you generalize interaction requirements you can pretty quickly create plugins for things like...I don't know, using TCP or something? Who knows.
<r0bglees0n> havenwood: yeah, there's nothing to plug into except the tests for the new adapters
<r0bglees0n> redis uses the exact same tests as unix socket
Matip has quit [Ping timeout: 256 seconds]
<r0bglees0n> anyway im glad to see people hacking on it :D
johnkary has quit [Quit: @johnkary]
<havenwood> r0bglees0n: Yup, tests pass. (Removing the #new method.)
cooldman224 has quit [Remote host closed the connection]
<banisterfiend> havenwood: the really cool thing about promises (afaik) is that if you design your APIs in a promise-aware way, then you can actually write code that is structured/looks like synchronous code, but is totally async
csexton- is now known as csexton
<havenwood> banisterfiend: The callback upon finish is pretty sweet.
predator117 has joined #ruby
cofin has joined #ruby
takeru has quit [Remote host closed the connection]
<havenwood> r0bglees0n: Extracting to a common #new might look better with an options hash instead of ordered args. Just hate to have an options hash inside an options hash... inception.
tomzx has joined #ruby
_maes_ has joined #ruby
niklasb has quit [Ping timeout: 248 seconds]
slainer68 has quit [Remote host closed the connection]
TomRone has quit [Ping timeout: 252 seconds]
MrZYX is now known as MrZYX|off
<r0bglees0n> havenwood: I played with that, at one time I had IChannel.unix serializer: Marshal but dropped back to IChannel.unix Marshal in the end.
ferdev has quit [Ping timeout: 260 seconds]
`p has quit [Ping timeout: 248 seconds]
<havenwood> r0bglees0n: Yeah, gets complicated!
ferdev has joined #ruby
khushildep has quit [Ping timeout: 252 seconds]
sandyRussell has joined #ruby
sandyRussell has left #ruby ["Leaving"]
<r0bglees0n> havenwood: I'm not sure what options a unix socket should take. maybe a configurable seperator would be cool (but prone to error)
w|t has joined #ruby
xcv has joined #ruby
<r0bglees0n> i havent seen any case where the default sep doesnt work so maybe thats a waste of time
<havenwood> r0bglees0n: Yeah, i couldn't figure out whether options was a Redis-only thing or shared.
BeegPeeg00 has joined #ruby
<r0bglees0n> well, it is specific to the adapter you pick but right now unix socket is not configurable at all. not sure what you could configure really.
arya has quit [Ping timeout: 248 seconds]
<havenwood> aye
<r0bglees0n> protocol perhaps
<r0bglees0n> stream vs datagram
<r0bglees0n> but again datagram runs the xpool suite in 26 seconds, a streamed socket runs it in 2
<r0bglees0n> so i donno
motto has quit [Quit: Sto andando via]
w|t has quit [Client Quit]
takeru has joined #ruby
d2dchat has joined #ruby
reppard has quit [Ping timeout: 248 seconds]
thone_ has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
foxtrot101 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
bamdad has quit [Quit: bamdad]
arya has joined #ruby
`p has joined #ruby
<havenwood> wow
jimg has joined #ruby
tyl has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
l33__ has quit [Remote host closed the connection]
thone has quit [Ping timeout: 259 seconds]
dallasm_ has quit [Remote host closed the connection]
<havenwood> I'm almost tempted to apply for a C# position at SpaceX 10 min from where I live. I wanna code fer Mars.
<havenwood> They are kinda wishy washy about lang choice.
gyre007 has joined #ruby
d2dchat has quit [Remote host closed the connection]
BeegPeeg00 has quit [Remote host closed the connection]
danslo has joined #ruby
<havenwood> Bastages have a Python position, hrm: http://www.spacex.com/careers.php?jvi=odfMWfwU,Job
IrishGringo has quit [Ping timeout: 264 seconds]
<r0bglees0n> havenwood: my friend did an interview as a frontend developer for those guys
arya has quit []
arya has joined #ruby
nari_ has joined #ruby
<havenwood> r0bglees0n: What'd he think?