apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
larrybolt has quit []
larrybolt has joined #ruby-lang
kurko_ has joined #ruby-lang
larrybolt has quit [Changing host]
larrybolt has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
<hahuang65> man perftools keeps giving me no nodes to print
<hahuang65> -___- wtf
rue has joined #ruby-lang
davidbalbert is now known as davidbalber|away
larrybolt has quit [Remote host closed the connection]
bluepojo has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
larrybolt has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
<larrybolt> I do get what is meant with that steep learning curve, but gosh, I thought yield was already an awesome feature, now just read the bit about $_, sweet! The only thing I really liked about perl was the $_ really, and the returning feature also seems like a very good addition to the language.
<banisterfiend> larrybolt: what is $_
<drbrain> banisterfiend: "The last input line of string by gets or readline."
<banisterfiend> oh ok
<drbrain> (see ri ruby:globals)
<banisterfiend> thx
jondot has quit [Ping timeout: 248 seconds]
wmoxam has quit [Ping timeout: 248 seconds]
wmoxam has joined #ruby-lang
banisterfiend is now known as banister`sleep
Artheist has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
<firefux> I though $_ was discouraged in these days?
nazty has quit [Ping timeout: 240 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
<drbrain> firefux: I don't know who uses it
<larrybolt> Still cool to see it's part of the language :)
joevandyk has joined #ruby-lang
<joevandyk> is there a way to open a file in append mode and find out what line you are on?
<joevandyk> having problems figuring out the mode string
apeiros_ has joined #ruby-lang
glebm has joined #ruby-lang
<drbrain> joevandyk: you will be at position 0
<joevandyk> drbrain: what i want to do is open a file in append mode. if the file is empty, i need to do something. if it's not empty, do something else.
<joevandyk> efficiently
<drbrain> joevandyk: can you give an example "something"?
<drbrain> … reading the IO#seek documentation may help
<joevandyk> if empty; file << 'ok'; else file << 'blah; end
<drbrain> in the file << 'blah' case do you want it to be appended?
<joevandyk> yes
<drbrain> … to the very end?
<joevandyk> my best bet is to open the file, seek to the end, see if lineno == 0, then do the appends
<joevandyk> but not sure if there's a better way
<drbrain> try: open name, 'a+' do |io| io.seek 0, IO::SEEK_END; if io.pos == 0 then … else … end end
<drbrain> I think lineno is only updated when you use gets (or similar)
<drbrain> so it's not as efficient as using IO::SEEK_END
marr has quit [Ping timeout: 256 seconds]
<joevandyk> drbrain: worked! thanks
<joevandyk> what's the '+' do again?
<joevandyk> create if not exist?
<drbrain> append + read
<joevandyk> ah, right
gregmor__ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Ping timeout: 255 seconds]
gregmor__ has quit [Ping timeout: 248 seconds]
srbaker has joined #ruby-lang
mistym has joined #ruby-lang
joevandyk has quit [Quit: joevandyk]
dhruvasagar has joined #ruby-lang
charliesome has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
apeiros_ has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
mehwork has quit [Quit: leaving]
dhruvasagar has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Ping timeout: 246 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
gregmoreno has joined #ruby-lang
gregmor__ has joined #ruby-lang
larrybolt has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
gregmoreno has quit [Ping timeout: 272 seconds]
enebo has quit [Quit: enebo]
mistym has quit [Remote host closed the connection]
torrieri has quit [Quit: Leaving...]
dhruvasagar has quit [Ping timeout: 256 seconds]
srbaker has joined #ruby-lang
havenwood has joined #ruby-lang
apeiros_ has joined #ruby-lang
Bosox20051 has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
apeiros_ has quit [Ping timeout: 264 seconds]
sn0wb1rd has quit [Ping timeout: 244 seconds]
io_syl_ has joined #ruby-lang
io_syl has quit [Ping timeout: 264 seconds]
io_syl_ is now known as io_syl
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
KU0N has quit [Quit: Leaving...]
apeiros_ has joined #ruby-lang
jhn has joined #ruby-lang
gregmor__ has quit [Remote host closed the connection]
<jhn> would anyone here want to proofread/critique a college transfer essay that's due in 2 hours?
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 245 seconds]
Jaynx has quit [Read error: Connection reset by peer]
kurko_ has quit [Quit: Computer has gone to sleep.]
apeiros_ has quit [Ping timeout: 256 seconds]
torrieri has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<mitchty> 123 not it
<mitchty> just bribe an english major with beer
kurko_ has joined #ruby-lang
lsegal has joined #ruby-lang
urbanmonk has joined #ruby-lang
apeiros_ has joined #ruby-lang
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Quit: leaving]
jxie has joined #ruby-lang
apeiros_ has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
sush24 has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 252 seconds]
fire has joined #ruby-lang
gregmoreno has joined #ruby-lang
tatertots has joined #ruby-lang
tatertots has left #ruby-lang [#ruby-lang]
kurko_ has quit [Quit: Computer has gone to sleep.]
gregmoreno has quit [Ping timeout: 252 seconds]
dopie has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby-lang
joevandyk has joined #ruby-lang
hakunin_ has joined #ruby-lang
hakunin has quit [Ping timeout: 245 seconds]
priodev has quit [Ping timeout: 245 seconds]
priodev has joined #ruby-lang
apeiros_ has quit [Ping timeout: 255 seconds]
kgrz has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 255 seconds]
mistym has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
kurko_ has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
kgrz has joined #ruby-lang
apeiros_ has joined #ruby-lang
linc01n has quit [Ping timeout: 276 seconds]
linc01n has joined #ruby-lang
klebervirgilio has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
apeiros_ has quit [Ping timeout: 246 seconds]
kgrz has quit [Read error: Connection reset by peer]
pepper_chico has joined #ruby-lang
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
io_syl has joined #ruby-lang
slyphon has quit [Quit: slyphon]
CoverSlide has quit [Read error: Operation timed out]
torrieri has quit [Quit: Leaving...]
iamjarvo has quit [Quit: Leaving.]
torrieri has joined #ruby-lang
CoverSlide has joined #ruby-lang
sush24 has joined #ruby-lang
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
tomzx_mac has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
bzalasky has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
apeiros_ has joined #ruby-lang
torrieri has joined #ruby-lang
bzalasky has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
jhn has quit [Quit: Page closed]
dhruvasagar has joined #ruby-lang
<mfn> Are there any known issues building pry for 1.9.3-p392 ? http://pastie.org/private/xagtmjsnosbypvt5pyljrw . Works fine with p385
<mfn> meant pry-debugger, actually
apeiros_ has quit [Ping timeout: 260 seconds]
<mfn> ok, weird. just had to manually installed 'debugger' gem first
<Paradox> haha
jonahR has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
kurko_ has joined #ruby-lang
mercwithamouth has quit [Read error: Operation timed out]
Bosox20051 has quit [Quit: Leaving]
datanoise has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby-lang
apeiros_ has joined #ruby-lang
wmoxam has quit [Ping timeout: 256 seconds]
davidbalber|away is now known as davidbalbert
havenwood has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
kgrz has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
apeiros_ has quit [Ping timeout: 248 seconds]
rippa has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
datanoise has joined #ruby-lang
wmoxam has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
sush24 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
mantono has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby-lang
Honeycomb has joined #ruby-lang
swav has joined #ruby-lang
davidbalbert is now known as davidbalber|away
redbaritone has joined #ruby-lang
redbaritone has quit [Client Quit]
linc01n has quit [Ping timeout: 264 seconds]
kgrz has quit [Ping timeout: 260 seconds]
hakunin has joined #ruby-lang
apeiros_ has quit [Ping timeout: 246 seconds]
hakunin_ has quit [Ping timeout: 272 seconds]
<mfn> lol
nertzy2 has quit [Ping timeout: 276 seconds]
nertzy has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 252 seconds]
<mfn> What would be an idiomatic array to iterate an array and return a single result. but if no single result found, do something else. if not (single_result = array.magic { ..}); # no match; end
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
swav has quit [Ping timeout: 248 seconds]
<TTilus> mfn: array.detect/any/select/whatnot { ... } or something_else_when_no_match
apeiros_ has joined #ruby-lang
<TTilus> mfn: just make sure the first part returns nil or false when no single result was found
klebervirgilio has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
apeiros_ has quit [Ping timeout: 248 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
<mfn> got it. using ary.map{}.select{}[0] now. may ret nil which is ok. thx!
<drbrain> mfn: find {…} == select {…}.first
<badeball> mfn: mapping the entire array seems unnecessary.
<badeball> considering you want only the first occurrence.
<mfn> yeah, I only want the first
dhruvasagar has quit [Ping timeout: 246 seconds]
<mfn> ARGL
<badeball> :)
<mfn> ok, that's why i hate the docs their. they simply should include the included modules methods. what a hassle. thx
<mfn> s/their/there/
<badeball> the docs are kinky that way. methods added by included modules does not show up.
<mfn> qed :D
datanoise has joined #ruby-lang
<mfn> thx, find is more awesome
Artheist has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
xcombelle has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has joined #ruby-lang
solars has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
dc5ala has joined #ruby-lang
Artheist has quit [Remote host closed the connection]
joxer has joined #ruby-lang
adambeynon has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
swav has joined #ruby-lang
earthquake has joined #ruby-lang
techlife has quit [Ping timeout: 256 seconds]
toretore has joined #ruby-lang
swav has quit [Ping timeout: 256 seconds]
sush24 has quit [Ping timeout: 245 seconds]
<mfn> I must be stupid. I discovered (through irb) that my DateTime object has a method second_fraction. Yet I can't find it anywhere in the docs? d.method(:second_fraction) #=> #<Method: DateTime(Date)#second_fraction> but nothing on http://www.ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/DateTime.html ?
techlife has joined #ruby-lang
lsegal has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
marr has joined #ruby-lang
Honeycomb has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby-lang
<badeball> mfn: you can see it defined and its behavior in the ruby source code, but it's not documented. not sure why.
mantono has quit [Ping timeout: 272 seconds]
datanoise has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
joevandyk has quit [Quit: joevandyk]
kgrz has joined #ruby-lang
glebm has quit [Ping timeout: 272 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
glebm has joined #ruby-lang
kgrz has quit [Ping timeout: 272 seconds]
hhatch has joined #ruby-lang
hhatch has quit [Client Quit]
nXqd has joined #ruby-lang
dhruvasagar has joined #ruby-lang
robbyoconnor has joined #ruby-lang
kevinfagan has quit [Quit: Leaving...]
jxie has quit [Quit: leaving]
d3vic3 has joined #ruby-lang
hhatch has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
hhatch has quit [Read error: Operation timed out]
krz has joined #ruby-lang
hhatch has joined #ruby-lang
kevinfagan has joined #ruby-lang
nXqd has quit [Ping timeout: 244 seconds]
torrieri has quit [Quit: Leaving...]
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
sheerun_ has quit [Remote host closed the connection]
ottbot has joined #ruby-lang
kevinfagan has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
linc01n has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
KU0N has joined #ruby-lang
ryanf has joined #ruby-lang
torrieri has joined #ruby-lang
gustavnils has joined #ruby-lang
maxmanders has joined #ruby-lang
torrieri has quit [Ping timeout: 260 seconds]
banister`sleep has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
HansPampel has left #ruby-lang [#ruby-lang]
scepticulous has joined #ruby-lang
gokul has joined #ruby-lang
jondot has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
<ryanf> charliesome: are you using console or gui vim?
<charliesome> ryanf: console
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<ryanf> hmm, that might be why you're having bad luck
mytrile has quit [Remote host closed the connection]
<ryanf> vim's color scheme system lets you specify 16-color, 256-color and 65536-color representations for each highlight group
<ryanf> and does not infer any of them based on the others
<rking> I'm not seeing charliesome's vim problem.
<ryanf> rking: look out of band
<charliesome> i have 256 colours turned on
<ryanf> charliesome: did you try the Tomorrow ones?
<ryanf> I especially like Tomorrow-Night-Eighties
<rking> (Ah)
<charliesome> ryanf: link
<rking> charliesome: In a league of its own, I give you: https://github.com/rking/vim-detailed
<charliesome> i use cobalt in ST2, which is my main editor
<charliesome> both the cobalt.vims i found broke hard
<rking> I would pit that scheme against any other, hands-down.
<charliesome> thx
* rking needs to make screenshots
<charliesome> i think something is messed with my config
<charliesome> but this shit should not be that hard
<ryanf> I have a cobalt but it looks like it only is meant for the gui
<rking> Most color schemes just fiddle with giving you the same 8 syntax groups but highlighted in different ways.
<rking> vim-detailed hooks into dozens of syntax groups for Ruby.
<charliesome> this is what solarized looks like on my vim: http://i.imgur.com/fKCi2yg.png
<ryanf> haha wtf
<ryanf> yeah your shit is fucked, solarized looks fine on console vim for me
kristofferrr has joined #ruby-lang
<rking> "if/end" are yellow, so the body in between that is light yellow.
<rking> "do/end" are orange, so the body in between is light orange
<rking> etc
<ryanf> rking: I'm not sure the world is ready for vim-detailed, honestly
<charliesome> rking: i'm not sure i'm ready for vim-detailed
<rking> charliesome: Wait, you're on a light bg??
<rking> Haha
<charliesome> rking: i'm on a dark bg
mytrile has joined #ruby-lang
<charliesome> which is the hilarious thing
<rking> charliesome: Did you try it?
<ryanf> charliesome: whoa, that was a lie, solarized light looks bad in the console for me
<ryanf> I only switched from macvim recently
<rking> Solarized has never impressed me.
<ryanf> the tomorrow themes do work perfectly in the console though
<ryanf> definitely recommend them
<rking> Great marketing, weak impl.
<ryanf> rking: I like it sometimes
<ryanf> and yeah, haha
<ryanf> re: marketing
<charliesome> see, if sublime text supported tab width != indentation width, i would not have to bother with vim
<charliesome> but unfortunately, i must deal with vim
<rking> charliesome: I'm 100% sure vim has more long-term value.
<ryanf> I wonder if there's a tool that can automatically adapt gui themes for 256-color
mytrile has quit [Remote host closed the connection]
<rking> ryanf: Yeah
<ryanf> it seems like almost all of the themes I have don't bother setting colors for 256-color
<ryanf> and look horrible
* rking doesn't care, since they're just using 8 buckets, but there definitely is a tool for that.
ottbot has quit [Ping timeout: 252 seconds]
<charliesome> so would they look better on a different color setting?
<rking> No, I just mean that they're dumb.
<rking> If you can find a color scheme, other than detailed.vim, that distinguishes between "rm -rf ~" and `rm -rf ~`, please let me know.
<ryanf> charliesome: no, they'd look better in macvim/gvim
<ryanf> one sec though, I'm about to try https://github.com/godlygeek/csapprox
<ryanf> since you made me realize that all my themes look horrible in the console
<charliesome> rking: cobalt on sublime distinguishes
<rking> ryanf: That's the one
<rking> charliesome: A vim theme. =P
<ryanf> verdict: it works pretty dang well
<charliesome> ryanf: how do i install this o:
<ryanf> are you using pathogen or vundle or anything?
<charliesome> nope
<charliesome> im just using directories and stuff
<rking> Fix that.
d3vic3 has quit [Ping timeout: 248 seconds]
<charliesome> nah
xcombelle has quit [Remote host closed the connection]
<ryanf> do you have anything in your .vim folder
<rking> Pathogen is definitely what I recommend.
<charliesome> ryanf: i have ~/.vim/colors/blah
<ryanf> oh ok
<ryanf> you can just throw all the stuff in that repo into your .vim and it should work
<charliesome> oh cool
<ryanf> if you ever want to install another plugin it won't be fun though
<rking> charliesome: If you want a halfway-decent vim setup, a plugin manager is all but required.
<ryanf> rking: you're so dogmatic
<charliesome> rking: i don't care enough about vim to get a fancy plugin manager going
<ryanf> he will learn that if/when he gets around to installing more stuff
<ryanf> it's fine
methods1 has joined #ruby-lang
<charliesome> alls i wanted was a nice colour scheme in vim that used my terminal's 256 colour capabilities
<charliesome> now i'm learning how deep the "make vim usable" rabbit hole goes
swav has joined #ruby-lang
<ggreer> considering how much time we spend in our editors, it makes sense to customize them heavily
<rking> I disagree. Making it easy to install/remove plugins in a maintainable way (copying and splatting files all over the place doesn't count as maintainable) is important to get good with a good set of plugins.
<charliesome> ggreer: vim is not my primary editor
<charliesome> but i need to use it for some shit
<ggreer> doesn't matter if it's your primary or not. it matters how much time you spend using it
<ggreer> it adds up pretty quickly. a year of occasional vim usage is much more time than one would spend configuring vim
joschi has quit [Remote host closed the connection]
joschi has joined #ruby-lang
<rking> ♥.
<rking> I just don't really understand the cost of Pathogen.
<ggreer> yesssss I've tied my record for days of consecutive commits
<rking> It's exactly like installing other plugins manually, but it's the only one you have to do that way.
<rking> ggreer: Me, too!
<ggreer> 55 days
<ryanf> rking: I don't understand what's hard to understand
<ryanf> pathogen is great if you are making an actual vim setup that you plan to use
<ryanf> the added effort of doing that is pointless if you're not going to actually use it as your editor
<ggreer> I use vundle, but only because my friends use it
<ryanf> there's a time and a place
<ryanf> ggreer: I use vundle too
<charliesome> it seems like the only reason you need a plugin manager for vim is because it's such a fucker to get working in the first place
<ryanf> I like it better than pathogen
<ggreer> sublime has a package manager too
<ryanf> it's more just because it has a really unfortunate native paradigm for installing plugins
<ggreer> and emacs added one in v24
beho has joined #ruby-lang
<charliesome> sublime package control breaks half the time for me so i gave up on it
<ggreer> I use it for some stuff, but only because I want my plugins to work with it
<rking> ryanf: It just seems like really short-term thinking to splat everything into the ~/.vim/* dirs
<ggreer> it's very buggy. doubly-so now that wbond is making it compatible with st2 and st3
<ryanf> that is correct
<ryanf> luckily, the added marginal cost of backing that out when it's time for plugin #2 is essentially nothing
<rking> ryanf: It's like somebody is doing Ruby, and they wanted to copy and paste gems into their project's lib/ dir instead of just using bundler.
<rking> ggreer: I forget, what's your favored editor?
<ggreer> textmate 1.5
<charliesome> i still love textmate
* ggreer pours some malt liquor on the curb for his homie abandonware
<ryanf> I don't understand what people prefer about textmate compared to sublime
<ryanf> I mean, I guess most people don't, but sometimes I hear people say that and I don't know what they're thinking about
<ryanf> unless they're just emotionally attached to it
<ggreer> the sidebar is still better in tm1.5
<ggreer> and I have some sweet plugins like ackmate (well, my own fork of ackmate) and git integration and whatnot
<charliesome> textmate really sucks on large codebases
<ryanf> yeah
<ryanf> that's why I switched to vim in the first place
<charliesome> i used TM1.5 up until december last year
<ryanf> also
<charliesome> then i started working on a massive codebase
<charliesome> switched to sublime
banister`sleep has joined #ruby-lang
<ryanf> the fuzzy file matching is a sick joke on rails apps
<ggreer> also I have a plugin that disables project refresh on focus. that makes it work with arbitrarily large codebases
<ryanf> where there's 10 files called show.html.erb
<ryanf> and it doesn't fucking let you distinguish them
<ggreer> ryanf: ah yeah the default file search sucks in tm1.5. sublime is better in that regard
<ggreer> since it searches the whole path, not just the filename
<ryanf> yeah
<ryanf> also sublime is sooo fast
<ryanf> at that
<ryanf> compared to vim too
<ggreer> but yet again, there are plugins that fix that in tm1.5
<charliesome> ryanf: csapprox errors out
<ryanf> hmm, interesting
<ryanf> maybe you're running an older version than me
<ryanf> or maybe you installed it wrong somehow
<charliesome> probably just running whatever came with my os
<rking> Rubennn: That "show.html.erb" problem is on Sublime?
<ryanf> no, it's on textmate
<ryanf> it's fine on sublime because it includes the dirname in the fuzzy matching
<ryanf> and shows you the whole path
banister`sleep has left #ruby-lang [#ruby-lang]
<rking> charliesome: Wait, you're using the default vim version from OS X?
<charliesome> rking: yah
<ryanf> yeah you should brew install that shit
* rking tries not to freak out.
banisterfiend has joined #ruby-lang
<ggreer> I'm guessing that's a really old version of vim
<banisterfiend> l
<ggreer> with few features
<rking> banisterfiend: o
<charliesome> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 31 2011 19:27:29)
<charliesome> Compiled by root@apple.com
<ryanf> wow
<rking> The biggest thing that version is missing is persistent undo (quit a file, come back and hit 'u' to get back to where you were)
<ryanf> that's an honor
<ryanf> your vim was personally compiled by root
<charliesome> i know right
<ryanf> he's a busy guy
<rking> That's Woz, right?
<ggreer> I could compile a version of vim that says it was compiled by root@apple.com
gokul has quit [Quit: Leaving]
<rking> That's such a great example of the level of Unix I expect to see from Apple. Fumbling around compiling stuff as root, not changing the email address.
<rking> I haven't decided if the things they did, like plists, are for good reasons or because they didn't want to bother with learning/improving existing things.
<charliesome> aren't plists a relic from next step
<rking> Good question.
<ryanf> plist is such a hilarious format
<charliesome> plist is shit
<ryanf> it's adorable
<rking> I actually do like how it's multi-format.
<rking> Save as human-readable JSON, a little bit later it's been swizzled to binary.
<ggreer> looks like plists are from nextstep
maxmanders has quit [Quit: Computer has gone to sleep.]
<rking> I'm surprised that GNUstep used it
<charliesome> rking: then it gets turned into xml somehow and you have no idea how
<ggreer> Initial releaseSeptember 18, 1989
larrybolt has joined #ruby-lang
larrybolt has quit [Changing host]
larrybolt has joined #ruby-lang
<rking> One plist thing that's pretty horrible is those blobs of steps you're supposed to do to get things to run on startup.
<ggreer> for software that's approaching a quarter-century since its birth, I'll allow some silliness like plists
<rking> Instead of adding an /etc/init.d script to a certain runlevel, you're doing like cp /Library/monkeything/foo.plist ~/Library/runstuff and then some follow-on command.
<ryanf> rking: iirc there was some talk of linuxes trying to adopt launchd
<ryanf> but they didn't because the license is weird
<ggreer> it's apache 2.0
swav has quit [Remote host closed the connection]
<ryanf> ah
<ryanf> The Ubuntu Linux distribution considered using launchd in 2006. However, launchd was rejected as an option because it was released under the Apple Public Source License – which at the time was described as an "inescapable licence problem".[5] Ubuntu instead developed and switched to Upstart, its own service management tool.
<ryanf> In August 2006, Apple relicensed launchd under the Apache License, Version 2.0 in an effort to make adoption by other open source developers easier.[6] However, most common open source operating systems use systemd or continue with inetd instead.
<ryanf> [edit]
<rking> I wonder what the advantage of launchd is.
<ryanf> it's a pretty slick unified system for that stuff
<larrybolt> Could someone explain me or point me to a link explaining the *-prefix for arrays in Ruby? Such as in def index(anObject, *phrases)
<ryanf> not sure how it compares to upstart though, which is also a pretty slick unified system
swav has joined #ruby-lang
<ggreer> it's pretty similar to upstart
<charliesome> larrybolt: that's a splat
<ggreer> well, upstart is pretty similar to launchd :)
<ggreer> of course now linux is moving to systemd. apparently upstart wasn't cool enough
<larrybolt> Thanks charliesome! At least now I know what to look for! ^^
torrieri has joined #ruby-lang
mytrile has joined #ruby-lang
<ggreer> from the people who brought you pulseaudio and GNOME 3... behold, systemd!
<ggreer> (yes I'm serious about that. the main author of pulseaudio is writing systemd)
<charliesome> i think systemd is a cool idea but it's an absolutely shit implementation
<charliesome> it's such a pita to work with
cbhhlfgac has joined #ruby-lang
cbhhlfgac has left #ruby-lang [#ruby-lang]
<charliesome> my server runs arch and i'm trying to stay on initscripts for as long as i can
<larrybolt> Oooh! Lovely! Now I get it! Thanks for the link :)
<ryanf> I'm pretty fond of upstart
<ryanf> at least for simple cases, it's nice to not need a separate tool like monit or whatever
<ggreer> I prefer to use runsv for my own services
<rking> ryanf: Hrm. Thanks for the recommendation. I'll check it out (I've always done ad-hoc monitoring)
swav has quit [Ping timeout: 272 seconds]
<ggreer> mostly because runsv behaves just like daemontools, but I don't have to compile it like daemontools
torrieri has quit [Ping timeout: 252 seconds]
<ggreer> daemontools, qmail, and djbdns are all damn solid. too bad they're so hard to install
<rking> I need to get into a DNS solution
<rking> Back in the day I actually got BIND working OK, but I'm now doing /etc/hosts and don't really want to re-learn BIND
<ggreer> I've never used bind
<rking> (I need stuff like some custom wildcard overrides to localhost, etc)
<ggreer> I've set up djbdns as a caching dns server, but that was just to reduce load on the crappy ISP's servers
<rking> ggreer: When you're in a git repo, do you still use ag or do you use git-grep?
mytrile has quit [Ping timeout: 272 seconds]
<ggreer> I use ag
<rking> I have measured a tiny bit of speed improvement from git-grep, but I don't bother with it, generally
<ggreer> Exams are 40% of your grade. Also three types of homework.
<ggreer> 1. Read assigned parts of textbook.
<ggreer> 3. 60% of your grade: discover 10 new security holes in deployed UNIX software.
<ggreer> 2. Read assigned C program excerpts before we discuss them in class.
<ggreer> 40 students = 400 new holes.
<ggreer> djb does not baby his students
<rking> ggreer: Wow
<rking> That's solid.
krz has quit [Quit: krz]
Stilo has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
jonahR has quit [Quit: jonahR]
<banisterfiend> ggreer: maximum of 400 new holes, i assume students can rediscover holes found by other students, esp since they probably shouldn't be sharing with one another which holes they've found
benanne has joined #ruby-lang
<rking> I wonder if there's much pressure to make them be good holes, or if you can count extreme race conditions that do small escalations.
justinram has joined #ruby-lang
<rking> I'd try to just lock away 10 to get the grade, even if they're cheap, then keep diving in to find some great ones.
<rking> That's probably a good exercise just in the OSS community.
<rking> Imagine if every Rails dev made it a goal to find one security hole in 2013.
<rking> (Instead of standing around and gawking at the ones other people are finding)
fire has quit [Ping timeout: 256 seconds]
allolex has joined #ruby-lang
<banisterfiend> rking: i think that's what happened a few weeks ago :)
swav has joined #ruby-lang
larrybolt has quit [Remote host closed the connection]
<rking> Hehe
cored has quit [Ping timeout: 264 seconds]
cored has joined #ruby-lang
<ggreer> uh oh the semester is almost over! quick, find some jvm and rails exploits!
fire has joined #ruby-lang
<rking> Haha
mytrile has joined #ruby-lang
torrieri has joined #ruby-lang
kgrz has joined #ruby-lang
torrieri has quit [Ping timeout: 248 seconds]
mytrile has quit [Remote host closed the connection]
larrybolt has joined #ruby-lang
MaddinXx has joined #ruby-lang
swav has quit [Remote host closed the connection]
allolex has quit [Quit: leaving]
swav has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
mytrile has joined #ruby-lang
swav has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
bbfblhhbah has joined #ruby-lang
bbfblhhbah has left #ruby-lang [#ruby-lang]
techlife has quit [Ping timeout: 244 seconds]
gfehfffea has joined #ruby-lang
gfehfffea has left #ruby-lang [#ruby-lang]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
banisterfiend has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
benanne has quit [Ping timeout: 272 seconds]
poga has quit [Remote host closed the connection]
benanne has joined #ruby-lang
krz has joined #ruby-lang
torrieri has joined #ruby-lang
torrieri has quit [Ping timeout: 264 seconds]
larrybolt has quit [Read error: Connection reset by peer]
larrybolt has joined #ruby-lang
larrybolt has joined #ruby-lang
larrybolt has quit [Changing host]
JonsonXP has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
datanoise has joined #ruby-lang
wmoxam has joined #ruby-lang
fuzzy8balls has quit [Read error: Operation timed out]
fuzzy8balls has joined #ruby-lang
sush24 has joined #ruby-lang
techlife has quit [Ping timeout: 246 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Stilo has joined #ruby-lang
lcdhoffman has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
Stilo has quit [Client Quit]
Stilo has joined #ruby-lang
<mitchty> reminds me of sleeps i put in scripts "that should take more time doing things"
larrybolt has quit [Remote host closed the connection]
enebo has joined #ruby-lang
spuk has joined #ruby-lang
larrybolt has joined #ruby-lang
larrybolt has joined #ruby-lang
larrybolt has quit [Changing host]
swav has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
<scepticulous> When I use OpenSSL::PKCS12.create for an intemediate certificate I get an "key values mismatch" exception. The key that is loaded belongs to the certificate and the password is correct. When I do the same thing with a root certificate everything works fine.
lun_ has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
larrybolt has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
larrybolt has joined #ruby-lang
wmoxam has quit [Quit: leaving]
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
larrybolt has quit [Ping timeout: 248 seconds]
swav has quit [Ping timeout: 264 seconds]
srbaker has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
torrieri has joined #ruby-lang
torrieri has quit [Ping timeout: 252 seconds]
swav has joined #ruby-lang
setmeaway has joined #ruby-lang
swav has quit [Remote host closed the connection]
beho_ has joined #ruby-lang
beho has quit [Ping timeout: 244 seconds]
swav has joined #ruby-lang
ddd has joined #ruby-lang
swav has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
intellitech has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby-lang
justinram has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
beho_ has quit [Remote host closed the connection]
ceez has joined #ruby-lang
intellitech has joined #ruby-lang
iamjarvo has joined #ruby-lang
ceez has left #ruby-lang [#ruby-lang]
urbanmonk has quit [Quit: Bye!]
S2kx has quit [Quit: Leaving]
srbaker has quit [Quit: Computer has gone to sleep.]
torrieri has joined #ruby-lang
datanoise has quit [Ping timeout: 272 seconds]
justinram has joined #ruby-lang
torrieri has quit [Ping timeout: 256 seconds]
methods has joined #ruby-lang
methods1 has quit [Read error: Connection reset by peer]
glebm has quit [Ping timeout: 256 seconds]
glebm has joined #ruby-lang
intellitech_ has joined #ruby-lang
intellitech has quit [Read error: Connection reset by peer]
intellitech_ is now known as intellitech
lun_ has quit [Remote host closed the connection]
Nicola2002 has joined #ruby-lang
Nicola2002 has left #ruby-lang [#ruby-lang]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Swimming_Bird has joined #ruby-lang
lun_ has joined #ruby-lang
datanoise has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
rsl has joined #ruby-lang
rsl has quit [Client Quit]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby-lang
jxpx777 has joined #ruby-lang
psyanid3 has joined #ruby-lang
joxer has left #ruby-lang ["God's in his Heaven. All's right with the world!"]
gix has quit [Ping timeout: 252 seconds]
slyphon has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
jxweng has joined #ruby-lang
torrieri has joined #ruby-lang
gix has joined #ruby-lang
jxweng has quit [Client Quit]
sush24 has joined #ruby-lang
apeiros_ has joined #ruby-lang
torrieri has quit [Ping timeout: 245 seconds]
rc- has joined #ruby-lang
<rc-> is there a way to have nickserv recognize that i'm coming from the same IP... every time?
<rc-> isn't nick registering kind of a 5 yr old mentality, anyway?
rsl has joined #ruby-lang
datanoise has joined #ruby-lang
<eam> identity is a pretty big deal for a number of reasons
<eam> rc-: most irc clients let you automatically register on connect
yianna has joined #ruby-lang
mehwork has joined #ruby-lang
<eam> ip addresses are generally not unique per user
<rc-> eam ah, good point, i'll check my client for that
Stilo has joined #ruby-lang
wallerdev has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<yianna> hey everyone
yianna is now known as ykk
<ykk> having some probs with using case, can someone take a look? https://gist.github.com/rubytalantiaios/d6ced5a7965cb4510107
methods has left #ruby-lang [#ruby-lang]
<apeiros_> ykk: that's not really how to use case/when
<ykk> =\
<apeiros_> why did you write `case model`?
<ykk> i dunno i'm trying to understand it
<rc-> ykk you'd also want else return 'string' rather than puts
<rc-> if you want all things equal
<ykk> i was using an if elsif within a hash and that wasn't working lol. so trying to store the conditions in a variable
larrybolt has joined #ruby-lang
larrybolt has joined #ruby-lang
larrybolt has quit [Changing host]
<apeiros_> ykk: if you don't know why you did what you did, I don't know whether what I show you is what you wanted…
<ykk> i'm very new so excuse me if i don't use proper terms
<ykk> understandable apeiros
<apeiros_> ykk: this *might* be what you wanted: http://pastie.org/6366304
<apeiros_> and all the rest is in rc-'s link
<ykk> oh wow
<ykk> that's way different then what i was reading here https://github.com/styleguide/ruby
<ykk> and in matz's book there's no variable after case
mercwithamouth has joined #ruby-lang
<apeiros_> yes there is
davidbalber|away is now known as davidbalbert
<rc-> hehe
<apeiros_> you *can* use case without a variable
<rc-> it's actually the same
<apeiros_> but that's a different way to use it.
<rc-> it's just being used slightly different ways
<rc-> ya
<apeiros_> rc-'s link shows both, as does matz' book
larrybolt has quit [Ping timeout: 272 seconds]
<ykk> so case is a method sorta like many of the operators
<apeiros_> no
<apeiros_> case is syntax, not a method
<ykk> strike 2
<apeiros_> in the `case value; when expression`-form, case uses the === method of the result of `expression`
<apeiros_> again, all in the link
enebo has quit [Quit: enebo]
swav_ has joined #ruby-lang
<ykk> thank you i'll be reading this link
<ykk> so this is considered a construct right? these conditions?
<ykk> and i'm storing this construct in a variable and can call it within a hash later, right?
wallerdev has quit [Quit: wallerdev]
<ykk> am i saying it right or is my accent way off? :P
<ykk> am i in france and instead of asking for water i asked to light my hair on fire?
<apeiros_> you can't store a case/when in a variable
<apeiros_> you can wrap it in a method and call that method
<apeiros_> or you can wrap it in a proc and call that proc
<ykk> aaahhhhh
<ykk> that makes a lot more sense thank you
<apeiros_> you can also store the *result* of the case/when statement
<apeiros_> but the case/when itself can't be stored directly.
<ykk> oh store the result when x == 'string' then variable = 'new string'
JonsonXP has quit [Quit: JonsonXP]
<apeiros_> o0
<apeiros_> variable = case … end # variable will be the result of the case/when statement
swav_ has quit [Ping timeout: 260 seconds]
<apeiros_> variable = case "hello" when "foo" then "A"; when "bar" then "B"; when "hello" then "C"; end # variable == "C"
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
socialcoder has joined #ruby-lang
socialcoder has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<ykk> thank you very much for your time apeiros and rc
<ykk> i have studying to do today =\
fire has quit [Quit: WeeChat 0.4.0]
urbanmonk has joined #ruby-lang
sepp2k has joined #ruby-lang
ykk has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
datanoise has quit [Ping timeout: 264 seconds]
ddd has quit [Ping timeout: 245 seconds]
torrieri has quit [Ping timeout: 252 seconds]
rc- has quit []
ddd has joined #ruby-lang
bzalasky has joined #ruby-lang
solars has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
mwjcomputing has joined #ruby-lang
enebo has joined #ruby-lang
wallerdev has joined #ruby-lang
retro|cz has quit [Ping timeout: 240 seconds]
intellitech has quit [Quit: intellitech]
lcdhoffman has quit [Quit: lcdhoffman]
mytrile has joined #ruby-lang
lun__ has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
psyanid3 has quit [Quit: Textual IRC Client: www.textualapp.com]
adayzdone has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 248 seconds]
fire has joined #ruby-lang
intellitech has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
thone has joined #ruby-lang
thone_ has quit [Read error: Operation timed out]
maxmanders has joined #ruby-lang
glebm has quit [Ping timeout: 256 seconds]
gregmoreno has joined #ruby-lang
Cruze has joined #ruby-lang
glebm has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
ykk has joined #ruby-lang
ykk has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
ykk has joined #ruby-lang
datanoise has joined #ruby-lang
Sinestro has joined #ruby-lang
fire has quit [Quit: WeeChat 0.4.0]
torrieri has quit [Ping timeout: 248 seconds]
cored has quit [Ping timeout: 248 seconds]
larrybolt has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
gregmore_ has joined #ruby-lang
VegetableSpoon has joined #ruby-lang
mytrile has joined #ruby-lang
gregmoreno has quit [Ping timeout: 256 seconds]
fire has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
fire has quit [Client Quit]
bzalasky has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
bzalasky has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 246 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
sepp2k has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
MaddinXx has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
fire has joined #ruby-lang
imajes has joined #ruby-lang
gregmore_ has quit [Ping timeout: 248 seconds]
blowmage` has left #ruby-lang [#ruby-lang]
vlad_starkov has joined #ruby-lang
blowmage has joined #ruby-lang
larrybolt has quit []
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
fire has quit [Client Quit]
fire has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
fire has quit [Quit: WeeChat 0.4.0]
fire has joined #ruby-lang
srbaker has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
VegetableSpoon has quit [Quit: Leaving]
tallship has joined #ruby-lang
swav has joined #ruby-lang
torrieri has joined #ruby-lang
gregmoreno has joined #ruby-lang
torrieri has quit [Ping timeout: 255 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
ottbot has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
mytrile has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
srbaker has joined #ruby-lang
fire has quit [Ping timeout: 246 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
punchfacechamp has quit [Read error: Connection reset by peer]
punchfacechamp has joined #ruby-lang
adambeynon has joined #ruby-lang
r0bby has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
jerrytgarcia has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby-lang
mantono has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
mantono has quit [Read error: Operation timed out]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Sinestro has quit [Quit: Textual IRC Client: www.textualapp.com]
fire has joined #ruby-lang
workmad3 has joined #ruby-lang
ryanf has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 240 seconds]
dzhulk has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
larrybolt has joined #ruby-lang
ryanf has joined #ruby-lang
ottbot has quit [Read error: Connection reset by peer]
urbanmonk has quit [Quit: Bye!]
ottohenrique has joined #ruby-lang
mytrile has joined #ruby-lang
ottohenrique has quit [Remote host closed the connection]
ascoppa has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
gregmore_ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
enebo has quit [Quit: enebo]
mytrile has joined #ruby-lang
benanne has quit [Quit: kbai]
larrybolt has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
mantono has joined #ruby-lang
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
davidbalbert is now known as davidbalber|away
mytrile has quit [Remote host closed the connection]
djwonk has joined #ruby-lang
swav has quit [Ping timeout: 248 seconds]
Cruze has quit [Ping timeout: 248 seconds]
Cruze has joined #ruby-lang
Stilo has joined #ruby-lang
wmoxam has joined #ruby-lang
wizonesolutions has quit [Ping timeout: 244 seconds]
gregmore_ has quit [Remote host closed the connection]
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Remote host closed the connection]
ascoppa has left #ruby-lang [#ruby-lang]
io_syl has quit [Ping timeout: 256 seconds]
mytrile has joined #ruby-lang
davidbalber|away is now known as davidbalbert
workmad3 has quit [Quit: leaving]
mytrile has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
adayzdone has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has joined #ruby-lang
pcmyers has joined #ruby-lang
pcmyers has quit [Client Quit]
enebo has quit [Ping timeout: 252 seconds]
Cruze has quit [Read error: Connection reset by peer]
Cruze has joined #ruby-lang
torrieri has joined #ruby-lang
gregmoreno has joined #ruby-lang
mytrile has joined #ruby-lang
dzhulk has joined #ruby-lang
gregmoreno has quit [Ping timeout: 248 seconds]
justinram has quit [Read error: Connection reset by peer]
justinram has joined #ruby-lang
datanoise has quit [Ping timeout: 272 seconds]
toretore has quit [Quit: Leaving]
justinram has quit [Read error: Connection reset by peer]
enebo has joined #ruby-lang
justinram has joined #ruby-lang
datanoise has joined #ruby-lang
justinram has quit [Read error: Connection reset by peer]
justinram has joined #ruby-lang
justinra_ has joined #ruby-lang
justinram has quit [Read error: Connection reset by peer]
djwonk has quit []
djwonk has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
MaddinXx has joined #ruby-lang
mehwork has quit [Quit: Lost terminal]
mroth has joined #ruby-lang
<mroth> is there a standard best practice documented somewhere (or a nice library) for storing user prefs in the ~/.config folder?
<whitequark> mroth: try searching by keyword "xdg"
<whitequark> you will at least find best practices
<mroth> whitequark: ah perfect, thank you!
torrieri has joined #ruby-lang
<apeiros_> oh, wow, sanity for *nix dir structure at long last?
<apeiros_> whom am I kidding… will probably still be implemented by less than 10% of all software 10y from now…
mistym has quit [Remote host closed the connection]
<burgestrand> Ha.
<banisterfiend> burgestrand: do u love that
<burgestrand> My first thought: xdg? *googles* -> there should be a gem for this -> googles -> there is!
<banisterfiend> burgestrand: but it's by thomas sawyer, aka *trans* :P
<burgestrand> banisterfiend: don’t know who it is
blacktulip has quit [Remote host closed the connection]
djwonk has quit []
<banisterfiend> burgestrand: you've missed out on a bunch of ruby drama then ;)
<banisterfiend> nice work
enebo_ has joined #ruby-lang
jondot has quit [Ping timeout: 255 seconds]
jerrytgarcia has quit [Quit: Linkinus - http://linkinus.com]
<burgestrand> I generally avoid as much drama as I can, it doesn’t amuse me that much ^^
MaddinXx has quit [Remote host closed the connection]
<banisterfiend> i love this so much i added it to my dropbox for a quick link https://dl.dropbox.com/u/26521875/pics/JO%20bros/crabJO.jpg
enebo has quit [Ping timeout: 272 seconds]
enebo_ is now known as enebo
<drbrain> "PonyArchive"
torrieri has quit [Quit: Leaving...]
srbaker has joined #ruby-lang
<mroth> the entire XDG standard basically appears to be "check for an environment variable of X name, if it doesn't exist, use this default
<mroth> so you can oneliner instead of using that gem, e.g. XDG_CONFIG_HOME = ENV['XDG_CONFIG_HOME'] || File.join(ENV['HOME'], '.config')
tylersmith has joined #ruby-lang
tylersmith has quit [Client Quit]
maxmanders has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby-lang
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has quit [Quit: Leaving.]
torrieri has joined #ruby-lang
geopet has joined #ruby-lang
bzalasky has joined #ruby-lang
maxmanders has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
vlad_starkov has joined #ruby-lang
KU0N has quit [Quit: Linkinus - http://linkinus.com]
charliesome has joined #ruby-lang
bzalasky has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
nXqd has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
enebo has joined #ruby-lang
imajes has quit [Excess Flood]
iamjarvo has quit [Quit: Leaving.]
imajes has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 248 seconds]
larrybolt has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
cschneid has quit [Quit: ZNC - http://znc.sourceforge.net]
justinra_ has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
<larrybolt> When defining a method that can be passed a block, why use the ampersand prefix/Proc object instead of just using yield?
<larrybolt> Or am I missing something?
maxmanders has quit [Quit: Computer has gone to sleep.]
<banisterfiend> larrybolt: so you can save it, for execution later
<banisterfiend> 'yield' executes straight away
glebm has joined #ruby-lang
glebm has quit [Client Quit]
<larrybolt> Oh, yup! Dumb I didn't realised that! Thanks! :D
aedorn has joined #ruby-lang
glebm has joined #ruby-lang
glebm has quit [Client Quit]