imperator2 changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
nisstyre has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
GarethAdams has quit [Ping timeout: 252 seconds]
GarethAdams has joined #ruby-lang
lupine has joined #ruby-lang
woollyams has joined #ruby-lang
mistym_ has joined #ruby-lang
nofxx has quit [Read error: Connection reset by peer]
nofxx1 has joined #ruby-lang
charlespeach has left #ruby-lang [#ruby-lang]
lupine has quit [Quit: ZNC - http://znc.in]
Coincidental has quit [Remote host closed the connection]
mistym_ has quit [Ping timeout: 260 seconds]
Coincidental has joined #ruby-lang
ikrima has joined #ruby-lang
JonahR has joined #ruby-lang
lupine has joined #ruby-lang
nofxx1 has quit [Ping timeout: 264 seconds]
Coincidental has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
shinnya has joined #ruby-lang
tenderlo_ has quit [Remote host closed the connection]
smashwilson has quit [Quit: Leaving]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
charliesome has quit [Ping timeout: 246 seconds]
Coincidental has joined #ruby-lang
vlad_starkov has joined #ruby-lang
fosky has joined #ruby-lang
hogeo has joined #ruby-lang
Coincide_ has joined #ruby-lang
Coincidental has quit [Ping timeout: 268 seconds]
datanoise has quit [Ping timeout: 246 seconds]
hogeo has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
fosky has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
benanne has quit [Quit: kbai]
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
hogeo has joined #ruby-lang
jxie has joined #ruby-lang
rwk1 has joined #ruby-lang
epichero has joined #ruby-lang
cored has quit [Ping timeout: 244 seconds]
lmadrigal has joined #ruby-lang
lupine has quit [Quit: ZNC - http://znc.in]
rwk1 has quit [Ping timeout: 260 seconds]
lupine has joined #ruby-lang
fosky has joined #ruby-lang
michael_mbp is now known as zz_michael_mbp
bantic has quit [Quit: bantic]
cored has joined #ruby-lang
MrZYX is now known as MrZYX|off
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
JoshuaPaling has joined #ruby-lang
hahuang61 has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby-lang
<zzak> ReinH: thank you!
h0rrorvacui has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
turnip has quit [Quit: WeeChat 0.4.1]
r0bgleeson has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
Cakey has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Read error: Operation timed out]
musty has quit [Quit: Lost terminal]
yfeldblu_ has quit [Ping timeout: 240 seconds]
cored has quit [Ping timeout: 265 seconds]
dingus_k_ has joined #ruby-lang
dingus_k_ has quit [Remote host closed the connection]
dingus_k_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
knu has quit [Ping timeout: 246 seconds]
dingus_k_ has quit [Ping timeout: 260 seconds]
datanoise has joined #ruby-lang
Mon_Ouie has quit [Read error: Operation timed out]
ikrima has quit [Ping timeout: 272 seconds]
benwoody has quit [Quit: benwoody]
Mon_Ouie has joined #ruby-lang
dorei_ has joined #ruby-lang
ikrima has joined #ruby-lang
datanoise has quit [Ping timeout: 264 seconds]
dorei_ has quit [Client Quit]
kurko__ has joined #ruby-lang
Oloryn_lt2 has quit [Read error: Connection reset by peer]
dorei has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
kurko_ has quit [Ping timeout: 260 seconds]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
therealtesseract has quit [Quit: therealtesseract]
vladgh has joined #ruby-lang
kek has joined #ruby-lang
rwk1 has joined #ruby-lang
hogeo has quit [Ping timeout: 246 seconds]
kek has quit [Ping timeout: 246 seconds]
rwk1 has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
mistym has quit [Quit: Leaving]
dorei has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 272 seconds]
vbatts has quit [Ping timeout: 246 seconds]
dingus_khan has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
dingus_khan has joined #ruby-lang
Shellcat has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
Coincide_ is now known as Coincidental
dingus_k_ has joined #ruby-lang
dingus_khan has quit [Ping timeout: 260 seconds]
dingus_k_ has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
mistym has joined #ruby-lang
kurko_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
fosky has quit [Remote host closed the connection]
shterrett has joined #ruby-lang
benwoody has joined #ruby-lang
kurko__ has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
iliketurtles has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
Snibble has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
jackhammer2022 has quit [Client Quit]
bzalasky has joined #ruby-lang
Coincidental has quit [Ping timeout: 268 seconds]
kitak_ has joined #ruby-lang
kurko__ has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
hahuang61 has joined #ruby-lang
kitak has quit [Ping timeout: 246 seconds]
dingus_khan has quit [Remote host closed the connection]
charlespeach has joined #ruby-lang
dingus_khan has joined #ruby-lang
charlespeach has left #ruby-lang [#ruby-lang]
jackhammer2022 has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
tdm00 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kurko_ has quit [Ping timeout: 268 seconds]
dorei has quit []
CaptainJet has quit []
dingus_khan has quit [Ping timeout: 272 seconds]
tdm00 has quit [Client Quit]
bzalasky has quit [Ping timeout: 272 seconds]
earthquake has joined #ruby-lang
bzalasky has joined #ruby-lang
bjh13 has joined #ruby-lang
datanoise has joined #ruby-lang
benwoody has quit [Quit: benwoody]
benwoody has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
vbatts has joined #ruby-lang
dingus_khan has joined #ruby-lang
saarinen has quit [Quit: saarinen]
rwk1 has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
Snibble has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
dingus_khan has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rwk1 has quit [Ping timeout: 246 seconds]
ecnalyr has quit [Remote host closed the connection]
shterrett has quit [Quit: shterrett]
saarinen has joined #ruby-lang
saarinen has quit [Client Quit]
Oloryn_lt2 has quit [Read error: Connection reset by peer]
Oloryn_lt2 has joined #ruby-lang
ecnalyr has joined #ruby-lang
dingus_khan has quit [Ping timeout: 252 seconds]
dingus_khan has joined #ruby-lang
retro|cz has quit [Ping timeout: 252 seconds]
tdm00 has joined #ruby-lang
tdm00 has quit [Client Quit]
ecnalyr has quit [Ping timeout: 245 seconds]
mucker has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
bzalasky has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
bzalasky has quit [Ping timeout: 272 seconds]
fosky has joined #ruby-lang
datanoise has joined #ruby-lang
nisstyre has joined #ruby-lang
ecnalyr has joined #ruby-lang
bradsmith has joined #ruby-lang
yatish27 has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
dingus_khan has quit [Ping timeout: 246 seconds]
ecnalyr has quit [Ping timeout: 245 seconds]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
kurko_ has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
knu has joined #ruby-lang
vlad_starkov has joined #ruby-lang
benwoody has quit [Quit: benwoody]
jsullivandigs has quit [Ping timeout: 246 seconds]
arooni-mobile has quit [Ping timeout: 246 seconds]
kurko__ has quit [Ping timeout: 260 seconds]
zz_michael_mbp is now known as michael_mbp
musty has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
jhulten has quit [Remote host closed the connection]
jhulten has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby-lang
ninetyw has quit [Quit: leaving]
Onixs has quit [Ping timeout: 272 seconds]
jhulten has quit [Ping timeout: 264 seconds]
lun__ has joined #ruby-lang
dalegribble80 has joined #ruby-lang
rwk1 has joined #ruby-lang
wallerdev_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
ItSANg___ has joined #ruby-lang
hogeo has joined #ruby-lang
lun__ has quit [Ping timeout: 272 seconds]
rwk1 has quit [Ping timeout: 260 seconds]
alekst has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Quit: Computer has gone to sleep.]
pothibo_ has joined #ruby-lang
maloik_ has joined #ruby-lang
banisterfiend has joined #ruby-lang
sevvie has joined #ruby-lang
jxie_ has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
ahf_ has joined #ruby-lang
Raycaster1 has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
dumfries_ has joined #ruby-lang
charlespeach has joined #ruby-lang
nofxx has joined #ruby-lang
jperry2 has joined #ruby-lang
dhruvasagar has quit [*.net *.split]
musty has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
Cakey has quit [*.net *.split]
jxie has quit [*.net *.split]
Raycaster has quit [*.net *.split]
pothibo has quit [*.net *.split]
bahar has quit [*.net *.split]
wallerdev has quit [*.net *.split]
Olipro has quit [*.net *.split]
jperry has quit [*.net *.split]
banisterfiend` has quit [*.net *.split]
ahf has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
joonty has quit [*.net *.split]
ndrst has quit [*.net *.split]
xybre has quit [*.net *.split]
maloik has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
bri has quit [*.net *.split]
dumfries has quit [*.net *.split]
iliketurtles has joined #ruby-lang
wallerdev_ is now known as wallerdev
jperry2 is now known as jperry
bryno has joined #ruby-lang
ahf_ is now known as ahf
pothibo_ is now known as pothibo
valeri_ufo has joined #ruby-lang
Cakey has joined #ruby-lang
io_syl has quit []
vlad_starkov has quit [Write error: Connection reset by peer]
charlespeach has quit [Client Quit]
bzalasky has joined #ruby-lang
bahar has joined #ruby-lang
robonerd has quit [Ping timeout: 246 seconds]
dalegribble80 has quit [Quit: leaving]
bahar has quit [Changing host]
bahar has joined #ruby-lang
musty has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
sh1ken has joined #ruby-lang
joonty has joined #ruby-lang
<sh1ken> Hi. I have a noob question. Is this the right place to make this kind of question?
<lianj> just ask
<sh1ken> I'm using Twitter::Tweet with the twitter gem. I'm trying to get any method to work, but when I call a method it just return nil, even the methods that are suppose to return integers... What am I doing wrong?
hogeo has quit [Ping timeout: 272 seconds]
bradsmith has quit [Remote host closed the connection]
bradsmith has joined #ruby-lang
bzalasky has quit [Ping timeout: 263 seconds]
itsraining has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
symm- has quit [Ping timeout: 255 seconds]
jackhammer2022 has joined #ruby-lang
hogeo has joined #ruby-lang
fosky has quit [Ping timeout: 265 seconds]
bradsmith has quit [Ping timeout: 252 seconds]
musty has quit [Ping timeout: 252 seconds]
fosky has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby-lang
pothibo has left #ruby-lang [#ruby-lang]
albioner has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
itsraining has quit [Quit: itsraining]
vladgh has quit [Ping timeout: 252 seconds]
yatish27 has joined #ruby-lang
rwk1 has joined #ruby-lang
sevvie has quit [Ping timeout: 246 seconds]
sh1ken has quit [Quit: leaving]
vlad_starkov has joined #ruby-lang
michael_mbp is now known as zz_michael_mbp
ecnalyr has joined #ruby-lang
big_ has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
nisstyre has joined #ruby-lang
xcess_denied has joined #ruby-lang
Onixs has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
hogeo has quit [Remote host closed the connection]
MartynKeigher has quit [Ping timeout: 252 seconds]
jhulten has joined #ruby-lang
gianlucadv has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
stardiviner has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
Onixs has quit [Read error: Connection reset by peer]
jhulten has quit [Ping timeout: 264 seconds]
charlespeach has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
rwk1 has quit [Remote host closed the connection]
pothibo has joined #ruby-lang
hogeo has joined #ruby-lang
pothibo has quit [Client Quit]
bjh13 has quit [Quit: leaving]
pr0ton has quit [Quit: pr0ton]
bjh13 has joined #ruby-lang
io_syl has joined #ruby-lang
Olipro has joined #ruby-lang
bzalasky has joined #ruby-lang
Olipro has quit [Ping timeout: 265 seconds]
albioner has quit [Ping timeout: 240 seconds]
albioner has joined #ruby-lang
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
bzalasky has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby-lang
mucker has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: Leaving]
big_ has quit [Quit: Page closed]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
MartynKeigher has joined #ruby-lang
pw3 has joined #ruby-lang
bzalasky has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
mucker has joined #ruby-lang
rippa has joined #ruby-lang
bastilian has quit [Ping timeout: 248 seconds]
tylersmith has quit [Remote host closed the connection]
charlespeach has quit [Quit: charlespeach]
tylersmith has joined #ruby-lang
symm- has joined #ruby-lang
tylersmi_ has joined #ruby-lang
rickhull1 has quit [Quit: Leaving.]
tylersmith has quit [Read error: Connection reset by peer]
yatish27 has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
earthquake has quit [Quit: earthquake]
robonerd has joined #ruby-lang
lun__ has joined #ruby-lang
yfeldblum has joined #ruby-lang
JonahR has quit [Quit: jonahR]
simoz has joined #ruby-lang
saxieyu has joined #ruby-lang
saxieyu has quit [Remote host closed the connection]
lun__ has quit [Ping timeout: 246 seconds]
rwk1 has joined #ruby-lang
yatish27 has joined #ruby-lang
pw3 has quit [Ping timeout: 250 seconds]
KM has joined #ruby-lang
rwk1 has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby-lang
simoz has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 272 seconds]
xybre has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 265 seconds]
simoz has joined #ruby-lang
RickHull has joined #ruby-lang
ndrst has joined #ruby-lang
dhruvasagar has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Onixs has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
dingus_khan has joined #ruby-lang
simoz has quit [Ping timeout: 260 seconds]
nomadicoder has quit [Quit: Leaving]
achru has joined #ruby-lang
bjh13 has quit [Quit: leaving]
amerine has quit [Quit: Computer has gone to sleep.]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
soba has joined #ruby-lang
amerine has joined #ruby-lang
Tearan has joined #ruby-lang
arBmind has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bjh13 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
zz_michael_mbp is now known as michael_mbp
jinesh has joined #ruby-lang
mdedetrich has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
sandeepk has joined #ruby-lang
albioner has joined #ruby-lang
rwk1 has joined #ruby-lang
rwk1 has quit [Ping timeout: 264 seconds]
rue|w has quit [Read error: Connection reset by peer]
ryez has joined #ruby-lang
rue|w has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
knu has quit [Ping timeout: 264 seconds]
tylersmi_ has quit [Remote host closed the connection]
vmoravec has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
macmartine has quit [Remote host closed the connection]
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
dingus_khan has quit [Remote host closed the connection]
zirconcode has joined #ruby-lang
dingus_khan has joined #ruby-lang
io_syl has quit []
mucker has quit [Ping timeout: 264 seconds]
<zirconcode> why do I need to namespace twice, but if I were to require the code inside the brackets from another file, they would be in the same namespace Fun::
<zirconcode> inside the comments*
<r0bgleeson> no they wouldn't
<r0bgleeson> require is scoped to TOPLEVEL_BINDING.
<r0bgleeson> require inside the first Foo isn't scoped to "Foo"
<zirconcode> oh, so the require is not _inside_ the module? so it requires the file on the same scope as the first module?
<r0bgleeson> correct
dingus_khan has quit [Ping timeout: 260 seconds]
<zirconcode> r0bgleeson: thanks
<r0bgleeson> np
Mon_Ouie has quit [Ping timeout: 244 seconds]
datanoise has quit [Ping timeout: 265 seconds]
kurko_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
macmartine has joined #ruby-lang
<ReinH> zzak: np :)
sandeepk has quit [Quit: Leaving...]
kurko__ has joined #ruby-lang
banisterfiend has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Ping timeout: 244 seconds]
yatish27 has joined #ruby-lang
sandeepk has joined #ruby-lang
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
Tearan has quit [Quit: Sleepy Badger....]
xcess_denied has quit [Quit: Leaving...]
barttenbrinke has joined #ruby-lang
riffraff_ has joined #ruby-lang
lun__ has joined #ruby-lang
DouweM has quit [Ping timeout: 252 seconds]
rwk1 has joined #ruby-lang
dagobah has joined #ruby-lang
xcess_denied has joined #ruby-lang
datanoise has joined #ruby-lang
xcess_denied has quit [Client Quit]
sandeepk has quit [Quit: Leaving...]
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
lun__ has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 272 seconds]
barttenbrinke has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
JohnBat26 has joined #ruby-lang
stardiviner has joined #ruby-lang
barttenbrinke has quit [Read error: Operation timed out]
relix has joined #ruby-lang
macmartine has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
h_kon has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
RickHull has quit [Quit: Leaving.]
solars has joined #ruby-lang
heftig has quit [Quit: Quitting]
Coincidental has joined #ruby-lang
Zeeo has joined #ruby-lang
tylersmith has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
jackhammer2022 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jackhammer2022 has quit [Client Quit]
xcess_denied has joined #ruby-lang
sandeepk has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tylersmith has quit [Ping timeout: 264 seconds]
arooni-mobile has joined #ruby-lang
RickHull has joined #ruby-lang
<Zeeo> Good day gentlemen, I'm gonna need some help with this. I'm trying to join two words into a regular exp (using r =Regexp.union). Everything works fine, no problem with that but I wanna make this case insensitive, so I make it (r2 = Regexp.new(r, Regexp::IGNORECASE) and I get this warning:
<Zeeo> warning: flags ignored
<Zeeo> how do I get rid of this?
<igalic> how do I run a specific rspec test suite, or one specific test in that file?
<Zeeo> igalic: just comment-out the other ones, I'ts rude and it works
ledestin has joined #ruby-lang
<Zeeo> igalic: or try google, you can probably pass an argument to rspec
snafoo has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<igalic> ruby -S rspec --help
<igalic> currently running, ruby -S rspec spec/defines/vhost_spec.rb --color # however, that gives me this output, ..............................F.........................F.F.F....F. -- which is utterly useless.
<Zeeo> igalic: doesn't your rspec list all the failures by name?
<UziMonkey> Regexp.union just calls Regexp.new, which if its first argument is a regexp, it will ignore any additional flags you try to give it and instead read the flags from the regexp
<UziMonkey> in other words, you'll need to do Regexp.union(/a/i, /b/i)
<UziMonkey> or build the regular expression with text and use Regexp.compile
<whitequark> http://rxr.whitequark.org/mri/source/re.c#3126, you'll thank me later ;)
<igalic> Zeeo: maybe it will, in some kind of summary at the end, but right now it's just doing this annoying and not very useful thing.
<Zeeo> igalic: rspec version?
<igalic> Zeeo: what I want, apparently, is --format documentation
mistym has joined #ruby-lang
datanoise has quit [Ping timeout: 244 seconds]
datanoise has joined #ruby-lang
<Zeeo> whitequark: apparently there is so many stuff I need to learn before I even read this, I'm gonna tank you later, but later is gonna be like... later
heftig has joined #ruby-lang
mucker has joined #ruby-lang
mistym has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
ezkl has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
arooni-mobile has quit [Ping timeout: 264 seconds]
albioner has joined #ruby-lang
rwk1 has joined #ruby-lang
ryez has quit [Ping timeout: 250 seconds]
iliketurtles has joined #ruby-lang
lun__ has joined #ruby-lang
<ljarvis> igalic: you can just refer to the line number
<ljarvis> igalic: rspec file/to/foo.rb:13
rwk1 has quit [Ping timeout: 268 seconds]
kurko__ has quit [Quit: Computer has gone to sleep.]
knu has joined #ruby-lang
dc5ala has joined #ruby-lang
michael_mbp is now known as zz_michael_mbp
kek has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
sandeepk has quit [Quit: Leaving...]
heftig has quit [Quit: Quitting]
<Zeeo> UziMonkey: by the way, whenever I try Regexp.union(/a/i, /b/i) => /\/a\/i|/\b\/i/ T__T
<Zeeo> wich is actually Regexp.union([/a/i, /b/i])
marr has joined #ruby-lang
symm- has quit [Ping timeout: 246 seconds]
symm- has joined #ruby-lang
<Zeeo> *Regexp.union(["/a/i" , " /b/i"])
ikrima has quit [Read error: Connection reset by peer]
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
h0rrorvacui has quit [Quit: ZQ]
<igalic> ljarvis: nice. Thanks.
xcess_denied is now known as xcess_denied|awa
ikrima has joined #ruby-lang
<Zeeo> solved : string = ["a", "b"].join("|"); Regexp.new(string, Regexp::IGNORECASE)
workmad3 has joined #ruby-lang
<yorickpeterse> morning
<Zeeo> => /a|b/i
jxie_ has quit [Ping timeout: 272 seconds]
nisstyre has joined #ruby-lang
<ljarvis> Zeeo: Regexp.union(["foo", "bar"]) #=> /foo
<ljarvis> |bar/
elia has joined #ruby-lang
<ljarvis> ah right ignore case, yeah you have to build it with new; Regexp.new(Regexp.union(array), Regexp::IGNORECASE))
<Zeeo> ljarvis: yup
<Zeeo> ljarvis: but there is no need for union at this point
<Zeeo> ljarvis: .join does the job
zirconcode has quit [Ping timeout: 250 seconds]
<r0bgleeson> yorickpeterse: goede morgen!
rwk1 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
<ljarvis> my vim setup is delicious
bastilian has joined #ruby-lang
sandeepk has joined #ruby-lang
<maloik_> hmm
<maloik_> oh
<maloik_> auth is just slow :<
<maloik_> ljarvis: poidh
<maloik_> also, vimrc ? :)
<maloik_> actually I need to commit some stuff
hhatch has joined #ruby-lang
<r0bgleeson> ljarvis: no better than my emacs, that's fo sho!
<r0bgleeson> i'm joking of course, but try do this in VimL: https://github.com/robgleeson/dots/blob/master/.emacs.d/Cask
<r0bgleeson> it's the bundler equivalent but for emacs
tkuchiki has quit [Remote host closed the connection]
<r0bgleeson> vim on my computer is better than any other though
<r0bgleeson> ok ill stop
freppa has joined #ruby-lang
<yorickpeterse> man I had an amazing idea this morning
<yorickpeterse> write a Gem that compiles Python down to Ruby/Rbx bytecode
<yorickpeterse> it would actually be useful in $WORK's case
yatish27 has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
<r0bgleeson> yorickpeterse: someone has probably started work on the rbx bytecode part?
<r0bgleeson> id be surprised if someone hasn't tried that yet
<gnufied> yorickpeterse: _why did some work in that department
<ljarvis> r0bgleeson: I thought you used vim over emacs
<r0bgleeson> ljarvis: i did, but switched to emacs about 6months ago
<r0bgleeson> hence the alias
<r0bgleeson> i'm not that demented
<r0bgleeson> ..yet
<ljarvis> r0bgleeson: the cask thing is just something like this, no? https://github.com/leejarvis/dotfiles/blob/master/vimrc#L41-L65
<r0bgleeson> is that Vundle?
<ljarvis> ya
<r0bgleeson> ya, it's similar id guess, but i haven't used it yet
<ljarvis> ah
<ljarvis> it's awesome
<r0bgleeson> i think (e)lisp is just a much more powerful language than VimL though
<ljarvis> and it means I have no ~/.vim folder
benanne has joined #ruby-lang
<r0bgleeson> no ~/.vim ?
<ljarvis> nope
<r0bgleeson> how so?
<ljarvis> everything is in 130 ish lines of .vimrc
<r0bgleeson> ah
<gnufied> the minimalist
<gnufied> :-)
<ljarvis> that's me
<r0bgleeson> cask installs to ~/.emacs.d/.cask
<r0bgleeson> and it even setups a sandbox by emacs version
<r0bgleeson> so its pretty leet and full of wheat
<gnufied> we get it. thanks rob
<gnufied> :-)
<r0bgleeson> im sorry, i forgot i have to shut up while on chat rooms!
tkuchiki has joined #ruby-lang
<ljarvis> r0bgleeson: right, vundle installs into ~/.vim/bundle but I dont check it in is what I mean by no .vim folder
hogeo has quit [Remote host closed the connection]
<r0bgleeson> ah
<r0bgleeson> gotcha
<r0bgleeson> i thought it auto-generated some crazy .vimrc
<r0bgleeson> but shhh
<r0bgleeson> IRC is the new church
<r0bgleeson> no one talk
<r0bgleeson> who wants to lead the mass then?
<ljarvis> my vote is yorickpeterse
<r0bgleeson> he'd convert us all to athiests
<gnufied> i suppose i am quite old emacs person though, so I will vote for myself
<r0bgleeson> gnufied: excuse me? Stallman is our god
<r0bgleeson> and high priest
<gnufied> ha ha, yeah. but on this channel
<gnufied> after zenspider
<gnufied> :-)
<r0bgleeson> k00 with me
<gnufied> 13 years!
<gnufied> of service
<r0bgleeson> nice :)
barttenbrinke has joined #ruby-lang
<gnufied> </shameless-plug>
<ljarvis> i got stuck and accidentally installed vim instead
<gnufied> ljarvis: bad boy
<ljarvis> tbh I think they're both as powerful as the other
<gnufied> I should update it, so as it only clones with —depth 1
<gnufied> is there anything ^ for vim ?
<gnufied> it is not ctags
<r0bgleeson> gnufied: what relation has Pallet to cask?
<ljarvis> no idea I dont use anything custom for ruby myself
<yorickpeterse> gnufied: heh
<ljarvis> i would like something like godef but for ruby
<ljarvis> which it seems like robe solves too
tkuchiki has quit [Ping timeout: 268 seconds]
<yorickpeterse> r0bgleeson: "athiests" lel
<ljarvis> i hate autocompletion though
<gnufied> r0bgleeson: pallet is built on top of Cask. installing a package via package-install auto updates caskfile
<yorickpeterse> also I'm agnostic, not the circlejerk kind of person
<gnufied> lol
<gnufied> yorickpeterse:
<yorickpeterse> DAE THINK GOD IS STOPPID? LELELEL UPVOTES
<r0bgleeson> yorickpeterse: I believe in all of the religions so nobody can get on my case
barttenbrinke has quit [Ping timeout: 252 seconds]
<yorickpeterse> I believe in none but can't really rule out the existence of some deity either
<yorickpeterse> it's a paradox mostly
<r0bgleeson> ya sure, on a serious level i'm agnostic too
<r0bgleeson> gnufied: that sounds useful/cool, I've been doing it manually
<yorickpeterse> though if I had to pick I'd probably be a buddhist
<r0bgleeson> buddhists definitely seem like the most tame of the lot
<gnufied> :(
<gnufied> we need more violent religions?
<r0bgleeson> definitely not
<yorickpeterse> gnufied: yes
<r0bgleeson> anyway, i hate talking seriously about religion, or religion at all, it upsets people so easily
<yorickpeterse> we need to go back to the good old days of burning witches and crusades
<yorickpeterse> r0bgleeson: I love discussing it for those reasons
<r0bgleeson> but why? nothing good comes of that
<yorickpeterse> Because I like provoking people
<yorickpeterse> especially if they have no good grounds to build their statements on
<r0bgleeson> you provoke me with your beautiful blonde hair
<yorickpeterse> r0bgleeson: you should see me in bed
<r0bgleeson> i can only imagine!
<yorickpeterse> yeah, you imagine that shit
<yorickpeterse> hmm hmm
heftig has joined #ruby-lang
<yorickpeterse> moist
<ljarvis> D:
<yorickpeterse> ok back to writing installation guides
<ljarvis> lucky you
<yorickpeterse> I don't mind that at all
RickHull has quit [Quit: Leaving.]
Coincidental has quit [Remote host closed the connection]
face has quit [Ping timeout: 248 seconds]
faces has joined #ruby-lang
Coincidental has joined #ruby-lang
<ljarvis> r0bgleeson: wow your gitconfig is tiny
<r0bgleeson> bigger than yours!
<ljarvis> mine isn't in vc because of my github token
<yorickpeterse> ljarvis: wat
<ljarvis> wat
dhruvasagar has quit [Ping timeout: 272 seconds]
<yorickpeterse> oh shit, I've been using Vim for 2 years already?
<yorickpeterse> heh
<ljarvis> i like my git aliases
Coincidental has quit [Ping timeout: 246 seconds]
<yorickpeterse> Oh, I have those in Bash
dhruvasagar has joined #ruby-lang
<ljarvis> I alias my aliases!
<r0bgleeson> do you remember all of those?
<ljarvis> rb is my favourite thing to type ever
mikecmpbll has joined #ruby-lang
<ljarvis> r0bgleeson: pretty much ya
<r0bgleeson> i use a shell function for the rebase thing
<r0bgleeson> `rebase X`.
<r0bgleeson> and its friend, `squash X`.
<ljarvis> you type rebase?
<r0bgleeson> yeah
<ljarvis> i guess i do it too often
<r0bgleeson> without the git part, and -i, but yup
<ljarvis> rb -i ..
<ljarvis> s is probably what i type most
<r0bgleeson> rebase 5 - for the last 5 commits
<r0bgleeson> so no HEAD~X syntax
<ljarvis> ah that's nicer
Zeeo has quit [Ping timeout: 260 seconds]
<ljarvis> r0bgleeson: is that in your dots?
<r0bgleeson> nope, but i can share it, 1sec
<ljarvis> i only see seuqash
<ljarvis> i also cannot type
<ljarvis> gsq does a squash like yours but with no commit
<ljarvis> (uses the existing message)
<ljarvis> i use that too often :/
<r0bgleeson> ljarvis: refresh my .zshrc
<r0bgleeson> it's in there now
<ljarvis> neat thnx
<r0bgleeson> no hay problemas
<ljarvis> ah ok so you dont use it to rebase branches too
<r0bgleeson> nah, it's just a dumb integer
<r0bgleeson> for the current branch
<ljarvis> might make a function that checks for int
<ljarvis> otherwise merges branch
<ljarvis> http://cl.ly/image/381Z2y1T0235 git-hist! \o/
dhruvasagar has quit [Ping timeout: 252 seconds]
<r0bgleeson> whats that?
<r0bgleeson> git-hist..?
<ljarvis> log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
<ljarvis> i think i just did a racist in my work chat
<ljarvis> r0bgleeson: i see you use the heroku stuff, did you check out hk?
CoreData has joined #ruby-lang
<r0bgleeson> ljarvis: ah yeah, couldn't tell you how/where I use heroku, but yeah I have their toolbelt
<r0bgleeson> i fix things around the house with it
<ljarvis> r0bgleeson: hk is about 14 million times faster than their ruby client
<ljarvis> (based on real statistics)
<r0bgleeson> whats it short for? or what is it?
<ljarvis> it's a replacement command line app
<ljarvis> for the heroku command
<r0bgleeson> written in C/Go/..?
<ljarvis> built by them
<ljarvis> Go
<ljarvis> ofc
<r0bgleeson> ahh, nice! =)
<ljarvis> yeah i always hated the lag of the ruby client
<r0bgleeson> i never noticed
<r0bgleeson> ruby lag is annoying sometimes tho :(
Guest80281 has joined #ruby-lang
<maloik_> pft, 14 million
<maloik_> amateurs
<ljarvis> inorite
rob_ has left #ruby-lang [#ruby-lang]
<r0bgleeson> 14 million?
kitak_ has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
<ljarvis> "ljarvis> r0bgleeson: hk is about 14 million times faster than their ruby client"
CoreData has quit [Ping timeout: 264 seconds]
elia has quit [Quit: Computer has gone to sleep.]
<r0bgleeson> ljarvis: so you think Go is worth the dive to what else is out there?
<yorickpeterse> ........F.....
jxie has joined #ruby-lang
elia has joined #ruby-lang
<ljarvis> r0bgleeson: I enjoy it, but I've written a medium-sized api in it so im quite happy
<r0bgleeson> ljarvis: the function name `So(…)` is so strange, maybe Assert(…), otherwise it's interesting to see how Go does a DSL.
<ljarvis> actually i have no idea what medium sized it, it might be small, it might be large
<ljarvis> I would have gone with Expect("foo", toEqual, "bar") myself
mistym has quit [Ping timeout: 260 seconds]
<ljarvis> or just the normal assertions
<r0bgleeson> yeah, even better
<r0bgleeson> too bad Go doesn't have a shorthand syntax for anonymous functions
<ljarvis> func args just remind me to javascript though
<r0bgleeson> same problem as JS
<ljarvis> heh
<ljarvis> :)
<r0bgleeson> yeah
<ljarvis> i dont think it would solve it, it's the parenthesis that bother me, i'd love a block-like syntax
<r0bgleeson> true, ruby has spoiled us
<ljarvis> :)
<ljarvis> still, I guess using functions as object is okay
fosky has quit [Remote host closed the connection]
<r0bgleeson> So(1, ShouldBeGreaterThan, 0) - come on, thats a joke?
<r0bgleeson> i'd prefer to assert on the return value of a function than that mess
dhruvasagar has joined #ruby-lang
rwk1 has quit [Read error: Connection timed out]
<r0bgleeson> So(func() { 1 == 1 }) or something
<manveru> So(1, func(a, b int) bool { return a == b }, 0)
<manveru> really :P
<r0bgleeson> hehe
<ljarvis> yeah that's why
RickHull has joined #ruby-lang
<ljarvis> I still hate "should" mentality in testing, and glad rspec has gotten rid of it
<ljarvis> also my favourite thing i wrote that saves so much time: https://github.com/leejarvis/sqlmap/blob/master/sqlmap.go
<manveru> if you don't like bdd stuff, just use the normal testing lib of go
<ljarvis> i do :)
<manveru> even i got used to that :)
ezkl has quit [Quit: QUIT!]
<r0bgleeson> manveru: what made you pick Go, and not say, clojure, erlang, elixir, ..?
h_kon has quit [Remote host closed the connection]
<yorickpeterse> Elixir is for hipsters
<yorickpeterse> Erlang is too old
<yorickpeterse> nobody uses that
<manveru> elexir didn't exist then
<manveru> clojure is jvm
h_kon has joined #ruby-lang
<manveru> erlang is eyecancer
<r0bgleeson> lol
<ljarvis> erlang syntax makes me vomit
<manveru> and go is almost designed to keep disasters like rails from happening
<maloik_> if you want to write elixir apparently you better be able to read erlang as well
<r0bgleeson> erlang, i mean Techno Outlaw Pyschobitch*
<ljarvis> but anthony eden did a pretty cool talk on ruby/go/erlang
hogeo has joined #ruby-lang
<ljarvis> manveru: tell that to revel
<manveru> hehe
<manveru> yeah, they try their best
<r0bgleeson> or Outlaw Techno Pyschobitch, sorry, it has to map to OTP
<manveru> i implemented OTP in ruby once :P
<ljarvis> manveru: which isn't as bad as rails to be fair, but it's kinda monsterous. I like the gorilla stuff mixed with net/http
<r0bgleeson> if you want a giggle: http://www.youtube.com/watch?v=rRbY3TMUcgQ
<manveru> just to emulate couchdb
<manveru> ljarvis: yeah, that's what i use too
<ljarvis> martini looks quite neat though
<manveru> anw, i don't want to hire a consultant every time i have to read a erlang error message
<r0bgleeson> rails seemed like a good idea in 1995 but i've lost much of my faith in these days
<r0bgleeson> in it*
<manveru> i didn't like it even in 2005 :P
<ljarvis> i actually think it's getting better (shock)
<ljarvis> I didn't like it back then, but i dont mind it now
h_kon has quit [Ping timeout: 265 seconds]
<manveru> it's not getting better, people just get used to it
<ljarvis> i didn't use it until 3.0 though (refused to use it before rack)
<ljarvis> yeah maybe
<manveru> ok, it may also get better :)
<r0bgleeson> it's fundamentally broken by design imo, and by that I mean it encourages monolithic applications you can't distribute as independent or decoupled parts, since rails hosts the whole thing which doesnt even encourage you to think that way (imho)
<yorickpeterse> it works for small boring crud stuff
<yorickpeterse> but lol at scaling it
hogeo has quit [Remote host closed the connection]
<ljarvis> maybe at a stupid scale (like twitter)
<ljarvis> but we scale it relatively ok
<yorickpeterse> Good luck fitting a few Rails apps on the same medium sized server
<r0bgleeson> it just does too much and encourages people to write some horrible horrible code
<yorickpeterse> the fact that it starts with around 100MB of RAM use is already bonkers
<yorickpeterse> I also laugh at the people who think it's a great idea to write APIs in Rails
h_kon has joined #ruby-lang
<r0bgleeson> worst idea ever
<yorickpeterse> then I cry because they're serious about it
<ljarvis> :D
<manveru> atm i'm actually hollowing out a rails app and putting all the logic into a go api server
<ljarvis> manveru: I did that a few months back
<ljarvis> saved almost 2 gb memory on one server it was running on
<manveru> aye
<ljarvis> a friend of mine has a server with 90gb of RAM, and he's using ~70gb just for ruby apis
<r0bgleeson> jesus christ
<r0bgleeson> that is INSANE
<r0bgleeson> for one reason
<r0bgleeson> distribute!
<ljarvis> Mem: 99007812k total, 81185912k used, 17821900k free, 532620k buffers
<r0bgleeson> one machine?
<ljarvis> ehhh
CoreData has joined #ruby-lang
<r0bgleeson> why the f..?
<yorickpeterse> lol 90 GB
face has joined #ruby-lang
<ljarvis> or is that 100gb, top format is disgusting on the eyes
<ljarvis> 16gb free
<ljarvis> lolboat
<r0bgleeson> thats so sad
<r0bgleeson> and people blame ruby
<r0bgleeson> but i blame rails mostly
<r0bgleeson> it needs to go on a diet
<ljarvis> none of those are rails
faces has quit [Ping timeout: 244 seconds]
<ljarvis> there's not 1 rails app on this server
<r0bgleeson> what are they?
<r0bgleeson> sinatra?
<ljarvis> there are about 13 sinatra apis, all being monitored by the god library
<r0bgleeson> do they talk to a database?
<ljarvis> yup, pg
<r0bgleeson> with what ?
<ljarvis> ?
<r0bgleeson> what library
<ljarvis> ah sequel mostly
<yorickpeterse> oi, quick one: if anybody is running homebrew, what's the package name for OpenJDK 1.7?
<yorickpeterse> LOLOLOL god
<yorickpeterse> Fattest monitoring lib I ever used
<ljarvis> i think i used ar on one
<yorickpeterse> and it leaked memory too
<r0bgleeson> thats very strange - to me at least. i was at a place that had 8-9 webmachine-ruby services (backed by a HTTP/riak client) and it used almost de nada
<chris2> haha
<ljarvis> yorickpeterse: yeah totally
yatish27 has quit [Remote host closed the connection]
<ljarvis> r0bgleeson: oh there's some python processes running 24/7 that do image conversions too
<r0bgleeson> ah
<ljarvis> it's quite the beast, i hope it doesn't just decide to go to sleep one day
<r0bgleeson> hehe
<mikecmpbll> :/
<r0bgleeson> you bet!
<r0bgleeson> one machine....
<ljarvis> nuts eh
<r0bgleeson> yeah not very fail safe
<ljarvis> also fwiw you know this guy (but we'll leave that there)
<r0bgleeson> sure
<yorickpeterse> dhh?
<ljarvis> haha
<r0bgleeson> lol
<yorickpeterse> does he restart the server every 10 minutes?
<ljarvis> it was using more before turbolinks
hogeo has joined #ruby-lang
<yorickpeterse> we're using Turbolinks for one app
<yorickpeterse> ;_;
<yorickpeterse> I still have to measure if it actually speeds things up or if the JS overhead nullifies that
<ljarvis> heh
<r0bgleeson> preload the rails environment to make it usable, turbolinks to make it fast, <any other bandaid to avoid the problem of rails being a beast>
<workmad3> yorickpeterse: don't forget to do user surveys to see if they feel it's faster ;)
<ljarvis> A-B test that shit!
<workmad3> yorickpeterse: as that's the main thing IMO... it may not be faster in reality, but if it feels snappier that's a win
<yorickpeterse> I was going to measure the entire roundtrip inc DOM loadings
Thanatermesis has joined #ruby-lang
mucker has quit [Remote host closed the connection]
symm- has joined #ruby-lang
yatish27 has joined #ruby-lang
mucker has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
<yorickpeterse> hm, apparently openjdk is not in homebrew
<workmad3> isn't the apple jdk open-jdk based nowadays?
<yorickpeterse> yeah but I think they still ship 1.6
<yorickpeterse> not 1.7
<workmad3> depens on OS
<workmad3> pretty sure they ship 1.7 on 10.7+
<workmad3> or at least updated to it
<workmad3> *depends
CoreData has quit [Ping timeout: 272 seconds]
<workmad3> java -version in a terminal would tell you ;)
<yorickpeterse> I know
<yorickpeterse> but I'm trying to figure out how to easily tell people how they should install 1.7
<yorickpeterse> without saying "Download this blob, then change a bunch of files there, then fuck yourself"
arBmind1 has joined #ruby-lang
mucker has quit [Ping timeout: 252 seconds]
<workmad3> ah
DouweM has joined #ruby-lang
arBmind has quit [Ping timeout: 260 seconds]
<workmad3> yorickpeterse: link them here? http://www.java.com/en/download/faq/java_mac.xml#getjava
faces has joined #ruby-lang
face has quit [Ping timeout: 272 seconds]
cnivolle has joined #ruby-lang
sandeepk has quit [Quit: Leaving...]
sandeepk has joined #ruby-lang
<ljarvis> link them here? google.com/?q=download+java
<yorickpeterse> apparently you have to run an installer, lol OS X
<ljarvis> you have to run an installer on any platform?
<yorickpeterse> On linux: sudo pacman -S jdk7-openjdk
<yorickpeterse> that's all
<yorickpeterse> I don't need to download shit manually, run an installer, etc
<yorickpeterse> plus I don't have to navigate a fucking Oracle website
<ljarvis> did it install it?
atmosx has joined #ruby-lang
<workmad3> yorickpeterse: hmm... you could write a brew-cask recipe for it, then you can tell your users 'brew tap phinze/cask; brew install brew-cask; brew cask install your-java'
<yorickpeterse> too much effort, I'll just point them to that link
<yorickpeterse> chances are they're not even using brew to begin with
<workmad3> :)
<ljarvis> are these people not developers?
<workmad3> so prefix that with the brew installer? :P
<yorickpeterse> ljarvis: they are researches
<yorickpeterse> so no, they're not
<yorickpeterse> they're good at copy-pasting shell commands but that's about it
<yorickpeterse> some can write some code
<ljarvis> ah
<workmad3> I got a load of testers to install homebrew under-the-radar at one place :)
<ljarvis> some copy paste shell commands, some write code
<ljarvis> that's quite a difference
<workmad3> gave them scripts to set up a local test environment... first line of that script installed homebrew if it wasn't there, then used homebrew to install everything else I needed :)
<workmad3> the only thing I couldn't automate was installing the xcode tools :(
<yorickpeterse> granted most of these users are on some flavour of Debian/Poobuntu so that should be covered
<yorickpeterse> Yeah no, I'm not going to force them to install homebrew, gcc-installer and optionally xcode just to get Java
<yorickpeterse> That's retarded
<workmad3> blame oracle and apple, not me :P
<ljarvis> that's why they need to use installers, because they cant build anything because they dont have gcc because they dont have xcode because fuck you apple
<workmad3> although in my case, it wasn't just java that was needed... was installing a ruby environment, vagrant, virtualbox, git, etc :)
<ljarvis> i never understood how people enjoy vagrant, i find the whole process painfully slow
<yorickpeterse> actually I'll probably be building Vagrant and Docker images too
<yorickpeterse> and Amazon AMIs
<ljarvis> so that rds problem was because i had the security group but i accidentally removed it from that db instance
<ljarvis> derp
hogeo has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> r0bgleeson: ha
<workmad3> r0bgleeson: :D
<workmad3> r0bgleeson: as that's onion, I guess we need to wait till rails 6 for that in reality?
<r0bgleeson> yesum
hogeo has quit [Remote host closed the connection]
<ljarvis> docker is neat
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
hogeo has joined #ruby-lang
<ljarvis> r0bgleeson: you getting a ps4?
<yorickpeterse> lol Python environments
<yorickpeterse> it's sad that virtualenv is basically a requirement
hogeo has quit [Remote host closed the connection]
<r0bgleeson> ljarvis: probably not, rarely play video games these days
<yorickpeterse> meh, I'll wait until there actually are some games
<yorickpeterse> the new metal gear is enough for me to buy a PS4
Guest80281 has quit [Quit: Textual IRC Client: www.textualapp.com]
ikrima has quit [Ping timeout: 272 seconds]
<yorickpeterse> <3 pandoc
ikrima has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
jinesh has quit [Quit: Konversation terminated!]
<ljarvis> heh
hogeo has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
jinesh has joined #ruby-lang
esucg0aq47trgb8 has joined #ruby-lang
esucg0aq47trgb8 has quit [Excess Flood]
vlad_starkov has joined #ruby-lang
jinesh has quit [Client Quit]
apeiros has joined #ruby-lang
elia has joined #ruby-lang
mbj has joined #ruby-lang
vondruch has quit [Ping timeout: 264 seconds]
yatish27 has quit [Remote host closed the connection]
<ljarvis> house y u so cold
yatish27 has joined #ruby-lang
<r0bgleeson> cuz UK
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
<yorickpeterse> the radiator in my kitchen doesn't work
dhruvasa1ar has quit [Ping timeout: 272 seconds]
<yorickpeterse> hasn't worked ever since I moved in
<yorickpeterse> shit's pretty cold
<yorickpeterse> (I have a small hot air thing)
<yorickpeterse> at least the radiators work in my living room
alekst has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
tbuehlmann has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
lun__ has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
x0f has quit [Read error: Operation timed out]
bazaretas has joined #ruby-lang
xcess_denied|awa has quit [Quit: Leaving...]
sandeepk has quit [Quit: Leaving...]
lun__ has quit [Ping timeout: 244 seconds]
atmosx has quit [Quit: Lost in trance]
<ljarvis> r0bgleeson: srsly
<ljarvis> my office radiator is on the other side of the room, and I'm pretty sure it doesn't reach here
<ljarvis> desk is next to the window and it's a victorian house so there may as well be big holes in the wall to outside
mistym has joined #ruby-lang
x0f has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
thelorax123 has quit [Remote host closed the connection]
guns has joined #ruby-lang
thelorax123 has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
<r0bgleeson> ljarvis: i have no idea how heat works where i stay, except that it comes on by magic when its too cold
sdpy has joined #ruby-lang
<ljarvis> lol
<ljarvis> fuck, when it gets cold i have to build a fucking fire
rwk1 has quit [Remote host closed the connection]
<ljarvis> the heating system in this house is pretty technical
<ljarvis> its like trying to write cobol just turning the heating on
<r0bgleeson> lol
lfox has joined #ruby-lang
heftig has quit [Ping timeout: 252 seconds]
<ledestin> in Soviet Russia the house heats you
<ljarvis> wat
<ledestin> that's one of the advantages of living there
<ljarvis> isn't that the case here
<ledestin> it's cold, so you heat the house
<ljarvis> you're a smart cookie
<ledestin> I just have got a lot of experience with it, sadly
yatish27 has joined #ruby-lang
<ledestin> it's got central heating in other word
<ledestin> and you don't care about such things there
solars has quit [Ping timeout: 272 seconds]
<r0bgleeson> ireland has this dumb thing called an 'immersion' that has to be turned on 30mins prior to a shower for hot water
<r0bgleeson> if you forget to turn it off... costs a bomb
solars has joined #ruby-lang
<ledestin> and central hot water as well, unless something breaks and then you're out of hot water
hogeo has joined #ruby-lang
freppa has quit [Remote host closed the connection]
smashwilson has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yalue has joined #ruby-lang
heftig has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
vondruch_ has joined #ruby-lang
xcess_denied has joined #ruby-lang
spike|spiegel has quit [Ping timeout: 245 seconds]
spike|spiegel has joined #ruby-lang
vondruch has quit [Ping timeout: 265 seconds]
_Bravado has quit [Quit: _Bravado]
symm- has quit [Ping timeout: 272 seconds]
cored has joined #ruby-lang
<r0bgleeson> ljarvis: wtf is o7? guy from the uk is saying it to me anytime he says hello
<r0bgleeson> hello o7
dhruvasagar has quit [Ping timeout: 264 seconds]
<cored> hi
<r0bgleeson> hi cored o7
<cored> r0bgleeson: hello
<gnufied> perhaps temperature today?
<yxhuvud> r0b: he is waving. o is the head.
<r0bgleeson> ahhh
<r0bgleeson> why not o/ -_-
<ljarvis> it's a salute
<yxhuvud> maybe he don't like heiling.
<r0bgleeson> it looks like someone with a pistol to their head
<ljarvis> look at it clearly
<maloik_> o7 is definately scratching head emoji
<ljarvis> it's a salute, but definitely better applied for scratching the head
<gnufied> lol
<r0bgleeson> or suicide
<maloik_> o/ is a salute
ruby-lang288 has joined #ruby-lang
<ljarvis> no that's a wave
<maloik_> do you see the slash moving? DO YOU????
<maloik_> :-)
<ljarvis> so it's a nazi salute, perhaps
<maloik_> oh I see what you mean by salute now
<maloik_> military kind of salute
<maloik_> gotcha
<ljarvis> right
<cored> ljarvis: I kept trying yesterday with mechanize, without any sucess. Even when the page result have the other table, it seems that the returned content after submitting the form thought mechanize doesn't have it
<r0bgleeson> oi oi sir
<r0bgleeson> reporting for duty
<r0bgleeson> o7
<yorickpeterse> wat
<ljarvis> cored: are you sure it's being submitted properly?
spike|spiegel has quit [Ping timeout: 260 seconds]
<cored> ljarvis: I'm sending the same info that I use in the form through the browser
<ljarvis> and the responses are different?
<cored> ljarvis: and I see the new form action changing to /update as in the browse
barttenbrinke has joined #ruby-lang
spike|spiegel has joined #ruby-lang
mikecmpbll has joined #ruby-lang
heftig has quit [Ping timeout: 268 seconds]
enebo has joined #ruby-lang
ruby-lang288 has quit [Quit: Page closed]
<cored> ljarvis: are you still there?
<ljarvis> cored: yep
<cored> now I confirm what I said, the new page from the submitted form has a h2 heading in it
pothibo has joined #ruby-lang
vladgh has joined #ruby-lang
pothibo has quit [Read error: Connection reset by peer]
<cored> with the value Reisende
RickHull has quit [Quit: Leaving.]
<cored> but if I do subitted_form.search('//table').size to get all the tables
<cored> the size just says 1
<ljarvis> im not really sure how to help, do you have actual code to run and work?
<cored> ljarvis: sure, wait
CoreData has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
il_rugginoso has joined #ruby-lang
il_rugginoso has left #ruby-lang [#ruby-lang]
bzalasky has joined #ruby-lang
enebo has quit [Quit: enebo]
<maloik_> quick question about api design... is it a best practice to basically 'accepts_nested_attributes' or should people first create the 'parent' object before creating any associated objects via separate api calls ?
<cored> ljarvis: can you clone that ? you can run the spec like rspec spec/integration/aldi_spec.rb
diegoviola has joined #ruby-lang
<ljarvis> maloik_: i would say it's fine to create associations at the same time, the client doesn't care about data structure
lfox has quit [Quit: ZZZzzz…]
Cygnus has joined #ruby-lang
vladgh has quit [Ping timeout: 264 seconds]
Cygnus is now known as Guest49533
retro|cz has joined #ruby-lang
<maloik_> but they do care (maybe anyway) about complex api calls
<maloik_> just wanted to check... I just broke a test because the nested attributes aren't getting validated properly
<maloik_> :/
<maloik_> probably because they're still in memory
heftig has joined #ruby-lang
Guest49533 has left #ruby-lang [#ruby-lang]
vladgh has joined #ruby-lang
Cygnus_ has joined #ruby-lang
<ljarvis> cored: you're not grabbing the submitted page anywhere?
<ljarvis> i dont understand
<ljarvis> you dont even submit the form
Cygnus_ has left #ruby-lang [#ruby-lang]
<cored> ljarvis: I was doing it before, but at the moment as I'm debugging I remove some of the code and went ahead and use pry to submit it by myself and see
<ljarvis> uh
<ljarvis> so when i said "do you have actual code to run and work" you meant to say "no"
<ljarvis> you haven't once shown me what you're doing to cause the problem
<ljarvis> that's what i was hoping to see
<cored> oki
<cored> let me push some changes then
<cored> wait a sec
bzalasky has quit [Remote host closed the connection]
MaddinXx has joined #ruby-lang
simoz has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
bjh13 has quit [Ping timeout: 260 seconds]
<cored> ljarvis: check it out now
<ljarvis> cored: and then spec passes?
<ljarvis> the*
<cored> ljarvis: yeap it's passes
<cored> ljarvis: but that's wrong because I'm forcing it to pass at this time
* ljarvis jumps out the window
<cored> ljarvis: what I don't know what's happening is the fact that I can see in the source from the browser two tables but when I issue //table to get all the tables I just get one
<cored> that's the problem I have if I could get the second table I can ask for the info in it and just extract what I need
solars has joined #ruby-lang
banisterfiend has joined #ruby-lang
<ljarvis> is this for searching trains?
<cored> yes
<ljarvis> and the table you want returns results?
<cored> yes
<cored> I'm using the exact same data from the form
<cored> there is no API on that site
h_kon has quit [Remote host closed the connection]
<ljarvis> no doubt, we dont have one either for 120 million reasons (i work at a place that does rail travel)
<ljarvis> what's the url for your search?
vlad_starkov has quit [Remote host closed the connection]
<ljarvis> because without seeing anything, my guess is results are pulled in via an external api, and unless they clog up requests.. they're probably loading that table via javascript
soba has quit [Ping timeout: 252 seconds]
<ljarvis> obviously if that's happening, you can't scrape them without having javascript
<ljarvis> aka how you're doing it now
<cored> ljarvis: I see
<cored> ljarvis: can I talk you in private for the others details?
<rue|w> Such as ASL
<ljarvis> cored: i have too many windows open and im trying to juggle work too, if you have a url you can paste it there but i'd rather talk in here so others can help too
<cored> ljarvis: got it
<ljarvis> there's only 1 start/finish option?
<cored> ljarvis: that's the url
<cored> yes
<ljarvis> when I search it asks me to select an option..
<cored> the parameters that I set were this Berlin FHT
<ljarvis> even though i have
MrZYX|off is now known as MrZYX
<cored> Dresden NST
solars has quit [Ping timeout: 272 seconds]
<ljarvis> that doesn't exist, there's 1 option
<cored> and the date was 1.12.2013
<cored> oh ok, it's getting loaded using JS
<cored> so what you should do now
<cored> is checking one city
<cored> and then check it back to Berlin FHT
CoreData has quit [Quit: CoreData]
<ljarvis> is this a public service?
<cored> the other select box will change and then you can pick Dresden NST and then add the date 1.12.2013 and hit submit
<cored> ljarvis: nop
<ljarvis> thank god
CoreData has joined #ruby-lang
lun__ has joined #ruby-lang
<ljarvis> cored: right, so if it's being loaded via js then you can't scrape it like this
<cored> ljarvis: but I thought that if I was adding the value to the form lke forms[0]["name_of_combo"] = value
<cored> it should work
<workmad3> cored: hmm... why when I select the 18th Nov in the calendar does the date box get filled in with 'NaN.NaN.NaN'? :D
<ljarvis> cored: im talking about the results
<ljarvis> workmad3: srsly
<cored> ljarvis: oh, I see what you mean now
<whitequark> workmad3: batman
<cored> ljarvis: because of the div inside the tabs right?
<cored> workmad3: :-)
<ljarvis> sure
<workmad3> btw, I'd have run a search, but the the drop-downs had no other values and every time I tried to do a search it told me to select a value first :(
<ljarvis> ^
<yorickpeterse> PFFF I WROTE TOO MUCH NON CODE TODAY
<apeiros> yorickpeterse: stop irc-ing then
<mikecmpbll> ^
<cored> ljarvis: after hitting one of the tabs on top of the tables, I notice a new request
<ljarvis> you pipe down and keep writing those readme's buddy
<yorickpeterse> apeiros: I AM NOT
<yorickpeterse> I AM WRITING MERKBOWN
<yorickpeterse> Not in capitals
<ljarvis> cored: they're loaded via js, you can't scrape them like this, end of story
<workmad3> yorickpeterse: you're writing readmes in markdown?
<mikecmpbll> that's code, yo.
<cored> ljarvis: oki, which is the other way to scrap that out ?
<workmad3> cored: or, more accurately... if you want to scrape them, you're going to need to use a headless browser that can deal with JS, which ain't mechanize
<yorickpeterse> workmad3: No, PDF/HTML documents
<ljarvis> you can use phantom and mechanize
<cored> workmad3: got it
havenwood has quit []
<ljarvis> but in general, i would not
<workmad3> ^^ ditto
<yorickpeterse> fun fact: more often than not you don't even need JS to get to the booty
<ljarvis> i wouldn't be scraping js responses in general
<cored> ljarvis: but what if I need this information?
<ljarvis> and you'd have to poll for changes
<cored> ljarvis: you said I would not
<cored> :-)
<ljarvis> cored: you pay the thousands of dollars to rail companies to access their apis
<yorickpeterse> or their PHP APIs
<yorickpeterse> lol
<ljarvis> all soap yo
CoreData has quit [Ping timeout: 272 seconds]
<mikecmpbll> i'm a soap dodger.
<yorickpeterse> ljarvis: so this one API we use
<yorickpeterse> they show your rate limits
<yorickpeterse> in a fucking Docuwiki wiki
<workmad3> woo!
<yorickpeterse> requesting the rate limit counts up to the limit
<cored> ljarvis: sounds great, and I would love to. But I don't control that part of the bussiness :-)
<cored> ljarvis: so, phantom and mechanize will be
<ljarvis> yorickpeterse: :D
<yorickpeterse> there's no other way to get it, so we have to keep track of it ourselves using memcached
<ljarvis> cored: have fun
<ljarvis> also
<ljarvis> watch out when the company comes back to sue you
<cored> ljarvis: wait, what, why?
<yorickpeterse> like this
<workmad3> yorickpeterse: well, you don't want someone to DoS you through your rate limit checking API, do you? :P
<yorickpeterse> I can DOS this API by just requesting a few pages at once
<workmad3> :)
<ljarvis> cored: pretty sure this breaks some TOS
<mikecmpbll> ljarvis: TOS != law ;o
<cored> ljarvis: I see
<workmad3> cored: most sites have a ToS that explicitly prohibits scrapers
<mikecmpbll> but yeah, not saying they won't try and tell you it is.
<ljarvis> but if you break it and continue, it could turn into law :D
<mikecmpbll> nah.
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> mikecmpbll: they aren't law, but violating them can be sue-worthy :)
<mikecmpbll> most attempts at those kind of cases get laughed out of court.
<cored> this will be fun then
<cored> :-)
<workmad3> if it's not a public service, then the ToS generally holds more water too...
<workmad3> but fun :)
<ljarvis> cored: your company is asking you to do this?
<mikecmpbll> i scrape racing data instead of paying £400 or so a month for timeform's api :d
<ljarvis> mikecmpbll: right, but does your company?
<workmad3> mikecmpbll: are you making any money off it? is it part of a commercial application?
<ljarvis> what if there's financial gain from doing this
<cored> ljarvis: yeap
<mikecmpbll> i make joey from it, yes.
<mikecmpbll> money*
<mikecmpbll> joey .. wtf
<workmad3> heh :)
<cored> ljarvis: and also I don't think this is a part of info from another company I think this is an old thing from another part of the company
<workmad3> and I thought I managed some awesome typos
xcess_denied has quit [Ping timeout: 265 seconds]
<ljarvis> cored: ok, your company is messed up :)
<cored> ljarvis: hehehe
<mikecmpbll> loads of big travel comparison sites web scrape
banisterfiend has joined #ruby-lang
<cored> ljarvis: is this what you were talking about https://github.com/jonleighton/poltergeist
canton7 has quit [Remote host closed the connection]
<ljarvis> mikecmpbll: like who?
<ljarvis> cored: yes
<freedrull> is anyone here in tokyo?
<cored> ljarvis: neat
<yorickpeterse> workmad3: actually there's very little you can legally do about scraping
<mikecmpbll> ljarvis: i applied for a role at a company a few years ago whose sole business was aggregating travel pricing info and selling it onto comparison websites, 90% of the data they aggregated was through screenscraping
<ljarvis> cored: fwiw i've only ever used it for testing so can't provide much
<yorickpeterse> unless you actively resell their data
<ljarvis> which they do
<ljarvis> that's the confusing part for me
<ljarvis> i get screen scraping, but for financial gain means you're breaking the law (at least i thought)
rwk1 has joined #ruby-lang
<ljarvis> if their TOS mention it
<yorickpeterse> depends on what the data is
<mikecmpbll> ljarvis: nah, read up about it, it's notoriously difficult to sue for screen scraping.
<ljarvis> heh fair enough
<workmad3> yorickpeterse: and whether it's publicly available or not
lacrosse_ has joined #ruby-lang
lacrosse has quit [Ping timeout: 272 seconds]
<workmad3> yorickpeterse: if the data is behind some form of walled garden, and to gain access you explicitly clicked through a licence agreement saying you are not allowed to scrape this data with any form of automated program, then there's more that can be legally done
<yorickpeterse> of course
<yorickpeterse> that's how Aaron got screwed over
<yorickpeterse> (plus a fucked legal system)
sausyn has joined #ruby-lang
lfox has joined #ruby-lang
breakingthings has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
<mikecmpbll> anyway, if anyone's that fussed about screen scraping put in a reCAPCHA
<yorickpeterse> those aren't exactly bullet proof
<mikecmpbll> no?
<freedrull> my company's business is basically screen scraping :\
<yorickpeterse> if anything they annoy users more than computers
<mikecmpbll> i would guess they're good enough to stop 99% of would-be scrapers
<freedrull> is this outdated http://caca.zoy.org/wiki/PWNtcha
<workmad3> yorickpeterse: or at least the ones that annoy computers are the ones that *really* annoy users :)
<mikecmpbll> there's plenty of novel human-testing ideas that aren't as annoying as the capcha's anyway
<mikecmpbll> question answering, etc
<mikecmpbll> games
<ljarvis> all that stuff sucks
<ljarvis> all of it.
<yorickpeterse> and all that stuff is breakable
<mikecmpbll> no shit.
retro|cz has quit [Ping timeout: 272 seconds]
solars has joined #ruby-lang
deception has joined #ruby-lang
barttenbrinke has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
itsraining has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
mistym has joined #ruby-lang
pothibo has joined #ruby-lang
itsraining has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby-lang
itsraining has joined #ruby-lang
lfox has joined #ruby-lang
dingus_khan has joined #ruby-lang
mistym has quit [Ping timeout: 272 seconds]
elia has joined #ruby-lang
<yorickpeterse> welp my guides are on S3, time to get drunk on tea
ecnalyr has joined #ruby-lang
dingus_khan has quit [Ping timeout: 252 seconds]
<ljarvis> \o/
ledestin has quit [Ping timeout: 252 seconds]
sandeepk has joined #ruby-lang
spike|spiegel has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
MrZYX is now known as MrZYX|off
vinhbachsy has joined #ruby-lang
momomomomo has joined #ruby-lang
yfeldblum has joined #ruby-lang
itsraining has quit [Quit: itsraining]
MrZYX|off is now known as MrZYX
vinhbachsy has quit [Remote host closed the connection]
ljarvis_ has joined #ruby-lang
ljarvis_ has left #ruby-lang [#ruby-lang]
ljjarvis has joined #ruby-lang
ledestin has joined #ruby-lang
ljarvis has quit [Quit: leaving]
ljjarvis has left #ruby-lang [#ruby-lang]
ljarvis has joined #ruby-lang
tbuehlmann has quit [Quit: Konversation terminated!]
vinhbach_ has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
SteveBenner9 has quit [Ping timeout: 268 seconds]
banisterfiend has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> http://sobadsogood.com/2013/11/11/21-weird-photos-of-couples-in-love-that-totally-defy-logic/ so this is going around the office (somewhat NSFW-ish)
stardiviner has quit [Ping timeout: 268 seconds]
<r0bgleeson> yorickpeterse: are me and you there too?
adambeynon has joined #ruby-lang
<yorickpeterse> yeah, the last one
banisterfiend has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
<r0bgleeson> we look good
<yorickpeterse> you need to work on your abs though
<yorickpeterse> you make me look skinny
<r0bgleeson> lol
bjh13 has joined #ruby-lang
lacrosse__ has joined #ruby-lang
nigerianceo has joined #ruby-lang
lacrosse_ has quit [Ping timeout: 244 seconds]
sandeepk has quit [Quit: Leaving...]
<rue|w> Abs mentioned
vladgh has quit [Ping timeout: 246 seconds]
CaptainJet has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby-lang
<ljarvis> abe
<ljarvis> abe's oddysee
<ljarvis> fuck i loved that game
<yorickpeterse> prrrt prrrtttt dead
<ljarvis> :D
<yorickpeterse> they did a remake recently I believe
<ljarvis> yeah
<yorickpeterse> lol
<yorickpeterse> I wonder what happened
<yorickpeterse> (that's 400 seconds average)
jmeeuwen_ has joined #ruby-lang
vsorlov has joined #ruby-lang
jmeeuwen has quit [Write error: Broken pipe]
jmeeuwen_ is now known as jmeeuwen
<cored> again issues with the form even with capybara
<cored> after doing visit('/search')
<cored> fill_in '#departure', :with => 39
<cored> I see the message that it doesn't find that field, but if I do has_selector?('#departure') I get true
loincloth has joined #ruby-lang
sandeepk has joined #ruby-lang
<yorickpeterse> holy shit, 580 seconds to process a set of reviews
tylersmith has joined #ruby-lang
nathanstitt has joined #ruby-lang
<yorickpeterse> wow, 300 sec in CPU time
zz_michael_mbp is now known as michael_mbp
tris has quit [Excess Flood]
tris has joined #ruby-lang
arooni-mobile has joined #ruby-lang
<MrZYX> cored: are you sure #depature points to a input or textarea tag?
happydude has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
bzalasky has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
solars has quit [Ping timeout: 244 seconds]
retro|cz has joined #ruby-lang
crankharder has joined #ruby-lang
dhruvasagar has joined #ruby-lang
vinhbach_ has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
benwoody has joined #ruby-lang
<maloik_> ask question in #ror - *tumbleweeds*
<maloik_> story of my life
bf4 has joined #ruby-lang
<darix> maloik_: does it have a nice western saloon too?
<cored> MrZYX: it's a drowdown
<maloik_> unsure... if they do I better ask for a beer
<maloik_> it's almost beer o clock
<cored> MrZYX: I'm now trying with select 'a value from the dropdown', :from
VTLob has joined #ruby-lang
bzalasky has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby-lang
mmoore has joined #ruby-lang
mmoore has quit [Client Quit]
solars has joined #ruby-lang
mucker has joined #ruby-lang
ninetyw has joined #ruby-lang
breakingthings has quit []
bradsmith has joined #ruby-lang
marr has quit [Read error: Connection reset by peer]
dalegribble80 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
_ninetyw has joined #ruby-lang
ikrima has joined #ruby-lang
apeiros has joined #ruby-lang
<ljarvis> maloik_: what's the question?
yfeldblum has joined #ruby-lang
apeiros has quit [Ping timeout: 265 seconds]
jsullivandigs has joined #ruby-lang
bryno is now known as bri
vmoravec has quit [Quit: Leaving]
shinnya has joined #ruby-lang
jxpx777 has quit [Quit: Linkinus - http://linkinus.com]
vsorlov has quit [Ping timeout: 264 seconds]
ledestin has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
rwk1 has quit [Read error: Connection timed out]
yfeldblum has quit [Remote host closed the connection]
DouweM_ has joined #ruby-lang
DouweM has quit [Ping timeout: 260 seconds]
bzalasky has joined #ruby-lang
ninetyw has quit [Quit: leaving]
yfeldblum has joined #ruby-lang
<ljarvis> wat
ledestin has joined #ruby-lang
heftig has quit [Quit: Quitting]
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
<cored> ljarvis: quick question, to send a request to a form which have csrf protection, do I have to make two requests if I'm using farday one for getting the token and the other one to sending the actual post request?
<cored> or is there a easier way with a middleware or something like that, that you know of
<ljarvis> cored: no that's not how it works
Snibble has joined #ruby-lang
<cored> ?
<ljarvis> cored: use mechanize...
mistym has joined #ruby-lang
canton7 has joined #ruby-lang
<cored> but then again I will have the same javascript issue
ecnalyr has quit [Read error: Connection reset by peer]
ecnalyr has joined #ruby-lang
mistym_ has joined #ruby-lang
Snibble1 has joined #ruby-lang
bzalasky has quit [Ping timeout: 252 seconds]
<ljarvis> you have that issue using mechanize or faraday
apeiros has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
mistym has quit [Ping timeout: 246 seconds]
Snibble has quit [Ping timeout: 246 seconds]
<bougyman> I thought mechanize handled csrf better?
<bougyman> I haven't had a problem using it.
<ljarvis> it does, that was my point
tylersmith has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 246 seconds]
<ljarvis> but cored is scraping a website that uses js to generate content
<bougyman> ah, I see.
macmartine has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
<cored> bougyman: yeap, the js part is the probem
<cored> I'm trying with a lot of things by now
<cored> have like 3 days trying it
<cored> capybara can't see the dropdown
<ljarvis> 3 days
<ljarvis> wow
rue|w has joined #ruby-lang
<gnufied> use something built on top of phantomjs
<gnufied> so as you have a js runtime
<ljarvis> your company has a big budget just for scraping a website
<cored> ljarvis: :'(
<cored> gnufied: I was checking portisgeist
<gnufied> potergeist is a cabybara thingy
<gnufied> well you can sort of abuse it for web scrapping
<gnufied> but better stick to a tool which was made for it?
<gnufied> also this scraping is going to be slow as heck
<gnufied> and error handling will be fun
<gnufied> I don't envy your job
<gnufied> :-)
ikrima has quit [Quit: Computer has gone to sleep.]
<cored> gnufied: hehehe
<bougyman> before i'd spend 3 days on such a scraper I just use watir in a vnc.
<cored> gnufied: also that's javascript
<bougyman> it's heavy, but easy as hell.
<bougyman> it uses a real browser, so you get around all of these issues at once.
<cored> bougyman: same thing as capybara as far as I can see
<bougyman> dunno, never used capybara
<cored> I was trying with capybara a moment ago
rue|w has quit [Ping timeout: 246 seconds]
<cored> could not find one of the dropdowns at least did not know how to add info to it
<cored> I don't mind if it's slow
<cored> I just need the data
<ljarvis> cored: then dont select the drop down?
<ljarvis> submit the data, then use capybara on the response
<cored> ljarvis: I need to put that info before submiting
<ljarvis> 1 thing to mention that you're most certainly missing
<cored> ?
macmartine has quit [Remote host closed the connection]
<bougyman> capybara looks different.
<ljarvis> is that the js is going to return results after some time (not immediately), so you're gonna have to wait for the page to have content
<cored> ljarvis: so your suggestion is to use mechanize to make the request and then capybara to do the actual scrapping, correct?
<ljarvis> my suggestion is to not do this
<cored> ljarvis: :-)
ohsix has quit [Read error: Operation timed out]
<cored> ljarvis: if I could
<ljarvis> but yeah, you can use anything to submit the request, and read the response via capybara
<cored> ljarvis: got it
<ljarvis> or something, watir is a good idea too as bougyman points out
<cored> checking watir
saarinen has joined #ruby-lang
DouweM_ has quit [Quit: Linkinus - http://linkinus.com]
simoz has quit [Ping timeout: 252 seconds]
DouweM has joined #ruby-lang
sausyn has quit []
mistym has joined #ruby-lang
<cored> ljarvis: thinking in another thing now, after submiting the form with mechanize I will get a new object with the returned page, but to access it using watr/capybara I will have to know which is the URL, correct?
<ljarvis> you would, yes, because you'd need to wait until js delivered results and then revist that page
<ljarvis> or you poll it somehow
<cored> I'm guessing that it will be the same URI from mechanize
thelorax123 has quit [Remote host closed the connection]
saarinen has quit [Ping timeout: 265 seconds]
thelorax123 has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jxpx777 has joined #ruby-lang
<bougyman> cored: no, you don't need to know the url in watir
<bougyman> you always have access to the new rendered page.
<cored> bougyman: oh, I was talking about using mechanize to make the actual request and then scrap with watr
<bougyman> cored: that's not sensibile
<cored> bougyman: ?
<ljarvis> if you're gonna use watir, use it for the entire thing cored
elia has quit [Read error: Operation timed out]
<bougyman> yes, what he said
<cored> ljarvis: oki
Cakey has joined #ruby-lang
<yorickpeterse> should probably head home
<yorickpeterse> but I'm too lazy to get up again
<yorickpeterse> first world dev problems
dagobah has quit [Remote host closed the connection]
natevick has joined #ruby-lang
phus1on has joined #ruby-lang
VTLob has quit [Quit: VTLob]
rwk1 has joined #ruby-lang
natevick has quit [Client Quit]
Snibble1 has quit [Quit: Leaving.]
pglombardo has joined #ruby-lang
lun__ has quit [Ping timeout: 268 seconds]
<_ninetyw>
tbuehlmann has joined #ruby-lang
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
lun__ has joined #ruby-lang
ledestin has quit [Ping timeout: 265 seconds]
ledestin has joined #ruby-lang
jhulten has joined #ruby-lang
kek has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
mucker has quit [Ping timeout: 268 seconds]
_ninetyw has quit [Quit: leaving]
rwk1 has quit [Read error: Connection timed out]
big_ has joined #ruby-lang
h0rrorvacui has joined #ruby-lang
havenwood has joined #ruby-lang
heftig has joined #ruby-lang
elia has joined #ruby-lang
__butch__ has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
kurko_ has joined #ruby-lang
Cakey has quit [Ping timeout: 268 seconds]
Snibble has joined #ruby-lang
happydude has quit [Quit: Leaving]
alekst has quit [Quit: Computer has gone to sleep.]
rue|w has joined #ruby-lang
ledestin has quit [Ping timeout: 272 seconds]
rwk1 has joined #ruby-lang
hahuang61 has quit [Ping timeout: 240 seconds]
jxie_ has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
rue|w has quit [Ping timeout: 252 seconds]
Oloryn_lt2 has quit [Read error: Connection reset by peer]
dalegrib1le80 has joined #ruby-lang
ledestin has joined #ruby-lang
ykk` has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
dalegribble80 has quit [Ping timeout: 260 seconds]
elia has quit [Ping timeout: 264 seconds]
<ykk`> hey everyone i'm up to step 5.7 in the rails tut http://guides.rubyonrails.org/getting_started.html
jhulten has quit [Remote host closed the connection]
<ykk`> the post GET example. shouldn't that go into routes.rb? they are not specifying it
jxie has quit [Read error: Operation timed out]
<ykk`> and the spacing in that example is so odd
jhulten has joined #ruby-lang
<ljarvis> ykk`: they're showing you the output of rake routes
<ljarvis> that's not code
<ykk`> oh!!!
<ljarvis> i agree it's not obvious enough
Oloryn_lt2 has joined #ruby-lang
jhulten has quit [Read error: Connection reset by peer]
<ykk`> lol wish they mentioned to run rake routes
<ykk`> thank you so much
MartynKeigher has quit [Max SendQ exceeded]
jhulten has joined #ruby-lang
cnivolle has quit [Ping timeout: 272 seconds]
MartynKeigher has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
lfox has quit [Quit: ZZZzzz…]
Coincidental has joined #ruby-lang
<ykk`> if you didn't explain that the rest would be as confusing. maybe they want you to do some guess work so you learn?
rwk1 has quit [Read error: Operation timed out]
tylersmith has joined #ruby-lang
rwk1 has joined #ruby-lang
<ljarvis> i doubt that :)
<ykk`> lol
<ykk`> live for irc!! it will never die out. it's always been like international waters lol
<ykk`> always smart people ready to help and ready to idle in a channel haha
sandeepk has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
lun__ has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
rwk1 has quit [Read error: Operation timed out]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
Thanatermesis has joined #ruby-lang
embryoconcepts has joined #ruby-lang
tris has quit [Excess Flood]
tris has joined #ruby-lang
rwk1 has joined #ruby-lang
dvorak has quit [Ping timeout: 272 seconds]
heftig has quit [Ping timeout: 264 seconds]
heftig has joined #ruby-lang
vladgh has quit [Ping timeout: 272 seconds]
<yorickpeterse> HAI
<yorickpeterse> I AM HOME
<ljarvis> u
<yorickpeterse> now I have to debate what to eat, cereal, cereal or ceral
<yorickpeterse> * ceral
<yorickpeterse> ffs
<yorickpeterse> CEREAL
<ljarvis> my vote is for
<ljarvis> ceral
<yorickpeterse> Sounds like I have to eat a person
<yorickpeterse> nom
grandy has quit [Ping timeout: 244 seconds]
<cored> love hoow each new gem I've use to solve this problem needs a new set of system dependencies
grandy has joined #ruby-lang
<yorickpeterse> there's a Gem for that
<cored> probably
KM|2 has joined #ruby-lang
hahuang61 has joined #ruby-lang
lfox has joined #ruby-lang
KM has quit [Read error: Connection reset by peer]
amerine has quit [Ping timeout: 244 seconds]
amerine has joined #ruby-lang
toretore has quit [Quit: Leaving]
<yorickpeterse> if not 10 at least
dumfries_ has quit [Ping timeout: 244 seconds]
kek has joined #ruby-lang
jerrytgarcia has quit [Ping timeout: 244 seconds]
dumfries has joined #ruby-lang
big_ has quit [Ping timeout: 250 seconds]
kurko__ has joined #ruby-lang
kek has quit [Ping timeout: 264 seconds]
heftig_ has joined #ruby-lang
heftig_ has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 246 seconds]
kurko_ has quit [Ping timeout: 260 seconds]
rwk1 has quit [Read error: Connection timed out]
RickHull has joined #ruby-lang
riffraff_ has quit [Quit: Leaving]
rwk1 has joined #ruby-lang
shinnya has quit [Ping timeout: 265 seconds]
pglombardo has quit []
sdpy has quit [Ping timeout: 272 seconds]
Oloryn_lt2 has quit [Read error: Connection reset by peer]
pr0ton has joined #ruby-lang
Johz has joined #ruby-lang
iliketurtles has joined #ruby-lang
Snibble has quit [Quit: Leaving.]
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
macmartine has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
snarfmason has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
diegoviola has joined #ruby-lang
dalegrib1le80 has quit [Read error: Connection reset by peer]
Coincide_ has joined #ruby-lang
Coincidental has quit [Write error: Broken pipe]
Coincide_ has quit [Read error: Connection reset by peer]
Coincidental has joined #ruby-lang
ddd has quit [Ping timeout: 252 seconds]
<yorickpeterse> ugh, all these blags about "SANDI MATZ SAYSS!!!!!!" are getting a bit old
Tearan has joined #ruby-lang
<cored> yorickpeterse: Matz ?
<yorickpeterse> it's a pun
<cored> she is quite nice lady I met her at Rubyconf
<yorickpeterse> her actual name is Sandi Metz
<yorickpeterse> Oh I know, I'm not criticising her
<yorickpeterse> just the cult following of her rules, which if you remove the actual numbers (e.g. the method line count) make sense
ecnalyr has quit [Ping timeout: 245 seconds]
<yorickpeterse> It might also be that I just find articles/talks about code quality *insanely* boring
sdpy has joined #ruby-lang
<cored> yorickpeterse: probably
<yxhuvud> Some of her talks are really good, and some makes me want to fetch my YAGNI bat
<cored> but most of those things wre common sense in my honest opinion
<yorickpeterse> yxhuvud: her book is pretty good
<cored> been doing most of her advices seems reading the thoughtworks anthology article 'object oriented calestenics'
<yorickpeterse> though people, as always, take the numbers literally
<yorickpeterse> "OMG 5 LINES IS THE MAX OR YOU'RE FIRED"
<cored> yorickpeterse: he
<cored> yorickpeterse: that's kinda funny
<cored> I would go with 2 lines or you are fire
<cored> s/fire/fired
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> You're a terrible person
sdpy has quit [Read error: No route to host]
momomomomo has joined #ruby-lang
<cored> I like the fact that she is reminding people with practical advice how to get better at coding, there is a lot of Rails way of doing things around
<yorickpeterse> Don't get me started on that part
<cored> yorickpeterse: I got the exact same discussion at the conference, the problem was that I had a lot of rum in my body
<yorickpeterse> heh, good thing I hardly drink
<yorickpeterse> People laughed when I ordered tea in a French bar during dotRB :<
sevvie has joined #ruby-lang
<yorickpeterse> granted it was pretty funny
<cored> yorickpeterse: I'm planning on switch to tea too
<cored> great advice
Coincidental has quit [Remote host closed the connection]
<yorickpeterse> black tea bra
* cored adding that advice to the Sandi Metz rules
<yorickpeterse> it's the new gatorade
<yorickpeterse> Lifting at the gym? Have some Rooibos
<yorickpeterse> Kickboxing while deploying? Black tea!
Coincidental has joined #ruby-lang
Coincidental has quit [Read error: Connection reset by peer]
Coincidental has joined #ruby-lang
<yorickpeterse> I should probably start a talk show about all this
<yorickpeterse> "Hating on thangs with Yorick"
<cored> you are such a hater
<cored> like it :-D
iliketurtles has quit [Quit: zzzzz…..]
ykk` has quit [Quit: ykk`]
<yorickpeterse> I can get pretty worked up about things that are close to me
loincloth has joined #ruby-lang
<yorickpeterse> especially if a bunch of neckbeards go around making things hard for others
dalegribble80 has joined #ruby-lang
<yorickpeterse> grrrr neckbeards
* cored go to the bathroom to shave
LanceHaig has quit [Changing host]
LanceHaig has joined #ruby-lang
<yorickpeterse> inform us on the results using pictures
<yorickpeterse> and a 200 page essay
Snibble has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
SteveBenner9 has joined #ruby-lang
bradsmith has quit []
<yorickpeterse> whitequark: http://downloads.yorickpeterse.com/irc-stats/ruby-lang.html I've finally beaten you
<cored> yorickpeterse: what exxactly are does stats about?
<cored> yorickpeterse: who talks the most?
Snibble has quit [Ping timeout: 252 seconds]
<yorickpeterse> the meaning of life
<yorickpeterse> basically who slacks off the most
sepp2k has joined #ruby-lang
<cored> yorickpeterse: got it
<yorickpeterse> I do somehow manage to get quite a bit of work done
macmartine has quit []
relix has joined #ruby-lang
toretore has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
dhruvasagar has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
arooni-mobile has quit [*.net *.split]
bazaretas has quit [*.net *.split]
ndrst has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
Nilium has quit [*.net *.split]
jarednorman1 has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
wmoxam has quit [*.net *.split]
djinni` has quit [*.net *.split]
kith has quit [*.net *.split]
MicD_ has quit [*.net *.split]
djinni` has joined #ruby-lang
kith has joined #ruby-lang
kith has quit [Changing host]
kith has joined #ruby-lang
dhruvasagar has joined #ruby-lang
michd has joined #ruby-lang
wmoxam has joined #ruby-lang
bazaretas has joined #ruby-lang
wmoxam has quit [Changing host]
wmoxam has joined #ruby-lang
jarednorman1 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
ndrst has joined #ruby-lang
r0bgleeson has joined #ruby-lang
Kuukunen has joined #ruby-lang
jmeeuwen has joined #ruby-lang
itsraining has joined #ruby-lang
Nilium has joined #ruby-lang
chrisledet has joined #ruby-lang
jhulten has quit []
jarednorman1 has left #ruby-lang [#ruby-lang]
jarednorman has joined #ruby-lang
marr has joined #ruby-lang
embryoconcepts has quit [Quit: Leaving]
heftig has joined #ruby-lang
cored has quit [Quit: leaving]
momomomomo has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
Snibble has joined #ruby-lang
lmadrigal has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
Snibble has quit [Ping timeout: 268 seconds]
hhatch has quit [Ping timeout: 272 seconds]
Snibble has joined #ruby-lang
loincloth has joined #ruby-lang
Onixs_ has joined #ruby-lang
Onixs has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
achru has quit []
chrisledet has quit [Quit: Textual IRC Client: www.textualapp.com]
bjh13 has quit [Quit: leaving]
atmosx has joined #ruby-lang
Onixs has joined #ruby-lang
Onixs_ has quit [Read error: Connection reset by peer]
itsraining has quit [Quit: itsraining]
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
mistym_ has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
tris has quit [Excess Flood]
rwk1 has quit [Ping timeout: 272 seconds]
tris has joined #ruby-lang
musty has joined #ruby-lang
bjh13 has joined #ruby-lang
Thanatermesis has left #ruby-lang ["ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ"]
dingus_khan has joined #ruby-lang
ruby-lang283 has joined #ruby-lang
CaptainJet has quit []
benwoody has quit [Quit: benwoody]
jerrytgarcia has joined #ruby-lang
dingus_khan has quit [Ping timeout: 272 seconds]
Cakey has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
ruby-lang283 has quit [Ping timeout: 250 seconds]
Coincidental has quit [Remote host closed the connection]
jamesn has joined #ruby-lang
Coincidental has joined #ruby-lang
ezkl has joined #ruby-lang
ezkl has quit [Max SendQ exceeded]
Cakey has quit [Ping timeout: 260 seconds]
ezkl has joined #ruby-lang
saarinen has joined #ruby-lang
dingus_khan has joined #ruby-lang
sevvie has quit [Quit: leaving]
mistym has quit [Remote host closed the connection]
ezkl has quit [Client Quit]
vsorlov has joined #ruby-lang
Coincidental has quit [Ping timeout: 268 seconds]
bjh13 has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
bri has left #ruby-lang [#ruby-lang]
ItSANg___ has quit [Quit: Leaving...]
Snibble has quit [Quit: Leaving.]
vsorlov has quit [Ping timeout: 251 seconds]
yfeldblu_ has joined #ruby-lang
Onixs_ has joined #ruby-lang
Onixs has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 272 seconds]
Snibble has joined #ruby-lang
bazaretas has quit [Ping timeout: 252 seconds]
yalue has quit [Quit: Leaving]
Zeeo has joined #ruby-lang
Andrevan has joined #ruby-lang
arBmind has joined #ruby-lang
vsorlov has joined #ruby-lang
Oloryn_lt2 has quit [Read error: Connection reset by peer]
<Zeeo> Hello again gentlemen, I need a method like uniq that does, unlike uniq, remove 'all' the duplicates such as [1, 1, 1, 1, 2, 3].**** #=>[2, 3]. I was looking for an implementation of the Array#uniq method to see how it works but from what I learned it looks like it's not written in ruby
thelorax123 has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
saarinen has quit [Quit: saarinen]
thelorax123 has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
bazaretas has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
saarinen has joined #ruby-lang
bf4 has quit [Ping timeout: 260 seconds]
<rue> So only_uniques?
<atmosx> Zeeo: it's C, you could write a method that does that yourself though
bazaretas has quit [Quit: Leaving]
bazaretas has joined #ruby-lang
musty has quit [Ping timeout: 265 seconds]
<whitequark> Zeeo: uniq uses a hash table internally
<whitequark> knowing that, the implemenetation should be trivial
<Zeeo> atmosx: I hope so, I was looking for the source code in order to make it simpler for me to understand how Array#uniq exactly retrieves values and how it does remove them
<atmosx> Zeeo: premature implementation is the mother of all evils
<Zeeo> atmosx: the one thing I need is a variable that stores all duplicates
<atmosx> err
<atmosx> optimization
<atmosx> I'd go first create a version that it's simple and I understand every step. If that happens to be too slow for large arrays, then I'd take a look elsewhere.
<MrZYX> array.select {|e| array.count(e) == 1 }, O(n^2) but who cares :P
<whitequark> >> {}.tap { |mem| [1,1,2,3].reject { |elem| exists = mem[elem]; mem[elem] = true; exists } }
<eval-in> whitequark => {1=>true, 2=>true, 3=>true} (https://eval.in/68634)
<whitequark> actually
<whitequark> >> {}.tap { |mem| [1,1,2,3].each { |elem| mem[elem] = true } }.keys
<eval-in> whitequark => [1, 2, 3] (https://eval.in/68635)
<whitequark> doesn't get simpler than that, heh
<MrZYX> doesn't do what he wants though, if I understood him right
<Zeeo> whitequark: this is very inspirational
lmadrigal has quit [Quit: Computer has gone to sleep.]
nazty has joined #ruby-lang
<Zeeo> MrZYX's code works very properly btw
Coincidental has quit [Remote host closed the connection]
lmadrigal has joined #ruby-lang
Coincidental has joined #ruby-lang
Snibble has quit [Quit: Leaving.]
atmosx has quit [Quit: computer went to sleep...]
Oloryn_lt2 has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 252 seconds]
atmosx has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
amerine has quit [Quit: Textual IRC Client: www.textualapp.com]
ezkl has joined #ruby-lang
ezkl has quit [Client Quit]
Coincidental has quit [Ping timeout: 246 seconds]
tbuehlmann has quit [Remote host closed the connection]
deception has quit [Quit: Goodbye]
Coincidental has joined #ruby-lang
datanoise has quit [Read error: Connection reset by peer]
Snibble has joined #ruby-lang
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
jsullivandigs has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
jsullivandigs has joined #ruby-lang
simoz has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
Coincidental has quit [Ping timeout: 268 seconds]
cored has joined #ruby-lang
<cored> hi
<cored> is there a simpler way to extract all the four letters of a word ?
<cored> a simpler let's say using slice or something like that, I have a map which looks kinda ugly
<whitequark> all the four letters?
<eam> there are actually 26 letters
<cored> whitequark: yeap all the sequences of four letters in fact
diegoviola has quit [Quit: WeeChat 0.4.2]
<cored> like 'deadspace' == 'dead', 'eads', 'adsp', 'dspa'
<cored> and so on
vlad_starkov has quit [Ping timeout: 265 seconds]
<cored> I have a loop of the first element until the size - 4 and then an slice inside of the loop to extract the current letter until letter + 3
<cored> which I don't like
<whitequark> >> 'aaaa'.succ
<eval-in> whitequark => "aaab" (https://eval.in/68644)
<whitequark> >> 'aaaz'.succ
<eval-in> whitequark => "aaba" (https://eval.in/68645)
Snibble has quit [Quit: Leaving.]
<cored> hm
vlad_starkov has joined #ruby-lang
<whitequark> >> ('aaaa'..'zzzz').to_a
<whitequark> *cough*
digs has joined #ruby-lang
digs is now known as Guest2994
<cored> :-)
vsorlov has quit [Ping timeout: 257 seconds]
<rue> Permutations?
mistym has joined #ruby-lang
<cored> rue: not quite
<rue> Oh, I misread
<cored> rue: it's just all the 4 letter alpha sequence on a word
vlad_sta_ has quit [Ping timeout: 252 seconds]
jsullivandigs has quit [Ping timeout: 252 seconds]
<cored> probably Iwill have to iterate like I was
<rue> #each_cons + #map?
<rue> Or summat
DEac- has quit [Read error: Connection reset by peer]
<cored> summat
<cored> hm
<rue> Or select I guess rather than map. If you need to discard nonalpha
DEac- has joined #ruby-lang
<cored> rue: shouldn't each_cons be chars
<cored> ?
jsullivandigs has joined #ruby-lang
Guest2994 has quit [Read error: Connection reset by peer]
MaddinXx has quit [Quit: Leaving...]
sevvie has joined #ruby-lang
ItSANgo has joined #ruby-lang
<rue> …Maybe? Not sure what you’re asking
albioner has joined #ruby-lang
<Zeeo> Guys, I'm asking you for some enlightment, tell me if this is ok for you: started working this morning, Regexp.new("a|b", Regexp::IGNORECASE) #=> /a|b/i, wich was what I wanted, switch off computer, go back to work, now Regexp.new("a|b", Regexp::IGNORECASE) #=> (?i-mx:a|b). Why is that? did I do something wrong that made my regex class want to complicate my work?
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
<Zeeo> is there even a parameter to tell regex wich syntax to use?
<MrZYX> 1) don't care 2) use a literal
<Zeeo> MrZYX: like string = "/" + "a|b" + "/i" ?
<drbrain> >> "#{/a|b/i} #{/a|b/i.inspect}"
<eval-in> drbrain => "(?i-mx:a|b) /a|b/i" (https://eval.in/68664)
<drbrain> Zeeo: ↑
nhmood has quit [Ping timeout: 246 seconds]
__butch__ has quit [Quit: Leaving.]
<MrZYX> >> /a|b/i
<eval-in> MrZYX => /a|b/i (https://eval.in/68665)
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
lmadrigal has quit [Quit: Computer has gone to sleep.]
atmosx has quit [Quit: Lost in trance]
lmadrigal has joined #ruby-lang
<Zeeo> this requires so much after-manipulation
<drbrain> Zeeo: ⁇
<Zeeo> it could be a lot simpler with a parameter in #compile
<drbrain> Zeeo: what manipulation?
havenwood has quit [Remote host closed the connection]
<Zeeo> #{/a|b/i.inspect} is a string
sevvie has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
<Zeeo> so I have to turn it back to regex in order to use it
<drbrain> Zeeo: what are you trying to do
<drbrain> don't use inspect
<drbrain> it's wrong
<drbrain> use source (aliased to to_s)
<Zeeo> drbrain: [a, b] => "a|b" => /a|b/i
<Zeeo> drbrain: but what my reges does is
Tearan has quit [Quit: Sleepy Badger....]
<drbrain> Zeeo: that line makes no sense
<Zeeo> drbrain: [a, b] => "a|b" => (?i-mx:a|b)
dingus_khan has quit [Remote host closed the connection]
<drbrain> syntax error, unexpected =>, expecting end-of-input
dingus_khan has joined #ruby-lang
<Zeeo> drbrain: I thought I was talking to a person lol
<drbrain> Zeeo: you are
<drbrain> but I can't understand what you mean
nhmood has joined #ruby-lang
<Zeeo> drbrain: ok those were the data without the methods
nhmood has quit [Max SendQ exceeded]
<drbrain> I need the methods to understand
nhmood has joined #ruby-lang
nhmood has quit [Max SendQ exceeded]
<Zeeo> [a, b].join(|)
nhmood has joined #ruby-lang
nhmood has quit [Max SendQ exceeded]
<drbrain> use Regexp.union
<Zeeo> #=> "a|b"
nhmood has joined #ruby-lang
nhmood has quit [Max SendQ exceeded]
havenwood has quit [Ping timeout: 260 seconds]
nhmood has joined #ruby-lang
<Zeeo> drbrain: no it doesn't serve my purpose
<Zeeo> I get a waning
<drbrain> what is your purpose?
<Zeeo> [a, b].join(|)
<Zeeo> #=> "a|b"
<drbrain> that's not a purpose
<drbrain> a purpose is something like "I want to match one of two strings in a case-insensitive manner"
<Zeeo> drbrain: I want my regexp.new command to simply return my new regexp in the syntax I want, not its arbitrary results
<ryanf> why?
<drbrain> and what syntax is that?
<drbrain> and the result of Regexp.new is not arbitrary
<Zeeo> Regexp.new("a|b", Regexp::IGNORECASE) #=> /a|b/i,
<Zeeo> instead of
<Zeeo> , Regexp::IGNORECASE) #=> (?i-mx:a|b)
<drbrain> but you seem to be confused by the difference between Regexp#inspect and Regexp#source
dingus_khan has quit [Ping timeout: 268 seconds]
<Zeeo> wich did this morning and isn't doing anymore while nothing's changed
<drbrain> Zeeo: you probably switched from p to puts
<drbrain> >> /a|b/i.source
<eval-in> drbrain => "a|b" (https://eval.in/68669)
<drbrain> heh, eval-in is wrong
arooni-mobile has quit [Ping timeout: 260 seconds]
<drbrain> ah, to_s and source are different
<drbrain> my bad
<drbrain> >> /a|b/i.to_s
<eval-in> drbrain => "(?i-mx:a|b)" (https://eval.in/68670)
<drbrain> sorry
<drbrain> Zeeo: so, there's no difference
<Zeeo> drbrain: but te two syntaxes have different meanings, one says that a and b are both case insensitive, the other one says that only a is
<drbrain> just in how it's displayed when you look ati it
<Zeeo> amrite?
<drbrain> nope
dingus_khan has joined #ruby-lang
<drbrain> (?…:) means " the stuff between : and ) has options
<drbrain> and those options are described in the part between ? and :
arooni-mobile has joined #ruby-lang
<Zeeo> so /a|b/i = (?i-mx:a|b)
dingus_khan has quit [Remote host closed the connection]
<rue> Is that *no* mx?
<drbrain> i-mx means "turn on case insensitive, turn off multiline and whitespace/comment mode"
simoz2 has joined #ruby-lang
<drbrain> rue: no m
<drbrain> err, no mx
<rue> Righto
<Zeeo> and not /(?-mix:dogs)|(?i-mx:cats)/ (from rubydoc)
<drbrain> Zeeo: yes, but one is the inspect view, the other is the to_s view
simoz has quit [Ping timeout: 260 seconds]
dingus_khan has joined #ruby-lang
<drbrain> Zeeo: that one is case-sensitive for dogs, insensitive for cats
<Zeeo> srry wrong syntax
<Zeeo> I meant /(i-mx:cats)|(i-mx:dogs)/
<drbrain> I'm assuming there's supposed to be a ? in there, but that is case insensitive for cats and dogs
<drbrain> Zeeo: the (?…:blah) syntax allows you to put one regexp in another
yfeldblu_ has quit [Ping timeout: 260 seconds]
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
<Zeeo> hoping so
<drbrain> >> foo = /a|b/i; /#{foo}c/
<eval-in> drbrain => /(?i-mx:a|b)c/ (https://eval.in/68671)
dingus_khan has quit [Ping timeout: 245 seconds]
<drbrain> ↑ matches ac, Ac, bc, Bc
<drbrain> Zeeo: its a fact
<drbrain> there is no need for hope
yfeldblum has joined #ruby-lang
dingus_khan has joined #ruby-lang
h0rrorvacui has quit [Quit: ZQ]
ikrima has joined #ruby-lang
<drbrain> Zeeo: I know its confusing, because source, to_s and inspect all return different things
<Zeeo> it's a mystery: (?i-mx:a|b) ==(/a|b/i) #=> syntax error
nigerianceo has quit []
<Zeeo> xD
<drbrain> (?i-mx:a|b) is only valid inside // (or strings)
simoz has joined #ruby-lang
simoz2 has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Remote host closed the connection]
<Zeeo> drbrain: /(?i-mx:a|b)/ ==(/a|b/i) #=> false, for some reason :
<Zeeo> :\
<drbrain> regexps are only equal when their source strings are equal
yfeldblu_ has joined #ruby-lang
<drbrain> which is different from #source
macmartine has joined #ruby-lang
<drbrain> since the two expressions match the same character sequences, the inequality doesn't change anything
lmadrigal has quit [Quit: Computer has gone to sleep.]
yfeldbl__ has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 240 seconds]
banisterfiend is now known as banister`
dingus_khan has quit [Ping timeout: 272 seconds]
bg451 has joined #ruby-lang
lmadrigal has joined #ruby-lang
daniel__ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
vbatts has quit [Ping timeout: 264 seconds]
bg451 has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
daniel__ has quit [Client Quit]
Johz has quit [Remote host closed the connection]
simoz has quit [Ping timeout: 252 seconds]
simoz has joined #ruby-lang
smashwilson has quit [Quit: Leaving]
mbj has quit [Ping timeout: 246 seconds]
kurko__ has quit [Quit: Computer has gone to sleep.]
cored has quit [Ping timeout: 260 seconds]
jsullivandigs has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
jsullivandigs has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
nisstyre has joined #ruby-lang
Johz has joined #ruby-lang
simoz has quit [Ping timeout: 252 seconds]
simoz has joined #ruby-lang
jamesn has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
jerrytgarcia has joined #ruby-lang
mbj has joined #ruby-lang
solars has joined #ruby-lang
bruno- has joined #ruby-lang
h0rrorvacui has joined #ruby-lang
dalegribble80 has quit [Ping timeout: 265 seconds]
simoz has quit [Ping timeout: 268 seconds]
phus1on has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Remote host closed the connection]
banister` has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]