imperator changed the topic of #ruby-lang to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
macmartine has joined #ruby-lang
justinram has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
jtoy has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
headius has quit [Quit: headius]
karasawa has quit [Ping timeout: 264 seconds]
karasawa has joined #ruby-lang
kain has quit [Quit: exit]
kain has joined #ruby-lang
heftig has quit [Quit: leaving]
kogent has quit [Quit: kogent]
jonahR has quit [Quit: jonahR]
b1rkh0ff has quit [Ping timeout: 248 seconds]
drbrain has joined #ruby-lang
aedornv has joined #ruby-lang
heftig has joined #ruby-lang
justinseiter has quit [Ping timeout: 260 seconds]
pkrnj has joined #ruby-lang
mjolk has quit [Quit: This computer has gone to sleep]
kogent has joined #ruby-lang
kogent has quit [Remote host closed the connection]
kogent has joined #ruby-lang
justinseiter has joined #ruby-lang
kogent has quit [Client Quit]
kogent has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
kogent has quit [Client Quit]
kogent has joined #ruby-lang
damone has quit [Quit: Page closed]
bantic_ has joined #ruby-lang
bantic_ has quit [Client Quit]
waffleau has joined #ruby-lang
waffleau has left #ruby-lang [#ruby-lang]
robotmay has quit [Read error: Connection reset by peer]
benanne has quit [Quit: kbai]
bantic has quit [Ping timeout: 245 seconds]
robotmay has joined #ruby-lang
glebm has joined #ruby-lang
tomzx has quit [Disconnected by services]
alvaro_o_ has quit [Quit: Ex-Chat]
cirenyc has joined #ruby-lang
robotmay has quit [Ping timeout: 260 seconds]
srbaker has joined #ruby-lang
wyhaines has joined #ruby-lang
cirenyc has quit [Ping timeout: 252 seconds]
banisterfiend is now known as banister`sleep
corlinfive has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
rins has joined #ruby-lang
corlinfive has left #ruby-lang [#ruby-lang]
alvaro_o has joined #ruby-lang
corlinfive has joined #ruby-lang
enebo has quit [Quit: enebo]
io_syl has quit [Ping timeout: 255 seconds]
__butch__ has quit [Quit: Leaving.]
io_syl has joined #ruby-lang
io_syl has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
sush24 has quit [Ping timeout: 255 seconds]
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
corlinfive has quit [Read error: Connection reset by peer]
sailias has joined #ruby-lang
mxktmdude has joined #ruby-lang
mxktmdude has quit [Client Quit]
corlinfive has joined #ruby-lang
sush24 has joined #ruby-lang
headius has joined #ruby-lang
headius has quit [Ping timeout: 248 seconds]
imperator3 has joined #ruby-lang
mjio has quit []
davidbalber|away is now known as davidbalbert
Mon_Ouie has quit [Ping timeout: 264 seconds]
io_syl has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
richardjortega has quit [Read error: No route to host]
richardjortega has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
davidbalbert is now known as davidbalber|away
corlinfive has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
stevechiagozie has joined #ruby-lang
jtoy has quit [Quit: jtoy]
kogent has quit [Quit: kogent]
jtoy has joined #ruby-lang
cirenyc has quit [Ping timeout: 264 seconds]
bfreeman_ has quit [Quit: bfreeman_]
methods has joined #ruby-lang
<methods> when i use wget i don't see a redirect but when i use net/http I do ?
<methods> i take that back
ronaldo__ has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
DEac-_ has quit [Ping timeout: 276 seconds]
martamccasland has joined #ruby-lang
ronaldo__ has left #ruby-lang [#ruby-lang]
srbaker has quit [Quit: Computer has gone to sleep.]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
DEac- has joined #ruby-lang
mjio has joined #ruby-lang
oreoshake has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
unlikely_monkey has joined #ruby-lang
breakingthings has joined #ruby-lang
oreoshake has quit [Ping timeout: 240 seconds]
sn0wb1rd has quit [Quit: I will be right back]
srbaker has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
jonahR has joined #ruby-lang
karasawa has quit [Ping timeout: 264 seconds]
karasawa has joined #ruby-lang
stevechiagozie has joined #ruby-lang
Rarrikins has joined #ruby-lang
Rarrikins_e has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
AndChat| has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
weeb1e has joined #ruby-lang
weeb1e_ has quit [Ping timeout: 272 seconds]
Banistergalaxy has quit [Ping timeout: 264 seconds]
emocakes has quit [Quit: emocakes]
methods has quit [Quit: Leaving.]
rins has quit [Ping timeout: 248 seconds]
headius has joined #ruby-lang
imperator3 has quit [Ping timeout: 240 seconds]
towski has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
drbrain has quit [Read error: Connection reset by peer]
cirenyc has quit [Quit: Leaving...]
KM|2 has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
Axsuul has joined #ruby-lang
gregmore_ has joined #ruby-lang
KM|2 has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
drbrain_ has joined #ruby-lang
gregmore_ has quit [Ping timeout: 264 seconds]
adamjleonard has quit [Quit: Leaving...]
bfreeman has joined #ruby-lang
KM|2 has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
KM|2 has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
tdy__ has quit [Quit: WeeChat 0.3.9.2]
tdy_ has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
jtoy has quit [Quit: jtoy]
rmillerx has joined #ruby-lang
Eric- has joined #ruby-lang
cirenyc has quit [Ping timeout: 276 seconds]
cremes has left #ruby-lang [#ruby-lang]
heftig has quit [Ping timeout: 256 seconds]
mitchty has quit [Quit: znc broke]
mitchty has joined #ruby-lang
mitchty is now known as Guest64867
heftig has joined #ruby-lang
headius has quit [Quit: headius]
<zenspider> rawr
srbaker has joined #ruby-lang
sailias has quit [Quit: Leaving.]
Guest64867 is now known as mithcty
mithcty is now known as mitchty_
<zenspider> rawr rawr rawr RAWR rawr rawr RAWR rawr rawr
bzb has quit [Quit: Leaving]
andrewhl has joined #ruby-lang
richardjortega has quit [Quit: richardjortega]
lcdhoffman has joined #ruby-lang
dwu1 has joined #ruby-lang
io_syl has quit [Ping timeout: 255 seconds]
krz has joined #ruby-lang
dwu1 has left #ruby-lang [#ruby-lang]
linc01n has quit [Quit: ZNC - http://znc.in]
linc01n has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
dwu1 has joined #ruby-lang
spuk has quit [Ping timeout: 240 seconds]
mitchty_ is now known as mitchty
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
karasawa has quit [Ping timeout: 260 seconds]
__BigO__ has joined #ruby-lang
neocoin has joined #ruby-lang
karasawa has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
gnufied1 has joined #ruby-lang
breakingthings has quit []
__BigO___ has joined #ruby-lang
linc01n has quit [Quit: ZNC - http://znc.in]
linc01n has joined #ruby-lang
__BigO__ has quit [Ping timeout: 260 seconds]
ryanf has quit [Quit: leaving]
rmillerx has quit [Read error: Connection reset by peer]
gregmore_ has joined #ruby-lang
Eric- has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 255 seconds]
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
srbaker has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby-lang
Sinestro has quit [Ping timeout: 276 seconds]
toretore has quit [Quit: This computer has gone to sleep]
toretore has joined #ruby-lang
<havenn> If anyone is wanting Emoji in Ruby, just released emojis gem.
toretore has quit [Client Quit]
banister`sleep has quit [Remote host closed the connection]
<S1kx> anyone an idea how to debug further what is causing it?
<S1kx> note: the app that caused it has >100 threads (and yes I know ruby threads suck, doesn't mean it should just die like that)
klebervi_ has quit [Ping timeout: 240 seconds]
<S1kx> might actually rather be a linux issue
<zenspider> ruby 1.8 threads don't suck...
<zenspider> nobody can work with the data you provided... besides "Don't do that"
klebervirgilio has joined #ruby-lang
<S1kx> hence asking how to debug further, to get data that me, and anyone else, could use
<zenspider> you're going to have to provide more info. code, preferably.
<zenspider> to debug: actually run in a debugger and trap it at the right spot and/or reduce the code involved until you get a minimal reproduction
<S1kx> it's quite a big project. sqlite3 is involved, but all access to it is wrapped by Mutex#synchronize
karasawa has quit [Ping timeout: 264 seconds]
towski has joined #ruby-lang
<zenspider> I don't know what else to tell you.
<zenspider> you have threading issues
<zenspider> the output will differ ... it isn't deterministic
<S1kx> is there a way to get a stacktrace with hints to the ruby code?
<zenspider> run in a debugger...
headius has joined #ruby-lang
macmartine has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
gnufied1 has joined #ruby-lang
gnufied1 has quit [Client Quit]
gnufied has joined #ruby-lang
<gnufied> is ruby built with debug symbols though?
<postmodern> S1kx, first off you want to compile ruby with debugging symbols enabled
<postmodern> S1kx, also you can `require 'debug'` to get a classical debugger
<gnufied> I don't think ruby debugger will help here
<postmodern> gnufied, maybe will just to step through?
<postmodern> S1kx, also what kind of project is spinning up 100 threads
<S1kx> would be quite some stepping through to get to the point, there's some heavy processing going on and it only occurs after around 5 minutes and dozens of requests/threads
justinseiter has quit [Ping timeout: 245 seconds]
<S1kx> just URL/HTTP processing
<gnufied> can you reproduce is locally or dev environment?
<S1kx> yes sure
<gnufied> also, please upgrade to 1.9.3 latest release. 1.9.3 is totally compatible with 1.9.2
<S1kx> oh I have, i have only installed 1.9.2 too to test if the problem was already there
<gnufied> okay.
<S1kx> i will compile it with debugging symbols
<gnufied> then you need to build a debug symbols enabled ruby
slyphon has quit [Quit: slyphon]
<gnufied> usually passing debugflags="-g3 -gdb" to ./configure should do the trick
<gnufied> I am used to using:
<gnufied> ./configure --enable-shared \
<gnufied> --disable-install-doc optflags="-O0" \
<gnufied> debugflags="-g3 -gdb"
<gnufied> possibly if an extension which is causing the problem, you may have to compile extension with debugging enabled as well.
justinseiter has joined #ruby-lang
<gnufied> but if what you are seeing is a threading problem, it is going to be hard to debug anyways
<gnufied> :-)
blazes816 has joined #ruby-lang
<S1kx> thanks
<S1kx> I highly suspect it will have something to do with sqlite... am recoding this to have a broker process that puts the data into redis too
lcdhoffman has quit [Quit: lcdhoffman]
rins has joined #ruby-lang
agarie has quit [Remote host closed the connection]
headius has quit [Quit: headius]
sush24 has quit [Quit: Leaving]
martamccasland has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
Sinestro has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
kogent has joined #ruby-lang
nettsundere has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
soypirate has quit [Remote host closed the connection]
justinseiter has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
headius has joined #ruby-lang
headius has quit [Client Quit]
__BigO___ has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
bluepojo has quit [Ping timeout: 252 seconds]
kogent has quit [Quit: kogent]
blahwoop has joined #ruby-lang
davidbalbert is now known as davidbalber|away
bzb has joined #ruby-lang
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
erichmenge_ has joined #ruby-lang
erichmenge has quit [Quit: Arrivederci!]
erichmenge_ is now known as erichmenge
dhruvasagar has joined #ruby-lang
<bzb> Problem installing activerecord-mysql-adapter with MRI ruby 1.9.3-p362...details @ http://pastebin.com/MahMQP50
Rarrikins has quit [Ping timeout: 264 seconds]
bzalasky has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
waffleau_ has joined #ruby-lang
xalei has joined #ruby-lang
rins has quit [Ping timeout: 252 seconds]
qmx is now known as qmx|away
gnufied has quit [Quit: Leaving.]
Fretta has quit [Quit: Fretta]
xalei has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
io_syl has quit [Client Quit]
wyhaines has joined #ruby-lang
io_syl has joined #ruby-lang
mjio has quit []
gnufied has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
waffleau_ has quit [Quit: waffleau_]
<gnufied> bzb: solved?
<gnufied> you just need mysql client libraries
karasawa has quit [Ping timeout: 276 seconds]
klebervirgilio has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
<bzb> gnufied: does that mean I need to install mysql client libraries and recompile ruby again?
<gnufied> no. you need to install the client libraries and install mysql gem again
<gnufied> which platform you are on? Ubuntu?
glebm has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
klebervirgilio has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 245 seconds]
<bzb> i'm using lubuntu 12.04...i notice that my libmysqlclient18 is already installed
<gnufied> sudo apt-get install mysql-common mysql-client libmysqlclient-dev
<gnufied> and try installing the gem again
rippa has joined #ruby-lang
SiliconDon has joined #ruby-lang
charliesome has joined #ruby-lang
rippa has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 0.3.9.2]
blazes816 has quit [Quit: blazes816]
<bzb> gnufield: it worked. thank a bunch
blahwoop has quit []
bzb has left #ruby-lang ["Leaving"]
SiliconDon has quit [Ping timeout: 246 seconds]
bzb has joined #ruby-lang
Fretta has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
oreoshake has joined #ruby-lang
kogent has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
francisfish has quit [Ping timeout: 248 seconds]
bzb has quit [Ping timeout: 240 seconds]
Fretta has quit [Ping timeout: 260 seconds]
kogent has quit [Quit: kogent]
<S1kx> gnufied: could it be that already by the -O0 flag this issue got fixed?
<S1kx> like the issue might have been throguh some optimization
<S1kx> because ever since i compiled ruby with --enable-shared optflags="-O0" debugflags="-g3 -ggdb", it didnt die
<gnufied> you mean, you don't see the problem anymore?
<gnufied> he he.
<S1kx> yeah funny isnt it :[
<gnufied> honestly, I have no idea. need to look very closely to say anything
<S1kx> the other option is: the bug is actually a self-learning machine that figured out i am on to it
<gnufied> more plausible
<gnufied> keep running it like that. next time it happens you will have more data to work with.
<gnufied> of course,there is performance hit though
xcombelle has joined #ruby-lang
Averna has quit [Quit: Leaving.]
waffleau has joined #ruby-lang
<S1kx> yeah sure i dont mind about the performance hit really
<S1kx> better a slow running program than a non-running program
<gnufied> cool.
<S1kx> thanks already
andrewhl has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
b1rkh0ff has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
bzb has joined #ruby-lang
bzb has quit [Ping timeout: 248 seconds]
Sinestro has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby-lang
bzb has joined #ruby-lang
<yorickpeterse> Morning
judofyr has joined #ruby-lang
towski has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
<gnufied> morning!
<judofyr> morning!
Axsuul has quit [Ping timeout: 252 seconds]
havenn has quit [Remote host closed the connection]
solars has joined #ruby-lang
<injekt> morning!
<zenspider> ugh. git. why?!?
<judofyr> why? linus.
<zenspider> heh
<injekt> and because almost everything else sucks
<zenspider> magit says a have a ton of commits that are unpushed. `git onup` says everything is up to date. who's lying?
<zenspider> my first inclination is to just nuke the damn thing and re-clone
<injekt> I'll go for magit
<judofyr> "git log master" vs. "git log origin/master"?
chekcmate has joined #ruby-lang
<chekcmate> Morning guys!
ryanf has quit [Quit: broken pipes |||]
<Silex> zenspider: press 'g' in magit? :)
martamccasland has joined #ruby-lang
<zenspider> Silex: hah. I did that
<zenspider> that's what got me in trouble!
<Silex> huh..
<Silex> quit emacs and run it again then
<Spaceghost|cloud> zenspider: I'd say to put them both into an arena and see which wins the e-peen fight, if you pick up what i'm laying down.
<Silex> ah but wait I think I know what happens
<Silex> zenspider: you have started a magit-rebase operation but didn't finish it
<Silex> see in your .git for a ".magit-something"
<zenspider> judofyr: `git log X` is correct for all X except origin/master. origin/master shouldn't be mine, but maybe that's a lie
<Spaceghost|cloud> Silex: Which is reporting correctly?
<Silex> Spaceghost|cloud: wrong person
<zenspider> good: origin, zenspider/master master
<zenspider> bad: origin/master
intinig has joined #ruby-lang
<intinig> hello everyone
<zenspider> tho... magit says origin/master is correct. ARGH
<zenspider> (well, log view does)
<Silex> zenspider: git log --graph --all --decorate
<zenspider> that's what magit log is
<zenspider> and honestly, that doesn't clarify things for me... bewildering
ryanf has joined #ruby-lang
<zenspider> I want `git nuke origin/master` to strip everything down to what you'd get if you re-cloned
<Silex> zenspider: you're saying git log --graph displays origin/master at a different place than git log origin/master is?
<Spaceghost|cloud> Silex: No, I was asking you. zenspider could have answered I guess.
<Silex> zenspider: I'd try git fetch --all first to make sure the remotes are up to date
antbody has joined #ruby-lang
<zenspider> everything is up to date
gregmoreno has joined #ruby-lang
<Paradox> i made an egg salad sandwich
<Paradox> erm
<Paradox> nvm
<Silex> Spaceghost|cloud: I'm not sure to understand the question then... magit just uses git and has a custom rebasing mechanism that can make magit display weird thing if you fucked up magit in the middle of it
<Silex> erasing the custom magit file inside the .git directory fixes it
<Silex> zenspider: I don't understand the problem then... does git log --graph --all display origin/master at the right place?
<zenspider> there is no custom magit file in .git
<zenspider> git log shows: (HEAD, zenspider/simple-fixes, zenspider/master, origin/master, origin/HEAD, master)
agarcia has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
<zenspider> but magit says there is a TON of stuff that is unpushed
<gnufied> one of the reasons, I don't use magit
<Silex> because maybe it's unpushed
gregmoreno has quit [Ping timeout: 256 seconds]
<zenspider> gnufied: this is one of the reasons I don't use git. POS tool that a bunch of tools like to use
<Silex> that's why I'm asking you (3 times now) if git log --graph --all --decorate displays origin/master near master or "behind"
antbody has quit [Quit: leaving]
<zenspider> Silex: unpushed to WHERE?
<gnufied> is magit showing ignored stuff
<Silex> zenspider: to origin/master, duh
<zenspider> if I could push it, I would. but everything says it is up to date
<Silex> git push origin master
<zenspider> I don't have push access to origin master... and those commits CAME FROM origin master
<zenspider> I wouldn't have them otherwise
antbody has joined #ruby-lang
<Silex> okay. Time for pastebin: git branch -avv and git log --graph --all --decorate
<Silex> then I'll tell you what happens
<gnufied> I am pretty sure zenspider can figure this out
<gnufied> :-)
<Silex> apparently not
<Silex> :)
sush24 has quit [Quit: This computer has gone to sleep]
jonahR has quit [Quit: jonahR]
<gnufied> he just wanted to rant out on git.
<zenspider> gnufied: stfu
<chekcmate> anyone who got a listener for /proc/pid/fd? (or maybe an idea?)
<zenspider> Silex: branch -avv shows that origin/master and remotes/origin/master are different
<zenspider> which hurts my head
<chekcmate> (in ruby ofc)
<Silex> zenspider: okay, I think you managed ot name one of your local branches "origin/master"
klebervi_ has joined #ruby-lang
<zenspider> EVERY master branch is on the right commit except origin/master
<Silex> and thus everythign looks weird
<zenspider> yeah
<zenspider> very
<zenspider> fuck me I hate this thing
marr has joined #ruby-lang
<Silex> (but I can't confirm until I see the outpt of the commands I listed before)
jonahR has joined #ruby-lang
<zenspider> too late
<zenspider> I used the magit branch manager to delete it
<zenspider> and now magit appears happy again
<zenspider> the -avv part helped clarify that. thanks.
<Silex> in git branch -avv, there should be no branch named origin/foo
<zenspider> tho DAMN maglev has waaaay too many branches
banister`sleep has joined #ruby-lang
<zenspider> you mean w/o remotes/* right?
<Silex> only foo, bar, remotes/origin/foo, remotes/origin/bar
<Silex> the output has 3 colors, white for local branches, green for current branch, and red for remote branches
<Silex> if you see a branch named origin/foo in the white branches (local), then you did something wrong at some point
<Silex> what is weird is that it confused magit tho
<zenspider> *nod*
<Silex> also, check that git branch -avv has each foo branch pointing to their correct remote
<Silex> e.g master in white should have [origin/master] on the right of the SHA1
<zenspider> * master a094162 [origin/master] kill cat, so travis won't pick up its broken pipe as an error
<zenspider> that looks right
<Silex> yep, it's alright
<zenspider> that's my only local right now
<Silex> I'd try to find out how you managed to do "git branch origin/master" at some point of your workflow
antbody has quit [Quit: leaving]
<Paradox> 0 118 999 881 999 119 7253
francisfish has joined #ruby-lang
<zenspider> I think it was me trying to set my upstream to make it stop nagging me
sn0wb1rd has joined #ruby-lang
<Silex> zenspider: the easiest way (for me) to set up stream is to "git push -u origin master"
<Silex> -u makes it so local branch has remote branch set as upstream
<Silex> I never remember the correct --set-upstream syntax
sush24 has joined #ruby-lang
<Silex> zenspider: btw, in magit P then -u will set the upstream :)
<Paradox> 01189998819991197253
<judofyr> Silex: if the branch already exists on the remote, you can just do "git checkout <branch>" and should setup upstream automatically
drbrain_ has quit [Ping timeout: 248 seconds]
sush24 has quit [Client Quit]
<Silex> judofyr: yes, but if you created the local branch first and simply pushed, then push -u is very elegant
<judofyr> Silex: true
<zenspider> I'll try to remember -u
emocakes has joined #ruby-lang
<Silex> zenspider: just read the screen whenever you press P in magit
<Silex> it display the options (-f -u etc)
drbrain has joined #ruby-lang
drbrain_ has joined #ruby-lang
drbrain has quit [Ping timeout: 248 seconds]
blacktulip has joined #ruby-lang
sush24 has joined #ruby-lang
robotmay has joined #ruby-lang
jds___ has joined #ruby-lang
zmack has joined #ruby-lang
karasawa has joined #ruby-lang
jds__ has quit [Ping timeout: 248 seconds]
sn0wb1rd has quit [Read error: Connection reset by peer]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
sn0wb1rd has joined #ruby-lang
stardiviner has joined #ruby-lang
dwu1 has quit [Quit: Leaving.]
adambeynon has joined #ruby-lang
facest has quit [Quit: Leaving]
nkr has joined #ruby-lang
zz_chrismcg is now known as chrismcg
klebervi_ has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 248 seconds]
diegoviola has joined #ruby-lang
jxie has quit [Quit: leaving]
ryanf has quit [Quit: leaving]
rue|w has joined #ruby-lang
Nisstyre has quit [Ping timeout: 248 seconds]
<chekcmate> does inotify not register symbolic links??
oreoshake has quit [Read error: Connection reset by peer]
<chekcmate> IN_ONLYDIR ensures that the event occur only on a directory. If you create such watch on a file it will not emit events. IN_DONT_FOLLOW forbids following symbolic links (these ones will be monitored themselves and not the files they point to).
<chekcmate> alright...
oreoshake has joined #ruby-lang
waffleau has quit [Quit: waffleau]
* zenspider looks at channel name
* emocakes looks at zenspider
<judofyr> cakes!
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #ruby-lang
intinig has quit [Ping timeout: 255 seconds]
<chekcmate> is there a way of monitoring a directory AND its symlinks?
tonni has quit [Ping timeout: 256 seconds]
tonni has joined #ruby-lang
faces has joined #ruby-lang
Nisstyre has joined #ruby-lang
apod has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<zenspider> chekcmate: a symlink is just a file. you're monitoring it
<zenspider> what you want is something that traverses the symlink
<chekcmate> no
<chekcmate> when I e.g. monitor any /proc/pid/fd directory
<chekcmate> I won't get notified when there is change in this directory
<chekcmate> because they're all symlinks, which is not supported by the gem I used
<chekcmate> which is based on inotify
<heftig> chekcmate: this might also be because the filesystem doesn't support inotify
<chekcmate> hm?
<chekcmate> that makes no sense to what I read
<chekcmate> it works fine with other directories/non-symlinks
vlad_starkov has quit [Ping timeout: 246 seconds]
<chekcmate> IN_DONT_FOLLOW (since Linux 2.6.15) Don't dereference pathname if it is a symbolic link.
<chekcmate> ^-- that's my problem I think
<heftig> chekcmate: no, it's not
<chekcmate> thought maybe someone knows an alternative to this (or am I completly wrong here?)
<chekcmate> it's not?
<heftig> /proc simply does not support inotify in the way you want
<chekcmate> ah damnit
<chekcmate> ok...
<chekcmate> that's what you meant then
<chekcmate> I thought you meant the whole filesystem
<chekcmate> heftig: well, then let me modify my question: Is there a way of monitoring symlinks in /proc? hehe
<heftig> what are you trying to achive?
<chekcmate> I want to know which files are being used by a program (more or less)
<chekcmate> well, that's part of it... in a nutshell
<heftig> trace it?
<chekcmate> ?
<heftig> man ptrace
<chekcmate> is this usable in ruby?
<heftig> not as such, no
<heftig> you could IO.popen strace
<chekcmate> but generally, my idea of using a listener won't work?
<chekcmate> (at least at /proc that is?)
<heftig> it won't
<heftig> more specifically, strace -e open -p <pid>
waffleau has joined #ruby-lang
<chekcmate> hu... strace looks good :)
waffleau has quit [Client Quit]
<gnufied> well you can use lsof as well
<chekcmate> heftig: using strace in ruby/processing the output is possible though, right?
<chekcmate> lsof won't do
<gnufied> you want realtime?
<chekcmate> tried it, but lsof won't get EVERYTHING
<chekcmate> yea, I simulated some file accesses and lsof did not get everything
<chekcmate> I decided to go with "tell me when something changes" instead of permanently asking "did something change?"
<chekcmate> (sorry for my explanation)
<heftig> there's also fatrace
<chekcmate> hm...
<heftig> it'll need privileges, but will show you operations system-wide
<chekcmate> can I specify the pid+childs?
<heftig> no, you can just tell it to ignore single pids
<chekcmate> ah ok
<chekcmate> it's more or less for someone who has to "clean up" a program and wants to know which files are still being used by it and which aren't
<heftig> that's basically voodoo
<heftig> maybe the program has internal state that references files that aren't open, but shouldn't be deleted
<heftig> you can't know that
<chekcmate> well... he kinda started with lsof, but that won't do
<chekcmate> heftig: um.. I think it works when analyzing /proc/pid/maps or smaps
<chekcmate> brb 5min (sorry)
<heftig> chekcmate: no, that just gets you mmaped files
sush24 has quit [Quit: This computer has gone to sleep]
ottbot has joined #ruby-lang
<chekcmate> heftig: it's really only "which files are written/read" only - I made sure
apod has quit [Ping timeout: 260 seconds]
<chekcmate> but thanks for giving me that hint with referenced files - did not think of it!
wallerdev has quit [Quit: wallerdev]
GarethAdams has joined #ruby-lang
Kreeki has joined #ruby-lang
karasawa has quit [Read error: Connection reset by peer]
retro|cz has joined #ruby-lang
<chekcmate> heftig: Haha, wanna know the background to that task? Remember the time when it was faster filling files with data from a DB and process it in that file, instead of directly doing it on the DB?
karasawa has joined #ruby-lang
<chekcmate> (yea, me neither) - but that's where those obsolete files come from haha.
madish has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
rippa has joined #ruby-lang
VGoff has quit [Quit: ZNC - http://znc.sourceforge.net]
voxal has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
VGoff has joined #ruby-lang
banister`sleep has quit [Ping timeout: 260 seconds]
tbuehlmann has joined #ruby-lang
<ottbot> meta-meta2-C /buffer +1a
<ottbot> oops, sorry!
<chekcmate> yes, I like sausages too.
workmad3 has joined #ruby-lang
mjolk has joined #ruby-lang
carloslopes has joined #ruby-lang
postmodern has quit [Quit: Leaving]
waffleau_ has joined #ruby-lang
leopard_me has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
karasawa has quit [Ping timeout: 264 seconds]
rue|w has quit [Read error: No route to host]
rue|w has joined #ruby-lang
krz has quit [Quit: krz]
corlinfive has joined #ruby-lang
karasawa has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jonahR has quit [Quit: jonahR]
Hakon has joined #ruby-lang
bzb has quit [Quit: Leaving]
corlinfive has quit [Ping timeout: 245 seconds]
rue|w has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
corlinfive has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
Rarrikins has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
mjolk has quit [Quit: Leaving]
mjolk has joined #ruby-lang
corlinfive has quit [Ping timeout: 240 seconds]
jxie has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
corlinfive has joined #ruby-lang
FiXato has quit [Quit: Quit my IRC client. I'll probably be back soon after a restart of it.]
dmwuw has quit [Ping timeout: 255 seconds]
srbaker has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
FiXato has joined #ruby-lang
corlinfive has quit [Ping timeout: 248 seconds]
gnufied has joined #ruby-lang
__BigO__ has joined #ruby-lang
corlinfive has joined #ruby-lang
goatish_mound has joined #ruby-lang
corlinfive has quit [Ping timeout: 245 seconds]
rue|w has quit [Read error: Connection reset by peer]
rue_XIW has joined #ruby-lang
corlinfive has joined #ruby-lang
corlinfive has left #ruby-lang [#ruby-lang]
sepp2k has joined #ruby-lang
rue_XIW has quit [Read error: No route to host]
Mon_Ouie has joined #ruby-lang
rue|w has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
stevechiagozie has joined #ruby-lang
sheerun has quit [Quit: ZNC - http://znc.in]
sheerun has joined #ruby-lang
Rarrikins has quit [Read error: Connection reset by peer]
Rarrikins has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
karasawa has quit [Remote host closed the connection]
toretore has joined #ruby-lang
rue|w has joined #ruby-lang
<retro|cz> sorry for lame question, but can I get class variable better than A::B.class_eval("@@filters") ?
vlad_starkov has joined #ruby-lang
<judofyr> retro|cz: .class_variable_get(:@@foo)
<retro|cz> judofyr, ok, thanks
dustint has joined #ruby-lang
<apeiros> or provide a damn accessor…
<retro|cz> apeiros, it's from library, so I don't want to modify original code.
stevechiagozie has quit [Read error: Connection reset by peer]
<apeiros> you don't have to
<apeiros> ruby ain't java
<retro|cz> apeiros, you mean I should do class_eval and add it there?
<apeiros> you don't even need to do a class_eval
Nisstyre has quit [Ping timeout: 252 seconds]
<apeiros> def A::B.filters; @@filters; end
<retro|cz> apeiros, I'm calling it only once. so class_variable_get is better for me probably. But thanks for idea.
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
dhruvasagar has quit [Ping timeout: 252 seconds]
Nisstyre has joined #ruby-lang
karasawa has joined #ruby-lang
carloslopes has joined #ruby-lang
jxie has quit [Quit: leaving]
justinseiter has joined #ruby-lang
madcoder_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
sailias has joined #ruby-lang
jxie has joined #ruby-lang
jtoy has joined #ruby-lang
voxal has quit [Quit: Page closed]
karasawa has quit [Ping timeout: 264 seconds]
karasawa has joined #ruby-lang
<yorickpeterse> https://gist.github.com/4547124 I think this right here justifies not using Draper 0.10 in $PROD
<yorickpeterse> I however fear I can't just upgrade to the latest version without spending a few hours fixing everything
<apeiros> yorickpeterse: wtf?
<judofyr> I 2nd apieros: WTF?
<judofyr> 10 times slower for regular method calls?
<yorickpeterse> So it seems
<yorickpeterse> It increases exponentially
<apeiros> yorickpeterse: what does the profiler say?
<yorickpeterse> Profiler?
<apeiros> I mean, how can it even interfere with that?
<apeiros> ruby -rprofile
<yorickpeterse> lemme check
<apeiros> (or actually better use ruby-prof)
<apeiros> beware, -rprofile = ~100x slower (no joke)
Bearproof has joined #ruby-lang
<apeiros> with ruby-prof, it's something around 2-5x slower iirc
<yorickpeterse> meh, I'll crack open ruby-prof
Bearproof has left #ruby-lang [#ruby-lang]
<yorickpeterse> tbh since there's a newer version I first want to try that
<yorickpeterse> For all I know it's just some weird bug that has already been fixed
<yorickpeterse> what the fuck, draper *requires* active model?
<yorickpeterse> For a simple proxy system that seems like a massive overkill
__BigO__ has quit [Remote host closed the connection]
<yorickpeterse> lol nope, still slow
<yorickpeterse> where's klabnik when you need him
srbaker has quit [Quit: Computer has gone to sleep.]
kiyan has joined #ruby-lang
kiyan has left #ruby-lang [#ruby-lang]
banister`sleep has joined #ruby-lang
sailias has quit [Quit: Leaving.]
zmack_ has joined #ruby-lang
zmack has quit [Ping timeout: 252 seconds]
justinseiter has quit [Ping timeout: 272 seconds]
karasawa has quit [Ping timeout: 240 seconds]
justinseiter has joined #ruby-lang
martamccasland has quit [Quit: Leaving]
mistym has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
rue_XIW has joined #ruby-lang
qmx|away is now known as qmx
srbaker has joined #ruby-lang
<yorickpeterse> found it!
<yorickpeterse> Hash#assert_valid_keys is for some reason slow as balls
<yorickpeterse> if I mock out the method call it saves me about a second
breakingthings has joined #ruby-lang
justinseiter has quit [Ping timeout: 272 seconds]
justinseiter has joined #ruby-lang
cored has quit [Ping timeout: 252 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
Kreeki has quit [Quit: Leaving...]
scampbell has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
scottschecter has joined #ruby-lang
scampbell has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
unlikely_monkey has joined #ruby-lang
<tbuehlmann> I'm testing a lib/gem with rspec and would like to alter behaviour depending on the environment. precisely, I want to disable a begin/rescue block (or reraise in it) if the environment is set to 'test' (or similar). how do ppl set their env for tests? using ENV?
sailias has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
stardiviner has joined #ruby-lang
jonahR has joined #ruby-lang
<injekt> tbuehlmann: anything test env dependent would just usually go into a test helper for example
<injekt> tbuehlmann: otherwise, what other environment would you tests be run in
<tbuehlmann> at the moment, I don't set any environment
MaddinXx_ has joined #ruby-lang
<injekt> tbuehlmann: sure if you're running the tests, you environment would always be test?
<tbuehlmann> hm?
Croms has joined #ruby-lang
<injekt> oh, you want to check if it's in the test env from inside the lib?
<tbuehlmann> no, just from inside the lib. I'm just unsure where and how to set it appropriatly. so, there where could be my spec_helper.rb, that's fine. and how? using a constant like ENV?
<injekt> uh, maybe I'm missing something but i still have no idea what you're trying to do exactly
mistym has quit [Remote host closed the connection]
Croms has quit [Remote host closed the connection]
Croms has joined #ruby-lang
<tbuehlmann> I want to set an environment variable somewhere to 'test' when running my tests, so I can alter some lib code (like `raise if ENV['LIBNAME_ENV'] == 'test'` in a begin/rescue block)
<tbuehlmann> does rspec do that for me somewhere? and if not, how and where do people set it?
<injekt> tbuehlmann: right, I would recommend against that and instead stub any code you need to inside your test helper
rdw200169 has joined #ruby-lang
jxie has quit [Quit: leaving]
<tbuehlmann> ah
<injekt> but I would also recommend against that, your tests should be testing the exact functionality of your code, your wouldn't be doing that
<tbuehlmann> I'm testing some callback functionality and can't be sure if a callback raises somewhere, since it's being rescued. and so I can't tell if the callback itself even fired up. right now I'm testing this with `@called = true` in the spec at the end of the callback code and check for that
dustint has quit [Ping timeout: 245 seconds]
<tbuehlmann> this works, but I'm unhappy with it since I cannot really say if something else is maybe going wrong inside the begin/rescue block
davidbalbert is now known as davidbalber|away
<tbuehlmann> but stubbing or altering the code for the spec sounds good
ezkl has joined #ruby-lang
spinagon has joined #ruby-lang
davidbalber|away is now known as davidbalbert
Sinestro has joined #ruby-lang
rippa has quit [Ping timeout: 252 seconds]
dustint has joined #ruby-lang
<workmad3> tbuehlmann: so you have some code, and you can't test if it's working correctly because of the way it's structured?
<workmad3> tbuehlmann: I'd suggest writing some characterization tests, and then refactoring it until you can test it (without inserting test-specific code paths)
<tbuehlmann> well, I actually can test it, but it feels not too clever. right now I don't know if a callback is raising an error, and I would like to change that
<tbuehlmann> I could simply put the begin/rescue block into its own method and stub that, that'd do it
skitfish has joined #ruby-lang
<skitfish> Hello, I have a quick question about Ruby arrays and '.empty?', if anyone's available and willing to assist.
<skitfish> The condition in question is:
<skitfish> if node['resolver']['nameservers'].empty? || node['resolver']['nameservers'][0].empty?
<skitfish> This is from Chef, but I believe someone with Ruby experience can answer it. The question is why is the second part (after the '||') of the condition present?
Fretta has joined #ruby-lang
madcoder_ has quit [Read error: Connection reset by peer]
<injekt> skitfish: the first checks if the 'nameservers' value is empty, and if its not it checks if the first object in that array is empty
dzhulk has joined #ruby-lang
<skitfish> Thanks injekt. The next line in the code, which I downloaded from Opscode, warns that, nameservers is empty. If only the first index of the array is empty, then I wonder why the code warns about nameservers being empty.
<injekt> skitfish: that's an OR condition, the second part isn't evaluated if the first part returns true
<injekt> skitfish: so, it doesn't even check the first index of the array, because well.. it's empty
<skitfish> That's fair enough, but what if the array were: [ "", "blah", "blah" ] ?
<injekt> then that would indeed return true, for the second condition
waffleau_ has left #ruby-lang [#ruby-lang]
<skitfish> Cool. Out of interest, have you used Chef before?
<ericwood> only SwedishChef
<injekt> skitfish: hardly
<ericwood> but it has a tendency to borkborkbork ;)
jxie has joined #ruby-lang
<skitfish> ericwood: :P
<skitfish> If I may, the code snippet (from here: http://community.opscode.com/cookbooks/resolver) is:
<skitfish> if node['resolver']['nameservers'].empty? || node['resolver']['nameservers'][0].empty?
<skitfish> Chef::Log.warn("#{cookbook_name}::#{recipe_name} requires that attribute ['resolver']['nameservers'] is set.")
<skitfish> But, as per your explanation, there is a condition in which we can reach the 'Chef::Log...' line, without the array being empty.
<skitfish> Bad code?
Haribhau has quit [Read error: Connection reset by peer]
dustint_ has joined #ruby-lang
Haribhau has joined #ruby-lang
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
<injekt> skitfish: I would say so yes, the warning says it requires that the nameservers are set, but doesn't explicitly check that, so as you say.. ["", "foo", "bar"] would pass this. But I haven't any of the other code (which could strip stuff like this, who knows)
Fretta has quit [Remote host closed the connection]
dustint_ has quit [Client Quit]
chekcmate has quit [Quit: Page closed]
bantic has joined #ruby-lang
<skitfish> OK, thanks injekt
<skitfish> Appreciated.
dustint has quit [Quit: Leaving]
chekcmate has joined #ruby-lang
dustint has joined #ruby-lang
chekcmate has quit [Client Quit]
justinseiter has quit [Ping timeout: 272 seconds]
__BigO__ has joined #ruby-lang
justinseiter has joined #ruby-lang
blahwoop has joined #ruby-lang
adamjleonard has joined #ruby-lang
jxie has quit [Quit: leaving]
Sinestro has quit [Quit: Computer has gone to sleep.]
jxie has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
srbaker has joined #ruby-lang
carloslopes has joined #ruby-lang
maxmanders has joined #ruby-lang
wyhaines has joined #ruby-lang
jxie has quit [Quit: leaving]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
jxie has joined #ruby-lang
cba has joined #ruby-lang
methods has joined #ruby-lang
methods has quit [Read error: Connection reset by peer]
methods has joined #ruby-lang
karasawa has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
gnufied has joined #ruby-lang
rue_XIW has quit [Read error: No route to host]
rue|w has joined #ruby-lang
flujan has joined #ruby-lang
<flujan> s = "1,,2,3,4,5,,"
<flujan> guys, for the s string above, how can I use split without eliminating the empty fields?
bantic has quit [Read error: Connection reset by peer]
<injekt> flujan: split wouldn't eliminate empty fields
<injekt> apart from on the end
Rarrikins has quit [Ping timeout: 252 seconds]
<flujan> injekt: indeed. that is it… the last one is eliminated… how can I avoid it?
<mistym> That looks like CSV; you could parse it using the builtin CSV module.
Croms_ has joined #ruby-lang
<injekt> yeah, that would return => [["1", nil, "2", "3", "4", "5", nil, nil]]
<mistym> require 'csv'; CSV.parse(s) #=> [["1", nil, "2", "3", "4", "5", nil, nil]]
Austin__ has joined #ruby-lang
v0lta has joined #ruby-lang
v0lta has quit [Client Quit]
<flujan> thanks.
jxie has quit [Read error: Connection reset by peer]
Croms has quit [Ping timeout: 255 seconds]
v0lta has joined #ruby-lang
bantic has joined #ruby-lang
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
kogent has joined #ruby-lang
apod has joined #ruby-lang
rins has joined #ruby-lang
fjfish has joined #ruby-lang
jxie has joined #ruby-lang
fjfish has quit [Read error: Connection reset by peer]
fjfish has joined #ruby-lang
francisfish has quit [Ping timeout: 276 seconds]
zarubin has quit [Ping timeout: 264 seconds]
bantic has quit [Ping timeout: 276 seconds]
bantic has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
zarubin has joined #ruby-lang
qmx is now known as qmx|lunch
judofyr has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
listrophy has left #ruby-lang [#ruby-lang]
jxie has quit [Quit: leaving]
zarubin has quit [Ping timeout: 276 seconds]
zarubin has joined #ruby-lang
flujan has left #ruby-lang [#ruby-lang]
judofyr has quit [Ping timeout: 272 seconds]
solars has quit [Ping timeout: 248 seconds]
rue|w has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 276 seconds]
jxie has joined #ruby-lang
goatish_mound is now known as rsl
karasawa has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
<tbuehlmann> injekt, workmad3, thanks for the input
tbuehlmann has quit [Remote host closed the connection]
seydar has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
glebm has joined #ruby-lang
<seydar> Mon_Ouie: ping!
<seydar> Mon_Ouie: aussi es-tu francais?
<Mon_Ouie> seydar: Pong
<Mon_Ouie> Non, mais je parle français.
<Mon_Ouie> banister`sleep: ^ You might enjoy this. :p
<seydar> Mon_Ouie: a-t-on permission a parler francais ici?
cultureulterior_ has joined #ruby-lang
<Mon_Ouie> I'd rather use another channel/private message to avoid confusion
cultureulterior_ has quit [Client Quit]
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
<seydar> j'ai des questions sur coolline mais je voudrais en discuter en francais
MaddinXx_ has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
justinram has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
v0lta has quit [Remote host closed the connection]
dmwuw has joined #ruby-lang
wallerdev has joined #ruby-lang
dmwuw has quit [Remote host closed the connection]
Bearproof has joined #ruby-lang
TvL2386 has joined #ruby-lang
andrewhl has joined #ruby-lang
maxmanders has joined #ruby-lang
gnufied has joined #ruby-lang
zarubin has quit [Ping timeout: 248 seconds]
<TvL2386> hi guys, I am developing a gem that requires json and must work on 1.8.7, 1.9.2 & 1.9.3. 1.8.7 has no built in json and requires to be dependent on the json gem. But 1.9.2 & 1.9.3 have built-in json support. How do you handle this developing a new gem?
zarubin has joined #ruby-lang
mercwithamouth has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
sulo has joined #ruby-lang
socialcoder has joined #ruby-lang
<socialcoder> how to find the ASCII value of a particular character in ruby
<socialcoder> try puts ?X didnt work
linc01n has quit [Quit: ZNC - http://znc.in]
linc01n has joined #ruby-lang
<mistym> socialcoder: What do you mean by "ASCII value"? The integer value in ASCII?
<socialcoder> oops
<socialcoder> yes
<socialcoder> integer value
sulo has quit [Remote host closed the connection]
blazes816 has joined #ruby-lang
<mistym> chr.unpack('C')
<mistym> (That interprets it as an unsigned char.)
<mistym> You can also use 'U' to interpret it as a UTF-8 character.
<socialcoder> i am confused
jorydotcom has joined #ruby-lang
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
Kreeki has joined #ruby-lang
apod has quit [Quit: Leaving]
<manveru> TvL2386: just put the dependency in the gemspec with an if for that version?
tdy_ has quit [Quit: WeeChat 0.3.9.2]
tdy has joined #ruby-lang
<manveru> or push two gems with different required_ruby_version
davidbalbert is now known as davidbalber|away
<mistym> socialcoder: ASCII characters take up the first 7 bits of an 8 bit byte. string#unpack interprets a character as bianry data and converts it into an array of integers representing the string's values. So chr.unpack('C') is interpreting chr as an 8-bit unsigned char and printing out its integer value, which equates to its ASCII value for a character that exists within ASCII.
justinram has quit [Remote host closed the connection]
<mistym> s/printing out/returning/
<apeiros> also chr.ord
<apeiros> chr.ord(encoding) if it's a non-ascii/non-binary
<TvL2386> manveru, tyvm!
<mistym> apeiros: Yeah, that's easier than unpack actually.
<apeiros> hu, wait… ord(encoding) doesn't work?
<apeiros> ah, other way round
<apeiros> chr(encoding)
Kreeki has quit [Quit: Leaving...]
<apeiros> but with ord, encoding is already available via String#encoding
<apeiros> "∞".ord # => 8734
<apeiros> "∞".force_encoding('binary').ord # => 226
<apeiros> (of course, "∞".bytesize # => 3)
<apeiros> (i.e., the 2nd one returns the unsigned integer value of the first byte)
* apeiros off, commute - cya guys
<mistym> Bye apeiros
wallerdev has quit [Quit: wallerdev]
<manveru> >> s = "∞"; [s, s.dup.force_encoding('BINARY')].map{|n| n.codepoints.to_a }
<manveru> => [[8734], [226, 136, 158]]
<manveru> cu
ducks has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
gregmoreno has joined #ruby-lang
seydar has quit [Quit: leaving]
jorydotcom has left #ruby-lang [#ruby-lang]
qmx|lunch is now known as qmx
solars has joined #ruby-lang
rins has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby-lang
rins has joined #ruby-lang
alvaro_o has joined #ruby-lang
socialcoder has quit []
io_syl has quit [Quit: Computer has gone to sleep.]
glebm has quit [Quit: Computer has gone to sleep.]
skitfish has quit [Quit: "Gone"]
Bearproof has quit [Quit: Leaving.]
mk03 has joined #ruby-lang
bfreeman has joined #ruby-lang
MSU has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
bigtunacan has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
apeiros has joined #ruby-lang
glebm has joined #ruby-lang
ronaldo__ has joined #ruby-lang
gjaldon has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
glebm has quit [Read error: Connection reset by peer]
glebm_ has joined #ruby-lang
zmack_ has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
fjfish has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
Awesomesauce has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
s1n4 has quit [Quit: leaving]
jtoy has joined #ruby-lang
thisIsDog has joined #ruby-lang
sulo has joined #ruby-lang
Austin__ has joined #ruby-lang
Awesomesauce has quit [Quit: Page closed]
gjaldon has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
gjaldon has joined #ruby-lang
Austin__ has quit [Client Quit]
Austin__ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
mistym is now known as mistym_lunch
sulo has quit [Ping timeout: 276 seconds]
breakingthings has quit []
ronaldo__ has quit [Read error: Connection reset by peer]
ronaldo__ has joined #ruby-lang
sush24 has joined #ruby-lang
chrismcg is now known as zz_chrismcg
JohnBat26 has joined #ruby-lang
havenn has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
ivanoats has quit [Read error: Connection reset by peer]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
S1kx has quit [Quit: Leaving]
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
jtoy has quit [Quit: jtoy]
bigtunacan has quit [Quit: bigtunacan]
karasawa has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
jstemmer has quit [Quit: leaving]
sn0wb1rd has joined #ruby-lang
_br_ has quit [Excess Flood]
Nisstyre-laptop has joined #ruby-lang
_br_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
Croms_ has quit [Quit: Croms_]
Bearproof has joined #ruby-lang
mrsolo has joined #ruby-lang
_br_ has quit [Excess Flood]
brianpWins has joined #ruby-lang
_br_ has joined #ruby-lang
sush24 has quit [Quit: Leaving]
b1rkh0ff has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby-lang
towski has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 245 seconds]
davidbalber|away is now known as davidbalbert
JMcAfreak has quit [Remote host closed the connection]
Bearproof has quit [Quit: Leaving.]
Criztian has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
Bearproof has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
b1rkh0ff has joined #ruby-lang
vlad_starkov has joined #ruby-lang
map_ has joined #ruby-lang
Kreeki has joined #ruby-lang
Bearproof has quit [Quit: Leaving.]
davidbalbert is now known as davidbalber|away
io_syl has joined #ruby-lang
drbrain_ is now known as drbrain
ivanoats has quit [Read error: No route to host]
canton7 has quit [Ping timeout: 252 seconds]
canton7 has joined #ruby-lang
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
jtoy has joined #ruby-lang
map_ has left #ruby-lang [#ruby-lang]
setmeaway has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby-lang
Criztian has quit [Read error: Connection reset by peer]
<Spaceghost|cloud> Silex: I don't think it matters anymore. :)
ivanoats has joined #ruby-lang
retro|cz has quit [Ping timeout: 248 seconds]
setmeaway has joined #ruby-lang
karasawa has quit [Ping timeout: 272 seconds]
glebm_ has quit [Quit: Computer has gone to sleep.]
breakingthings has joined #ruby-lang
mossplix has joined #ruby-lang
Kreeki has quit [Quit: Leaving...]
pkrnj has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Nisstyre-laptop has quit [Quit: Leaving]
Bearproof has joined #ruby-lang
alvaro_o_ has joined #ruby-lang
alvaro_o has quit [Ping timeout: 240 seconds]
runeb has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
Criztian_ has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
setmeaway2 has joined #ruby-lang
setmeaway has quit [Ping timeout: 248 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
francisfish has joined #ruby-lang
drbrain has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
bigtunacan has joined #ruby-lang
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
io_syl has joined #ruby-lang
Kreeki has joined #ruby-lang
tenderlove has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
Kreeki has quit [Client Quit]
cultureulterior_ has quit [Client Quit]
karasawa has quit [Ping timeout: 244 seconds]
oreoshake has left #ruby-lang [#ruby-lang]
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby-lang
justinram has joined #ruby-lang
leopard_me has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
glebm has joined #ruby-lang
mistym_lunch is now known as mistym
ivanoats has quit [Ping timeout: 252 seconds]
JMcAfreak has joined #ruby-lang
thisIsDog has quit [Ping timeout: 245 seconds]
zmack has joined #ruby-lang
lcdhoffman has joined #ruby-lang
davidbalber|away is now known as davidbalbert
enebo has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 272 seconds]
spinagon has quit [Ping timeout: 252 seconds]
runeb has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
Criztian has joined #ruby-lang
bluepojo has joined #ruby-lang
fsvehla has joined #ruby-lang
rolfb has joined #ruby-lang
ttilley has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
karasawa has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
zmack has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Quit: Leaving]
karasawa has quit [Ping timeout: 264 seconds]
jperry2 has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
JohnBat26 has quit [Ping timeout: 252 seconds]
headius has joined #ruby-lang
runeb has joined #ruby-lang
havenn has quit [Remote host closed the connection]
ttilley is now known as tt-afk
bigtunacan has quit [Quit: bigtunacan]
havenn has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
havenn has quit [Ping timeout: 276 seconds]
Kreeki has joined #ruby-lang
Bearproof has quit [Quit: Leaving.]
solars has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
bantic has quit [Ping timeout: 272 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
bantic has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
drbrain has joined #ruby-lang
robotmay has joined #ruby-lang
sustainableweb has joined #ruby-lang
ivanoats has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
jtoy has quit [Quit: jtoy]
_Sketch_ has left #ruby-lang [#ruby-lang]
sailias has quit [Quit: Leaving.]
cultureulterior_ has joined #ruby-lang
cultureulterior_ has quit [Client Quit]
sustainableweb is now known as ivanoats
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
karasawa has joined #ruby-lang
jtoy has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
cultureulterior_ has quit [Client Quit]
adambeynon has joined #ruby-lang
benanne has joined #ruby-lang
zigidias has joined #ruby-lang
karasawa has quit [Ping timeout: 264 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
ivanoats has quit [Ping timeout: 255 seconds]
scampbell has quit [Read error: Connection reset by peer]
tt-afk has quit [Quit: tt-afk]
workmad3 has joined #ruby-lang
robotmay has quit [Read error: No route to host]
robotmay_ has joined #ruby-lang
qmx is now known as qmx|brb
Austin__1 has joined #ruby-lang
glebm has quit [Read error: No route to host]
glebm has joined #ruby-lang
Austin__ has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
srbaker has joined #ruby-lang
qmx|brb is now known as qmx
sailias has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
drbrain_ has joined #ruby-lang
Austin__1 has left #ruby-lang [#ruby-lang]
tenderlove has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Read error: Connection reset by peer]
drbrain has quit [Ping timeout: 248 seconds]
havenn has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
thone has quit [Read error: Connection reset by peer]
thone has joined #ruby-lang
havenn has quit [Read error: No route to host]
havenn has joined #ruby-lang
nkr has quit [Quit: Linkinus - http://linkinus.com]
davidbalbert is now known as davidbalber|away
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 248 seconds]
hibariya_ has quit [Quit: No Ping reply in 180 seconds.]
hibariya has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
bigtunacan has joined #ruby-lang
stardiviner has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
sailias has quit [Quit: Leaving.]
francisfish has joined #ruby-lang
banister`sleep has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
jtoy has quit [Quit: jtoy]
Bearproof has joined #ruby-lang
drbrain_ is now known as drbrain
karasawa has joined #ruby-lang
manveru has quit [Ping timeout: 264 seconds]
gix has quit [Ping timeout: 252 seconds]
Kreeki has quit [Ping timeout: 252 seconds]
<cored> hello
<cored> I'm having an issue with my Gemfile
<cored> I added a line that's says gem 'lib', :github => 'url-to-lib'
<cored> bundle installed successfully as far as I saw, but I can't load the gem with require 'lib'
<cored> I'm using Ruby 1.9.2p320 through rvm
<cored> any suggestion?
karasawa has quit [Ping timeout: 252 seconds]
jonahR has joined #ruby-lang
bigtunacan has quit [Quit: bigtunacan]
gix has joined #ruby-lang
mjio has joined #ruby-lang
<havenn> cored: Not sure what is causing your problem, but in general I'd suggest Ruby 1.9.3 and make sure you're using latest RVM: rvm get stable
vlad_starkov has joined #ruby-lang
manveru has joined #ruby-lang
Axsuul has joined #ruby-lang
<havenn> cored: If it works on 1.9.2 it works or works better on 1.9.3. :)
<TvL2386> cored can you tell use which 'lib'?
mossplix has quit [Ping timeout: 272 seconds]
<cored> TvL2386: octokit's
<cored> havenn: I'll switch to 1.9.3 then
<cored> well that will imply I will have to change travis and my lib is a dependency of another application which is not migrated to 1.9.3 yet, but I'm guessing the transaction should be smooth
<cored> right
<cored> ?
<havenn> cored: should be just a few rvm commands to install 1.9.3-head and get gems updated, i'd think
jtoy has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
<TvL2386> cored: this works on 1.9.3: https://gist.github.com/4551677
blahwoop has quit [Ping timeout: 248 seconds]
lcdhoffman has joined #ruby-lang
Veejay has left #ruby-lang ["WeeChat 0.3.0"]
francisfish has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
wyhaines has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
postmodern has joined #ruby-lang
sailias has joined #ruby-lang
blahwoop has joined #ruby-lang
<cored> TvL2386: but I need it working on 1.9.2, because of the bigger app which needs it
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
breakingthings has quit []
banisterfiend has joined #ruby-lang
sustainableweb has joined #ruby-lang
outoftime has joined #ruby-lang
qmx is now known as qmx|away
ivanoats has quit [Ping timeout: 244 seconds]
apeiros has quit [Remote host closed the connection]
<zenspider> cored: just because the gem is named X doesn't mean there is a corresponding require X
<zenspider> tho... in this case, it looks like there is
<zenspider> pls don't use bundler.require unless there is a compelling reason to
zarubin has quit [Remote host closed the connection]
<cored> zenspider: there is a require X in my code
<cored> I was using the lib from the core team, I switched to another one becuase of a particular feature
<cored> I'm no using bundler.require neither
<cored> s/no/not
zarubin has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
runeb has quit [Remote host closed the connection]
towski has quit [Remote host closed the connection]
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
zarubin has quit [Ping timeout: 276 seconds]
Sinestro has joined #ruby-lang
zarubin has joined #ruby-lang
sailias has quit [Quit: Leaving.]
cultureulterior_ has joined #ruby-lang
bantic has quit [Read error: Connection timed out]
enebo has quit [Quit: enebo]
mercwithamouth has joined #ruby-lang
TvL2386 has quit [Remote host closed the connection]
outoftime has quit [Quit: Leaving]
bantic has joined #ruby-lang
szarubin has joined #ruby-lang
outoftime has joined #ruby-lang
zarubin has quit [Ping timeout: 276 seconds]
mk03 has quit [Remote host closed the connection]
Criztian has quit [Ping timeout: 256 seconds]
cultureulterior_ has quit [Quit: cultureulterior_]
__BigO__ has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
mjolk has quit [Quit: This computer has gone to sleep]
karasawa has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
karasawa has quit [Ping timeout: 264 seconds]
t_ has joined #ruby-lang
ivanoats has joined #ruby-lang
havenn has quit [Remote host closed the connection]
szarubin has quit []
havenn has joined #ruby-lang
mistym has joined #ruby-lang
zarubin has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
headius has quit [Quit: headius]
rins has quit [Ping timeout: 260 seconds]
sustainableweb has quit [Ping timeout: 248 seconds]
havenn has quit [Ping timeout: 276 seconds]
spuk has joined #ruby-lang
bantic has quit [Quit: bantic]
chaosis has joined #ruby-lang
havenn has joined #ruby-lang
Averna has joined #ruby-lang
justinram has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]