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.]
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]
<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]
<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]
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" } ]
<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…]
<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]
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`?
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.
<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]
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]
<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
<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
<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]
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.
<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?
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 :-[
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
<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...
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)
<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]
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
<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
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
<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.
<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.]