apeiros changed the topic of #ruby-lang to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
Averna has joined #ruby-lang
<zenspider> yorickpeterse: ouch
tylersmith has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
Atttwww has joined #ruby-lang
thagomizer has quit [Quit: Leaving.]
David_H_Smith has joined #ruby-lang
dm78 has quit []
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
shinnya has joined #ruby-lang
dm78 has joined #ruby-lang
dm78 has quit [Client Quit]
chouhoulis has joined #ruby-lang
|jemc| has joined #ruby-lang
David_H_Smith has quit [Ping timeout: 245 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
marr has quit []
lcdhoffman has joined #ruby-lang
chouhoulis has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has joined #ruby-lang
ender|dkm has joined #ruby-lang
charliesome has quit [Quit: zzz]
David_H_Smith has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
David_H_Smith has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Ping timeout: 250 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 245 seconds]
ledestin_ is now known as ledestin
lcdhoffman has quit [Client Quit]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]
David_H_Smith has joined #ruby-lang
jimbach_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
David_H_Smith has quit [Read error: Connection reset by peer]
kalopsian has joined #ruby-lang
David_H_Smith has joined #ruby-lang
lcdhoffman has joined #ruby-lang
jimbach has quit [Ping timeout: 244 seconds]
lcdhoffman has quit [Client Quit]
David_H_Smith has quit [Read error: Connection reset by peer]
emmesswhy has quit [Quit: This computer has gone to sleep]
David_H_Smith has joined #ruby-lang
lcdhoffman has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
lcdhoffman has quit [Client Quit]
araujo has joined #ruby-lang
robbyoconnor has joined #ruby-lang
nathanstitt has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
tenderlove has quit [Quit: Leaving...]
emmesswhy has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
tkuchiki has joined #ruby-lang
kalopsia1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
kalopsian has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
bradcliffe has joined #ruby-lang
bradcliffe has quit [Client Quit]
tylersmith has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
David_H_Smith has quit [Remote host closed the connection]
mistym has joined #ruby-lang
David_H_Smith has joined #ruby-lang
David_H_Smith has quit [Read error: Connection reset by peer]
ender|dkm has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
jbardin has quit [Quit: jbardin]
j4cknewt has quit [Remote host closed the connection]
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
shinnya has quit [Ping timeout: 272 seconds]
ender|dkm has quit [Ping timeout: 255 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
Atttwww has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
j4cknewt has joined #ruby-lang
diegoviola has joined #ruby-lang
David_H_Smith has quit [Ping timeout: 258 seconds]
ender|dkm has joined #ruby-lang
stardiviner has joined #ruby-lang
_dabradley has quit [Ping timeout: 272 seconds]
David_H_Smith has joined #ruby-lang
conquerio has joined #ruby-lang
stardiviner has quit [Client Quit]
stardiviner has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
allomov has joined #ruby-lang
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
allomov has quit [Ping timeout: 244 seconds]
lcdhoffman has joined #ruby-lang
knu has quit [Remote host closed the connection]
_dabradley has joined #ruby-lang
David_H_Smith has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby-lang
David_H_Smith has joined #ruby-lang
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
knu has joined #ruby-lang
kalopsia1 has quit [Ping timeout: 250 seconds]
ender|dkm has quit [Ping timeout: 255 seconds]
David_H_Smith has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
kalopsian has joined #ruby-lang
David_H_Smith has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
David_H_Smith has quit [Read error: Connection reset by peer]
David_H_Smith has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Quit: Leaving...]
NoNMaDDeN has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 272 seconds]
jimbach_ has quit [Remote host closed the connection]
cmisenas has joined #ruby-lang
jdecuirm has quit [Quit: Leaving]
tkuchiki has joined #ruby-lang
charliesome has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
tkuchiki has joined #ruby-lang
David_H_Smith has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
jhass is now known as jhass|off
diegoviola has quit [Quit: WeeChat 1.0.1]
zzach has quit [Ping timeout: 255 seconds]
zzach has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
conquerio has quit []
kalopsian has quit [Ping timeout: 260 seconds]
lcdhoffman has joined #ruby-lang
willywos has joined #ruby-lang
activistnews has joined #ruby-lang
activistnews has quit [Client Quit]
jimbach has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
charliesome_ has joined #ruby-lang
charliesome__ has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 272 seconds]
charliesome_ has quit [Ping timeout: 250 seconds]
charliesome__ has quit [Client Quit]
charliesome has joined #ruby-lang
emmesswhy has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
NoNMaDDeN has quit [Quit: Leaving...]
emmesswhy has quit [Client Quit]
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
David_H__ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dknox_afk has quit [Ping timeout: 245 seconds]
brianpWins has quit [Read error: Connection reset by peer]
zenspider has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby-lang
David_H_Smith has quit [Ping timeout: 240 seconds]
zenspider has joined #ruby-lang
David_H__ has quit [Ping timeout: 245 seconds]
charliesome_ has joined #ruby-lang
joast has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 258 seconds]
havenwood has quit []
ender|dkm has quit [Ping timeout: 255 seconds]
charliesome_ has quit [Ping timeout: 240 seconds]
j4cknewt has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby-lang
RobertBirnie has joined #ruby-lang
tkuchiki has joined #ruby-lang
cmisenas has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Quit: Leaving...]
lsegal has joined #ruby-lang
mistym has joined #ruby-lang
cmisenas has joined #ruby-lang
Asher has joined #ruby-lang
allomov has joined #ruby-lang
jxie_ has joined #ruby-lang
Kuda has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has quit [Ping timeout: 260 seconds]
jxie has quit [Ping timeout: 272 seconds]
faces has joined #ruby-lang
face has quit [Ping timeout: 258 seconds]
cmisenas has quit [Quit: cmisenas]
pastuxso has quit [Quit: Connection closed for inactivity]
ender|dkm has joined #ruby-lang
Voker57 has quit [Ping timeout: 258 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
JohnBat26 has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
jgpawletko has quit [Quit: jgpawletko]
araujo has quit [Quit: Leaving]
gix has quit [Ping timeout: 272 seconds]
gix has joined #ruby-lang
havenwood has joined #ruby-lang
robbyoconnor has joined #ruby-lang
elico has joined #ruby-lang
elico has left #ruby-lang [#ruby-lang]
elico has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
David_H_Smith has joined #ruby-lang
David_H_Smith has quit [Remote host closed the connection]
Voker57 has joined #ruby-lang
David_H_Smith has joined #ruby-lang
tkuchiki has joined #ruby-lang
charliesome has quit [Quit: zzz]
ender|dkm has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
elico has quit [Quit: Leaving.]
charliesome has joined #ruby-lang
Atttwww has joined #ruby-lang
adam1 has joined #ruby-lang
charliesome has quit [Quit: zzz]
conquerio has joined #ruby-lang
adam1 is now known as Steve_Jobs
fragamus has joined #ruby-lang
charliesome has joined #ruby-lang
humd1ng3r has joined #ruby-lang
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kuda has quit [Quit: Byebye!]
oleo has quit [Quit: Verlassend]
hahuang65 has joined #ruby-lang
AKASkip has joined #ruby-lang
ender|dkm has joined #ruby-lang
chorkpop has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
JoshuaPaling has joined #ruby-lang
godd2 has quit [Ping timeout: 240 seconds]
jg has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
chorkpop has quit [Quit: Leaving]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
ruskie has quit [Quit: ...]
NoNMaDDeN has quit [Remote host closed the connection]
emmesswhy has joined #ruby-lang
AKASkip has quit [Ping timeout: 265 seconds]
ruskie has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
skade has joined #ruby-lang
rippa has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
charliesome has quit [Quit: zzz]
conquerio has quit []
q_leonetti has joined #ruby-lang
seank_ has quit [Read error: Connection reset by peer]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
seank_ has joined #ruby-lang
charliesome has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
apeiros has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
Averna has quit [Quit: Leaving.]
matp has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
mkaesz has joined #ruby-lang
_ht has joined #ruby-lang
AKASkip has joined #ruby-lang
tbuehlmann has joined #ruby-lang
rolfb has joined #ruby-lang
meizaps has quit [Ping timeout: 272 seconds]
skarn has quit [Ping timeout: 272 seconds]
meizaps has joined #ruby-lang
nifoc has quit [Ping timeout: 272 seconds]
tris has quit [Ping timeout: 272 seconds]
tris has joined #ruby-lang
skarn has joined #ruby-lang
j4cknewt has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
Steve_Jobs has quit [Quit: WeeChat 0.4.2]
charliesome has quit [Quit: zzz]
simi has joined #ruby-lang
nifoc has joined #ruby-lang
solars has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
rahul_j has joined #ruby-lang
benlovell has joined #ruby-lang
mistym has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
<maloik> "I'm based on the Isle of Wight... it's about 20 years behind the times... I'm a PHP developer"
<maloik> couldn't help but chuckle
<maloik> (no hate)
michd is now known as MichD
stardiviner has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ta has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
simi has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
eikood has joined #ruby-lang
relix has joined #ruby-lang
eikood_ has joined #ruby-lang
eikood has quit [Client Quit]
FooMunki has joined #ruby-lang
eikood_ has quit [Client Quit]
ledestin has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby-lang
eikood has joined #ruby-lang
ta has quit [Remote host closed the connection]
eikood_ has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
eikood_ has quit [Client Quit]
eikood has quit [Quit: Leaving]
eikood has joined #ruby-lang
ta has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
jds has joined #ruby-lang
allomov has joined #ruby-lang
mikecmpbll has joined #ruby-lang
stardiviner has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
fusillicode has joined #ruby-lang
marr has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
ta has quit [Ping timeout: 258 seconds]
hackeron has quit [Ping timeout: 260 seconds]
hackeron has joined #ruby-lang
SuMo_D has quit [Ping timeout: 245 seconds]
elia has joined #ruby-lang
ta has joined #ruby-lang
qba73 has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
|jemc| has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
mikecmpbll has joined #ruby-lang
caseydriscoll has joined #ruby-lang
jhass|off is now known as jhass
FooMunki has quit [Ping timeout: 260 seconds]
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 265 seconds]
rahul_j_ is now known as rahul_j
GarethAdams has quit [Ping timeout: 260 seconds]
GBrawl has joined #ruby-lang
GarethAdams has joined #ruby-lang
charliesome has quit [Quit: zzz]
ta has joined #ruby-lang
Atttwww has quit [Ping timeout: 245 seconds]
ta has quit [Client Quit]
charliesome has joined #ruby-lang
ta has joined #ruby-lang
<yorickpeterse> morning
<tbuehlmann> moin
ledestin has quit [Read error: Connection reset by peer]
ledestin has joined #ruby-lang
<womble> Good to see flickr hasn't been completely crushed under the weight of Yahoo!
kyb3r_ has joined #ruby-lang
allomov has quit [Remote host closed the connection]
caseydriscoll has quit [Ping timeout: 245 seconds]
<yorickpeterse> "The use of `eval` is a serious security risk."
<yorickpeterse> GEE
quimrstorres has joined #ruby-lang
<yorickpeterse> "Method has too many lines. [11/10"
<yorickpeterse> pffft
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby-lang
<yorickpeterse> zenspider: yeah, it's a bit of a shamde Ragel's repo will no longer be available, but I wouldn't be surprised if Adrian turns around at some point
<yorickpeterse> at least the code itself is still FOSS
eikood has quit [Remote host closed the connection]
Voker57 has quit [Ping timeout: 255 seconds]
face has joined #ruby-lang
faces has quit [Ping timeout: 240 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
face has quit [Ping timeout: 240 seconds]
face has joined #ruby-lang
Iskarlar has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mreq has joined #ruby-lang
hellangel7 has joined #ruby-lang
Squarepy has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
stef204 has joined #ruby-lang
stef204 has quit [Client Quit]
arBmind has joined #ruby-lang
arBmind1 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
<Silex> hello, I'll need to handle events and have the user script "logic" reguarding these events through some web interface. The kind of logic is "IF event is foo AND has already received event foo less than 5 minutes ago, THEN send message to bar"
<Silex> I'm asking for suggestions/libs that'd help me write such interfaces... so far I'm thinking writing a "simple mode" with simple rules like "if message is foo then send message to bar" and an "advanced mode" where you can write some ruby
sepp2k has joined #ruby-lang
<Silex> and in teh ruby script some variables are already bound, like CURRENT_EVENT and PREVIOUS_EVENTS or smth
<Silex> is there a ruby library for writing rules about logic? something serializable
<yorickpeterse> Silex: you're basically looking for a state machine
whippythellama has joined #ruby-lang
<yorickpeterse> https://github.com/pluginaweek/state_machine this is pretty complex, so YMMV
<freedrull> there's source_location for methods/procs, but not modules or classes. could it possibly be implemented?
<freedrull> source_location seems to work by inspecting iseq's
Iskarlar has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> freedrull: I believe that has been proposed on bugs.ruby-lang.org at some point, not sure what the status is though
<freedrull> cool, i'll search for it
<Silex> yorickpeterse: hum, yeah I guess I am. In my experience having users write state machines is a recipe for disaster, but ok I'll consider it
emmesswhy has quit [Quit: This computer has gone to sleep]
<jhass> the issue probably is that while procs and method have a definitive source_location, modules can have many
<yorickpeterse> Silex: well yeah, they're tricky to get right
<yorickpeterse> jhass: that would also apply to methods
<yorickpeterse> Not sure if source_location refers to the initial location, or the last one
<jhass> pretty sure it's the last oen
<freedrull> my japanese is not great https://bugs.ruby-lang.org/issues/8726
<jhass> and a method gets redefined, it's basically a new method taking the old name
Iskarlar has joined #ruby-lang
<jhass> a module gets reopened/extended
<yorickpeterse> freedrull: one of many reasons why bugs.ruby-lang.org sucks
<yorickpeterse> besides it being really slow and confusing to use
nathanstitt has joined #ruby-lang
<freedrull> well, the language barrier is not really the website's fault
<freedrull> but yeah its also slow
<jhass> what I can gather from google translate is that the report reasoned its addition with a usecase for Timeout::timeout and that usecase was considered invalid and so the issue was rejected
<freedrull> ah
<freedrull> ok yeah seems like it
snoopybbt has quit [Quit: leaving]
<jhass> I also could gather that they're open to a new proposal if it includes a better usecase
<freedrull> can't really figure out why they thought usecase wasn't good enough
nathanstitt has quit [Quit: I growing sleepy]
<freedrull> i'd like to use it to debug this issue https://github.com/rails-assets/rails-assets/issues/188
<freedrull> if i could tell where the module is defined it would certainly help
<jhass> you could write $LOADED_FEATURES to a file and grep through them
Miphix has quit [Quit: Leaving]
<jhass> I guess that's about was pry does for $ Foo
<freedrull> ?!
<freedrull> woahhhhhhhhhhhhhh
kwd has left #ruby-lang [#ruby-lang]
workmad3 has quit [Quit: Lost terminal]
mreq has quit [Ping timeout: 265 seconds]
mkaesz has quit [Ping timeout: 265 seconds]
Miphix has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<freedrull> well how does pry do it i wonder.....
stamina has joined #ruby-lang
JaRe_Ax has joined #ruby-lang
JaReAx has quit [Ping timeout: 250 seconds]
JaRe_Ax is now known as JaReAx
ldnunes has joined #ruby-lang
<freedrull> this gem isn't even related https://rubygems.org/gems/rails-assets
<freedrull> and the github page is gone
<freedrull> so who knows what it even is?
<freedrull> rubygems.org *needs* to have an abandoned gems policy
<freedrull> well at least i learned how to use $ in pry
<jhass> from the contained readme: "A Gem which includes vendor Javascript, Stylesheets, Images (Subtle Patterns), Mailchimp Email templates plus Rails helpers to deal with HTML5 tags, Metatags, .. "
<kalleth> kitchen sink gem then
<whitequark> as a kitchen sink I find that offensive
<ljarvis> derp
<ljarvis> moin
hackeron has quit [Ping timeout: 246 seconds]
hackeron has joined #ruby-lang
q_leonetti has quit [Quit: q_leonetti]
GBrawl has quit [Quit: (null)]
tkuchiki has joined #ruby-lang
tkuchiki_ has quit [Read error: Connection reset by peer]
Squarepy has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
mkaesz has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
Abuh_ has quit [Ping timeout: 272 seconds]
Abuh has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
q_leonetti has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
spastorino has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
benlovell has quit [Ping timeout: 255 seconds]
hedgey has joined #ruby-lang
hedgey has quit [Client Quit]
chills42 has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> whitequark: so can I put my dirty dishes on/in you?
miqui has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby-lang
jgpawletko has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
spuk has quit [Ping timeout: 258 seconds]
dagda1 has joined #ruby-lang
spuk has joined #ruby-lang
sol has joined #ruby-lang
sol is now known as Guest48968
solars has quit [Ping timeout: 240 seconds]
hramrach_ has quit [*.net *.split]
ledestin has quit [*.net *.split]
hachiya has quit [*.net *.split]
vieq has quit [*.net *.split]
lguardiola_ has quit [*.net *.split]
llakey has quit [*.net *.split]
Kabaka has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
hachiya has joined #ruby-lang
ledestin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vieq has joined #ruby-lang
lguardiola has joined #ruby-lang
llakey has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kabaka has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
kiddorails has joined #ruby-lang
<yorickpeterse> interesting results so far of my MySQL vs Pg shootout: MySQL is generally faster at a simple COUNT(primary-key), but Pg beats myself in pretty much everything else
<yorickpeterse> it looks like Pg is on average 1,3 - 1,5 times faster than MyFirstSQL in my queries
<banister> yorickpeterse whqt about in nested queries, as there's sophisticated rewriting/optimization that can happen there
<yorickpeterse> banister: don't have any of those yet, good thinking
Iskarlar has quit [Read error: Connection reset by peer]
Iskarlar_ has joined #ruby-lang
<yorickpeterse> did have a concurrent benchmark (5 queries in 5 threads), there Pg is also faster
<yorickpeterse> (that's with a connection pool)
<whitequark> yorickpeterse: COUNT is a known thing with postgres
<yorickpeterse> whitequark: oh?
<yorickpeterse> hmmmm
<yorickpeterse> interesting
<yorickpeterse> lemme put this wonderful code on the Githubs
benlovell has joined #ruby-lang
yalue has joined #ruby-lang
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest48968 has quit [Quit: WeeChat 0.4.1]
solars has joined #ruby-lang
lcdhoffman has joined #ruby-lang
<solars> can anyone tell me how to use http://www.rubydoc.info/gems/net-sftp/2.0.5/Net/SFTP/Operations/Dir:glob to sort by date? (e.g. I want to retrieve the last 5 files)
yfeldblum has joined #ruby-lang
eikood has joined #ruby-lang
<jhass> solars: you left #ruby before I could answer ;)
kiddorails has quit [Remote host closed the connection]
<jhass> solars: I don't think glob provides that functionality, you need to filter down afterwards. And yes, that's gonna be slow over sftp
<yorickpeterse> https://github.com/olery/rds-shootout there we go
yfeldblum has quit [Ping timeout: 260 seconds]
<solars> jhass, sorry I had a problem with my client :)
<solars> jhass, ah.. I feared so :/
eikood has quit [Client Quit]
eikood has joined #ruby-lang
kalehv has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
<jhass> solars: I'd try N:S:O:Dir.entries which seems to return an array of N:S:P:Name's who have an attributes attribute which might contain the mdate and be faster
lcdhoffman has quit [Quit: lcdhoffman]
eikood has quit [Client Quit]
<jhass> since you already have the attribute with one query
<jhass> if you're lucky
<solars> hm I think i will do it differently
eikood has joined #ruby-lang
<solars> it's basically reports that are scheduled and luckily include the date in the filename
<solars> so I can access the file directly, assuming it is there
<solars> hm ok it also contains a random ID
<solars> I can use wildcards, right? :)
<solars> something like 'get 2014-10-01-*.csv'
rahul_j has quit [Quit: rahul_j]
lcdhoffman has joined #ruby-lang
arBmind has joined #ruby-lang
<jhass> with glob, yeah, I'm not sure if that's faster than just fetching the entire filelist and processing it locally though
dangerousdave has joined #ruby-lang
[spoiler] has joined #ruby-lang
<solars> it depends on what exactly glob fetches, only a meta object of the file?
NoNMaDDeN has joined #ruby-lang
<solars> on the other hand, if the directory contains a lot of files, this will probably slow with glob..
<solars> hmm but file.open doesn't seem to accept wildcards
shinnya has joined #ruby-lang
kiddorails has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
<solars> nevermind, I think I have it
rippa has joined #ruby-lang
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 255 seconds]
ledestin_ is now known as ledestin
workmad3 has joined #ruby-lang
humd1ng3r has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
jimbach has joined #ruby-lang
<solars> jhass, do you know how to get the content of these entry objects returned by glob?
goodcodeguy has joined #ruby-lang
relix has joined #ruby-lang
eikood has quit [Quit: Leaving]
hramrach_ has joined #ruby-lang
eikood has joined #ruby-lang
ledestin_ has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 260 seconds]
ledestin_ is now known as ledestin
<jhass> solars: looking at the code you should just get them yielded or get an array of them back. They should be http://www.rubydoc.info/gems/net-sftp/2.0.5/Net/SFTP/Protocol/V04/Name objects
kalehv has quit [Remote host closed the connection]
<solars> jhass, I got it, have to use download!(entry.name) to fetch the content
eikood has quit [Quit: Leaving]
eikood has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
klmlfl has joined #ruby-lang
kalopsian has joined #ruby-lang
miqui has joined #ruby-lang
willywos has joined #ruby-lang
eikood has quit [Quit: Leaving]
kiddorails has joined #ruby-lang
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
kiddorails has quit [Remote host closed the connection]
malconis has joined #ruby-lang
nathanstitt has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
kiddorails has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
kiddorails has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
kiddorails has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
hellangel7 has quit [Remote host closed the connection]
_rai is now known as rai
kiddorails has quit [Remote host closed the connection]
relix has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
relix has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
lcdhoffman has joined #ruby-lang
relix has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
eikood has joined #ruby-lang
meizaps has quit [Ping timeout: 272 seconds]
meizaps has joined #ruby-lang
rcvalle has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
lcdhoffman has quit [Quit: lcdhoffman]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
oleo has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
kiddorails has joined #ruby-lang
charliesome has quit [Quit: zzz]
quimrstorres has joined #ruby-lang
quimrstorres has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
jxie_ has quit [Ping timeout: 246 seconds]
kiddorails has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
jxie has joined #ruby-lang
matp has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
quimrstorres has joined #ruby-lang
charliesome has joined #ruby-lang
chills42 has joined #ruby-lang
bradcliffe has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
bradcliffe has quit [Remote host closed the connection]
chills42 has quit [Client Quit]
nathanstitt has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
joast has joined #ruby-lang
charliesome has quit [Quit: zzz]
benlovel1 has joined #ruby-lang
benlovell has quit [Read error: Connection reset by peer]
pastuxso has joined #ruby-lang
klmlfl has joined #ruby-lang
whippythellama has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
mattyohe has joined #ruby-lang
jimbach has joined #ruby-lang
loincloth has joined #ruby-lang
allomov has joined #ruby-lang
yfeldblum has joined #ruby-lang
mreq has joined #ruby-lang
shinnya has quit [Ping timeout: 265 seconds]
seank__ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
cmhobbs has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
allomov has quit [Remote host closed the connection]
allomov has joined #ruby-lang
seank_ has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby-lang
lcdhoffman has joined #ruby-lang
AKASkip has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
tenderlove has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
mikecmpbll has joined #ruby-lang
momomomomo has quit [Ping timeout: 260 seconds]
ta has joined #ruby-lang
godd2 has joined #ruby-lang
momomomomo has joined #ruby-lang
q_leonetti has quit [Quit: q_leonetti]
ta has quit [Remote host closed the connection]
mreq has quit [Ping timeout: 260 seconds]
slawrence00 has joined #ruby-lang
mistym has joined #ruby-lang
fragamus has joined #ruby-lang
mistym has quit [Remote host closed the connection]
araujo has joined #ruby-lang
araujo has quit [Changing host]
araujo has joined #ruby-lang
bradcliffe has joined #ruby-lang
dwknoxy has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bradcliffe has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
goatish_mound has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
symm- has joined #ruby-lang
rsl has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby-lang
chouhoulis has joined #ruby-lang
benlovel1 has quit [Quit: leaving]
solars has quit [Ping timeout: 265 seconds]
JohnBat26 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
mistym has joined #ruby-lang
gnufied has quit [Ping timeout: 260 seconds]
klmlfl has quit [Read error: Connection reset by peer]
kiddorails has joined #ruby-lang
klmlfl has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
stef204 has joined #ruby-lang
stef204 has quit [Changing host]
stef204 has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
gnufied has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
x0f has joined #ruby-lang
rahul_j has joined #ruby-lang
stardiviner has joined #ruby-lang
stardiviner has quit [Changing host]
stardiviner has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
jg has quit [Quit: Leaving]
momomomomo has joined #ruby-lang
kalopsian has quit [Ping timeout: 250 seconds]
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has quit [Client Quit]
ta has joined #ruby-lang
enebo has joined #ruby-lang
eikood has quit [Quit: Leaving]
kalopsian has joined #ruby-lang
willywos has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
stardiviner has quit [Ping timeout: 258 seconds]
quimrstorres has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
fusillicode has quit [Quit: Leaving.]
xwq17 has joined #ruby-lang
diegoviola has joined #ruby-lang
rsl has joined #ruby-lang
emmesswhy has joined #ruby-lang
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby-lang
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imkmf has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
solars has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
thagomizer has joined #ruby-lang
kalopsian has quit [Ping timeout: 255 seconds]
qba73 has quit []
RobertBirnie has joined #ruby-lang
kalopsian has joined #ruby-lang
Noonipoony has joined #ruby-lang
<Noonipoony> Hello? any one?
lcdhoffman has joined #ruby-lang
snoopybbt has joined #ruby-lang
<godd2> There are people here
<Noonipoony> no.1
goodcodeguy has joined #ruby-lang
<Noonipoony> who is no.2?
<Noonipoony> I like ruby. but it's hell in the Windows.
<jhass> learn to like linux ;P
<havenwood> Noonipoony: What problems are you running into?
<Noonipoony> Yes I considered using the ubuntu.
<Noonipoony> But my device is not compatible with it.
<godd2> FreeBSD works on everything except your toaster.
hahuang65 has joined #ruby-lang
momomomomo has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ender|dkm has quit [Ping timeout: 255 seconds]
<Noonipoony> Windows in ruby.. has a lot of have the problem at the Library dependency .
<Noonipoony> like.. ffi. readline. so on.
hahuang61 has joined #ruby-lang
<godd2> ffi can be picky.
elico has joined #ruby-lang
hahuang65 has quit [Ping timeout: 244 seconds]
elia has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby-lang
elia has joined #ruby-lang
elia has quit [Client Quit]
<Noonipoony> Yes picky...
<Noonipoony> but developer need to spend a lots of time for each dependency problem.
<Noonipoony> But I like ruby.
hahuang61 has quit [Client Quit]
hahuang65 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 255 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbardin has joined #ruby-lang
Noonipoony has quit []
JohnBat26 has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
Noonipoony has joined #ruby-lang
quimrstorres has joined #ruby-lang
rippa has joined #ruby-lang
<jhass> Noonipoony: what's incompatible? Did you consider VirtualBox at least?
mistym has joined #ruby-lang
AKASkip has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
snoopybbt has quit [Ping timeout: 256 seconds]
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
<Noonipoony> Of course I tried the Virtualbox and Vmware.
<Noonipoony> But developer need to switch both box (windows and linux).
<Noonipoony> I think this is inefficient.
<Noonipoony> I think best solution is Ruby must compiled in Visual Studio, not mingw environment.
bin7me has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0.1]
fusillicode has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
nertzy has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
mreq has joined #ruby-lang
q_leonetti has joined #ruby-lang
hellangel7 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<havenwood> Noonipoony: I think IronRuby just never reached a critical mass to garner ongoing development. But it may still be useable, dunno: http://ironruby.net
q_leonetti has quit [Client Quit]
tallgirltaadaa has joined #ruby-lang
<tallgirltaadaa> hello
kiddorails has joined #ruby-lang
jbardin has quit [Quit: jbardin]
lcdhoffman has quit [Quit: lcdhoffman]
<tallgirltaadaa> i have a question if anyone could spare a minute
<whitequark> havenwood: it's not
<jhass> tallgirltaadaa: just ask it and you'll find out
<whitequark> I mean, it's not usable, no.
<havenwood> whitequark: ah, too bad
jgpawletko has quit [Quit: jgpawletko]
<whitequark> microsoft used to want this but then changed its mind, took out ironruby back and shot it.
<whitequark> same with python.
yfeldblum has joined #ruby-lang
ender|dkm has joined #ruby-lang
lcdhoffman has joined #ruby-lang
jgpawletko has joined #ruby-lang
<havenwood> Noonipoony: consider JRuby?
<tallgirltaadaa> i am building a small store in rails, ... and I have a product model, that has_many options... in the product_controller I have added 3.times {@product.product_options.build} the problem is that...there are 3 spaces to enter options, but if you only need one two options they third still gets into the db... just as an empty field.. is there any way to get around this
<whitequark> tallgirltaadaa: #rubyonrails
<tallgirltaadaa> yes i have tried
<tallgirltaadaa> but i cant make any posts in there
<tallgirltaadaa> im not sure why
<tallgirltaadaa> it seems private
<tallgirltaadaa> someone once said i need to register my nick
<havenwood> tallgirltaadaa: /msg nickserv help register
<tallgirltaadaa> but freenode is not very user friendly so i dont know how to do that
<ljarvis> tallgirltaadaa: accepts_nested_attributes_for :options, reject_if { |x| x[:something].blank? }
cout has quit [Quit: leaving]
<ljarvis> search for 'reject_if'
<havenwood> tallgirltaadaa: /msg NickServ REGISTER your_password_here your@email.com
<havenwood> tallgirltaadaa: then check your email
<tallgirltaadaa> who is NickServ..
<tallgirltaadaa> how do i message them
<jhass> tallgirltaadaa: as shown, with /msg
<tallgirltaadaa> just type /msg?
yfeldblum has quit [Ping timeout: 245 seconds]
<havenwood> tallgirltaadaa: copy/paste the following to irc and hit enter: /msg nickserv help register
<jhass> /msg NickServ help
ender|dkm has quit [Ping timeout: 255 seconds]
<havenwood> Noonipoony: http://jruby.org
<tallgirltaadaa> thanks
wallerdev has joined #ruby-lang
ender|dkm has joined #ruby-lang
<Noonipoony> Nope not tryed yet. Is it same as the Ruby?
apeiros has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
jbardin has joined #ruby-lang
imkmf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Noonipoony> JRuby Downloading..
<Noonipoony> Thanks I'll be back (:
mikecmpbll has joined #ruby-lang
ruurd has joined #ruby-lang
<tallgirltaadaa> thank you ljarvis this worked:... accepts_nested_attributes_for :product_options, reject_if: proc { |attributes| attributes['option_name'].blank? }
tylersmith has joined #ruby-lang
<havenwood> Noonipoony: JRuby is an implementation of the Ruby language on the JVM. It follows the reference C implementation. It's pretty popular for a number of reasons.
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
GBrawl has joined #ruby-lang
loincloth has quit []
djbkd has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
kiddorails has quit [Remote host closed the connection]
matp has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
elia has joined #ruby-lang
lcdhoffman has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
SuMo_D has joined #ruby-lang
Iskarlar has joined #ruby-lang
Iskarlar has quit [Max SendQ exceeded]
kiddorails has joined #ruby-lang
jimbach has joined #ruby-lang
tylersmi_ has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmi_ is now known as tcrypt
tylersmith has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
elia has quit [Ping timeout: 255 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
albertogg has joined #ruby-lang
mistym has joined #ruby-lang
tallgirltaadaa has quit [Quit: Page closed]
oleo is now known as Guest32851
oleo__ has joined #ruby-lang
__butch__ has joined #ruby-lang
rahul_j has joined #ruby-lang
stamina has quit [Remote host closed the connection]
Guest32851 has quit [Ping timeout: 245 seconds]
SuMo_D has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
klmlfl has joined #ruby-lang
postmodern has joined #ruby-lang
imkmf has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
rsl has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 256 seconds]
imkmf has quit [Client Quit]
klmlfl has quit [Remote host closed the connection]
rsl has quit [Client Quit]
Noonipoony has quit []
klmlfl has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
djbkd has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
djbkd has quit [Read error: Connection reset by peer]
imkmf has joined #ruby-lang
imkmf has quit [Client Quit]
Noonipoony has joined #ruby-lang
momomomomo has quit [Ping timeout: 265 seconds]
snoopybbt has joined #ruby-lang
ayonkhan has joined #ruby-lang
loincloth has joined #ruby-lang
mreq has quit [Ping timeout: 272 seconds]
albertogg has quit [Ping timeout: 244 seconds]
quimrstorres has joined #ruby-lang
rahul_j has left #ruby-lang [#ruby-lang]
kiddorails has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quimrstorres has quit [Ping timeout: 240 seconds]
j4cknewt has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: WeeChat 1.0.1]
nertzy has quit [Quit: This computer has gone to sleep]
loincloth has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
ruurd has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
loincloth has joined #ruby-lang
momomomomo has joined #ruby-lang
loincloth has quit [Read error: Connection reset by peer]
loinclot_ has joined #ruby-lang
j4cknewt has joined #ruby-lang
benanne has joined #ruby-lang
sepp2k has quit [Quit: Konversation terminated!]
dangerousdave has joined #ruby-lang
djbkd has joined #ruby-lang
diegoviola has joined #ruby-lang
yfeldblum has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
webhat has quit [Ping timeout: 260 seconds]
marr has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
Mellett68 has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
oleo has joined #ruby-lang
ayonkhan has quit [Quit: (null)]
ayonkhan has joined #ruby-lang
fragamus has joined #ruby-lang
stamina has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
_lexjm has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
webhat has joined #ruby-lang
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
tcrypt has quit [Read error: Connection reset by peer]
mistym has quit [Quit: Leaving...]
territorial has joined #ruby-lang
ruurd has quit [Quit: Linkinus - http://linkinus.com]
kwd has joined #ruby-lang
SuMo_D has joined #ruby-lang
tylersmith has joined #ruby-lang
tzero has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
bradcliffe has joined #ruby-lang
tylersmi_ has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
|jemc| has joined #ruby-lang
tylersmi_ has quit [Read error: Connection reset by peer]
<|jemc|> yorickpeterse: you do scraping, right? what is your scraper of choice?
yfeldblum has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby-lang
<yorickpeterse> |jemc|: Yes, we don't use a dedicated Gem for that
havenwood has quit [Remote host closed the connection]
<yorickpeterse> we have our own secret sauce
<yorickpeterse> basically we just implement the crawling logic by hand, as it differs widely per website that we scrape
<yorickpeterse> e.g. some websites use regular GET requests, others require you to POST asp.net forms (inc the amazing __VIEWSTATE crap), etc
havenwood has joined #ruby-lang
<|jemc|> yorickpeterse: good to know
charliesome has joined #ruby-lang
<yorickpeterse> still need to see if I can open sauce parts of that
<|jemc|> a friend asked me if I could whip them up a quick and dirty scraping script and it's not really my area of expertise
<yorickpeterse> e.g. our multi-lingual date parser (which is actually a pretty simple piece of code)
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
<yorickpeterse> |jemc|: there's https://github.com/chriskite/anemone and https://github.com/postmodern/spidr and another one I believe
<yorickpeterse> for spidering that is
<ljarvis> |jemc|: basic ones are really easy, custom ones (like ones yorickpeterse needs) just end up as ongoing projects that don't have a finish.. so it really depends on what you need
<yorickpeterse> yup, and they're quite fragile too
<ljarvis> multi-lingual date parser sounds interesting
<|jemc|> ljarvis: yeah, I'm glad it's not something I actually plan to maintain
<yorickpeterse> depending on your document queries a simple change can mess everything up
<yorickpeterse> ljarvis: basically the secret sauce of that is a YAML dictionary, and String#gsub :P
<ljarvis> |jemc|: yeah, the worst part is when content changes
<ljarvis> I wrote a big one a couple years ago
<|jemc|> yep, I imagine so
<postmodern> spidr is actually extremely customizable
<yorickpeterse> Worth mentioning is that we don't really do spidering, we always have an initial URL to bootstrap the process
<postmodern> well by default it will try to spider everything, but you can register custom callbacks for certain URLs/pages, and even enqueue custom links
<ljarvis> then spider from there :D
<yorickpeterse> basically it's: go to bootstrap URL -> go page 1 -> go to page 2 -> etc
<yorickpeterse> for which we typically try to use the pagination system, if present
<|jemc|> yorickpeterse: that's more along the lines of what I need to do
<postmodern> right, you can pre-populate the links queue in spidr
<postmodern> Spidr.start_at(...)
<yorickpeterse> lemme grab some real-world code
territorial is now known as robespierre
s1kx_ has quit [Read error: Connection reset by peer]
* yorickpeterse strips all secret sauce
<yorickpeterse> and docs
robespierre is now known as territorial
<yorickpeterse> too many docs
s1kx has joined #ruby-lang
<yorickpeterse> https://gist.github.com/YorickPeterse/16285619cd9870b9c128 so this is basically an example of what we use to iterate through pages of a profile on a review website
dagda1 has quit [Read error: Connection reset by peer]
<yorickpeterse> so a loop + some nokogiri stuff
<yorickpeterse> all CSS selectors (soon to be moved over to XPath) reside in a separate YAML file
dagda1 has joined #ruby-lang
<yorickpeterse> The end idea is that you can change the selectors without having to change the code, though with CSS this isn't always possible (hence I want to move over to XPath)
<yorickpeterse> for small stuff you can basically do what the #each method does, probably don't need the rest
<yorickpeterse> so tl;dr core concept is quite simple
dagda1 has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
<|jemc|> yorickpeterse: thanks for the gist; I'll start there
<yorickpeterse> ljarvis: regarding our date parser, we support English, Dutch, Spanish, French, Japanese, Russian and Cebuano (lol only one customer or so needed this)
<|jemc|> except with s/nokogiri/oga
<|jemc|> :)
<yorickpeterse> |jemc|: yeah that's also a goal over here
<|jemc|> I figured
<yorickpeterse> We use this setup for, I think 55 different websites
<yorickpeterse> though 41 of those are still handled using crappy code
<yorickpeterse> (initially outsourced, typical story)
momomomomo_ has joined #ruby-lang
<yorickpeterse> new framework + redoing 14 websites took a year or so
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
<yorickpeterse> of course those websites change in the mean time, so sometimes you have to partially start over
mcantor has joined #ruby-lang
elia has joined #ruby-lang
<yorickpeterse> Though we now have a setup that for the most part handles itself quite well
<mcantor> Is there an accepted best practice for handling optional debug stream output during minitest cases?
<mcantor> Should I just use Logger and an environment variable to tell it whether to print to STDOUT?
emmesswhy has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<yorickpeterse> mcantor: you could probably do something like `logger = Logger.new(STDERR); logger.level = Logger::UNKNOWN`
robbyoconnor has joined #ruby-lang
<yorickpeterse> then set level to Logger::DEBUG based on some env var
<yorickpeterse> |jemc|: we also have some stuff built-in for, uhh, evading the "internet police" :P
territorial has quit [Read error: Connection reset by peer]
<mcantor> yorickpeterse: Makes sense
stamina has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Client Quit]
<yorickpeterse> Fun trivia: this project used to be hell to work on, everybody hated it. Now it's probably one of the most convenient ones to work with
<yorickpeterse> also one of my most favourite ones, though websites renaming element classes gives me grey hairs at times
<mcantor> yorickpeterse: Why STDERR?
<yorickpeterse> mcantor: so you can redirect it if you want, with supressing test output
<yorickpeterse> unless that also goes to STDERR
<yorickpeterse> typically debug info should go to STDERR for those reasons
<mcantor> Oh, right. Thank you!
<mcantor> yorickpeterse: Will UNKNOWN squelch all output?
<yorickpeterse> mcantor: yes
<mcantor> Sweet.
<yorickpeterse> well unless you actually log a message with that level
<yorickpeterse> but it's the highest level available
bradcliffe has quit [Quit: Textual IRC Client: www.textualapp.com]
sarkyniin has joined #ruby-lang
dagda1 has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby-lang
<mcantor> yorickpeterse: Actually, what I'd really like to do is log to an intermediary stream by default, which will be blasted to STDERR _AFTER_ my suite is finished.
<mcantor> I find the "output interspersed among dots" approach to be terribly confusing.
mistym has joined #ruby-lang
<yorickpeterse> Oh right
<yorickpeterse> hmm
<yorickpeterse> You could just push strings into some array, then display that at the end of the test suite
dagda1 has quit [Client Quit]
<yorickpeterse> but I'm not sure if you can do so without abusing globals
<mcantor> What if I just passed a StringIO.new to Logger.new?
jbardin has quit [Quit: jbardin]
<yorickpeterse> euh, that could work too I think
<yorickpeterse> just make sure you rewind it before reading it
<mcantor> yorickpeterse: I was just starting to struggle with exactly that. Thanks again, you are an angel
symm- has quit [Ping timeout: 272 seconds]
<mcantor> Huh, weird. I'm still not getting any output when I do out.rewind; out.read
charliesome has quit [Quit: zzz]
dagda1 has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Quit: Leaving]
<mcantor> Ohh. It's probably because minitest is evaluating my test cases AFTER I've actually done the rewind/read.
albertogg has joined #ruby-lang
albertogg has quit [Client Quit]
<yorickpeterse> also in case of using StringIO you can leave the logger level at the default
<mcantor> Yeah... if I want to do it this way, I need a way of explicitly running code after minitest/autorun does its thing.
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
<mcantor> LOL... Minitest uses Kernel#at_exit, which executes provided blocks in FILO order
<mcantor> Ooh! Minitest also has an after_run() method though.
kalopsian has quit [Ping timeout: 244 seconds]
eikood has joined #ruby-lang
ht_ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
eikood has quit [Client Quit]
eikood has joined #ruby-lang
<mcantor> yorickpeterse: Thanks again!
stamina has joined #ruby-lang
_ht has quit [Ping timeout: 250 seconds]
<yorickpeterse> np
<yorickpeterse> whitequark: yo, do you know if you can sett precedence on an entire rule in racc, opposed to just a token?
<yorickpeterse> s/sett/set
<yorickpeterse> so something like `foo : bar | baz;` where you'd be able to set precedence of bar/baz
ta has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
solars has joined #ruby-lang
ta has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
stamina has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
territor_ has joined #ruby-lang
bin7me has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
s1kx has quit [Quit: Leaving]
jbardin has joined #ruby-lang
djbkd has joined #ruby-lang
GBrawl has quit [Quit: (null)]
<yorickpeterse> ugh, racc debug log files
<yorickpeterse> "how to stab yourself in the eye with a text file"
elia has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 265 seconds]
miqui has quit [Remote host closed the connection]
elia has joined #ruby-lang
<Noonipoony> Jruby is sweet.
<Noonipoony> no problem for dependency.
apeiros has quit []
emmesswhy has quit [Quit: This computer has gone to sleep]
ayonkhan has quit [Quit: (null)]
<Noonipoony> And I found the big one it is compatible with pure java code.
mistym has quit [Quit: Leaving...]
apeiros has joined #ruby-lang
mistym has joined #ruby-lang
ta has quit [Ping timeout: 260 seconds]
relix has joined #ruby-lang
mistym has quit [Client Quit]
Mellett68 has joined #ruby-lang
RobertBirnie has joined #ruby-lang
yfeldblum has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
kalopsian has joined #ruby-lang
sangwoojoo has joined #ruby-lang
Mellett68 has quit [Ping timeout: 265 seconds]
emmesswhy has joined #ruby-lang
Noonipoony has quit []
sangwoojoo has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
mcantor has quit [Ping timeout: 245 seconds]
NoNMaDDeN has quit [Ping timeout: 244 seconds]
sangwoojoo has joined #ruby-lang
emmesswhy has quit [Client Quit]
<sangwoojoo> *** NAMRPLY = #ruby-lang matti tpope FastJack blueness ljarvis FiXato tsou joshingly mjc_ fumduq pizzaops shaman42 headius erichmenge _mh_ rai jeaye _br_ KillerFox DEac- neurodam1ge jxport samkottler eban crazysim wmoxam flgr surrounder eam dostoyevsky ryotarai saltsa mnilsson xybre drbrain flori_ joevandyk yeltzooo badeball Kuukunen- oddmunds jtperreault bryanl epitron mame0 dhruvasagar yorickpeterse soahccc yugui_zzz verto_ zz_sMecKs djinni`
ta_ has joined #ruby-lang
<yorickpeterse> sangwoojoo: wat
<ljarvis> wot
<oddmunds> grrr
<sangwoojoo> Sorry (:
<yorickpeterse> haha
ta has quit [Read error: Connection reset by peer]
<sangwoojoo> I installed IRC in the sublime text, But chat commands does not seems work.
ur5us has joined #ruby-lang
Mellett68 has joined #ruby-lang
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
emmesswhy has joined #ruby-lang
tkuchiki has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
toretore has quit [Quit: This computer has gone to sleep]
klmlfl has quit [Ping timeout: 272 seconds]
sangwoojoo has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
q_leonetti has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
Asher has quit [Quit: Leaving.]
j4cknewt has joined #ruby-lang
kalopsian has quit [Ping timeout: 260 seconds]
elia has quit [Read error: Connection reset by peer]
ta_ has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
ta has joined #ruby-lang
eggie5 has joined #ruby-lang
elia has joined #ruby-lang
j4cknewt has joined #ruby-lang
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
<eggie5> I have few different data sources I need to import into my local database. Each source and more in the future will have different formats so one import script won't work. I"ll have to write an import script for each data source to insert into my DB. What design pattern is this?
GBrawl has joined #ruby-lang
<yorickpeterse> eggie5: "programming"
<yorickpeterse> There's no specific pattern for that as far as I'm aware of
<jhass> eggie5: you might want to make sure to define a common data structure in ruby and use a common writier to the database from that structure
<eggie5> yorickpeterse: it's like I'm writing an "adapter" for every datasource in order to map the attributes to the columns in my DB -- but I don't want to think it's an adapter pattern just b/c the word fits...
mistym has joined #ruby-lang
mcantor has joined #ruby-lang
Lewix has joined #ruby-lang
<jhass> eggie5: just write something, in good code patterns just appear and they just help communicating and reasoning about the code or to take the last step
<jhass> don't be afraid to not think about them at all at the design stage
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> especially for such a simple project
<|jemc|> eggie5: if you're looking for a 'standard' pattern name that describes what you're thinking: 'strategy pattern', perhaps?
<|jemc|> but if you already know how you want the thing to work, you're kind of past the point of needing a 'pattern', imo
MichD is now known as michd
eikood has quit [Quit: Leaving]
<eggie5> i jsut want a way to organize all these import scripts, so that they have some structure/pattern -- right now I just have a bunch of import scripts that parse the datasource and save to the DB, but there is not common interface to the DB when I feel there should be
quimrstorres has joined #ruby-lang
<|jemc|> eggie5, well, start looking for commonalities and refactoring into a common interface
<|jemc|> it sounds like you already know what you need to do
mcantor has quit [Ping timeout: 244 seconds]
<|jemc|> :)
eikood has joined #ruby-lang
<eggie5> |jemc|: i remember I used Strategy once for a calculator hmwk in school
solars has quit [Ping timeout: 245 seconds]
mcantor has joined #ruby-lang
elico has quit [Quit: Leaving.]
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby-lang
mcantor has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby-lang
GBrawl has quit [Quit: (null)]
charliesome has joined #ruby-lang
eikood has quit [Quit: Leaving]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CodeBunny has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
quimrstorres has quit [Remote host closed the connection]
zzach has quit [Ping timeout: 245 seconds]
zzach has joined #ruby-lang
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 255 seconds]
dagda1 has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
CodeBunny has left #ruby-lang ["CodeBunny needs a carrot. Be back later."]
CodeBunny has joined #ruby-lang
jimbach has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
<CodeBunny> Can someone help me with rake and getting an rspec task to build?
<CodeBunny> the first task... It doesn't know how to build. what am I doing wrong
btiefert has joined #ruby-lang
<womble> What's the error?
<CodeBunny> Don't know how to build task 'spec:airborne_rspec'
<CodeBunny> That is the very first task
<womble> What is the name of the file this code is in, in your project?
<CodeBunny> am I not requiring the right stuff?
<womble> Try changing line 9 to read RSpec::Core::RakeTask.new :airborne_rspec do |t|
<CodeBunny> zkill_json_rspec_rspec.rb
<womble> Aaaaah... are you requiring that file in your Rakefile?
<CodeBunny> Wait, why would I require the file I am trying to run in my rakefile
<CodeBunny> that defeats the purpose
jimbach_ has joined #ruby-lang
<womble> Well, how is rake supposed to know it should read task definitions from that file?
jimbach has quit [Ping timeout: 246 seconds]
<CodeBunny> it's not. that is the file it is supposed to run
<CodeBunny> The tasks are in the rake file.
<CodeBunny> Did you see the gist?
<CodeBunny> so the task defs are in the spec namespace
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
M3M0CooL has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
M3M0CooL has quit [Read error: Connection reset by peer]
brianpWins has quit [Ping timeout: 255 seconds]
mcantor has joined #ruby-lang
M3M0CooL has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
q_leonetti has quit [Quit: q_leonetti]
arBmind has joined #ruby-lang
SuMo_D has quit [Ping timeout: 272 seconds]
Asher has joined #ruby-lang
_lexjm has quit [Quit: Textual IRC Client: www.textualapp.com]
loinclot_ has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 265 seconds]
arBmind has quit [Ping timeout: 250 seconds]
klmlfl has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
klmlfl has joined #ruby-lang
<womble> Clearly we're not communicating well. It looks like I can't help you.
chris2 has quit [Ping timeout: 272 seconds]
masterkorp has joined #ruby-lang
<masterkorp> hello
chouhoul_ has quit [Remote host closed the connection]
<masterkorp> I am studying a ruby code project, basically i need to know when a specific method is called on the application
territor_ has quit [Remote host closed the connection]
<womble> masterkorp: Run it in a debugger and set a breakpoint, or else do a little printf debugging and add a `puts` statement at the beginning of the method of interest.
jimbach_ has quit [Remote host closed the connection]
<masterkorp> Is there any specific tool for that ?
<masterkorp> womble: can you point me to any documentation or a pratical example ?
mikecmpbll has quit [Quit: i've nodded off.]
mcantor has quit [Ping timeout: 256 seconds]
<womble> masterkorp: A specific tool for what? Adding a `puts` statement?
emmesswhy has joined #ruby-lang
shinnya has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
<CodeBunny> masterkorp: Add something in your method that writes out to the console at the point in your program that you are interested in
kalopsian has joined #ruby-lang
emmesswhy has quit [Client Quit]
chris2 has joined #ruby-lang
<masterkorp> i added a puts i never saw it
mcantor has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 265 seconds]
kalopsian has quit [Ping timeout: 272 seconds]
mark06 has joined #ruby-lang
mark06 has left #ruby-lang ["http://pidgin.renatosilva.me - Pidgin++"]
enebo has quit [Quit: enebo]
<womble> Then either the method never got called, or something's capturing stdout and redirecting it somewhere else.
<womble> The brutal solution to discover which it is is to drop an `exit 69` after the `puts`; if the app exits, then something's eating stdout. If it doesn't, then either the method's not being called, or something's catching `SystemExit` (and if they are, please report them for "re-education")
tylersmith has joined #ruby-lang
<masterkorp> thanks
<masterkorp> i know nothing about ruby so
<womble> You're certainly jumping in at the deep end.
|jemc| has quit [Quit: Page closed]
jbardin has quit [Quit: jbardin]
j4cknewt has quit [Remote host closed the connection]
diegovio1 is now known as diegoviola
j4cknewt has joined #ruby-lang
emmesswhy has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
j4cknewt has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
elia has quit [Client Quit]
emmesswhy has quit [Quit: This computer has gone to sleep]
rcvalle has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby-lang
Abuh has quit [Ping timeout: 265 seconds]
kalehv has joined #ruby-lang
M3M0CooL has quit []
banister is now known as banisterfiend
klmlfl has quit []
klmlfl has joined #ruby-lang
slawrence00 has quit [Ping timeout: 250 seconds]
klmlfl has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
pastuxso has quit [Quit: Connection closed for inactivity]
<masterkorp> attr_accessor :logger, :settings, :transport, :protocol
<masterkorp> what does this mean
<womble> It means you can call methods named `logger`, `settings`, etc on an instance of the class and get back the value of the instance variable with the same name, and you can set the instance variable with `logger = `, `settings =`, etc
<masterkorp> i see, just reading about it
<masterkorp> thanks !
emmesswhy has quit [Quit: This computer has gone to sleep]