ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
flowerpot has joined #ruby-lang
nofxx has joined #ruby-lang
cjs226 has joined #ruby-lang
flowerpot has joined #ruby-lang
jtoy has joined #ruby-lang
nofxx has joined #ruby-lang
bryancp has joined #ruby-lang
tomzx has joined #ruby-lang
nofxx has joined #ruby-lang
dv310p3r has joined #ruby-lang
dcorbin has quit ["Leaving"]
chessguy has joined #ruby-lang
igotnolegs has joined #ruby-lang
nofxx has joined #ruby-lang
geekfactor has joined #ruby-lang
nofxx has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
mbriggs has joined #ruby-lang
shevy has joined #ruby-lang
nofxx has joined #ruby-lang
t_ has joined #ruby-lang
gsav has joined #ruby-lang
nofxx has joined #ruby-lang
icmap has joined #ruby-lang
WillMarshall has joined #ruby-lang
hirotoshi has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
srbartlett has joined #ruby-lang
ando has joined #ruby-lang
slimfit has joined #ruby-lang
neoesque has joined #ruby-lang
nofxx has joined #ruby-lang
<erikh> https://gist.github.com/212292650ec7882d37c7 does this seem legible api-wise?
<erikh> I mean, can you understand what it's doing without documentation?
srbartlett has joined #ruby-lang
<erikh> I'm going to document it, I just want to make sure it's clear what it's doing.
nofxx has joined #ruby-lang
icmap has joined #ruby-lang
nofxx has joined #ruby-lang
slimfit has joined #ruby-lang
icmap has quit [#ruby-lang]
igotnolegs has joined #ruby-lang
nofxx has joined #ruby-lang
srbartlett has joined #ruby-lang
gnufied has joined #ruby-lang
nofxx has joined #ruby-lang
Tasser has joined #ruby-lang
shtirlic_ has joined #ruby-lang
nofxx has joined #ruby-lang
jakko has joined #ruby-lang
<Xzyx987X> hmm... I am getting inconsistent behavior with file.flock. on windows it works fine, but on a linux box, it doesn't appear to work at all
<Xzyx987X> here are the results I'm getting: http://pastie.org/3801840
<Xzyx987X> flock is a *nix creation to begin with, so I'm a little baffled why it would be working on windows, but not linux
slimfit has joined #ruby-lang
drumond19 has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
woollyams has joined #ruby-lang
nofxx has joined #ruby-lang
<Xzyx987X> here is the code I was using it for, by the way: http://pastie.org/3801906
<Xzyx987X> be nice if there was some way to get it working, even if flock isn't viable
tr-808 has joined #ruby-lang
<fowl__> did you try wakka flock?
nofxx has joined #ruby-lang
bryancp has joined #ruby-lang
<Xzyx987X> wakka flock?
nofxx has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
savage- has joined #ruby-lang
nofxx has joined #ruby-lang
RORgasm has joined #ruby-lang
chessguy has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
srbartlett has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
Tasser has joined #ruby-lang
<slyphon> ok, bundler
savage- has joined #ruby-lang
<slyphon> i'm getting fucking tired of your bullshit
jobicoppola has joined #ruby-lang
<slyphon> fucking GAH
<slyphon> why do you persist options between fucking invocations?!@
<slyphon> ARGH
* slyphon shoots bundler in the FACE
urbanmonk has joined #ruby-lang
savage- has joined #ruby-lang
nofxx has joined #ruby-lang
<samuelkadolph> slyphon: Because typing them each time would be tedious?
<slyphon> that's not how 99% of unix command-line tools behave
jobicoppola has joined #ruby-lang
<slyphon> ok, be fair, 90%
<samuelkadolph> Oh man, wait until you see rake, or rails.
<slyphon> rake doesn't do that, at least not that i've found
<slyphon> rails is an affliction unto itself
gix has joined #ruby-lang
gnufied has joined #ruby-lang
nofxx has joined #ruby-lang
travisjeffery has joined #ruby-lang
dankest has joined #ruby-lang
brianpWins has joined #ruby-lang
nofxx has joined #ruby-lang
vesan_ has joined #ruby-lang
nofxx has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
nofxx has joined #ruby-lang
slimfit has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
nofxx has joined #ruby-lang
cdnz has joined #ruby-lang
dr0id has joined #ruby-lang
andrewhl has joined #ruby-lang
nofxx has joined #ruby-lang
hagabaka has joined #ruby-lang
hagabaka has joined #ruby-lang
jhm` has joined #ruby-lang
cola_zero has joined #ruby-lang
rohit has joined #ruby-lang
nofxx has joined #ruby-lang
gouthamvel has joined #ruby-lang
nofxx has joined #ruby-lang
rippa has joined #ruby-lang
cola_zero has joined #ruby-lang
deobald has joined #ruby-lang
savage- has joined #ruby-lang
rohit has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
nofxx has joined #ruby-lang
Vortex_Rikers has joined #ruby-lang
<michael_mbp> hey rohit morning
<rohit> michael_mbp, good morning :)
* michael_mbp shakes his fist at the split gods
hagabaka has joined #ruby-lang
<michael_mbp> how's you mate?
<michael_mbp> heading to work, bbl in about an hour
nofxx has joined #ruby-lang
dfr|mac has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
nofxx has joined #ruby-lang
rohit has joined #ruby-lang
nofxx has joined #ruby-lang
oddmunds has joined #ruby-lang
travisjeffery has joined #ruby-lang
dvorak has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
yxhuvud has joined #ruby-lang
ttilley has joined #ruby-lang
kitallis has joined #ruby-lang
FACEFOX has joined #ruby-lang
nofxx has joined #ruby-lang
<zenspider> woot!
machine2 has joined #ruby-lang
retro_ has joined #ruby-lang
gouthamvel has joined #ruby-lang
nofxx has joined #ruby-lang
<erikh> hey
<Xzyx987X> ok, now I'm trying to mess with fcntl, and it's not working either. can anyone tell me why this code is getting me a bad file descriptor error?: http://pastie.org/3802553
pabloh has joined #ruby-lang
<erikh> I'm guessing by the pack statement that the last item in that array is the fd
<erikh> you need to pass it file.fileno
<erikh> err, nevermind
<erikh> I'm not sure. sorry.
<Xzyx987X> man, I had no idea locking files in ruby under *nix would be this difficult
<bnagy> variable mismatch?
<erikh> I don't think it is, ruby supports flock directly IIRC
<erikh> can you describe in detail what you're trying to do?
<Xzyx987X> then why does it have it, lol
<Xzyx987X> ok, in detail...
<Xzyx987X> I am trying to make this code work in *nix: http://pastie.org/3802565
<Xzyx987X> so far it only works in windows
<Xzyx987X> I have no idea why, other than flock just doesn't seem to function
<Xzyx987X> so I tried fcntl instead... and that's not working either
<zenspider> seems like class vars are a bad idea there
<erikh> what user are you running it as?
<Xzyx987X> a normal user.
<Xzyx987X> does flock by chance require sudo?
<erikh> no, locking typically doesn't work well as root
nofxx has joined #ruby-lang
<Xzyx987X> ok. I'm no expert on linux, I just try to know enough to get by
<erikh> what specifically is failing here?
<zenspider> the example from the doco works for me on osx
<Xzyx987X> flock calls always return 0
<Xzyx987X> both on the shell account on my host, and a linux mint livecd I tried
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
<Xzyx987X> no locking ever actually ever gets done no matter what I try
<erikh> yeah.
<Xzyx987X> but it works on windows, lol
<zenspider> and I just threw the example into 100 threads and reran and it seems fine
<zenspider> I'd work on simplifying your code first
<erikh> the locking isn't working for me here either
<Xzyx987X> so yea, this is just confusing. why is it working some places, and not others?
<erikh> flock is reporting 0 (as it should for a successful flock), but it isn't actually preventing writes
<erikh> 1.9.3-p125 here
<bnagy> http://disjointthoughts.com/2007/01/15/file-locking-in-ruby-using-flock/ - may be unrelated by apparently opening with 'r+' instead of 'w' can fix some stuff
<Xzyx987X> if you call file.flock(File::LOCK_EX) twice, does it block?
<erikh> Xzyx987X: no
<erikh> theeeeeeeere we go
<zenspider> the example in the doco uses:
<zenspider> File.open("counter", File::RDWR|File::CREAT, 0644) {|f|
<zenspider> with an explicit note about w"
<erikh> bnagy's on to something
<zenspider> * # update a counter using write lock
<zenspider> * # don't use "w" because it truncates the file before lock.
<erikh> ah
<zenspider> also: if File.exist?(@@path) != true
<zenspider> don't do that
<erikh> nice catch with the docs
<zenspider> don't use :: everywhere either
<zenspider> don't use class vars in this context... unless you REALLY mean it
<Xzyx987X> r+ did not fix it on my live cd vm, let me try my shell
nofxx has joined #ruby-lang
<Xzyx987X> nope, no effect
<Xzyx987X> zenspider's thing didn't work either
<erikh> those are from the docs, man
<Xzyx987X> *sigh*
<Xzyx987X> I know, what can I say? does it work for you?
<erikh> yes
<Xzyx987X> which one?
<erikh> the r+ solution
<erikh> what are you using to test writes from external sources?
<Xzyx987X> I'm not actually testing writes, I'm using the locks as an interprocess mutex of sorts
<erikh> and you should listen to zenspider's style suggestions. they're good.
<erikh> there's Mutex for that.
<Xzyx987X> true, I'll get right on that when the code works
<Xzyx987X> I said interprocess
<erikh> ah yes
<erikh> derp
<erikh> well, I dunno then. I got blocking behavior on two different io's trying to exclusive lock the same file
<Xzyx987X> I think it may be some sort of issue with how my host is configured...
<erikh> you aren't running over a network filesystem are you?
<Xzyx987X> no, I don't think so
<erikh> historically there are tons of problems with that, as I understand it.
<erikh> yeah, you'd know
<erikh> ok, i'm officially out of ideas.
<erikh> :)
<Xzyx987X> but, my host may still be running under an oddball configuration that prevents flock from working
<Xzyx987X> I have a support ticket in, hopefully they can figure it out
<zenspider> if you're on a live cd... are you running the ruby code on a real disk?
<zenspider> or is it a union fs on top of the cd?
<Xzyx987X> I did apt-get to install it
<Xzyx987X> so it's in memory I guess
<zenspider> `mount` and look at the partition you're on
<zenspider> what's the FS type?
<bnagy> just to clarify...what's your test for 'not working'?
<Xzyx987X> overlayfs?
<zenspider> that's prolly just like unionfs
<bnagy> is is still http://pastie.org/3801840?
<zenspider> it might not even support locking... no clue
<bnagy> cause I think that's correct behaviour
<Xzyx987X> bnagy, I was trying that, but I was also trying it without the blocking flag
<bnagy> least that's the behaviour I get on osx and linux
<Xzyx987X> neither worked
<bnagy> what do you mean by 'worked'?
<Xzyx987X> it didn't block
<Xzyx987X> it's supposed to, read the docs
<bnagy> locks work fine for me, and multiple lock calls from the same process always return 0
<bnagy> well it won't block in that example, cause you pass LOCK_NB
<Xzyx987X> but does it block?
zmack has joined #ruby-lang
<bnagy> yeah, from the second process it blocks if I try to get an exclusive lock
<Xzyx987X> I also tried it without LOCK_NB and it doesn't block
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<Xzyx987X> wait...
<bnagy> did you try from a different process?
zmack has joined #ruby-lang
<Xzyx987X> I never actually got to that point.
<Xzyx987X> hold on...
x0F_ has joined #ruby-lang
<Xzyx987X> ooooohhhhh
<Xzyx987X> ok, so it does block if it's in a different process
tonesfrommars has joined #ruby-lang
<erikh> also two file descriptors that point at the same file aughta work
<erikh> anyhow, yay
<bnagy> basically you were trying to acquire a lock twice, and it was saying 'yeah I don't need to block to do this, I have it already' -> 0
<Xzyx987X> yup, the platform specific behavior just had be confused
<Xzyx987X> windows blocks with the same file handle, for *nix, you need a different one
<bnagy> does it even work on windows?
<Xzyx987X> problem solved, thanks guys ;)
<Xzyx987X> it always worked on windows, even with only one file handle
<Xzyx987X> I see no reason why two wouldn't work
<bnagy> I meant does the locking actually work, looks like it does
<bnagy> although blocking when you lock twice from the same process is a bug, imho
<Xzyx987X> I dunno, if getting blocked by locking twice from the same process is a possibility in your code, you could just use File::LOCK_NB
<Xzyx987X> I'd say the windows behavior is more of an arbitrary difference than a bug
michael_mbp has joined #ruby-lang
nofxx has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
WillMarshall has joined #ruby-lang
zerokarmaleft has joined #ruby-lang
Bwild has joined #ruby-lang
nofxx has joined #ruby-lang
cdnz has joined #ruby-lang
Rushan has joined #ruby-lang
andrewhl has joined #ruby-lang
nofxx has joined #ruby-lang
solars has joined #ruby-lang
dc5ala has joined #ruby-lang
nofxx has joined #ruby-lang
machine2 has joined #ruby-lang
alessio_rocco has joined #ruby-lang
kings has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
andrewhl has joined #ruby-lang
francisfish has joined #ruby-lang
<andrewhl> syntactically, what does it mean when you have something like this: numerator, denominator = split('/').map(&:to_f)... specifically, the comma separated terms before the variable assignment operator (taken from: http://stackoverflow.com/questions/2259604/how-to-convert-a-fraction-to-float-in-ruby)
nofxx has joined #ruby-lang
<fowl__> andrewhl, variable expansion
<fowl__> try a, b = [1,2]
<andrewhl> interesting
FACEFOX has joined #ruby-lang
AndChat- has joined #ruby-lang
<fowl__> andrewhl, it gets better, a, (b, c) = [1, [2, 3]]
<fowl__> you can do that in a block too |a, (b, c)|
tjadc has joined #ruby-lang
<andrewhl> when is it appropriate to do something like that?
<andrewhl> I guess it allows for mode condensed code
<fowl__> i use it for arrays
<fowl__> havent really tried it with anything else
knu has joined #ruby-lang
apeiros_ has joined #ruby-lang
nofxx has joined #ruby-lang
<zenspider> appropriate? you're not from around here, are you?
mikeric has joined #ruby-lang
jkprg has joined #ruby-lang
mikeric has joined #ruby-lang
nofxx has joined #ruby-lang
MDmalLION has joined #ruby-lang
achamian has joined #ruby-lang
zerokarmaleft has joined #ruby-lang
PhilCK has joined #ruby-lang
andrewhl has joined #ruby-lang
Joeysomo_ has joined #ruby-lang
gouthamvel has joined #ruby-lang
zerokarmaleft has joined #ruby-lang
<Xzyx987X> yay, my code works now ^^
<Xzyx987X> I also fixed a few bugs and addressed some thread safety issues
<Xzyx987X> check it out: http://pastie.org/3803089
<Xzyx987X> if anyone is still awake...
vmoravec has joined #ruby-lang
<MDmalLION> usp
<Xzyx987X> I may actually do a Git for this. I could be wrong, but I don't think there is any existing code for ruby that allows you to create locks across processes like this
toretore has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
shtirlic has joined #ruby-lang
heftig has joined #ruby-lang
<bnagy> Xzyx987X: there are quite a few style issues, still
<zenspider> Xzyx987X: line 31
<bnagy> and you should probably use the block form of File#open more
futurechimp has joined #ruby-lang
<zenspider> is that supposed to be an instance variable? or a class instance variable?
melter has joined #ruby-lang
<zenspider> drop the returns
<zenspider> all of them
<Xzyx987X> sorry, but I like return. those stay
<zenspider> an empty return at the end of a method is useless... less than useless
<Xzyx987X> it may be a carry over from my days coding C, but I think they make the code more readable
<zenspider> and they have a cost... not that it matters with this code
<zenspider> if @file != nil then return true end
<zenspider> return true if @file
<zenspider> and again... @file... that sure looks like the class instance variable
<Xzyx987X> I can keep track of the difference just fine
<Xzyx987X> and as far as the if goes, it's a stylistic choice. I am aware of the other syntax, but I find it more readable if you start the line with if, since it defines the purpose of the statement
<zenspider> well... in C you're right. in ruby you're dead wrong
<zenspider> but have fun with that
diegoviola has joined #ruby-lang
<tobiasvl> "<zenspider> if @file != nil then return true end" <- that made me laugh :D
<Xzyx987X> lol, don't forget the ruby philosophy, there is no one right way to do things
<Xzyx987X> if my way works for me, why complain?
<andrewvos> There's fourteen. And a gem.
<bnagy> Xzyx987X: yeah but there are lots of wrong ways, and you seem to have found about a dozen of them :)
<andrewvos> But the gem is better, because the other fourteen ways are a ghetto.
mehulkar has joined #ruby-lang
<Xzyx987X> if you want to rewrite my code to make it suit your taste, feel free. I like it fine the way it is
<zenspider> Xzyx987X: seems imprudent to come in here asking for people to look at your code and then argue when you get good advice about how to improve it
<tobiasvl> Xzyx987X: i have no problem with you saying "return true", but why do you use empty returns some places, and other places you don't?
<tobiasvl> thatseems weird
<Xzyx987X> so I don't return something that isn't nil
<zenspider> READABILITY DAMNIT!
<Xzyx987X> lol, it's readable to me
<Xzyx987X> I swear, it's just what you're used to
<andrewvos> Oooh now I want to see the code?
<mehulkar> i just came in.. where can i see it?
<Xzyx987X> I find other people's ruby code a little unreadable a lot of the time
<bnagy> andrewvos: http://pastie.org/3803089
<zenspider> have at it
<bnagy> lines 50-53... the purpose eludes me
<andrewvos> niiice
<andrewvos> I like the sporadic use of ()
<andrewvos> Also, thread_status
<bnagy> the ruby the hard way stuff does that
<Xzyx987X> 50-53 blocks if another process has the lock
<bnagy> I hate it, but I accept that it's used sometimes
riffraff has joined #ruby-lang
<zenspider> raising w/ no messages. testing against specific values instead of just truthyness. Not using block forms. Return statements in setter methods... I'd bother pointing out (many) more problems with this code but it's obvious you think this shit is perfect
workmad3 has joined #ruby-lang
<Xzyx987X> it's not perfect, nothing is perfect. it just works the way I want it to
<zenspider> you keep thinking that
r0bby has joined #ruby-lang
<andrewvos> To be honest I can't bear to even try reading that code because the class name isn't obvious to me so I don't really know what I'm looking at.
<andrewvos> Which is a big problem, if you ever want your fellow developers to not hate you.
<bnagy> andrewvos: you should perservere, it has significant comedy value
<erikh> you guys want to comment on my code?
<erikh> I could use a review on some stuff.
<andrewvos> erikh: YESSSS
<andrewvos> hahah
<andrewvos> Wait and you're storing state in class method
<zenspider> about as useful as this http://www.youtube.com/watch?v=KTvQ22g4ygg
<erikh> that collection of stuff
<erikh> instrumentation is at the bottom of service.rb
<zenspider> I would rename pid_check to assert_pid...
<zenspider> and I'd use parens less
<zenspider> but it looks good.
<erikh> yeah, old habit.
<erikh> thanks!
<zenspider> what's a sm?
<erikh> it's a service manager I'm working on
<erikh> think monit/daemontools/etc
<erikh> more or less, it leverages zeromq for concurrency and manages processes over the network
<erikh> basically it's targetting installations with thousands of machines
<zenspider> I know it's far fetched... but your getter/setter idiom... how would you set to nil?
<erikh> oog
<erikh> yeah, I don't want to think about that. :)
<erikh> but I'll mark it down
<erikh> any suggestions on how to solve that?
<zenspider> UNSET = Object.new; arg = UNSET
<erikh> oh good idea
Banistergalaxy has joined #ruby-lang
Tearan_ has joined #ruby-lang
<erikh> oh yeah -- thanks for the comments. I really do appreciate it.
<erikh> this is the third rewrite and the most cohesive, and about 9 months collective work
<DefV> erikh: why the "begin" in allowed? method?
<DefV> you could just do def allowed? .* rescue; end
<DefV> or am I missing something vitally important about that technique that's wrong?
<DefV> and I hate raising generic errors (raise "stuff") unless it's a programmer error
<DefV> otherwise I always define custom StandardError subclasses so I can easily catch those specific cases
<DefV> (actually I subclass a subclass of StandardError specific to my current codebase, so I can catch globally without having to catch StandardError)
<ddfreyne> erikh: sm?
<ddfreyne> what the heck is that :P
seoaqua has joined #ruby-lang
<erikh> DefV: yeah, they're just basic for now
<erikh> I plan on doing something more elaborate eventually.
<erikh> ddfreyne: I said above
<erikh> batman: arkham city is an amazing game
Banistergalaxy has joined #ruby-lang
WillMarshall has joined #ruby-lang
sei has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
futurechimp has joined #ruby-lang
<andrewvos> erikh: Didn't like the first though. Is it better?
mfournier has quit ["WeeChat 0.3.6"]
diegoviola has joined #ruby-lang
srbartlett has joined #ruby-lang
rolfb has joined #ruby-lang
justinmcp has joined #ruby-lang
sora_h has joined #ruby-lang
robgleeson|mba has joined #ruby-lang
robgleeson|mba has joined #ruby-lang
DMKE has joined #ruby-lang
moogs has joined #ruby-lang
Ethan has joined #ruby-lang
JohnBat26 has joined #ruby-lang
futurechimp has joined #ruby-lang
bryancp has joined #ruby-lang
apeiros_ has joined #ruby-lang
kings has joined #ruby-lang
futurechimp has joined #ruby-lang
jtoy has joined #ruby-lang
m3nd3s has joined #ruby-lang
andrewhl has joined #ruby-lang
elalande has joined #ruby-lang
Sailias|work has joined #ruby-lang
cjs226 has joined #ruby-lang
rohit has joined #ruby-lang
diegoviola has joined #ruby-lang
mark_locklear has joined #ruby-lang
morozovm has joined #ruby-lang
Boohbah_ has joined #ruby-lang
samuelkadolph has joined #ruby-lang
andrewhl has joined #ruby-lang
mistym has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
yorickpeterse1 has joined #ruby-lang
yorickpeterse1 has joined #ruby-lang
jmeeuwen_ has joined #ruby-lang
s0ber has joined #ruby-lang
Xzyx987X has joined #ruby-lang
tomzx has joined #ruby-lang
<andrewvos> erikh: Askham Asylum I mean
FiXato has joined #ruby-lang
igaiga has joined #ruby-lang
codewrangler has joined #ruby-lang
bryancp has joined #ruby-lang
mattyoho has joined #ruby-lang
mattyoho has joined #ruby-lang
mstratman has joined #ruby-lang
justinmcp has joined #ruby-lang
dv310p3r has joined #ruby-lang
tbuehlmann has joined #ruby-lang
enebo has joined #ruby-lang
jobicoppola has joined #ruby-lang
fattastic has joined #ruby-lang
FACEFOX has joined #ruby-lang
futurechimp has joined #ruby-lang
futurechimp has joined #ruby-lang
Defusal has joined #ruby-lang
Austin__ has joined #ruby-lang
indeterminate has joined #ruby-lang
Sailias has joined #ruby-lang
gsav has joined #ruby-lang
achamian has joined #ruby-lang
bryancp has joined #ruby-lang
datanoise has joined #ruby-lang
gfhjkm1 has joined #ruby-lang
gfhjkm1 has quit [#ruby-lang]
Natch has joined #ruby-lang
krohrbaugh has joined #ruby-lang
hynkle has joined #ruby-lang
gouthamvel has joined #ruby-lang
futurechimp has joined #ruby-lang
nahhh has joined #ruby-lang
slyphon_away has joined #ruby-lang
Radium_ has joined #ruby-lang
outoftime has joined #ruby-lang
mistym has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
JEG2 has joined #ruby-lang
savage- has joined #ruby-lang
<riffraff> hi everyone
thone_ has joined #ruby-lang
bryancp has joined #ruby-lang
<riffraff> it seems to me that psych generates some needless printouts (with $DEBUG=true) trying to parse integers out of strings with a digit in them, I could write a patch but how do I test that?
jtoy has joined #ruby-lang
Asher has joined #ruby-lang
dejongge has joined #ruby-lang
JEG2 has joined #ruby-lang
slyphon_away has joined #ruby-lang
msisk has joined #ruby-lang
michael_mbp has joined #ruby-lang
achamian has joined #ruby-lang
<andrewvos> riffraff: Surely DEBUG=true means that you would see some needless printouts?
beiter has joined #ruby-lang
sandbags has joined #ruby-lang
Asher1 has joined #ruby-lang
CoverSlide has joined #ruby-lang
achamian has joined #ruby-lang
jxie has joined #ruby-lang
chittoor has joined #ruby-lang
olesu has joined #ruby-lang
crudson has joined #ruby-lang
imajes has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
<riffraff> andrewvos, yeah, but I'd like them not to be in the standard library if they are not necessary
<riffraff> these come out of calling #Integer on stuff where it can be avoided
<riffraff> which raises ArgumentError which in turn causes the debug line to print
futurechimp has joined #ruby-lang
cyndis has joined #ruby-lang
achamian has joined #ruby-lang
achamian has joined #ruby-lang
<riffraff> also, there seem to be some bit of code to do the same for floats, but I think it's wrong
rushed has joined #ruby-lang
<riffraff> to do it only in one case
rickjoe has joined #ruby-lang
rickjoe has quit [#ruby-lang]
cdnz has joined #ruby-lang
nofxx has joined #ruby-lang
futurechimp has joined #ruby-lang
slyphon_away has joined #ruby-lang
dfr|mac has joined #ruby-lang
rippa has joined #ruby-lang
<jasiek> lkotwitter
futurechimp has joined #ruby-lang
<andrewvos> jasiek: uhh?
<andrewvos> jasiek: This isn't VI
<mistym> :wq
<andrewvos> :x
nofxx has joined #ruby-lang
achamian has joined #ruby-lang
slimfit has joined #ruby-lang
shaman42 has joined #ruby-lang
chimkan has joined #ruby-lang
bryancp has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
m3nd3s has joined #ruby-lang
Psyche^ has joined #ruby-lang
paulha has joined #ruby-lang
<paulha> is this the right place to ask a rake question?
m3nd3s has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
<shevy> paulha hard to say
<shevy> it is ruby related, so sure. but how many use rake and are smart enough to answer a very difficult rake question
<shevy> only way to find out is to try and ask
<paulha> OK, I'll try-- It's a stupid question but I'm a rake newbie.
virunga has joined #ruby-lang
<paulha> Does directory("name1/name2") create directories under the current directory (where the rake file is)?
<paulha> Doesn't seem to work that way for me. Nothing is created.
<paulha> send
nofxx has joined #ruby-lang
olesu has joined #ruby-lang
Kero_ has joined #ruby-lang
<TTilus> paulha: dunno if rake has some extra dir creation magic, but at least require 'fileutils'; FileUtils.mkdir_p 'name1/name2' should work
<paulha> OK, thanks I'll try that and quit believing the tutorials. :-(
m3nd3s has joined #ruby-lang
_dabradley has joined #ruby-lang
machine2 has joined #ruby-lang
savage-_ has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
slyphon has joined #ruby-lang
crackity_jones has joined #ruby-lang
gouthamvel has joined #ruby-lang
Dreamer3 has joined #ruby-lang
olesu has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
jperry has joined #ruby-lang
m3nd3s has joined #ruby-lang
DMKE has joined #ruby-lang
butchanton has joined #ruby-lang
achiu has joined #ruby-lang
m3nd3s has joined #ruby-lang
olesu has joined #ruby-lang
<tylergillies> anyone know if typhoeus has requests per second ability config option?
dreieins has joined #ruby-lang
io_syl has joined #ruby-lang
<tylergillies> or any other http lib that supports requests per second as a config option
hynkle has joined #ruby-lang
moogs_ has joined #ruby-lang
echoprinter has joined #ruby-lang
lsegal has joined #ruby-lang
mrsolo has joined #ruby-lang
apeiros_ has joined #ruby-lang
seungers has joined #ruby-lang
seungers_ has joined #ruby-lang
dreieins has joined #ruby-lang
bglusman has joined #ruby-lang
achiu has joined #ruby-lang
publicvoid_ has joined #ruby-lang
JohnBat26 has joined #ruby-lang
machine2 has joined #ruby-lang
enebo has joined #ruby-lang
outoftime has joined #ruby-lang
indeterminate has joined #ruby-lang
achamian has joined #ruby-lang
achamian has joined #ruby-lang
travisjeffery has joined #ruby-lang
dr_bob has joined #ruby-lang
RORgasm has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
DMKE has joined #ruby-lang
href has joined #ruby-lang
tmi has joined #ruby-lang
mehulkar has joined #ruby-lang
RORgasm has joined #ruby-lang
dv310p3r has joined #ruby-lang
fragmachine has joined #ruby-lang
bglusman_ has joined #ruby-lang
<fragmachine> hey i'm just learning Ruby, I was wondering if this code is any good - https://github.com/facetoe/Ruby-Stuff/blob/master/Pr0xy_Checker.rb
<fragmachine> is it Rubyish?
travisjeffery has joined #ruby-lang
<rue> It doesn't look terrible at a glance, but neither would it be my first recommendation
achamian has joined #ruby-lang
kiddorails has joined #ruby-lang
<fragmachine> Is it better to break things up into smaller methods?
<yxhuvud> not terrible, but needs a style guide.
<rue> Generally anything that doesn't have snake_case methods is probably not the best reference ;)
<rue> We probably should list good ones to look at
<rue> Rack is probably one
<fragmachine> ok what is rack and where can I find the source
<kiddorails> Hey. in rvm, I have install: --no-rdoc --no-ri , therefore ri, rdocs are not generated for any gem either.
<fragmachine> and what is a snake_case method?
<kiddorails> What if I want to generate ri for a specific gem?
<rue> fragmachine: https://github.com/rack/rack
<rue> And snake_case vs. camelCase
<fragmachine> rue: thanks
<fragmachine> ok super has always confused me
<drbrain> kiddorails: gem rdoc the_gem
dejongge1 has joined #ruby-lang
<kiddorails> drbrain: Thanks!
<kiddorails> drbrain: Also, I actually wanted to read ri of ERB#new.
<kiddorails> require 'erb' returns true.
<kiddorails> but, there is no gem with erb listed in gem list
<drbrain> kiddorails: that's in stdlib
<fragmachine> wtf is erb?
Carnage\ has joined #ruby-lang
<drbrain> fragmachine: a template library that embeds ruby using <% %> for control flow and <%= %> to interpolate values
<kiddorails> drbrain: [1] pry(main)> ri ERB#new
<kiddorails> Nothing known about ERB#new
<kiddorails> Error: there was a problem executing system command: ri ERB#new
<drbrain> kiddorails: ERB.new
<drbrain> kiddorails: usually you just want to use '.', ri will automatically find the class or instance method
<kiddorails> drbrain: That solved it. Thanks
<drbrain> use # or :: when you need to disambiguate because a class provides both (rare)
<kiddorails> mm-hmm
<kiddorails> okay. :
<kiddorails> :)
<kiddorails> drbrain: Also, pardon for ignorance, if I wish to read all about all documentation associated with ERB, can shell help me with that?
<drbrain> kiddorails: no ☹
<drbrain> kiddorails: but, if you run just `ri` it'll put you at a prompt that you can tab-complete with
<drbrain> kiddorails: I've got a partially complete curses browser for ri
<drbrain> … so I'm working on it, it's just not done yet
<kiddorails> drbrain: partially curses browser, as in?
<any-key> speaking of curses, has anyone here had issues getting rbcurses to work?
<drbrain> kiddorails: do you know mutt?
<drbrain> or lynx?
<kiddorails> mutt client?
rolfb has joined #ruby-lang
<any-key> if I use 1.9.1 I can get it to display widgets, but all of the text shows up as "(null)"
<drbrain> yeah
wmoxam has joined #ruby-lang
<drbrain> any-key: I just use the built-in curses library
hagabaka has joined #ruby-lang
<any-key> drbrain: last I looked at it, it won't do a listbox-esque thing
<any-key> drbrain: I could write my own I suppose
<any-key> I got all excited about rbcurses having a listbox widget with a scrollbar
<drbrain> any-key: I think you need a ScrollPad binding which isn't in the built-in curses for a released ruby
echoprinter has quit [#ruby-lang]
<drbrain> any-key: trunk supports it, though!
<any-key> drbrain: how long until that makes it into production? :)
<drbrain> any-key: early 2013
<any-key> :(
<any-key> drbrain: is there an easy way to get a listbox widget going (ala mutt)?
<drbrain> any-key: also, I should release my patch as a gem for 1.9 users
<drbrain> so maybe sooner!
<any-key> that would be amazing
<any-key> I have this dumb mission to create an itunes clone in curses
flak has joined #ruby-lang
<kiddorails> drbrain: An offtopic/off-channel question perhaps:
<kiddorails> I have been using Linux (Mint, Ubuntu) from years on my desktop for development. Thinking to skip to Apple notebook now. If you are Mac user, does Air's base model work fine for Ruby/RoR, coding tasks?
<andrewvos> kiddorails: Yes
<any-key> the problem is that it means creating a separate window for each listbox in the column browser, and from what I can tell the curses lib ruby ships with won't help much beyond creating windows and drawing text
<any-key> kiddorails: any *nix OS will work beautifully with ruby/rails
<drbrain> any-key: curses newpad() saves a lot of work you'd need to do manually with newwin()
flak has joined #ruby-lang
<andrewvos> kiddorails: But why would you want to switch to OSX? I've been meaning to switch to ubuntu for ages now but just too lazy.
<drbrain> I need to ride the bus now
<any-key> drbrain: thanks, I'll check it out...any tips for creating a listbox thing?
<kiddorails> andrewvos: just need a notebook, that is.
<kiddorails> hardware of Apple entices a lot. Nothing seems close.
<andrewvos> kiddorails: Fair enough. I tried ubuntu on my macbook pro but the battery life made me switch back :(
<any-key> agreed
<andrewvos> kiddorails: But yeah the hardware is unbeatable.
<kiddorails> 64GB SSD will work fine?
<andrewvos> Well, maybe it is beatable, but there's nothing else that's as pretty.
<kiddorails> andrewvos: Aye Aye!
<andrewvos> kiddorails: Yeah I don't use my harddrive for anything really.
<kiddorails> Neither do I.
<andrewvos> I literally only have a 5gb dropbox account, and anything that doesn't fit in there I will store somewhere else.
<kiddorails> and 11" screen? Heard it has 1366*768 display. No?
<andrewvos> kiddorails: Not sure about that. I'm on a 13 and it's perfect.
<kiddorails> Air/Pro?
<andrewvos> kiddorails: But those 11" ones are so damn cute.
<andrewvos> Air
<kiddorails> :D
<kiddorails> Apple products are hell expensive in the country I live in.
<kiddorails> Why Apple, Why?
<kiddorails> andrewvos: Someone took BrainFuck too seriously!
<kiddorails> or practiced
<andrewvos> kiddorails: Hoping it's in response to the latest js drama.
<kiddorails> Oh yes, 'Ruby devs tagged along and rose fuss regarding semicolon'
<kiddorails> Don't know much in depth. Just heard something like that.
<drbrain> Ok, back
mattyoho has joined #ruby-lang
<rolfb> i like morgan freeman's method for getting rid of something: "stop talking about it"
<drbrain> any-key: when I looked into doing scrollable windows when I first started rdoc-browser it looked like tons of work
<drbrain> You'd need to calculate which text was visible and clip yourself
<yxhuvud> rolfb: I prefer the way of Cato the elder when it comes to methods of getting rid of something.
<any-key> drbrain: so what do you think my best option would be?
<drbrain> newpad() takes that work away and lets you fill the window with text and tell it what line to show at the top
joooooo has joined #ruby-lang
<rolfb> yxhuvud: which is?
<shevy> stab at it with a sharp, pointed knife?
<yxhuvud> "carthage must be destroyed"
<any-key> drbrain: what library is that in? Just the standard lib ncurses?
<drbrain> Bug me to release my newpad() patch as a gem, it should take me just a day
<drbrain> any-key: I'll try to do it tonight :)
<any-key> drbrain: haha okay, will do
<any-key> drbrain: how'd you go about writing it?
<any-key> just banging away at the standard curses lib?
<kiddorails> andrewvos: more than 20-25 tabs in browser, rails deployment, cpp code etc? Air can deal with it all at once (without getting too hot), right?
<drbrain> Right now it is in stdlib in ruby trunk
<any-key> kiddorails: they're more powerful than their size lead you to believe :)
<any-key> drbrain: awesome!
<any-key> I'll take a look at it
<drbrain> I searched a lot on google then finally found something that mentioned newpad()
<kiddorails> any-key: Okay. :)
<drbrain> There is not much useful high-level curses documentation
<drbrain> Let me see if I can find the patch…
<drbrain> It's pretty simple since it just subclasses Window
<erikh> curses is scary
<any-key> drbrain: thanks!
<drbrain> erikh: nah, it's just an OO C library
mehulkar has joined #ruby-lang
<erikh> yeah, I'm willing to concede it's scary because I don't know it
<erikh> drbrain: is this a bad time to ask about my rdoc patches?
<any-key> hmmm it looks like it'd still take a bit of work to get that to be a listbox, but it's definitely much more convenient
<drbrain> any-key: here's where I use it in rdoc-browser: https://github.com/rdoc/rdoc-browser/blob/master/lib/rdoc/ri/browser/display.rb
<drbrain> erikh: I'm on the bus, so not really :(
workmad3 has joined #ruby-lang
<erikh> no problem. I don't want to pester you about it.
<drbrain> I have to finish some RubyGems work today
<any-key> drbrain: thank you so much, this is incredibly useful
<any-key> it's a shame rbcurses is in disrepair
<drbrain> any-key: I recommend subclassing to create a ListBox class that you can fill with content
<erikh> any-key: get your patching hat on!
<any-key> drbrain: while you're around...is there a way to switch focus between curses windows?
<any-key> I'm a bit new to curses and didn't really find anything of that nature in the docs
<drbrain> ruby's curses wrapper makes it easy to use the superior noutrefresh, too
<drbrain> So you can do all your screen edits then refresh once from the event loop
<mistym> I really wish Ruby's curses came with colour support.
<any-key> hmmm I guess I could keep track of the "current" window, then update all of the windows accordingly and monitor keystrokes and change the current window
<drbrain> any-key: yes, I do that in rdoc-browser through subwindows
<any-key> perfect
<drbrain> mistym: it does, I use them in rdoc-browser to color links
<any-key> maybe this curses itunes clone will happen :P
<mistym> drbrain: Really? I tried to colourize character output in my micro-roguelike and it was having none of it.
dajmon1 has joined #ruby-lang
<erikh> could be a tty issue
<erikh> well, termcap and friends
bglusman has joined #ruby-lang
<mistym> drbrain: What platform?
<dajmon1> hello, i'm a student observing this channel for a research study - more here http://pastie.org/3547791
<mistym> dajmon1: How long is this study running anyway?
<drbrain> mistym: OS X
<mistym> drbrain: I must be doing something wrong. Where's the soruce for rdoc-browser? I should take a look at how you did it.
<dajmon1> mistym: 2 more weeks, then i decide whether or not i continue observations in here or move to a different place
<mistym> drbrain: Aha.
<mistym> Er. dajmon1, rather
* mistym should not just hit d-tab-enter
<dajmon1> i presented at a conference on april 1 :p
<mistym> The ideal day to present on rubyists
<drbrain> any-key: I get input from a "message" window and use it to control the other windows. See event_loop here: https://github.com/rdoc/rdoc-browser/blob/master/lib/rdoc/ri/browser.rb
<mistym> What conference?
<dajmon1> agreed
<dajmon1> cultural studies association
<kiddorails> dajmon1: What kind of observation? http://images.wikia.com/fringe/images/1/13/Binoculars.jpg
<kiddorails> pardon me, but 'observing' sounds so creepy.
<kiddorails> or maybe it's just me.
<Guest3179> kiddorails: yeah, "stalking" sounds better
<dajmon1> participant observation, which is a little less creepy than panopticon-style watchtowering
<dajmon1> i'm basically learning ruby while i hang out in here and talk to people about their experience programming & being part of the ruby community
rippa has joined #ruby-lang
<kiddorails> ah cool!
<kiddorails> Ruby is fun. Tag along. :)
<dajmon1> it is much more fun than java, which is my only previous programming experience
<dajmon1> i never liked semicolons
<drbrain> mistym: look at initialize and handle_special_CROSSREF here: https://github.com/rdoc/rdoc-browser/blob/master/lib/rdoc/markup/to_curses.rb
<mistym> drbrain: Thanks!
<Mon_Ouie> Semicolons have been a hot topic lately.
<kiddorails> Mon_Ouie: Just what I was about to say.
<kiddorails> Maybe the next flame topic.
<erikh> stop
<erikh> stop now
<erikh> aaaaah
dankest has joined #ruby-lang
<rue> ;;;;
<dajmon1> ;_;
<kiddorails> ;|;
<dajmon1> i didn't know semicolons were a hot topic, it wasn't meant to open a can of worms!!
<erikh> 8==|;;;;;;;;;;;;;;;;>
<mistym> There should be a programming language that consists of only semicolons, parens, and curly braces.
<drbrain> You have to allocate the color with color_pair then attron to apply it while drawing text
<mistym> drbrain: I believe I mixed up the first step. I'll take another look at that - thanks!
<drbrain> You could port whitespace to those characters
<mistym> Yeah, looks like I didn't do the color_pair part. I'll have to take another look at that when I get home, see if I can get it up and running in colour.
outoftime has joined #ruby-lang
<drbrain> I love LimeChat for iPhone!
olesu has joined #ruby-lang
<erikh> linkinus for iphone is nice as well
* mistym <3s the Mac version of LimeChat
tyman has joined #ruby-lang
<drbrain> I've been IRCing on the bus with it
<dajmon1> does limechat exist for androids
<drbrain> I wish github line numbers worked on iPhone safari
tyman has quit [#ruby-lang]
jfelchner has joined #ruby-lang
<drbrain> dajmon1: google did not give me good results :(
<dajmon1> me neither, i was hoping for a surprise
<drbrain> Lunch time for me
chimkan___ has joined #ruby-lang
dejongge has joined #ruby-lang
tyman has joined #ruby-lang
qpingu has joined #ruby-lang
mehulkar has joined #ruby-lang
workmad3 has joined #ruby-lang
IPGlider has joined #ruby-lang
Sailias has joined #ruby-lang
frangiz has joined #ruby-lang
olesu has joined #ruby-lang
<erikh> I use yaaic for android
<erikh> it's basically as close to irssi in a gui as you're going to get
<erikh> plays well with proxies as well.
bglusman_ has joined #ruby-lang
* TTilus uses irssi+screen from both desktop and mobile
<countskm> nice
justinmcp has joined #ruby-lang
travisjeffery has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has joined #ruby-lang
krz has joined #ruby-lang
deobald has joined #ruby-lang
gouthamvel has joined #ruby-lang
deobald has joined #ruby-lang
tonesfrommars has joined #ruby-lang
* manveru uses weechat+tmux for desktop and mobile :)
<countskm> tmux on macos? had some issue on linux but didnt want to spend the time fixing the term settings (spent 8 hours w/ screen years ago ;-)
gouthamvel has quit [#ruby-lang]
<countskm> ordered an airbook so might give it a try on macos
<manveru> dunno about mac, i'm on linux
<countskm> im a sysadm so im jumping thru boxes to solaris/aix might have been my problem
<countskm> really liked the concept - even bought the pragprog ebook :-)
rdavila has joined #ruby-lang
mehulkar has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
workmad3 has joined #ruby-lang
orange33 has joined #ruby-lang
kiddorails has quit [#ruby-lang]
<orange33> Hi, I can't install the rack gem, and am seeing an ECONNREFUSED error in the verbose output for the gem install command. However I have successfully installed other gems. Any ideas?
<orange33> 'gem list -r rack' shows rack in the resulting list, but trying to install results in "Could not find a valid gem 'rack' (etc.); Possible alternatives: rack."
olesu has joined #ruby-lang
<canton7> orange33, pastie the output of you trying to install rack?
<orange33> So I could install daemonize and eventmachine, for example (all thin prerequisites).
<orange33> (can't paste, different machine and network) The error in the verbose output is: "ECONNREFUSED: Connection refused - connect(2) (http://rubygems.org/quick/Marshal.4.8/rack-1.4.1.gemspec.rz) Falling back to local-only install." The verbose output for daemonize, for example, was basically the same but it installed successfully.
<canton7> try going directly to that url in a browser? tis working fine for me
phlipper has joined #ruby-lang
<orange33> Me too, unfortunately. Trying again on the specific server.
<orange33> It's trying to hit cachefly. I didn't see that before but the problem seems to be similar to: http://help.rubygems.org/discussions/problems/957-gem-activerecord-failing
bglusman has joined #ruby-lang
FACEFOX has joined #ruby-lang
<canton7> orange33, ooh, I think someone had the same problem yesterday? it was a mirror down somewhere anyway, and I think it was a rubygems one
<orange33> "Cachefly is a mirroring CDN we're currently testing and you seem to be having issues with it." on that link.
<drbrain> orange33: can you hop in #rubygems?
<orange33> drbrain: Sure, will do. Thanks all for the help.
krohrbaugh1 has quit [#ruby-lang]
FACEFOX has joined #ruby-lang
FACEFOX has joined #ruby-lang
fgomez has joined #ruby-lang
blowmage has joined #ruby-lang
FACEFOX has joined #ruby-lang
FACEFOX has joined #ruby-lang
FACEFOX has joined #ruby-lang
FACEFOX has joined #ruby-lang
crackity_jones has joined #ruby-lang
slaytanic has joined #ruby-lang
ruskie has joined #ruby-lang
krz has joined #ruby-lang
nofxx has joined #ruby-lang
<mistym> Oh hey, someone made that semicolon language: http://pksunkara.github.com/semicolon/
vesan_ has joined #ruby-lang
flgr has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
<jtoy> uh, has anyone seen where copying and pasting into rib doesn't work because it doesnt copy over all the charcaters?
<drbrain> jtoy: I've had problems typing UTF-8 characters into irb
<drbrain> at least, when readline is wrapping libedit
<jtoy> drbrain: this is the first time I've ever seen this, there are no crazy characters, just code i typed into an editor and then copy and pasted into a remove rib instance
rdavila has joined #ruby-lang
rdavila has joined #ruby-lang
Jake232 has joined #ruby-lang
<slyphon> drbrain: do you have any advice on deprecation warnings?
<slyphon> i've never had to think about it before
<drbrain> slyphon: whatever you choose, you're damned
<slyphon> oh, good
<drbrain> slyphon: I use regular old warn and include a notice for when the feature will go away
<slyphon> so Kernel.warn
<slyphon> no way to make it do that only once?
<drbrain> warn "RDoc::RDocError is deprecated and will be removed in RDoc 4"
* slyphon nods
<drbrain> you can wrap up warn in your own code
<Mon_Ouie> I think using caller to print where that feature was used would help too
<slyphon> it would be way easier if someone else did that for me
<drbrain> there's https://github.com/rubygems/rubygems/blob/1.8/lib/rubygems/deprecate.rb which does what Mon_Ouie suggests
<drbrain> but not the "only once"
* slyphon nods
mehulkar has joined #ruby-lang
<slyphon> drbrain: thanks
WillMars_ has joined #ruby-lang
petercooper has joined #ruby-lang
fgomez has joined #ruby-lang
workmad3 has joined #ruby-lang
<erikh> deprecate does that
<erikh> :)(
<erikh> :( too
jbsan has joined #ruby-lang
t_ has joined #ruby-lang
westernanalog has joined #ruby-lang
nif has joined #ruby-lang
tekin_ has joined #ruby-lang
bryancp has joined #ruby-lang
burgestrand has joined #ruby-lang
fattastic has joined #ruby-lang
nif has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes0 has joined #ruby-lang
babinho has joined #ruby-lang
mistym has joined #ruby-lang
<nofxx> Read a lot around here, and I think too that you can't respect a language that uses semicolons. This changes it http://pksunkara.github.com/semicolon
bryancp has joined #ruby-lang
<fowl__> didnt you paste that link earlier nofoo
<fowl__> nofxx, *
<nofxx> fowl__: hmm.. nope, no tme
bryancp has joined #ruby-lang
<nofxx> haha... found it, sorry
<nofxx> well, not big deal anyway.. it just manage to be uglier than the whitespace lang (haha)
<nofxx> but brainfuck still the uglier
<nofxx> fowl__: was mistym_ who posted, some minutes ago, btw
<fowl__> want an esoteric language with dancing kirbys (>o_O)> <(-_-^)
<fowl__> nofxx, its cool i was just going to chide you for advertising :P
<Mon_Ouie> Programming languages that have the same principle as piet are the ones that have the greatest potential for being beautiful
Sailias has joined #ruby-lang
<mistym> fowl__: Yes! I want a dancing Kirbies language.
babinho has joined #ruby-lang
VegetableSpoon has joined #ruby-lang
<fowl__> esolangs hurt my brain, we can't all be as smart as Mon_Ouie ):
heftig has joined #ruby-lang
travisjeffery has joined #ruby-lang
retro__ has joined #ruby-lang
chessguy has joined #ruby-lang
srbartlett has joined #ruby-lang
slyphon has joined #ruby-lang
io_syl has quit ["Textual IRC Client: http://www.textualapp.com/"]
RubyRedGirl has joined #ruby-lang
brianpWins has joined #ruby-lang
WillMars_ has joined #ruby-lang
savage- has joined #ruby-lang
phlipper has joined #ruby-lang
slyphon has joined #ruby-lang
fgomez has joined #ruby-lang
samd_ has joined #ruby-lang
mikeric has joined #ruby-lang
Joeysomo has joined #ruby-lang
<Xzyx987X> I am once again stumped. I'm trying to add activesupport to my project for some of it's classes, but it seems to be having some issues autoloading it's files: http://pastie.org/3807546
xpipe has joined #ruby-lang
<Xzyx987X> autoload in theory works fine, as other files in the project autoload just fine
<Xzyx987X> but in this case, it isn't working for some reason. my best guess is something to do with rubygems
<Xzyx987X> I have confirmed the code doesn't work on two separate systems by the way, so I know it's not just my configuration on my dev box
<drbrain> Xzyx987X: I don't see where you registered the autoload
<Xzyx987X> I didn't, it's in active_record.rb
<Xzyx987X> active_support.rb I mean
<drbrain> Xzyx987X: can you show me where in active_record.rb there is an autoload?
<samuelkadolph> Xzyx987X: Very little of activesupport is autoloaded so you can use it in a gem/project without having it all loaded.
<drbrain> right
<samuelkadolph> You are meant to require specific parts you want to use.
<drbrain> Xzyx987X: ^^
<Xzyx987X> I think this is the right version: http://pastie.org/3807569
<drbrain> Xzyx987X: I really doubt there is an autoload :TimeZone, 'active_support/values/time_zone' in ActiveSupport
<drbrain> huh, interesting
<xpipe> (ruby newbie here) Hi, could anybody help me instanciating a class from a COM DLL? I managed to load it with dl DL.dlopen('./dllhere.dll'), but i haven't figured how to create an objet from the class contained in the dll. Thanks in advance!
<samuelkadolph> Xzyx987X: That's not the current active_support.rb (https://github.com/rails/rails/blob/master/activesupport/lib/active_support.rb)
<Xzyx987X> oh, you're right, I just figured out where my gems folder was and checked it. they removed that autoload for some reason apparently
<drbrain> Xzyx987X: what is the name of the file you pasted?
<Xzyx987X> not sure why, it doesn't impact performance much to have it in
<drbrain> which is the 3.2 series of activesupport
<Xzyx987X> yea, I was accidentally looking at the source from the latest in the 2.x line
slaytanic has joined #ruby-lang
mattyoho has joined #ruby-lang
<drbrain> Xzyx987X: makes sense, I know in the olden days autoload happened