apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
<rickhull> in my test, i would be calling Utilities.run_command right? how would a subclass defined outside that method affect how the method executes? where do i get something to test other than subprocess_io?
zomgbie has quit [Ping timeout: 252 seconds]
__butch__1 has quit [Quit: Leaving.]
<rickhull> i'm sure i'm missing something obvious. some aspects of mocks and stubs just never clicked with me
tomzx_mac has joined #ruby-lang
injekt has joined #ruby-lang
<erikh> you don't actually test the thing, you test it's output
<erikh> (and orchestrate said output)
<rickhull> i'll buy you a beer if you can make that concrete for me :P
<erikh> not sure what you mean, you write fake methods that yield data, and work with that data
<erikh> I never use them myself. I'd rather have slow tests than fake ones
<rickhull> that's my feeling. i'll solve the slow test problem later
<rickhull> if it's an issue
<erikh> can't really solve it in my use cases
<erikh> ops is a bitch in that regard
<rickhull> we have some existing tests here that call out over the network and time out in the general case
<rickhull> less than 1 test/sec
<rickhull> so i'm well above the benchmark \o/
pbjorklund has joined #ruby-lang
pipework has joined #ruby-lang
<rickhull> note, i'm working on teasing out the functionality that does this, so we can test more stuff purely locally
<rickhull> the tests themselves don't hit the network, but they call functionality that opaquely does
<rickhull> NoMethodError: undefined method `capture_subprocess_io'
<rickhull> skip
<rickhull> not using minitest gem, weird. i thought we were
xcbt has quit [Quit: leaving]
tomzx_mac has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
tomzx_mac has joined #ruby-lang
hogeo has joined #ruby-lang
marr has quit [Ping timeout: 268 seconds]
SilverKey has joined #ruby-lang
cofin has joined #ruby-lang
saarinen has quit [Quit: saarinen]
ffio has quit [Read error: Operation timed out]
tkuchiki has joined #ruby-lang
ffio_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
Aaaarg has joined #ruby-lang
menghon has quit [Quit: menghon]
vlad_starkov has joined #ruby-lang
hakunin has joined #ruby-lang
jstorimer has joined #ruby-lang
zomgbie has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
zomgbie has quit [Ping timeout: 246 seconds]
pipework has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 240 seconds]
woollyams has joined #ruby-lang
jstorimer has quit [Ping timeout: 252 seconds]
glebm has joined #ruby-lang
roadt has joined #ruby-lang
ffio_ has quit [Ping timeout: 246 seconds]
krohrbaugh has quit [Ping timeout: 256 seconds]
cored has quit [Ping timeout: 248 seconds]
Bosox20051 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
bzalasky has joined #ruby-lang
pbjorklund has joined #ruby-lang
benxao has joined #ruby-lang
jstorimer has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
jerrytgarcia has quit [Client Quit]
jonahR has quit [Quit: jonahR]
Domon has joined #ruby-lang
jstorimer has quit [Ping timeout: 256 seconds]
hinbody has quit [Ping timeout: 252 seconds]
diego1 has joined #ruby-lang
machuga has quit [Max SendQ exceeded]
machuga has joined #ruby-lang
diego1 is now known as diegoviola
cjs226 has quit [Quit: cjs226]
DomKM has quit [Quit: Leaving.]
gregmoreno has joined #ruby-lang
Aaaarg has quit [Quit: Aaaarg]
gregmoreno has quit [Ping timeout: 256 seconds]
ViperMaul has joined #ruby-lang
jperry has joined #ruby-lang
Rizzle has quit [Read error: Connection reset by peer]
jperry_ has quit [Read error: Connection reset by peer]
zenspider has quit [Quit: bye]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
jstorimer has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 260 seconds]
GarethAdams has quit [Quit: Leaving...]
DomKM has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
jackhammer2022 has joined #ruby-lang
jackhammer2022 has quit [Client Quit]
jackhammer2022 has joined #ruby-lang
mdedetrich has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
jstorimer has quit [Ping timeout: 260 seconds]
hakunin has joined #ruby-lang
w1zeman1p has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
lsegal has joined #ruby-lang
shinh_ has quit [Quit: Tiarra 0.1+svn-35634: SIGINT received; exit]
shinh has joined #ruby-lang
sush24 has joined #ruby-lang
sush24 has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
pbjorklund has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
gja has joined #ruby-lang
irmbrady has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
sush24 has quit [Ping timeout: 276 seconds]
Sambalero has joined #ruby-lang
jstorimer has joined #ruby-lang
sush24 has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
jstorimer has quit [Ping timeout: 256 seconds]
stardiviner_ has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
fridim_ has joined #ruby-lang
jsullivandigs has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
_jpb_ has quit [Ping timeout: 268 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
_jpb_ has joined #ruby-lang
yxhuvud has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 264 seconds]
bzalasky has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
cofin has quit [Quit: cofin]
SilverKey has quit [Quit: Zzzzzz.]
DomKM has quit [Read error: Connection reset by peer]
DomKM has joined #ruby-lang
_jpb_ has quit [Ping timeout: 276 seconds]
_jpb_ has joined #ruby-lang
jstorimer has joined #ruby-lang
SilverKey has joined #ruby-lang
rippa has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
io_syl_ has quit [Ping timeout: 260 seconds]
kgrz has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 248 seconds]
sush24 has joined #ruby-lang
jstorimer has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
rippa has joined #ruby-lang
_jpb__ has joined #ruby-lang
_jpb_ has quit [Read error: Connection reset by peer]
gregf has quit [Quit: WeeChat 0.4.1]
glebm has quit [Quit: Computer has gone to sleep.]
gja has quit [Ping timeout: 276 seconds]
gja has joined #ruby-lang
nignaztic has quit [Read error: Connection reset by peer]
nignaztic has joined #ruby-lang
nignaztic has quit [Read error: Connection reset by peer]
ViperMaul has quit [Read error: Connection reset by peer]
Rizzle has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
ffio has joined #ruby-lang
ffio is now known as Guest15408
bzalasky has quit [Remote host closed the connection]
Guest15408 has quit [Client Quit]
ffio_ has joined #ruby-lang
io_syl has joined #ruby-lang
ffio_ is now known as fire
sush24 has quit [Quit: This computer has gone to sleep]
mbj has joined #ruby-lang
irmbrady has quit [Quit: WeeChat 0.4.0]
_jpb__ has quit [Ping timeout: 241 seconds]
_jpb_ has joined #ruby-lang
jstorimer has joined #ruby-lang
SilverKey has quit [Quit: Zzzzzz.]
bzalasky has joined #ruby-lang
xxaM has joined #ruby-lang
cordax has joined #ruby-lang
jstorimer has quit [Ping timeout: 246 seconds]
Oak has joined #ruby-lang
Oak has quit [Changing host]
Oak has joined #ruby-lang
SilverKey has joined #ruby-lang
malev has quit [Remote host closed the connection]
benxao has quit [Remote host closed the connection]
fridim_ has quit [Ping timeout: 264 seconds]
jbsan has quit [Ping timeout: 252 seconds]
_jpb_ has quit [Ping timeout: 252 seconds]
jbsan has joined #ruby-lang
_jpb_ has joined #ruby-lang
crazyhorse has joined #ruby-lang
fire has quit [Quit: WeeChat 0.4.1]
jstorimer has joined #ruby-lang
dhruvasagar has joined #ruby-lang
ffio_ has joined #ruby-lang
ffio_ is now known as fire
pabs has quit [Ping timeout: 252 seconds]
crankharder has quit [Ping timeout: 268 seconds]
woollyams has quit [Ping timeout: 252 seconds]
fridim_ has joined #ruby-lang
tRAS has joined #ruby-lang
kgrz has joined #ruby-lang
pabs has joined #ruby-lang
Weems has joined #ruby-lang
<crazyhorse> ok
skade has joined #ruby-lang
<crazyhorse> how can i bind something to port 25, without it been owned by root :/
jstorimer has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby-lang
benxao has joined #ruby-lang
<drbrain> crazyhorse: you can't
<crazyhorse> ok
<crazyhorse> what's the solution
<drbrain> bind as root and drop priviliges
<drbrain> privileges
<crazyhorse> how do you do that in ruby?
<drbrain> see WEBrick::Utils#su
<drbrain> so you have to be launched as root
_jpb_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
<eam> well, that's not strictly true
rippa has quit [Ping timeout: 248 seconds]
<crazyhorse> listening :D
<eam> if you're on BSD you can remove the root requirement for low ports. If you're on linux you can use setcap, which isn't as tricky as using root
<crazyhorse> i'm on ubuntu 12.04 so linux
<eam> it's true that there's no good /portable/ solution :)
<crazyhorse> setcap?
<eam> yes
<crazyhorse> http://linux.die.net/man/8/setcap << reading
<eam> capabilities(7) is probably the most interesting part for you
shireesh has joined #ruby-lang
<eam> you can either manipulate capabilities as root, or you can set them on an executable similar to suid
kgrz has quit [Remote host closed the connection]
<crazyhorse> interesting.. ok i'll have to see how it works
<crazyhorse> eam: thanks for the tip :D
<eam> np
<crazyhorse> it's really been worrying me
<crazyhorse> because the ruby server is a big pile of crap and it's been running as root
<crazyhorse> hand-written server that is
w1zeman1p has quit [Remote host closed the connection]
fire has quit [Ping timeout: 246 seconds]
_jpb_ has quit [Ping timeout: 252 seconds]
_jpb_ has joined #ruby-lang
hhatch has joined #ruby-lang
kgrz has joined #ruby-lang
macmartine has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
_jpb_ has quit [Ping timeout: 246 seconds]
kgrz has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
kgrz has joined #ruby-lang
fridim_ has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby-lang
jstorimer has joined #ruby-lang
kgrz has quit [Ping timeout: 240 seconds]
hashkey has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
jstorimer has quit [Ping timeout: 276 seconds]
kgrz has joined #ruby-lang
duph has quit [Quit: Leaving.]
apeiros has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
M_BlX has joined #ruby-lang
<crazyhorse> eam: iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 808 << there's also this solution
<crazyhorse> i'm not sure which is ncier
<crazyhorse> nicer*
segy has quit [Ping timeout: 276 seconds]
krz has joined #ruby-lang
Aaaarg has joined #ruby-lang
tonni has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
GeissT has joined #ruby-lang
jstorimer has joined #ruby-lang
_jpb_ has quit [Ping timeout: 268 seconds]
_jpb_ has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
barttenbrinke has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
tonni has joined #ruby-lang
<bnagy> there is very little security concern in a ruby server trying to do smtp as root
<bnagy> it would just be really slow and possibly breaky
skade has joined #ruby-lang
segy has joined #ruby-lang
hhatch has quit [Ping timeout: 252 seconds]
wallerdev has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby-lang
jstorimer has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
Phoop has joined #ruby-lang
krz has quit [Ping timeout: 264 seconds]
M_BlX has quit [Remote host closed the connection]
mashu74 has quit [Ping timeout: 248 seconds]
krz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Pupeno has joined #ruby-lang
pipework has joined #ruby-lang
stiang has joined #ruby-lang
mytrile has joined #ruby-lang
publicvoid_ has joined #ruby-lang
hashkey has joined #ruby-lang
hashkey has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 276 seconds]
Wardrop has quit [Quit: Wardrop]
GarethAdams has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
zomgbie has joined #ruby-lang
pipework has quit [Remote host closed the connection]
skade has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
<manveru> ok... i'm totally hitting a brick wall atm
skade has joined #ruby-lang
jstorimer has joined #ruby-lang
<manveru> trying to run some rails app... but all i get is "Killed" and then nothing :(
<manveru> maybe OOM killer?
<bnagy> #rails, noob.
<bnagy> :) uh did you strace it?
<manveru> yeah, it fails during requires
<manveru> kinda randomly, just stops
<manveru> i think it's memory, just checked
<manveru> anyway, thanks for rubberducking :)
<bnagy> I meant to find where the killed massage comes from
<manveru> it's from the kernel
<bnagy> quak
<manveru> so not visible in strace
<bnagy> srsly? Wow I have never seen that
<bnagy> some ulimit thing?
<manveru> nah, VM
<manveru> it's only 512 for a standard vagrant
_jpb_ has quit [Ping timeout: 246 seconds]
<manveru> and i have riak, redis, postgres, memcached...
<manveru> so rails only has around 100mb to play with
<manveru> no swap means it will immedately be killed by the kernel since it's the youngest process
<bnagy> ahh no swap
vlad_starkov has quit [Remote host closed the connection]
ffio has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
marr has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
mdedetrich has quit [Quit: Computer has gone to sleep.]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
<bnagy> what's with rails, anyway?
vlad_starkov has joined #ruby-lang
<bnagy> I actually used ramaze, like once. :/
_jpb_ has joined #ruby-lang
<bnagy> which is the sum total of web sites I have done in the last 10 years
jstorimer has quit [Ping timeout: 252 seconds]
stiang has quit [Quit: stiang]
mbj has quit [Read error: Operation timed out]
stiang has joined #ruby-lang
stiang has quit [Client Quit]
jsullivandigs has quit [Ping timeout: 246 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
_jpb_ has quit [Ping timeout: 252 seconds]
_jpb_ has joined #ruby-lang
duph has joined #ruby-lang
judofyr has joined #ruby-lang
mdedetrich has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
charliesome has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby-lang
<manveru> bnagy: new company
<bnagy> :/
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
<manveru> yeah
<manveru> oh well, i get to convert a lot of it to Go
<bnagy> ooh you're doing Go now?
<manveru> aye
<bnagy> I just started playing with it
mbj has joined #ruby-lang
<bnagy> can't say I'm loving it, but I'm hating it way less than c++
<manveru> lol
<manveru> been using it for a few years now
<manveru> i'm just happy people aren't able to use it to create something like rails
<bnagy> I have certain problem sets that I think it would suit extremely well
<bnagy> but I'm finding thinking in not-ruby way harder than I thought
Criztian has joined #ruby-lang
<crazyhorse> manveru: do you like go better than ruby? or using it for particular use-cases
solars has joined #ruby-lang
<bnagy> like.. for loop? Seriously? Let me think back...
<judofyr> Go seems fine, although I have higher hopes for Rust
<manveru> there are some things that make my weep :)
<manveru> *me
pipework has joined #ruby-lang
<crazyhorse> I would probably like a stricter language that leads to less bugs
<manveru> like having to duplicate whole files just to emulate generics
<crazyhorse> e.g. something like haskell
jstorimer has joined #ruby-lang
<crazyhorse> I find lots of the problems with development even with huge unit test suites is bug finding
<crazyhorse> and i think it's got more to do with language architecture and separating everything
<manveru> erlang is all fun and games until they ask you to dive into math theory :(
<manveru> err, haskell
<injekt> moin
havenwood has quit [Remote host closed the connection]
<crazyhorse> i'm still not sold on closures in languages
havenwood has joined #ruby-lang
<judofyr> crazyhorse: in general?
<manveru> oO
<crazyhorse> yeah in general
<judofyr> crazyhorse: well, there's always Java
<crazyhorse> it's kinda like having global variables that can float from one place to another
<bnagy> uh.. go on?
<crazyhorse> judofyr: yeah but java is horrible too.. takes hours to write something piss-simple
<manveru> are there languages without closures?
<manveru> i mean, even if you can't pass them in some
<crazyhorse> i suppose i meant closures in the way ruby/javascript has them
<crazyhorse> i.e. having inner methods that can access variables in outer methods
<crazyhorse> that makes the segregation and compartmentalising of code difficult
tonni has quit [Remote host closed the connection]
<crazyhorse> additionally i think lots of programming architectures will have to change
<crazyhorse> because we'll end up having 1000 core cpus
<bnagy> should I be getting popcorn?
cordax has quit [Ping timeout: 252 seconds]
<manveru> possibly
mdedetrich has joined #ruby-lang
<manveru> nah, i'm not gonna argue this stuff :)
<judofyr> crazyhorse: I'm very interested in how such a language (without closures) would look like without being as verbose as Java
<crazyhorse> and obviously the way we code at the moment, isn't really built for that (and it's not easy)
<crazyhorse> judofyr: one of the creators of merb used to chat to me about this stuff all the time
<crazyhorse> really smart guy, very interesting ideas
<judofyr> crazyhorse: again: show me examples, because I have no idea how this would look
<bnagy> why are closures not a positive approach to massively concurrent programming?
<charliesome> crazyhorse: what about closures that can't modify outer variables?
<manveru> take map/reduce... execute one closure on N CPUs
<crazyhorse> bnagy: it's not necessarily, but if the closures can change
<crazyhorse> charliesome: exactly.. that might work
<charliesome> crazyhorse: have you played with haskell much?
<crazyhorse> charliesome: not at all
<crazyhorse> talked about it a bit :D
<crazyhorse> i like the concepts
criego has quit [Ping timeout: 248 seconds]
<crazyhorse> i'm always too busy working to really have a play
<Mon_Ouie> That's not specific to closures though, any shared mutable state has the same problem
<charliesome> well basically it doesn't have 'variables'
<charliesome> you can bind a value to a name in a scope
<charliesome> and access that name from inner scopes
<charliesome> you can't modify anything though
<judofyr> crazyhorse: you can have closures without mutable variables
<judofyr> seems like you more have a problem with mutable variables
<judofyr> or, mutable state
<bnagy> crazyhorse: are you anti pass-by-reference as well?
<crazyhorse> bnargy: not really.. to be honest i'm not expert enough on language stuff to have a defined opinion. I mainly deal with application-architecture
<bnagy> charliesome: OT but holy crap dude you look like 12
<crazyhorse> i do know that many of the bugs we have encounted
<bnagy> uh no offense
<charliesome> bnagy: hm?
<crazyhorse> is because of things not being properly segragated
<bnagy> seeing pics of irc people on twitter or wherever really freaks me out sometimes :/
<injekt> charliesome: you coming to any eu confs this year?
<charliesome> hah
<charliesome> injekt: probably not
<judofyr> bnagy: was it the PHP t-shirt pic?
<bnagy> it was
<judofyr> bnagy: were you not aware of that charliesome actually is 12 years old? :D
_jpb_ has quit [Ping timeout: 246 seconds]
<injekt> ^
<charliesome> i am 12 years old and what is this
<injekt> he's a little behind, we know
_jpb_ has joined #ruby-lang
<bnagy> ...
kgrz has quit [Remote host closed the connection]
mdedetrich has quit [Ping timeout: 246 seconds]
dc5ala has joined #ruby-lang
<injekt> can someone fix my internet
<bnagy> thump it with a screwdriver
<injekt> oh that worked
mbj has quit [Ping timeout: 246 seconds]
mbj has joined #ruby-lang
tonni has joined #ruby-lang
<bnagy> awww yeah
kgrz has joined #ruby-lang
Cremno has joined #ruby-lang
jstorimer has quit [Ping timeout: 276 seconds]
publicvoid_ has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Ping timeout: 256 seconds]
spectra has quit [Ping timeout: 256 seconds]
GeissT has quit [Ping timeout: 240 seconds]
spectra has joined #ruby-lang
tylersmi_ has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
ffio has joined #ruby-lang
dagobah has joined #ruby-lang
barttenbrinke has joined #ruby-lang
tylersmith has quit [Ping timeout: 268 seconds]
stamina has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
elia has joined #ruby-lang
Rizzle has quit [Read error: Connection reset by peer]
_jpb_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
Rizzle has joined #ruby-lang
jstorimer has joined #ruby-lang
hhatch has joined #ruby-lang
relix has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
pbjorklund has joined #ruby-lang
jstorimer has quit [Ping timeout: 276 seconds]
<judofyr> charliesome: re: that CSS article you retweeted:
<charliesome> judofyr yeah
<judofyr> charliesome: we've been using » and › as BEM separators
<charliesome> judofyr: haha seriously?
<judofyr> charliesome: .my-module»close-button
<judofyr> charliesome: .my-module›important
<charliesome> do you have that on your keyboard?
<judofyr> charliesome: sure, Ctrl-Alt \ and Ctrl-Alt 4
<judofyr> charliesome: reads so much better
<charliesome> that's nuts
<charliesome> although
<judofyr> works everywhere as well
<charliesome> i can't come up with anything concrete against it
<judofyr> (IE6 etc.)
mytrile has joined #ruby-lang
roadt has quit [Ping timeout: 252 seconds]
<judofyr> charliesome: another alternative class="foo>bar" and class="foo+bar"
<charliesome> does that work?
<judofyr> and in CSS: .foo\>bar { }
<judofyr> oh, and it's Alt-Shift not, Ctrl-Alt (silly me)
<judofyr> and .foo\+bar { }
andrewvos has joined #ruby-lang
<judofyr> charliesome: http://stuff.judofyr.net/bem.html
<charliesome> damn
vlad_starkov has quit [Remote host closed the connection]
pbjorklund has quit [Ping timeout: 240 seconds]
<judofyr> unicode reads even better though: http://cl.ly/image/1v0I3B2J0r2m
<judofyr> charliesome: please steal it :)
<charliesome> judofyr: i'll let ben (the guy who wrote that post) know, i'll see what he reckons :p
crazyhorse has quit [Ping timeout: 256 seconds]
barttenbrinke has joined #ruby-lang
mikewintermute has joined #ruby-lang
wudofyr___ has joined #ruby-lang
pbjorklund has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<andrewvos> Morning all
kgrz has quit [Remote host closed the connection]
<judofyr> morning andrewvos
<yorickpeterse> morning
GarethAdams|Work has joined #ruby-lang
GarethAdams has quit [Disconnected by services]
GarethAdams|Work is now known as GarethAdams
GarethAdams|Work has joined #ruby-lang
<andrewvos> hello judofyr
<andrewvos> hi yorickpeterse
jstorimer has joined #ruby-lang
Weems has quit [Ping timeout: 264 seconds]
<yorickpeterse> man the weather here in Greece is amazing
<andrewvos> You're in Greece? Nice.
<yorickpeterse> AARGHGH I HATE SECURITY QUESTIONS
<yorickpeterse> mostly because I can't remember the answers
toretore has joined #ruby-lang
kgrz has joined #ruby-lang
mossplix has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
<injekt> :/
<yorickpeterse> HAHA, to open a support ticket you have to log in
<yorickpeterse> great
tylersmith has quit [Ping timeout: 256 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
jstorimer has quit [Ping timeout: 268 seconds]
<andrewvos> You don't remember your moms maiden name yorickpeterse?
<yorickpeterse> I do, but that's not one of the questions
<yorickpeterse> I do know the answers, just not what way I wrote them down
<yorickpeterse> e.g. casing, if I left something out, etc
<manveru> i just generate passwords for those
barttenbrinke has quit [Remote host closed the connection]
<manveru> keeps them in lastpass, makes them secure, and i don't have to remember them
<manveru> just a bit weird if you have to answer over phone :)
<manveru> your first pets name: "equ4ohCa bogeN8qu Toor7iec aeRui6ai"
<yorickpeterse> Hm, that's not a bad idea
bzalasky has quit [Remote host closed the connection]
kgrz_ has joined #ruby-lang
dernise has joined #ruby-lang
<dernise> Hello ! :)
<andrewvos> hahaha
kgrz has quit [Ping timeout: 252 seconds]
linc01n has joined #ruby-lang
Paradox has joined #ruby-lang
_jpb_ has quit [Ping timeout: 276 seconds]
_jpb_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kgrz_ has quit [Ping timeout: 264 seconds]
kgrz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
zomgbie has quit [Read error: Operation timed out]
duckinator has joined #ruby-lang
duph has quit [Quit: Leaving.]
jstorimer has joined #ruby-lang
pbjorklund has quit [Ping timeout: 240 seconds]
<dernise> I'm new to ruby, and I'd like to know if it's possible to make a static method or a class/module in wich everything is public ?
pbjorklund has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<dernise> I made this : module xxxx extend self
<dernise> Is it correct?
jstorimer has quit [Ping timeout: 252 seconds]
_jpb_ has quit [Ping timeout: 256 seconds]
barttenbrinke has joined #ruby-lang
_jpb_ has joined #ruby-lang
kgrz has quit [Ping timeout: 246 seconds]
kgrz has joined #ruby-lang
<yorickpeterse> You mean you want the methods to be available without having to create an instance?
barttenbrinke has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby-lang
<manveru> module_function does that
kgrz_ has joined #ruby-lang
kgrz has quit [Ping timeout: 256 seconds]
<manveru> alternatively you could do defs inside 'class << self; end' or use 'def self.a; end'
fridim_ has joined #ruby-lang
mossplix has quit [Ping timeout: 264 seconds]
<yorickpeterse> Oak: it takes the value of a Hash key :zig
<yorickpeterse> and :zig is a Symbol
<yorickpeterse> e.g.
<yorickpeterse> >> numbers = {:one => 1}; numbers[:one]
<eval-in> yorickpeterse => 1 (https://eval.in/35017)
<Oak> ah
<Oak> okay cool, thank you yorickpeterse !
kgrz has joined #ruby-lang
kgrz_ has quit [Ping timeout: 246 seconds]
<dernise> yorick : yes
pskosinski has joined #ruby-lang
mdedetrich has joined #ruby-lang
<yorickpeterse> Oak: np
<yorickpeterse> dernise: if you want it on a class, do something like this:
zomgbie has joined #ruby-lang
<yorickpeterse> >> class Person; def self.species; 'human'; end; end; Person.species
<eval-in> yorickpeterse => "human" (https://eval.in/35018)
<yorickpeterse> (note the `self.`
kgrz_ has joined #ruby-lang
<dernise> Oh right.
<dernise> So I just have to put a 'self.' before the name of my method ?
kgrz has quit [Ping timeout: 264 seconds]
<dernise> i'm currently switching from java to ruby, it's a little different? :)
<manveru> dernise: yes, yes it is :)
rikai has quit [Ping timeout: 240 seconds]
MaddinXx has joined #ruby-lang
zomgbie has quit [Read error: Connection reset by peer]
<judofyr> dernise: you can define methods on any object with that syntax: `def foo.bar` defines the bar-method on the foo-object
jstorimer has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
<judofyr> >> a = "hello"; def a.double_size; size * 2; end; a.double_size
<eval-in> judofyr => 10 (https://eval.in/35024)
<judofyr> dernise: so you might also see: class Person; def Person.species; end end
<judofyr> dernise: or: `class Person; class << self; def species end end end` they all mean the same
snarfmason has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
MaddinXx has quit [Remote host closed the connection]
<dernise> judofyr: And what is : extend self
snarfmason has joined #ruby-lang
<judofyr> dernise: module Foo; def bar; 1 end end; a = "hello"; a.extend(Foo); a.bar
<judofyr> dernise: #extend takes a module and makes all of the methods in that module available on the object
<judofyr> dernise: and because modules are objects, `extend self` is a way to make System.pid_alive? work
rikai has joined #ruby-lang
<dernise> Ok ! I understand :D
<dernise> A module is also like a namespace so ?
<judofyr> dernise: kinda. a module is just a collection of methods.
<judofyr> dernise: there's no way to invoke methods inside a module directly
<judofyr> module Foo; def bar; end end
<judofyr> you'll either have to include it inside a class
<judofyr> or extend it somewhere
<judofyr> class Person; include Foo; end; Person.new.bar # => this works
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<judofyr> dernise: so #include makes the methods in a module available in the instance; #extend makes the methods available on the object itself
Phoop has quit [Quit: Phoop]
mbj has quit [Read error: Operation timed out]
<judofyr> dernise: it can be a bit confusing.
M_BlX has joined #ruby-lang
ffio has joined #ruby-lang
<kith> i'm so bored, is there a channel i could join for fun?
<dernise> Do you often use modules ?
<kith> yeah
<GarethAdams> kith: #defocus is Freenode's social channel
<kith> ah okay
<kith> GarethAdams: indeed amusing... first thing i read after joining:
<kith> [12:59 PM] <April22> i need a boy
<kith> [12:59 PM] <April22> a single boy
vlad_starkov has quit [Remote host closed the connection]
<judofyr> kith: sounds like span
<judofyr> spam
<kith> ofc
benxao has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
<apeiros> reminds me of a song lyric (translated): "you're the nicest boy I ever met, but that won't help, because I'm looking for a man"
jsullivandigs has joined #ruby-lang
jstorimer has quit [Ping timeout: 252 seconds]
zomgbie has joined #ruby-lang
kgrz has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 256 seconds]
kgrz_ has quit [Ping timeout: 268 seconds]
relix has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
x0f has quit [Ping timeout: 256 seconds]
x0f has joined #ruby-lang
Oak has quit [Ping timeout: 252 seconds]
jstorimer has joined #ruby-lang
TvL2386 has joined #ruby-lang
<TvL2386> hi guys, I'm starting TDD and use rspec. My application uses configuration parameters... How would you set them for your testsuite? Using ENV?
<scholar01> +1, i'm curious about this as well.
<TvL2386> :)
<lupine> that's what I do
x0f has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
<scholar01> I've used ENV for some tools and config files for others…
<lupine> well, typically you can work out sane defaults, and then use ENV to override them
<andrewvos> Yep
<scholar01> sometimes my tests require API keys to other services that I don't want to share when I release the code.
<andrewvos> Do what lupine says
x0f has joined #ruby-lang
<TvL2386> I'm creating an application that has to ssh to a host. I would like to dynamically determine user, password and hostname/ip. I'll go with ENV and create a test that tests whether there is information supplied
<TvL2386> thanks guys
<lupine> one set of tests that still touches the DB looks like this in the setup helper: :database => ENV['BRAIN_TEST_DB'] || "bigv_brain_test_#{ENV['USER']}"
<yorickpeterse> TvL2386: you can set them in e.g. support/configuration.rb
<yorickpeterse> given they never change
Squarepy has joined #ruby-lang
<TvL2386> yorickpeterse, that's the problem... in the near future it will change...
zomgbie_ has joined #ruby-lang
<yorickpeterse> then change it in the config?
<yorickpeterse> why bother with having to set ENV variables if it only changes once in a while
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
Oak has joined #ruby-lang
Oak has quit [Changing host]
Oak has joined #ruby-lang
<andrewvos> yorickpeterse: Well because checking in usernames and passwords to git isn't nice
<andrewvos> Well I suppose it depends actually
pbjorklund has quit [Read error: Operation timed out]
yalue has joined #ruby-lang
M_BlX has quit [Remote host closed the connection]
<injekt> heh
vlad_starkov has joined #ruby-lang
<injekt> yorickpeterse: y u athens
pbjorklund has joined #ruby-lang
jxie has quit [Quit: leaving]
malev has joined #ruby-lang
zomgbie__ has joined #ruby-lang
mbj has joined #ruby-lang
zomgbie_ has quit [Ping timeout: 252 seconds]
zomgbie has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
_jpb_ has quit [Remote host closed the connection]
fosky has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
GeissT has joined #ruby-lang
tarruda has quit [Quit: ZNC - http://znc.in]
zomgbie has joined #ruby-lang
machuga is now known as machuga|away
malev_ has joined #ruby-lang
benxao has joined #ruby-lang
jonahR has joined #ruby-lang
malev has quit [Quit: Leaving]
roadt has joined #ruby-lang
<dernise> Why can't I call a method of a module inside of this module. example : module system def set_user (some code here) end def start set_user end end <- gives me an undefined method `set_user' for Monitor::System:Module (NoMethodError)
<judofyr> dernise: that's just how modules work. you can't invoke it directly by default.
<judofyr> dernise: you can either (1) use extend self (2) use module_function
<dernise> Well, It isn't possible to call a method of a module inside of this module ?
<dernise> And I put extend self, and the problem is still there /:
jstorimer has quit [Remote host closed the connection]
cofin has joined #ruby-lang
Oak has quit [Quit: Leaving]
<judofyr> dernise: if you're inside inside the module you should also have access to the methods
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
<judofyr> dernise: could you paste full example? gist.github.com
_jpb_ has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby-lang
scampbell has joined #ruby-lang
_jpb_ has joined #ruby-lang
<dernise> Ok, wait;
pskosinski has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
Mawk has joined #ruby-lang
<judofyr> dernise: that should work…
<judofyr> dernise: oh, I see it: you have the second 'def' inside the method
<judofyr> dernise: `def daemonize() def set_user() end end` is not the same as `def daemonize() end def set_user() end`
<injekt> also please use module_function over extend self
<judofyr> injekt: what's the actual advantages again?
<dernise> Oh ok thanks, didn't see it :)
tomzx_mac has joined #ruby-lang
<injekt> module_function makes instance methods private
Mon_Ouie has quit [Ping timeout: 252 seconds]
<pipework> Mmm.
<injekt> then makes class methods that call those private methods
<injekt> module methods? *shrug*
<injekt> metaclass methods
<injekt> :D
Mon_Ouie has joined #ruby-lang
pbjorklund has quit [Read error: Operation timed out]
pbjorklund has joined #ruby-lang
<dernise> Will the process class work on a mac just like it is working on linux ?
<judofyr> dernise: pretty much
Voker57 has quit []
MartynKeigher has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
Voker57 has joined #ruby-lang
fess has joined #ruby-lang
machuga|away is now known as machuga
pskosinski has joined #ruby-lang
northelks has quit [Ping timeout: 256 seconds]
<injekt> anyone in here write much coffeescript?
sbpraveen34 has joined #ruby-lang
<PaulePanter> Hi. If I want to check if a string contains several elements stored in an array (TYPES = ['a', 'b', 'c']), is there an easier way than doing
<PaulePanter> TYPES.each do |match|
<PaulePanter> if (somestring.includes? match)
<PaulePanter> …
<PaulePanter> end
<PaulePanter> end
<injekt> TYPES.all? { |c| str.include?(c) }
<PaulePanter> ?
<PaulePanter> What is the difference between .all and .each?
<injekt> >> %w(a b c).all? {|c| "abcd".include?(c) }
<eval-in> injekt => true (https://eval.in/35072)
krz has quit [Quit: krz]
<injekt> PaulePanter: .all? returns true if the block returns true for every element
<injekt> there's also any? which returns true if the block returns true for any element
GarethAdams|Work has quit [Quit: Leaving...]
<injekt> see Enumerable module, documentation is there for both of those methods
MartynKeigher has joined #ruby-lang
<PaulePanter> injekt: I see. Interesting. (Actually I’d need .any then and formulated my question incorrectly.)
_jpb_ has quit [Ping timeout: 256 seconds]
<injekt> PaulePanter: I assumed that could well be the case, which is why I mentioned it
<PaulePanter> injekt: Thanks a lot!
_jpb_ has joined #ruby-lang
<judofyr> injekt: nah, it's been a while now (CoffeeScript)
fridim__ has joined #ruby-lang
_jpb_ has quit [Ping timeout: 268 seconds]
_jpb_ has joined #ruby-lang
bgant has joined #ruby-lang
mkykfka has joined #ruby-lang
<erikh> totally bumping to dubstep on my mbp at home
<erikh> almost a githubber
<erikh> just need some cool sunglasses and a hoddie
<erikh> hoodie
<judofyr> ok
<judofyr> erikh: \o/
<judofyr> erikh: you're finally following me!
<erikh> haha, I just started twooter again like 2 weeks ago
breakingthings has joined #ruby-lang
<erikh> you could always return the favor. I tweet mostly about dongs and dong advocacy
cored has quit [Ping timeout: 252 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<yorickpeterse> injekt: because euruko
<yorickpeterse> also the food here is great
pbjorklund has quit [Ping timeout: 240 seconds]
<injekt> yorickpeterse: oh noice
<yorickpeterse> So today and tomorrow we work from a co-working space
<yorickpeterse> then euruko
<judofyr> so, should I go to a conference this year?
<yorickpeterse> in between that I hope to be doing some "Athens in 2 hours" trip
hogeo has quit [Remote host closed the connection]
<yorickpeterse> judofyr: you know the answer
<whitequark> wheeee, the only thing keeping me from parser 2 release is docs
<judofyr> whitequark: what's the big changes in parser 2?
<yorickpeterse> websscale
<yorickpeterse> * webscale
<judofyr> nice
<whitequark> judofyr: breaking ones are described here: https://github.com/whitequark/parser/issues/51
<injekt> judofyr: go to arrrrcamp, I'll buy you a beer :)
<whitequark> and LOTS of bugfixes, literally dozens.
<whitequark> and you can extract comments and associate them with nodes
<judofyr> ah, right, I remember that one
<whitequark> it's also much faster and 140% sparklier
<injekt> what would you call a join model for Organization<->User and Project<->User
<injekt> sparklier!
<whitequark> per bugfixes... the most important ones concern whitespace
<whitequark> there are hundreds of ways to screw up whitespace handling in ruby
<whitequark> I had to write a separate section of testsuite devoted only to whitespace.
bgant has left #ruby-lang [#ruby-lang]
bgant has joined #ruby-lang
runeb has joined #ruby-lang
<yorickpeterse> injekt: the model is used for both?
<whitequark> oh also flip-flops and magic matches are in :p
<yorickpeterse> or do you mean two separate models?
scholar01 has quit [Quit: Leaving.]
<injekt> yorickpeterse: 2 separate
<yorickpeterse> UserOrganization and UserProject (or the other way around) probably
<injekt> bleh
<judofyr> btw, anyone knows about a good documentation tool based on Markdown?
<yorickpeterse> YARD
<whitequark> judofyr: I used kramdown, it has TOC and niceties
<whitequark> lemme show
mdedetrich has quit [Quit: Computer has gone to sleep.]
pbjorklund has joined #ruby-lang
eugenejen has joined #ruby-lang
jstorimer has joined #ruby-lang
<judofyr> whitequark: some features I need: linking to headers in other files, adding custom HTML "widgets" (e.g. I want to be able to insert a "view source"-functionality)
<whitequark> judofyr: kramdown has you covered
<whitequark> the first one is provided out of the box (check my file)
<whitequark> the second one should be trivial to implement
<judofyr> whitequark: and (3) it should render nicely on GitHub
sbpraveen34 has quit [Quit: ChatZilla 0.9.90 [Firefox 24.0a1/20130622094432]]
<judofyr> whitequark: is it kramdown that has the {: } syntax?
<whitequark> yes
<whitequark> and you won't be able to find anything that renders nicely on github.
<whitequark> github uses a rather screwed up version of redcarpet.
<judofyr> whitequark: screwed up how?
<whitequark> incompatible with everything else
<whitequark> plus redcarpet didn't follow markdown spec that well even before
<whitequark> judofyr: use github pages, I guess?
<judofyr> whitequark: oh: and search
_jpb_ has quit [Ping timeout: 268 seconds]
<judofyr> whitequark: and a live server
<whitequark> judofyr: roll your own :p
_jpb_ has joined #ruby-lang
<judofyr> whitequark: yeah, I think I'll have to do that :(
<whitequark> kramdown+sinatra+...
<whitequark> hm
<judofyr> whitequark: I've always been happy with Redcarpet though
<whitequark> something pure-ruby should suffice, I guess
tomzx_mac has quit [Read error: Operation timed out]
<judofyr> whitequark: and I'm probably going to use my own little framework
<judofyr> but yeah
<whitequark> kramdown's really better with inline HTML and styles
<whitequark> and TOC!
<whitequark> <3 TOC
<whitequark> when did I write 50KLOC
<judofyr> whitequark: checking in parse.y?
<whitequark> it's 2kloc each, thus 8kloc all
kgrz has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
jxpx777 has joined #ruby-lang
mbj has quit [Ping timeout: 276 seconds]
stamina has quit [Ping timeout: 268 seconds]
enebo has joined #ruby-lang
jstorimer has quit [Ping timeout: 264 seconds]
<injekt> ActiveRecord::Associations::CollectionProxy::ActiveRecord_Associations_CollectionProxy_Organization
<injekt> lolol
<yorickpeterse> FactoryBean
mkykfka has quit [Quit: Leaving]
enebo has quit [Client Quit]
<injekt> that's rails 4
<injekt> funny stuff
<yorickpeterse> wait, tey have the Bean stuff?
<yorickpeterse> * they
enebo has joined #ruby-lang
<injekt> no I didn't see your message lag
<yorickpeterse> ah
_jpb_ has quit [Ping timeout: 256 seconds]
MartynKeigher has quit [Ping timeout: 245 seconds]
<yorickpeterse> wait, why the fuck are there underscores in the name?
<zzak> hi
<injekt> no idea
<injekt> zzak: hai
<matti> Yo zzak
<matti> zzak: Genki desu ka?
mistym has joined #ruby-lang
<yorickpeterse> moshi moshi
MartynKeigher has joined #ruby-lang
<zzak> matti: good, you?
_jpb_ has joined #ruby-lang
<matti> zzak: Chotto, nemui desu ne...
tonni has quit [Remote host closed the connection]
diego1 has joined #ruby-lang
<matti> zzak: Meaning, I am bit sleepy ;]
<zzak> injekt: ❤
gja has quit [Ping timeout: 240 seconds]
<yorickpeterse> y u no install IME
<zzak> matti: i know nemui
<matti> yorickpeterse: I can type in Kana/Kanji no prolbem ;p
<matti> problem*
<matti> zzak: :)
diego1 is now known as diegoviola
mistym has quit [Remote host closed the connection]
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
dhruvasagar has joined #ruby-lang
jstorimer has joined #ruby-lang
<injekt> zzak: <3
<zzak> charliesome: ping
<charliesome> zzak: pong
solars has quit [Ping timeout: 264 seconds]
<zzak> charliesome: i was about to tell you hsbt could add you, but looks like you already are
<charliesome> zzak: yeah just emailed shyouhei
<zzak> woot
Aaaarg has quit [Quit: Aaaarg]
<zzak> yorickpeterse: so do you speak dutch or anything else?
<yorickpeterse> No, I don't speak any language
dominikh has quit [Remote host closed the connection]
<yorickpeterse> In all seriousness, I speak Dutch and English primarily, with some very limited korean in between
<zzak> you should help translate ruby-lang to dutch: https://github.com/ruby/www.ruby-lang.org/wiki
dominikh has joined #ruby-lang
<matti> zzak: Any luck with usa?
<injekt> I could help translate it to warbalgharbleaha
<yorickpeterse> zzak: if I had the time
<matti> injekt: I could do Polish translation ;p
<yorickpeterse> plus I don't see a huge benefit in translating it to Dutch, every Dutch person can read English
<matti> But I am sure nobody gives a flying Matz about Polish translation ;p
<zzak> matti: i havent looked since the ping
<injekt> matti: well leading on from what yorickpeterse said, most Polish people speak English too
<whitequark> my coworkers do russian translation
<injekt> in fact most polish people live here too
<whitequark> ... including all blogposts since 2000
<zzak> matti: i think there is a polish version, but there are probably errors
<matti> zzak: Is it?
<matti> injekt: Yeah.
<matti> English in Europe is a second language to most folks.
jbsan has quit [Quit: jbsan]
<zzak> at the bottom is a list of existing translations
<matti> ;]
tRAS has quit [Quit: Mother, did it need to be so high?]
jstorimer has quit [Remote host closed the connection]
pbjorklund has quit [Read error: Operation timed out]
tonni has joined #ruby-lang
<yorickpeterse> hey look, there's a Euruko 2013 sticker here on the fridge
mistym has joined #ruby-lang
jbsan has joined #ruby-lang
hashkey has joined #ruby-lang
pipework has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 276 seconds]
tylersmith has joined #ruby-lang
spacesuit has joined #ruby-lang
io_syl has joined #ruby-lang
tkuchiki has joined #ruby-lang
wmoxam has joined #ruby-lang
mistym has quit [Remote host closed the connection]
MaddinXx_ has joined #ruby-lang
tylersmi_ has joined #ruby-lang
tylersmith has quit [Ping timeout: 264 seconds]
Sambalero has joined #ruby-lang
<yorickpeterse> what the, no proper Reddit API client for Ruby?
<yorickpeterse> MADNESS
<injekt> every reddit url responds to .json anyway
<injekt> subreddit url*
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> hmmm
<yorickpeterse> but I need comments :<
<injekt> I have a script that does a request, then passes it to json-pretty, then greps, then cuts
<injekt> its a neat one liner
diegoviola has quit [Ping timeout: 268 seconds]
relix has joined #ruby-lang
<yorickpeterse> A one-liner as in "a lone liner of 500 characters"?
_jpb_ has quit [Read error: Connection reset by peer]
<injekt> comments are embedded
<injekt> haha no not quite
carloslopes has joined #ruby-lang
<yorickpeterse> oh shit, .json also works for single threads
<injekt> it only does curl/json-pretty/grep/cut
<injekt> yes
_jpb_ has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
<injekt> yorickpeterse: quick grab 'reddit' its been yanked
jxie has joined #ruby-lang
<injekt> oh what
<injekt> fu rubygems
Squarepy has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
tonni has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby-lang
benlovell has joined #ruby-lang
jsullivandigs has joined #ruby-lang
jbsan has quit [Quit: jbsan]
barttenbrinke has joined #ruby-lang
Uranio has joined #ruby-lang
tRAS has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
tonni has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
holgerno has joined #ruby-lang
holgerno has quit [Changing host]
holgerno has joined #ruby-lang
ffio_ has joined #ruby-lang
ffio has quit [Ping timeout: 256 seconds]
jsullivandigs has quit [Ping timeout: 268 seconds]
pbjorklund has joined #ruby-lang
philnyc has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
wallerdev has joined #ruby-lang
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
jstorimer has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
glebm has joined #ruby-lang
vbatts|work has joined #ruby-lang
mbj has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 268 seconds]
julianhurley has joined #ruby-lang
_jpb_ has joined #ruby-lang
mbj has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
GeissT has quit [Quit: MillBroChat AdIRC User]
tRAS has quit [Quit: Mother, did it need to be so high?]
criego has joined #ruby-lang
kgrz has joined #ruby-lang
bzalasky has joined #ruby-lang
_jpb_ has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mbj has joined #ruby-lang
mbj has quit [Client Quit]
mbj has joined #ruby-lang
ledestin has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
ledestin has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
zmike123 has joined #ruby-lang
stamina has joined #ruby-lang
spacesuit has quit [Quit: spacesuit]
skade has quit [Quit: Computer has gone to sleep.]
kstuart has joined #ruby-lang
shinh has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
mikewintermute has quit [Read error: Connection reset by peer]
runeb has quit [Remote host closed the connection]
rcassidy has joined #ruby-lang
tbuehlmann has joined #ruby-lang
runeb has joined #ruby-lang
julianhurley has quit [Remote host closed the connection]
<yorickpeterse> you're slightly inaccurate
shinh has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
kstuart has quit [Ping timeout: 246 seconds]
_jpb_ has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
_jpb_ has joined #ruby-lang
rsl has quit [Ping timeout: 260 seconds]
shireesh has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
pbjorklund has quit [Ping timeout: 264 seconds]
holgerno has quit [Quit: Linkinus - http://linkinus.com]
<criego> This seems impossible. I just had an exception "skip" right past the rescue that should have caught it and propagate all the way to the top.
mbj_ has joined #ruby-lang
pbjorklund has joined #ruby-lang
<criego> ./player.rb:163:in `artist': Bad tag (TagLib::BadTag)
mbj has quit [Ping timeout: 248 seconds]
<criego> 161: tag = TagLib::File.new( self.fnm )
<criego> 162: begin
<criego> 163: @artist = tag.artist
<injekt> criego: gist.github.com
<criego> 167: rescue => e
<injekt> please do not paste code into the channel
_carloslopes has joined #ruby-lang
<criego> sorry... that's all.
<GarethAdams> Can I use Regexp.union with an array of strings to make a case-insensitive regular expression?
<injekt> criego: you should rescue the actual exception
<GarethAdams> or, can I do anything with the output of Regexp.union to *make* it case insensitive
pipework has joined #ruby-lang
<injekt> criego: maybe it doesn't inherit from StandardError
<criego> injekt: I thought a unspecified rescue caught everything
<injekt> no
<criego> Ah. Must be it. Tx
<injekt> it catches StandardError
<injekt> Exception would be everything
<injekt> GarethAdams: maybe Regexp.new(x.source, Regexp::IGNORECASE)
<GarethAdams> yeah I was just looking at that
<injekt> GarethAdams: where x is Regexp.union
<GarethAdams> guess it's the best option
_jpb_ has quit [Ping timeout: 260 seconds]
<GarethAdams> ta
mbj_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
Austin__ has joined #ruby-lang
pipework has quit [Remote host closed the connection]
Austin__ has left #ruby-lang [#ruby-lang]
<ericwood> the regexes have unionized
krohrbaugh has quit [Client Quit]
krohrbaugh has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
jxpx777 has quit [Quit: Leaving...]
mikewintermute has joined #ruby-lang
bradland has joined #ruby-lang
spacesuit has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
DomKM has joined #ruby-lang
bgant has quit [Quit: Leaving.]
tylersmi_ has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
mbj has joined #ruby-lang
_carloslopes has quit [Remote host closed the connection]
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
snarfmason has joined #ruby-lang
<GarethAdams> ericwood: I prefered when they were ionized
carloslopes has joined #ruby-lang
roadt has quit [Ping timeout: 256 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
mikewintermute has quit [Ping timeout: 260 seconds]
mikewintermute has joined #ruby-lang
kgrz has quit [Ping timeout: 256 seconds]
GarethAdams has quit [Quit: Leaving...]
zmike123 has quit [Ping timeout: 256 seconds]
mikewintermute has quit [Ping timeout: 252 seconds]
publicvoid_ has joined #ruby-lang
bgant has joined #ruby-lang
_elia has joined #ruby-lang
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
verto has joined #ruby-lang
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby-lang
elia has quit [Ping timeout: 276 seconds]
elia has joined #ruby-lang
gregmoreno has joined #ruby-lang
zmike123 has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby-lang
_jpb_ has quit [Ping timeout: 251 seconds]
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
spacesuit has quit [Quit: spacesuit]
_jpb_ has joined #ruby-lang
enebo has quit [Quit: enebo]
judofyr has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 260 seconds]
runeb has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
jds__ has joined #ruby-lang
tonni has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
tonni has quit [Ping timeout: 256 seconds]
philnyc has quit [Ping timeout: 246 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
enebo has joined #ruby-lang
<jds__> On my Mac, setting LC_ALL=en_US.UTF-8 is sufficient for ruby to set the default external encoding to UTF-8. On a solaris server, the same ruby version seems to completely ignore LC_ALL/LANG. The only thing I've found that affects it is "ruby -E UTF-8"
<jds__> Any ideas why?
adambeynon has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby-lang
arya_ has left #ruby-lang [#ruby-lang]
<Mon_Ouie> Same Ruby version?
Voker57 has quit []
<Mon_Ouie> Oh, you said that, sorry :p
<Mon_Ouie> (Same patchlevel too though?)
jstorimer has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
loincloth has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby-lang
andrewvos has quit [Quit: leaving]
enebo has quit [Quit: enebo]
<jds__> Mon_Ouie: Yeah, both 194
jxpx777 has joined #ruby-lang
saarinen has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
ia___ has joined #ruby-lang
Pupeno_ has joined #ruby-lang
symm- has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
krohrbaugh has quit [Quit: Leaving.]
Pupeno has quit [Ping timeout: 268 seconds]
justinram has joined #ruby-lang
fragamus has joined #ruby-lang
<Mon_Ouie> So what encoding does LC_ALL='…' ruby -e 'p Encoding.default_external' give you?
snarfmason has quit [Quit: Computer has gone to sleep.]
snarfmason has joined #ruby-lang
<jds__> Mon_Ouie: US-ASCII
mbj has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby-lang
krohrbaugh has joined #ruby-lang
<jds__> (Sorry - got to run, but if anyone has suggestions they'd be appreciated)
<Mon_Ouie> Hm. Maybe $RUBYOPT contains something that changes the default encoding?
<darix> or compile time
M_BlX has joined #ruby-lang
<whitequark> >> Encoding.default_external
<eval-in> whitequark => #<Encoding:UTF-8> (https://eval.in/35102)
<whitequark> 19>> Encoding.default_external
<eval-in> whitequark => #<Encoding:UTF-8> (https://eval.in/35103)
jstorimer has joined #ruby-lang
__butch__ has joined #ruby-lang
mbj has joined #ruby-lang
saarinen has quit [Quit: saarinen]
pipework has joined #ruby-lang
runeb has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
saarinen has joined #ruby-lang
_jpb_ has quit [Ping timeout: 252 seconds]
_jpb_ has joined #ruby-lang
tonni has joined #ruby-lang
roadt has joined #ruby-lang
__butch__ has joined #ruby-lang
mrsolo has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 248 seconds]
rickhull has quit [Read error: Operation timed out]
poga has joined #ruby-lang
rickhull has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
runeb has joined #ruby-lang
kgrz has joined #ruby-lang
mbj has quit [Ping timeout: 240 seconds]
Iskarlar has joined #ruby-lang
Iskarlar has left #ruby-lang [#ruby-lang]
skade has joined #ruby-lang
kgrz has quit [Ping timeout: 248 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
jerrytgarcia has joined #ruby-lang
jerrytgarcia has quit [Remote host closed the connection]
silorge has joined #ruby-lang
<silorge> Hello
vlad_starkov has joined #ruby-lang
justinra_ has joined #ruby-lang
_jpb_ has quit [Ping timeout: 248 seconds]
justinram has quit [Ping timeout: 240 seconds]
_jpb_ has joined #ruby-lang
loinclot_ has joined #ruby-lang
loincloth has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
rickruby has joined #ruby-lang
symm- has quit [Ping timeout: 246 seconds]
rickruby has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
mbj has joined #ruby-lang
cmaxw_ has joined #ruby-lang
cmaxw_ has quit [Client Quit]
Pupeno_ has quit [Remote host closed the connection]
Aloysius1 has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
<bradland> does anyone happen to know Josh Goebel's IRC handle?
zomgbie has quit [Read error: Operation timed out]
_jpb_ has joined #ruby-lang
runeb has quit [Remote host closed the connection]
fragamus has quit [Quit: Computer has gone to sleep.]
zomgbie__ has quit [Ping timeout: 252 seconds]
benlovell has joined #ruby-lang
Weems has joined #ruby-lang
spacesuit has joined #ruby-lang
kristofferrr has joined #ruby-lang
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 240 seconds]
benlovell has quit [Remote host closed the connection]
Weems has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
<Joni_79> evening
zomgbie has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 259 seconds]
zomgbie_ has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
scottschecter has quit [Ping timeout: 240 seconds]
carloslopes has quit [Remote host closed the connection]
Sambalero has quit [Ping timeout: 275 seconds]
<Joni_79> https://gist.github.com/vuorejo1/5870536 I'm doing ruby koans again. Any idea why my triangle exceptions dont work?
<Joni_79> An I know the method it self is not pretty, don't mind it. :)
Voker57 has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
<apeiros> Joni_79: "don't work" is *never* an acceptable problem description.
Guest59533 has joined #ruby-lang
Guest59533 is now known as diegoviola
<Joni_79> ehem, let me rephrase that
<eam> Is this the best way to do this in ruby-ish style? https://gist.github.com/eam/5870587 sort a list according to an explicitly defined ordering
<apeiros> eam: sort_by
<Joni_79> ruby koans tests won't go trough. it hangs and says: The answers you seek... No side can be zero or negative
<apeiros> ok
<apeiros> your condition is if a >= 0 || b >= 0 || c >= 0
<Joni_79> it seems to me that id does raise the exception, but the tests eg. assert_raise(TriangleError) do triangle(0, 0, 0) end
<apeiros> that says if any side is bigger or equal zero…
<apeiros> I'm quite sure that's not what you wanted it to say
<Joni_79> wow. I've not felt this stupid since.. well yesterday when I asked something here last...
saarinen has quit [Quit: saarinen]
<Joni_79> apeiros: thanks for the loan of your eyes.. I've been staring at that for too long it seems
runeb has joined #ruby-lang
<Joni_79> now it passes the test: if a <= 0 || b <= 0 || c <= 0
zomgbie has quit [Read error: Connection reset by peer]
zomgbie_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
Weems has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
Nisstyre-laptop is now known as Nisstyre
<Joni_79> apeiros: thanks again. I feel so stupid and yet so happy. :)
<apeiros> :)
lguardiola has quit [Quit: Good bye!]
publicvoid_ has quit [Ping timeout: 256 seconds]
lguardiola has joined #ruby-lang
lguardiola has quit [Remote host closed the connection]
mistym is now known as mistym_lunch
lguardiola has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
Pupeno has joined #ruby-lang
ffio_ has quit [Quit: WeeChat 0.4.1]
gregmore_ has quit [Remote host closed the connection]
<eam> apeiros: awesome, thanks
Pupeno has quit [Ping timeout: 240 seconds]
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
gregmoreno has joined #ruby-lang
zmike123 has quit [Quit: ~]
havenwood has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
benanne has joined #ruby-lang
diegoviola has quit [Ping timeout: 256 seconds]
tRAS has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
jerrytgarcia has quit [Client Quit]
Nisstyre has quit [Ping timeout: 260 seconds]
diego1 has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
diego1 is now known as diegoviola
malev_ has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
saarinen has joined #ruby-lang
_jpb_ has quit [Ping timeout: 248 seconds]
synthetix has joined #ruby-lang
_jpb_ has joined #ruby-lang
MaddinXx has joined #ruby-lang
drueck has joined #ruby-lang
machuga is now known as machuga|away
hinbody has joined #ruby-lang
vlad_starkov has joined #ruby-lang
krohrbaugh has joined #ruby-lang
roadt has quit [Ping timeout: 264 seconds]
nathanstitt has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
DomKM has quit [Quit: Leaving.]
tRAS has quit [Quit: Mother, did it need to be so high?]
jsullivandigs has quit [Remote host closed the connection]
drueck has left #ruby-lang [#ruby-lang]
drueck has joined #ruby-lang
jsullivandigs has joined #ruby-lang
postmodern has joined #ruby-lang
levifig has quit [Read error: Operation timed out]
jsulliva_ has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
atmosx_desktop has joined #ruby-lang
atmosx_desktop has quit [Client Quit]
levifig has joined #ruby-lang
<drueck> For the last couple of days I've been getting seg faults.
<drueck> I'm running Rails 4 and Ruby 2.
<drueck> Looking for some advice on troubleshooting... or if I should report a bug, and to whom?
<whitequark> drueck: -p0?
<drueck> Yeah.
<whitequark> 2.0.0-p0?
<whitequark> yeah
<whitequark> known bug
<whitequark> upgrade
<drueck> Oh... cool. Thanks. Will do!
jbsan has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
io_syl has joined #ruby-lang
drueck has left #ruby-lang [#ruby-lang]
kristofferrr has quit [Quit: ❤]
nathanstitt has joined #ruby-lang
jbsan has quit [Quit: jbsan]
ffio has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
bradland has left #ruby-lang [#ruby-lang]
<Aloysius1> Hey, all! Looking for deamonizing tips. I've got a script that I've Thor-ized and now I'm trying to Daemon-ize it. Since the class registers a callback, all the Thor-ized code does is create the object, then sleeps. I've tried to replace that with variations on:
bradland has joined #ruby-lang
<Aloysius1> "Daemonize::call_as_daemon( Proc.new {transformer.wait}, 'my.log', 'aaaaaaaaaaaaa' )"
bradland has quit [Quit: bradland]
Criztian has quit [Remote host closed the connection]
<Aloysius1> I've tried putting the loop in Proc.new and putting in loops with short sleeps, e.g. But all that happens is that the callback is never fired once the Daemonization starts. (It is fired before, however.)
apeiros has quit [Remote host closed the connection]
silorge has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 248 seconds]
jbsan has joined #ruby-lang
<Aloysius1> Fork it, maybe?
<darix> Aloysius1: there are gems for that.
<Aloysius1> I'm using Daemons.
<Aloysius1> Specifically.
<Aloysius1> Not trying to roll my own daemon-ization code, sorry for the ambiguity.
ffio has quit [Quit: WeeChat 0.4.1]
wallerdev has quit [Ping timeout: 256 seconds]
jstorimer has joined #ruby-lang
tenderlove has joined #ruby-lang
elia has joined #ruby-lang
jbsan has quit [Quit: jbsan]
mbj has joined #ruby-lang
_jpb_ has quit [Ping timeout: 276 seconds]
_jpb_ has joined #ruby-lang
mistym_lunch is now known as mistym
guns has joined #ruby-lang
jbsan has joined #ruby-lang
duph has joined #ruby-lang
<Aloysius1> Wow, I guess I was overthinking it. I just added "Process.daemon" and that seems to have done it.
toretore has quit [Quit: This computer has gone to sleep]
setmeaway has quit [Ping timeout: 246 seconds]
spacesuit has quit [Quit: spacesuit]
toretore has joined #ruby-lang
Sambalero has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
scampbell has quit [Remote host closed the connection]
MartynKeigher has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
Aloysius1 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
MartynKeigher has joined #ruby-lang
toretore has quit [Quit: Leaving]
duph has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 248 seconds]
hhatch has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
beawesomeinstead has quit [Read error: Operation timed out]
wmoxam has quit [Ping timeout: 276 seconds]
UziMonkey___ has quit [Read error: Operation timed out]
ldnunes has quit [Quit: Leaving]
Aaaarg has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
toretore has joined #ruby-lang
Nisstyre has joined #ruby-lang
fridim__ has quit [Ping timeout: 264 seconds]
mbj has quit [Ping timeout: 264 seconds]
mbj has joined #ruby-lang
Aaaarg has quit [Remote host closed the connection]
guns has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
runeb has joined #ruby-lang
krohrbaugh has joined #ruby-lang
randym_ has joined #ruby-lang
M_BlX has quit [Remote host closed the connection]
eugenejen has quit [Quit: eugenejen]
saarinen has quit [Quit: saarinen]
zenspider has joined #ruby-lang
andrewvos has joined #ruby-lang
x0f_ has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 276 seconds]
jstorimer has quit [Remote host closed the connection]
mbj has quit [Quit: leaving]
jstorimer has joined #ruby-lang
lcdhoffman has joined #ruby-lang
runeb has quit [Remote host closed the connection]
ruby-lang868 has joined #ruby-lang
saarinen has joined #ruby-lang
runeb has joined #ruby-lang
SilverKey has quit [Quit: Zzzzzz.]
_jpb_ has quit [Ping timeout: 264 seconds]
_jpb_ has joined #ruby-lang
nofxx has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
jstorimer has quit [Remote host closed the connection]
runeb has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby-lang
breakingthings has quit [Quit: breakingthings]
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
Aloysius1 has joined #ruby-lang
wallerdev has quit [Client Quit]
<Aloysius1> Well, maybe not. It creates a daemon process just fine, but that process seems to swallow messages and not produce any results. :-/
wallerdev has joined #ruby-lang
Nisstyre has quit [Ping timeout: 260 seconds]
ruby-lang868 has quit [Ping timeout: 250 seconds]
dernise has quit [Quit: This computer has gone to sleep]
Nisstyre has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
krohrbaugh has joined #ruby-lang
havenwood has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 256 seconds]
marr has joined #ruby-lang
pipework has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
ryez has quit [K-Lined]
dhruvasagar has quit [Ping timeout: 252 seconds]
verto has quit [Ping timeout: 264 seconds]
wmoxam has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
krohrbaugh has quit [Quit: Leaving.]
_jpb_ has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
toretore has quit [Quit: Leaving]
narya has quit [Remote host closed the connection]
diego1 has joined #ruby-lang
countdigi has quit [Quit: Lost terminal]
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
skade has quit [Quit: Computer has gone to sleep.]
<postmodern> so is autoload going away, or is it staying?
nathanstitt has quit [Quit: I growing sleepy]
<drbrain> postmodern: only matz knows
skade has joined #ruby-lang
<drbrain> it never gained a warning in 2.0, so it looks like it stays for all of 2.x
<postmodern> drbrain, ok that's reassuring
<postmodern> drbrain, want to use it, since auto-completion works with it
<drbrain> I use it
<drbrain> I use it in rdoc and rubygems
skade has quit [Client Quit]
<postmodern> drbrain, const_missing/require tricks break auto-complete
<drbrain> fortunately autoload is a blessed version of that :D
<drbrain> a particular individual said "you should remove autoload because it's deprecated" and I said "no it isn't, it doesn't warn" and closed the issue
<drbrain> that made them unhappy
bgant has quit [Quit: Leaving.]
skade has joined #ruby-lang
<chris2> it would be enough if it was threadsafe...
<drbrain> some patches went in to improve something in that area
<drbrain> but I have no idea what they were
<chris2> oh, nice
<drbrain> at least, not anymore
<drbrain> recently there was some discussion saying "should we keep it deprecated due to those patches"?
<drbrain> rather, still mark in deprecated
scottschecter has joined #ruby-lang
diego1 is now known as diegoviola
_jpb_ has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
pipework has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
wmoxam has quit [Ping timeout: 264 seconds]
loinclot_ has quit [Ping timeout: 264 seconds]
runeb has joined #ruby-lang
duph has joined #ruby-lang
runeb has quit [Ping timeout: 248 seconds]
tylersmith has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Ping timeout: 264 seconds]
<rickhull> anyone mess with rocco?
<rickhull> having an issue with Markdown
<rickhull> redcarpet is installed, but it doesn't provide the Markdown constant
<rickhull> symbol/class/module/whatever
mdedetrich has joined #ruby-lang
krohrbaugh has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
<rickhull> ok yeah, it's just not being maintained
workmad3 has joined #ruby-lang
jstorimer has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Aaaarg has joined #ruby-lang
enebo has joined #ruby-lang
tylersmith has joined #ruby-lang
_jpb_ has quit [Ping timeout: 248 seconds]
jstorimer has quit [Ping timeout: 256 seconds]
publicvoid_ has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
_jpb_ has joined #ruby-lang
enebo has quit [Client Quit]
tylersmith has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 253 seconds]
havenwood has joined #ruby-lang
Spaceghost|work has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
MouseTheLuckyDog has joined #ruby-lang
<MouseTheLuckyDog> High how can I get a list of all the local and global variables that I defined?
pipework has quit [Ping timeout: 248 seconds]
Spaceghost|work has quit [Ping timeout: 248 seconds]
<drbrain> ri local_variables global_variables
gregmoreno has quit [Ping timeout: 256 seconds]
<MouseTheLuckyDog> drbrain, only the ones I define. In IRB at least I get a whole bunch of junk.
<drbrain> then you'll need to record the set before you define any, define some, then subtract
Aaaarg has left #ruby-lang [#ruby-lang]
tylersmith has quit [Ping timeout: 256 seconds]
<MouseTheLuckyDog> drbrain, ruby doesn't have a method to pull those out?
<drbrain> no
benanne has quit [Quit: kbai]
krohrbaugh has joined #ruby-lang
<darix> MouseTheLuckyDog: how should it differ local variables you defined from other local variables?
_jpb_ has quit [Ping timeout: 252 seconds]
<drbrain> original = local_variables; new_local_variable = 1; local_variables - original
<postmodern> is there some secret to sending multi-part emails with the mail gem
<drbrain> in irb you'll need to replace ; with newline
_jpb_ has joined #ruby-lang
<drbrain> postmodern: yes
krohrbaugh has quit [Client Quit]
<drbrain> but I have forgotten it :(
<postmodern> for some reason email clients refuse to render the text/html part, and fall back to the text/plain part
<postmodern> even though i forced the text/html part to be first
GarethAdams has joined #ruby-lang
<drbrain> postmodern: it's difficult to do correctly
justinra_ has quit [Remote host closed the connection]
<drbrain> I know you need to use multipart/alternative for the outer wrapper
<darix> postmodern: well the text/html part is even supported directly isnt it?
<drbrain> and I think the text/html part needs to come first
<darix> fun starts when you want to do gpg encrypted mails
<darix> drbrain: the docs show it with html first yes
<drbrain> darix: last I used mail, it was a matter of calling the methods in the right order to construct the body
<postmodern> drbrain, yeah mail adds that for you
<drbrain> but that was some time ago
<postmodern> darix, yep i can read other html news letters
krohrbaugh has joined #ruby-lang
<darix> i mailed upstream about the problem with gpg encrypted mails
<darix> i got it almost right
<darix> but it insists on encoding something base64 which dont need it
<darix> which breaks decryption on some clients
<MouseTheLuckyDog> Funny I would have thought you needed (local_variables-original ) -[:original]
kirin` has quit [Ping timeout: 248 seconds]
pskosinski has quit [Quit: pskosinski]
<havenwood> MouseTheLuckyDog: :original is in original.
<MouseTheLuckyDog> havenwood that's my point I would have thought it wouldn't be.
andrewvos has quit [Ping timeout: 248 seconds]
<drbrain> MouseTheLuckyDog: the variable is created before evaluating the expression
<drbrain> rather, the right-hand side of the expression
Guest25150 has joined #ruby-lang
kirin` has joined #ruby-lang
Guest25150 is now known as diegoviola
stamina has joined #ruby-lang
hahuang65 has joined #ruby-lang
wmoxam has quit [Ping timeout: 248 seconds]
_jpb_ has quit [Ping timeout: 248 seconds]
_jpb_ has joined #ruby-lang
tomzx_mac has joined #ruby-lang
duph has quit [Quit: Leaving.]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Client Quit]
runeb has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guns has joined #ruby-lang
brianpWins has joined #ruby-lang
charliesome has joined #ruby-lang
<postmodern> darix, drbrain, got it, you have to do this: http://rubydoc.info/gems/mail/Mail/Message#part-instance_method
<drbrain> that looks familiar
<postmodern> of course their README has a different example
<postmodern> i guess some mail clients are strict about multipart/mixed and content-disposition
<drbrain> yeah, it's a big ball of mud
saarinen has quit [Quit: saarinen]
<rickhull> mail is hard. let's go shopping
<postmodern> submitting a PR for their README
diegoviola has quit [Ping timeout: 256 seconds]