apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
nathanstitt has joined #ruby-lang
havenwood has quit [Ping timeout: 276 seconds]
rsl has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 264 seconds]
rsl has joined #ruby-lang
GeissT has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
_jpb_ has quit [Ping timeout: 268 seconds]
_jpb_ has joined #ruby-lang
mdedetrich has joined #ruby-lang
itcharlie has joined #ruby-lang
deepdog has joined #ruby-lang
<deepdog> Hey. I'm trying to compile ruby/trunk and my compiler is complaining about `implicit declaration of function 'eaccess'`. Help?
nathanstitt has joined #ruby-lang
itcharlie has quit [Quit: Leaving]
wmoxam has joined #ruby-lang
<zenspider> deepdog: there's an eaccess defined in file.c if HAVE_EACCESS is false
itcharlie has joined #ruby-lang
_jpb_ has quit [Ping timeout: 264 seconds]
<deepdog> zenspider: That's why I'm wondering why I'm getting this error. =/
_jpb_ has joined #ruby-lang
<zenspider> file.c and dln_find.c are the only things using eaccess. but I don't know what header it is supposed to be defined in...
deepdog has quit [Read error: Connection reset by peer]
<zenspider> what compiler are you using?
deepdog has joined #ruby-lang
<zenspider> the last time anything with eaccess was done was feb
<zenspider> tho, I"m prolly a couple weeks out of date
itcharlie has left #ruby-lang [#ruby-lang]
tdm00 has quit [Quit: Computer has gotten very, very sleepy.]
<deepdog> What file are the autoconf checks defined in? I'm want to try to set HAVE_EACCESS to 0 and see if it's a false-positive.
havenwood has joined #ruby-lang
zzak_ is now known as zzak
enaqxx has quit [Ping timeout: 246 seconds]
<charliesome> deepdog: hm interesting
<charliesome> deepdog: compiler/system?
Guest57437 has quit [Remote host closed the connection]
tomzx_mac has joined #ruby-lang
jsullivandigs has joined #ruby-lang
<deepdog> charliesome: clang/clang++/archlinux but it's the same result with gcc/g++
_jpb_ has quit [Ping timeout: 276 seconds]
<charliesome> deepdog: i'll update my copy of trunk and see if i can repro it
<charliesome> ruby should compile without warnings
<deepdog> Thanks.
_jpb_ has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
<zzak> hi
<deepdog> I searched config.log and I found this line, charliesome:
<deepdog> fatal error: 'ac_nonexistent.h' file not found
<charliesome> zzak: sup
Guest85414__ has joined #ruby-lang
<zzak> trying to figure out why i cant see emoji here
<zzak>
<zzak>
<charliesome> zzak: i can see it! what client are you using?
gregmoreno has quit [Remote host closed the connection]
<zzak> term_charset UTF-8
<zzak> screen + irssi
<zzak> i think that is unrecognized
<deepdog> zzak: If it appears as a box you may not have the right font.
<zzak> now its just utf8, but i think screen isn't using it right
jsullivandigs has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Ping timeout: 256 seconds]
<deepdog> Wait, is irssi a terminal client?
<havenwood>
<zzak> irssi is irc
<charliesome> zzak: i use a gui client like a schmuck, but as a result, things tend to work :p
<deepdog> Well does it run in an xterm emulator or a gui client?
<zzak> deepdog: xterm
<deepdog> zzak: Then xterm may not support the character set.
zzak_ has joined #ruby-lang
<zzak> brb
zzak has quit [Quit: leaving]
zzak has joined #ruby-lang
zzak has quit [Client Quit]
zzak has joined #ruby-lang
<zzak>
<zzak> :/
sepp2k1 has quit [Quit: Leaving.]
_jpb_ has quit [Ping timeout: 256 seconds]
<zzak> maybe i am missing a font
mistym has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
<deepdog> zzak: What is $LANG?
<zzak> en_US.UTF-8
<deepdog> I'm clueless. =/
<charliesome> does someone have a reasonably up to date git svn clone of ruby they can tarball up for me? accidentally blew mine away
<charliesome> `tar cjf ruby-gitsvn.tbz .git` should do it
<zzak> charliesome: im on r42158
<zzak> but i dont use git svn
<charliesome> dang
<charliesome> wait you don't use git-svn?
fosky has quit [Quit: Leaving]
<charliesome> how do you cope? o:
Voker57 has joined #ruby-lang
itcharlie has joined #ruby-lang
fosky has joined #ruby-lang
<zenspider> charliesome: says the guy asking someone to send him a tarball because he isn't willing to wait the EIGHT YEARS it takes git svn to clone
<zenspider> deepdog: I'm having to do a clean build... so gimme a sec
<charliesome> zenspider: it seems like a reasonable thing to do, i don't want to wait 8 years ;)
<zzak> charliesome: i dont really think about it
<zenspider> that's why some of us just use svn
deepdog has quit [Read error: Connection reset by peer]
deepdog has joined #ruby-lang
<zenspider> deepdog: nope. they both compiled fine.
<zenspider> are you using any funny flags for configure?
<zenspider> or env vars... or anything?
<deepdog> zenspider: Nope. Just `./configure CC=clang CXX=clang++`
<deepdog> And if I just use the defaults it still happens, just with less colorful error messages.
<zenspider> build just finished clean.
nisstyre has joined #ruby-lang
<zzak>
<deepdog> Here. Let me clone it and try anew.
<zenspider> and on my system, configure defaults to clang
<zenspider> ac_cs_config="'--prefix=/Users/ryan/.multiruby/install/mri_trunk' 'CC=clang'"
nathanstitt has joined #ruby-lang
<zenspider> that's all I've got for my build
zzak has quit [Quit: leaving]
zzak has joined #ruby-lang
<zenspider> osx/clang toolchain
<deepdog> Ah. I use Arch Linux so the default is gcc.
<zenspider> and that was after a `make realclean`
<zzak>
<deepdog> So I just use that and specify clang when I want it.
<zenspider> I doubt it should matter...
<zzak> i give up
<deepdog> No, it doesn't.
<zzak> zenspider: is aaron nearby?
<zenspider> does seem like maybe you're getting warnings-as-errors set
<zzak> i had a question about racc
<zenspider> zzak: nope. he's in canada
<zenspider> I might be able to answer them
<zzak> zenspider: why dont we use master branch?
<zenspider> I don't have an official answer for that... I suspect it is because tenderlove doesn't have ... nope. he's the gem owner too...
<zenspider> fuck. no clue
<zenspider> prolly because nothing actually happens on racc anyhow
_jpb_ has quit [Remote host closed the connection]
<zenspider> I think I've got the most commits to it over the last year
_jpb_ has joined #ruby-lang
<zenspider> or... NOBODY does... heh
<deepdog> Nope. Still errors. =/
<zzak> yeah
<zenspider> deepdog: env | grep W
<zzak> its just confusing, we get a few patches for doco and everyone submits to master
<deepdog> zenspider: http://codepad.org/iRslHqN8
<zzak> but afaik 1-4-stable is the branch we should be using
<zenspider> zzak: meh. imho we should be using master and anything on 1-4-stable not merged over should be
<zzak> ok
<zzak> fml, ill submit a PR for this soon
<zenspider> deepdog: env | grep C
<zzak> and quote you
<zenspider> I'm grasping at straws at this point
<zenspider> zzak: I can do the merges if it helps
<deepdog> zenspider: http://codepad.org/eYSiPgIl
<deepdog> Sigh. Why does this always happen to me. =(
<zenspider> there are 20 unmerged commits on 1-4-stable that aren't in master
<zenspider> I can pull those
<zenspider> deepdog: I got nothin'
<zzak> zenspider: im on it
<deepdog> Argh.
<zenspider> plenty of ppl develop on your system or similar and don't have problems tho... maybe you're toolchain is a bit wonky?
<zenspider> cheap-o test: create a new user
<charliesome> oh awesome, just got a full git svn clone done in 10 mins tops
<zenspider> next cheap-o test: look at your packages and see if something is horked
<charliesome> turns out you can clone github ruby/ruby, then copy .git/refs/heads/trunk to .git/refs/remotes/git-svn, then do a git svn rebase
<zenspider> simplest solution: get a mac :P
<zenspider> charliesome: or I could shoot myself
<zenspider> because... ew
peeyek has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
deepdog has quit [Read error: Connection reset by peer]
<postmodern> drbrain, good job on the new rubygems rc
joast has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
<zzak> zenspider: you can also close #13 https://github.com/tenderlove/racc/issues/13
<zzak> nvm i can, whoops
gregmoreno has joined #ruby-lang
deepdog has joined #ruby-lang
<deepdog> I guess I'll keep trying to get ruby to build. =/
<zzak> zenspider: also, why are there 3 different versions of minitest in trunk?
Mon_Ouie has quit [Ping timeout: 276 seconds]
saarinen has joined #ruby-lang
<zzak> am i losing my mind?
<r0bgleeson> zzak: deleting gems like that isnt usually a good idea
<r0bgleeson> rubygems doesnt know theyre gone
<r0bgleeson> afaik
<zzak> whats the proper way?
nathanstitt has quit [Read error: Connection reset by peer]
<r0bgleeson> gem uninstall
gregmoreno has quit [Ping timeout: 268 seconds]
<zzak> :/
snarfmason has quit [Quit: Computer has gone to sleep.]
snarfmason has joined #ruby-lang
<r0bgleeson> zzak: try nuke your gems and run 'gem list'
<r0bgleeson> rubygems won't know about it
<r0bgleeson> ive seen this before, because ive made the same mistake
<deepdog> zenspider: Figured out the problem.
<r0bgleeson> but it might have changed
<zzak> just default gems
kurko__ has quit [Quit: Computer has gone to sleep.]
<deepdog> Apparently clang searches /usr/local/include before /usr/include and I had musl installed in /usr/local *sigh*
<r0bgleeson> zzak: ok, install a gem, nuke again, and see if it appears there
<r0bgleeson> i bet it will
<zzak> i do this all the time
<zzak> it goes away
<r0bgleeson> well, alright then.
<zzak> but minitest always shows 3 versions
<zzak> its a default gem
<zzak> you know what it is
<zzak> gem env is magical
<zzak> trunk installs default gems elsewhere
<zzak> so those stick around in my index in: /Users/zzak/.rubies/ruby-trunk/lib/ruby/gems/2.1.0
nathanstitt has joined #ruby-lang
<xuser> zzak: did you update minitest/gems?
_jpb_ has quit [Ping timeout: 268 seconds]
<zzak> xuser: its probably version bumps, ive had trunk installed for a while
_jpb_ has joined #ruby-lang
<zzak> yes, that was the problem
<xuser> oh trunk
<zzak> when i did "make install" after "rm -rf ~/.rubies/ruby-trunk" it worked
<zzak> i was only deleting installed gems, not default gems
<r0bgleeson> i am going to test that gem nuke scenario
<r0bgleeson> i find it hard to believe
<zzak> because make installs the default gems
<zzak> but doesnt delete the old ones
<zzak> so everytime i did "svn update" ... (much later) "make install" it kept the old copies
<havenwood> zzak: does `gem uninstall --all` result in only one version?
<r0bgleeson> zzak: i just reproduced the behavior i described after nuking gems.
<r0bgleeson> zzak: so, it definitely is an issue.
kurko__ has joined #ruby-lang
<zzak> havenwood: thats just for a specific gem
<zzak> you cant uninstall default gems afaik
<r0bgleeson> the rm -rf approach does not work
<zzak> without deleting them
<havenwood> zzak: as of 2.1.0 it isn't
<zzak> havenwood: true, in this case rm -rf works too
<havenwood> zzak: aye
<r0bgleeson> i wouldnt recommend rm -rf at all
<r0bgleeson> look at the gist
<zzak> havenwood: but it only looks in INSTALL_DIR
<zzak> r0bgleeson: you deleted your default gems
<zzak> not install dir
<r0bgleeson> zzak: ok, 1 sec
<zzak> look in ~/.gem/ruby/<version>/*
ffio_ has quit [Quit: WeeChat 0.4.1]
<r0bgleeson> NSTALLATION DIRECTORY: /Users/rob/.gem/ruby/1.9.3 -
<r0bgleeson> this one?
<havenwood> zzak: Yeah, drbrain said "default gems should not be uninstalled (they exist as specs in specifications/default)"
<r0bgleeson> zzak: alright, im totally wrong, that did work
<zzak> <3
henrikhodne has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby-lang
enaqx has joined #ruby-lang
ruby-lang633335 has quit [Ping timeout: 250 seconds]
_jpb__ has joined #ruby-lang
_jpb_ has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
nathanstitt has quit [Read error: Connection reset by peer]
joshuawscott has quit [Quit: Leaving.]
<zzak> so i started joining #ruby
<zzak> and there is someone named "zendeavor", it keeps throwing me off
<zzak> same number of chars as zenspider
joshuawscott has joined #ruby-lang
Domon_ has joined #ruby-lang
_jpb_ has joined #ruby-lang
heftig has quit [Quit: Quitting]
<ryanf> so then you got spooked and ran away?
<havenwood> zzak: yeah, throws me off too!
_jpb___ has joined #ruby-lang
_jpb___ has quit [Client Quit]
_jpb__ has quit [Read error: Connection reset by peer]
<havenwood> zzak: begins with zen, ends with r, well good enough for brain's pattern recognition to kick in
joast has joined #ruby-lang
_jpb__ has joined #ruby-lang
<zzak> havenwood: the d is just an upside down p
nathanstitt has joined #ruby-lang
Voker57|2 has joined #ruby-lang
hahuang65 has joined #ruby-lang
Voker57 has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
mdedetrich has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
deepdog has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
GeissT has quit [Ping timeout: 268 seconds]
saarinen has joined #ruby-lang
mistym has joined #ruby-lang
dhruvasagar has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
mistym has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 240 seconds]
deepdog has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 0.4.1]
hahuang65 has joined #ruby-lang
_jpb__ has quit [Remote host closed the connection]
pipework has joined #ruby-lang
ffio has joined #ruby-lang
rickruby has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
Voker57 has joined #ruby-lang
henrikhodne has joined #ruby-lang
Voker57|2 has quit [Ping timeout: 240 seconds]
ffio_ has joined #ruby-lang
ffio has quit [Ping timeout: 256 seconds]
ffio_ has quit [Quit: WeeChat 0.4.1]
wallerdev has joined #ruby-lang
lewis1711 has joined #ruby-lang
setmeaway2 has joined #ruby-lang
<lewis1711> does ruby.h have official documentation? all I can see are guides
<zzak> lewis1711: there is README.EXT
anonymuse has joined #ruby-lang
<lewis1711> zzak: is that all? missing a few procedures
<zzak> thats currently the most detailed document
<lewis1711> ok, thanks
<zzak> if you have any specifics this channel might be able to help
bougyman_ has quit [Changing host]
bougyman_ has joined #ruby-lang
bougyman_ is now known as bougyman
mistym has joined #ruby-lang
enaqx has quit [Ping timeout: 250 seconds]
GeissT has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
shinnya has quit [Ping timeout: 264 seconds]
enaqx has joined #ruby-lang
joshuawscott has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
kurko__ has quit [Quit: Computer has gone to sleep.]
tris has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: io_syl]
zomgbie has quit [Read error: Connection reset by peer]
enaqx has quit [Ping timeout: 250 seconds]
zomgbie has joined #ruby-lang
deepdog has quit [Read error: Connection reset by peer]
nathanstitt has quit [Read error: Connection reset by peer]
joshuawscott has quit [Quit: Leaving.]
cd has joined #ruby-lang
cd is now known as Guest25324
hahuang65 has quit [Quit: WeeChat 0.4.1]
hahuang65 has joined #ruby-lang
tris has joined #ruby-lang
ilyam has joined #ruby-lang
wmoxam has quit [Ping timeout: 268 seconds]
tris has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
tris has joined #ruby-lang
joshuawscott has joined #ruby-lang
Domon_ has quit [Read error: Connection reset by peer]
Domon_ has joined #ruby-lang
saarinen has quit [Quit: saarinen]
sstrickl has quit [Quit: sstrickl]
hahuang65 has quit [Quit: WeeChat 0.4.1]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
neilc has quit [Quit: leaving]
ilyam has quit [Quit: ilyam]
pkrnj has quit [Ping timeout: 240 seconds]
enaqxx has joined #ruby-lang
joonty has quit [Ping timeout: 248 seconds]
pkrnj has joined #ruby-lang
joonty has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 0.4.1]
hahuang65 has joined #ruby-lang
pkrnj has quit [Client Quit]
lewis1711 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 21.0/20130512193848]]
lsegal has joined #ruby-lang
saarinen has joined #ruby-lang
Artheist has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
ilyam has joined #ruby-lang
ilyam has quit [Client Quit]
ledestin has joined #ruby-lang
saarinen has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby-lang
arooni-mobile has quit [Quit: Leaving]
joshuawscott has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Guest25324 has left #ruby-lang [#ruby-lang]
sush24 has joined #ruby-lang
chimkan has joined #ruby-lang
rippa has joined #ruby-lang
chimkan has quit [Ping timeout: 264 seconds]
chimkan has joined #ruby-lang
mistym has quit [Remote host closed the connection]
rohit_ has joined #ruby-lang
r0bgleeson has quit [Ping timeout: 256 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
joshuawscott has quit [Quit: Leaving.]
itcharlie has quit [Quit: Leaving]
mistym has joined #ruby-lang
hogeo_ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
rohit_ has quit [Ping timeout: 264 seconds]
<erikh> hello
<erikh> i am doing things with computer
hogeo has quit [Ping timeout: 276 seconds]
Artheist has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
rohit_ has joined #ruby-lang
<gnufied> good luck
<gnufied> these days believe my computer does things on its own
<gnufied> I*
io_syl has joined #ruby-lang
io_syl has quit [Read error: Connection reset by peer]
beerdy has joined #ruby-lang
TvL2386 has joined #ruby-lang
rohit_ has quit [Read error: Connection reset by peer]
<TvL2386> hi guys, I'm documenting with yard for the first time, and I have a method that does "return JSON.parse(string)". I have no clue and cannot know what it is that will be returned, what should I do here with "@return [...]"?
LauraE has joined #ruby-lang
<TvL2386> I suppose I'll just say @return [Object] ?
sush24 has quit [Quit: This computer has gone to sleep]
<erikh> that would be a good thing
<TvL2386> :)
<erikh> this is a lost art I guess, but pushing for duck typing -- having your callers determine what they're working with by probing for features -- is generally better than explicit type returns
charliesome has joined #ruby-lang
<erikh> not always, but it tends to be a better way to work, especially wiht polymorphism
<whitequark> erikh: I'm not sure if it's a good idea in this case
<whitequark> TvL2386: I'd just leave the return type blank, or write a non-class here, like "@return [JSON object]"
GeissT_ has joined #ruby-lang
<erikh> whitequark: yeah, it's only going to return one of three types really
<erikh> makes sense
<TvL2386> whitequark, JSON object sounds good, I thought it should always match a class name
<whitequark> no, YARD doesn't care a slightest
<erikh> it will be marked up as a class if so, rihgt?
<whitequark> yeah
<whitequark> simple string matching there
<erikh> sure
GeissT has quit [Ping timeout: 268 seconds]
<TvL2386> alrighty! thanks for the advice
<erikh> should I upgrade octopress
<erikh> or just get writing
<erikh> I will probably regret upgrading
<TvL2386> Also: with yard, or documenting in general, is it correct to say '@return [A]' where A is actually a parent class of what's actually returned?
kith has quit [Quit: kith]
<TvL2386> for example '@return [Hash]' where it is actually a HashWithIndifferentAccess
<erikh> yeah -- that's the duck typing thing
<erikh> specifying a return there is kind of ... well...
<TvL2386> alrighty :)
kith has joined #ruby-lang
<whitequark> TvL2386: well, I would document HWIA explicitly
<whitequark> it's kind of important
<TvL2386> HWIA?
<charliesome> hash with idiotic access
TvL2386 has quit [Quit: Ex-Chat]
TvL2386 has joined #ruby-lang
<TvL2386> accidentally closed...
<TvL2386> ha lol, hash with idiotic access
<TvL2386> I was also thinking to change this to 'always use String instead of Symbol', that way I can throw out activesupport entirely
mdedetrich has quit [Quit: Computer has gone to sleep.]
<bnagy> I am not good at gems. If I want a gem where require 'gemname/subthing' works, what must the actual file be?
<bnagy> gemroot/lib/subthing/subthing.rb ?
<whitequark> lib/gemname/subthing.rb
<bnagy> oh ok
saarinen has quit [Quit: saarinen]
dhruvasagar has quit [Ping timeout: 264 seconds]
<bnagy> and require 'gemname' just gets you lib/gemname.rb as a convenience?
<bnagy> oh, no sorry I just misread
<bnagy> right, cool, that's all fine then. Thanks :)
<bnagy> so is lib/gemname/lib/support files here frowned on?
<whitequark> support ?
<whitequark> never seen anyone use this
<bnagy> well subthing.rb has three lib files
<bnagy> sorry I didn't mean literally a dir called support
wallerdev has quit [Quit: wallerdev]
nivanson has joined #ruby-lang
<bnagy> root/lib/gemname/subthing.rb wants to use root/lib/gemname/lib/a.rb etc
mdedetrich has joined #ruby-lang
<whitequark> don't think anyone uses two nested /lib
<whitequark> lib/gemname/subthing.rb requires lib/gemname/subthing/a.r
<whitequark> *rb
<bnagy> ok, so how to stop it getting messy? ( I know, split into another gem )
<bnagy> but I really don't want to do that...
<bnagy> is lib/gemname/subthing/(lib files here) OK? and have a file in lib/gemname called subthing.rb ?
<bnagy> seems pretty clear?
<whitequark> yes
<bnagy> ok
sush24 has joined #ruby-lang
<bnagy> thanks a lot :)
dagobah has joined #ruby-lang
<bnagy> amazing that I have done ruby for so long and only actually created like 2 gems or something :/
mistym has quit [Remote host closed the connection]
<yorickpeterse> herro
bcardarella has left #ruby-lang [#ruby-lang]
rippa has joined #ruby-lang
<rue> Blaghnoing
TvL2386 has quit [Remote host closed the connection]
Domon_ has quit [Remote host closed the connection]
Domon_ has joined #ruby-lang
mistym has joined #ruby-lang
enaqxx has quit [Ping timeout: 256 seconds]
minivan1 has joined #ruby-lang
tomzx_mac has quit [Read error: Operation timed out]
enaqxx has joined #ruby-lang
minivan1 has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby-lang
hogeo has joined #ruby-lang
hogeo_ has quit [Ping timeout: 264 seconds]
rshetty has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby-lang
JohnBat26 has joined #ruby-lang
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
<charliesome> yorickpeterse: gday
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby-lang
<bnagy> GIDDAY COBBER GET A DOG UP YA YA MUG
sush24 has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
rshetty has quit [Quit: Sleeping]
<yorickpeterse> charliesome: you're a terrible person
<erikh> rue: bnagy: mind reviewing an article for me in a few minutes?
<charliesome> yorickpeterse:
RickHull has left #ruby-lang [#ruby-lang]
x0f has quit [Ping timeout: 248 seconds]
x0f has joined #ruby-lang
<yorickpeterse> is this that unicode thing again?
minivan1 has joined #ruby-lang
<charliesome> yorickpeterse: it is an emoji winking man
<ryanf> hmm
<ryanf> on a mac?
<charliesome> ryanf: i am
<Nilium>
<ryanf> whoa, weird. that one doesn't work for me in the terminal
<ryanf> lots of other emoji do though
<ryanf> it's this one, right?
<charliesome> ryanf: that's the winky face yes
<ryanf> oh, maybe it's because I'm in screen. no emoji are working for me anymore D:
<Nilium> That might do it.
hakunin_ is now known as hakunin
<ryanf> oh well
<yorickpeterse> charliesome: I'm not using a OS for commies so I don't see it
<charliesome> yorickpeterse: maybe try recompiling your kernel
<erikh> heh
<erikh> he needs to do a stage1 install with -O9
<charliesome> bbk
<charliesome> bbl
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
sush24 has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
solars has joined #ruby-lang
ffio has joined #ruby-lang
enaqxx has quit [Ping timeout: 260 seconds]
marr has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
maxmanders has joined #ruby-lang
injekt_ has left #ruby-lang [#ruby-lang]
injekt has joined #ruby-lang
<injekt> stupid ban
<rue> erikh: Sure, but remember I’m dumb
marr has quit [Ping timeout: 264 seconds]
<injekt> hey now, you're only as dumb as you look
sush24 has quit [Quit: This computer has gone to sleep]
rshetty has joined #ruby-lang
mytrile has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
elia has joined #ruby-lang
hashkey_ has joined #ruby-lang
hashkey is now known as Guest39361
Guest39361 has quit [Killed (morgan.freenode.net (Nickname regained by services))]
hashkey_ is now known as hashkey
sush24 has joined #ruby-lang
swav_ has joined #ruby-lang
<erikh> rue: I posted it @ erik.hollensbe.org
ryez has joined #ruby-lang
enaqxx has joined #ruby-lang
skade has joined #ruby-lang
elia has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
duckinator has quit [Quit: Narratore di falsità, i pantaloni hanno bruciata!]
elia has joined #ruby-lang
<sush24> hi.. I've deployed sinatra using passenger
<sush24> i want to know how to log the messages in to a file
<sush24> the nginx logs only have "internal server error" etc
<wnd> I have file path "/path/to/XYZZY/1/2/foobar", and I want to have the stuff after /XYZZY/ ("1/2/foobar"). In Perl I'd use $full_path =~ s:.*/XYZZY/:: . What would be the preferred way to get the same result in Ruby?
<lupine> String#split(regex) ?
<lupine> "/path/to/XYZZY/1/2/foobar".split(/XYZZY/)[1]
<wnd> that's what I've been doing, but I started wonding if there's a better/more rubyish way to do it
<injekt> no split is fine
<lupine> it's a slightly odd requirement, I'm not sure there's a more rubyish way
glebm has quit [Ping timeout: 264 seconds]
<henrikhodne> The equivalent way would be "/path/to/XYZZY/1/2/foobar".gsub(%r{.*/ZYZZY/}, ""), but I'm not sure I would call it more Rubyish.
<henrikhodne> Also, with split I would do "/path…".split("/XYZZY/"), not .split(/XYZZY/).
stamina has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
enaqxx has quit [Remote host closed the connection]
enaqxx has joined #ruby-lang
enaqxx has quit [Remote host closed the connection]
enaqxx has joined #ruby-lang
elia has quit [Ping timeout: 248 seconds]
elia has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
realDAB has joined #ruby-lang
henrikhodne has quit [Ping timeout: 264 seconds]
nofxx_ has quit [Remote host closed the connection]
TvL2386 has joined #ruby-lang
<TvL2386> Hi guys, still busy with yard here... If I have a method that accepts true or false, what would I do? '@param [TrueClass, FalseClass]' or '@param [Boolean]' or '@param [true, false]' ?
<yorickpeterse> TvL2386: @param [TrueClass|FalseClass]
glebm has joined #ruby-lang
<erikh> >> "/path/to/XYZZY/1/2/foobar".rpartition("XYZZY").last
<eval-in> erikh => "/1/2/foobar" (https://eval.in/39106)
<TvL2386> yorickpeterse, ty!
<erikh> wnd: ^^
<erikh> you can feed that right to Pathname too to do your hashing
skmp has joined #ruby-lang
<erikh> rpartition takes a regex too if you need that.
_tockitj has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
<erikh> the problem with #split in that case is that you need the last match as a partition pivot
<erikh> so if you want to do it right, you end up doing something like this
<erikh> >> "/path/to/XYZZY/1/2/foobar".reverse.split("YZZYX").first.reverse
<eval-in> erikh => "/1/2/foobar" (https://eval.in/39107)
<erikh> to ensure you don't get clobbered if there's two XYZZY's in the path
hogeo has joined #ruby-lang
realDAB has quit [Quit: realDAB]
mdedetrich has quit [Quit: Computer has gone to sleep.]
<erikh> anyhow, for path munging, if you can use the Pathname library, use it
<erikh> comes with ruby, but is a touch slower and has a arguably clunkier interface than straight string handling
* erikh does the rambling on about simple things dance
fosky has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
marr has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
realDAB has joined #ruby-lang
vlad_starkov has joined #ruby-lang
stardiviner has joined #ruby-lang
swav_ has quit [Remote host closed the connection]
sush24 has quit [Ping timeout: 240 seconds]
relix has joined #ruby-lang
sush24 has joined #ruby-lang
<yorickpeterse> andrewvos: http://t.co/lafyUxFeLh
<yorickpeterse> fuck, fail copy
<yorickpeterse> oh, not
ledestin has quit [Quit: ledestin]
chrismcg has joined #ruby-lang
<andrewvos> yorickpeterse: hahaha
<andrewvos> yorickpeterse: You did get that from my tweet right?
<andrewvos> Best gif ever
<andrewvos> Everyone keeps sending me it
<andrewvos> But I tweeted it earlier :)
chrismcg has left #ruby-lang [#ruby-lang]
zz_dlu has quit [Ping timeout: 264 seconds]
Gaelan has quit [Ping timeout: 245 seconds]
<yorickpeterse> yah
Johz has joined #ruby-lang
retro|cz has joined #ruby-lang
jonahR has quit [Quit: jonahR]
sush24 has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
Domon_ has quit [Remote host closed the connection]
Voker57 has quit [Ping timeout: 264 seconds]
mdedetrich has joined #ruby-lang
minivan1 has quit [Ping timeout: 248 seconds]
rshetty has quit [Quit: Sleeping]
minivan1 has joined #ruby-lang
Voker57 has joined #ruby-lang
realDAB has quit [Quit: realDAB]
<whitequark> awesome. just when I thought *everything* works, I hit some slight difference in how 1.9.2/1.9.3 handle encodings.
MaddinXx has joined #ruby-lang
zz_dlu has joined #ruby-lang
Gaelan has joined #ruby-lang
minivan1 has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 260 seconds]
tbuehlmann has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sush24 has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
<wnd> erikh, thanks
sia_solati has joined #ruby-lang
Muz has quit [Ping timeout: 256 seconds]
sia_solati has quit [Ping timeout: 268 seconds]
swav_ has joined #ruby-lang
zomgbie has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby-lang
Muz has joined #ruby-lang
swav_ has quit [Remote host closed the connection]
swav_ has joined #ruby-lang
MartynKeigher has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
joshuawscott has joined #ruby-lang
swav_ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
maximveksler has quit [Quit: maximveksler]
Voker57 has quit [Ping timeout: 256 seconds]
jxie has quit [Quit: Lost terminal]
tkuchiki has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby-lang
dhruvasagar has joined #ruby-lang
maximveksler has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Ping timeout: 260 seconds]
benlovell has joined #ruby-lang
seb2722 has joined #ruby-lang
Paradox has quit [Ping timeout: 240 seconds]
glebm has quit [Ping timeout: 246 seconds]
enebo has joined #ruby-lang
enebo has quit [Client Quit]
breakingthings has joined #ruby-lang
glebm has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
swav_ has joined #ruby-lang
stamina has quit [Ping timeout: 246 seconds]
Paradox has joined #ruby-lang
swav__ has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
mdedetrich has joined #ruby-lang
swav_ has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby-lang
wmoxam has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
agile has quit [Remote host closed the connection]
relix has joined #ruby-lang
relix has quit [Client Quit]
agile has joined #ruby-lang
pipework has quit [Remote host closed the connection]
kurko__ has joined #ruby-lang
Johz has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
maximveksler has quit [Quit: maximveksler]
maximveksler has joined #ruby-lang
maximveksler has quit [Client Quit]
mucker has joined #ruby-lang
wmoxam has quit [Ping timeout: 268 seconds]
retro|cz has quit [Ping timeout: 248 seconds]
enaqxx has quit [Remote host closed the connection]
enaqxx has joined #ruby-lang
agile has quit [Remote host closed the connection]
hashkey has quit [Ping timeout: 240 seconds]
swav__ has quit []
LauraE has left #ruby-lang [#ruby-lang]
seb2722 has quit [Quit: seb2722]
ldnunes has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby-lang
ldnunes has joined #ruby-lang
skmp has quit [Quit: Leaving.]
anonymuse has joined #ruby-lang
ldnunes has quit [Read error: Connection reset by peer]
yalue has joined #ruby-lang
cjs226 has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
<zzak> rue: omg
wallerdev has joined #ruby-lang
joshuawscott has joined #ruby-lang
wmoxam has joined #ruby-lang
agile has joined #ruby-lang
intellitech has quit [Ping timeout: 248 seconds]
enaqxx has quit [Remote host closed the connection]
enaqxx has joined #ruby-lang
rshetty has quit [Quit: Sleeping]
realDAB has joined #ruby-lang
jvrmaia has joined #ruby-lang
pipework has joined #ruby-lang
<yorickpeterse> in which we find out that HTTPClient wrecks your object/method cache, possibly upon every HTTP request
<yorickpeterse> or at least on every instance creation of HTTPClient
<yorickpeterse> and because of some OpenURI nonsense
ldnunes has joined #ruby-lang
postmodern has quit [Quit: Leaving]
ldnunes has quit [Read error: Connection reset by peer]
kstuart has joined #ruby-lang
ldnunes has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
Reen has joined #ruby-lang
tomzx_mac has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
bgant has joined #ruby-lang
r0bgleeson has joined #ruby-lang
<injekt> wat
<injekt> yorickpeterse: how's the test suite?
hashkey has joined #ruby-lang
hashkey is now known as Guest43135
<yorickpeterse> fast
Guest43135 has quit [Client Quit]
enaqxx has quit [Remote host closed the connection]
enaqxx has joined #ruby-lang
hashkey_ has joined #ruby-lang
hashkey_ is now known as hashkey
<injekt> :)
enaqxx has quit [Read error: Connection reset by peer]
<yorickpeterse> test suite itself runs in 30 sec
<yorickpeterse> errr, 23
<yorickpeterse> total exec time is around 33 secs
realDAB has quit [Quit: realDAB]
vlad_starkov has quit [Remote host closed the connection]
enebo has joined #ruby-lang
cjs226 has joined #ruby-lang
malev has joined #ruby-lang
bgant has quit [Ping timeout: 246 seconds]
sascha_d has joined #ruby-lang
charliesome has joined #ruby-lang
zomgbie has quit [Ping timeout: 240 seconds]
rickruby has quit [Remote host closed the connection]
eugenejen has joined #ruby-lang
thang_ has left #ruby-lang [#ruby-lang]
nathanstitt has joined #ruby-lang
bgant has joined #ruby-lang
<ericwood> ain't nobody got time for that
relix has joined #ruby-lang
sascha_d has quit [Quit: obai]
cored has joined #ruby-lang
cored has joined #ruby-lang
_dumfries has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
xxaM has joined #ruby-lang
GeissT has joined #ruby-lang
GeissT has quit [Client Quit]
GeissT has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 255 seconds]
GeissT_ has quit [Ping timeout: 260 seconds]
loincloth has joined #ruby-lang
<injekt> ^
rickruby has joined #ruby-lang
jvrmaia has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rue> zzak: Wazzak?
vlad_starkov has joined #ruby-lang
<rue> Up up and /away
solars has quit [Ping timeout: 276 seconds]
wallerdev has quit [Quit: wallerdev]
bradsmith has joined #ruby-lang
mistym has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
GeissT has quit [Ping timeout: 276 seconds]
xxaM has quit [Quit: ZzZz :)]
rshetty has joined #ruby-lang
sascha_d has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
stamina has joined #ruby-lang
rshetty has quit [Ping timeout: 248 seconds]
jxie has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
realDAB has joined #ruby-lang
rshetty has joined #ruby-lang
hahuang65 has quit [Ping timeout: 276 seconds]
ffio has quit [Ping timeout: 246 seconds]
mbj has joined #ruby-lang
sstrickl has joined #ruby-lang
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby-lang
wallerdev has joined #ruby-lang
sstrickl has quit [Client Quit]
riotbit_ has joined #ruby-lang
riotbit has quit [Ping timeout: 256 seconds]
riotbit_ is now known as riotbit
vlad_starkov has joined #ruby-lang
ldnunes has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
ffio has joined #ruby-lang
ldnunes has joined #ruby-lang
gimmickless has joined #ruby-lang
<sush24> hi.. I've deployed sinatra using passenger
<sush24> where do i get the logs?
<sush24> I've been searching for it quite some time
<canton7> iirc they appear in your apache logs?
<canton7> it's been a very long while since I used Passenger
gimmickless has quit [Ping timeout: 250 seconds]
<tubbo> sush24: you can configure it
<sush24> canton7, they simpley say "internal server error" etc
<sush24> not the verbose logs
<sush24> tubbo, any pointers?
<tubbo> sush24: https://code.google.com/p/phusion-passenger/issues/detail?id=4 would indicate that it saves logs into log/production.log
vlad_starkov has quit [Remote host closed the connection]
<tubbo> sush24: in your RAILS_ROOT
<tubbo> oh wait you're using Sinatra
<tubbo> haha
<tubbo> sush24: umm, probably in your app root there should be a log/production.log. if not, check apache's error_log for "permission denied" errors, which would point to the path it's looking to write a log file in..
relix has joined #ruby-lang
arooni-mobile has joined #ruby-lang
zomgbie has joined #ruby-lang
_jpb_ has joined #ruby-lang
<sush24> in the docs i see that Sinatra will use whatever it will find in env['rack.logger']
<sush24> Do i set the path there?
<sush24> there is no log/production.log
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<yorickpeterse> note to self: don't try to read a 100MB file 10 times using threads
<yorickpeterse> it froze my entire OS
Nisstyre-laptop has joined #ruby-lang
<whitequark> yorickpeterse: sounds like a shitty OS
<whitequark> (or disk, or you tweaked it to death.)
arooni-mobile has quit [Ping timeout: 264 seconds]
<r0bgleeson> sush24: look at Rack::Logger
<r0bgleeson> its a configurable middleware
jsullivandigs has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
LauraE has joined #ruby-lang
LauraE has left #ruby-lang [#ruby-lang]
Nisstyre-laptop has quit [Ping timeout: 265 seconds]
agile has quit [Quit: Ex-Chat]
agile has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
benlovell has quit [Ping timeout: 246 seconds]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
fbernier has joined #ruby-lang
joonty has quit [Quit: WeeChat 0.4.1]
anonymuse has joined #ruby-lang
vlad_starkov has joined #ruby-lang
matti has quit [Quit: Oh dear...]
vlad_starkov has quit [Remote host closed the connection]
rshetty has quit [Quit: Sleeping]
hahuang65 has joined #ruby-lang
__butch__ has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
rshetty has joined #ruby-lang
mbj has quit [Ping timeout: 264 seconds]
glebm has joined #ruby-lang
zomgbie has quit [Ping timeout: 276 seconds]
mbj has joined #ruby-lang
bgant has quit [Quit: Leaving.]
sstrickl has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty has quit [Quit: Sleeping]
mbj has quit [Ping timeout: 264 seconds]
jds has joined #ruby-lang
<jds> Heya
enebo has quit [Quit: enebo]
Paradox has quit [Ping timeout: 245 seconds]
<jds> RTL text is breaking my mind. Can anyone explain how on earth this output occurs : https://gist.github.com/jdelStrother/6090264 ? Or where I should go for a RTL text manipulation 101 ?
dagobah has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
henrikhodne has joined #ruby-lang
pellis has joined #ruby-lang
bgant has joined #ruby-lang
<pellis> what's an easy way to profile ruby and optimize a code path?
relix has joined #ruby-lang
<whitequark> perftools.rb
DEac-_ has quit [Read error: Connection reset by peer]
<whitequark> for profiling
<whitequark> and using your brain for optimizing :)
DEac- has joined #ruby-lang
vlad_starkov has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
<pellis> whitequark, thanks i only knew ruby-prof. this one is interesting - are you using it with success?
<whitequark> yes
<whitequark> tip: use kcachegrind
<pellis> for visualizing the output?
<whitequark> yes
<whitequark> it's much more convenient
<pellis> i'm wondering if any of the built-in Mac tools can help
<pellis> i remember vaguely that they did a good job there
<whitequark> no clue, never used osx
<pellis> at least on dtrace and visualizing dtrace
<whitequark> ruby 2.0 has dtrace support I think.
<whitequark> maybe 2.1.
<gnufied> 2.0 def. has dtrace support
<jds> Instruments.app is great, but I've struggled in the past to set it up right with ruby's dtrace hooks
<gnufied> </pimp>
<gnufied> series of posts I wrote on dtrace!
<jds> gnufied: Huh, I'll check it out - thanks
<pellis> gnufied, thanks that looks very cool!
<gnufied> third one is in making, but it takes quite a bit of timing to put out decent tutorial.
<gnufied> pellis: thanks. any feedback etc, most welcome.
<gnufied> I will stop pimping now
<pellis> i'm wondering if jetbrains did their part with rubymine profiling ruby?
elia has joined #ruby-lang
<gnufied> pellis: have you looked at https://github.com/tmm1/rblineprof ?
<pellis> gnufied, nope i'm just getting my feet wet. looks like tmm1 is doing a lot of work in this space
redderhs has joined #ruby-lang
<gnufied> yep
<redderhs> Hi, the link in this message is in regards to an Open Source Computing to further the developments of hardware for the mobile industry. It's time for Linux to be the #1 Consumer Operating System, Ubuntu Edge movement! http://pastebin.com/j57Dc29E We can all make a difference for as little as One Dollar! Thank You for your time.
redderhs has left #ruby-lang [#ruby-lang]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gnufied> bah, Bot
<gnufied> I was about to ask some nasty questions about Ubuntu edge
rshetty has joined #ruby-lang
* whitequark shrugs
<spike|spiegel> gnufied: you need to clarify that the 'D language' is not the 'D programming language'
Paradox has joined #ruby-lang
<gnufied> okay. do you think it matters that much, because I am sure within 2 minutes of exploring D programming language and D scripting interface of Dtrace the distinction becomes quite clear.
<gnufied> I did think about it and did not think it was important.
<spike|spiegel> google will fail people
relix has joined #ruby-lang
<pellis> anyone has an idea what to use to visualize perftools output on OSX?
<gnufied> perftools.rb?
<gnufied> graphiz
<gnufied> it ships with its own gif/png/svg generator isn't it?
<whitequark> graphviz does
mrsolo has joined #ruby-lang
<gnufied> yes, perftools uses graphviz internally for generating those images
<pellis> any chance Instruments.app can work with that?
<gnufied> No
<gnufied> there is little to no chance
shinnya has joined #ruby-lang
elia has quit [Ping timeout: 246 seconds]
zmike has joined #ruby-lang
<pellis> any idea why pprof shouts "substr outside of string at…" when i try to output with text?
<pellis> gmm.. file is empty
cored has quit [Quit: leaving]
skmp has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has joined #ruby-lang
vlad_sta_ has quit [Write error: Broken pipe]
<pellis> i think perftools isn't working for me because i'm working across threads
intellitech has quit [Quit: intellitech]
beerdy has quit [Remote host closed the connection]
<spike|spiegel> haha
_jpb_ has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
symm- has joined #ruby-lang
pr0ton has joined #ruby-lang
dominikh has quit [Quit: WeeChat 0.4.0-dev]
dominikh1 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
tylersmith has joined #ruby-lang
rshetty has quit [Quit: Sleeping]
pellis has left #ruby-lang ["Leaving"]
tylersmi_ has joined #ruby-lang
netShadow has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
realDAB has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
skmp has quit [Ping timeout: 256 seconds]
x0f has quit [Ping timeout: 268 seconds]
itcharlie has joined #ruby-lang
vlad_starkov has joined #ruby-lang
skmp has joined #ruby-lang
x0f has joined #ruby-lang
saarinen has joined #ruby-lang
hinbody has joined #ruby-lang
enebo has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
realDAB has quit [Quit: realDAB]
sstrickl has quit [Quit: sstrickl]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
maxmanders has joined #ruby-lang
bradsmith has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
dominikh1 is now known as dominikh
maxmanders has quit [Ping timeout: 248 seconds]
jonahR has joined #ruby-lang
kstuart has quit [Ping timeout: 268 seconds]
hinbody has quit [Ping timeout: 268 seconds]
bradsmith has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
io_syl has joined #ruby-lang
ffio has quit [Quit: WeeChat 0.4.1]
Barn_ has joined #ruby-lang
glebm has quit [Client Quit]
rickruby has joined #ruby-lang
Barn_ has quit [Quit: Page closed]
kuja_ is now known as kuja
relix has joined #ruby-lang
itcharlie has quit [Read error: No route to host]
forrest has joined #ruby-lang
glebm has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
killtheliterate is now known as killthe|me
killthe|me is now known as killthe|food
mistym has quit [Remote host closed the connection]
melter has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
_jpb_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 248 seconds]
enebo has quit [Ping timeout: 264 seconds]
itcharlie has joined #ruby-lang
gregmoreno has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
arooni-mobile has joined #ruby-lang
grosser has joined #ruby-lang
grosser has quit [Client Quit]
firstdayonthejob has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
_jpb_ has quit [Ping timeout: 240 seconds]
mbj has joined #ruby-lang
realDAB has joined #ruby-lang
sstrickl has joined #ruby-lang
sstrickl has joined #ruby-lang
sstrickl has quit [Changing host]
zmike has quit [Quit: ~]
tubbo is now known as pipesoup
pipework has quit [Remote host closed the connection]
pipesoup is now known as tubbo
tylersmi_ has quit [Remote host closed the connection]
_tockitj has joined #ruby-lang
_tockitj has left #ruby-lang [#ruby-lang]
_tockitj has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
mbj has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
spuk has quit [Ping timeout: 256 seconds]
sstrickl has quit [Read error: Connection reset by peer]
dickson66 has quit [Ping timeout: 250 seconds]
davetoxa has joined #ruby-lang
<davetoxa> Hello all, how i can simplify 3 - 5 lines ? https://gist.github.com/davetoxa/74ed3c8e34e017efed9e
<davetoxa> with map
tdm00 has joined #ruby-lang
yalue has quit [Quit: Leaving]
<drbrain> davetoxa: maybe votes = poll.poll_options.map do |poll_option| poll_option.poll_votes.size; end; max = votes.max
<erikh> drbrain: you play shadowrun returns yet?
<erikh> if you like xcom and fallout -- guaranteed happiness
<drbrain> that lets you remove line 2
<drbrain> erikh: I have not
<davetoxa> <drbrain>, no
<drbrain> davetoxa: if I remember my haml, you don't need to indent line 5
<drbrain> davetoxa: why not use max_by?
<gnufied> best thing though is to remove all that calculation from haml first
<gnufied> :/
<drbrain> max = poll.poll_options.max_by { |poll_option| poll_option.poll_votes.size }
<drbrain> davetoxa: and what gnufied said, calculating the max of a poll should be in the poll object
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
<drbrain> I imagine the DB can do it for you, too
<davetoxa> PollOption can't be coerced into Fixnum
<drbrain> davetoxa: an exception message without backtrace and source code does not allow us to help you
<gnufied> drbrain:
<gnufied> been wondering if RG's internal classes are meant to be used concurrently the way bundler is trying to use
realDAB has quit [Quit: realDAB]
spuk has joined #ruby-lang
saarinen has quit [Quit: saarinen]
<drbrain> gnufied: possibly not, we haven't worked much in this area
<drbrain> gnufied: more likely, they've been designed to work on bundler on CRuby
<drbrain> which is insufficient
<erikh> things I wish I had more time for
mbj has quit [Read error: Connection reset by peer]
<drbrain> erikh: I added shadowrun to my wishlist
<gnufied> drbrain: Installer#build_extensions
<erikh> sweet. I think you'd really like it
<gnufied> the guy who originally wrote this parallel downloaded added monitor around Dir.chdir()
<gnufied> downloader*
<gnufied> But when bundler calls that method from RG, it is no longer thread safe
<drbrain> yup
<drbrain> gnufied: ↑
<erikh> drbrain: offhand, is there a way to specify a dependency only for a specific flavor of ruby?
<erikh> e.g., gem.add_dependency 'foo', :platform => :java
<drbrain> gnufied: I didn't expect bundler to do parallel install too!
<drbrain> erikh: no ☹
<erikh> oof.
<erikh> my foot just disappeared
<gnufied> drbrain: ha ha, me neither. but we had it checked into bundler master and people started reported bugs, so I thought I may as well fix it
<erikh> I'll figure something out; I need to select sqlite3 or jdbc-sqlite based on what platform it's used on
realDAB has joined #ruby-lang
__butch__ has quit [Read error: Connection reset by peer]
rdg has joined #ruby-lang
__butch__1 has joined #ruby-lang
<gnufied> which basically just calls super but chdir is thread-safe
<gnufied> and looks like with master RG, everything is happy and working
<drbrain> awesome
<gnufied> I can open a bug in RG for making build_extensions thread safe if you want
realDAB has quit [Client Quit]
<drbrain> gnufied: yes, please!
<drbrain> I can put it in 2.1
maxmanders has joined #ruby-lang
mbj has joined #ruby-lang
<drbrain> we already require 'monitor' for activation
<gnufied> okay, cool.
Senjai has joined #ruby-lang
Senjai has joined #ruby-lang
saarinen has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
Senjai is now known as richardcw
__butch__1 has quit [Quit: Leaving.]
melter has joined #ruby-lang
dabradley has quit [Quit: WeeChat 0.3.8]
rdg has quit [Quit: [quit]]
realDAB has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
stamina has quit [Ping timeout: 240 seconds]
realDAB has quit [Client Quit]
postmodern has joined #ruby-lang
picklechef has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
breakingthings has quit [Quit: breakingthings]
tbuehlmann has quit [Remote host closed the connection]
Cremno has quit [Quit: Cremno]
mbr has quit [Read error: Operation timed out]
workmad3 has joined #ruby-lang
mbr has joined #ruby-lang
freedrull has quit [Read error: Operation timed out]
yellow5 has quit [Ping timeout: 256 seconds]
blowmage has quit [Read error: Operation timed out]
freedrull has joined #ruby-lang
blowmage has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
ged has quit [Read error: Connection reset by peer]
ged_ has joined #ruby-lang
yellow5 has joined #ruby-lang
eugenejen has quit [Quit: eugenejen]
davetoxa has quit [Quit: ушёл]
apeiros has joined #ruby-lang
killthe|food is now known as killtheliterate
tylersmith has joined #ruby-lang
sepp2k has joined #ruby-lang
DEac- has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby-lang
cjs226 has quit [Quit: cjs226]
ldnunes has quit [Quit: Leaving]
tylersmith has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
loincloth has quit [Remote host closed the connection]
bgant has quit [Quit: Leaving.]
realDAB has joined #ruby-lang
kstuart has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maxmanders has quit [Quit: Computer has gone to sleep.]
x0f_ has joined #ruby-lang
x0f has quit [Ping timeout: 276 seconds]
heftig has joined #ruby-lang
<erikh> zenspider: you around? I was wondering if that minitest/unit require ever got resolved?
<erikh> rather, released
<erikh> nvm got it
<erikh> sorry to bother.
nisstyre has quit [Quit: Leaving]
joshuawscott has quit [Quit: Leaving.]
MaddinXx has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<zenspider> erikh: which?
<erikh> the one that lets me extend Minitest::Test
<erikh> I got it -- sorry
<zenspider> zzak: you around?
<zenspider> erikh: ah. right. yeah.
havenwood has joined #ruby-lang
<zenspider> zzak: #minitest
sonicpond has quit [Quit: Leaving.]
forrest has quit [Quit: Leaving]
tdm00 has quit [Quit: Computer has gotten very, very sleepy.]
pkrnj has joined #ruby-lang
tonni_ has joined #ruby-lang
symm- has quit [Ping timeout: 246 seconds]
tonni has quit [Ping timeout: 260 seconds]
picklechef has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
__butch__ has joined #ruby-lang
symm- has joined #ruby-lang
realDAB has quit [Quit: realDAB]
glebm has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Ping timeout: 256 seconds]
realDAB has joined #ruby-lang
cjs226 has joined #ruby-lang
hakunin_ has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
relix has joined #ruby-lang
relix has quit [Max SendQ exceeded]
tomzx_mac has joined #ruby-lang
realDAB has quit [Quit: realDAB]
killtheliterate is now known as killthe|wknd
kurko__ has quit [Quit: Computer has gone to sleep.]
_jpb_ has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
Cremno has joined #ruby-lang
nisstyre has joined #ruby-lang
pkrnj has joined #ruby-lang
jonahR has quit [Quit: jonahR]
skmp has quit [Quit: Leaving.]
skade has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
_jpb_ has quit [Quit: leaving]
_jpb_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 256 seconds]
mistym has joined #ruby-lang
tdm00 has joined #ruby-lang
mdedetrich has joined #ruby-lang
rodolfo_camotes has joined #ruby-lang
picklechef has joined #ruby-lang
symm- has quit [Quit: Leaving...]
joshuawscott has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
picklechef has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby-lang
symm- has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
rodolfo_camotes has quit [Remote host closed the connection]
fooqri has joined #ruby-lang
fooqri has quit [Client Quit]
anonymuse has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 264 seconds]
anonymuse has joined #ruby-lang
stamina has joined #ruby-lang
hahuang65 has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
__butch__ has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
<crankharder> looking for an active record cache store. like dalli, or redis-store, but stuffed into a database. anyone know of a gem that does this?
D-Nizzle has quit [Ping timeout: 250 seconds]
tdm00 has quit [Quit: Computer has gotten very, very sleepy.]
PantsMeh has joined #ruby-lang
abstr4ct has quit [Ping timeout: 264 seconds]
stamina has quit [Ping timeout: 246 seconds]
mbj has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
cordax has joined #ruby-lang
<drbrain> crankharder: I don't understand, you want to cache database records in the database?
<crankharder> i want Rails.cache to stuff itself in the db, and i dont want to write it myself
<drbrain> maybe #ror knows
<crankharder> presumably someone thought this was a good idea for a normal caching mechanism and wrote it up already