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
tylersmith has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
sepp2k1 has joined #ruby-lang
* womble is extremely sad that rubygems doesn't take into account the already-activated gems when working out what version of a gem to activate
hramrach_ has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 272 seconds]
hramrach_ has joined #ruby-lang
jhass is now known as jhass|off
face has joined #ruby-lang
faces has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 240 seconds]
toertore has quit [Quit: This computer has gone to sleep]
shinnya has joined #ruby-lang
bruno- has joined #ruby-lang
bruno- is now known as Guest67952
skammer2 has joined #ruby-lang
pr0ton_ has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
Guest67952 has quit [Ping timeout: 244 seconds]
stardiviner has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
skammer2 has quit [Ping timeout: 260 seconds]
arooni-mobile has joined #ruby-lang
mistym has joined #ruby-lang
kgrz has quit [Ping timeout: 272 seconds]
tectonic has quit []
diegoviola has joined #ruby-lang
stardiviner has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 260 seconds]
pr0ton_ has quit [Quit: pr0ton_]
tkuchiki has joined #ruby-lang
pr0ton_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
stardiviner has quit [Ping timeout: 260 seconds]
itsraining has quit [Ping timeout: 260 seconds]
itsraining has joined #ruby-lang
faces has joined #ruby-lang
face has quit [Ping timeout: 240 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
enmand_ has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Ping timeout: 244 seconds]
danijoo has joined #ruby-lang
priodev has quit [Ping timeout: 240 seconds]
priodev has joined #ruby-lang
stardiviner has joined #ruby-lang
jgpawletko has joined #ruby-lang
arooni-mobile has joined #ruby-lang
enmand_ has quit [Quit: Textual IRC Client: www.textualapp.com]
arBmind1 has joined #ruby-lang
bruno- has joined #ruby-lang
arBmind has quit [Ping timeout: 260 seconds]
skammer2 has joined #ruby-lang
stevenkuhn has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
mistym has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby-lang
bruno- has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
nisstyre has joined #ruby-lang
nisstyre has quit [Changing host]
skammer2 has quit [Ping timeout: 272 seconds]
shinnya has joined #ruby-lang
stevenkuhn has quit [Quit: stevenkuhn]
miqui has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
arooni-mobile has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
cleopatra has quit [Ping timeout: 260 seconds]
imkmf has quit [Ping timeout: 244 seconds]
sepp2k1 has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
imkmf has joined #ruby-lang
stardiviner has quit [Ping timeout: 272 seconds]
emmesswhy has joined #ruby-lang
itsraining has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
migbar has quit [Remote host closed the connection]
migbar has joined #ruby-lang
stardiviner has joined #ruby-lang
twobit has quit [Ping timeout: 260 seconds]
twobit has joined #ruby-lang
migbar has quit [Ping timeout: 260 seconds]
tobiassvn has quit [Ping timeout: 260 seconds]
red_menace has quit [Quit: peer reset by connection]
karamazov has quit [Remote host closed the connection]
imkmf has quit [Ping timeout: 272 seconds]
oleo__ has joined #ruby-lang
skammer2 has joined #ruby-lang
oleo is now known as Guest6629
Guest6629 has quit [Ping timeout: 260 seconds]
migbar has joined #ruby-lang
skammer2 has quit [Ping timeout: 245 seconds]
<oddmunds> -
<oddmunds> j
<oddmunds> ho ho ho
imkmf has joined #ruby-lang
elico has joined #ruby-lang
Lewix has joined #ruby-lang
gix has quit [Ping timeout: 260 seconds]
migbar has quit [Ping timeout: 260 seconds]
gix has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snoopybbt has quit [Ping timeout: 245 seconds]
pr0ton_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 244 seconds]
kgrz has joined #ruby-lang
Xney has joined #ruby-lang
wallerdev has joined #ruby-lang
migbar has joined #ruby-lang
migbar has quit [Read error: Connection reset by peer]
migbar has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
bsvineeth has joined #ruby-lang
migbar has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby-lang
RobertBirnie has joined #ruby-lang
bruno- has joined #ruby-lang
skammer2 has joined #ruby-lang
migbar has joined #ruby-lang
bruno- has quit [Ping timeout: 260 seconds]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
skammer2 has quit [Ping timeout: 245 seconds]
migbar has quit [Ping timeout: 258 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
bsvineeth has quit [Ping timeout: 272 seconds]
bsvineeth has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
skade has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 272 seconds]
kgrz has quit [Remote host closed the connection]
Bwild_ has quit [Quit: leaving]
Bwild has joined #ruby-lang
sharpmachine has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
pr0ton_ has quit [Quit: pr0ton_]
bsvineeth has quit [Ping timeout: 245 seconds]
sharpmachine has quit [Remote host closed the connection]
pr0ton_ has joined #ruby-lang
skammer2 has joined #ruby-lang
migbar has joined #ruby-lang
stevenkuhn has joined #ruby-lang
stevenkuhn has quit [Client Quit]
diegoviola has quit [Remote host closed the connection]
skammer2 has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
migbar has quit [Ping timeout: 272 seconds]
Xney has quit []
kgrz has joined #ruby-lang
imkmf has quit [Ping timeout: 245 seconds]
kyb3r_ has joined #ruby-lang
ohsix is now known as OHSIX
OHSIX is now known as ohsix
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
_ht has joined #ruby-lang
x0f has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
|jemc| has quit [Ping timeout: 272 seconds]
bsvineeth has joined #ruby-lang
skammer2 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
stevenkuhn has joined #ruby-lang
apeiros has joined #ruby-lang
migbar has joined #ruby-lang
skammer2 has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 258 seconds]
migbar has quit [Ping timeout: 260 seconds]
stevenkuhn has quit [Quit: stevenkuhn]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
tectonic has quit []
ur5us has joined #ruby-lang
fusillicode has joined #ruby-lang
fusillicode1 has joined #ruby-lang
RUBYLANG30 has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<RUBYLANG30> Halo how common to setup rails server using chef?
ur5us has joined #ruby-lang
fusillicode has quit [Ping timeout: 244 seconds]
kimegede has joined #ruby-lang
<RUBYLANG30> Halo is anybody using chef to setup rails server?
RUBYLANG30 has quit [Quit: Page closed]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Ping timeout: 246 seconds]
tylersmith has quit [Remote host closed the connection]
solars has joined #ruby-lang
kwd has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
pr0ton_ has quit [Quit: pr0ton_]
francisfish has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby-lang
skammer2 has joined #ruby-lang
goatish_mound has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
migbar has joined #ruby-lang
bruno- has quit [Ping timeout: 245 seconds]
Iskarlar has joined #ruby-lang
skammer2 has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby-lang
wallerdev has joined #ruby-lang
migbar has quit [Ping timeout: 246 seconds]
relix has joined #ruby-lang
apeiros has joined #ruby-lang
greenarrow has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maloik_> I work at a hosting company that does so, but I doubt I'll be able to help as that's not exactly what I do here
<maloik_> oh he's left..
zarubin has quit []
ikrima has joined #ruby-lang
Iskarlar has joined #ruby-lang
yatish27 has joined #ruby-lang
AKASkip has joined #ruby-lang
yatish27 has quit [Ping timeout: 272 seconds]
matp has quit [Quit: ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.0]
francisfish has joined #ruby-lang
Newbie0086 has joined #ruby-lang
riffraff has joined #ruby-lang
chussenot has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
skammer2 has joined #ruby-lang
ta has joined #ruby-lang
riffraff has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
robbyoconnor has quit [Quit: Konversation terminated!]
migbar has joined #ruby-lang
mikecmpbll has joined #ruby-lang
robbyoconnor has joined #ruby-lang
skammer2 has quit [Ping timeout: 240 seconds]
migbar has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
elia has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
Paul_McFreely has joined #ruby-lang
charliesome has quit [Quit: zzz]
j4cknewt has joined #ruby-lang
Ghis_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
michd is now known as MichD
andrewvo1 has joined #ruby-lang
andrewvo1 has left #ruby-lang ["WeeChat 0.4.0"]
tobiassvn has joined #ruby-lang
fumduq has joined #ruby-lang
fumduq has quit [Client Quit]
fumduq has joined #ruby-lang
danijoo_ has quit [Ping timeout: 250 seconds]
marr has joined #ruby-lang
danijoo has joined #ruby-lang
bruno- has joined #ruby-lang
skammer2 has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
migbar has joined #ruby-lang
bruno- has quit [Ping timeout: 258 seconds]
skammer2 has quit [Ping timeout: 240 seconds]
mlangenberg has joined #ruby-lang
qba73 has joined #ruby-lang
migbar has quit [Ping timeout: 258 seconds]
<mlangenberg> In RSpec passing a block that passes to a pending spec outputs ‘FIXED’. Is there an equivalent for MiniTest?
<mlangenberg> Because ‘skip’, just skips without running the test.
arBmind has joined #ruby-lang
workmad3 has joined #ruby-lang
<maloik_> I don't get your question mlangenberg... you want to run the test, but you don't care about the result, is that it?
<mlangenberg> Yes, but I do care if it passes in the future.
<maloik_> personally I'd just skip it and try it every once in a while
<maloik_> something else you can do is remote the assertion and just output the result of the check
<maloik_> as in, to use rspec terms, `expect(foo).to eq(bar)` becomes `puts foo == bar` and the test will pass but it'll still display what you want
<maloik_> s/remote/remove/
ur5us has joined #ruby-lang
bsvineeth has joined #ruby-lang
<mlangenberg> maloik_: well I’ve got a test that fails becaue of a Rails bug. I added a workaround, but would like to keep the pending (=FAIL) test until a newer Rails version fixes the bug.
<mlangenberg> In RSpec I would just do: pending { expect(foo).to eq(bar) }
<mlangenberg> And when foo == bar, it will print FIXED
<mlangenberg> In MiniTest, skip actually skips these tests.
<mlangenberg> maloik_: I could add this helper: https://gist.github.com/mlangenberg/03a80900e73285b18fab
<maloik_> interesting helper indeed
<maloik_> didn't even know about that pending block actually
<maloik_> the bug actually raises an exception?
<mlangenberg> Oh no, assert does not raise
<mlangenberg> hmmm
<mlangenberg> Just want to know if assertions fail within a block
<maloik_> maybe you can check what the return value of the yield is
moepp has joined #ruby-lang
Newbie0086 has quit [Quit: 离开]
face has joined #ruby-lang
skammer2 has joined #ruby-lang
faces has quit [Ping timeout: 260 seconds]
<apeiros> mlangenberg: should not be too difficult to emulate that in minitest
<mlangenberg> Yeah, checking the return value of `yield` seems to be working for now.
<mlangenberg> Let’s see if I can print first part of a backtrace so I actually see what was fixed.
<mlangenberg> apeiros: first attempt: https://gist.github.com/mlangenberg/03a80900e73285b18fab
stamina has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
<yorickpeterse> morning
<maloik_> o/
charliesome has joined #ruby-lang
heavyhorse has joined #ruby-lang
shubham__ has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
heavyhorse has quit [Client Quit]
jhass|off is now known as jhass
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
migbar has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 260 seconds]
francisfish has quit []
j4cknewt has quit [Ping timeout: 260 seconds]
symm- has joined #ruby-lang
migbar has quit [Ping timeout: 246 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
j4cknewt has joined #ruby-lang
jasiek_ has left #ruby-lang [#ruby-lang]
Lewix has quit [Remote host closed the connection]
DEac- has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
mlangenberg has quit [Quit: mlangenberg]
hellangel7 has joined #ruby-lang
chills42 has joined #ruby-lang
stardiviner has quit [Ping timeout: 245 seconds]
arBmind has quit [Ping timeout: 272 seconds]
DEac- has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
bsvineeth has joined #ruby-lang
bruno- has joined #ruby-lang
allomov has joined #ruby-lang
bsvineeth has quit [Ping timeout: 244 seconds]
chussenot has quit [Quit: chussenot]
migbar has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.3]
stamina has joined #ruby-lang
migbar has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
mlangenberg has joined #ruby-lang
charliesome has joined #ruby-lang
dangerousdave has joined #ruby-lang
fusillicode1 has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
migbar has joined #ruby-lang
chussenot has joined #ruby-lang
chussenot_ has joined #ruby-lang
chussenot has quit [Ping timeout: 272 seconds]
chussenot_ is now known as chussenot
[spoiler] has joined #ruby-lang
<yorickpeterse> hm, our intern now also has a mechanical keyboard
<yorickpeterse> that makes 3 out of 4 in this room
<yorickpeterse> CLICK CLICK CLICK CLICK CLICK CLICK CLICK
<yorickpeterse> cherry blues, cherry greens and me on topre
<yorickpeterse> prrft cherry peasantry
<yorickpeterse> errr s/blues/reds actually
tkuchiki has quit [Remote host closed the connection]
ldnunes has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
dangerousdave has quit [Client Quit]
arBmind has quit [Ping timeout: 245 seconds]
bsvineeth has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
Iskarlar has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
greenarrow has quit [Quit: 500]
elia has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby-lang
greenarrow has joined #ruby-lang
chussenot has quit [Quit: chussenot]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chussenot has joined #ruby-lang
Iskarlar has joined #ruby-lang
bruno- has quit [Ping timeout: 245 seconds]
karamazov has joined #ruby-lang
Iskarlar has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
toertore has joined #ruby-lang
yalue has joined #ruby-lang
spastorino has joined #ruby-lang
chussenot has quit [Quit: chussenot]
arBmind has joined #ruby-lang
yfeldblum has joined #ruby-lang
danrage77 has joined #ruby-lang
j4cknewt has joined #ruby-lang
chussenot has joined #ruby-lang
chussenot has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
chussenot has joined #ruby-lang
chussenot has quit [Client Quit]
tkuchiki has joined #ruby-lang
thomasxie has joined #ruby-lang
banister has quit [Read error: Connection reset by peer]
banister_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
skammer3 has joined #ruby-lang
skammer2 has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
Ghis_ has quit [Ping timeout: 260 seconds]
Forgetful_Lion has joined #ruby-lang
elia has joined #ruby-lang
<maloik_> topre?
<maloik_> whats topre
mkaesz has joined #ruby-lang
dangerousdave has joined #ruby-lang
<yorickpeterse> switch type
<yorickpeterse> basically rubber dome + mechanical
elia has quit [Quit: Computer has gone to sleep.]
yatish27 has joined #ruby-lang
stef_204 has joined #ruby-lang
elia has joined #ruby-lang
symm- has quit [Ping timeout: 272 seconds]
miqui has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkaesz has quit [Ping timeout: 246 seconds]
symm- has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
mlangenberg has left #ruby-lang [#ruby-lang]
kgrz has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 245 seconds]
hagabaka has quit [Ping timeout: 246 seconds]
kwd has quit [Quit: Sleeping now. ZZZzzz…]
hagabaka has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oleo has joined #ruby-lang
sepp2k has joined #ruby-lang
yfeldblum has joined #ruby-lang
CorrosiveOne has joined #ruby-lang
relix has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
enkristoffer has joined #ruby-lang
arooni-mobile has joined #ruby-lang
joast has quit [Quit: Leaving.]
charliesome has quit [Quit: zzz]
chills42 has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ducklobster has joined #ruby-lang
yfeldblum has joined #ruby-lang
klmlfl has joined #ruby-lang
cmhobbs_ has joined #ruby-lang
Zurav has joined #ruby-lang
cmhobbs_ has quit [Client Quit]
cmhobbs_ has joined #ruby-lang
<[spoiler]> Hmm
yfeldblum has quit [Ping timeout: 246 seconds]
cmhobbs_ has quit [Client Quit]
<[spoiler]> yorickpeterse, what's the benefits of using a mechanical keyboard? A colleague at work lent me his (he's a sys. admin) to give it a test-run, but idk; I didn't see a big difference, apart from the fact it generated more noise
cmhobbs has joined #ruby-lang
<[spoiler]> Apparently it's easier on the fingers, but I didn't really feel that much of a difference
<Zurav> I'm receiving a NoMethodError ... undefined method `bytesize' when attempting to call .each on a custom class in my Sinatra app. I am able to do this just fine in irb, but when it executes within the app, nada
<[spoiler]> Zurav, example of your IRB code and the code you're using in Sinatra would help
<Zurav> alright, back with that soon
elico has quit [Remote host closed the connection]
<[spoiler]> Zurav, of the top of my head, I'd say your method isn't returning a string, and Sinatra expects once
<[spoiler]> try adding `return "I beg you to work"` at the end of the method (or just omit the return if you're a purist)
<yorickpeterse> [spoiler]: depending on the switch type, easier on the fingers, more pleasant feel
workmad3 has joined #ruby-lang
<yorickpeterse> With rubber domes you, especially once they wear off, you might have to start typing with your fists at some point
ta has quit [Remote host closed the connection]
<yorickpeterse> mechanicals typically only take a little bit of force for the keys to be pressed down
<yorickpeterse> I'm still not sure if I like Topre that much though, they're just a tiny bit too stiff
<Zurav> spoiler, you were correct
<[spoiler]> yorickpeterse, oh I'm aware that rubber ones become "harder" eventually, yeah.
<Zurav> returning a string solved it
<yorickpeterse> if you have cherry blues/reds you basically just look at the keys and they press themselves
<[spoiler]> yorickpeterse, LOL
dangerousdave has joined #ruby-lang
<[spoiler]> yorickpeterse, I am a clumsy typist, maybe it's a good thing I need to apply a bit of force to press my keys :P
<[spoiler]> Zurav, yay! :D
_elia has joined #ruby-lang
<[spoiler]> Zurav, if it's something inside of a `<insert http method name here> 'route' do` block, then it needs to return a string
CorrosiveOne has quit [Quit: I was drunk last time I set this message]
<[spoiler]> Why, you might ask thyself, because Rack said so, and we don't question Rack's methodology. :-)
enkristoffer has quit [Quit: ❤]
Zurav has quit [Ping timeout: 246 seconds]
nathanstitt has joined #ruby-lang
elia has quit [Ping timeout: 272 seconds]
joast has joined #ruby-lang
charliesome has joined #ruby-lang
loincloth has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
<yorickpeterse> [spoiler]: actually, less force would make you type easier
<yorickpeterse> since you can much more easily move your fingers around
<[spoiler]> Hmm. I might get one to test it out, I guess
<[spoiler]> There's no harm in trying
<yorickpeterse> I have this beast http://elitekeyboards.com/products.php?sub=pfu_keyboards,hhkbpro2&pid=pdkb400bn
<yorickpeterse> It's commonly referred to here as "The keyboard"
<yorickpeterse> but now I'm surrounded by cherry MX peasants
<[spoiler]> Why the fuck is it not printed omg
<yorickpeterse> because I type blind
<yorickpeterse> I actually can't type some of my passwords if I look at the keys, I fuck it up
<[spoiler]> I type blind too, but idk it's still weird :(
<yorickpeterse> I had "Das Keyboard" in the past, but it's too big and the build quality is pretty mediocre
<yorickpeterse> oh hm, they have a new one
migbar has quit []
<yorickpeterse> holy shit dat volume button
<yorickpeterse> http://www.daskeyboard.com/model-s-ultimate/ I had this one
<yorickpeterse> it's too wide, hurts my right sholder
<yorickpeterse> I ordered http://elitekeyboards.com/products.php?sub=keyed_up_labs,tenkeyless&pid=es87u_cl_bbb_al as a replacement
<yorickpeterse> Yes, I am a keyboard nerd
<yorickpeterse> (that one is for my gaming Windoze computer)
<yorickpeterse> That doesn't load for me :/
<yorickpeterse> ah now it does
<yorickpeterse> Hm, browns
<yorickpeterse> never tried those
<yorickpeterse> so many MX switches
<yorickpeterse> Clears, blue, red, black, green, brown, probably more
<oddmunds> the browns have a clicky feel but not a clicky sound
<workmad3> I think my kb has browns
<workmad3> but I think they've also aged a bit and some keys are a little clicky
<yorickpeterse> oddmunds: this one doesn't come with dip switches right?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
banister_ has quit [Read error: Connection reset by peer]
<yorickpeterse> ha
<yorickpeterse> Wait, those are actually mechanical?
Iskarlar has joined #ruby-lang
banister has joined #ruby-lang
<oddmunds> yorickpeterse: not, sure
wallerdev has joined #ruby-lang
<yorickpeterse> Hm, the Gold touch ones I can find look like rubber dome peasantry to me
tkuchiki has joined #ruby-lang
Iskarlar has quit [Client Quit]
<yorickpeterse> all hail the mighty mechanical keyboard overlords o7
* yorickpeterse has no emoji for that
AKASkip has quit [Ping timeout: 246 seconds]
<oddmunds> o7
momomomomo has joined #ruby-lang
whippythellama has joined #ruby-lang
<oddmunds> i used to use a microsoft ergonomical keyboard. i didn't like the keys, but i liked the layout
<oddmunds> (i kinda want one of these https://www.kinesis-ergo.com/shop/advantage-for-pc-mac/)
<yorickpeterse> Never tried those layouts. The annoying thing with these keyboards is that you can never test drive them
<yorickpeterse> Either you buy them, and risk not liking them, or you don't
<yorickpeterse> there's no shop (at least here) where you can just mash on them before deciding
wallerdev has quit [Quit: wallerdev]
<yorickpeterse> ^ startup idea right there
<oddmunds> yeah
<oddmunds> the weird layout ones take some time to get used to as well
<yorickpeterse> "Show HN: Keyboard.ly: Try mechanical keyboards before buying. Only in San Francisco"
<workmad3> yorickpeterse: hmmm, could be rubber dome... thought they were cherry browns, but could easily be mistaken
<yorickpeterse> workmad3: well, pull a cap and find out!
<workmad3> yorickpeterse: I did get to try before I bought though... knew someone with the kb, so tried it out a bit before deciding it was the way to go
<yorickpeterse> Ah, I just had to gamble for it :/
<workmad3> yorickpeterse: I tried... it's a stupidly difficult kb to find info out about :P
bruno- has joined #ruby-lang
tenderlove has joined #ruby-lang
<yorickpeterse> bbl, I have some weird animal themed meeting
<yorickpeterse> apparently I'm in "Team Orca"
<yorickpeterse> I go on holidays for two weeks and all kinds of weird shit happens
Lewix has joined #ruby-lang
<workmad3> fun
arooni-mobile has quit [Ping timeout: 246 seconds]
<oddmunds> if you're serious about your keyboarding only this will do http://youtu.be/9yg3s77nAMQ
sepp2k has quit [Quit: Leaving.]
chills42 has joined #ruby-lang
<maloik_> wow
nivanson has joined #ruby-lang
<maloik_> that's... I don't event.. what?
nivanson has quit [Remote host closed the connection]
nivanson has joined #ruby-lang
bruno- has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
koderok has joined #ruby-lang
yfeldblum has joined #ruby-lang
tkuchiki has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: Leaving]
enkristoffer has joined #ruby-lang
gjaldon has joined #ruby-lang
momomomomo has quit [Ping timeout: 240 seconds]
nivanson has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
nivanson has joined #ruby-lang
momomomomo has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
elico has joined #ruby-lang
mkaesz has joined #ruby-lang
ruby-lang265 has joined #ruby-lang
ruby-lang265 has quit [Client Quit]
|jemc| has joined #ruby-lang
skammer3 has quit [Ping timeout: 260 seconds]
dwknoxy has joined #ruby-lang
enkristoffer has quit [Quit: ❤]
solars has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
nivanson_ has joined #ruby-lang
nivanson has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
chills42 has joined #ruby-lang
mkaesz has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby-lang
yfeldblum has joined #ruby-lang
koderok has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Ping timeout: 260 seconds]
oleo__ has joined #ruby-lang
oleo is now known as Guest99867
yfeldblum has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby-lang
Guest99867 has quit [Ping timeout: 246 seconds]
symm- has quit [Ping timeout: 260 seconds]
__butch__ has joined #ruby-lang
<yorickpeterse> bah, Nokogiri doesn't take a Enumerator
<yorickpeterse> only takes objects that have #read :/
nivanson_ has quit []
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 260 seconds]
yatish27 has joined #ruby-lang
wallerdev has joined #ruby-lang
amerine has joined #ruby-lang
yatish27_ has quit [Ping timeout: 245 seconds]
oleo__ has quit [Quit: Verlassend]
symm- has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
thomasxie has quit [Ping timeout: 272 seconds]
yatish27 has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo__ is now known as oleo
skammer3 has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
<yorickpeterse> well, replacing Nokogiri with Oga in this one tiny app I'm working on only slows down the tests by about 200ms
<yorickpeterse> notbad.jpg
<yorickpeterse> (that's not a joke, I expected way higher timings)
AngryEgret_afk is now known as AngryEgret_
zz_anildigital is now known as anildigital
rippa has joined #ruby-lang
EvilJStoker has quit [Ping timeout: 260 seconds]
EvilJStoker has joined #ruby-lang
yatish27_ has joined #ruby-lang
greenarrow has quit [Quit: 500]
AngryEgret_ is now known as AngryEgret
RobertBirnie has joined #ruby-lang
yatish27 has quit [Ping timeout: 260 seconds]
yatish27_ has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
itsraining has joined #ruby-lang
dangerousdave has joined #ruby-lang
webhat has joined #ruby-lang
momomomomo has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
momomomomo has joined #ruby-lang
imkmf has joined #ruby-lang
imkmf_ has joined #ruby-lang
jbardin has joined #ruby-lang
amsi has joined #ruby-lang
anildigital has left #ruby-lang [#ruby-lang]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby-lang
sharpmachine has joined #ruby-lang
hahuang65 has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has quit [Ping timeout: 246 seconds]
dangerousdave has joined #ruby-lang
momomomomo has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
teleporting_cat has joined #ruby-lang
ta has joined #ruby-lang
wallerdev_ has joined #ruby-lang
tylersmith has joined #ruby-lang
omosoj has joined #ruby-lang
Paul_McFreely_ has joined #ruby-lang
qba73 has quit []
mnngfltg has joined #ruby-lang
gregf_ has quit [Ping timeout: 245 seconds]
gregf_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
Paul_McFreely has quit [Ping timeout: 272 seconds]
Paul_McFreely_ has quit [Ping timeout: 272 seconds]
_lexjm has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
mkaesz has joined #ruby-lang
tkuchiki has joined #ruby-lang
memocool has joined #ruby-lang
wallerdev_ has quit [Quit: wallerdev_]
wallerdev_ has joined #ruby-lang
tpope_ is now known as tpope
klmlfl has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
SuMo_D has joined #ruby-lang
yfeldblum has joined #ruby-lang
klmlfl has joined #ruby-lang
bin7me has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
Miphix has joined #ruby-lang
hahuang65 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.0]
memocool has quit []
_elia has quit [Remote host closed the connection]
gjaldon has quit []
centrx has joined #ruby-lang
elia has joined #ruby-lang
mnngfltg has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
Lewix has joined #ruby-lang
AKASkip has joined #ruby-lang
loincloth has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 258 seconds]
ledestin_ has joined #ruby-lang
chris2 has quit [Ping timeout: 260 seconds]
ledestin has quit [Ping timeout: 272 seconds]
ledestin_ is now known as ledestin
kimegede has quit [Quit: Leaving...]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
arBmind has joined #ruby-lang
snoopybbt has joined #ruby-lang
mskaesz has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sepp2k has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
teleporting_cat has quit [Remote host closed the connection]
mkaesz has quit [Ping timeout: 272 seconds]
allomov has joined #ruby-lang
<Lewix> hi
arBmind has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
klmlfl has joined #ruby-lang
relix has joined #ruby-lang
sarkyniin has joined #ruby-lang
bradcliffe has joined #ruby-lang
chris2 has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
mskaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
ruby-lang522 has joined #ruby-lang
<ruby-lang522> Hello :D
chills42 has joined #ruby-lang
<jhass> hi
kgrz has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
ruby-lang522 has quit [Ping timeout: 246 seconds]
karamazov has joined #ruby-lang
centrx has joined #ruby-lang
arooni-mobile has joined #ruby-lang
bantic has joined #ruby-lang
mkaesz has quit [Ping timeout: 240 seconds]
arooni-mobile has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
moepp has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby-lang
<[spoiler]> hai
yfeldblum has joined #ruby-lang
rcvalle has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
arBmind has quit [Ping timeout: 272 seconds]
elia has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
bruno- has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
yfeldblu_ has quit [Ping timeout: 258 seconds]
moepp has joined #ruby-lang
omosoj has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
ikrima has quit [Ping timeout: 245 seconds]
momomomomo has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
mustmodify has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
hakunin has quit []
mkaesz has quit [Read error: Connection reset by peer]
mskaesz has joined #ruby-lang
<mustmodify> This question is half-rails and half-ruby... but when I ask it on the rails channel I get crickets. So for now, let me see if I can get help understanding the Ruby part. In Rails, if I create a scope like this: `class User; scope :active, -> { where(active: 'true')}; end`, that somehow is the same as User.scope.where(active: 'true') ... meaning that inside that lambda, 'where' is an in-scope message. How do I take a lambda and say "OK apply that with
<mustmodify> My ultimate goal is to have ( using the example) a UserSearch class that builds an array of lambdas, applies each and returns the resulting scope.
yatish27 has quit [Ping timeout: 260 seconds]
amsi has quit [Ping timeout: 272 seconds]
<jhass> I think your message got cut off after "Ok apply that with
<[spoiler]> Yep
<[spoiler]> same here
<mustmodify> jhass: I really wish my client would tell me when that was going to happen.
<[spoiler]> I thought it might've continued into the next line, but it made no sense
<mustmodify> "OK apply that with this scope"?
<jhass> can you maybe make some pseudo code? I'm not sure I follow
<[spoiler]> I'm not sure how you'd build an array of lambdas, unless you eval'd it
<jhass> [-> { }, -> { }] ?
<[spoiler]> but that's a literal
jds has joined #ruby-lang
<mustmodify> sure, one moment.
jkyle has joined #ruby-lang
<jkyle> I have some rake tasks exclusively for development. They use some gems that are also only used in development. When we deploy, other rake tasks get run on the destination server and fail since the development gems are being required, but not used. What can I do to avoid this error while not installing development gems on a production server?
<mustmodify> this is something like what I do now, and something like what I want to do.
<jhass> jkyle: easiest would be probably to make a dev_env task that does the requires and add it as a prereq to the others
<mustmodify> updated to add parameter to goal.rb
<jhass> mustmodify: uh, term isn't user input?
<mustmodify> jhass: I'm not sure what you're asking, but 'term' comes from the user.
tkuchiki has joined #ruby-lang
<mustmodify> In the controller, @users = UserSearch.new( search_params ).results
<[spoiler]> mustmodify, but your code is subjectable to sql injections like this
<jhass> mustmodify: nice, where is it hosted? I'd like to take it down now
<[spoiler]> Lmao
<mustmodify> jhass: I'm aware of SQL injection. We sanitize the input. This just an example.
<jkyle> jhass: sounds like a plan!
<mustmodify> I mean, there is some sanitization in there. I'm sure it's incomplete.
<jhass> mustmodify: it is until you use bind variables
<mustmodify> tell me about that.
<[spoiler]> mustmodify, basically... why not just make one lambda? I'm not entirely sure what you're trying to achieve here
<jhass> anyway, regarding your actual question, why not simply built a relation?
<jhass> def conditions(scope); scope.where(...).where(...).where(...)
<mustmodify> jhass: That's a good question. I've done that before... there must be some reason I'm not doing it here.
tkuchiki has quit [Ping timeout: 272 seconds]
<mustmodify> hm...
<[spoiler]> What is the reason? :-)
<mustmodify> yeah, that's a good question.
<mustmodify> Well, I like the idea of creating an array and applying it better, but that's not enough to justify doing that. :P
<[spoiler]> jhass's (check out my paresltongue) suggestion is pretty solid
<mustmodify> yep, that's what I'll do.
<[spoiler]> mustmodify, you could create the array and iterate over it, I guess
snoopybbt has quit [Ping timeout: 245 seconds]
<jhass> I mean you could do something like conditions.inject(User) {|scope, condition| scope.instance_eval(&condition) }
<mustmodify> spoiler: it's not creating the array that causes the problem... it's that I don't know how to apply that array in the right scope. But for now, I'll go with jhauss's's's's suggestion.
<jhass> but it seems totally overkill here
mkaesz has joined #ruby-lang
mskaesz has quit [Read error: Connection reset by peer]
banister has quit [Ping timeout: 272 seconds]
<mustmodify> jhass: sure.
yatish27 has joined #ruby-lang
banister has joined #ruby-lang
klmlfl has joined #ruby-lang
<mustmodify> My tests already include example of SQL injection and I'm confident that it's not vulnerable, but want to get your feedback anyway... what attack would you use on the (newly updated) third example, why_not_this.rb ?
dangerousdave has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass> that's exactly what I meant with bind variables
Technodrome has joined #ruby-lang
<Technodrome> why can’t you do Object.puts(‘hey there’) ?
<Technodrome> isn’t it just a class method and the Object classi s imported already?
<[spoiler]> because Object references a class
<jhass> Technodrome: puts is a module function on Kernel as well as a instance method on IO
<jhass> it's not a class method on Object but Object does include Kernel
mustmodify has left #ruby-lang [#ruby-lang]
mustmodify has joined #ruby-lang
<Technodrome> so why does Object.send work for it?
<Technodrome> I always wondered thsi
<jhass> because it's a private method in Kernel
<jhass> compare to public_send
<jhass> a private method is a method that can't be called with an explicit receiver
<Technodrome> yes i get that, but how does the send work at the Object class level?
<Technodrome> yes
<Technodrome> Kernel.puts("hey")
<Technodrome> this works fine
<jhass> yes, as said it's a module_function on Kernel
<jhass> module_function copies a method as a class method
<Technodrome> what is module_function ? the name of the C function to create it?
<jhass> there, being private is even a property of being a module_function
<jhass> that it is defined at all on Object is because Object.class == Class < Module < Object < Kernel
ledestin_ has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
imkmf_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ledestin has quit [Ping timeout: 272 seconds]
ledestin_ is now known as ledestin
imkmf_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
bruno- has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
<yorickpeterse> hail
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<[spoiler]> nyancat
yatish27 has quit [Read error: Connection reset by peer]
<yorickpeterse> wat
yatish27 has joined #ruby-lang
IPGlider has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
jbardin has quit [Quit: jbardin]
Swooop has joined #ruby-lang
bradcliffe has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yatish27 has joined #ruby-lang
j4cknewt has joined #ruby-lang
[spoiler] has quit [Remote host closed the connection]
bradcliffe has joined #ruby-lang
_ht has quit [Read error: Connection reset by peer]
wkoch has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
<yorickpeterse> https://www.youtube.com/watch?v=lKXe3HUG2l4 still watching this, amazing so far
<yorickpeterse> <3 Joe Armstrong
yfeldblum has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby-lang
<Technodrome> jhass: so because Class inherits from Kernel , its availble in an instance of Object?
<jhass> Technodrome: no
kimegede has joined #ruby-lang
<jhass> Technodrome: Object.new is an instance of class Object, but Object is an instance of class Class. Class is a subclass of Module and Module is subclass of Object. Object does _include_ Kernel
amsi has joined #ruby-lang
<jhass> yes, that's self-referential at this point in the object model
kimegede has quit [Client Quit]
gnufied has quit [Ping timeout: 260 seconds]
tdy has quit [Remote host closed the connection]
DEac- has quit [Quit: Lost terminal]
DEac- has joined #ruby-lang
Xney has joined #ruby-lang
lcdhoffman has joined #ruby-lang
kimegede has joined #ruby-lang
gnufied has joined #ruby-lang
moepp has quit [Ping timeout: 250 seconds]
imkmf_ has quit [Ping timeout: 245 seconds]
imkmf has quit [Ping timeout: 244 seconds]
omosoj has joined #ruby-lang
kimegede has quit [Quit: Leaving...]
emmesswhy has joined #ruby-lang
fusillicode has quit [Quit: Leaving.]
fusillicode has joined #ruby-lang
wkoch has quit [Quit: wkoch]
wkoch has joined #ruby-lang
miqui has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
imkmf has joined #ruby-lang
imkmf_ has joined #ruby-lang
Squarepy has joined #ruby-lang
imkmf__ has joined #ruby-lang
Squarepy has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
imkmf_ has quit [Ping timeout: 272 seconds]
imkmf_ has joined #ruby-lang
imkmf has quit [Ping timeout: 240 seconds]
bradcliffe has quit [Remote host closed the connection]
jbardin has joined #ruby-lang
elico has quit [Quit: Leaving.]
IPGlider has quit []
elia has quit [Quit: Computer has gone to sleep.]
tbuehlmann has joined #ruby-lang
chouhoul_ has joined #ruby-lang
elia has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
<oddmunds> yorickpeterse: thanks for the armstrong link
xybr_ is now known as xybre
<yorickpeterse> oddmunds: heh, I loved the part where he goes on about Grunt, gruntfiles, bakefiles, makefiles, rakefiles, etc
chouhoulis has quit [Ping timeout: 245 seconds]
<yorickpeterse> really does show the insanity of all these Xfiles
<yorickpeterse> (no pun intended there regarding the series)
<yorickpeterse> Only a matter of time before we have a Filefile that provides a unified format for all the other *files
yatish27 has joined #ruby-lang
<yorickpeterse> and of course a Filefile.lock
<oddmunds> :)
dwknoxy is now known as dknox-lunch
itsraining has quit [Quit: itsraining]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
danrage77 has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
omosoj has quit [Ping timeout: 245 seconds]
netlogics has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
hagabaka has quit [Ping timeout: 240 seconds]
<yorickpeterse> bah, neighbours downstairs doing the laundry and my entire place is shaking
<yorickpeterse> <insert "first world problems" joke>
fusillicode has quit [Ping timeout: 272 seconds]
hagabaka has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
karamazov has joined #ruby-lang
karamazov has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
shinnya has joined #ruby-lang
karamazov has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby-lang
netlogics has quit []
chussenot has joined #ruby-lang
netlogics has joined #ruby-lang
MichD is now known as michd
tkuchiki has quit [Ping timeout: 258 seconds]
whippythellama has quit [Quit: whippythellama]
bin7me has quit [Read error: Connection reset by peer]
stef_204 has joined #ruby-lang
Swooop has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stef_204 has quit [Client Quit]
klmlfl has quit [Remote host closed the connection]
Technodrome has quit [Quit: Technodrome]
chouhoul_ has quit [Remote host closed the connection]
mustmodify has left #ruby-lang [#ruby-lang]
<soahccc> I've got some problems with thread scheduling on 2.0... I'm using a Monitor to synchronize async calls to the main thread. Sometimes the thread takes forever to aquire the lock. I've illustrated the problem here: https://gist.github.com/2called-chaos/cab6909f8e987ee40bd9 Any ideas why that happens?
lcdhoffman has quit [Quit: lcdhoffman]
<|jemc|> how many threads are contending over the lock?
sarkyniin has quit [Quit: Quitte]
<jhass> soahccc: I don't think your example reproduces
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<|jemc|> (and how long does each thread hold onto it)?
<|jemc|> depending on what you're doing (which I have no idea about at this point), you may find it works better to dump tasks into a Queue and have your 'main' thread consume from the queue
<soahccc> |jemc|: The main thread/loop does it's things all within the sychronize and then sleeps/Thread.pass'es (like in the illustration). At the moment I try to hunt down the bug and I've only got one thread waiting for the lock
<yorickpeterse> soahccc: for one, there's no guarantee Thread.pass actually switches threads
<yorickpeterse> plus it's totally useless outside of MRI
Technodrome has joined #ruby-lang
<soahccc> yeah I'm aware that this is MRI specific. But I've got a 0.25 second sleep, that should work no?
<|jemc|> heh, there are still no guarantees about thread shceduling
<soahccc> I had the idea that maybe the monitor wants to be called via conditional variable but it might be the wrong path
<yorickpeterse> Your problem here looks to be that the main thread and the background thread are fighting for the lock at the same time
<yorickpeterse> basically the main thread is going crazy with locking/unlocking
<|jemc|> soahcc ConditionVariable is a solution to the problem where you want to type sleep(until_x_happens)
<yorickpeterse> at any given point during that the background thread comes along and says "oi, gimme the lock"
<|jemc|> so if that sounds like your problem it may indeed be what you want
<yorickpeterse> but it might still be locked at that point, and that might also be the case for the next 100 times it checks
allomov has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 258 seconds]
<|jemc|> or maybe I should have said: sleep(until_i_wake_you_up)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> You would have to perform _all_ work inside the synchronize block
<yorickpeterse> Only then can you guarantee exclusive access to whatever the lock wraps
<soahccc> :/ that is unfortune but even if I would use a queue, same problem basically (just that the time frame would be smaller)
<yorickpeterse> What problem are you trying to solve?
<soahccc> Currently my main loop takes (measured) <1ms and therefore sleeps almost all the 0.25 seconds. Shouldn't the thread which is waiting for the lock permanently at some point get the lock? I'm still not confident that this is the bug. Since it works most of the time
<yorickpeterse> (not this particular gist, but in the real world)
<|jemc|> soahccc: well, the example you gave seems to work as expected
<|jemc|> and we're not looking at your code
<jhass> it smells like producer consumer, so a queue if used properly should solve it
<jhass> but we still don't know anything about you real problem, so all that has been said so far is only guesswork
sepp2k has quit [Quit: Leaving.]
<soahccc> produce/consumer still requires locking and this seems to be the problem. I could link the project but you will punch me for that code :D
sepp2k has joined #ruby-lang
<jhass> no, a properly implemented producer/consumer won't suffer from the problems a "i try to sleep just long enough" solution does
<jhass> and I think that's what you experience
<|jemc|> soahccc: you're probably not going to solve this problem of threads accessing a shared resource in Ruby in a way that doesn't use a lock in some way - so yes, a Queue uses a lock internally but it uses it differently than you seem to be using it
<jhass> doesn't a queue use a semaphore to wait?
<jhass> I'd hope so
mark07 has joined #ruby-lang
<jhass> also maybe you want a SizedQueue, we still can only guess
<soahccc> So my concerns are things like "writing to log" or "invoking commands in a process". Would I have to extract that into producer/consumer each for one thing?
lcdhoffman has joined #ruby-lang
* |jemc| hasn't looked at the code yet, but yes it sounds like producer/consumer is the right paradigm
banister is now known as banisterfiend
relix has joined #ruby-lang
chussenot has quit [Quit: chussenot]
<soahccc> The thread which is waiting would be here but I guess it's to clusterfucked alltogether :D https://github.com/2called-chaos/mcl/blob/master/vendor/handlers/_buildin/snap2date.rb#L210
chussenot has joined #ruby-lang
<|jemc|> so, line 224 of event_manager.rb
<|jemc|> so you're not sleeping at all if your 'tick' took too long
<soahccc> |jemc|: Yeah I measured that the tick is not taking more than 1ms but I just say that I stupid idiot are sleeping inside the sync >.<
chussenot has quit [Client Quit]
<soahccc> s/say/saw
<|jemc|> oh, is app.sync your monitor synchronize?
Lewix has joined #ruby-lang
<|jemc|> because if so, you're sleeping inside your monitor synchronize
<|jemc|> meaning you still hold the lock
<soahccc> yeah it is... I was blind, looking on that for an hour
<|jemc|> and no other thread can wrest it from your cold, sleeping hands
chussenot has joined #ruby-lang
netlogics has left #ruby-lang [#ruby-lang]
<Technodrome> jhass: can you help me understand that Object.puts thing again?
<jhass> Technodrome: I think there's no point in repeating what I said already. So what's your question?
<Technodrome> I’m sorry
<Technodrome> I just still don’t understand
<|jemc|> jhass: Queue is implemented in terms of Mutex and ConditionVariable
<jhass> Technodrome: so you do see the Object::puts is defined, just as private?
<soahccc> Thanks anyway. Maybe I'll should do some things different but this project was never supposed to do what it does today.
<jhass> |jemc|: which both reduce to a semaphore :P But what I mean is proper block/notify behavior which ConditionVariable provides
wallerdev_ has quit [Quit: wallerdev_]
<|jemc|> jhass: yes
<Technodrome> jhass: yes
<Technodrome> and the real puts method is defined in Kernel
face has quit [Ping timeout: 244 seconds]
<jhass> okay. Did you understand module_function so far?
face has joined #ruby-lang
<soahccc> I'm astonished that I brought it that far considering that I iterate over numbers because I suck at math so badly :D
<jhass> many good programmers suck at math. At least that's my only hope :P
certainty has quit [Ping timeout: 240 seconds]
<|jemc|> soahccc: but yeah, it's a good example of when you're looking at your model of a problem and can't figure out why it's not working because you overlooked something in your model :)
<Technodrome> I did not quite grasp what module_function is doing
<jhass> okay, so you do understand that if you do module Foo; def bar; end; end; you can't do Foo.bar ?
<jhass> and if you do module Foo; def self.bar; end; end; you can't do class Baz; include Foo; end; Baz.new.bar nor Baz.bar ?
<mark07> |jemc|: hi, I was thinking about your suggestion for easyoptions not using global variables... you suggested wrapping the options and args with a class.... any particular reason not using a module instead? is it just because of the "::"?
wallerdev_ has joined #ruby-lang
* mark07 still think what's the less ugly way than global vars
<mark07> *thinking about
<|jemc|> 2014-09-18 21:20:10 |jemc| >> module EasyOptions; class << self; attr_accessor :foo; end; end; EasyOptions.foo=88; EasyOptions.foo
<soahccc> something like OpenStruct?
ikrima has quit [Read error: Connection reset by peer]
ikrima has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
tdy has joined #ruby-lang
yatish27 has joined #ruby-lang
certainty has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
yatish27_ has joined #ruby-lang
ikrima has quit [Read error: Connection reset by peer]
postmodern has joined #ruby-lang
<Technodrome> jhass: I do understand that a module must be included and is then called from that class , you can’t call it on itself
yatish27 has quit [Ping timeout: 245 seconds]
cmhobbs has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 260 seconds]
<jhass> Technodrome: so you don't understand class, or the better term in ruby, singleton methods?
Squarepy has quit [Quit: Leaving]
mkaesz has quit [Ping timeout: 260 seconds]
tdy has quit [Quit: WeeChat 1.0]
ikrima has joined #ruby-lang
tobiassvn has quit [Quit: WeeChat 1.0]
shinnya has quit [Ping timeout: 250 seconds]
tdy has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mark07> |jemc|: why not http://ideone.com/FoZopT
certainty has quit [Ping timeout: 272 seconds]
<jhass> or just EasyOptions = Struct.new(:foo)
certainty has joined #ruby-lang
<mark07> |jemc|: or http://ideone.com/t76ef0
<jhass> mark07: please don't call methods with :: :(
chouhoulis has joined #ruby-lang
<|jemc|> mark07: either of the examples you gave will work - it's up to you to choose which you like.
<mark07> |jemc|: or even ideone.com/f4wMkh
<|jemc|> but yes, as jhass said, use '.' instead of '::' to call methods on constants
<|jemc|> mark07: again, those all work fine - do whichever appeals to you
<mark07> none appeals to me, I'm looking for suggestions on what would be "better"
<mark07> for example, not sure if EasyOptions[:foo] is good
SuMo_D has quit [Remote host closed the connection]
<|jemc|> looks 'easy' to me
<jhass> >> require 'ostruct'; EasyOptions = OpenStruct.new(foo: 'bar').freeze
<eval-in___> jhass => #<OpenStruct foo="bar"> (https://eval.in/197009)
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
<|jemc|> heh, I can't tell, but I think jhass may be trying to communicate a suggestion of some kind :P
<jhass> assigned constants for configs ftw! I don't get all these boilerplate modules
kgrz has joined #ruby-lang
<mark07> I don't get jhass' suggestion at all :(
j4cknewt has quit [Remote host closed the connection]
<jhass> >> require 'ostruct'; EasyOptions = OpenStruct.new(foo: 'bar').freeze; EasyOptions.foo
<eval-in___> jhass => "bar" (https://eval.in/197014)
j4cknewt has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
<jhass> >> require 'ostruct'; EasyOptions = OpenStruct.new(foo: 'bar').freeze; EasyOptions[:foo]
<eval-in___> jhass => "bar" (https://eval.in/197015)
nathanstitt has quit [Quit: I growing sleepy]
<jhass> >> require 'ostruct'; EasyOptions = OpenStruct.new(foo: 'bar').freeze; EasyOptions.foo = 'nope'
<eval-in___> jhass => can't modify frozen OpenStruct (RuntimeError) ... (https://eval.in/197016)
<jhass> >> require 'ostruct'; EasyOptions = OpenStruct.new(foo: 'bar').freeze; EasyOptions.to_h
<eval-in___> jhass => {:foo=>"bar"} (https://eval.in/197018)
<jhass> so many features with such a simple statement!
<mark07> jhass: the "problem" is: easyoptions provide two vars, $options and $arguments, after parsing command line arguments, you can guess what they are for (otherwise I think it's not so 'easy' as I thought)... the problem is finding a replacement because global vars "should be avoided"
certainty has quit [Ping timeout: 240 seconds]
<mark07> jhass: just saw your last code... well, hmmm.... dunno :)
<jhass> haha, and I thought you write another curl wrapper all the time :P
<mark07> not last
kgrz has quit [Ping timeout: 250 seconds]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mark07> why did you think "easyoptions" was related to curl? :)
<jhass> read too much of typhoeus code I guess :P
<mark07> |jemc|: would you suddenly get interested in using it after I "fixed" the global vars?
<mark07> haha
chussenot has quit [Quit: chussenot]
sharpmachine has quit [Remote host closed the connection]
Technodrome has quit [Quit: Technodrome]
ikrima has quit [Read error: Connection reset by peer]
<|jemc|> mark07: not really - I'm pretty content with the current option parsing libs available
<mark07> ok :)
hellangel7 has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
bruno- has joined #ruby-lang
hellangel7 has joined #ruby-lang
yatish27_ has quit [Remote host closed the connection]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby-lang
nathanstitt has joined #ruby-lang
bruno- has quit [Ping timeout: 258 seconds]
nathanstitt has quit [Client Quit]
Technodrome has joined #ruby-lang
apeiros has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
KillerFox has quit [Ping timeout: 250 seconds]
KillerFox has joined #ruby-lang
SuMo_D has joined #ruby-lang
karamazov has joined #ruby-lang
unsymbol has quit [Ping timeout: 258 seconds]
SuMo_D has quit [Ping timeout: 272 seconds]
unsymbol has joined #ruby-lang
luiz_lha has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
moepp has joined #ruby-lang
moepp has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby-lang
elia has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
AngryEgret is now known as AngryEgret_afk
hellangel7 has quit [Remote host closed the connection]
AngryEgret_afk is now known as AngryEgret
chouhoulis has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: Technodrome]
tkuchiki has joined #ruby-lang
SuMo_D has joined #ruby-lang
momomomomo has joined #ruby-lang
jdecuirm_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 245 seconds]
jdecuirm has joined #ruby-lang
momomomomo_ has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
Technodrome has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
mark07 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Lewix has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
yatish27 has joined #ruby-lang
tkuchiki has quit [Ping timeout: 258 seconds]
yatish27 has quit [Ping timeout: 246 seconds]
yatish27 has joined #ruby-lang
allomov has joined #ruby-lang
spuk has quit [Ping timeout: 272 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
bruno- has joined #ruby-lang
allomov has quit [Ping timeout: 245 seconds]
yatish27 has quit [Ping timeout: 272 seconds]
<wkoch> mark07: Why don't you accept contributions to your repo?
yatish27 has joined #ruby-lang
bruno- has quit [Ping timeout: 240 seconds]
lcdhoffman has joined #ruby-lang