apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
charliesome has quit [Read error: Connection reset by peer]
awarner_ has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
[gmi] has quit [Ping timeout: 260 seconds]
shado has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
tomshafer has quit []
mary5030 has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
acoyfellow has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Quit: WeeChat 0.4.2]
charliesome has joined #ruby
pr00t has quit [Ping timeout: 272 seconds]
lethjakman has joined #ruby
joelroa has joined #ruby
<lethjakman> is there a way to get the current number out of rubys .times operator?
<lethjakman> like 5.times I'd like to know when I'm at 3
<benzrf> it's passed as a block arg
h4mz1d has joined #ruby
jgrevich has joined #ruby
<jsilver> benzrf: lol
drim has joined #ruby
fgo has joined #ruby
<drim> I have an array of object and want to count all with status => 2. What the best way to do that?
nowthatsamatt has quit [Quit: nowthatsamatt]
<apeiros> drim: "of object" is redundant ;-)
<benzrf> arr.count {|n| n.status > 2}
<drim> oups :P
<apeiros> take a look at the Array#count method
<drim> thanks
<apeiros> bah, benzrf spoils all the fun
<benzrf> :-D
RoxasShadowRS has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
senayar has quit []
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
charliesome has quit [Ping timeout: 252 seconds]
dingus_khan has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 252 seconds]
kitak has quit [Remote host closed the connection]
joelroa has quit [Read error: Operation timed out]
lmickh_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
nfk has joined #ruby
jhass is now known as jhass|off
spyderman4g63 has quit []
kitak has joined #ruby
mary5030 has joined #ruby
RoryHughes has quit []
kitak has quit [Remote host closed the connection]
burlyscudd has joined #ruby
kitak has joined #ruby
mary5030_ has joined #ruby
Es0teric has quit [Remote host closed the connection]
ianfleeton has quit [Quit: ianfleeton]
charliesome has joined #ruby
jonah_k has quit [Remote host closed the connection]
cmoylan has quit [Ping timeout: 272 seconds]
lotherk has quit [Ping timeout: 272 seconds]
jerius has quit []
lotherk has joined #ruby
mjs2600 has joined #ruby
<benzrf> hmmm
burgess has quit [Quit: ^zzz]
mary5030 has quit [Ping timeout: 272 seconds]
<benzrf> is there an efficient way of checking whether a file contains a string
mando has quit [Remote host closed the connection]
burgess has joined #ruby
nfk has quit [Quit: yawn]
<CaptainJet> how efficient are we talkin' here
<benzrf> milisecond or less hopefully
<CaptainJet> there's classic load everything and check
ndrei has quit [Ping timeout: 265 seconds]
<benzrf> with files up to a gig
<benzrf> [in theory]
erichmenge has quit [Ping timeout: 260 seconds]
bwarkee has quit [Ping timeout: 260 seconds]
yasushi has quit [Remote host closed the connection]
<CaptainJet> you're probably stuck with a line-by-line then
<benzrf> :\
<benzrf> is there no system call?
<CaptainJet> what system
<benzrf> ok
<benzrf> well, this is probably an xy problem
undert has quit [Ping timeout: 260 seconds]
maetthew has quit [Ping timeout: 260 seconds]
jle` has quit [Quit: WeeChat 0.4.2]
<benzrf> i want a way to cache a boolean property by id
<benzrf> my first thought was to make 2 files, one for true and one for false
Spleeze has quit [Ping timeout: 260 seconds]
<benzrf> then put ids in the right file
jle` has joined #ruby
<benzrf> and i can see that they haven't been cached by seeing if either contains em
armyriad has quit [Ping timeout: 245 seconds]
srji_ has joined #ruby
maetthew has joined #ruby
oracal has quit [Quit: Leaving]
shadoi has quit [Quit: Leaving.]
tjbiddle has joined #ruby
bwarkee has joined #ruby
jonah_k has joined #ruby
<CaptainJet> so you store whether they've been cached, by placing a special identifier in the file?
undert has joined #ruby
<benzrf> yeah
<benzrf> well
erichmenge has joined #ruby
<benzrf> if they are in one of the files, they are cached
<benzrf> the files are the cache
<benzrf> but there's probably a better solution
<CaptainJet> well, is placing the identifier on the first line of the file out of the question?
Spleeze has joined #ruby
stryek has joined #ruby
tjbiddle has quit [Client Quit]
srji has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
predator217 has joined #ruby
asmodlol has quit [Remote host closed the connection]
<CaptainJet> or am i not visualizing the problem correctly here
<benzrf> huh?
Wolland has quit [Remote host closed the connection]
sed_life_better has quit [Read error: Operation timed out]
Zunonia has joined #ruby
marr has quit [Ping timeout: 252 seconds]
|jemc|_ has left #ruby ["WeeChat 0.4.2"]
dingus_khan has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
burlyscudd1 has joined #ruby
ffranz has quit [Quit: Leaving]
predator117 has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
jle` has quit [Quit: WeeChat 0.4.2]
jle` has joined #ruby
[krisbulman] is now known as krisbulman
vlad_starkov has quit [Ping timeout: 252 seconds]
superscott[8] has joined #ruby
burlyscudd1 has quit [Ping timeout: 252 seconds]
Vovko has quit [Ping timeout: 246 seconds]
swaglord546 has quit [Ping timeout: 248 seconds]
thams has quit [Quit: thams]
h4mz1d has quit [Ping timeout: 246 seconds]
Vovko has joined #ruby
ParanoidSP has joined #ruby
speakingcode has joined #ruby
f3ttX] has quit [Ping timeout: 252 seconds]
pel_daniel has left #ruby [#ruby]
charliesome has quit [Read error: Connection reset by peer]
Vovko has quit [Ping timeout: 245 seconds]
Vovko has joined #ruby
Vovko has quit [Client Quit]
zz_karupanerura is now known as karupanerura
funburn has quit [Read error: Connection reset by peer]
funburn has joined #ruby
Jdubs has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
ndrei has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
rootshift_ has joined #ruby
nanoyak has joined #ruby
shaado is now known as shado
elaptics is now known as elaptics`away
baroquebobcat has quit [Quit: baroquebobcat]
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 260 seconds]
gmi_ has quit [Quit: Leaving]
rootshift_ is now known as rootshift
pierre1_ has joined #ruby
Sou|cutter has quit [Quit: WeeChat 0.4.2]
Paranoid1P has joined #ruby
pr00t has joined #ruby
lolmaus has joined #ruby
Paranoid1P has quit [Client Quit]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
shawnjgoff has joined #ruby
jbueza has joined #ruby
Salve_ has quit [Remote host closed the connection]
earthquake has joined #ruby
ecualombian has joined #ruby
Salve has joined #ruby
jobewan has quit [Quit: Leaving]
pierre1_ has quit [Quit: Leaving]
bklane has quit [Quit: Leaving...]
pierre1_ has joined #ruby
Kricir has quit [Remote host closed the connection]
sethen has quit [Read error: Connection reset by peer]
xibalba has joined #ruby
aspires has quit []
diegoviola has joined #ruby
tcopp_ has joined #ruby
tiguser has quit [Ping timeout: 272 seconds]
Paranoid1P has joined #ruby
aspires has joined #ruby
mlpinit has joined #ruby
Salve has quit [Ping timeout: 272 seconds]
tiguser has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has quit [Quit: Leaving.]
angusiguess has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ephemerian has left #ruby [#ruby]
thumpba has quit [Remote host closed the connection]
Jason has joined #ruby
<Jason> hi all. i have an array that I want to 'break down'
<Jason> in the sense of, i want to pull 6 objects from this array at a time.
<benzrf> hmm
<Jason> if that makes sense.
<Jason> haha
<benzrf> >> [1, 2, 3, 4, 5, 6, 7, 8].chunk_by 2
<eval-in> benzrf => undefined method `chunk_by' for [1, 2, 3, 4, 5, 6, 7, 8]:Array (NoMethodError) ... (https://eval.in/102943)
<benzrf> p:
pietr0 has quit [Quit: pietr0]
<Jason> x=[1,2,3,4,5,6,1,2,3,4,5,6]
<Jason> i want to get the first 1 to 6.
<benzrf> >> [1, 2, 3, 4, 5, 6, 7, 8].each_slice 2
<eval-in> benzrf => #<Enumerator: [1, 2, 3, 4, 5, 6, 7, 8]:each_slice(2)> (https://eval.in/102944)
<benzrf> >> [1, 2, 3, 4, 5, 6, 7, 8].each_slice(2).to_
<eval-in> benzrf => undefined method `to_' for #<Enumerator: [1, 2, 3, 4, 5, 6, 7, 8]:each_slice(2)> (NoMethodError) ... (https://eval.in/102945)
<benzrf> >> [1, 2, 3, 4, 5, 6, 7, 8].each_slice(2).to_a
<eval-in> benzrf => [[1, 2], [3, 4], [5, 6], [7, 8]] (https://eval.in/102946)
<benzrf> >> [1, 2, 3, 4, 5, 6, 7, 8].each_slice(6).to_a
<eval-in> benzrf => [[1, 2, 3, 4, 5, 6], [7, 8]] (https://eval.in/102947)
aspires has quit []
<Jason> ooh
<Jason> benzrf: hm
<Jason> benzrf: maybe this would work better: i want to get the first 1 to 6 objects in an array (and not have it fail if there's < 6)
<Jason> then get everything after that 1 to 6.
<benzrf> >> [1, 2, 3][0..5]
<eval-in> benzrf => [1, 2, 3] (https://eval.in/102948)
<Jason> ooh
<Jason> >> [1,2,3,4,5,6][0..2
<eval-in> Jason => /tmp/execpad-13ebe18cabee/source-13ebe18cabee:3: syntax error, unexpected keyword_rescue, expecting ']' ... (https://eval.in/102949)
<Jason> >> [1,2,3,4,5,6][0..2]
<eval-in> Jason => [1, 2, 3] (https://eval.in/102950)
robustus has quit [Ping timeout: 252 seconds]
<Jason> now how would I get everything after that ..2?
<Jason> (not broken up or anything, literally [4,5,6 and so on]
ndrei has quit [Ping timeout: 248 seconds]
jokke has joined #ruby
<benzrf> >> [1, 2, 3, 4, 5, 6, 7, 8].slice_before 3
<eval-in> benzrf => #<Enumerator: #<Enumerator::Generator:0x41c8a384>:each> (https://eval.in/102951)
<benzrf> hmm
<apeiros> Jason: how did .each_slice(6) not satisfy your needs?
<benzrf> >> [1, 2, 3, 4, 5, 6, 7, 8].slice_before(6).to_a
<eval-in> benzrf => [[1, 2, 3, 4, 5], [6, 7, 8]] (https://eval.in/102952)
mjs2600 has quit [Remote host closed the connection]
<Jason> apeiros: wella
<Jason> well*
<Jason> apeiros: i'm going to be using this in a recursive printing function.
<Jason> apeiros: i can only fit 6 objects at a time.
<benzrf> oh that's by value not index
<YourBestFriend> >> x = {}; puts x['test']
<eval-in> YourBestFriend => ... (https://eval.in/102953)
<benzrf> Jason: you could use take
<Jason> benzrf: take? /me looks
<benzrf> >> [1, 2, 3, 4, 5, 6].take 2
<eval-in> benzrf => [1, 2] (https://eval.in/102954)
<benzrf> >> [1, 2, 3, 4, 5, 6].drop 2
<eval-in> benzrf => [3, 4, 5, 6] (https://eval.in/102955)
<Jason> ooh!
<apeiros> Jason: I still don't see how that makes it unfit
<Jason> benzrf: THAT was exactly what i wanted.
<benzrf> :)
ndrei has joined #ruby
tkuchiki has joined #ruby
<YourBestFriend> I want to get an error if 'test' isn't in x
<YourBestFriend> how do I do that
<Jason> benzrf: you rock.
robustus has joined #ruby
<apeiros> YourBestFriend: raise YourError unless x.include?('test')
<benzrf> Jason: (⌐■_■)
<Jason> >> [1,2,3,4,5,6].take 7
<eval-in> Jason => [1, 2, 3, 4, 5, 6] (https://eval.in/102956)
subbyyy has joined #ruby
<Jason> >> [1,2,3,4,5,6].drop 7
<eval-in> Jason => [] (https://eval.in/102957)
<Jason> right on
subbyyy has quit [Client Quit]
boom___ has joined #ruby
sobering has joined #ruby
<YourBestFriend> apeiros: fetch() is what I was looking for
<YourBestFriend> thanks anyway
<boom___> type something
<xibalba> boom___,
<xibalba> finally
<apeiros> YourBestFriend: maybe next time you tell us what x is
<xibalba> boom___, join #RubyOnRails
<YourBestFriend> apeiros: I told you what it was
<apeiros> YourBestFriend: because you know, could be string, array, hash, yourcustomclass…
<apeiros> YourBestFriend: where?
<YourBestFriend> take 2 │ | lol
<YourBestFriend> | clients: Add delete handler for simple-shm / simple-egl │20:08:24 eval-in | benzrf => [1, 2] (https:
<YourBestFriend> woah
<toretore> >> x = {}; puts x['test']
<eval-in> toretore => ... (https://eval.in/102958)
<toretore> is what you're looking for
<toretore> damnit
<YourBestFriend> I fucked up that paste
<YourBestFriend> sorry
<apeiros> YourBestFriend: ah, you got "interleaved", I see.
<YourBestFriend> 20:08:14 YourBestFr…| >> x = {}; puts x['test']
<apeiros> interrupted?
<apeiros> spammed?
<sobering> Hey guys, anyone familiar with using the OAuth gem? I've been trying to make authorized requests to the Discogs API and get constant 401's. I've been struggling with this for a few days already and just can't figure it out for the life of me. I've got a simple function here, is anything blatantly wrong?: https://gist.github.com/sobering/9029493
<YourBestFriend> I don't know? what do you mean?
<YourBestFriend> burried?
<apeiros> YourBestFriend: there have been like 20 lines of conversation between that line and your question
<YourBestFriend> OK
<apeiros> but ok, sorry, I didn't see it.
ndrei has quit [Ping timeout: 248 seconds]
Rainicorn has joined #ruby
<YourBestFriend> it's alright
LadyR has joined #ruby
koell has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
daidoji has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
<Jason> benzrf: one other q?!
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<Jason> benzrf: how would I reload an import?
<Jason> benzrf: require './labelgenerator.rb'
<Jason> how would I go and reload that, given I made changes to that?
<benzrf> mm
<benzrf> use load?
alk_ has joined #ruby
<benzrf> although that could cause problems
Sloggerkhan has quit [Ping timeout: 264 seconds]
<benzrf> it's safest to just restart the process
<Jason> load?
<apeiros> Jason: learn to manage your $LOAD_PATH instead of using relative requires.
<Jason> benzrf: and, eh, it's a pain in the rear to keep restarting this when i'm making a change :(
ptandel_ has joined #ruby
<Jason> apeiros: hmm? that might be an idea - shouldn't it be a gem though?
Sloggerkhan has joined #ruby
<ptandel_> how can i fork multiple processes (4) and then wait for all of them to finish?
Rainicorn has quit [Ping timeout: 240 seconds]
<ptandel_> specifically i'm running command line operations
<apeiros> Jason: rubygems will automatically add a gem's lib dir to $LOAD_PATH, yes
<apeiros> ptandel_: take a look at the "fork" gem (shameless plug)
<ptandel_> link pls :D
sparrovv has quit [Remote host closed the connection]
<apeiros> wow dude, srsly?
ReCoin has joined #ruby
Wolland has joined #ruby
benzrf is now known as benzrf|mindcrant
<benzrf|mindcrant> -afk-
<centrx> apeiros, Is this even better than Open3?
<ptandel_> thanks
earthquake has quit [Quit: earthquake]
<alk_> question: if I define func1, and I want to call func2 in it, and then I can to define func2, and call func1 in it, how can I solve the chicken and egg problem of func1 not knowing about func2 ?
sailias has joined #ruby
<apeiros> centrx: it's completely different
<centrx> Damn, I wish benzrf were here. Too bad he is afk
<apeiros> centrx: open3 is for any process, fork is for forking your current process only
<apeiros> alk_: define them before calling them?
<alk_> open3 is a combination of fork and exec with three pipes for stdin out and err.
<alk_> apeiros: but how is that possible since I'm calling them from one another?
evenix has joined #ruby
vlad_starkov has joined #ruby
<apeiros> alk_: *defining* a method doesn't call methods in its body
<apeiros> `def foo; bar; end` # does not call bar
sobering has left #ruby [#ruby]
axl_ has joined #ruby
ecualombian has quit [Remote host closed the connection]
<alk_> well.. once I run foo, it tells me that undefined local variable or method `bar' for main:Object (NameError)
brandonjmckay has quit [Quit: Lingo - http://www.lingoirc.com]
<apeiros> alk_: then you did something wrong.
crazymykl has quit [Remote host closed the connection]
sethen has joined #ruby
burlyscudd1 has joined #ruby
Salve has joined #ruby
<alk_> yeah maybe. actually it's within a Proc.new { } that's defined in the first function
<alk_> (because I want to pass it as a callback for some EventMachine stuff_
<alk_> )
shadoi has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
crazymykl has joined #ruby
<alk_> it seems that closures in ruby still confuse me
mrsolo has joined #ruby
<toretore> apeiros: i like that gem
Kricir has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
<alk_> I'll try writing 'lambda' instead of 'Proc.new' we'll see if it works
ecualombian has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<toretore> alk_: are you "defining methods" using Procs?
angusiguess has joined #ruby
<alk_> not exactly
jkamenik has joined #ruby
burlyscudd1 has quit [Ping timeout: 248 seconds]
<alk_> it's like that: I have a class bla < EventMachine::Connector
<toretore> how about pasting the real code instead?
<alk_> yeah I guess I could use a gist
fridim_ has joined #ruby
razrunelord has quit []
codeFiend has joined #ruby
v0n has joined #ruby
Vivekananda has quit [Ping timeout: 245 seconds]
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
shawnjgoff has quit [Ping timeout: 246 seconds]
Mongey has quit [Quit: Mongey]
pudidis has quit [Quit: pudidis]
Aryasam has joined #ruby
<alk_> ok just tested. it actually works when replacing 'Proc.new' by 'lambda'
superscott[8] has quit [Quit: superscott[8]]
angusiguess has quit [Ping timeout: 260 seconds]
<alk_> it does seem really dirty though
aryaching_ has quit []
lpvn has quit [Read error: Connection reset by peer]
binaryhat has quit [Quit: Leaving]
lpvn has joined #ruby
cmoylan has joined #ruby
mercwithamouth has joined #ruby
<toretore> should work fine with Proc.new
<alk_> I had two calls that called each other
<alk_> until they are finished
<YourBestFriend> what's the difference between include and extend?
<toretore> alk_: well, that's not in the gist ;)
<alk_> yeah I didn't want to load it up too much
<alk_> but basically if the content of the lambda calls a function defined within the EventMachine.run
<alk_> it will work if it's a lambda and won't work if it's a Proc.new
<alk_> seems that lambda retains more of the context that's around
<alk_> I'd be curious to see how crazy my call stack is at the end of the process though since they are calling each other many times
larissa has joined #ruby
dsferreira has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
FL1SK has quit [Ping timeout: 252 seconds]
<dsferreira> Hi. Anyone knows how to change on runtime the visibility of a protected class method?
FL1SK has joined #ruby
<alk_> oh it seems that resets itself on callback. beautiful
jonah_k has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
twiceaday has quit [Ping timeout: 252 seconds]
banister has joined #ruby
twiceaday has joined #ruby
apeiros has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
ner0x has joined #ruby
jzig has joined #ruby
<dsferreira> I tried: my_class.instance_eval('class < self; public :my_protected_method; end')
<dsferreira> This does the trick
zz_jrhorn424 is now known as jrhorn424
<dsferreira> But I need a code to change all protected methods to public when running in test environment
<alk_> that makes sense
lpvn has quit [Read error: Connection reset by peer]
<centrx> dsferreira, Why?
<alk_> I'd be interested to learn the answer
<alk_> probs for unit tests, right?
reset has quit [Read error: Operation timed out]
lpvn has joined #ruby
<dsferreira> Because I use protected methods as private methods members of the API
speakingcode has quit [Quit: Lost terminal]
<dsferreira> And in order to do that I unit test them
<dsferreira> this works fine with protected instance methods
<dsferreira> But now I want to do the same with a class method
<dsferreira> for instance methods we just have to put in the spec_helper the following code:
yarou has quit [Remote host closed the connection]
lpvn has quit [Read error: Connection reset by peer]
<dsferreira> described_class.send(:public, *described_class.protected_instance_methods)
<dsferreira> When I try to use described_class.protected_methods under instance_eval doesn't work
funburn has quit [Ping timeout: 245 seconds]
<dsferreira> the code I'm using is the following:
<alk_> why are you using protected methods as an api in the first place?
<alk_> isn't an api something that should be called from outside?
matchaw has joined #ruby
<dsferreira> described_class.instance_eval('class << self; self.protected_methods.each{|m| public m};end')
matchaw_ has quit [Ping timeout: 246 seconds]
<dsferreira> An API is something that guaranties the consistency of your classes
chrisja has quit [Quit: leaving]
<dsferreira> I want to guarantee that my protected methods are not removed.
<dsferreira> And assure to users of the class that they will be able to use them when subclassing it
PLejeck has quit [Read error: Connection reset by peer]
burlyscudd has quit [Quit: Leaving.]
<dsferreira> When you make them part of the API you are telling to the users that they can be assured the API will not change until the major version of the Gem is not changed.
<dsferreira> On the other end I will have the freedom to change my private methods at my will
<YourBestFriend> are hashes ordered?
<alk_> yes they are ordered.
<dsferreira> In Yard doc you can activate documentation specifically for protected methods
<dsferreira> alk_: they are?
<dsferreira> was that changed recently?
danshultz has joined #ruby
f3ttX] has joined #ruby
<dsferreira> Another question regarding this
<dsferreira> How can we debug a code from within the instance_eval code
teenwolf has joined #ruby
<dsferreira> Activating the documentation you tell your users what the protected methods are for
<alk_> I have observed that they preserve order
<dsferreira> They are part of the API. So they belong to the object.
<alk_> perl example
<alk_> perl -e "print join(' ',keys { 'a' => 1, 'b' => 2, 'c' => 3 })"
<alk_> c a b
Kricir has joined #ruby
<alk_> and ruby example
<toretore> they may preserve order, but you may not rely on it
yarou has joined #ruby
<alk_> [1] pry(main)> { 'a' => 1, 'b' => 2, 'c' => 3 }.keys
<alk_> => ["a", "b", "c"]
<dsferreira> Yes, but that is not reliable.
<dsferreira> That's what I think as well
tungd has joined #ruby
<YourBestFriend> "Prior to 1.9, behavior of enumerated hashes was not in the ruby specification and therefore was up to implementation -- basically, hash enumeration behavior/pattern was undefined by the language and implementations could really do whatever they want (random? sorted? insertion order? different method every time? anything goes!)
<YourBestFriend> 1.9+, hash enumeration is specified by the language to be in the order of insertion, so if you know your platform is 1.9+, you can rely on it.
<YourBestFriend> "
<dsferreira> You can find classes that deal with ordered hashes if you need it
<alk_> I'm using 1.9.3p484
mlpinit has quit [Remote host closed the connection]
<dsferreira> But don't use a hash for that
nihils has joined #ruby
snath has quit [Ping timeout: 245 seconds]
<dsferreira> Seriously?
<dsferreira> Always learning
<alk_> it's ordered based on insertion order
PLejeck has joined #ruby
<alk_> since 1.9.2
nichtdiebohne has quit [Ping timeout: 252 seconds]
ParanoidSP has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<alk_> 1.9.1 actually
funburn has joined #ruby
danshultz has quit [Remote host closed the connection]
maroloccio has quit [Read error: Connection reset by peer]
<alk_> this property does mean that it won't be a balanced tree internally though
saarinen has quit [Quit: saarinen]
<alk_> not sure it's worth it. but it's like that.
lpvn has joined #ruby
<dsferreira> I'm still not getting any feedback
<dsferreira> 2 questions
<alk_> about your question? I got no clue
<alk_> :)
ner0x has quit [Quit: Leaving]
sambao21 has joined #ruby
<dsferreira> alk_, Yeah. :)
<dsferreira> Maybe someone else?
cashnguns has joined #ruby
mikepack_ has joined #ruby
<dsferreira> At least how to use debug under the instance_eval call
veduardo has joined #ruby
veduardo has left #ruby [#ruby]
lethjakman has quit [Ping timeout: 252 seconds]
<dsferreira> That is for instance protected methods
snath has joined #ruby
<dsferreira> My problem is about class protected methods
<dsferreira> I can put specifically for a particular class the code that I have mentioned before
cashnguns has quit [Client Quit]
joelroa has joined #ruby
wookiehangover has joined #ruby
<dsferreira> or just: class MyClass; class << self; public :my_previous_protected_method; end; end
<dsferreira> This works
mikepack has quit [Ping timeout: 252 seconds]
<dsferreira> But I'm looking for a code to do it dynamically for all the classes in a before block on rspec
<dsferreira> And for all protected class methods belonging to each of the classes
<dsferreira> we can put it in the spec_helper before block under the configuration block
mikepack_ has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 272 seconds]
<dsferreira> And we can use described_class to refer each class
tvw has quit []
<dsferreira> When I do: described_class.instance_eval('class << self; public :my_protected_method; end') it works
mrsolo has joined #ruby
f3ttX] has quit [Quit: Lost terminal]
hamakn has joined #ruby
<dsferreira> But it doesn't work when I do: described_class.instance_eval('class << self; protected_methods.each{|m| public m};end')
Salve has quit [Ping timeout: 260 seconds]
hamakn has quit [Read error: Connection reset by peer]
<dsferreira> There is something wrong with the protected_methods call and It seems I can't debug this properly
hamakn has joined #ruby
<alk_> :(
<dsferreira> When I put the binding.pry the output is totally wrong
bobdobbs` has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
macclearich has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
mlpinit has joined #ruby
macclearich has joined #ruby
swaglord546 has joined #ruby
maroloccio has joined #ruby
jlast has joined #ruby
pigzzcanfly has joined #ruby
jzig has quit [Remote host closed the connection]
jzig has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
evilbug has joined #ruby
joelroa has quit [Ping timeout: 245 seconds]
macclearich has quit [Ping timeout: 245 seconds]
Steve445 has joined #ruby
amclain has joined #ruby
vlad_starkov has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
jzig has quit [Ping timeout: 248 seconds]
lpvn has joined #ruby
axl_ has quit [Quit: axl_]
Hanmac has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sdwrage has joined #ruby
burlyscudd has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
radic has quit [Ping timeout: 248 seconds]
codeFiend has quit [Quit: codeFiend]
Hanmac1 has quit [Ping timeout: 240 seconds]
kalz has joined #ruby
sski has joined #ruby
mocfive has quit [Remote host closed the connection]
lpvn has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 248 seconds]
LadyRainicorn has joined #ruby
mocfive has joined #ruby
lpvn has joined #ruby
LadyR has quit [Ping timeout: 240 seconds]
gbt has quit [Quit: Leaving...]
Kricir has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
Senjai has quit [Quit: WeeChat 0.3.7]
gja has quit [Quit: This computer has gone to sleep]
Zunonia has quit [Quit: Computer has gone to sleep.]
bbloom has quit [Ping timeout: 265 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Senjai`work has joined #ruby
dx7 has quit [Remote host closed the connection]
Senjai`work is now known as Senjai
gja has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
dx7 has joined #ruby
lpvn has joined #ruby
mrsolo has joined #ruby
angusiguess has joined #ruby
burlyscudd has joined #ruby
kennym has quit [Remote host closed the connection]
radic has joined #ruby
jonahR has joined #ruby
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
MatthewsFace has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
DropsOfSerenity has joined #ruby
DropsOfSerenity has quit [Max SendQ exceeded]
jonah_k has joined #ruby
DropsOfSerenity has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
iamsean has joined #ruby
Hobogrammer has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
edwardly has quit [Ping timeout: 245 seconds]
iamsean has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
anshin1 has joined #ruby
maletor has joined #ruby
anshin1 has left #ruby [#ruby]
pranny has quit [Quit: Leaving.]
Kricir has quit [Ping timeout: 245 seconds]
maletor has quit [Max SendQ exceeded]
burlyscudd1 has joined #ruby
edwardly has joined #ruby
angusiguess has joined #ruby
speckle has quit [Ping timeout: 252 seconds]
pwh has joined #ruby
LadyRainicorn has quit [Ping timeout: 260 seconds]
burlyscudd2 has joined #ruby
burlyscudd1 has quit [Read error: Connection reset by peer]
jzig has joined #ruby
Kricir has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
jkamenik has quit [Quit: Leaving.]
shadoi has quit [Quit: Leaving.]
sensen has joined #ruby
drim has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
burlyscudd2 has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
lpvn has quit [Read error: Connection reset by peer]
<dsferreira> Hi. Why this code breaks? A.protected_methods.each{|m| puts m.inspect; a = "class A; class << self; public #{m}.to_sym;end;end"; puts a; eval(a) }
Hobogrammer has quit [Ping timeout: 246 seconds]
jzig has quit [Ping timeout: 252 seconds]
lpvn has joined #ruby
Hobogrammer has joined #ruby
<dsferreira> Or this one: A.protected_methods.each{|m| puts m.inspect; a = "class << self; public #{m};end"; puts a; A.instance_eval(a) }
pigzzcanfly has quit [Remote host closed the connection]
burgess has quit [Quit: ^zzz]
<dsferreira> instance_eval breaks if used inside the block
jgrevich has quit [Ping timeout: 248 seconds]
<dsferreira> If it is called outside it runs successfuly
axl_ has joined #ruby
jgrevich has joined #ruby
mlpinit has quit [Quit: Leaving...]
krisbulman is now known as [krisbulman]
troyready has quit [Remote host closed the connection]
[krisbulman] is now known as krisbulman
maletor has joined #ruby
<Riking> Today, in the department of "How the fuck did this even work?": https://github.com/discourse/discourse/commit/16c67598187db50c6f82da0e455a000079b2f57b
s2013 has quit [Ping timeout: 252 seconds]
lpvn has quit [Read error: Connection reset by peer]
lethjakman has joined #ruby
lpvn has joined #ruby
DropsOfSerenity has quit [Quit: Peace.]
<maletor> Well, it doesn't work. The line just never gets hit.
<benzrf|mindcrant> Riking: sup yo
benzrf|mindcrant is now known as benzrf
<benzrf> Riking: thats valid syntax
<benzrf> it's a range
<Riking> hmm...
<benzrf> line..blank?
<benzrf> blank? is a method on self
<benzrf> line is a var
<benzrf> it's a range between em
<benzrf> >> 'foo'..'bar'
<eval-in> benzrf => "foo".."bar" (https://eval.in/102970)
pranny has joined #ruby
<Riking> Ah, a method on self - that makes sense
<benzrf> >> ('foo'..'bar').take 10
<eval-in> benzrf => [] (https://eval.in/102971)
<benzrf> huh
v0n has joined #ruby
<Riking> because a range would be truthy, right
<Riking> >> !!(10..10)
<eval-in> Riking => true (https://eval.in/102972)
tylersmith has joined #ruby
_maes_ has joined #ruby
<benzrf> yes, but
gja has quit [Quit: This computer has gone to sleep]
<benzrf> blank? wouldnt be a method on self would it?
slowcon has joined #ruby
<Riking> maybe? it was in a rspec test, so it's possible, I don't really know the details of it
tharindu has joined #ruby
fluve has joined #ruby
Zunonia has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
MatthewsFace has quit [Quit: This computer has gone to sleep]
jkamenik has joined #ruby
jkamenik has quit [Client Quit]
Zunonia has quit [Ping timeout: 245 seconds]
tharindu has quit [Ping timeout: 265 seconds]
jonah_k has quit [Remote host closed the connection]
joelroa has joined #ruby
pigzzcanfly has joined #ruby
jeregrine has quit [Ping timeout: 252 seconds]
dnyy has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Read error: Operation timed out]
blooberr____ has quit [Ping timeout: 252 seconds]
Avahey has quit [Ping timeout: 252 seconds]
dnyy has joined #ruby
Salve has joined #ruby
blooberr____ has joined #ruby
pusewicz_ has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Quit: Leaving.]
jeregrine has joined #ruby
bedouin has quit [Ping timeout: 265 seconds]
lpvn has quit [Read error: Connection reset by peer]
estebistec has joined #ruby
mikekellyio has quit [Ping timeout: 252 seconds]
lethjakman has quit [Ping timeout: 248 seconds]
lpvn has joined #ruby
marcdel has joined #ruby
axl_ has quit [Quit: axl_]
pusewicz_ has joined #ruby
mrsolo has joined #ruby
pipework has quit [Ping timeout: 265 seconds]
randym_ has quit [Ping timeout: 252 seconds]
joelroa has quit [Ping timeout: 240 seconds]
Avahey has joined #ruby
mocfive has quit [Remote host closed the connection]
bbloom has joined #ruby
mrsolo has left #ruby [#ruby]
danshultz has joined #ruby
mikekellyio has joined #ruby
mocfive has joined #ruby
mocfive has quit [Remote host closed the connection]
randym_ has joined #ruby
bedouin has joined #ruby
aspires has quit []
firewater has joined #ruby
marcdel_ has joined #ruby
<firewater> Is there a method that allows you to print only the key of a hash?
<firewater> Or do you have to do a block for that?
marcdel has quit [Ping timeout: 252 seconds]
qwebirc593101 has joined #ruby
<qwebirc593101> Hello everyone! I'm trying to work my way through a problem, here's the gist: https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
pipework has joined #ruby
rafaelmagu has quit [Quit: Textual IRC Client: www.textualapp.com]
prc has quit [Ping timeout: 245 seconds]
qwebirc593101 is now known as wannabe-ruby-dev
lpvn has quit [Read error: Connection reset by peer]
<firewater> Anyone?
boom___ has quit [Remote host closed the connection]
<wannabe-ruby-dev> again just for clarity, here is the gist https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
<centrx> firewater, Not sure what you mean
prc has joined #ruby
<wannabe-ruby-dev> What is it firewater?
lpvn has joined #ruby
<centrx> firewater, You mean get the key based on the value?
<firewater> centrx: So, basically, lets say you have a hash d={}
danshultz has quit [Ping timeout: 248 seconds]
<firewater> then, you put "test"=> "value"
<firewater> in it.
pigzzcanfly has quit [Remote host closed the connection]
Mongey has joined #ruby
chipotle_ has quit [Quit: cya]
<firewater> Is there a method I can call on d to print out the key onley?
krz has joined #ruby
bbloom has quit [Ping timeout: 252 seconds]
<firewater> aka, print only test.
<firewater> ignore the value.
<Riking> >> a = {"test"=>"value"}; a.each { |key, value| puts key }
<eval-in> Riking => test ... (https://eval.in/102973)
<centrx> >> a = {"test"=>"value"}; a.keys
<eval-in> centrx => ["test"] (https://eval.in/102974)
<Riking> ^ even better
pierre1_ is now known as f03lipe
<firewater> Riking, that is what I did try, but may have done it wrong.
<firewater> centrx: I think that is what I was trying to do.
<firewater> I forgot the s on keys.
<firewater> centrx: Thanks for that lol. I figured out what I was doing wrong.
<firewater> I forgot the s on keys.
<benzrf> oh hey firewater
<benzrf> hows it goin
<firewater> benzrf: Ok, just stressed out sort of. I work in finance, really want to move into programming for a job, but stressed on how to do it.
<benzrf> I:
vlad_starkov has joined #ruby
<benzrf> welp
<firewater> benzrf: Don't worry about it.
<firewater> Just worrking on coding.
tharindu has joined #ruby
<benzrf> =]
<firewater> working on those puzzles still.
Mapley is now known as Maple
Zunonia has joined #ruby
postmodern has quit [Quit: Leaving]
Maple is now known as Maplet
Maplet is now known as Mapley
<firewater> benzrf: How have you been?
burlyscudd has joined #ruby
jgrevich has quit [Quit: jgrevich]
<benzrf> pg
<benzrf> hey how can i turn a timestamp into a date
<benzrf> oh wait nvm
<Steve445> provide timestamp sample
<benzrf> its k nvm
tharindu_ has joined #ruby
tharindu has quit [Read error: No route to host]
sepp2k1 has quit [Read error: Connection reset by peer]
arclitgold has joined #ruby
<wannabe-ruby-dev> Hey y'all how do I change my path? https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
Zunonia has quit [Ping timeout: 252 seconds]
prc has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
burlyscudd has quit [Ping timeout: 245 seconds]
<firewater> If I have something set up like this: "value"=>nil. Why would the compilier keep saying it expects an end between the => and nill?
<firewater> I have it in a if else statement, but I don't think that would cause it.
<centrx> wannabe-ruby-dev, export PATH=$PATH:<add_dir>
<benzrf> firewater: is it in braces ?
<benzrf> firewater: you can only leave off the braces in a few circumstances
<benzrf> usually in method args
<benzrf> if it's a standalone expression it won't work
radic has quit [Ping timeout: 252 seconds]
<benzrf> for example:
<benzrf> >> foo = "wat" => 3
<eval-in> benzrf => /tmp/execpad-c740c4e57124/source-c740c4e57124:2: syntax error, unexpected =>, expecting keyword_end ... (https://eval.in/102975)
<benzrf> >> foo = {"wat" => 3}
<eval-in> benzrf => {"wat"=>3} (https://eval.in/102976)
<firewater> benzrf: That is probably it.
<benzrf> :)
<benzrf> fyi :foo=> can be replaced with foo:
<benzrf> in 99% of cases
Zunonia has joined #ruby
<firewater> IC. I think I broke the code more now, but oh well. Just going to keep playing with it lol.
estebistec has quit [Remote host closed the connection]
<firewater> IDK.
<firewater> But I see what youre saying.
radic has joined #ruby
<firewater> Not sure what it going on, but I'll keep playing with it.
<firewater> IC why its broken.
<firewater> Although this isn't realated to the last thing.
<benzrf> krz:
<benzrf> *k
<krz> benzrf:
<firewater> Its because i am testing the thing I'm passing it to see if it has a key and value. If it does, I want it to do something, if not value and only key, do something else.
<krz> *k
jlast has quit [Remote host closed the connection]
<benzrf> krz: :(
<firewater> Problem is though, I am doing this thing.has_value?
<firewater> That doesn't work though.
<benzrf> use Hash#include?
<firewater> Yeah, but I'm just vaguely testing it.
<firewater> Not testing if it contains one thing.
io_syl has quit []
<benzrf> huhn?
<firewater> It if conains ANY value, I want it to do one thing.
MattStratton has joined #ruby
MattStratton has quit [Max SendQ exceeded]
<benzrf> oh
<benzrf> #empty?
f03lipe has quit [Quit: Leaving]
<benzrf> #any?
<benzrf> >> {}.any?
<eval-in> benzrf => false (https://eval.in/102977)
f03lipe has joined #ruby
kobain_ has joined #ruby
<firewater> Possibly, I think I may know how to do this.
kobain has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
tcopp_ has quit [Ping timeout: 246 seconds]
<firewater> benzrf: Solved it, lol.
<firewater> But had to do it another way.
<firewater> I test if something is a string.
JasmeetQA has joined #ruby
<firewater> If its just a string, then I know its "empty" hash
<firewater> AKA, its just a string, without a value.
<firewater> else do the other thing.
<benzrf> huh
Salve_ has joined #ruby
<benzrf> ?
<benzrf> wha
<firewater> THe thing that was being passed to me.
<benzrf> i dont understand
<firewater> Is a string.
Salve has quit [Ping timeout: 252 seconds]
<firewater> Its not really a hash thing.
<firewater> So, I test if its just a string.
lpvn has quit [Read error: Connection reset by peer]
<firewater> If it is I make it a key
<firewater> and add it to => nil
<firewater> Vs. if its a thing like this "key" => value
<firewater> I just add it to the hash.
<firewater> Sorry, that probably doesn't make any sense.
lpvn has joined #ruby
koell has joined #ruby
<firewater> But it works, I am probably not making any sense though right now right?
<benzrf> not at all -o
<firewater> Sorry.
<firewater> benzrf: I can maybe show it to you after I finish.
<firewater> benzrf: It may be a while though :/.
<firewater> its not important.
angusiguess has joined #ruby
<firewater> benzrf: Anyhow, going to head off.
<benzrf> ok
<benzrf> see you!
<firewater> benzrf: See you and have a good night.
sambao21 has joined #ruby
<benzrf> you too
firewater has quit [Quit: Page closed]
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
vpretzel has joined #ruby
pigzzcanfly has joined #ruby
lethjakman has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
sambao21 has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
kevind has quit [Quit: kevind]
MatthewsFace has joined #ruby
Kimsebub has joined #ruby
kimsebub_ has joined #ruby
Kimsebub has left #ruby [#ruby]
shadoi has joined #ruby
chipotle has joined #ruby
Salve_ has quit [Ping timeout: 248 seconds]
burlyscudd has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
chipotle_ has joined #ruby
lethjakman has quit [Ping timeout: 245 seconds]
alvaro_o has quit [Quit: Ex-Chat]
mocfive has joined #ruby
Mousse_ has quit [Quit: Computer has gone to sleep.]
bbloom has joined #ruby
Mousse__ has joined #ruby
chipotle has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
lethjakman has joined #ruby
jerohm has joined #ruby
bbloom has quit [Ping timeout: 252 seconds]
lethjakman has quit [Ping timeout: 272 seconds]
<dsferreira> This is the solution: A.protected_methods.each{|m| A.instance_eval("class << self; public(:#{m}); end")}
krisbulman is now known as [krisbulman]
sdwrage has joined #ruby
shadoi has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
charliesome has joined #ruby
<centrx> gross
braincrash has joined #ruby
<lpvn> lol
jonah_k has joined #ruby
jerius has joined #ruby
bbloom has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
earthquake has joined #ruby
lpvn has joined #ruby
oso96_2000 is now known as oso|away
<wannabe-ruby-dev> Hey can someone take a look at my problem? I've made some progress and updated the gist https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
<benzrf> hey
<benzrf> is there a simple way to create a hash from an array and a block
<benzrf> *the proc becomes the key for each array item
joelroa has joined #ruby
CaptainJet has quit []
jerius has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<bnagy> hm... not in one step off the top of my head
<benzrf> dang
<bnagy> create the hash with the default proc then walk the array
<bnagy> same amount of work anyway
lpvn has quit [Read error: Connection reset by peer]
<benzrf> default proc?
codeFiend has joined #ruby
<bnagy> yeah like Hash.new {|h,k| h[k] = 'frogs'}
Wolland has quit []
<benzrf> what does that do?
chipotle has joined #ruby
lpvn has joined #ruby
<benzrf> o i see
<benzrf> it calls the proc whenever an unknown value?
<bnagy> ohh wait you want something else I think
<benzrf> *with the hash and the key
<benzrf> its ok im just using each_with_object
<bnagy> do you want to use the proc to create the keys from the values?
<benzrf> yeah
<benzrf> but its k
<benzrf> 11:11 < benzrf> its ok im just using each_with_object
Slavox is now known as Slavox|AFK
chipotle_ has quit [Ping timeout: 272 seconds]
joelroa has quit [Ping timeout: 252 seconds]
<bnagy> then.. ha yeah each_with_object({})
sensen has quit [Ping timeout: 252 seconds]
[krisbulman] is now known as krisbulman
<bnagy> keep having blackouts here so I got all that with kind of weird timing
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
cj3kim has joined #ruby
pu22l3r has joined #ruby
yasushi has joined #ruby
burlyscudd has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 246 seconds]
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
tharindu_ has quit [Quit: Leaving...]
pu22l3r_ has joined #ruby
Wolland has joined #ruby
yfeldblum has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sensen has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
pu22l3r_ has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
speakingcode has joined #ruby
pu22l3r has quit [Ping timeout: 246 seconds]
guilund has joined #ruby
burlyscudd has joined #ruby
<guilund> hey guys
<guilund> how can i just remove a substring from a string?
<guilund> its a very trivial thing and i cant get any info how to do it
<benzrf> gsub?
<centrx> string.gsub(substring, '')
vlad_starkov has quit [Ping timeout: 252 seconds]
<guilund> oh ok
<guilund> i mean, why so complicated?
bricker`LA has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<guilund> anyways, thanks !!
pu22l3r_ has quit [Ping timeout: 260 seconds]
<centrx> guilund, The next version of Rails has String#remove
e^0_ has joined #ruby
<guilund> centrx cool
burlyscudd has quit [Ping timeout: 248 seconds]
e^0_ is now known as e^0
f03lipe has quit [Quit: Leaving]
<guilund> i asked because, if you look at the String API, theres a ton of methods
<guilund> and one trivial like this doesnt have
<guilund> haha
<wannabe-ruby-dev> speaking of trivial, just throwing this out here again. i swear all the documentation on rubygame is so old i'm wondering if i should use it but at the same time i think it is interesting https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
<centrx> wannabe-ruby-dev, Did you try Homebrew?
<benzrf> wannabe-ruby-dev: i use gosu!
<benzrf> it is cool!
angusiguess has joined #ruby
<wannabe-ruby-dev> i did
<Steve445> How do you call a method from a module in another file? Do you have to require and include the module and class in the module?
Es0teric has joined #ruby
<centrx> Steve445, That's the general idea
<wannabe-ruby-dev> well, i mean i used brew to install some stuff
<wannabe-ruby-dev> should i do brew install rubygems?
bkparso has quit [Quit: bkparso]
<wannabe-ruby-dev> or something else? i'm confused
<centrx> wannabe-ruby-dev, I don't know much about OS X. I just know that OS X Rubyists seem to use brew and do not have the issues you are having
<bricker`LA> wannabe-ruby-dev: rubygems is now part of Ruby, you don't need to install it separately
<bricker`LA> wannabe-ruby-dev: assuming you're on a newish version of ruby... I think that was added in 1.93?
<bricker`LA> 1.9.3*
<Steve445> Centrx, i seem to be hitting a syntax issue. What if you have conflicting namespaces from the class or method names from different includes?
<centrx> Steve445, Name your modules more appropriately
<wannabe-ruby-dev> I'm on 2.1.0
<Steve445> ha
angusiguess has quit [Ping timeout: 245 seconds]
<bricker`LA> wannabe-ruby-dev: what's the problem?
<Steve445> can't you dictate the specific module and class when calling the method?
yfeldblum has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
<bricker`LA> Steve445: yes
<Steve445> can you point me to the proper syntax? I have been searching but can't find a write up on it
lpvn has joined #ruby
thams has joined #ruby
mikepack has joined #ruby
<bricker`LA> Steve445: YourModule.your_method
<Steve445> I get undefined method
<wannabe-ruby-dev> i mean you can look at the gist https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
<wannabe-ruby-dev> i wrote everything
<Steve445> In my module i do not have a class. Just methods
<bnagy> Steve445: if you have a 'utility' module then you need to define the methods on the module itself, to do ToolModule.magic( ... )
yacks has quit [Ping timeout: 246 seconds]
fella6s has joined #ruby
<bnagy> which you can do with module_function or just def self.magic
<wannabe-ruby-dev> bricker'LA I can't remember how to say this to you in IRC https://gist.github.com/jonathanpopham/2450dce70b0e22f68f21
mikepack has quit [Ping timeout: 260 seconds]
<bricker`LA> Steve445: define the methods with `self.method_name`
mocfive has quit [Remote host closed the connection]
<bricker`LA> wannabe-ruby-dev: oh, I thought you meant 'rubygems', not 'rubygame'
mocfive has joined #ruby
<bricker`LA> wannabe-ruby-dev: did you do `gem install rubygame`?
<wannabe-ruby-dev> yes
<wannabe-ruby-dev> also what is the command to send something directly to you? publically
<wannabe-ruby-dev> I haven't been on IRC in like 10 years
Kricir has quit [Remote host closed the connection]
kebabski has quit [Ping timeout: 264 seconds]
<Steve445> bricked`LA, THANKS!!
<Steve445> that was a big oversight on my part. Thanks for pointing it out!
<wannabe-ruby-dev> I get this error when I try to run rsdl <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
tungd has quit [Ping timeout: 245 seconds]
<bricker`LA> wannabe-ruby-dev: oh, you have RVM but you installed ruby with homebrew. You need to choose one or the other
<bnagy> wannabe-ruby-dev: the code you're using is ancient
<wannabe-ruby-dev> lol
<bnagy> in 1.8 you used to require 'rubygems' but that hasn't been required for years
fella5s has quit [Ping timeout: 252 seconds]
<wannabe-ruby-dev> oh my god is that the problem
<wannabe-ruby-dev> honestly rubygame's documentation is terrible, all the stuff is archived or gone
cj3kim has quit [Remote host closed the connection]
<wannabe-ruby-dev> part of me says i shouldn't even mess with it, but i'm too curious and I want to make a game in ruby
LexicalScope has quit [Ping timeout: 265 seconds]
arclitgold has quit [Quit: leaving]
Kricir has joined #ruby
<wannabe-ruby-dev> okay so i took that out of the code and it's still broken
<wannabe-ruby-dev> same error
mocfive has quit [Ping timeout: 246 seconds]
<wannabe-ruby-dev> Is it just too old?
fridim_ has quit [Ping timeout: 245 seconds]
<centrx> Looks like it, four years old
Salve has joined #ruby
<centrx> wannabe-ruby-dev, Check out https://www.ruby-toolbox.com/categories/game_libraries
s2013 has joined #ruby
krisbulman is now known as [krisbulman]
<wannabe-ruby-dev> Also I have both brew and rvm
<centrx> wannabe-ruby-dev, Usually best to use actively maintained gems,
<wannabe-ruby-dev> side question, could using both brew and rvm be a problem? I think I actually have two different copies of ruby 2.1.0. i accidentally the whole ruby
bkparso has joined #ruby
<wannabe-ruby-dev> in two different paths
<wannabe-ruby-dev> i have lots of problems
<wannabe-ruby-dev> but I don't want to give up!
<wannabe-ruby-dev> I am honored by your assistance
armyriad has joined #ruby
<wannabe-ruby-dev> I will come back another day
<centrx> wannabe-ruby-dev, Good luck!
michael_lee has joined #ruby
<centrx> wannabe-ruby-dev, Having more copies installed should not break anything
edelFr0st has joined #ruby
<wannabe-ruby-dev> wait one last thing
<wannabe-ruby-dev> ah nevermind
<wannabe-ruby-dev> goodbye
wannabe-ruby-dev has quit [Quit: Page closed]
joelroa has joined #ruby
bitri has joined #ruby
yfeldblum has quit [Remote host closed the connection]
amped24_ has joined #ruby
bitri has quit [Client Quit]
<amped24_> any more news on the ruby launch
amped24_ has quit [Client Quit]
<centrx> Into space?
fluve has quit [Remote host closed the connection]
<bnagy> so in 2.1 they applied the overprotective mother patch to gem, it seems
lpvn has quit [Read error: Connection reset by peer]
<bnagy> whines about unversioned dependencies, won't let me build if an old gemfile is still in the dir...
lpvn has joined #ruby
yacks has joined #ruby
thesheff17_ has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
lpvn has joined #ruby
s2013 has quit [Remote host closed the connection]
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
guilund has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
Wolland has quit []
robbyoconnor has joined #ruby
pu22l3r has joined #ruby
io_syl has joined #ruby
tangentstorm has joined #ruby
evenix has quit [Remote host closed the connection]
loxis has quit [Remote host closed the connection]
evenix has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
tangentstorm has left #ruby ["WeeChat 0.3.2"]
e^0 has quit [Quit: WeeChat 0.4.1]
ukd1 has joined #ruby
evenix has quit [Read error: Connection reset by peer]
evenix has joined #ruby
sensen has quit [Ping timeout: 265 seconds]
Sou|cutter has joined #ruby
snuffeluffegus has joined #ruby
sensen has joined #ruby
maletor has joined #ruby
yasushi has quit [Remote host closed the connection]
ukd1 has quit [Remote host closed the connection]
maroloccio has quit [Quit: WeeChat 0.4.2]
Salve has quit []
ukd1 has joined #ruby
sparrovv has joined #ruby
cmoylan has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
venkat_ has joined #ruby
jcs222 has quit [Quit: leaving]
koell has quit [Read error: Connection reset by peer]
endash has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
jonahR has quit [Quit: jonahR]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
codeFiend has quit [Quit: codeFiend]
<edelFr0st> Hey Everyone. I don't know ruby. I'm having a problem with compass, it stopped working for normal user but still works for root even though it's the same excutable. Normal user says could not find compass >= 0
codeFiend has joined #ruby
m00nlight has joined #ruby
s2013 has joined #ruby
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
jcs222 has joined #ruby
<bnagy> well stuff doesn't just 'stop working'
sparrovv has quit [Ping timeout: 245 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ukd1 has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
<edelFr0st> bnagy: Thanks
<bnagy> my money is on an upgrade or something that moved paths
maletor has quit [Quit: Computer has gone to sleep.]
<bnagy> how is ruby installed?
<edelFr0st> It's been a few weeks since I've run compass and I probably did upgrade (via the arch package manager)
matthalliday has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<edelFr0st> Other gems are in .gem/ruby/2.1.0, compass is in 2.0.0. Tried reinstalling but no go
matthalliday has quit [Client Quit]
aspires has quit []
lpvn has quit [Read error: Connection reset by peer]
lpvn has joined #ruby
<bnagy> this is kind of all specific to your environment
burlyscudd has quit [Ping timeout: 260 seconds]
<bnagy> and I don't know yum ( arch is yum, right?)
nathancahill has joined #ruby
<bnagy> the basic sanity tests are to make sure that you upgraded gem when you upgraded ruby
lpvn has quit [Read error: Connection reset by peer]
<bnagy> and that you're running the versions / binaries you think you're running
bricker has quit [Ping timeout: 264 seconds]
joelroa has quit [Ping timeout: 245 seconds]
endash has joined #ruby
<bnagy> after that a gem install should fix it, in an ideal world
daveops has quit [Ping timeout: 252 seconds]
cj3kim has quit [Read error: Connection reset by peer]
<edelFr0st> Arch has it's own package manager called pacman
sensen has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
<edelFr0st> I'll keep working on it. Thanks
angusiguess has joined #ruby
AlexRussia has joined #ruby
<bnagy> ok well that, then :)
<bnagy> anyway, this isn't really a ruby problem, it's a unix problem
Guest21723 has joined #ruby
evilbug has left #ruby ["Leaving"]
<bnagy> but sadly, arch people will tell you they don't know how gem works, so ask ruby
<bnagy> fun
Jetchisel has joined #ruby
<edelFr0st> Not it's a ruby problem. It's ruby or gem specific. As stated I'm not a ruby developer but have the need of ruby tools from time to time
OdNairy has joined #ruby
<bnagy> nah, it's the way the OS has packaged it
<bnagy> anyway, hopefully someone will be along that knows arch
Steve445 has quit [Quit: Steve445]
snuffeluffegus has quit [Quit: Leaving]
angusiguess has quit [Ping timeout: 248 seconds]
mikepack has joined #ruby
phansch has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
slowcon has quit [Quit: slowcon]
sensen has joined #ruby
dseitz has joined #ruby
jerohm has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbueza has joined #ruby
newleaf has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
AlexRussia has quit [Ping timeout: 245 seconds]
gja has joined #ruby
maletor has joined #ruby
codeFiend has joined #ruby
Aryasam has joined #ruby
sdwrage has joined #ruby
Aryasam has quit [Ping timeout: 240 seconds]
slowcon has joined #ruby
Aryasam has joined #ruby
thesheff17 has quit [Ping timeout: 245 seconds]
joelroa has joined #ruby
Atrumx has joined #ruby
phansch has quit [Quit: Leaving]
joelroa_ has joined #ruby
<benzrf> its my birthday woo
<havenwood> benzrf: happy birthday!
yfeldblum has joined #ruby
<benzrf> B)
<benzrf> hmm
Aryasam has quit [Ping timeout: 269 seconds]
IceDragon has quit [Quit: Space~~~]
joelroa has quit [Ping timeout: 252 seconds]
gja has quit [Quit: This computer has gone to sleep]
Wolland has joined #ruby
rm__ has joined #ruby
rm__ is now known as sassamo
maletor has quit [Quit: Computer has gone to sleep.]
joelroa_ has quit [Ping timeout: 245 seconds]
gja has joined #ruby
anarang has joined #ruby
<dachi> hello.
<dachi> i use textmate for editing but
<dachi> i just wondered if Xcode supports editing ruby
edelFr0st has left #ruby ["Time is an illusion. Lunchtime doubly so."]
<dachi> is anyone here that has success with this?
ktosiek has joined #ruby
edelFr0st has joined #ruby
<havenwood> dachi: Xcode works fine with Ruby but unless you're actually using Cocoa stuff it is too heavy and not as nice as the best text editors.
<dachi> i see
<dachi> could you tell me something
<dachi> here, how can I have directories together and files together
<dachi> on the left pane
<dachi> it's like directory1, file1, file2, directory2, file3
<dachi> i'm not used to that, directory1, directory2, file1, file2, file3 would be better
<havenwood> dachi: I don't understand what you're asking. Are you asking how in Ruby you'd group them thusly?
<havenwood> dachi: Or in a specific text editor?
<dachi> i though you were working with xcode that's why i asked sorry
<dachi> forget and thanks
pranny has quit [Read error: Connection reset by peer]
pranny1 has joined #ruby
<havenwood> dachi: I don't think that that level of granularity is available in Xcode, but I don't know.
yarou has quit [Remote host closed the connection]
<havenwood> dachi: TextMate2 or LightTable are open source options on OS X that are really nice.
Aryasam has joined #ruby
<havenwood> dachi: In addition to emacs and vim.
<dachi> thanks textmate is great i was not thinking of completely switching to xcode or something just wanted to see if it's handy there
sdwrage has quit [Quit: This computer has gone to sleep]
<havenwood> dachi: I personally don't find Xcode useful for Ruby but I'd be curious to see why if others do.
Aryasam has quit [Client Quit]
Aryasam has joined #ruby
kevinykchan has joined #ruby
Aryasam has quit [Read error: No route to host]
thams has quit [Quit: thams]
Hanmac has joined #ruby
jcs222 has quit [Quit: leaving]
vlad_starkov has joined #ruby
jcs222 has joined #ruby
nerdman has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
<nerdman> is it possible to define a method "<<<"
<Nilium> No.
lxsameer has joined #ruby
<havenwood> nerdman: Kinda.
burlyscudd has joined #ruby
<nerdman> is it possible to define similar method as <<, i.e. >> "foo" <= "o" => "fooo"
<nerdman> havenwood: what do you mean
<Nilium> You can if you include calling define_method(:'<<<')
pingveno has joined #ruby
<havenwood> >> define_method('<<<', ->{:ok}); send '<<<'
<eval-in> havenwood => :ok (https://eval.in/102998)
<Nilium> I doubt anyone wants to use send just to invoke <<<
<havenwood> Nilium: Ya, hardly usefule.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
earthquake has quit [Quit: earthquake]
vlad_starkov has quit [Ping timeout: 252 seconds]
pingveno has left #ruby [#ruby]
stryek has quit [Ping timeout: 260 seconds]
<edelFr0st> Works now. For some reason installing sass separately first allowed compass to install cleanly and all is well again :)
<havenwood> edelFr0st: You might consider tools like chruby to keep the env vars straight for what Ruby you're using. chruby is available in the AUR.
yasushi has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
<edelFr0st> havenwood: Thanks for the tip. I'll take a look at it
JasmeetQA has quit [Ping timeout: 245 seconds]
heftig has quit [Quit: Quitting]
mocfive has joined #ruby
<edelFr0st> Is there an equivalent to something like python's virtualenv for ruby?
angusiguess has joined #ruby
<benzrf> ish
<havenwood> edelFr0st: There is chruby, RVM and rbenv.
OdNairy has joined #ruby
mary5030_ has quit [Remote host closed the connection]
yasushi has quit [Ping timeout: 246 seconds]
<havenwood> edelFr0st: For installation of Rubies there is ruby-install, RVM and ruby-build.
<havenwood> edelFr0st: I'd recommend ruby-install and chruby.
funburn has quit [Quit: funburn]
sdwrage has joined #ruby
<havenwood> edelFr0st: RVM is a 20,000+ lines of code all-in-one solution.
<havenwood> But a popular option.
<nerdman> Nilium: its useful if you need to write multiple lines without
<nerdman> Nilium: and you want similar method output as <<
<havenwood> nerdman: The lexer/parser makes things difficult for certain chars unless you want to go to C.
<nerdman> havenwood: ok, it works, i have now foo.send("<<<",stuff) which validates foo before appending
JohnBat26 has joined #ruby
<havenwood> nerdman: Yeah, that is a workable workaround.
<nerdman> havenwood: allright :)
<Nilium> nerdman: Writing `x.send(:'<<<', y)` over and over is not similar to `x << y`.
angusiguess has quit [Ping timeout: 251 seconds]
mikepack has joined #ruby
<Nilium> That would be what my point was.
vic736 has joined #ruby
<nerdman> Nilium: yes i know but if its impossible i wont bark, im happy
<centrx> pipework, Much progress has been made on Operation Special Olympics
sassamo has quit [Remote host closed the connection]
fflush has quit [Ping timeout: 272 seconds]
<edelFr0st> havenwood: chruby is looking pretty good and it's in freebsd ports too, a nice bonus
fflush has joined #ruby
Hanmac1 has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 252 seconds]
jcs222 has quit [Quit: leaving]
dingus_khan has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
tagrudev has joined #ruby
<edelFr0st> havenwood: Thanks for the help!
edelFr0st has left #ruby ["Time is an illusion. Lunchtime doubly so."]
gja has quit [Quit: This computer has gone to sleep]
Synthead has quit [Quit: p33 ba115]
jcs222 has joined #ruby
gja has joined #ruby
Synthead has joined #ruby
pranny1 has quit [Quit: Leaving.]
sed_life_better has joined #ruby
<sed_life_better> can't figure out a way to find duplicate values in a hash, docs not enlightening
Lewix has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
<havenwood> sed_life_better: Not sure what you mean. Have an example?
dingus_khan has quit [Remote host closed the connection]
Lewix has joined #ruby
<sed_life_better> havenwood: {:price => 100, :price => 250, :price => 100}
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
<sed_life_better> need to find duplicate values, except price is a unique key each time and i need to be able to look up duplicates in price by key
<sed_life_better> so more lie {:shovel => 100, :latern => 40, :coat => 100}
<benzrf> latern?
kobain_ has quit []
<sed_life_better> *latern, forgot i was in the English Language Channel, m'lord
MatthewsFace has quit [Quit: This computer has gone to sleep]
<sed_life_better> :P
ayaz has joined #ruby
slowcon has quit [Quit: slowcon]
<sed_life_better> ok so my 'n' key seems to be sticking...
<benzrf> WOOP WOOP
<benzrf> [27] pry(main)> genesis
<benzrf> => #<Block 0x0000002e726335fad2796cde6de7857098484327>
<benzrf> => true
<benzrf> [28] pry(main)> genesis.valid?
xcv has joined #ruby
<sed_life_better> i'll buy a new keyboard before i'll be bothered to clean this one!
<havenwood> sed_life_better: Do you care how many dups, etc? Example input and expected output make it way easier for us to help. Checkout: a = {:price => 100, :price => 250, :price => 100}; a.detect { |price| !a.count(price).zero? }
<sed_life_better> havenwood: no idea of knowing how many dups, data source may change
<havenwood> sed_life_better: But do you care how many, or just that they are dups?
<sed_life_better> working on example input/output
<sed_life_better> well there's going to be a product rating as part of each :product_key, so if there are dups, whichever has the best rating should win
<havenwood> sed_life_better: So you need to know how many dups each dup is ?
<sed_life_better> havenwood: i think i only need to know how many dups there are for the purpose of knowing how many of them to compare against one another in the ratings category
endash_ has joined #ruby
<havenwood> sed_life_better: sounds like you should iterate over and populate a hash
<sed_life_better> havenwood: as an example: http://pastebin.com/ikqGYUCZ
<sed_life_better> havenwood: makes sense, just with an each/each_key? i was thinking of how #detect might work here
gja has quit [Quit: This computer has gone to sleep]
<havenwood> sed_life_better: Your code is missing essential commas.
<sed_life_better> havenwood: whoops, right, just a quick example, not being used
<havenwood> sed_life_better: Well, if #each_key suffices depends on whether you care about the value.
Hobogram1er has joined #ruby
<havenwood> Which you do.
<havenwood> So each and build an Hash out of matches.
<sed_life_better> havenwood: right, trying to compare the values for duplicates, so do i nest a detect in there?
<sed_life_better> ah makes sense
<sed_life_better> nothing out of the box though, then; just wanted to make sure i didn't misread the dpcs
<sed_life_better> docs*
<benzrf> my cc is workingggg~
<benzrf> just mined the genesis block
<benzrf> the unspent output cache is behaving
<benzrf> :D
<benzrf> next for the boring part
<benzrf> networking
<benzrf> /ROLLS EYES
mikepack has joined #ruby
pu22l3r has quit [Remote host closed the connection]
joelroa has joined #ruby
pu22l3r has joined #ruby
Al___ has joined #ruby
andy has quit [Remote host closed the connection]
Al___ has quit [Client Quit]
<pipework> centrx: I am excite.
Mongey has quit [Quit: Mongey]
<havenwood> sed_life_better: products.group_by { |product| product.last[:price] }
Hanmac1 has quit [Ping timeout: 260 seconds]
mikepack has quit [Ping timeout: 245 seconds]
<bnagy> >> {:shovel => 100, :latern => 40, :coat => 100}.group_by {|(item,price)| price}
<eval-in> bnagy => {100=>[[:shovel, 100], [:coat, 100]], 40=>[[:latern, 40]]} (https://eval.in/103001)
havenwood has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 248 seconds]
pu22l3r has quit [Ping timeout: 252 seconds]
sassamo has joined #ruby
codenapper has joined #ruby
mengu has quit [Remote host closed the connection]
codenapper has quit [Client Quit]
s2013 has quit [Ping timeout: 246 seconds]
djdb has joined #ruby
codenapper has joined #ruby
aganov has joined #ruby
<shevy> damn
<shevy> via plain require alone I can not require a specific version right?
codenapper has quit [Read error: Connection reset by peer]
pigzzcanfly has quit [Remote host closed the connection]
<centrx> shevy, you can require a specific directory
<centrx> in
sassamo has quit [Ping timeout: 248 seconds]
necrotic_ has joined #ruby
jgrevich has joined #ruby
Hanmac has joined #ruby
<shevy> that does not help me much
necrotic_ has quit [Remote host closed the connection]
<sed_life_better> havenwood: thanks for that, missed the ping
nathancahill has quit [Quit: nathancahill]
<shevy> in the event that two ruby gem dirs are used, one being the sys-dir over which a user would not have access, the other the home dir
nfk has joined #ruby
mengu has joined #ruby
<shevy> sys-dir has a gem installed which has the same name but another version of --user-installed gem, this is annoying :(
dingus_khan has joined #ruby
<shevy> hmm
vlad_starkov has joined #ruby
<shevy> I suppose I could check for two dirs
lurch_ has joined #ruby
havenwood has joined #ruby
bleak has quit [Ping timeout: 252 seconds]
<diegoviola> what do you guys do when you start working on a new project and the code is a complete untested/undocumented junk?
<diegoviola> how do you improve it without losing your mental sanity
<shevy> wait
<shevy> a new project, but the code is untested?
<shevy> if you started a new project, why didn't you start with tests O_O
bal has joined #ruby
<diegoviola> the project is not new
<diegoviola> it was started in 2008 (it's a rails app)
<centrx> Fix it as you go
<centrx> Wall off sections and rebuild modularly
mocfive has quit [Remote host closed the connection]
<shevy> ewwww rails
mocfive has joined #ruby
<diegoviola> it was started in rails 1.x iirc, ported to rails 2.x and now being ported to rails 3.x
<diegoviola> all the code is untested
oso|away is now known as oso96_2000
<diegoviola> and the code is not even restful
<shevy> haha
<diegoviola> it looks more like this: https://gist.github.com/9087204
<diegoviola> how do you convert that yunk to rest?
<diegoviola> it's a mess
<shevy> god what an ugly pile of shit
swaglord546 has quit [Quit: Byebye...]
dingus_khan has quit [Remote host closed the connection]
Wolland has quit []
<shevy> @collection.save!
<shevy> haha
krz has quit [Ping timeout: 240 seconds]
<diegoviola> i see this in the routes file:
<diegoviola> match 'ZenasMatthews' => 'collection#show', :collection_id => 7
<diegoviola> match 'JuliaBrumfield' => 'collection#show', :collection_id => 1
<diegoviola> but there's no #show method in the CollectionController
io_syl has quit []
Zunonia has quit [Ping timeout: 245 seconds]
yeticry_ has joined #ruby
<shevy> that's what you get for using highly domain specific projects
<diegoviola> i'm about to die if i continue with this
<diegoviola> shevy: it's not my project
<shevy> article.save!
<diegoviola> i was just told to improve this shit
<diegoviola> but i'm not even sure where to start
<shevy> find the smallest piece you can work on
<pipework> diegoviola: Try asking in #rubyonrails
tylersmith has quit [Read error: Connection reset by peer]
<shevy> I usually start by changing the ruby code to code I would write naturally
echevemaster has quit [Remote host closed the connection]
burlyscudd has joined #ruby
<pipework> <shevy> pipework.sucks = true
<shevy> like if I find any @@ I go in for the final kill instantly
<shevy> who the fuck is pipework
<diegoviola> i will just delete that class and start a new one
mocfive has quit [Ping timeout: 260 seconds]
<shevy> ah and the .save! methods
<Nilium> Not ruby-related, but: I have a copy of Monaco from the Humble Bundle thingy today that I don't want, would anyone else want it?
<shevy> I dunno what they do but I already hate them
<benzrf> Nilium: fuck yeah!
<benzrf> Nilium: also its my birthday
<shevy> look how to trigger benzrf's wake up
<pipework> diegoviola: Mind that shevy probably doesn't have a clue about what he's talking about. He sure is entertaining though!
<benzrf> this can be ur present
<benzrf> to me
<shevy> pipework are you even on rubygems.org man
<pipework> shevy: yeahbru
yeticry has quit [Ping timeout: 264 seconds]
Xiti has quit [Ping timeout: 252 seconds]
<Nilium> I have a hard time believing the birthday thing, but ok
<Nilium> PM incoming.
<shevy> there is no match for "pipework" there
krz has joined #ruby
Zunonia has joined #ruby
<shevy> Nilium benzrf is now 17
<pipework> shevy: And?
<shevy> pipework you said you are there. you are not
<pipework> shevy: Sure I'm there. Do you know what pseudonyms are?
vlad_starkov has quit [Ping timeout: 272 seconds]
<shevy> pipework no I don't know
<shevy> pipework but you said you are there and you are not
<pipework> shevy: k
<Nilium> Happy porpoise day nevertheless
<Nilium> May the great porpoise spare your life for another year
<pipework> Nilium: I wish I had a porpoise in life.
<shevy> benzrf how long will you use ruby?
<shevy> I like tortoise day
<benzrf> until i realize that it was lisp i wanted all along
<shevy> omg
<shevy> why do retrocoding?
<shevy> lisp was hip back in the second world war
<Nilium> Gambit Scheme is my god.
<Nilium> I just wish I had a use for it.
<shevy> lol
dukz has joined #ruby
<shevy> sounds like haskell
burlyscudd has quit [Ping timeout: 246 seconds]
<Nilium> Scala is how I compromise on functional and imperative programming
<Nilium> Since I can use it for Android dev.
<shevy> Androgen dev sounds cool
<pipework> Nilium: I use ruby to do those.
<Nilium> So now I have two apps using Scala out there, and I shall continue my efforts to (violently) convert Android devs to using it.
<Nilium> I don't really like the idea of shipping a Ruby interpreter with an Android app
<dseitz> You don't
xcv has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
<Nilium> And so far I'm not aware of any actual Ruby implementations that compile directly to JVM bytecode
<Nilium> Though Mirah is an interesting take on the idea
Xiti has joined #ruby
<havenwood> Nilium: JRuby
<Nilium> At any rate, Scala is a lot like Ruby syntactically, so it works out
speakingcode has quit [Ping timeout: 246 seconds]
<Nilium> I have strong and profanity-strewn opinions of JRuby.
<pipework> My condolences.
<dseitz> RubyMotion's translation of Ruby is interesting; it's commercial though
angusiguess has joined #ruby
<Nilium> RubyMotion's interesting but has some limitations (obviously). I wouldn't be too surprised if they try to take on an Android target, but it probably wouldn't be 100% compatible with the Mac/iOS targets
Matriks has joined #ruby
rismoney has quit [Ping timeout: 252 seconds]
__greg has quit [Quit: __greg]
<Nilium> Also I didn't want to spend $200 on it when I don't really do iOS stuff and I just use Obj-C for the small Mac things I do
<Nilium> Since I don't get paid to do iOS/Mac thingies
<Nilium> Though it would be nice if I did, because then I could justify $200 as an experiment.
<shevy> hehe
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Atw has quit [Ping timeout: 265 seconds]
<Nilium> Oh well, if I manage to get some more work I can set aside money for a RubyMotion license just to have it for the sake of having it
<pipework> I'll just happily JRuby along. It's my favorite ruby implementation.
<benzrf> thanks again Nilium :D
cj3kim has quit [Read error: Connection reset by peer]
<shevy> god, a java man, I should have known
<Nilium> Whichever Ruby implementation works for you
cj3kim has joined #ruby
<pipework> shevy: JVM.
<Nilium> I can't really get along with JRuby because they really hate the C API
<shevy> JVM is cool but you need java :(
<Nilium> Which is understandable since I'd guess it's a huge pain to support in JRuby
<pipework> Nilium: The C API?
<shevy> if they could get rid of java then it would be AWESOME
<pipework> shevy: You don't need to write Java, but you get full JVM interop.
mikepack has joined #ruby
<Nilium> For C extensions.
<Nilium> i.e., the one in MRI.
<Nilium> And to a lesser extend rbx.
<pipework> I don't understand what you mean. The experimental C extension support?
supersym has joined #ruby
<Nilium> *extent
<Nilium> Damn you fingers
<dseitz> Yeah. But leveraging LLVM under Android would actually result is worse performance
angusiguess has quit [Ping timeout: 246 seconds]
sassamo has joined #ruby
<Nilium> Do you mean experimental from the standpoint of JRuby?
armyriad has quit [Ping timeout: 265 seconds]
<pipework> Nilium: You know that the API is implemented in the implementation, right?
<dseitz> The NDK is not designed to enable truly native applications; just native extensions to a Java application
Matriks has quit [Ping timeout: 272 seconds]
thomasxie has joined #ruby
<Nilium> Yes. MRI is basically the reference implementation, however, so its C API gets to be considered the C API.
<pipework> And the C extension support in JRuby is experimental. Are you complaining about that or just the API itself?
venkat_ has quit []
<Nilium> It's not experimental anymore, they deprecated it.
<Nilium> I guess you didn't know about that part.
<centrx> Seems unlikely
<Nilium> Basically, JRuby wants nothing to do with supporting it, so they axed it, which is a reasonable thing to do since it's not very pleasant to support.
armyriad has joined #ruby
<Nilium> It just makes JRuby unusable for my purposes.
<pipework> Ah, it's just disabled.
Matriks has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
iamdoo2 has joined #ruby
<dseitz> There are lot of Java implementations of some popular gems
<pipework> Also, I never have problems with it, I guess I'm just not dependent on c extensions where I can't work something up myself in another JVM language. Not really JRuby's fault, but your loss.
<Nilium> Far as I'd read, it was deprecated in 1.7
<pipework> You didn't read far. It was disabled with likelyhood of removal.
<Nilium> I'd consider that close enough to deprecation.
cj3kim has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
cj3kim has joined #ruby
mary5030 has joined #ruby
cloud|nix has joined #ruby
supersym has quit [Quit: WeeChat 0.4.3]
<Nilium> Hopefully you aren't actually bothered that I don't like JRuby, since I sort of got the impression that you seem bothered by it
olivier_bK has joined #ruby
<pipework> So just use FFI?
<centrx> What mobile app should I build with Rhodes? https://github.com/rhomobile/rhodes
<pipework> I'm not bothered, I'm just concerned you dislike it for silly reasons, but I couldn't really care if you don't care to know.
sassamo has quit [Ping timeout: 248 seconds]
fedexo has quit [Remote host closed the connection]
<Nilium> I don't really think it's silly, it's just that I've looked at my options and JRuby would require significantly more work to use.
codenapper has joined #ruby
kenndel_ has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
kenndel_ has joined #ruby
emergion has joined #ruby
andikr has joined #ruby
<bnagy> what are these cexts where there are no FFI alternatives?
<Nilium> Overall, there are better things for me to work on than trying to make JRuby fit my needs.
<bnagy> people keep talking about them, but I've never seen one
wallerdev has quit [Quit: wallerdev]
<Nilium> Mine, for one.
leonidlm has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
Hobogram1er has quit [Quit: leaving]
<bnagy> oh. Well you should just write it in C, then people with good ruby interpreters can use it
<bnagy> and every other language on the planet
<Nilium> Eh? They're already written in C.
<bnagy> I mean non-MRI C
<bnagy> like proper C
<Nilium> They wouldn't be C extensions if they weren't written in C. -_-
<Nilium> The underlying code is still written in proper C.
<bnagy> so make a real C lib, wrap it with FFI, everyone wins
<Nilium> The interface for MRI just happens to also be C.
<bnagy> sounds like no work
<Nilium> I'm pretty sure we've had this discussion before.
amclain has quit [Quit: Leaving]
<bnagy> nah I think that was when you were using fiddler or something silly
<Nilium> https://github.com/ffi/ffi/blob/bef6f44505fd96eb16c044b1e1af9cbad2697bfe/README.md ⇐ I'm also pretty sure this convinced me to stay way the hell away from ruby-ffi
<Nilium> I still use Fiddle for my GL bindings.
<Nilium> Oddly enough, they work better than the other FFI bindings.
m00nlight has quit [Read error: Connection reset by peer]
<Nilium> Funny how that decision worked out in my favor.
top4o has joined #ruby
starfox21 has joined #ruby
<bnagy> FFI is still maintained
<bnagy> that was just scenedrama
<Nilium> If drama is enough to kill ffi, I'm not touching it.
<bnagy> it didn't kill ffi
<Nilium> I would rather stick with libffi and be very content.
<Nilium> Y'know, 'cause libffi kind of has a better history.
<Nilium> And it's in C, which means you can write your cutesy little FFI bindings for libffi
<Nilium> And then you can rewrite Fiddle's libffi support using FFI bindings to libffi
<Nilium> That could be interesting.
<Nilium> In the meantime, I'll keep using what works.
<bnagy> for your one use case
<Nilium> Y'know, not worrying about whether a project is maintained or not.
<bnagy> because you wrote your code in the least versatile way possible
<bnagy> GOOD FOR YOU!
<dseitz> And the winner is... Xamarin
<pipework> bnagy: I wonder if he gets paid to lock people into cruby for no reason.
<Nilium> I use MRI, so it's for the use case of people who use MRI.
<bnagy> 15:19 < Nilium> And so far I'm not aware of any actual Ruby implementations that compile directly to JVM bytecode
<shevy> 03:14 <Nilium> I like asian monkeys
<pipework> Nilium: Sounds unnecessary, but you clearly enjoy it, and I'm lucky enough to not have to interact with what you write so I'm happy too.
<pipework> We're all winrars here.
<shevy> pipework does winrar have good documentation?
<pipework> shevy: I can't read.
<Nilium> Indeed.
<Nilium> Except the asian monkeys part.
<shevy> nobody likes dem monkeys :(
<Nilium> pipework doesn't believe in words.
m00nlight has joined #ruby
<shevy> pipework believes in the holy documentation (if he could read that is)
<Nilium> pipework believes in pipes that funnel what might be words through the brains of all humans.
ukd1 has joined #ruby
<shevy> ewwww
<shevy> you don't wanna know what goes in pipes...
<pipework> shevy believes in delegating thought to others. Probably a safe bet.
<shevy> pipework I always liked the social setup of the BORG
<Nilium> Also, I am allowed to mildly weirded out when people act weirded out that I don't do what they prefer to do just because they're convinced their choice is the Right Choice, right?
<Nilium> *to be
ukd1 has quit [Remote host closed the connection]
<shevy> people are very opinionated
<shevy> it comes with old age
jonah_k has quit [Remote host closed the connection]
<dseitz> Really, cause my 3 year old is very opinionated
ukd1 has joined #ruby
<shevy> well he should get a better dad
<Nilium> 'Cause after ten years of hearing people espouse the Right Choice (it's been Java, C# and .NET, a few people I know were really gung-ho about Xamarin, etc.), it's kind of old.
<pipework> It just seems funny to see someone unnecessarily locking themselves into something. It's kind of like, "lol... shh, just watch."
<shevy> pipework but you like java too!
<pipework> shevy: Do I? I like the JVM.
<Nilium> I'm not locking myself into something, it's hobby stuff.
<shevy> I do too
<pipework> Nilium: the things you produce are.
<dseitz> Not sure why I would not want her to have an opinion lol
<bnagy> Nilium: you're the one with the strong opinions about jruby in general and the FFI project in general
ecualombian has quit [Remote host closed the connection]
<bnagy> I was just pointing out that they're baseless
<pipework> dseitz: What if she agrees with you though?
<bnagy> I don't really care what you do
cj3kim has quit [Read error: Connection reset by peer]
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
<Nilium> I said I have strong opinions about jruby because the phrasing sounded funny to me. -_-
<Nilium> I do not actually have strong opinions about jruby.
<Nilium> I just care about whether C extensions are supported.
<dseitz> pipework: Occasionally we agree on things hehehe
cj3kim has joined #ruby
<pipework> Ignorance comes in, silly opinions come out, you can't explain that.
<shevy> just stop typing pipework :)))
vlad_starkov has joined #ruby
<shevy> Nilium has strong opinions too, so what!
<shevy> he prefers C over java, can you fault him for that?
<pipework> shevy: Have you ever considered drinking your weight in bleach? :D
<bnagy> I mean, C extensions are the biggest thing holding MRI perf back, tbh
<Nilium> As for the things I produce, they can be ported to other stuff if I need to since they're all MRI C extensions that wrap other C APIs, so it's not a huge issue.
<Nilium> There's no reason to port them though.
Hobogrammer has quit [Write error: Connection reset by peer]
<shevy> pipework hmm no but there are some great drinks out there
<pipework> shevy: I'm sure!
Hobogrammer has joined #ruby
<bnagy> I bet the yarv guys would looove to kill em
<shevy> chocolate liqueur
<Nilium> If they do, then I expect there'll be a standard library alternative by then.
<Nilium> Y'know, like Fiddle.
ukd1 has quit [Ping timeout: 251 seconds]
kennym has joined #ruby
<shevy> Fiddle as a name does not inspire great confidence
<bnagy> nor does the ruby stdlib
<shevy> lol
<Nilium> Because the name's what matters -_-
<bnagy> a lot of that stuff is just awful
<Nilium> Can we collectively agree on a desire to push shevy into a meat grinder?
olivier_bK has quit [Ping timeout: 246 seconds]
<shevy> :(
<bnagy> huge sections of it are used by basically nobody because the gem alternatives are better
<Nilium> It needs a good stripping, but that's not really relevant to whether or not there should be a standard library alternative to C extensions.
<bnagy> but I guess that's all politics :/
<shevy> oh speaking of gem... I found out yesterday that the debian-ruby at work has readline support, which made me very happy. cursor up key works for history on my windows machine there \o/
<shevy> and tab completion
<shevy> good stripping is always good
<Nilium> The main important thing to me right now is that I got to grab the gui gem name, so at least I get to lock that one up for a while
<pipework> What is this silly named fiddle thing?
<bnagy> gemsquatting!
<bnagy> pipework: the child of DL, afaik
jprovazn has joined #ruby
<pipework> bnagy: DL?
<Nilium> It's not squatting, I am actually working on a gem
speakingcode has joined #ruby
<bnagy> DL died because it just never worked, ever
<shevy> bnagy dunno if it is politics, there is this huge inertia to overcome to get to change anything... optparse will probably be in there for the next 15 years ...
<Nilium> Far as I know, it's just DL renamed.
<Nilium> With patches.
<bnagy> yeah for linking to binary libs
<shevy> whoever came up with end.parse!(ARGV) should be killed
<centrx> shevy, Don't you remember? It was you.
pigzzcanfly has joined #ruby
ukd1 has joined #ruby
<shevy> centrx NEVER! using ARGV directly like that is so wrong
<Nilium> I suspect Matz is going to be another problem for MRI, but he's weird.
<benzrf> shevy: i feel like youve said that before
<shevy> yeah
<shevy> it makes me angry
<benzrf> what's DL
<Nilium> He seems opposed to threads, and that's not a good sign
chipotle has quit [Quit: cya]
<shevy> matz is always right
dingus_khan has joined #ruby
<benzrf> oh man is matz as lame as gvr
<pipework> I think that choosing to have a GVL is going to hold cruby back indefinitely.
<benzrf> cruby?
ukd1 has quit [Client Quit]
<bnagy> this iw what I was saying before. What's the #1 reason to keep the GIL?
<pipework> bnagy: It's a GVL
SteveBenner09 has joined #ruby
<centrx> Makes threading implementation easier
<pipework> The VM is what's locked around, not the interpreter.
zigomir has joined #ruby
<bnagy> same same
<pipework> Only in the same way that Ruby is just C with syntax sugars.
<bnagy> centrx: right, and the issue with unlocking threading is basically cexts
SteveBenner09 has quit [Client Quit]
<Nilium> The issue with unlocking them is C extension authors not being safe, it's not the existence of C extensions
<bnagy> which is also why jruby doesn't support cexts, and taadaa has true parallel threads
<Nilium> I believe the Rubinius folks have covered this ground before.
<pipework> Mmm, real threads without locks around the VM...
<pipework> Nilium: JRuby is older, I believe.
vlad_starkov has quit [Remote host closed the connection]
centrx has quit [Quit: Leaving]
andy___ has joined #ruby
andy___ is now known as Guest83799
<Nilium> No, I mean they've gone over the whole global lock vs. cexts thing before
<Nilium> In a blog post.
cj3kim has quit [Remote host closed the connection]
<Nilium> Might've also been in an interview. I forget, it's been a while since I read it.
<pipework> Ah, and nutter talks about it.
<pipework> While I admire many of the cruby core contributors, JRuby is just too awesome for me to not love.
<Nilium> I consider them mildly insane because of the Rubinius X stuff, but that's another issue.
<benzrf> cruby?
dingus_khan has quit [Remote host closed the connection]
<benzrf> isnt it yarv?
<Nilium> JRuby is certainly awesome at what it does.
cloud|nix has quit [Quit: Ex-Chat]
<pipework> Quite a few people refer to it as cruby.
<bnagy> well to me yarv is just an ongoing research project. They're having fun and all, and they're the reference impl
workmad3 has quit [Ping timeout: 245 seconds]
<Nilium> I call it MRI even though that's actually probably inaccurate now.
<bnagy> but it's kind of the worst interpreter available
<pipework> bnagy: What about the .NET one? :D
<Nilium> Isn't that one dead?
axsuul has joined #ruby
<bnagy> yeah years dead
<bnagy> kind of sadly, tbh
<Nilium> Or at least in some sort of weird stasis due to lack of maintainers, I think.
dukz has quit [Remote host closed the connection]
<bnagy> I could really use that for windows work :(
havenwood has joined #ruby
claymore has joined #ruby
dukz has joined #ruby
<Nilium> IronPython seems to occasionally goes through periods of being mostly dead just 'cause open source for .NET stuff is kind of lacking
<Nilium> *open source enthusiasm
decoponio has joined #ruby
Guest83799 has quit [Ping timeout: 260 seconds]
<pipework> Jython got sponsored a while back.
<Nilium> Oooo
havenn has joined #ruby
<pipework> But I mean, who wants to use a language with crappy lambdas on a VM that just got worthwhile lambdas?
<benzrf> what's with 'iron' for .net?
<Nilium> I do. Android's crappy awful lousy VM doesn't support 'em.
<benzrf> why is iron the Accepted Prefix
<Nilium> The jerks.
<benzrf> pipework: i think you mean benzrf o:
<pipework> bw_: ^
<bnagy> benzrf: ^^ ;)
<pipework> bnagy: Sorry bruv
<Nilium> I think IronPython started it and IronRuby just followed suit 'cause it was a way of signalling "We're .NET too!"
einarj has joined #ruby
<bnagy> anyway .net is a pretty good IL, and the windowsy specific stuff is useful, you know, if you have to windows
einarj has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 260 seconds]
<dseitz> The DLR was an interesting experiment. MS was attempting to attract developers to their platform again.
einarj has joined #ruby
<dseitz> They released each project at OSCON and RubyForge, but they failed miserbly
<bnagy> LLVM might not be as good, but the ecosystem is fricking awesome
havenn has quit [Ping timeout: 265 seconds]
burlyscudd has joined #ruby
cj3kim has joined #ruby
<dseitz> Cobra.NET is where it's at
basso has joined #ruby
supersym has joined #ruby
basso_ has quit [Ping timeout: 245 seconds]
SteveBenner09 has joined #ruby
jgrevich has quit [Quit: jgrevich]
pigzzcanfly has quit [Remote host closed the connection]
jeanlinux has joined #ruby
rootshift has joined #ruby
pigzzcanfly has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
burgess has joined #ruby
waheedi has quit [Quit: Waheedi]
joelroa has joined #ruby
ianfleeton has joined #ruby
vlad_starkov has joined #ruby
[gmi] has joined #ruby
jeanlinux has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
tylersmith has joined #ruby
jimeh has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
chipotle has joined #ruby
joelroa has quit [Ping timeout: 241 seconds]
rgoodwin has quit [Ping timeout: 272 seconds]
rtlong has quit [Ping timeout: 245 seconds]
wuest has quit [Ping timeout: 265 seconds]
zigomir has quit [Read error: Connection reset by peer]
PhilK has quit [Ping timeout: 272 seconds]
benzrf has quit [Quit: zz]
greenarrow has joined #ruby
camilasan has joined #ruby
zigomir has joined #ruby
sk87 has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 251 seconds]
JustMozzy has joined #ruby
jhass|off is now known as jhass
von____ has quit [Quit: Updating details, brb]
Synthead has quit [Ping timeout: 240 seconds]
mehlah has quit [Client Quit]
von____ has joined #ruby
von____ is now known as vcoinminer
wuest has joined #ruby
sassamo has joined #ruby
dingus_khan has joined #ruby
jimeh has joined #ruby
rtlong has joined #ruby
PhilK has joined #ruby
rgoodwin has joined #ruby
blaxter_ has joined #ruby
Ariadeno has joined #ruby
<diegoviola> would you guy believe this shit? https://gist.github.com/anonymous/9088229
<diegoviola> html inside migrations
<dseitz> very php-ish of them
guardianx has joined #ruby
Advocation has joined #ruby
<pipework> diegoviola: Don't cross-post channels without announcing the cross-post at least.
<diegoviola> ok
sassamo has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
joonty has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<diegoviola> pipework: you could also use nicer language
<diegoviola> 05:45:12 pipework | diegoviola: Just go fucking work.
<pipework> diegoviola: I use sentence enhancers.
Ch4rAss` has joined #ruby
Ch4rAss` has quit [Quit: Reconnecting]
bal has quit [Quit: bal]
banister has joined #ruby
Ch4rAss has joined #ruby
bal has joined #ruby
dawkirst has joined #ruby
<pipework> You're welcome to ignore me though. You did post that same chunk of code yesterday when you were complaining about the same thing. And you did come pandering for advice on how to do your job when you did the same yesterday as well. One would think there comes a time when it's appropriate to just "Program, motherfucker."
dangerousdave has joined #ruby
philcrissman has quit [Read error: Connection timed out]
RoryHughes has joined #ruby
philcrissman has joined #ruby
evenix has quit [Remote host closed the connection]
dubios has quit [Excess Flood]
speakingcode has quit [Ping timeout: 265 seconds]
<diegoviola> pipework: yeah ok, please mind your language though
evenix has joined #ruby
blackmesa has joined #ruby
dubios has joined #ruby
<pipework> diegoviola: I do mind it. I mean every damn word.
SteveBenner09 has quit []
alexherbo2 has joined #ruby
endash_ has quit [Quit: endash_]
tolstoi has quit [Ping timeout: 245 seconds]
popl has joined #ruby
popl has joined #ruby
<diegoviola> and i don't give a shit what you have to say, stop talking to me already
<pipework> diegoviola: Wonderfully descriptive language!
evenix has quit [Ping timeout: 245 seconds]
obs has joined #ruby
<diegoviola> sorry but i wasn't the one offending first
<pipework> Are you really sorry?
<pipework> For what it's worth, my language was not designed to offend you, anymore than your clamoring for attention was designed to offend me.
mengu has quit [Read error: No route to host]
Macaveli has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
dukz has quit [Read error: Connection reset by peer]
<diegoviola> ok english is not my first language and things like "fucking" and "motherfucker" are a little offensive
dukz has joined #ruby
<diegoviola> rude
nvrch has joined #ruby
<diegoviola> but i get this is not the channel to discuss that either, so sorry if i was annoying
Lewix has joined #ruby
funburn has joined #ruby
<pipework> I regret that you were offended by my choice in language. In the future, I implore you to selectively ignore anything I might say that would offend your sensibilities, even though you only quoted half of what I said to you.
<diegoviola> no problem
<diegoviola> sorry about my use of bad language also
fluve has joined #ruby
TMM has quit [Ping timeout: 265 seconds]
<pipework> I think it was use of great language. A good use of great language, even.
<diegoviola> i don't think so, i don't like being rude and i regret it
olivier_bK has joined #ruby
<diegoviola> so sorry about that
<dingus_khan> ?
<pipework> You may feel as if you were rude, but I was not offended nor do I consider it rude to use English words unless one means them in a rude manner, but I didn't read into your message in a way that caused me to think you intended to be rude. So no harm no foul?
RoryHughes has quit [Remote host closed the connection]
roolo has joined #ruby
RoryHughes has joined #ruby
<diegoviola> ok
timonv has joined #ruby
havenwood has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
MrV_ has joined #ruby
<pipework> shevy: This you? http://i.imgur.com/4JTWQ.jpg
timonv_ has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
funburn has quit [Quit: funburn]
Al___ has joined #ruby
burlyscudd has joined #ruby
JBreit has joined #ruby
joelroa has joined #ruby
burlyscudd has quit [Ping timeout: 241 seconds]
TMM has joined #ruby
TMM has quit [Client Quit]
TMM has joined #ruby
vlad_starkov has joined #ruby
mengu has joined #ruby
ephemerian has joined #ruby
marr has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
deadlock has joined #ruby
kimsebub_ has quit [Remote host closed the connection]
francisfish has joined #ruby
makara has joined #ruby
mikecmpbll has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mikepack has joined #ruby
hiall has quit [Quit: hiall]
joelroa has quit [Ping timeout: 246 seconds]
elaptics is now known as elaptics`away
dzhulk has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
claymore has quit [Quit: Leaving]
sassamo has joined #ruby
greenarrow has quit [Quit: 500]
m1lt0n has joined #ruby
rippa has joined #ruby
ghr has joined #ruby
marcdel_ has quit []
ghr has quit [Max SendQ exceeded]
sassamo has quit [Ping timeout: 245 seconds]
greenarrow has joined #ruby
shime has joined #ruby
ikaros has joined #ruby
timonv_ has quit [Remote host closed the connection]
relix has joined #ruby
Zunonia has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
elaptics is now known as elaptics`away
JustMozzy has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
DaniG2k has joined #ruby
sn0wb1rd has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fluve has quit []
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
cj3kim has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
cj3kim has joined #ruby
alexherbo2 has joined #ruby
hiall has joined #ruby
top4o has quit [Read error: Operation timed out]
rdark has joined #ruby
lemonsparow has joined #ruby
lemonsparow is now known as lemonsparrow
hiall has quit [Client Quit]
nomenkun has joined #ruby
sk87 has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
karupanerura is now known as zz_karupanerura
starfox21 has quit [Quit: starfox21]
fgo has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
sk87 has joined #ruby
rdark has quit [Quit: leaving]
sk87 has quit [Client Quit]
sk87 has joined #ruby
ghr has joined #ruby
ghr has quit [Max SendQ exceeded]
kitak has quit [Remote host closed the connection]
ghr has joined #ruby
aaronmcadam has joined #ruby
rdark has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
Al___ has quit [Ping timeout: 240 seconds]
rdark has quit [Client Quit]
rdark has joined #ruby
hamakn has quit [Remote host closed the connection]
timonv has joined #ruby
mercwithamouth has joined #ruby
chihhsin has quit [Quit: leaving]
Mongey has joined #ruby
nihils is now known as nichtdiebohne
yfeldblum has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
lll has joined #ruby
<lll> hello all
rdark has joined #ruby
prc has joined #ruby
<lll> I am coming to ruby from the world of strongly typed languages
<lll> this is my first experience working with scripting languages, if we exclude javascript
<lll> now my question is the following
<lll> if I define a method in the Team Model class
<lll> can I call in a static fashion like so -> Team.custom_method(params)
<lll> or must I first instantiate the Team and then call it on it?
<lll> in other words, does ruby differentiate between object methods and class methods?
<Nilium> If you define it as a singleton method, you can call it like that.
rdark has quit [Client Quit]
ghr is now known as garethrees
<jhass> lll: short answer yes, def foo is an instance method, def self.foo is a class method
<Nilium> Also e.g., class Foo ; class << self ; def foo ; "bar" ; end ; end ; end
rdark has joined #ruby
rdark has quit [Client Quit]
garethrees is now known as ghr
<jhass> lll: the longer answer is that both are instance methods, the later being defined on your classes singleton class
TripTastic has joined #ruby
<diegoviola> what do you guys use for web development in ruby?
<Nilium> class << self basically just opens the singleton class for you to mess with
klaut has joined #ruby
<tobiasvl> lll: ruby differentiates between instance methods and class methods, yes. but in ruby classes are objects too (of the class Class). so a class method is a singleton method on the class object.
<diegoviola> is everyone using rails or something else?
<Nilium> I don't use Ruby for web development
<lll> I see
<tobiasvl> diegoviola: i use sinatra
<lll> thanks for the feedback fellows
<lll> appreciate it
rdark has joined #ruby
rdark has quit [Client Quit]
<diegoviola> well what is everyone using?
<Nilium> I use it for horrible, horrible things.
<Nilium> Like OpenGL.
<certainty> diegoviola: i use bare sockets
<diegoviola> is sinatra ok for large applications?
<jhass> diegoviola: the appropriate tool for the task, from bare rack over sinatra to rails
<diegoviola> i see
Jb_ has left #ruby [#ruby]
JBreit has quit [Ping timeout: 248 seconds]
phansch has joined #ruby
gnephiak has joined #ruby
<diegoviola> is there a guide out there how to write apps on top of rack directly?
<Nilium> Also kind of depends on what your idea of "large applications" is, really.
<diegoviola> always wanted to know how to
<pontiki> Nilium writes web apps by staring hard at the server
<Nilium> I write web apps by not writing web apps and instead writing client-side tools to generate static HTML and then I just rsync that.
<pontiki> read teh rack readme, that's actually a great place to start
<Nilium> Because I hate servers.
rdark has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
<diegoviola> ty
<pontiki> oo, are you writing static generators, Nilium ?
<Nilium> I also hate net coding, but that's probably just me.
epireve has joined #ruby
<pontiki> it's one of my current fascinations
<Nilium> My blog is static HTML, so yes
<pontiki> err..
<certainty> mine too
<pontiki> mine are too
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium> I'm slowly rewriting the horrible gem I wrote to generate it
chihhsin has joined #ruby
<pontiki> but i'm using someone else's code to gen them
<pontiki> contributing and wotnot
<Nilium> I wrote my own because I was too lazy to learn to use Jekyll.
<Nilium> I am an exceptionally productive lazy person.
<pontiki> the best always are
kaspergr_ has joined #ruby
<pontiki> i am liking middleman
<pontiki> and i spend a lot of time with jekyll
<pontiki> and helping people recover from using octopress, it seems....
<Nilium> I was actually fiddling with this slate thing that uses middleman today, I need to look into that some more
mengu has quit [Remote host closed the connection]
shime has quit [Ping timeout: 245 seconds]
<Nilium> slate's actually not useful for me, it turns out, but it's a really neat idea
<Nilium> I think I tried to set up octopress once and ended up screaming at my computer
mehlah has joined #ruby
<pontiki> i cooked up an rss reader that's a static site
<pontiki> that is apropriate
<Nilium> Metaphorical screaming, that is -- I don't like screaming in real life.
burlyscudd has joined #ruby
<diegoviola> what do you guys recommend for refactoring? i have a codebase that was coded in rails 2.x and we are migrating to rails 3.2.x but the app is non-rest and i'm not even sure where to start
<diegoviola> i want to move it to rest
<Nilium> Not very fond of my voice when it's above normal speaking levels. It's pretty weird.
<Nilium> Like apparently it turns into this booming godlike voice and it scares the neighbors
mehlah_ has joined #ruby
mehlah_ has quit [Client Quit]
<diegoviola> i think i will just rewrite this whole thing
<diegoviola> much easier
<Nilium> Refactoring: grep and then very carefully edit the code.
<certainty> diegoviola: be careful with that
<diegoviola> certainty: careful with what exactly?
<certainty> diegoviola: wanting to rewrite it
hiall has joined #ruby
dzhulk has quit [Quit: Leaving.]
<certainty> it's tempting but it often isn't what you want
<Nilium> I should go brush my teeth..
* Nilium wanders off to do that.
<pontiki> unless you wrote the old one yourself
<diegoviola> pontiki: i didn't wrote the old one myself
<pontiki> then the old one becomes just the learning platform for the real one
<diegoviola> sure
<pontiki> yeah, then be careful
codenapper has quit [Read error: Connection reset by peer]
<diegoviola> "don't fix what isn't broken comes to mind"
<pontiki> it quickly devolves to shaving a herd of yaks
<diegoviola> but this app looks broken
<Nilium> Also don't optimize without data.
<Nilium> Lots of things in Ruby look broken.
<pontiki> well, here's the question: when the users use it, what doesn't work for them? what bugs show up that require fixing?
<diegoviola> why is that
<pontiki> etc etc
<Nilium> It's just kind of how Ruby looks all the time.
<certainty> hah!
<diegoviola> Nilium: is there any fundamental reasons to that though?
nism has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
<Nilium> Ruby coders are ex-perl coders and sometimes they do things that at first glance don't make sense and I'm obviously just making this up
mehlah has quit [Ping timeout: 248 seconds]
<Nilium> The only programming language that looks broken all the time is INTERCAL.
arctaruz has joined #ruby
* pontiki goes to look
<diegoviola> does that have anything to do with it?
<Nilium> The point of the joke is just that looking broken doesn't necessarily mean it is
dzhulk has joined #ruby
<pontiki> oh, hey! another EPL
<certainty> diegoviola: it's just that the desire to rewrite a codebase often come from the fact that one did not fully grok it
<diegoviola> certainty: sure
elaptics is now known as elaptics`away
<diegoviola> i agree
<certainty> beware fo the grand refactorings
<certainty> they almost never work as expected
<Nilium> So, like they've been saying, make sure you're doing it for a good reason
lkba has quit [Ping timeout: 252 seconds]
<diegoviola> but the thing is the code in this app looks really broken, it was written in Rails 2.x and it's not restful at all, links look like this: /show?collection_id=20&ol=l_hd_c_link
<diegoviola> very php-like
<diegoviola> rails 4.x is all about REST, etc now
<Nilium> So?
<Nilium> Honestly, is that a big deal?
<diegoviola> probably not, but i want to make it more up to date with standards
<pontiki> wow, 1972! i wonder why i don't remember it?
Giorgio has joined #ruby
<Nilium> I'm not a web dev, so is it just mandatory to follow trends?
vlad_starkov has joined #ruby
<pontiki> err
<diegoviola> the thing is that this app doesn't have any kind of tests at all and if i change anything the whole thing breaks
<pontiki> trends are trends because ppl follow them
<Nilium> pontiki: INTERCAL?
<pontiki> mandatory? no
<pontiki> Nilium: ya
<Nilium> It's not a real language, or at least wasn't originally
<pontiki> yus, Nilium, hence my EPL comment above
<Nilium> I think someone might have tried to implement it, but it was originally devised as a joke
<Nilium> So that might be why
<diegoviola> i guess i'll just forget it, i don't think it's worth my time
<diegoviola> :(
<pontiki> or the CS dept was studiously trying to be all serious n shit
<Nilium> I guess it depends on how far elaborate programming jokes travel
joelroa has joined #ruby
<Nilium> diegoviola: Whether it's worth your time or not is entirely up to whether it's going to improve the software, and not in a hand-wavey "it's RESTful now!" way.
<pontiki> diegoviola: this is a convo you need to have with your bosses. rewriting an app is a business decision if it's for a business
<diegoviola> why is updating code to a new rails version such a pain in the a**
<Nilium> Like there have to be really serious huge improvements to justify a complete reubilt
<Nilium> *rebuild
<Nilium> Holy crap fingers
<Nilium> Because Rails hates you and everything you love.
<Nilium> That one's not a joke.
<pontiki> s/rails/software/
<Nilium> It is an inherently mean and evil-spirited framework.
<Nilium> That too, but Rails in particular.
<diegoviola> the other programmer is fine with updating the rails version
<pontiki> nar
<diegoviola> he actually is the one who started doing that
rdark has quit [Quit: leaving]
<pontiki> every framework and language major version upgrade entails much hard and long work
<Nilium> Except Python 3.
noop has joined #ruby
<diegoviola> this app started on rails 1.x
<pontiki> i don't python
rdark has joined #ruby
<diegoviola> now they want to switch to 3/4
<Nilium> With Python 3, I have no idea why people are complaining.
<Nilium> Were there that many braceless print statements?
<pontiki> but making a generl statement as i did is not intended to be aboslute
mikepack has joined #ruby
<diegoviola> would you guys bother with upgrading?
<pontiki> diegoviola: that's a case-by-case decision
<diegoviola> sure
<Nilium> I won't answer that 'cause I am not a rails person and have an inherent dislike of it
<diegoviola> i see
<diegoviola> what you don't like about rails exactly? everything?
joelroa has quit [Ping timeout: 252 seconds]
<pontiki> if i had a client with a 2.x rails app, that wanted to upgrade to 3.x or 4.x, i'd ask similar questions as above
<pontiki> how much is it costing them currently to run a 2.x app?
vlad_starkov has quit [Ping timeout: 252 seconds]
<pontiki> what with bug fixing, feature enhancement, etc
<certainty> Nilium: who would've guessed that
anarang has quit [Ping timeout: 240 seconds]
<pontiki> and weigh that against possible upgrade paths
mercwithamouth has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
sheepman has joined #ruby
sed_life_better has quit [Read error: Operation timed out]
jlebrech has joined #ruby
aryaching has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
codenapper has joined #ruby
shime has joined #ruby
<sheepman> I'm struggling to write the equivalent in ruby of this php line: base64_encode(serialize(array("1"=>"Yahoo")));
<sheepman> my result is never the same output
lolmaus has joined #ruby
<certainty> sheepman: what's serialize do?
sassamo has joined #ruby
<sheepman> apparently it "Generates a storable representation of a value."
<certainty> some kind of marshalling?
cj3kim has joined #ruby
<pontiki> it is an internal php string representation, like marshal
<sheepman> the output of the PHP is this: "YToxOntpOjE7czo1OiJZYWhvbyI7fQ=="
<sheepman> if that helps
<pontiki> no, that's the base64 encoding
yasushi has joined #ruby
<pontiki> look at just the output of serialize
JohnBat26 has joined #ruby
<certainty> >> require 'base64'; Base64.decode64("YToxOntpOjE7czo1OiJZYWhvbyI7fQ==")
<eval-in> certainty => "a:1:{i:1;s:5:\"Yahoo\";}" (https://eval.in/103105)
<sheepman> whats marshalling? I guess its time for me to read
<pontiki> but don't try to emulate that in ruby
<pontiki> ri Marshal
apeiros has quit [Remote host closed the connection]
<certainty> ah that's what it looks like.
apeiros has joined #ruby
<pontiki> yep
arctaruz has left #ruby ["Leaving"]
<certainty> sheepman: what are you trying to do, maybe there is another way
<pontiki> a:1 menas an array of length 1
<sheepman> ah ok
<pontiki> i means an integer, value of 1
<pontiki> s, string, length 5, content
<sheepman> im writing a script to interact with an API but the only examples are PHP
<sheepman> the API is PHP too which probably doesn't help
<pontiki> unless the api talks a more universal language
<pontiki> xml, json, plain ascii text...
sassamo has quit [Ping timeout: 252 seconds]
<sheepman> yeah i think its a mix of XML and JSON, I'm gonna do some more digging for now. thanks guys
dubsteph has joined #ruby
[OpTiC]IRCman has joined #ruby
ecualombian has joined #ruby
ecualombian has quit [Remote host closed the connection]
<Nilium> diegoviola: I don't like that Rails hogs the Ruby name.
<Nilium> That is my main beef with it.
<certainty> understandable
<diegoviola> yeah i can see that
blaxter_ has quit [Read error: Operation timed out]
<Nilium> Jerks and their popular thing taking over the name of the language.
<Nilium> Who do they think they are?
aryaching has quit [Read error: Connection reset by peer]
<matti> ;]
<certainty> most of the time it's called only 'rails' though
<Nilium> Also because of it I get annoying recruiters pestering me about Rails stuff just because I do Ruby stuff.
<Nilium> So I blame them for that too.
<Nilium> Not fair, but oh well.
aryaching has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<diegoviola> is that why everyone thinks ruby == rails?
<Nilium> Rails's popularity is mainly that issue.
<certainty> diegoviola: probably, that's part of the confusion
ecualombian has joined #ruby
<diegoviola> sue dhh
<Nilium> Rails uses Ruby and people in management don't know the difference so they just assume Rails is Ruby.
<Nilium> And management idiocy leads to HR idiocy
cj3kim has quit [Ping timeout: 245 seconds]
<pontiki> i don't blame rails for recruiters lack of understanding
<Nilium> And HR idiocy leads to annoying recruiters
AlexRussia has joined #ruby
<Nilium> In reality, it's not even remotely rails's fault
<RubyPanther> diegoviola: only for small values of "everyone"
<pontiki> all most of the manage to do is match buzzwords, and most of them have a bit of software to do that for them
<Nilium> Rails was successful and it did what it was supposed to do.
kitak has joined #ruby
<Nilium> Which is why because I have Ruby repos I'm automatically flagged as railsbait.
<Nilium> I'm coining that term. You heard it here first.
<pontiki> "99% of organizational problems is managerial" -- Dr. Deming
mengu has joined #ruby
<Nilium> Anyone says otherwise, I'll send some boys around once I find 'em.
<Nilium> Maybe I should hire managers to find me some boys.
<certainty> the Deming Wheel comes to mind
<pontiki> same guy
<certainty> i see
ecualombian has quit [Remote host closed the connection]
anarang has joined #ruby
<pontiki> pushed out of US because his ideas blamed the people responsible for implementing them, went to Japan, who listened, and turned Japan and Asia into a manufacturing powerhouse
relix has joined #ruby
kaliya has joined #ruby
<Nilium> Never heard of him 'til now. Interesting guy.
<Nilium> Well, going by the Wikipedia page, anyway.
<pontiki> he was
RoryHughes has quit []
dzhulk has quit [Quit: Leaving.]
raphaelivan has joined #ruby
krzkrz has joined #ruby
krz has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 260 seconds]
jlebrech has quit [Quit: Konversation terminated!]
jhass is now known as jhass|off
blaxter_ has joined #ruby
RoryHughes has joined #ruby
Advocation has quit [Ping timeout: 246 seconds]
sensen has quit [Quit: leaving]
blaxter_ has quit [Client Quit]
heftig has joined #ruby
blaxter_ has joined #ruby
fantazo has joined #ruby
lll is now known as _lazarevsky
himsin has joined #ruby
leonidlm has quit [Ping timeout: 245 seconds]
blaxter_ has quit [Client Quit]
blaxter_ has joined #ruby
blaxter_ has quit [Client Quit]
yasushi has quit [Remote host closed the connection]
blaxter_ has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
blaxter_ is now known as blaxter
Matriks has quit [Remote host closed the connection]
lemonsparrow has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
gbt has joined #ruby
Anderkent has joined #ruby
roolo has quit [Quit: Leaving...]
burlyscudd has joined #ruby
kaspergr_ has quit []
banister has joined #ruby
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D]
Lewix has quit [Remote host closed the connection]
_HolyCow1 has joined #ruby
_HolyCow2 has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
JasmeetQA1 has joined #ruby
JasmeetQA has quit [Ping timeout: 240 seconds]
_HolyCow has quit [Ping timeout: 272 seconds]
anarang has quit [Ping timeout: 252 seconds]
ianfleeton has quit [Quit: ianfleeton]
newleaf has joined #ruby
_HolyCow1 has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
vlad_starkov has joined #ruby
[OpTiC]IRCman has quit [Quit: Byebye skids...]
oso96_2000 is now known as oso|away
phutch1ns has joined #ruby
_bart has joined #ruby
ianfleeton has joined #ruby
_HolyCow2 has quit [Read error: Connection reset by peer]
joelroa has joined #ruby
JasmeetQA has joined #ruby
mikepack has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
plexus_ has joined #ruby
noop has quit [Ping timeout: 272 seconds]
JasmeetQA1 has quit [Ping timeout: 272 seconds]
mikepack has quit [Read error: Connection timed out]
<olivier_bK> with ruboto and gosu can we create a game for android ?
_HolyCow has joined #ruby
deadlock has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
shaunbaker has quit [Remote host closed the connection]
sassamo has joined #ruby
roolo has joined #ruby
claymore has joined #ruby
himsin has quit [Quit: himsin]
sassamo has quit [Ping timeout: 260 seconds]
_bart has quit [Remote host closed the connection]
eka has joined #ruby
mengu has joined #ruby
aryaching has joined #ruby
ianfleeton has quit [Quit: ianfleeton]
monkegjinni has joined #ruby
monkegji_ has joined #ruby
Ivo has left #ruby ["WeeChat 0.4.3"]
noop has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
dukz has quit [Client Quit]
dubsteph has quit [Ping timeout: 246 seconds]
JasmeetQA has quit [Ping timeout: 260 seconds]
zeeraw has joined #ruby
<Mon_Ouie> Gosu won't run on Android, and not on Ruboto (which is derived from JRuby which doesn't support C extensions)
shaunbaker has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Mon_Ouie> But you could use the GL API from Android
sk87 has joined #ruby
poulson has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Speed has joined #ruby
_bart has joined #ruby
angusiguess has joined #ruby
evenix has joined #ruby
RoxasShadowRS has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Hanmac1 has joined #ruby
evenix has quit [Ping timeout: 272 seconds]
burgess has quit [Quit: ^zzz]
goganchic has joined #ruby
roolo has quit [Quit: Leaving...]
Hanmac has quit [Ping timeout: 260 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
hamakn has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
PLejeck has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
aryaching has joined #ruby
PLejeck has joined #ruby
yfeldblum has joined #ruby
<sheepman> certainty: turns out there is a gem that helped with my problem earlier - php-serialize - https://github.com/jqr/php-serialize
<RubyPanther> olivier_bK: yes, Ruboto works fine for games
m00nlight has quit [Quit: Konversation terminated!]
roolo has joined #ruby
<olivier_bK> RubyPanther, for mobile phone
<olivier_bK> ?
<RubyPanther> where else are you running android? your toaster?
<RubyPanther> I actually run it on a tablet, and use a dumb phone
rippa has joined #ruby
yfeldblu_ has joined #ruby
Kneferilis has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
sichardrtallman has joined #ruby
apeiros has quit [Remote host closed the connection]
yeticry_ has quit [Ping timeout: 272 seconds]
RoryHughes has quit []
apeiros has joined #ruby
yeticry has joined #ruby
sichardrtallman has left #ruby [#ruby]
Fractional has joined #ruby
ahawkins has joined #ruby
<Fractional> Hello, could anyone here help me implement collisiion detection in Ruby?
bhaak has quit [Read error: Operation timed out]
olivier_bK has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 252 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
burlyscudd has joined #ruby
bhaak has joined #ruby
dingus_khan has quit [Remote host closed the connection]
Xeago has joined #ruby
monkegji_ has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
<diegoviola> why is ruby better than perl in your opinion? not trying to start a flamewar or anything
burlyscudd has quit [Read error: Operation timed out]
raphaelivan1 has joined #ruby
raphaelivan has quit [Quit: Leaving.]
bandsaw1961 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
dubsteph has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<toretore> diegoviola: it isn't. it's different
<diegoviola> i see
vlad_starkov has joined #ruby
MrV_ has quit [Quit: MrV_]
koell has joined #ruby
<pontiki> collision detection of *what*?
popl has quit [Read error: Operation timed out]
<pontiki> cosmic ray particles?
joelroa has joined #ruby
<diegoviola> ruby seems to have more in common with perl than python, doesn't it
yacks has quit [Read error: Operation timed out]
aaronmcadam has quit [Quit: Leaving...]
mikepack_ has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
thumpba has joined #ruby
<Fractional> pontiki: Collision of a 2D platformer, this is my attempt. I can't get it working.
iMe has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
bandsaw1961 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iMe has joined #ruby
sichardrtallman has joined #ruby
RoryHughes has joined #ruby
mikepack_ has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 260 seconds]
mikepack has quit [Ping timeout: 246 seconds]
thumpba has quit [Ping timeout: 252 seconds]
DrOwl has quit [Read error: Operation timed out]
sassamo has joined #ruby
blackmesa has joined #ruby
shaunbaker has joined #ruby
<sichardrtallman> hello there, I have a question, I'm trying to get the JSON content from github api using mechanize, unfortunately after 60 requests github sets a limit for a hour, now what I'm trying to do is authenticate using a token generated on github via mechanize, but for now I'm not able to do that response is always 403... this is my code http://pastebin.com/98TMEHkY any solution?
freerobby has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
jzigmund has joined #ruby
raphaelivan1 has quit [Quit: Leaving.]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sassamo has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
heftig has quit [Quit: Quitting]
iMe has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Matriks has joined #ruby
Findegil has joined #ruby
heftig has joined #ruby
lemonsparrow has joined #ruby
<toretore> sichardrtallman: what is username and token?
aryaching has joined #ruby
<toretore> afaik, gh basic auth takes either username:password or oauth_token:x-oauth-basic
dzhulk has joined #ruby
blackmesa has quit [Remote host closed the connection]
Fractional has quit [Remote host closed the connection]
sk87 has joined #ruby
phutch1ns has quit [Read error: Connection reset by peer]
v101 has joined #ruby
v101 has left #ruby [#ruby]
<sichardrtallman> toretore: yeah basically what github needs is my username and a randomly generated token in order to extend the number of requests per hour... but even if I try with basic_auth github always gives 403
<sichardrtallman> thus I was wondering if there was something wrong with my method up there...
<toretore> there is. read my last line again
<toretore> and compare it to "username and a randomly generated token"
<lemonsparrow> can anyone help me write this function http://pastebin.com/em4PWDer
Mongey_ has joined #ruby
PLejeck has quit [Read error: Connection reset by peer]
<sichardrtallman> toretore: ouh x-oauth-basic that's what I need...
<toretore> yup
Mongey has quit [Read error: Connection reset by peer]
Mongey_ is now known as Mongey
e^0 has joined #ruby
apeiros_ is now known as apeiros
<sichardrtallman> toretore: so can I change my code like this? http://pastebin.com/ew53L7eq
maximski has joined #ruby
<toretore> sichardrtallman: should work
<sichardrtallman> ok... great now I'll have to make another 60 requests because github api status is restored :(
dblessing has joined #ruby
PLejeck has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
Slavox|AFK is now known as Slavox
tedstriker has joined #ruby
phutch1ns has joined #ruby
tedstriker has quit [Client Quit]
tyranja has joined #ruby
zegerjan has joined #ruby
sailias has joined #ruby
shime has quit [Quit: Lost terminal]
geggam has quit [Remote host closed the connection]
<pontiki> using mechanize with an api?
<toretore> a little overkill, yes
<toretore> probably an old perl programmer :P
zoscoy has joined #ruby
cj3kim has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zoscoy has quit [Client Quit]
jlebrech has joined #ruby
<sichardrtallman> toretore: lol you got the point...
Mongey has quit [Quit: Mongey]
diegoviola has quit [Quit: WeeChat 0.4.3]
yfeldblum has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
stonevil has joined #ruby
dzhulk has quit [Quit: Leaving.]
hamakn has joined #ruby
deadlock has joined #ruby
larissa has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 272 seconds]
rmorello has joined #ruby
<sichardrtallman> toretore: hmm I checked /rate_limit from github using agent.basic_auth("my token","x-oauth-basic") and the limit is always < 50 instead of 5000 :(
yfeldblum has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
lemonsparrow has quit [Quit: Page closed]
ianfleeton has joined #ruby
jkamenik has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
<roolo> Somebody experienced in spreadsheet gem?
Hanmac1 has quit [Ping timeout: 245 seconds]
<roolo> I need to get the xls directly (without file) for sinatra response
kofno has left #ruby [#ruby]
<roolo> But i am not able find some method for getting workbook content
lkba has joined #ruby
<apeiros> roolo: use StringIO
goganchic has quit []
<apeiros> (the __ in the name is actually a /, but that's not valid for gists :-S)
stonevil has quit [Quit: Computer has gone to sleep.]
jonno11 has joined #ruby
<pontiki> no subdirectories for your gist files!
stonevil has joined #ruby
JustMozzy has joined #ruby
<apeiros> also reminds me I should finally update my tabledata gem
[krisbulman] is now known as krisbulman
<pontiki> nts: peruse apeiros's gists
<apeiros> nts?
<pontiki> "Note to Self"
mark_locklear has joined #ruby
<roolo> apeiros: Looks promising, thanks
<apeiros> roolo: keep a look out for https://github.com/apeiros/tabledata - the readme doesn't reflect it, but it can be used to write spreadsheets too. it uses the spreadsheet gem under the hood.
<apeiros> for simple tabular spreadsheets, its api is a good bit easier.
stonevil has quit [Client Quit]
<apeiros> also it makes it trivial to output the same data as .csv and .xls
tacos1de has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
Kneferilis has joined #ruby
vlad_starkov has joined #ruby
SolarSailor has joined #ruby
<pontiki> apeiros: what was the use case for this? https://gist.github.com/apeiros/8190494
<apeiros> pontiki: don't remember. somebody on irc asked :)
* pontiki nods
<roolo> apeiros: Will check
stonevil has joined #ruby
SolarSailor has quit [Client Quit]
tacos1de has joined #ruby
tvw has joined #ruby
SolarSailor has joined #ruby
stonevil has quit [Client Quit]
joelroa has joined #ruby
<toretore> sichardrtallman: should be 5000.. you should check that it's actually sending the basic auth to gh
huttan has joined #ruby
DrOwl has joined #ruby
<SolarSailor> Hi guys, happy Ruby dev here. I can't seem to find an in-depth resource w/examples on Ruby 2.1. Can you point me in the direction of one, if such exists?
<toretore> you mean "what's new in ruby 2.1"?
mjs2600 has joined #ruby
sdwrage has joined #ruby
dzhulk has joined #ruby
<SolarSailor> Yes, sorry.
<toretore> just googling for "ruby 2.1" returns a lot of useful stuff
<toretore> like http://rkh.im/ruby-2.1
ecualombian has joined #ruby
yacks has joined #ruby
<sichardrtallman> toretore: well that's odd here's my code again http://pastebin.com/3qfLQwxa when I call get_content("https://api.github.com/rate_limit") still gives me {"limit"=>60, "remaining"=>20, "reset"=>1392817603} damn it!
<SolarSailor> I read that one, and it's good, but it also states: "Please be aware that yesterdays release is just a preview and all of the above is subject to change."
<sichardrtallman> toretore: oh and how can I check it?
vlad_starkov has quit [Ping timeout: 260 seconds]
<toretore> ah, i didn't even know 2.1.0 was out, so don't listen to me :P
dwo has joined #ruby
kukyakya_ has joined #ruby
joelroa has quit [Ping timeout: 248 seconds]
aryaching has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
sdwrage has quit [Client Quit]
jcs222 has quit [Quit: leaving]
ikaros has quit [Quit: Ex-Chat]
<toretore> sichardrtallman: i don't have any experience with mechanize, so i couldn't say
<SolarSailor> Haha, ok. :-)
dwo has left #ruby [#ruby]
<toretore> also, there's a jruby 9000
DrOwl has quit [Ping timeout: 252 seconds]
<sichardrtallman> toretore: oh alright nevermind do you have a better alternative to mechanize? because with curl -u from command line everyting is fine :(
ryotarai has quit [Quit: ZNC - http://znc.in]
sambao21 has joined #ruby
vic736 has quit [Quit: leaving]
<toretore> just plain old net/http is what i use most of the time
<toretore> not super elegant, but it doesn't get in my way
tkuchiki has quit [Remote host closed the connection]
<sichardrtallman> toretore: okay, thanks!
<apeiros> I use plain old TCPSocket! it's all you need!
* apeiros topper
<SolarSailor> I think that it would be great if the new Ruby released would be accompanied by e.g. a screencast or video with a walkthrough of the new features, along with a thorough written one. I would like to help, but I'm not a Ruby core dev expert, so I would probably not be the right one to do it.
<toretore> me too, sometimes
<SolarSailor> s/released/releases
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> SolarSailorMoon…
no0code has joined #ruby
<toretore> wrote my own http parser because i didn't want to add any dependencies
<no0code> hi all, sinatra question : how do i set a layout for a deeper route in sinatra? if make something like get '/admin/database/' do .... the layout.erb is not rendered
sassamo has joined #ruby
<toretore> needless to say, it sucked
<apeiros> SolarSailor: there are often quite a few writeups on the changes. could turn that into a movie?
<kukyakya_> is there any counterpart of lex&yacc in ruby?
MrV has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
<SolarSailor> apeiros: Yeah, that could be
<apeiros> toretore: I wrote one because I needed to read a multipart response
<apeiros> and somehow none of the available multipart "readers" where usable
obs has quit [Quit: Konversation terminated!]
cmoylan has joined #ruby
<toretore> i've been meaning to try https://github.com/tmm1/http_parser.rb
jetblack_ has joined #ruby
<apeiros> oh, interesting
IceyEC has joined #ruby
<toretore> there should be one http parser to rule them all
<toretore> and everyone else should just use that
angusiguess has quit [Ping timeout: 260 seconds]
kaldrenon has joined #ruby
kaldrenon has quit [Remote host closed the connection]
slowcon has joined #ruby
kaldrenon has joined #ruby
obs has joined #ruby
sassamo has quit [Ping timeout: 265 seconds]
slowcon has quit [Client Quit]
sk87 has joined #ruby
m1lt0n has quit [Quit: leaving]
aryaching has quit [Ping timeout: 240 seconds]
<sichardrtallman> toretore: good net/http works fine here's my code http://pastebin.com/inp5QQYA
<sichardrtallman> thanks for your suggestion ;)
deadlock has quit [Ping timeout: 246 seconds]
bluenemo has joined #ruby
sparrovv has joined #ruby
jwest has quit [Quit: WeeChat 0.4.1]
shawnjgoff has joined #ruby
tungd has joined #ruby
aryaching has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DrOwl has joined #ruby
chrisseaton has joined #ruby
burlyscudd has joined #ruby
sikor_sxe has joined #ruby
jkamenik has quit [Read error: No route to host]
<sikor_sxe> hello, how can chain map/reduce calls in ruby?
dzhulk has quit [Quit: Leaving.]
<sikor_sxe> (values.slice(4, 3).map { |v| v[:is_currency?] } <- then add .reduce :& to the result
chrisseaton has quit [Read error: Connection reset by peer]
jsilver_ has joined #ruby
MrV has quit [Quit: MrV]
claymore has quit [Ping timeout: 246 seconds]
jsilver has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
jerius has joined #ruby
chrisseaton has joined #ruby
obs has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
danshultz has joined #ruby
claymore has joined #ruby
tylershipe has joined #ruby
<toretore> sichardrtallman: :thumbsup:
obs has joined #ruby
jwest has joined #ruby
stryek has joined #ruby
<Mon_Ouie> sikor_sxe: Well that example looks like it should really be written with #all?.
GreatSUN has joined #ruby
<GreatSUN> hi all
<Mon_Ouie> Other than that, just as you said it: values.slice(4, 3).map { |v| v[:is_currency?] }.reduce :&
DrOwl has quit [Ping timeout: 242 seconds]
zegerjan has quit [Ping timeout: 260 seconds]
<GreatSUN> one question, while I think that this might not be possible:
jetblack has quit [Quit: leaving]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
<GreatSUN> I have a module with a submodule which contains methods to be static in class after inclusion
dx7 has joined #ruby
cek has joined #ruby
<cek> So I opened builtin RSS library documentation.
<cek> And found out there was none.
<GreatSUN> it also contains methods that remain instance methods afterwards
burlyscudd has quit [Quit: Leaving.]
sichardrtallman has quit [Quit: leaving]
guardianx has quit [Read error: Connection reset by peer]
<GreatSUN> those instance methods can be called using self.<methodname>
<GreatSUN> but what about private methods?
<GreatSUN> from instance methods, private methods can be called with method(:<methodname>).call
johnmilton has joined #ruby
<GreatSUN> from those methods in submodule (static) I guess it is not possible to call them, is it?
top4o has joined #ruby
jetblack_ has quit [Quit: leaving]
Mongey has joined #ruby
jetblack has joined #ruby
makara has quit [Ping timeout: 252 seconds]
<sikor_sxe> Mon_Ouie, yeah, i needed to () that expression, since it is in an array itself, d'oh
guardianx has joined #ruby
angusiguess has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
mikepack has quit [Remote host closed the connection]
camilasa_ has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
mikepack has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
camilasan has quit [Ping timeout: 248 seconds]
angusiguess has quit [Ping timeout: 260 seconds]
aryaching has quit [Quit: sayonara! ^_^]
RoryHughes has quit []
mary5030 has joined #ruby
nism has quit [Quit: Leaving]
heftig has quit [Quit: Quitting]
mikepack has quit [Ping timeout: 272 seconds]
DrOwl has joined #ruby
jherbst has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
VinceThePrince has joined #ruby
TripleDES has quit [Quit: Changing server]
eneon has joined #ruby
kitak has quit [Remote host closed the connection]
stonevil has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
kitak has joined #ruby
TripleDES has joined #ruby
DrOwl has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
cmoylan has quit [Quit: Ex-Chat]
aryaching has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
VTLob has joined #ruby
DrOwl has joined #ruby
msmith has joined #ruby
vlad_starkov has joined #ruby
himsin has joined #ruby
himsin has quit [Read error: Connection reset by peer]
zeeraw has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
zeeraw has quit [Client Quit]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Speed has joined #ruby
zegerjan has joined #ruby
zoscoy has joined #ruby
Matriks has quit [Remote host closed the connection]
mikepack has joined #ruby
Speed has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 246 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
deception has joined #ruby
aryaching has joined #ruby
Twist- has joined #ruby
wallerdev has joined #ruby
VinceThePrince has quit [Read error: Connection reset by peer]
joelroa has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
root_empire has joined #ruby
coderdad has joined #ruby
DrOwl has quit [Ping timeout: 260 seconds]
enebo has joined #ruby
sski has quit [Ping timeout: 260 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
tacos1de has joined #ruby
michael_lee has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jlast has joined #ruby
<cek> anyone knwos how to get a value of dict Content elemtn in RSS?
meatherly has joined #ruby
dubsteph has quit [Ping timeout: 246 seconds]
aryaching_ has joined #ruby
fenak has joined #ruby
joelroa has quit [Read error: Operation timed out]
DrOwl has joined #ruby
io_syl has joined #ruby
zeeraw has joined #ruby
s2013 has joined #ruby
guardianx has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 265 seconds]
snath has quit [Ping timeout: 246 seconds]
baordog has joined #ruby
TheMoonMaster has quit [Excess Flood]
olivier_bK has joined #ruby
zegerjan has quit [Ping timeout: 260 seconds]
TheMoonMaster has joined #ruby
dubsteph has joined #ruby
VinceThePrince has joined #ruby
gaspar|work has joined #ruby
root_empire has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 265 seconds]
mary5030_ has joined #ruby
AxonetBE has joined #ruby
<gaspar|work> I'm trying to add redis to my sinatra app. Everything works in development, but in production I get "An error occurred while starting up the preloader: it did not write a startup response in time." error.
<AxonetBE> how can I split an array in exact 3 parts?
<gaspar|work> When in production I start the sinatra app from console it works fine. Does anyone know what could be the issue?
dangerousdave has joined #ruby
root_empire has joined #ruby
tkuchiki has joined #ruby
bean has joined #ruby
momomomomo has joined #ruby
bean has quit [Max SendQ exceeded]
anarang has quit [Quit: Leaving]
zachallett has joined #ruby
bean has joined #ruby
burlyscudd has joined #ruby
slowcon has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<slowcon> morning guys
<apeiros> AxonetBE: a,b,c = ary[n*0,n],ary[n*1,n],ary[n*2,n]
mary5030 has joined #ruby
obs has quit [Quit: Konversation terminated!]
io_syl has quit []
<fenak> AxonetBE: maybe arr.each_slice((arr.size / 3.0).ceil).to_a
aryaching_ has quit [Ping timeout: 240 seconds]
fedesilva has joined #ruby
foooobear has joined #ruby
<AxonetBE> thanks fenak
MattStratton has joined #ruby
<fenak> no problem :)
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Lewix has quit [Quit: Leaving...]
claymore has quit [Read error: Operation timed out]
j416 has joined #ruby
root_empire has quit [Max SendQ exceeded]
s2013 has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
Johnny has joined #ruby
Johnny is now known as Guest39339
Guest39339 has quit [Client Quit]
<j416> o/ My class stores data but doesn't care about where it came from (it can be a file, string, whatever); I'm thinking I'll let the user provide an IO that it can read from. Would this be bad practice? I'm thinking user would e.g. File.open('some/file', 'rb') { |io| myStorageObject.create(io) }
root_empire has joined #ruby
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
<apeiros> from_io if you already deviate from standard `new`
sski has joined #ruby
<GreatSUN> can someone tell me how I could bind an unboundmethod to a class where I have the name of the class as String value?
wallerdev has quit [Quit: wallerdev]
VinceThePrince has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
<j416> what worries me is that my class will just blindly read from that IO until eof?, not knowing if it missed something (well, it doesn't really have to care); and also consume it (i.e. I can't read from the same io while passing it to my class)
<apeiros> GreatSUN: lets reduce your problem: "how can I get the class from a String containing the constant name?"
<apeiros> GreatSUN: see Object#const_get
lmickh has joined #ruby
<j416> apeiros: ah, my bad. it's not a variant of new, s/myStorageObject/myStorageHandler/, and it creates entities from what is given to it
evenix has quit [Ping timeout: 245 seconds]
<apeiros> whoops, make that Module#const_get
danshultz has quit [Read error: Connection reset by peer]
<j416> apeiros: something like a factory
<GreatSUN> apeiros: oh yeah
<GreatSUN> stupid me
<GreatSUN> thanks
danshultz has joined #ruby
Popsikle has joined #ruby
yalue has joined #ruby
artisangoose has joined #ruby
stonevil has quit [Quit: Computer has gone to sleep.]
<apeiros> j416: if the user wants to read from the IO too it's his problem
RaCx has joined #ruby
<j416> apeiros: my thought, thanks. Would you say using an io like that as argument is sane?
Macaveli has joined #ruby
<apeiros> sure. why would it not be?
aaaa has joined #ruby
<apeiros> make sure you document on what you rely, though
<j416> and I would assume that the io is open and ready for reading, right
<apeiros> i.e., which methods you expect
<j416> of course @ document
aaaa is now known as Guest10360
cj3kim has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
arctaruz has joined #ruby
sski has quit [Ping timeout: 248 seconds]
mary5030 has joined #ruby
Hanmac1 has joined #ruby
arctaruz has left #ruby [#ruby]
<apeiros> god I *hate* it when I don't finish work and have like 20 edited and uncommitted files…
<j416> apeiros: that's when I just commit it all and label it 'wip'
<apeiros> I really have to pull myself together and do proper feature branches with small commits…
<j416> :D
<apeiros> j416: that's not the problem. the problem is figuring out wtf I was working on and how far I've got
<j416> if I am lucky I return the next morning and discover I've left todos for myself
<apeiros> proper small commits would document that
<j416> yep
<apeiros> I know the remedy. I'm just too f'ing lazy :(
root_empire has quit [Max SendQ exceeded]
<apeiros> if I got to continue work the next day, it wouldn't be a problem either
<j416> when that happens I tend to just reset and re-commit it all in some sane manner
Hanmac has quit [Ping timeout: 245 seconds]
<apeiros> but this was open for ~6 months
<j416> while reading through the diff taking notes on what needs to be done
<j416> heh yes.. been there
Zubin has joined #ruby
stonevil has joined #ruby
<apeiros> yeah, reading through the diff is what I'm doing now…
v0n has joined #ruby
<j416> last project that was put on ice was idle for 1 month, and it became idle because of something so urgent I didn't have time to tidy it
<j416> I return later to 20 "wip" commits
<j416> lol
<banister> apeiros can't you just commit it from home bb? or you have a strict policy on no work at home?
<apeiros> banister: that's my own stuff
<apeiros> not work stuff
tylersmith has joined #ruby
<j416> apeiros: thanks, by the way. apeiros++
<apeiros> and it lies around whenever work at company piles up and I don't feel like coding at home :)
mary5030 has quit [Ping timeout: 252 seconds]
<j416> what, there's no karma bot in this channel :O
<apeiros> nope
zegerjan has joined #ruby
yfeldblum has joined #ruby
<j416> I guess such a bot would crash when it tried to handle apeiros's karma anyway
<workmad3> a karma bot would just depress everyone with how high apeiros's karma-value was
<j416> so
<j416> ^
<j416> w
<j416> lol
<apeiros> workmad3: don't worry. occasional douchebaggery on my part wouldn't let it rise *that* high
<banister> apeiros workmad3 tell me which of these u like (if u're in the mood, no problem if not) http://en.99designs.nl/t-shirt-design/contests/create-winning-t-shirt-design-pry-project-298135
claymore has joined #ruby
<workmad3> banister: that depends... which one do I get a free version of if I like it? :)
zaargy has quit [Ping timeout: 272 seconds]
ffranz has joined #ruby
<banister> workmad3 sure i'll send you a free one :)
sivoais has quit [Ping timeout: 264 seconds]
zaargy has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
<apeiros> banister: the girl in the 2nd row, 2nd col
<apeiros> oh, you mean the t-shirts? :D
<banister> workmad3 this is my fave one so far, it's a tweak to the current one: http://cl.ly/image/0D472012080L
dkamioka has joined #ruby
<banister> apeiros lul
robbyoconnor has quit [Ping timeout: 260 seconds]
<apeiros> ah, good you pasted that link. that one didn't want to load for me.
<banister> apeiros agreed though ;) maybe i should flag the contest and ask for her ph num
<apeiros> yeah, I think the one you linked is the nicest
sivoais has joined #ruby
<banister> workmad3 me too, but i dont 'get' it. Wtf is it? how does it relate to anything? :)
baordog has left #ruby [#ruby]
Macaveli has joined #ruby
maletor has joined #ruby
<workmad3> banister: aiui, it's ruby being pulled apart in different dimensions inside a box :)
yfeldblum has quit [Ping timeout: 265 seconds]
echevemaster has joined #ruby
<banister> workmad3 'aiui' ?
<workmad3> as I understand it
<banister> cool, never seen that acronym b4
Ch4rAss has quit [Ping timeout: 272 seconds]
<workmad3> had a colleague who used it a lot... it rubbed off :)
<banister> workmad3 his explanation: "for #4 I smashed a Boolean Logic diagram with a abstract pixelated circuit board like pattern. I will upload an entry closer up so you can see it better."
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister> workmad3 oh no, that was for the other way i linked above
<banister> (the explanation)
<workmad3> banister: I think I'd like #4 better if it used the shinier version of the pry logo from #1 :)
andy___ has joined #ruby
<apeiros> File.size('test/unit/all.rb') # => 0
<banister> workmad3 #1 uses too many colors, we can't have that unfortunately.
andy___ is now known as Guest61689
<workmad3> banister: shame :(
<workmad3> it looks pretty :)
<banister> absolutely, but wayyy too expensive to mass produce :)
Guest61689 has quit [Read error: Connection reset by peer]
<workmad3> it's ok... you can have one custom made and sent to me... ;)
mengu has quit [Remote host closed the connection]
<banister> hehe
<pontiki> i <3 #5
<pontiki> i'd wear that one and #8
<workmad3> I'm not fond of light-coloured t-shirts... so didn't rate #8 :)
<pontiki> hehe
Guest10360 has quit [Remote host closed the connection]
<workmad3> would you keep the 'pry' logo on the sleeve with #5?
mansi_ has joined #ruby
jobewan has joined #ruby
IceDragon has joined #ruby
tagrudev has quit [Remote host closed the connection]
Macaveli has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
no0code has quit [Quit: Lost terminal]
interactionjaxsn has joined #ruby
<banister> workmad3 cos without it's just a pretty design with nothing at all related to pry i guess ;)
gregf1 has quit [Quit: bbl]
kitak has quit [Remote host closed the connection]
stonevil has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
kitak has joined #ruby
srji_ has quit [Quit: leaving]
srji has joined #ruby
mikepack has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
nathancahill has joined #ruby
mr_red has quit [Quit: Bye :)]
olivier_bK has quit [Quit: Quitte]
VinceThePrince has joined #ruby
mehlah has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mary5030 has joined #ruby
sk87 has joined #ruby
mary5030 has quit [Remote host closed the connection]
ktosiek has quit [Read error: Operation timed out]
mary5030 has joined #ruby
kitak has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
__greg has joined #ruby
kitak has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
ktosiek has joined #ruby
sparrovv has quit [Remote host closed the connection]
VinceThePrince has quit [Client Quit]
<workmad3> banister: there is that... but it could potentialy be moved to somewhere on the front or the back... I quite like the arm placement though :)
<workmad3> banister: just wondered if that would affect printing costs again ;)
sambao21 has joined #ruby
<apeiros> *sob*, I wish rubygems had a way to list optional dependencies
<banister> workmad3 good question
zegerjan has quit [Ping timeout: 260 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> apeiros: you have a description field... what more do you want? :P
<apeiros> workmad3: …
burlyscudd has quit [Quit: Leaving.]
mark_locklear has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
lemonsparrow has joined #ruby
mando has joined #ruby
cmoylan has joined #ruby
joelroa has quit [Ping timeout: 272 seconds]
SWAT has quit [Quit: leaving]
olivier_bK has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 252 seconds]
raphaelivan has joined #ruby
aPhone has joined #ruby
JasmeetQA has joined #ruby
yasushi has joined #ruby
mlpinit has joined #ruby
mikepack has joined #ruby
workmad3 is now known as wm3|away
kevind has joined #ruby
<jxport> When choose to use modules to include, and when to use composition instead?
vlad_starkov has joined #ruby
olivier_bK has joined #ruby
<jxport> Or, which factors tend to influence the decision between either two
greenarrow has quit [Quit: 500]
aPhone has quit [Client Quit]
greenarrow has joined #ruby
cocotton has joined #ruby
elaptics`away is now known as elaptics
codeFiend has quit [Quit: codeFiend]
thesheff17 has quit [Ping timeout: 246 seconds]
prc has quit [Ping timeout: 245 seconds]
mikepack has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
thesheff17 has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
stryek has quit [Ping timeout: 252 seconds]
olivier_bK has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
elaptics is now known as elaptics`away
<apeiros> jxport: including modules is composition
<apeiros> so I don't really understand what you're asking
pasafona has joined #ruby
asmodlol has joined #ruby
olivier_bK has joined #ruby
aryaching_ has joined #ruby
io_syl has joined #ruby
evenix has joined #ruby
cloud|nix has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
<ghr> Anyone read poodr? Is this how you'd code Figure 4.7? http://pastie.org/private/1kgcivps750u1dm9jmeoa (see link at top for the chapter example)
bal has quit [Quit: bal]
cj3kim has joined #ruby
rayners has joined #ruby
kpshek has joined #ruby
mjs2600 has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 260 seconds]
mjs2600 has joined #ruby
ikaros has joined #ruby
pasafona has quit []
jprovazn has quit [Quit: Leaving]
olivier_bK has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
cocotton has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mehlah_ has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
andy___ has joined #ruby
pasafona has joined #ruby
andy___ is now known as Guest77948
aryaching_ has quit [Read error: Connection reset by peer]
dcope has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
<dcope> hey all, anyone else on OS X notice ruby eating up > 95% CPU when running a simple ruby program?
<certainty> i assume you don't mean a simple program that runs a tight loop?
olivier_bK has joined #ruby
<dcope> certainty: yeah
IceDragon has joined #ruby
<dcope> it seems anything ruby related will send the process up into the high 90s of cpu usage on my mac
<certainty> well then no, i haven't noticed. One reason could be that i don't have OS X :)
aryaching has joined #ruby
momomomomo has quit [Quit: momomomomo]
zegerjan has joined #ruby
<dcope> certainty: :)
OdNairy has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
stryek has joined #ruby
troyready has joined #ruby
ianfleeton has quit [Quit: ianfleeton]
noop has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
pzula has joined #ruby
nateberkopec has joined #ruby
aryaching_ has joined #ruby
mr_red has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
zigomir has quit [Remote host closed the connection]
geggam has joined #ruby
sambao21 has joined #ruby
aryaching_ has quit [Client Quit]
lemonsparrow has quit [Quit: Page closed]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jonah_k has joined #ruby
lele has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
sambao21 has quit [Client Quit]
<certainty> for example something like: def current_continuation; callcc{|cc| c[cc] }; end ... then you can just store it and use in your conditional to test if it has been invoked yet ;)
pigzzcanfly has joined #ruby
<certainty> bah, sorry
AxonetBE has quit [Quit: AxonetBE]
<toretore> now i want to know what c is :) another continuation?
<certainty> toretore: oh a typo, it's meant to read cc[cc]
sdwrage has joined #ruby
lele has joined #ruby
sambao21 has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
robbyoconnor has joined #ruby
robbyoconnor has quit [Write error: Broken pipe]
mehlah_ is now known as mehlah
<toretore> so you're creating a continuation and calling it right away?
nszceta has joined #ruby
banister has joined #ruby
<certainty> toretore: yeah, passing itself as the argument which will make it return itself
Zubin has quit [Quit: Leaving]
<certainty> it's just something like letcc
yfeldblum has quit [Ping timeout: 265 seconds]
<toretore> how is that different from just callcc{|cc| cc } ?
banister has quit [Client Quit]
tolstoi has joined #ruby
tolstoi has joined #ruby
tolstoi has quit [Changing host]
<certainty> toretore: hah! it isn't. How did i not see that
ianfleeton has joined #ruby
<toretore> :)
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 245 seconds]
waheedi has joined #ruby
senj has joined #ruby
tziOm has quit [Ping timeout: 246 seconds]
banister has joined #ruby
gigetoo has joined #ruby
caveat- has joined #ruby
jprovazn has joined #ruby
Guest77948 has quit [Read error: Connection reset by peer]
Olipro has quit [Ping timeout: 246 seconds]
olivier_bK has quit [Remote host closed the connection]
Olipro has joined #ruby
stryek has quit [Ping timeout: 252 seconds]
ikaros has quit [Quit: Ex-Chat]
ikaros has joined #ruby
mark_locklear has joined #ruby
mikepack has joined #ruby
vermele has joined #ruby
<j416> is it safe to just mv a Tempfile to someplace?
axl_ has joined #ruby
<j416> (risk of it being garbage collected?)
bhaak has quit [Read error: Operation timed out]
<j416> I need to save data to a file but I don't know the filename until I've written all the data
tylersmith has quit [Remote host closed the connection]
ghr has quit []
<certainty> toretore: maybe of interest for you, if you don't already know it: http://okmij.org/ftp/continuations/against-callcc.html
yasushi has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
<j416> I guess I'll just experiment and see. :)
thumpba has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
bhaak has joined #ruby
stonevil has joined #ruby
olivier_bK has joined #ruby
<j416> hey, it worked, it wasn't gc'd
<j416> nice
lolmaus has joined #ruby
nomenkun has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
thumpba has quit [Read error: Operation timed out]
Es0teric has joined #ruby
x77686d has quit [Quit: x77686d]
Thanatermesis` has joined #ruby
tylershipe has quit [Remote host closed the connection]
Thanatermesis` has quit [Changing host]
Thanatermesis` has joined #ruby
Thanatermesis has quit [Write error: Broken pipe]
pzula has quit [Ping timeout: 280 seconds]
pigzzcan_ has joined #ruby
tylershipe has joined #ruby
joelroa has joined #ruby
pzula has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<certainty> j416: i don't quite understand why it should be gc'ed
raphaelivan has quit [Read error: Connection reset by peer]
Kovensky has quit [Quit: ZNC - http://znc.in]
jobewan has quit [Quit: Leaving]
koell has quit [Ping timeout: 260 seconds]
Kovensky has joined #ruby
<toretore> certainty: yeah happened upon it some time ago.. i stick with fibers anyhow, they're a little saner
jonah_k has quit [Remote host closed the connection]
burlyscudd has joined #ruby
RaCx has joined #ruby
d2dchat has joined #ruby
tylershipe has quit [Ping timeout: 245 seconds]
ahawkins has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
camilasa_ has quit []
Kovensky has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
cj3kim has joined #ruby
Kovensky has joined #ruby
pel_daniel has joined #ruby
axl_ has quit [Quit: axl_]
olivier_bK has quit [Remote host closed the connection]
<j416> certainty: I was thinking that it used the inode or the like
thumpba has joined #ruby
axl_ has joined #ruby
<j416> but it seems it properly uses the path
razrunelord has joined #ruby
io_syl has quit []
olivier_bK has joined #ruby
<j416> s/that it used/that it might be using/
<j416> blergh
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
cj3kim has quit [Remote host closed the connection]
jgoss has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 260 seconds]
ianfleeton has quit [Quit: ianfleeton]
braincrash has quit [Read error: Connection reset by peer]
xcv has joined #ruby
sikor_sxe has quit [Ping timeout: 241 seconds]
jonah_k has joined #ruby
pasafona has quit [Remote host closed the connection]
aloitius_ has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
cloud|nix has quit [Ping timeout: 245 seconds]
_lazarevsky has quit [Ping timeout: 245 seconds]
mloveless has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
CaptainJet has joined #ruby
olivier_bK has quit [Remote host closed the connection]
dcope has quit [Quit: leaving]
Findegil has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stryek has joined #ruby
ringaroses has joined #ruby
Vivekananda has joined #ruby
bluenemo has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
xcv has quit []
aryaching has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
<jxport> apeiros: sorry, I didn't see your response somehow
pietr0 has joined #ruby
<jxport> re: 'When choose to use modules to include, and when to use composition instead?'
mlpinit has joined #ruby
Es0teric has quit [Ping timeout: 252 seconds]
joelroa has joined #ruby
ferno has joined #ruby
ferno has left #ruby ["WeeChat 0.3.2"]
Emmanuel_Chanel has joined #ruby
<apeiros> jxport: there are no silver bullet answers to such questions anyway
<jxport> Hmm/cle
<jxport> woops
Es0teric has joined #ruby
<jxport> apeiros: I meant, specifically by "composition" - containing a class/object and invoking that, rather than mixing in the functionality
lethjakman has joined #ruby
aspires has joined #ruby
<apeiros> I thought as much (a bit later)
Hobogrammer has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<jxport> apeiros: I'm not looking for a silver bullet, but the kinds of things that might push a developer to choose one over the other
cpruitt has joined #ruby
<jxport> Personally I find using modules to be more complicated when we're talking more than adding just a couple of methods
aryaching has quit [Ping timeout: 245 seconds]
andy___ has joined #ruby
gigetoo has quit [Remote host closed the connection]
<apeiros> jxport: SRP might be a usable guide
carraroj has joined #ruby
koell has joined #ruby
andy___ is now known as Guest33226
msmith has joined #ruby
Vivekananda has quit [Ping timeout: 265 seconds]
gigetoo has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Giorgio has quit [Ping timeout: 260 seconds]
pzula has quit [Quit: leaving]
<apeiros> though, ah, ignore that comment
pzula has joined #ruby
sambao21 has joined #ruby
ext0 has quit [Remote host closed the connection]
sk87 has joined #ruby
<jxport> apeiros: ignore it? :(
<jxport> Seemed sensible
thumpba has joined #ruby
yacks has quit [Quit: Leaving]
tcopp_ has joined #ruby
tylershipe has joined #ruby
burlyscudd has quit [Quit: Leaving.]
shredding has joined #ruby
petey has joined #ruby
gbt has quit [Quit: Leaving...]
freggles has joined #ruby
tziOm has joined #ruby
plexus_ has quit [Ping timeout: 252 seconds]
zoscoy has joined #ruby
ringaroses has quit [Read error: Connection timed out]
raphaelivan has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
sheepman is now known as sheepman|afk
phansch has quit [Quit: WeeChat 0.4.2]
rootshift has quit [Ping timeout: 272 seconds]
JustMozzy has quit [Remote host closed the connection]
burlyscudd has joined #ruby
yfeldblum has joined #ruby
Hobogrammer has quit [Quit: Lost terminal]
Matriks has joined #ruby
tziOm has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
gja has quit [Quit: This computer has gone to sleep]
aryaching has joined #ruby
_maes_ has joined #ruby
braincrash has quit [Read error: Connection reset by peer]
petey has quit [Remote host closed the connection]
tcopp_ has quit [Ping timeout: 260 seconds]
nvrch has quit [Quit: nvrch]
Xeago has quit [Remote host closed the connection]
petey has joined #ruby
timonv has quit [Remote host closed the connection]
braincrash has joined #ruby
olivier_bK has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
tziOm has joined #ruby
timonv has joined #ruby
kennym has quit [Remote host closed the connection]
codeFiend has joined #ruby
koell has quit [Quit: So say we all!]
supersym has quit [Ping timeout: 260 seconds]
tootubular has joined #ruby
koell has joined #ruby
Czupa has joined #ruby
thams has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
timonv has quit [Ping timeout: 260 seconds]
tziOm has quit [Ping timeout: 260 seconds]
<lethjakman> is there a way to get the time of last wednesday?
<lethjakman> time as in the Time object
greenarrow has quit [Quit: 500]
aryaching has joined #ruby
DaniG2k has quit [Quit: leaving]
bernalex has joined #ruby
AxonetBE has joined #ruby
<bernalex> I don't understand this: why can't I do n = 5; for m in [2..n]; for l in [2..m]; end; end?
<apeiros> lethjakman: yes
ianfleeton has joined #ruby
<bernalex> I get "bad value for range" on the inner for
jhass|off is now known as jhass
kaliya has quit [Quit: Lost terminal]
<lethjakman> apeiros: how would I go about doing that?
mikecmpbll has quit [Ping timeout: 246 seconds]
<apeiros> lethjakman: you'd get Time.now, determine which weekday it is, and subtract the necessary amount
<apeiros> see Time#wday
<apeiros> and Time#-
<bernalex> or, more simply: for m in [1..n]; for l in [1..m]; end; end
nerdgrass has joined #ruby
<lethjakman> apeiros: hrm...seems like a bit of a pain.
tziOm has joined #ruby
Vivekananda has joined #ruby
<certainty> bernalex: what are you trying to achieve? you know that [x..y] creates an array with one element. The range x..y?
<apeiros> lethjakman: "omg, I have to write a full line of code!". yeah, lots of pain :-p
<bernalex> certainty: no. but that explains it.
evilbug has joined #ruby
<bernalex> certainty: in languages I'm accustomed to, [0..n] would make an array of elements from 0 up to n.
<certainty> bernalex: you're looking for (2..n)
<apeiros> (ok, I'd probably spread it on multiple lines for clarity)
<bernalex> oh, OK, thanks
<lethjakman> ahhh found a cleaner way
petey has quit [Remote host closed the connection]
<lethjakman> rails has a beginning_of_week
<apeiros> lethjakman: if you'd said you were using rails.
<certainty> :)
<lethjakman> I just figured ruby had something nice.
petey has joined #ruby
<certainty> *confused*
dkamioka has quit [Read error: Connection reset by peer]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
tkuchiki has quit [Remote host closed the connection]
evilbug has left #ruby [#ruby]
dkamioka has joined #ruby
coderdad has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 246 seconds]
<shevy> *aroused*
<lethjakman> shevy: perhaps we need to get you out more...
<shevy> yes please
chipotle has joined #ruby
gmi_ has joined #ruby
TMM has quit [Quit: Ex-Chat]
[gmi] has quit [Ping timeout: 248 seconds]
siwica has joined #ruby
petey has quit [Ping timeout: 248 seconds]
mjs2600 has joined #ruby
meatherl_ has joined #ruby
[gmi] has joined #ruby
meatherly has quit [Read error: No route to host]
mikepack has quit [Ping timeout: 265 seconds]
shaunbaker has joined #ruby
[gmi] has quit [Remote host closed the connection]
gmi_ has quit [Client Quit]
petey has joined #ruby
S0da has quit [Read error: Connection reset by peer]
gja has joined #ruby
[gmi] has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
tungd has quit [Ping timeout: 272 seconds]
tziOm has quit [Ping timeout: 260 seconds]
pwh has quit []
asmodlol has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
monsieurp has quit [Quit: Lost terminal]
klaut has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
starfox21 has joined #ruby
siwica has quit [Quit: siwica]
geggam has quit [Remote host closed the connection]
fmcgeough has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
<nhmood> is it a good habit to scope classes from Ruby core itself? i.e. ::File
poulson has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
tziOm has joined #ruby
andikr has quit [Remote host closed the connection]
AxonetBE has joined #ruby
Voodoofish430 has joined #ruby
havenwood has joined #ruby
ianfleeton has quit [Quit: ianfleeton]
<apeiros> nhmood: unless there's an explicit reason for it, I think not, no. why?
gja has quit [Quit: This computer has gone to sleep]
poulson has joined #ruby
mloveless has quit [Remote host closed the connection]
SirFunk_ has quit [Remote host closed the connection]
AxonetBE has quit [Client Quit]
gja has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
siwica has joined #ruby
<nhmood> I was looking at some sample code (Sinatra) and the author was using ::File which seemed odd as he didn't define any File class himself
rdark has quit [Quit: leaving]
<nhmood> I wasn't sure if that was the proper way to do things
<nhmood> Also, when I write C/C++ I tend to always include the namespace (ie std:: instead of defining using namespace)
<nhmood> But this isn't C/C++ :)
<shevy> sure that he had no File class somewhere else?
<nhmood> So I was curious if there was some standard
monkegjinni has quit [Remote host closed the connection]
<shevy> lib/sinatra/base.rb: file = Rack::File.new nil
<shevy> lib/sinatra/base.rb: yield ::File.join(views, "#{name}.#{@preferred_extension}")
rafaelmagu has joined #ruby
monkegjinni has joined #ruby
b00stfr3ak has quit [Ping timeout: 245 seconds]
bandsaw1961 has joined #ruby
<nhmood> Wouldn't core / :: take precedence over Rack?
tylersmith has joined #ruby
lethjakman has quit [Quit: WeeChat 0.4.0]
pranny has joined #ruby
<shevy> dunno
<shevy> I never saw yield ::Bla before
tziOm has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
<nhmood> shevy: regardless, I should have looked at the sinatra itself, not just the project at hand
coderdad has joined #ruby
pfg has joined #ruby
<nhmood> is there any way to have gem/bundler/whatever pull all the gem dependencies into the working dir
olivier_bK has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
coderdad has quit [Read error: Connection reset by peer]
<jhass> bundler has the --path option
<nhmood> So that if I was to do a grep lets say, it would find terms in both the current project as well as its dependencies?
SirFunk has joined #ruby
coderdad has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
bandsaw1961 has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
shaunbaker has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
<nhmood> jhass: yup that worked great, thanks
nomenkun_ has joined #ruby
petey has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
stryek has quit [Ping timeout: 272 seconds]
jobewan has joined #ruby
petey has quit [Read error: Connection reset by peer]
petey has joined #ruby
dubsteph has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
petey has joined #ruby
Es0teric has joined #ruby
tziOm has joined #ruby
aspiers has quit [Read error: Operation timed out]
mlpinit has quit [Read error: Connection reset by peer]
Cyrus has joined #ruby
aryaching has joined #ruby
mlpinit has joined #ruby
sassamo has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
foooobear has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
Vovko has joined #ruby
cpruitt has quit [Quit: cpruitt]
Kricir has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
cloud|nix has joined #ruby
Cyrus has quit [Quit: Leaving]
petey has quit [Ping timeout: 252 seconds]
cloud|nix has quit [Remote host closed the connection]
tziOm has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
pzula has quit [Ping timeout: 246 seconds]
jpun has quit [Ping timeout: 246 seconds]
msmith has quit [Remote host closed the connection]
sepp2k has joined #ruby
rippa has joined #ruby
msmith has joined #ruby
koell has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
Cyrus has joined #ruby
burlyscudd has joined #ruby
benzrf has joined #ruby
<benzrf> hello
asmodlol has joined #ruby
<benzrf> i have a set of files containing marshalled objects
tziOm has joined #ruby
<benzrf> i have a method that loads an object by id
meatherly has joined #ruby
<benzrf> some of my code will be accessing the same object a bunch of times in a row by id
<benzrf> how should i implement a cache?
cj3kim has joined #ruby
<benzrf> i was thinking something time-since-last-access-based?
mmoretti has joined #ruby
dubsteph has joined #ruby
baroquebobcat has joined #ruby
mehlah has quit [Quit: Leaving...]
roolo has quit [Quit: Leaving...]
burlyscudd has quit [Ping timeout: 252 seconds]
meatherl_ has quit [Ping timeout: 245 seconds]
phansch has joined #ruby
phansch has quit [Remote host closed the connection]
AxonetBE has joined #ruby
havenwood has quit [Remote host closed the connection]
snath has joined #ruby
codeFiend has quit [Quit: codeFiend]
cj3kim has quit [Remote host closed the connection]
phansch has joined #ruby
stryek has joined #ruby
mocfive has joined #ruby
koell has joined #ruby
__greg has left #ruby [#ruby]
tziOm has quit [Ping timeout: 260 seconds]
wm3|away has quit [Ping timeout: 265 seconds]
zz_jrhorn424 has quit [Ping timeout: 265 seconds]
shime has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
pzula has joined #ruby
burlyscudd has joined #ruby
geggam has joined #ruby
decoponio has quit [Ping timeout: 260 seconds]
jonnyro has joined #ruby
oso|away is now known as oso96_2000
decoponio has joined #ruby
<jsilver_> so guys
<jsilver_> why the hell won't guard-rspec autotest in centos?
<jsilver_> no, it's not my config
Guest92756 has joined #ruby
<jsilver_> the program IS broken
Kricir has quit [Ping timeout: 260 seconds]
zz_jrhorn424 has joined #ruby
jkamenik has joined #ruby
<MJBrune> hey so I am using net/http and I am doing a REST GET where I want to set the headers for the request. Can someone provide an example or something because I've looked at the documentation and I don't seem to be getting it.
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
yfeldblum has joined #ruby
Guest92756 is now known as _tickez
tziOm has joined #ruby
dubsteph has quit [Ping timeout: 272 seconds]
rayners has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 252 seconds]
<benzrf> MJBrune: it is probably a hash
<benzrf> idk aoart from that :I
<MJBrune> benzrf: yes, I know it is.
<MJBrune> Im adding it to the http::get object
AxonetBE has quit [Quit: AxonetBE]
<MJBrune> like http::get.add_field
b00stfr3ak has quit [Read error: Connection reset by peer]
rayners has joined #ruby
bleak has joined #ruby
dzhulk has joined #ruby
tcopp_ has joined #ruby
kennym has joined #ruby
<nhmood> MJBrune: i use something like this http://paste.kde.org/phjh0jhb5
<nhmood> MJBrune: i'm no pro so might not be the ruby way or the best way but it works
<benzrf> what should i use for a timed cache that works by time since last access?
JasmeetQA has quit [Quit: Leaving.]
sepp2k1 has joined #ruby
poulson has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
Jdubs has joined #ruby
b00stfr3ak has joined #ruby
<MJBrune> nhmood: im doing that but its not working :/
<MJBrune> Im getting like a bad request
siwica has quit [Quit: siwica]
<MJBrune> I guess its server side
<nhmood> You can try _http.set_debug_output $stderr
<MJBrune> oh ok
<nhmood> that will print out verbose info, maybe you can get more insight on whats going wrong from that
x1337807x has joined #ruby
centrx has joined #ruby
tcopp_ has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
Xeago has joined #ruby
francisfish has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
<certainty> benzrf: hmm doesn't seem to exist. Maybe you need to roll your own
jonah_k has quit [Remote host closed the connection]
dpswireless has joined #ruby
ylluminate` has joined #ruby
<benzrf> sooo laaame
tziOm has quit [Ping timeout: 248 seconds]
dpswireless has left #ruby [#ruby]
Kricir has joined #ruby
<MJBrune> nhmood: thanks I am trying to create a WSSE system
oracal has joined #ruby
rayners has quit [Remote host closed the connection]
<MJBrune> That debug info helped
noop has joined #ruby
recurrence has joined #ruby
rayners has joined #ruby
jonah_k has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<benzrf> hmmm
<benzrf> is there a way to indicate that an ivar should not be marshalled?
ylluminate` has quit [Ping timeout: 245 seconds]
ylluminate has quit [Ping timeout: 260 seconds]
bricker has joined #ruby
OdNairy has joined #ruby
s2013 has joined #ruby
senayar has joined #ruby
<certainty> benzrf: implement marshal_dump
<nhmood> MJBrune: what is WSSE?
blackmesa has joined #ruby
krzkrz has quit [Quit: WeeChat 0.4.2]
coderdad has quit [Read error: Connection reset by peer]
stonevil has quit [Quit: Computer has gone to sleep.]
mocfive has quit [Remote host closed the connection]
<benzrf> certainty: :\
coderdad has joined #ruby
francisfish has quit [Remote host closed the connection]
<certainty> i know no other way :/
mocfive has joined #ruby
tziOm has joined #ruby
gja has joined #ruby
<MJBrune> nhmood: a standard in http rest security.
<MJBrune> looks like I wasn't using the gem
sk87 has joined #ruby
<MJBrune> and I should have been instead of trying to reinvent everything
mocfive_ has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
artisangoose has quit [Quit: Textual IRC Client: www.textualapp.com]
cpruitt has joined #ruby
gregf has joined #ruby
mjs2600 has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
predator217 is now known as predator117
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icedburg has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
e^0 has quit [Quit: WeeChat 0.4.1]
wallerdev has joined #ruby
icedburg has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
Kricir has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
LexicalScope has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
LexicalScope has joined #ruby
sdwrage has joined #ruby
boboc has joined #ruby
hiall has quit [Quit: hiall]
wgosling has joined #ruby
aryaching has quit []
gja has quit [Quit: This computer has gone to sleep]
burlyscudd has joined #ruby
kraljev5 has joined #ruby
tylershipe has quit []
Kricir has quit [Ping timeout: 252 seconds]
<kraljev5> Hey, how to listen to a file
<kraljev5> so, I want to get notified, when file gets appended to
thams has quit [Quit: thams]
x1337807x has joined #ruby
nszceta has quit [Remote host closed the connection]
<pontiki> cat stairway.mp3 > /dev/audio
chagar has joined #ruby
chagar has quit [Client Quit]
aryaching has joined #ruby
<pontiki> or if you really want the bits, cat app/models/user.rb > /dev/audio
tziOm has quit [Ping timeout: 252 seconds]
<kraljev5> let's say I have a file that some program append log lines to
zeeraw has joined #ruby
<pontiki> seriously, though, you need something like rb-notify, depending on OS
<kraljev5> i want to listen for those new lines
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> or you can open the file, seek to end, and then keep trying to read from it
<slowcon> so im at the part of my script where I want it to pull a href from a download button. thing is, download button is only available if the user is logged in. the script is failing and im guessing that is why. havent gave it a go yet, but was reading around and some people recommend using mechanize. what do you guys think?
einarj has quit [Remote host closed the connection]
mikepack has joined #ruby
<pontiki> which is how tail -f works
pzula has quit [Quit: leaving]
<pontiki> (assuming you're talking programmatically)
burlyscudd has quit [Ping timeout: 272 seconds]
<kraljev5> thanks i'll look into that
wgosling has quit [Quit: Konversation terminated!]
jkamenik1 has joined #ruby
jkamenik has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: This computer has gone to sleep]
zeeraw has quit [Client Quit]
dubios has quit [Read error: Connection reset by peer]
dzhulk has quit [Quit: Leaving.]
francisfish has joined #ruby
tgkokk has joined #ruby
coderdad has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 248 seconds]
petey has joined #ruby
RaCx_ has joined #ruby
kpshek has quit []
tziOm has joined #ruby
s2013 has joined #ruby
thams has joined #ruby
cj3kim has joined #ruby
__noname001__ has joined #ruby
coderdad has joined #ruby
cj3kim has quit [Remote host closed the connection]
burgess has joined #ruby
braincrash has quit [Read error: Connection reset by peer]
ehaliewicz has joined #ruby
gja has joined #ruby
kpshek has joined #ruby
coderdad has quit [Remote host closed the connection]
RoryHughes has joined #ruby
braincrash has joined #ruby
sassamo has joined #ruby
mjs2600 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
gja has quit [Client Quit]
tziOm has quit [Ping timeout: 245 seconds]
dzhulk has joined #ruby
timonv has quit [Remote host closed the connection]
marr has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
timonv has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
jcs222 has joined #ruby
sdwrage has joined #ruby
<joshu__> hi how can I use single quotes like this in a yaml file. 'Instances[*].InstanceId'
<centrx> Does that not work?
<centrx> Try using double quotes around it
timonv has quit [Remote host closed the connection]
pigzzcan_ has quit [Remote host closed the connection]
<joshu__> I've tried wrapping it with double quotes and sublime text complains
sparrovv has joined #ruby
sassamo has quit [Ping timeout: 272 seconds]
v0n has joined #ruby
<centrx> strange it doesn't seem to work
phansch has quit [Quit: WeeChat 0.4.2]
aryaching has quit [Ping timeout: 265 seconds]
shime has quit [Ping timeout: 272 seconds]
<joshu__> never mind I found the problem it was on another line I delete it and now it works. sorry about that centrx
<centrx> >> require 'yaml'; YAML.load("\\'Instances[*].InstanceId\\'")
<eval-in> centrx => (https://eval.in/103337)
* centrx kicks the bot
<joshu__> the sublime text colour coding is still off but it works
Xeago has joined #ruby
<apeiros> the bot can't require yaml :(
<apeiros> "'Instances[*].InstanceId'".to_yaml => "--- \"'Instances[*].InstanceId'\"\n"
baordog has joined #ruby
<centrx> >> require 'bot'
<eval-in> centrx => (https://eval.in/103342)
<apeiros> so plain single quotes in double quotes should work fine.
thumpba_ has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.2]
tgkokk has quit [Ping timeout: 246 seconds]
<centrx> Alright, back to hack. Quit slacking off people!
relix has quit [Ping timeout: 246 seconds]
aryaching has joined #ruby
<slowcon> whatup centrx
<slowcon> real quick
<slowcon> im at the part of my script where I want it to pull a href from a download button. thing is, download button is only available if the user is logged in. the script is failing and im guessing that is why. havent gave it a go yet, but was reading around and some people recommend using mechanize. what do you guys think?
gja has joined #ruby
<centrx> slowcon, Yes, it will save your cookies and connect with your cookies
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
<slowcon> centrx: so i should only have to call it once and it will work on all pages?
aryaching has quit [Client Quit]
<centrx> slowcon, You can get OpenURI to do cookies too but it is not clean
coderdad has joined #ruby
<centrx> slowcon, It will "mechanize" the connection like a web browser
rafaelmagu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
cj3kim has joined #ruby
Kricir has quit [Remote host closed the connection]
ianfleeton has joined #ruby
blackmesa has joined #ruby
senayar has quit [Remote host closed the connection]
Vivekananda has quit [Quit: Ex-Chat]
tziOm has joined #ruby
Deele has quit [Ping timeout: 245 seconds]
Hanmac1 is now known as Hanmac
aryaching has joined #ruby
<slowcon> centrx: thanks, going to read over mechanize
Vivekananda has joined #ruby
relix has joined #ruby
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
sambao21 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Eiam has joined #ruby
thumpba_ has quit [Remote host closed the connection]
yalue has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
gaspar|work has quit [Ping timeout: 248 seconds]
Kricir has joined #ruby
<benzrf> hmm
Xeago has joined #ruby
<benzrf> is there a way to schedule an async task, but hold onto an object that lets you delay it or cancel it before it happens?
mark_locklear has quit [Read error: Operation timed out]
<benzrf> or change when it occurs, rather
mark_locklear has joined #ruby
gaspar|work has joined #ruby
tziOm has quit [Ping timeout: 260 seconds]
mikepack_ has joined #ruby
Uranio has joined #ruby
havenwood has joined #ruby
ilyam has joined #ruby
havenwood has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
<ilyam> anyone know if the 'aws-s3' Ruby gem is thread-safe? That is, can I call for example AWS::S3::S3Object.find(object_key, bucket_name) from multiple threads simultaneously? The googles don't come up with a clear answer on this
dmyers has joined #ruby
braincrash has quit [Read error: Connection reset by peer]
jzig has joined #ruby
Kricir has quit [Remote host closed the connection]
braincrash has joined #ruby
burlyscudd has joined #ruby
mjs2600 has joined #ruby
mikepack_ has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<xybre> ilyam: Using MRI, Jruby, or Rubinius?
axsuul has quit [Ping timeout: 245 seconds]
rubyracer has joined #ruby
sambao21 has joined #ruby
tziOm has joined #ruby
Sc0rp10n has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
<ilyam> xybre: MRI 1.9.2
sambao21 has quit [Client Quit]
yalue has joined #ruby
RaCx_ has quit [Ping timeout: 240 seconds]
jrist has quit [Ping timeout: 264 seconds]
coderdad has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
flagg0204 has quit [Ping timeout: 272 seconds]
tvw has quit [Remote host closed the connection]
banister has joined #ruby
psyprus has quit [Changing host]
psyprus has joined #ruby
ry4nn has joined #ruby
freerobby has joined #ruby
sassamo has joined #ruby
flagg0204 has joined #ruby
tziOm has quit [Read error: Operation timed out]
Deele has joined #ruby
tgkokk has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boom__ has joined #ruby
x1337807x has joined #ruby
RaCx has joined #ruby
sambao21 has joined #ruby
sassamo has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
zerun0_ has quit [Read error: Operation timed out]
thumpba_ has joined #ruby
<xybre> ilyam: MRI doesn't do true multithreading, so you most liekly will never run into a problem.
gja has quit [Quit: This computer has gone to sleep]
tziOm has joined #ruby
<ilyam> xybre: well, I thought in 1.9+ the GIL is dropped during I/O calls (i.e. network/disk access)?
<RubyPanther> xybre: that isn't really true, the GIL does exist but that doesn't mean multithreading is fake
<ilyam> and S3 operations will probably spend most of their time doing I/O
pigzzcanfly has joined #ruby
<RubyPanther> just, pointless compared to fork and IPC
<xybre> ilyam: during blocking IO it can, but it is still unlikely you'll experience it. When in doubt, test it :)
<ilyam> xybre: yeah, though race conditions are hard to test for …
<xybre> RubyPanther: It does have threads, but it doesn't process them in parallel outside the aforementioned IO.
intuxicated has quit [Read error: Connection reset by peer]
<ilyam> right
thumpba_ has quit [Remote host closed the connection]
<RubyPanther> Trying to be pedantic, but then using the word parallel... no threads are never parallel
nerdman has quit [Quit: leaving]
<xybre> ilyam: True, but you *can* test if its running threads in parallel.
aryaching has quit [Ping timeout: 246 seconds]
* xybre sighs
<ilyam> but say i have a program that needs to copy 10 objects from S3 to local disk. Most of the time is going to be spent waiting for network or disk, so spinning up 10 threads could speed it up a lot. anyway, i guess i'll just try it and see if things get corrupted
<RubyPanther> If you port Ruby to a transputer, maybe
<ilyam> i can always compute checksums etc
jkamenik1 has quit [Quit: Leaving.]
<ilyam> just thought if anyone knows about the thread-safety of the gem, could avoid wasting my time if it's known to break in multi-threaded scenarious
timonv has joined #ruby
<centrx> All OSes are really Mac OS <= 9 in disguise
<certainty> :)
<xybre> ilyam: Right, but would you prefer no one replied at all?
<xybre> centrx: DOS ins dsiguise.
cj3kim has quit [Remote host closed the connection]
<RubyPanther> OS 7 is a special ring in Hell
ry4nn has quit [Quit: Konversation terminated!]
burlyscudd has quit [Quit: Leaving.]
<ilyam> xybre: of course not :) just didn't get the sure answer I was hoping for, but you don't always get what you want in life :)
<xybre> ilyam: I know, and I'm sorry I don't have more information to give you :)
<ilyam> np
<RubyPanther> ilyam: you can throw in a mutex and not have to worry about it and still get most of your benefit
cj3kim has joined #ruby
sassamo has joined #ruby
<benzrf> hey how does this look http://bpaste.net/show/180903
<RubyPanther> probably less work than what I would do, which is make a lightweight drb server to fork and manage the service
vermele has quit [Quit: Leaving]
coderdad has joined #ruby
<certainty> benzrf: what do you need all those caches for?
<toretore> benzrf: it would delete elements in a lifo manner
sdwrage has quit [Quit: This computer has gone to sleep]
mmoretti has quit []
<toretore> keys.last == fifo
Es0teric has quit [Quit: Computer has gone to sleep.]
mjs2600 has quit [Remote host closed the connection]
tziOm has quit [Ping timeout: 260 seconds]
<toretore> i think
kobian has joined #ruby
cpruitt has quit [Quit: cpruitt]
<benzrf> toretore: hmm
<certainty> therefor you are
<toretore> i am?
<benzrf> hashes arent ordered though are they?
<certainty> pretty sure you are
<toretore> "yes", but the other way (i assume)
gja has joined #ruby
<benzrf> >> h = {}; h[:b] = 1; h[:a] = 2; h.keys
<eval-in> benzrf => [:b, :a] (https://eval.in/103362)
<benzrf> hmm
<toretore> oh nm ignore me
<toretore> goddamnit
<benzrf> >> h = {}; h[:b] = 1; h[:c] = 2; h[:a] = 3; h.keys
<eval-in> benzrf => [:b, :c, :a] (https://eval.in/103363)
<benzrf> huh.
<benzrf> i guess so?
<toretore> brain is on backwards, you're right
<benzrf> but yeah still fifo
<benzrf> :)
<jhass> since 1.9 hashes are ordered by insertion. I still wouldn't rely on it
joelroa has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
alvaro_o has joined #ruby
<toretore> it *could* be relied upon
<toretore> insertion order is what he wants
<toretore> but idonlikeit
gja has quit [Client Quit]
mjs2600 has joined #ruby
cj3kim has quit [Remote host closed the connection]
io_syl has joined #ruby
cpruitt has joined #ruby
zerun0_ has joined #ruby
thams has quit [Quit: thams]
monkegjinni has joined #ruby
tziOm has joined #ruby
senayar has joined #ruby
<benzrf> honestly i dont care what order theyre thrown out that much
soheil has joined #ruby
<ilyam> xybre: definitely not thread-safe
marr has joined #ruby
io_syl has quit [Remote host closed the connection]
<xybre> ilyam: Interesting! Then RubyPanther's suggestion of using a mutex might be your only option.
<slowcon> centrx: pretty sure i got it to work. only way to really test is to find elements that are not available to not logged in users, correct?
<ilyam> trying to use it from multiple threads crashes almost immediately with .rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/net/protocol.rb:137:in `select': closed stream (IOError)
io_syl has joined #ruby
<centrx> slowcon, Good idea
<soheil> any idea how to start rails on startup in osx?
<xybre> soheil: use pow?
kpshek has quit []
<ilyam> xybre: that would defeat most of the purpose of trying to multi-thread
jrist has joined #ruby
<ilyam> i could try fork and IPC i suppose … but that sounds complicated
rezzack has joined #ruby
<ilyam> er … not complicated, rather tedious and requires more effort than i'm willing to spend
<ilyam> gtg
<soheil> xybre: no way to not have to install another gem?
echevemaster has quit [Read error: Connection timed out]
Matriks has quit [Remote host closed the connection]
Jdubs has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
<xybre> ilyam: depends on what you're doing with the rest of the code
<xybre> well okay
<xybre> soheil: Sure, make a lauchpad plist
LexicalScope has quit [Ping timeout: 260 seconds]
<xybre> soheil: or add it to your startup items
<soheil> I tried adding it to my rc.local
<slowcon> centrx: one thing that scares me is that this website locks you out after 5 failed attempts
<soheil> but that didn't worked
tziOm has quit [Read error: Operation timed out]
stonevil has joined #ruby
<centrx> slowcon, Better be careful :)
<xybre> soheil: log all the things, might tell you why its not "working"
sambao21 has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Ping timeout: 260 seconds]
<soheil> xybre: looks like it's missing the Gempath, I'll try again... the thing that sucks is that I have to keep restarting to try different things.
raphaelivan has quit [Quit: Leaving.]
<slowcon> centrx: blahhhhhhh! >_<
<xybre> soheil: There's an incantation I use for starting scripts outside of a known environment, I can look it up
Kricir has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
Kricir has quit [Remote host closed the connection]
<soheil> xybre: great ty.
fedesilv_ has joined #ruby
<cek> Hey. I'm following modern way of having gem structure, but somehow, bin script i'm developing can't find the library I'm developing in this gem. What's up? :/
Kricir has joined #ruby
sambao21 has joined #ruby
<cek> it doesn't load `cwd`/lib/library.rb
aryaching has joined #ruby
<benzrf> maybe you mean `pwd`
<pontiki> on os/x, you use launchd, which reads various plist files in /System/Library/LaunchAgents, /Library/LaunchAgents or ~/Library/LaunchAgents
mojo619 has joined #ruby
<cek> yeah, gem's root dir
<xybre> soheil: try this shebang line if you're using rvm: #!/usr/bin/env rvm . do ruby
<xybre> soheil: and then `require 'bundler'; Bundler.setup`
dangerousdave has joined #ruby
<soheil> xybre: cool
cgore has joined #ruby
<pontiki> you want to read up on launchd, launchctl, launchd.conf, and launchd.plist
kpshek has joined #ruby
<xybre> cek: Are you setting up Bundler? It will set up your load path so you should be able to just do `require 'my_lib'` without specifying the path.
randomnick_ has joined #ruby
tgkokk has quit [Ping timeout: 260 seconds]
fedesilva has quit [Ping timeout: 269 seconds]
<soheil> xybre: RVM is not a function, selecting rubies with 'rvm use ...' will not work.
aloitius_ has joined #ruby
<xybre> Hmm.
<pontiki> yeah, actually, i don't think it works that way
<xybre> soheil: You must not have rvm in your .bashrc
pigzzcanfly has quit [Remote host closed the connection]
tziOm has joined #ruby
<cek> xybre: i'm using bundler, whihc should load all stuff but it doesnt
pigzzcanfly has joined #ruby
<pontiki> in a crontab, i invoke them like: bash -l -c 'cd /path/to/app; RAILS_ENV=production rails server'
axsuul has joined #ruby
<xybre> soheil: check out https://rvm.io/workflow/scripting
<soheil> ok
pigzzcanfly has quit [Remote host closed the connection]
<xybre> cek: Do you have `Bundler.setup` in your binary?
<xybre> "binary"
pigzzcanfly has joined #ruby
<cek> that's not necessary as i'm calling that via bundle exec.
<pontiki> crazy talk, xybre
<cek> more than that, it's wrong to put it there as the binscript will be distributed and enduser could not have bundler installed
<xybre> pontiki: apparently!
aryaching has quit [Read error: Connection reset by peer]
jonah_k has quit [Remote host closed the connection]
sed_life_better has joined #ruby
<pontiki> cel: how will it be distributed?
<xybre> Cool story bro?
<pontiki> Don't taze me, bro!
aryaching has joined #ruby
Jdubs has joined #ruby
<pontiki> err, cek*
<xybre> cek: If you don't want to use Bundler, then you'll ahve to do everything that bundler does by hand.
<xybre> Or use require_relative or generate full paths for all requires for everything because lulz.
RaCx has joined #ruby
havv has joined #ruby
<xybre> Seriously, just use bundler.
<xybre> Unless you have like a specific use case in which you know you can't, use bundler.
* pontiki looks at xybre's serious face.
Es0teric has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
* xybre is so serious right now
* boom__ ha
<cek> Bundler is for development. Basic rubygems handling is for distribution.
pfg has joined #ruby
<cek> I was able to resolve the prob by adding require_paths to gemspec that's loaded via Gemfile
<pontiki> watt???
<xybre> Thats an interesting perspective.
<unholycrab> having a problem installing nokogiri on ruby 1.8.7
<xybre> ಠ_ಠ
dingus_khan has joined #ruby
Kricir has quit [Remote host closed the connection]
<xybre> (that was my serious face btw)
<pontiki> oo i like that one
<unholycrab> it says it needs ruby 1.9.2. the nokogiri site says that it is compatible with ruby 1.8
<unholycrab> http://nokogiri.org/tutorials/installing_nokogiri.html how do i instlal nokogiri with ruby 1.8?
tubbo has joined #ruby
timonv has quit [Remote host closed the connection]
<yxhuvud> unholycrab, : you must find a version old enough to support 1.8
<boom__> that is the only way
<yxhuvud> 1.8 is EOL so nokogiri probably dropped the support
aryaching has quit [Quit: sayonara! ^_^]
jhass is now known as jhass|off
troyready has quit [Read error: Operation timed out]
tziOm has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
Kricir has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
Kricir has joined #ruby
randomnick_ has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
kpshek has quit []
Mongey has quit [Quit: Mongey]
stonecol1devin has quit [Ping timeout: 245 seconds]
tziOm has joined #ruby
ringaroses has joined #ruby
zachallett has quit [Remote host closed the connection]
timonv has joined #ruby
<RubyPanther> I think it has been 2 years since Yugui told us 1.8 is going away... or was it 3?
burgess has quit [Quit: ^zzz]
pigzzcanfly has joined #ruby
<xybre> I'm jsut hoping 2.x is going to get more stable and less crashy before 1.9 support runs out.
<RubyPanther> Major stuff was dropping support a year ago, 1.8 is totally toast now
<xybre> It's funny for me to say that since I'm running 2.x everywhere, but still.
<YourBestFriend> can a lambda/proc modify a variable that's passed to it?
<RubyPanther> I've never seen 2.x crash
pranny has quit [Quit: Leaving.]
<benzrf> YourBestFriend: you mean mutate?
<benzrf> an object passed to it?
<benzrf> you can't pass variables
<YourBestFriend> oh =/
burgess has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<xybre> "works for me" is the best reason.
<xybre> YourBestFriend: Uhm, it can't modify variables but it can modify some objects in place if the object allows it.
timonv_ has joined #ruby
<YourBestFriend> I see
aryaching has joined #ruby
noop has quit [Ping timeout: 248 seconds]
<xybre> For instance s = "test"; s.gsub!(/s/,'x'); puts s #=> "text"
chipotle has joined #ruby
<xybre> >> s = "test"; s.gsub!(/s/,'x'); puts s
<YourBestFriend> yeah I know what you mean
<RubyPanther> Everything is an object. Except variables, which are containers for objects.
<xybre> Hmm, no eval.
fmcgeough has quit [Quit: fmcgeough]
timonv has quit [Ping timeout: 240 seconds]
<benzrf> hey, anybody wanna try screwing around with what i've written so far of a cryptocurrency
<Tachoh> what's it called?
<benzrf> it's not publically online
<xybre> Thats a funny name.
<benzrf> and its definitely not usable, i havent written any networking
<benzrf> ;p
<toretore> it's not publically onlinecoin
mercwithamouth has joined #ruby
fmcgeough has joined #ruby
<benzrf> it's called vitural econony
<benzrf> spelled in comic sans
<Tachoh> call it lolcoin
<xybre> ecnony
<xybre> mocomony
<benzrf> right now its possible to simulate a network and mining within a program by passing objects
<toretore> h4ck3rK01n
<RubyPanther> Sounds like something black market... okay, I'm in
<benzrf> but there's no code for actual nodes yetet
<benzrf> *ye
<benzrf> t
<xybre> leetkoin
Matriks has joined #ruby
jobewan has quit [Quit: Leaving]
<benzrf> no networking written yet, just backend stuff like block verification
<benzrf> oops
<benzrf> 03:31 < benzrf> it's called vitural econony
<benzrf> 03:31 < benzrf> spelled in comic sans
starfox21_ has joined #ruby
starfox21 has quit [Ping timeout: 240 seconds]
starfox21_ is now known as starfox21
Aryasam has joined #ruby
dzhulk has quit [Quit: Leaving.]
<RubyPanther> wait, if the name has a specified font, I'm out lol
ecualombian has quit [Remote host closed the connection]
<benzrf> well i mean if you use another font thats fine
<benzrf> it's just that comic sans is the correct onewheelskyward
<benzrf> *one
<benzrf> ^econony
krisbulman is now known as [krisbulman]
razrunelord has quit []
<benzrf> anyway the correct spelling is to misspell itamaryu
<benzrf> *ot
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> ugh
tziOm has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 252 seconds]
<benzrf> if you dont make a typo while writing its name then ur doin it wrong
mando has quit [Read error: Connection reset by peer]
weie has joined #ruby
<slowcon> centrx: close with these? http://pastebin.com/yVZf2hzy
burlyscudd has quit [Quit: Leaving.]
<centrx> slowcon, Sure, looks good. I've only used Mechanize with Perl.
<Tachoh> my vote is 'coincoin'
<YourBestFriend> can someone remind me of the differences between lambdas and procs?
rblackwe_ has quit [Read error: Operation timed out]
<centrx> YourBestFriend, lambdas require a specific number of parameters as defined in the block
<benzrf> so.... anybody wanna try it
<slowcon> centrx: true true. just hard to test. not grabbing the Welcome! text i want
tziOm has joined #ruby
jonah_k has joined #ruby
<RubyPanther> omg benzrf at first I thought I went through a time machine to the 90s, then I saw Obama and realized, this is whole different parallel reality!
weie has quit [Quit: Leaving...]
<centrx> YourBestFriend, and returns in a lambda will return out of the lambda, not out of the surrounding method
dik_dak has joined #ruby
<benzrf> RubyPanther: *obana
RaCx has joined #ruby
jcs222 has quit [Quit: leaving]
<Tachoh> i will make a cryptocoin that steals your bitcoins
<Tachoh> and replaces them with this coin
timonv_ has quit [Remote host closed the connection]
bean__ has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
bean has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
fmcgeough has joined #ruby
coderdad has quit [Remote host closed the connection]
aryaching has joined #ruby
coderdad has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
nomenkun_ has quit [Remote host closed the connection]
jcs222 has joined #ruby
tziOm has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
mjs2600 has joined #ruby
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
burlyscudd has joined #ruby
mark_locklear has quit [Ping timeout: 245 seconds]
ddd has quit [Quit: Kernel reboot]
jason^ has joined #ruby
aryaching has quit [Read error: No route to host]
tziOm has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
petey has quit [Remote host closed the connection]
gja has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<jason^> is there a way when using method_missing to not run a method and use method_missing for it instead, for instance, obj.nodes, nodes is a method but i'd rather it go to the method_missing method for it
aspires has quit []
soheil has quit []
ddd has joined #ruby
petey has joined #ruby
banister has joined #ruby
cpruitt has quit [Quit: cpruitt]
soheil has joined #ruby
<apeiros> jason^: call method_missing directly
<apeiros> it's a method, after all.
cpruitt has joined #ruby
yalue has quit [Quit: Leaving]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
gja has quit [Client Quit]
zachallett has joined #ruby
reset has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby
coderdad has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
petey has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
burgess has quit [Quit: ^zzz]
Wolland has joined #ruby
Jetchisel has joined #ruby
waheedi has quit [Quit: Waheedi]
nanoyak has quit [Quit: Computer has gone to sleep.]
<YourBestFriend> I think I'm going to write my own ruby interpreter and name it after some porn actress I know, how novel is that?
waheedi has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
starfox21 has quit [Quit: starfox21]
tvw has joined #ruby
<toretore> jason^: also, if you're calling method_missing directly, it should probably be called something else and be called from method_missing, as it has a function outside of the scope of method_missing
pranny has joined #ruby
pranny has quit [Client Quit]
kraljev5 has quit [Ping timeout: 245 seconds]
<YourBestFriend> centrx: how can I return from a proc? without returning from the function it is nested in
<jason^> toretore: i agree, it's not my gem though
danshultz has quit [Remote host closed the connection]
dzhulk has joined #ruby
tziOm has quit [Ping timeout: 240 seconds]
<centrx> YourBestFriend, The Proc returns at the end of its execution
cek has left #ruby [#ruby]
<centrx> YourBestFriend, You can either use an control logic like if-statements to get to the end of the Proc, or use a lambda
<benzrf> YourBestFriend: use next
<benzrf> YourBestFriend: next is like return for procs
<centrx> or there you go
momomomomo has joined #ruby
pranny has joined #ruby
<benzrf> YourBestFriend: return will return from the function the proc was defined in
<benzrf> YourBestFriend: break will return from the function the proc was called in
<toretore> jason^: is it builder?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pranny has quit [Client Quit]
danshult_ has joined #ruby
charliesome has joined #ruby
LexicalScope has joined #ruby
senayar has quit [Remote host closed the connection]
coderdad has joined #ruby
charliesome has quit [Client Quit]
pranny has joined #ruby
burlyscudd has quit [Quit: Leaving.]
dzhulk has quit [Client Quit]
tziOm has joined #ruby
<jason^> toretore: Ox
senayar has joined #ruby
InFlames has joined #ruby
<jason^> i really hate trying to parse XML in any language
ecualombian has joined #ruby
<benzrf> what about nokogiri
senayar has quit [Remote host closed the connection]
senayar_ has joined #ruby
<jason^> i've used it before, i'm currently using REXML but i'm trying to parse a 300mb xml file
<jason^> it's still trying to read the document in
<benzrf> ah
<centrx> Use Nokogiri..
echevemaster has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
<onewheelskyward> 300mb? Good luck
<Jason> jason^: there can be only one.
* Jason is the real jason.
<apeiros> jason^: REXML is *a lot* slower than nokogiri
<YourBestFriend> benzrf: yeah but how do I return a result?
<InFlames> sorry if this isn't the easiest to follow, i'm having some big problems with grunt, but the error is ruby, maybe some can help me trace this? https://gist.github.com/gnarmedia/9101560
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pranny has quit [Client Quit]
kitak has quit [Remote host closed the connection]
<jason^> i have a carrot
kevind_ has joined #ruby
pwh has joined #ruby
<benzrf> YourBestFriend: next 3
<benzrf> t looks weird but it works
kitak has joined #ruby
<benzrf> >> proc {next 3; puts "nope"}.call
<eval-in> benzrf => 3 (https://eval.in/103401)
geggam has quit [Remote host closed the connection]
aryaching has joined #ruby
PLejeck has quit [Read error: Connection reset by peer]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
kpshek has joined #ruby
kpshek has quit [Client Quit]
Shidash has joined #ruby
<benzrf> >> "_______".tr "_", "-"
<eval-in> benzrf => "-------" (https://eval.in/103402)
shado has quit [Ping timeout: 240 seconds]
boboc has quit []
<YourBestFriend> benzrf: indeed, looks weird
<YourBestFriend> is there a continue keyword?
randomnick_ has joined #ruby
burlyscudd has joined #ruby
randomnick_ has quit [Max SendQ exceeded]
aryaching has quit [Client Quit]
kevind has quit [Ping timeout: 272 seconds]
<benzrf> dont think so
<benzrf> >> continue
<eval-in> benzrf => undefined local variable or method `continue' for main:Object (NameError) ... (https://eval.in/103403)
kevind_ is now known as kevind
<YourBestFriend> so next is ruby's continue
randomnick_ has joined #ruby
kevind has quit [Client Quit]
<YourBestFriend> is the stabby a lambda or a proc?
<YourBestFriend> >> ->{}.class
<eval-in> YourBestFriend => Proc (https://eval.in/103404)
kevind has joined #ruby
<toretore> >> lambda{}.class
<eval-in> toretore => Proc (https://eval.in/103405)
ianfleeton has quit [Quit: ianfleeton]
<toretore> ;)
<YourBestFriend> wat
pwh has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
coderdad has quit [Remote host closed the connection]
<slowcon> centrx: i went through step by step in pry, and what looks like its happening is the page is going to the "Click here if your browser does not automatically redirect you." page and staying there
<centrx> aha
kitak has quit [Remote host closed the connection]
pranny has joined #ruby
<benzrf> >> ->{}.lambda?
<eval-in> benzrf => true (https://eval.in/103406)
kaptainkibosh has joined #ruby
<benzrf> >> proc {}.lambda?
<eval-in> benzrf => false (https://eval.in/103407)
petey has joined #ruby
<YourBestFriend> what's going on
<benzrf> YourBestFriend: procs and lambdas are both of class Proc
<benzrf> but lambdas have #lambda? => true
kitak has joined #ruby
<YourBestFriend> OK
segv has joined #ruby
geggam has joined #ruby
<benzrf> if you want to turn procs into lambdas the only real way is to use define_method (or one of its derivatives) and then pull a lambda out of the method
timonv has joined #ruby
tubuliferous has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
ilyam has joined #ruby
jonahR has joined #ruby
tziOm has quit [Ping timeout: 260 seconds]
pigzzcanfly has joined #ruby
sed_life_better has quit [Ping timeout: 252 seconds]
burlyscudd has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
<tubuliferous> Hey ruby folks, I want to declare a hash of arrays of arrays
RichardRaseley has joined #ruby
<tubuliferous> what's the best way to do this?
pwh has joined #ruby
mikepack_ has joined #ruby
<toretore> you don't need to declare anything
<toretore> a hash of arrays doesn't make any sense
<tubuliferous> Why not?
<toretore> how would it look?
PLejeck has joined #ruby
<toretore> a hash has keys and values
<RichardRaseley> Need some help related to regex. I have this (https://gist.github.com/richardraseley/6bdc4f025bc840ed1d76) script which should return as a first match group the text found after ' default_realm = ' found on one line in a file. For all the lines that don't match at all it returns nil, but for the line that matches it returns the whole line.
<RichardRaseley> How can I access the first match group only?
<banister> benzrf or you could just wrap the proc in a lambda i guess
<banister> but you won't get return behaviour
<benzrf> yup
<toretore> m[1]
aryaching has quit [Ping timeout: 272 seconds]
<tubuliferous> {"12"=>[[0, 300, 500, 1000, 1500], [200, 600, 1200, 1700, 2000]], "21"=>[[0, 2000], [1000, 2020]]}
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
<tubuliferous> there's a hash of arrays of arrays
<slowcon> centrx: i guess it doesnt really matter if it doesnt redirect me after, as long as its logged in. i can test the login by trying to find that other text "Click here if your browser does not automatically redirect you."
<slowcon> centrx: that will only happen if the login is correct
tziOm has joined #ruby
<toretore> tubuliferous: ok, so you've solved it then ;)
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
<InFlames> can someone help me trace this? https://gist.github.com/gnarmedia/9101560
<tubuliferous> hahaha, yeah...but the point (which I should have made clear earlier, my apologies) is that I want to be able to fill the hash of arrays of arrays with input from a file...
<tubuliferous> so I need to be able to push values to those arrays
<toretore> well that's a completely different thing
havv has quit [Quit: Leaving]
<tubuliferous> so the arrays have to already exist before I start pushing
pwh has quit [Ping timeout: 240 seconds]
<YourBestFriend> hash['12'] = [[]]
<toretore> tubuliferous: why do they need to exist already? can't you just collect each array and then put it together after?
mikepack_ has quit [Ping timeout: 245 seconds]
Guest33226 has quit [Remote host closed the connection]
<centrx> InFlames, Apparently this gem requires a certain crypto library to be installed.
airdisa has joined #ruby
<tubuliferous> toretore: yeah, that's a good point
zoscoy has joined #ruby
<tubuliferous> toretore: I'd still like to be able to create this data structure dynamically, as I read in the data from the file
x1337807x has quit [Ping timeout: 252 seconds]
<toretore> tubuliferous: having said that; i often use Hash.new{|h,k| h[k] = [] }
<tubuliferous> *fill this data structure dynamically
kitak has quit [Remote host closed the connection]
<tubuliferous> oh, cool
dorei has joined #ruby
<tubuliferous> Yeah, that looks good
kitak has joined #ruby
<tubuliferous> let's give that a shot...
<tubuliferous> thanks
<toretore> it's difficult to say what the best way to go about it is when i don't know what you're doing
<tubuliferous> well I don't know what I'm doing either, so... =D
<tubuliferous> I'll let you know if that worked
<pontiki> when you don't know where you're going, any direction will do....
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dorei> hello
gja has joined #ruby
<tubuliferous> right, and your direction looks pretty good
<tubuliferous> that'll do
<dorei> let's say I have a hash that all of its keys are strings and I want to convert them into symbols, is there a nicer way than Hash[{'a'=>1, 'b'=>2}.map{|k,v| [k.to_sym, v]}] ?
sailias has quit [Quit: Leaving.]
<apeiros> dorei: not really
SHyx0rmZ has joined #ruby
joelroa has joined #ruby
<apeiros> if you use a newer ruby, you can use to_h
<dorei> no? :(
<toretore> hsh.keys.each{|k| hsh[k.to_sym] = hsh.delete(k) }
<InFlames> centrx, the thing is, everything should be installed already :/ and it isn't even a ruby project, it's a grunts project running in yeoman
<dorei> newer as in 2.x ?
<toretore> if you want to mutate that is
<apeiros> dorei: not sure. might be 2.1+
<toretore> otherwise, replace first hsh with something else
<apeiros> if you use rails, you can use symbolize_keys
fijimunkii has quit [Ping timeout: 265 seconds]
<apeiros> toretore: .keys.each -> .each_key
<toretore> dorei: why do you want to convert the keys anyway? seems like unnecessary work
<apeiros> oh, wait
francisfish has joined #ruby
<toretore> apeiros: yeah i was going to write that, but didn't know if it existed :)
<apeiros> you mutate the keys
fijimunkii has joined #ruby
<apeiros> no, I think in this case it'd be a bad idea
<toretore> well, the hash
<apeiros> yes. you add new keys and you delete existing keys
<toretore> yes
<apeiros> so .each_key would not do what you want. in this case, .keys.each is proper
subbyyy has joined #ruby
coderdad has joined #ruby
monkegjinni has joined #ruby
tziOm has quit [Ping timeout: 248 seconds]
joelroa has quit [Ping timeout: 252 seconds]
coderdad has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
RichardRaseley has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
Uranio has quit [Quit: WeeChat 0.4.3]
zachallett has quit [Remote host closed the connection]
tziOm has joined #ruby
Kricir has joined #ruby
shado has joined #ruby
airdisa has quit [Remote host closed the connection]
sailias has joined #ruby
aspires has joined #ruby
Vivekananda has quit [Ping timeout: 265 seconds]
burlyscudd has joined #ruby
cpruitt has quit [Quit: cpruitt]
cpruitt has joined #ruby
monkegjinni has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
Vivekananda has joined #ruby
zegerjan has quit [Ping timeout: 260 seconds]
MrV has joined #ruby
kaptainkibosh has quit [Quit: leaving]
camilasan has joined #ruby
tziOm has quit [Read error: Operation timed out]
teenwolf has quit [Ping timeout: 260 seconds]
MrV has quit [Client Quit]
fmcgeough has quit [Quit: fmcgeough]
Czupa has quit [Remote host closed the connection]
aloitius_ has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
shado has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
burlyscudd has joined #ruby
nathancahill has quit [Quit: nathancahill]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
ianfleeton has joined #ruby
jprovazn has quit [Quit: Odcházím]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gja has joined #ruby
nathancahill has joined #ruby
maletor has joined #ruby
shado has joined #ruby
tziOm has joined #ruby
fedesilv_ has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
kaptainkibosh has joined #ruby
IceDragon has quit [Quit: Space~~~]
gja has quit [Client Quit]
sdwrage has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
kaptainkibosh has quit [Client Quit]
danshult_ has quit [Remote host closed the connection]
<slowcon> centrx: got it, it was syntax >_<
<centrx> syn...tax
danshultz has joined #ruby
<slowcon> centrx: was using login_form = agent.page.form.first and should have been using .formS.first
bklane has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<slowcon> centrx: so if im switching between ruby scripts, i wont have to relogin?
<centrx> I don't know, see if the cookie is saved or can be saved
tziOm has quit [Read error: Operation timed out]
chipotle has quit [Quit: cya]
AxonetBE has joined #ruby
gja has quit [Client Quit]
danshultz has quit [Ping timeout: 265 seconds]
IceDragon has joined #ruby
timonv has quit [Remote host closed the connection]
prc has joined #ruby
kayamm has joined #ruby
popl has quit [Ping timeout: 246 seconds]
stryek has quit [Ping timeout: 265 seconds]
gja has joined #ruby
ballPointPenguin has quit [Quit: Connection closed for inactivity]
<slowcon> centrx: thanks, checking out cookiejar
<bodie_> not sure how to get tk working -- do I really need to recompile my own ruby with it or can't I just use rvm somehow?
troyready has joined #ruby
mary5030 has quit [Remote host closed the connection]
benzrf has left #ruby [#ruby]
sailias has quit [Quit: Leaving.]
_HolyCow has quit [Quit: Leaving.]
IceyEC has quit [Quit: IceyEC]
ianfleeton has quit [Quit: ianfleeton]
gja has quit [Client Quit]
danshultz has joined #ruby
monkegjinni has joined #ruby
IceDragon has quit [Read error: Connection reset by peer]
mushky has quit [Quit: mushky]
coderdad has joined #ruby
shawnjgoff has quit [Ping timeout: 260 seconds]
mushky has joined #ruby
phoenixHollywood has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
coderdad has quit [Write error: Broken pipe]
AxonetBE has quit [Quit: AxonetBE]
IceDragon has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<phoenixHollywood> hey guys... I am a little confused about something. I've got a ruby project that has a custom gem in the gemfile... Let's say, it's foo, so I have some code which does require 'foo'.. and when I run specs, it works just fine. I look at the $LOAD_PATH, and I see the foo gem's lib directory in there..
jkamenik has joined #ruby
kirun has quit [Quit: Client exiting]
petey has quit [Remote host closed the connection]
mary5030 has joined #ruby
danshultz has quit [Remote host closed the connection]
<phoenixHollywood> yet when I actually run the code: ruby do_it.rb, when it executes the code that does require 'foo', it blows up-- and $LOAD_PATH does not have that gem's lib in there
daidoji has quit [Quit: WeeChat 0.4.1]
petey has joined #ruby
<phoenixHollywood> But, all the other gems in the project are in the load path, so I am totally confused about why this works in spec land but not in the real world. Does anyone have any ideas?
Xeago has joined #ruby
danshultz has joined #ruby
dik_dak has quit [Quit: Leaving]
monkegjinni has quit [Ping timeout: 260 seconds]
claymore has joined #ruby
<apeiros> phoenixHollywood: you said "in the Gemfile"
<apeiros> so I assume you use bundler
claymore has quit [Changing host]
claymore has joined #ruby
<phoenixHollywood> apeiros: yes...
<apeiros> you'd have to use bundle exec ruby do_it.rb
<apeiros> rspec does that itself I think
burlyscudd has joined #ruby
<phoenixHollywood> apeiros: but what I don't understand is, why would the other gem files be in the load path?
kaldrenon has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
<phoenixHollywood> apeiros: yeah that totally worked.. bundle exec is the man, no wait-- you are the man. thanks
stryek has joined #ruby
<phoenixHollywood> unless you're a woman
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
petey has quit [Ping timeout: 252 seconds]
camilasan has quit [Ping timeout: 260 seconds]
Matriks has quit [Remote host closed the connection]
danshultz has quit [Read error: Operation timed out]
Xeago has quit [Ping timeout: 260 seconds]
troyready has quit [Ping timeout: 252 seconds]
chrisja has joined #ruby
jkamenik has quit [Quit: Leaving.]
jonah_k has quit [Remote host closed the connection]
ianfleeton has joined #ruby
cj3kim has joined #ruby
echevemaster has quit [Remote host closed the connection]
petey has joined #ruby
echevemaster has joined #ruby
petey has quit [Remote host closed the connection]
twiceaday has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
<apeiros> I'm the coder
tziOm has joined #ruby
twiceaday has joined #ruby
fuhgeddaboudit has joined #ruby
fuhgeddaboudit has quit [Read error: Connection reset by peer]
monsieurp has joined #ruby
thumpba has quit [Remote host closed the connection]
ehc has joined #ruby
claymore has quit [Quit: Leaving]
aryaching has joined #ruby
ecualombian has quit [Remote host closed the connection]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
gilcosson has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
ktosiek has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
thams has joined #ruby
petey has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby
pwh has joined #ruby
jonah_k has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
jonah_k has quit [Remote host closed the connection]
angusiguess has joined #ruby
nszceta has joined #ruby
ktosiek has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
senayar_ has quit []
dubsteph has joined #ruby
deception has quit [Quit: Goodbye]
jhass|off is now known as jhass
tziOm has quit [Ping timeout: 260 seconds]
coderdad has joined #ruby
recurrence has quit [Read error: Connection reset by peer]
recurrence has joined #ruby
dangerousdave has joined #ruby
androbtech has quit [Ping timeout: 245 seconds]
androbtech_ has joined #ruby
dangerousdave has quit [Client Quit]
Xeago has joined #ruby
tziOm has joined #ruby
Vivekananda has quit [Ping timeout: 265 seconds]
wca has quit [Ping timeout: 272 seconds]
coderdad has quit [Ping timeout: 245 seconds]
<slowcon> for future reference, if anyone is having trouble with CookieJar for Mechanize, link them to this page. https://gist.github.com/makevoid/4282237
jonah_k has joined #ruby
<slowcon> very easy instructions to follow
pigzzcanfly has quit [Remote host closed the connection]
<slowcon> also got me to thinking that i should store the password for my account in a differnt file, not in the code.
ikaros has quit [Quit: Ex-Chat]
fantazo has quit [Ping timeout: 240 seconds]
airdisa has joined #ruby
IceDragon has quit [Read error: No route to host]
IceDragon has joined #ruby
petey has joined #ruby
jobewan has joined #ruby
maroloccio has joined #ruby
d2dchat has joined #ruby
burlyscudd has quit [Quit: Leaving.]
maximski has quit [Ping timeout: 252 seconds]
fridim_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
interactionjaxsn has quit [Remote host closed the connection]
<slash_nick> slowcon: I usually use environment variables for things like that
nerdgrass has quit [Remote host closed the connection]
tziOm has quit [Ping timeout: 260 seconds]
ktosiek has quit [Ping timeout: 260 seconds]
<jhass> yaml and json files are other common choices. Or just as a parameter to the script
<slash_nick> in the shell, `export my_cool_password='blahblahblah'`... in rails, ENV['my_cool_password']
nerdgrass has joined #ruby
stryek has quit [Ping timeout: 248 seconds]
beond has joined #ruby
<slash_nick> jhass: as long as those yaml and json files aren't in the repo :)
<slowcon> slash_nick: dont know alot about them. reading this now http://ruby.about.com/od/rubyfeatures/a/envvar.htm
mansi_ has quit [Remote host closed the connection]
zachallett has joined #ruby
mansi has joined #ruby
tziOm has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
ktosiek has joined #ruby
agjacome has quit [Ping timeout: 272 seconds]
nerdgrass has quit [Ping timeout: 245 seconds]
IceDragon has quit [Read error: No route to host]
zachallett has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
johnmilton has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 252 seconds]
thumpba has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
<slash_nick> slowcon: i said in rails... in ruby, i meant
mary5030 has quit [Remote host closed the connection]
crus has quit [Ping timeout: 260 seconds]
airdisa has quit [Ping timeout: 265 seconds]
<slowcon> slash_nick: reading that storing in env vars or in a file is vulnerable, but better to use ENVs beacues of version control
<slowcon> slash_nick: so you dont accidently upload them
<jhass> well, any good version control has means to ignore files
<jhass> .gitignore .hgignore (iirc) etc.
tziOm has quit [Ping timeout: 245 seconds]
<slowcon> jhass: true true, just what i was reading. i havent felt comfortable enough to use git yet
lurch_ has quit [Quit: lurch_]
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
<xibalba> boom__,
banister has joined #ruby
FL1SK has quit [Ping timeout: 265 seconds]
nichtdiebohne has joined #ruby
FL1SK has joined #ruby
<xibalba> boom__, join #RubyOnRails too
joelroa has joined #ruby
SegFaultAX has quit [Quit: ZNC - http://znc.in]
tziOm has joined #ruby
SegFaultAX has joined #ruby
qhartman has joined #ruby
joelroa_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
freezey has joined #ruby
kindjal has joined #ruby
nszceta has quit [Quit: out]
bklane has quit [Quit: Leaving...]
kindjal has quit [Client Quit]
joelroa has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
yasushi has joined #ruby
bilbo_swaggins has joined #ruby
pigzzcanfly has joined #ruby
sparrovv has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
ktosiek has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
bilbo_swaggins has quit [Client Quit]
cgore has quit [Remote host closed the connection]
krnflake has quit [Max SendQ exceeded]
Atw has joined #ruby
mib_mib has joined #ruby
krnflake has joined #ruby
tziOm has quit [Ping timeout: 240 seconds]
jerius has quit [Ping timeout: 245 seconds]
asmodlol has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
<mib_mib> hi all - WEBrick::HTTPProxyServer.new - how can i make this hide all of its output to STDOUT except what i want? Its showing ALL requests data and there's just too much, i tried :log => <some logger> but this didnt work
joelroa_ has quit [Ping timeout: 246 seconds]
sambao21 has quit [Read error: Connection reset by peer]
sambao21_ has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
slowcon has quit []
dblessing has quit [Quit: dblessing]
jobewan has quit [Quit: Leaving]
enebo has quit [Quit: enebo]
nowthatsamatt has quit [Quit: nowthatsamatt]
meatherly has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
tziOm has joined #ruby
petey has quit [Ping timeout: 272 seconds]
elaptics`away is now known as elaptics
aryaching has quit [Ping timeout: 260 seconds]
gilcosson has quit []
wallerdev has quit [Ping timeout: 260 seconds]
nerdgrass has joined #ruby
[krisbulman] is now known as krisbulman
ffranz has quit [Ping timeout: 252 seconds]
pwh has quit []
animehti has joined #ruby
danshultz has joined #ruby
<animehti> For all my fellow programmers out there. Do you have to follow this code by the ACM, I am curious. v
<animehti> This is for professional programmers.
tziOm has quit [Ping timeout: 246 seconds]
nerdgrass has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
Rylee has quit [Remote host closed the connection]
asmodlol has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
Rylee has joined #ruby
<centrx> Define "have to"
dorei has quit []
danshultz has quit [Ping timeout: 260 seconds]
tziOm has joined #ruby
aspires has quit []
IceDragon has quit [Read error: No route to host]
kayamm has quit [Quit: part]
* apeiros doesn't have to follow any code
<apeiros> only my work contract and the laws
IceDragon has joined #ruby
cj3kim has joined #ruby
zachallett has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
aspiers has joined #ruby
jbueza has joined #ruby
kitak has quit [Remote host closed the connection]
tziOm has quit [Ping timeout: 272 seconds]
sparrovv has joined #ruby
kitak has joined #ruby
gja has joined #ruby
asmodlol has quit [Remote host closed the connection]
ffranz has joined #ruby
nerdgrass has joined #ruby
aspires has joined #ruby
geggam has quit [Quit: Leaving]
jhass is now known as MrZYX
MrZYX is now known as jhass
cjsarette has quit [Ping timeout: 248 seconds]
jonah_k has quit [Remote host closed the connection]
hiall has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
<pontiki> if i was told i had to follow a code of ethics, i'd find ways to subvert it
<pontiki> ethics cannot be externally enforced and be actually followed
nanoyak has quit [Quit: Computer has gone to sleep.]
nerdgrass has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<boom__> "A man has to have a code" -Omar little
<pontiki> their own
<pontiki> not one imposed
nfk has quit [Quit: yawn]
rayners has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
certainty has quit [Remote host closed the connection]
<pontiki> as it stands, i don't disagree with anything in ACMs code
jonah_k has joined #ruby
itadder has joined #ruby
wca has joined #ruby
cjsarette has joined #ruby
mib_mib has quit [Ping timeout: 245 seconds]
tziOm has joined #ruby
tootubular has quit [Quit: tootubular]
cj3kim has quit [Remote host closed the connection]
nanoyak has joined #ruby
thams has quit [Quit: thams]
thams has joined #ruby
Jetchisel has joined #ruby
nathancahill has quit [Quit: nathancahill]
ianfleeton has quit [Quit: ianfleeton]
tziOm has quit [Ping timeout: 260 seconds]
pwh has joined #ruby
tvw has quit []
Mongey has joined #ruby
tvw has joined #ruby
mikepack has joined #ruby
airdisa has joined #ruby
aspiers has quit [Read error: Operation timed out]
itadder has quit []
<dingus_khan> i like the way you think pontiki
francisfish has joined #ruby
<pontiki> THEN I'M CHANGING
nomenkun has joined #ruby
mlpinit has quit [Remote host closed the connection]
itadder has joined #ruby
<pontiki> but seriously
<dingus_khan> HAH! love it
<pontiki> lawyers are required to follow ethics rules or be disbarred, which means they can't practice law
sassamo has quit [Remote host closed the connection]
<pontiki> what does that say about lawyers as a profession?
<dingus_khan> at least on paper
<pontiki> well, yeah
<pontiki> but there are people who do review such things
<pontiki> licensed engineers have the same requirement in some jurisdictions
<dingus_khan> right; i guess it's an observation of the power they have
<pontiki> and medical professionals do as well
<dingus_khan> i think that's where the end goal starts to differentiate somewhat
<pontiki> there was a time when some people thought software engineers should be licensed as well
<dingus_khan> not in what is abstractly to have ethics, but in pratice
stryek has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dingus_khan> that last point also sounds like an acknowledgement of the power programmers have
<pontiki> maybe
qhartman has quit [Quit: Ex-Chat]
<pontiki> it's never happened in the US afaik
<dingus_khan> not that it excludes other motivations
airdisa has quit [Ping timeout: 265 seconds]
francisfish has quit [Ping timeout: 245 seconds]
<pontiki> one of the serious impediments to licensing software engineers is the pace of change of software development
b00stfr3ak has quit [Ping timeout: 272 seconds]
[gmi] has quit [Read error: Connection reset by peer]
<dingus_khan> likely more industry-specific and public vs. government--are we including things like NDLs and security clearances?
nomenkun has quit [Ping timeout: 252 seconds]
<pontiki> likewise electrical engineering
mikepack has quit [Ping timeout: 245 seconds]
<pontiki> yep yep
<dingus_khan> too broad, probably, to fall under "licensing" the way i think you mean it
<pontiki> but civil engineering doesn't change all that rapidly
<pontiki> not any more
<pontiki> and it has to do with public safety in a very direct way, like doctors
<dingus_khan> indeed, different nature of work
nathancahill has joined #ruby
randomnick_ has quit [Quit: Leaving]
<pontiki> so there are good reasons for having some professions licensed to operate, which demand a code, as well as probably sets of rules
nowthatsamatt has joined #ruby
<pontiki> and someone working on security protocols for the power grid is operating at a vastly different level of public safety than someone writing a php script for their dad's online storefront
<dingus_khan> i guess that's the context argument; makes sense to me
sambao21_ has quit [Quit: Computer has gone to sleep.]
sdwrage has quit [Read error: Connection reset by peer]
PLejeck has quit [Max SendQ exceeded]
sdwrage has joined #ruby
PLejeck has joined #ruby
thams has quit [Quit: thams]
joelroa has joined #ruby
airdisa has joined #ruby
ecualombian has joined #ruby
tziOm has joined #ruby
holmser has joined #ruby
pigzzcanfly has joined #ruby