apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<pcfreak30> RenderRob: me either. i stick to 5.3.3 as i need compatibility on my apps. 5.4 breaks shit with the restrictions on class method signatures on subclases
iliketur_ has joined #ruby
zzz_taion is now known as taion809
sambao21 has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
snath has joined #ruby
<volty> platzhirsch: add "infinite behavior"
mrsolo has quit [Quit: This computer has gone to sleep]
<platzhirsch> volty: ah ok, no. I don't want to do that. That seems non-deterministic ^^
<volty> though you could add "infinite behavior" with assembler too - though with infinite pain
fourq__ has joined #ruby
<pcfreak30> What really annoys me is the overuse of blocks and non use of for/foreach. The syntax gets confusing quicly
<volty> pcfreak30: but there's use of methods that iterate using (for)each
<banisterfiend> pcfreak30: you're talking about ruby or php?
<volty> a.map { |x| x ** 2 } is much clearer and compact than allocating a new array and foreach-ing it
samsagaz has joined #ruby
<xybre> pcfreak30: "for" is Bad in Ruby
<pcfreak30> banisterfiend: ruby. im seing blocks/yeild used everywhere and it gets confusing quicly. I mean I saw opening a file in a block and using the variable passed to write to it
dodosan has quit [Remote host closed the connection]
<xybre> pcfreak30: the File.open block automatically closes the file when it exits, its a feature
<banisterfiend> pcfreak30: yeah, that's actually brilliant :) The file is automatically closed
vlad_starkov has joined #ruby
<volty> pcfreak30: you'll get used very very quickly
<xybre> An *optional* feature mind you
julweber has joined #ruby
<platzhirsch> just eat more of these pills
Tomasso has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
* xybre eats platzhirsch's pillz
<platzhirsch> lol
<platzhirsch> Pilz, mushroom, aye?
<banisterfiend> pcfreak30 we have a bunch of other things like that, for example: capture_io { puts "hello world!" } will capture all writes to stdout in that block and return it as a string, there's similar things like: no_warnings { code inside this block never generates warnings } and things like: after(10.seconds) { puts "hello!" }
rupee has quit [Quit: Leaving]
rcosta has quit [Remote host closed the connection]
<pcfreak30> and capture_io and no_warnings are methods?
<banisterfiend> pcfreak30 yes, they're not in core, but some gems provide it
<banisterfiend> pcfreak30 that's the true power of ruby's blocks (and optional parentheses) you can define methods that look a lot like keywords
duggiefresh has joined #ruby
iamjarvo_ has joined #ruby
<banisterfiend> loop { puts "do this forever" } is actually a method too
<pcfreak30> and how do you define that method
<pcfreak30> can you provide an example?
<banisterfiend> def loop; while(1) yield ; end; end
<banisterfiend> while(true)
vlad_starkov has quit [Ping timeout: 268 seconds]
hamakn has joined #ruby
<volty> while (1) is ok
<volty> while (0.0000001) too :)
snovak has joined #ruby
<volty> while (0) too
<pcfreak30> how exactly does that capture_io function
<pcfreak30> curious n how it captures all output in the block. same on the warnings
<volty> loop { puts "forever" }
beneggett has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
<volty> yield calls the block you pass after 'loop'
iliketur_ has quit [Quit: zzzzz…..]
julweber has quit [Ping timeout: 260 seconds]
<pcfreak30> Ok then whats with the do syntax
<pcfreak30> like each do .. end
<volty> same but not same
fourq__ is now known as lowcard
<volty> at least for 1.8.7 - i don't know about later versions
<volty> something to do with the precedence of evaluation - i can't remember now
RichardBaker has quit [Quit: RichardBaker]
snovak has quit [Ping timeout: 240 seconds]
<banisterfiend> pcfreak30 you just wrap the invocation of block
burlyscudd has quit [Quit: Leaving.]
<volty> pcfreak30: you are going to fall in love ... for sure!
<banisterfiend> pcfreak30 block is invoked with 'yield'
<banisterfiend> so you just make sure you override stdout before the yield
<banisterfiend> and reset it after the yield
v0n has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
<banisterfiend> recording what was done inside the block in the StringIO that you set $stdout to
<platzhirsch> eval '5'
jp- has joined #ruby
<banisterfiend> pcfreak30 similarly with no_warnings, you set the warning level to 0 before the block, and reset it after the block
<banisterfiend> before the block invocation*
beneggett has quit [Ping timeout: 268 seconds]
<volty> very pretty code
zarubin has joined #ruby
iliketur_ has joined #ruby
<samsagaz> guys, wich GUI/IDE use for develop code under ruby?
<banisterfiend> samsagaz emacs
<platzhirsch> samsagaz: Vim
<BraddPitt> xD
saarinen has quit [Quit: saarinen]
<platzhirsch> samsagaz: try RubyMine
<onewheelskyward> samsagaz RubyMine
<onewheelskyward> yep
dodosan has joined #ruby
<volty> there's kate too - though i don't know how what (and if) they added
visof has quit [Ping timeout: 240 seconds]
akells has joined #ruby
katsrc has quit [Remote host closed the connection]
<samsagaz> thx
fridim_ has joined #ruby
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
ravster has left #ruby [#ruby]
failshell has quit [Remote host closed the connection]
tkuchiki has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
gyre007 has joined #ruby
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<samsagaz> wich lib recommend me for html parsing? i want to create an db from parsed data from the html
<pontiki> the one... the only.... NOKOGIRI
mary5030 has joined #ruby
gyre007 has quit [Remote host closed the connection]
<samsagaz> :) ok searching
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
osvico has joined #ruby
DuckDuckDuck has joined #ruby
zeade has quit [Quit: Leaving.]
DuckDuckDuck has left #ruby [#ruby]
Rym has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
jeebster has quit [Quit: Leaving.]
tvw has quit []
hornairs has quit [Quit: hornairs]
<onewheelskyward> nokogiri is the shizz
<onewheelskyward> + css selectors
<pontiki> + xpath
dross_ has quit [Ping timeout: 264 seconds]
<pontiki> it's got it all baby
hornairs has joined #ruby
<onewheelskyward> oh lord xpath
nanoxd has joined #ruby
<onewheelskyward> Great for XML. Pretty ridiculous for anything else. :)
mrsolo has joined #ruby
<volty> onewheelskyward: what do you suggest for html?
<onewheelskyward> nokogiri and the CSS selectors.
lukec has quit [Quit: lukec]
<onewheelskyward> You can do things like .css('#id') or '.class' or 'tag.class'
randomdrake has quit [Quit: randomdrake]
fenicks has quit [Remote host closed the connection]
ssvo has joined #ruby
hamakn has quit [Remote host closed the connection]
Rym has joined #ruby
hamakn has joined #ruby
<pontiki> no, really, xpath does wonders when you want like the third li element under a specific div
<volty> i see, get all of a category at once, with simple indexing that takes care of locating it, whatever deep? possible? thx
butblack has joined #ruby
<pontiki> yus
<onewheelskyward> That's true pontiki
<pontiki> i'm almost always using css selectors
<pontiki> but still, that one time in bandcamp, i needed xpath
hellome has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<banisterfiend> pontiki apparently you can to that stuff in css too (but i wouldn't have a clue how to do it:)
<pontiki> i couldn't figure it out
hamakn has quit [Ping timeout: 264 seconds]
<pontiki> i kept banging on it
<pontiki> and after studying xpath for a few minutes, i had it
<ryanf> pontiki: there's stuff like :nth-child
beneggett has joined #ruby
<pontiki> yes, but somehow it wasn't working the way i needed
<ryanf> I still haven't learned xpath
<ryanf> and I've done a bunch of a screen-scraping stuff and haven't run into a scenario I couldn't handle with the css selectors
<ryanf> but in some cases it might have been more awkward than xpath I guess
<pontiki> bully for you
emergion has quit [Ping timeout: 260 seconds]
<ryanf> oh, sorry, I thought this was #pry since banisterfiend was talking
<ryanf> wouldn't have gone into the personal anecdote otherwise :)
hellome has quit [Remote host closed the connection]
<pontiki> nah, just sounds like you're all so much more betta
<platzhirsch> so how is everyone?
hellome has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
mikeg has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
<platzhirsch> dead fishies
c0rn has joined #ruby
Levin_22 has quit [Quit: Levin_22]
jamesaanderson has joined #ruby
kirun has quit [Quit: Client exiting]
hogeo has joined #ruby
jamesaanderson has quit [Client Quit]
<platzhirsch> I need sleep
SilverKey has joined #ruby
<banisterfiend> platzhirsch u're in eu?
<platzhirsch> banisterfiend: yes
<banisterfiend> where?
ryannielson has left #ruby [#ruby]
<volty> want some? cheap? :)
<platzhirsch> banisterfiend: Berlin
<platzhirsch> either sleep or coffee
<banisterfiend> platzhirsch 255am there?
<volty> coffee or healthy sleeping
<platzhirsch> yeah
|jemc| has joined #ruby
<volty> nokogiri's css selector is amazing, amazingly powerful and amazingly simple
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
visof has joined #ruby
buzzybron has joined #ruby
butblack has quit [Quit: butblack]
chrisja has quit [Quit: leaving]
pen has joined #ruby
rafacv has quit [Read error: Connection reset by peer]
Cyrus_ is now known as Cyrus
rafacv has joined #ruby
sevenseacat has joined #ruby
<platzhirsch> Sleep, Coffee or CoffeeScript
kofno has joined #ruby
SimplyAubs__ has joined #ruby
<pcfreak30> how is a block passed to method? Ia it possible to get a reference to the block in a variable?
jamesaanderson has joined #ruby
<volty> sleep || coffee && coffee ... && die
v0n has quit [Read error: Operation timed out]
<platzhirsch> volty: easy easy private
<platzhirsch> sleep it is
<platzhirsch> just found old code of mine which made me gasp, time for bed. Good night everyone :)
<volty> pcfreak30: yes def loop (other_params, &b); b.call ...
SimplyAubs__ has left #ruby [#ruby]
<pcfreak30> is there any difference between lke each do end and each {}
platzhirsch has left #ruby [#ruby]
twoism_ has quit [Remote host closed the connection]
twoism has joined #ruby
<volty> pcfreak30: i told you, there is (or was) but can't remember in what and where, i only know that it was about precedence of evaluation when nesting (or passing ... or whatever ...)
brianpWins has quit [Quit: brianpWins]
thomasvs has quit [Quit: Coyote finally caught me]
iamjarvo has quit [Remote host closed the connection]
hamakn has joined #ruby
Ripp__ has quit [Quit: Ripp__]
doritostains has quit [Quit: Leaving...]
thomasvs has joined #ruby
iamjarvo has joined #ruby
randomau_ has joined #ruby
kofno has quit [Quit: leaving]
rafacv has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
snovak has joined #ruby
lowcard has quit [Ping timeout: 260 seconds]
browndawg has joined #ruby
tabolario has joined #ruby
yshh has joined #ruby
randomautomator has quit [Read error: Operation timed out]
iamjarvo has quit [Ping timeout: 256 seconds]
randomau_ has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
splittingred has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
JumpMast3r has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
<sevenseacat> that trips me up every so often
Rym has quit [Ping timeout: 240 seconds]
splittingred has quit [Client Quit]
burlyscudd has quit [Ping timeout: 240 seconds]
ksh has joined #ruby
v0n has joined #ruby
zastern has quit [Ping timeout: 245 seconds]
Rym has joined #ruby
<volty> never trip: i always use curly braces, i always enclose function arguments in parenthesis, i always put '()' on method call without params
nari has joined #ruby
<volty> (and that's why i forgot about it)
<Buuyo> you're so full of advice all the time volty!
shvelo has joined #ruby
<volty> naaa, it wasn't an advice, it was about what I do
<Buuyo> it sounds like leading by example. what other great things do you do?
<volty> it is so impressive how imprecise you are!
iliketur_ has quit [Quit: zzzzz…..]
<volty> it is about coherency of writing: stick with whatever but write always in same manner - if you want to avoid trips
<eka> hi there, need to download images from the inet… what's the best option? open-uri? wget? what do you recommend?
<banisterfiend> volty i don't believe you put () on method calls without parms
lowcard has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
<Buuyo> volty: what's your take on collaborative development efforts then? what if the rest of your team uses do end? Do you stick to { } regardless of what the team is doing?
<volty> banisterfiend: absolutely yes // don't want to think if it is a local var or method call when reading back after some time
<banisterfiend> volty you do this? attr_accessor(:x) and loop() { } and public()
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banisterfiend> volty can you show me your github? I just don't believe you do attr_accessor(:x) :)
<volty> banisterfiend: not that deep! :)
<Buuyo> heh
<banisterfiend> volty: right, so you don't always put () on methods without parameters, then ;)
<sevenseacat> so many parens are fugly, ive argued about people doing that time and time again
<volty> yes, you are right, i had to specify that i was talking about code inside methods
<banisterfiend> Buuyo the general rule is {} for single line, and do/end for multi-line blocks
<banisterfiend> but some people use {} when they're interested in the return value, and do;end when they only care about the side effects
<volty> banisterfiend: there's no rule about that, it is a matter of preference
zarubin has quit [Ping timeout: 240 seconds]
pen has quit [Remote host closed the connection]
<sevenseacat> if you use {} for multi line things, people are going to get grumpy at you
pen has joined #ruby
rgbdev has quit [Quit: rgbdev]
<banisterfiend> volty It's not a hard and fast rule, but the things i wrote above are commonly applied
<Buuyo> community standards i suppose
<banisterfiend> personally i always use {} for single line and do/end for multi-line
rodacato has joined #ruby
<volty> the world is nice because there so many non-common people out there
<banisterfiend> Buuyo there is a ruby style guide
<Buuyo> hmm. that sounds very interesting.
<Buuyo> thank you :)
<banisterfiend> Buuyo clearly there are variations, but i think most experienced rubyists would agree with at east 80-90% of that guide
<banisterfiend> least
Rym_ has joined #ruby
<volty> freedom of choice: if you have difficulties reading else's code than write (or use if ready) a reformatter
Rym has quit [Ping timeout: 240 seconds]
Rym_ is now known as Rym
<Buuyo> banisterfiend: i'm happy that looking through this, so far none of the examples are offending my senses. :)
<volty> strange that such a powerful language doesn't have such instruments // should we propose it as a built-in feature?
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
christianrojas has quit [Quit: Leaving...]
tkuchiki has quit [Remote host closed the connection]
<Buuyo> volty: that might be problematic from a change tracking standpoint though, unless your checkin process automatically passes it through a code beautifier. :p
<Buuyo> (putting it back to how it was)
c0rn has quit [Ping timeout: 264 seconds]
<volty> the richness of our world comes from adding solvers for problematic things // i'm sure it will come, though not when
hamakn has joined #ruby
mansi_ has joined #ruby
<volty> i don't like, for example, FooError = Class.new(StandardError)
brianpWins has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<volty> i prefer class FooError < StandardError; end (on two lines too) since I too often add and remove methods (for checking, debugging, or whatever, purposes)
mansi has quit [Read error: Connection reset by peer]
<sevenseacat> i also dont like the single-line methods when the body is empty
jamesaanderson has joined #ruby
Davey has joined #ruby
<volty> i find stupid to tag as bad this rule: < puts 'foo'; puts 'bar' # two expression on the same line
<volty> i find stupid to tag as bad : < puts 'foo'; puts 'bar' # two expression on the same line // since i won't consume extra lines for trivial output
nhhagen has joined #ruby
<Buuyo> what's wrong with extra lines? code's read more often than written. so a little clarity never hurt anyone.
Davey is now known as Eomar
<volty> trivial puts have nothing to do with clarity - imho
zastern has joined #ruby
butblack has joined #ruby
kizzx2 has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
pen has quit [Remote host closed the connection]
SilverKey has quit [Quit: Cheerio!]
<volty> case keyword: i do not agree, for me it is much easier to see the extension of the 'case' when 'when''s are indented - especially if I have a long else clause
<Buuyo> I don't seem to use case very often. :x
<volty> i use case mainly for the sake of matching against class
Domon has joined #ruby
reset has quit [Quit: Linkinus - http://linkinus.com]
<Buuyo> maybe it's from experience in other languages, but if there's a lot of case/switch statements, the code's got a smell to it.
<banisterfiend> volty: in C case is not indented from switch, either.
<volty> banisterfiend: yes, but I used to indent it // maybe i got it from pascal (but now I can't remember the equivalent )
GeissT has joined #ruby
<banisterfiend> volty you're writing non-idiomatic C then ;)
huoxito has joined #ruby
<volty> myself little idiomatic, either :)
mlpinit has joined #ruby
<volty> thanks for the guide, i stop reading, I'm above 85 % compliant
dagnachew has joined #ruby
jdolitsky1 has quit [Quit: Leaving.]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<pontiki> volty: are you talking in verse?
lowcard has quit [Ping timeout: 264 seconds]
<volty> pontiki: from time to time :)
jprovazn has joined #ruby
hamakn_ has joined #ruby
<volty> Buuyo: you are right, imho, ruby is not a case language
hamakn has quit [Read error: Connection reset by peer]
jprovazn has quit [Remote host closed the connection]
<pontiki> volty: kinda neat :)
brianpWins has quit [Quit: brianpWins]
<Buuyo> volty: not just ruby. a lot of oo languages are like that too.
brianpWins has joined #ruby
mary5030 has quit [Remote host closed the connection]
<pontiki> is there any language that handles case/switch well?
<Buuyo> you dont see giant switch cases like ioctl switches in the kernel. heh.
tkuchiki has joined #ruby
<pontiki> i'm almost always going to a jump table / array instead
<volty> Buuyo: i do not agree, i used to do a lot of casing in c++, and pascal before (or delphi - booh)
<banisterfiend> pontiki functional languages have pattern matching, which is like case/switch on a potent mix of cocaine and lsd
<pontiki> i don't much like them in lisp, either
<banisterfiend> pontiki check out haskell and (probably) scala
<pontiki> i should, really
hornairs has quit [Quit: hornairs]
<banisterfiend> in haskell they're quire incredible
<Buuyo> volty: a lot of people associate a smell with c++ code with humongous switch cases.
<pontiki> i started to look into haskell, but, well, you know
pen has joined #ruby
<pontiki> i have LUAHFGG
<volty> me too prefer arrays, but, as you know, when you are concentrated on solving something hard you go by brute force and often do not refactor it
<banisterfiend> pontiki yeah i finished that book a few weeks ago, it's pretty good, but is also pretty confusing in some places, esp when it tries to describe things like foldr
<pontiki> hah
<pontiki> yeah :)
<pontiki> i eventually did get that
<pontiki> by folding paper
<banisterfiend> well the explanation in LUAH was just wrong (according to guys in #haskell :P)
browndawg has quit [Quit: Leaving.]
<pontiki> ah
splittingred has joined #ruby
<pontiki> not surprising actually, given it's provenance
<volty> « functional languages have pattern matching, which is like case/switch on a potent mix of cocaine and lsd» - add viagra and i go for it :)
<Buuyo> oh dear.
pencilcheck has joined #ruby
browndawg has joined #ruby
<volty> i am a mouse and lisp hater
<pontiki> yes. oh, dear...
<pontiki> oh
<volty> lispers more than lisp , ahah
<pontiki> then i'll just leave you to it
<volty> the banisterfiend's quoted above is a kind of a verse - no joke
headius has quit [Quit: headius]
locriani has quit [Remote host closed the connection]
andredublin has joined #ruby
<volty> 04:07 in Venice, i go now so I can catch some sunlight tomorrow
<volty> bye
volty has quit [Quit: Konversation terminated!]
pen has quit [Ping timeout: 260 seconds]
<banisterfiend> Venice, cool
nwertman has quit [Remote host closed the connection]
dagnachew has quit [Ping timeout: 268 seconds]
snovak has joined #ruby
kvirani has joined #ruby
<shevy> why does python look so strange
Tectonic has joined #ruby
duy_ has joined #ruby
tylersmith has joined #ruby
<sevenseacat> python never made sense to me
<sam113101> IT LOOKS LIKE CLIMBING STAIRS
<sam113101> LOLLLLLLLLL
<C0deMaver1ck> time.time() wat
<C0deMaver1ck> Time.now
<C0deMaver1ck> ^ way more sense
aryaching has joined #ruby
pkrnj has joined #ruby
burlyscudd has joined #ruby
<shevy> we are like on two different hills
<shevy> on the other hill are the python guys
<shevy> they seem very strange and different
<sevenseacat> are we firing pea shooters at each other?
snovak has quit [Ping timeout: 264 seconds]
<sam113101> I was a python guy before
<sam113101> when I was a kid
<shevy> sevenseacat hmm let's not anger them, they have more numbers than we have :\
<C0deMaver1ck> shevy: though there are more Ruby web developers than Python web developers
<C0deMaver1ck> but Python developers out number us
<sevenseacat> simply because of rails
<C0deMaver1ck> ^ exactly
beneggett has quit [Ping timeout: 260 seconds]
visof has quit [Ping timeout: 245 seconds]
* C0deMaver1ck hasn't heard any news about django in a looong time
brianpWins has quit [Quit: brianpWins]
<xybre> Wasn't there a movie called django..
<shevy> lol
<C0deMaver1ck> heh
burlyscudd has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 240 seconds]
okinomo has joined #ruby
okinomo_ has joined #ruby
tkuchiki has joined #ruby
mweshi has joined #ruby
dross_ has joined #ruby
Astral__ has quit [Ping timeout: 264 seconds]
digital-ghost has quit [Remote host closed the connection]
hashpuppy has joined #ruby
<xybre> Woops, wrong channel!
<hashpuppy> is there a way to get the min of two functions, but return the values passed to those functions instead? for example. if a.abs < b.abs; a; else b; end
<hashpuppy> would be nice if there was a minf(a,b){|x| x.abs}
<hashpuppy> if that's even valid
pothibo has quit [Quit: pothibo]
<xybre> So write a method that does that?
shvelo has quit [Quit: Leaving]
<hashpuppy> nothing like that already exists. maybe something that composes those functions?
<hashpuppy> ?
daveops has joined #ruby
bronson_ has quit [Quit: bronson_]
randomdrake has joined #ruby
ahill-89 has joined #ruby
viszu has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
<|jemc|> hashpuppy: [3,-5,4].sort{|a,b| a.abs <=> b.abs}.first
<|jemc|> is what I might use in that situation
<hashpuppy> |jemc|: thanks. yeah, i completely didn't think about that
eka has quit [Quit: Computer has gone to sleep.]
obs has joined #ruby
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
<|jemc|> >> p test
<eval-in> |jemc| => wrong number of arguments (0 for 2..3) (ArgumentError) ... (https://eval.in/46748)
axeman- has joined #ruby
<|jemc|> >> 'test'
<eval-in> |jemc| => "test" (https://eval.in/46749)
Rym has quit [Ping timeout: 260 seconds]
swordsmanz has quit [Quit: swordsmanz]
Rym has joined #ruby
zeade has joined #ruby
zeade has quit [Client Quit]
<|jemc|> so if I create an array with embedded **kwargs as if I were passing arguments to a function
<|jemc|> >> [1,2,3,dog:'woof',cow:'moo']
<eval-in> |jemc| => [1, 2, 3, {:dog=>"woof", :cow=>"moo"}] (https://eval.in/46750)
<|jemc|> what is the most elegant way to pull out that Hash from the array (not knowing if it is there or not)? I'm hoping for something more elegant than:
<|jemc|> >> ary = [1,2,3,dog:'woof',cow:'moo']; kwargs = ary.last.is_a?(Hash) ? ary.last : {}
<eval-in> |jemc| => {:dog=>"woof", :cow=>"moo"} (https://eval.in/46751)
maletor has quit [Quit: Computer has gone to sleep.]
<|jemc|> is there a built-in function for that that handles the hash the same way as a **double_splat does?
girija has joined #ruby
rodacato has quit [Remote host closed the connection]
Skylab has quit [Quit: Skylab]
brain_shim has quit [Ping timeout: 264 seconds]
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
yacks has joined #ruby
MrSamuel has joined #ruby
mgorbach_ has joined #ruby
girija has quit [Ping timeout: 260 seconds]
visof has joined #ruby
havenwood has quit [Remote host closed the connection]
mgorbach has quit [Ping timeout: 256 seconds]
mgorbach_ is now known as mgorbach
havenwood has joined #ruby
brain_shim has joined #ruby
randomdrake has quit [Quit: randomdrake]
mlpinit has quit [Remote host closed the connection]
rodacato has joined #ruby
viszu has quit [Quit: Leaving.]
iamjarvo has joined #ruby
adkron_ has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
havenwood has quit [Ping timeout: 264 seconds]
mgorbach has joined #ruby
Tomasso has quit [Ping timeout: 256 seconds]
mgorbach has quit [Read error: Connection reset by peer]
Rym has quit [Read error: Connection reset by peer]
nanoxd_ has joined #ruby
iamjarvo has quit [Ping timeout: 268 seconds]
mgorbach has joined #ruby
<|jemc|> hashpuppy: actually, there is #Enumerable.min_by
tjbiddle has quit [Quit: tjbiddle]
Rym has joined #ruby
<|jemc|> >> [3,-4,5].min_by {|x| x.abs}
<eval-in> |jemc| => 3 (https://eval.in/46752)
dhruvasagar has quit [Ping timeout: 264 seconds]
<|jemc|> just noticed it while looking through Enumerable for something else...
zastern has quit [Remote host closed the connection]
nanoxd has quit [Ping timeout: 264 seconds]
ksh has quit [Quit: ksh]
gildo has quit [Read error: Connection reset by peer]
locriani has joined #ruby
hornairs has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
okinomo_ has quit [Ping timeout: 268 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
aryaching has quit [Ping timeout: 268 seconds]
snovak has joined #ruby
andredublin has quit [Remote host closed the connection]
Eomar has quit [Read error: No route to host]
endash has quit [Quit: endash]
wrseward has quit [Quit: Leaving]
akells has quit [Remote host closed the connection]
iamjarvo has joined #ruby
krz has joined #ruby
burlyscudd has joined #ruby
okinomo has joined #ruby
snovak has quit [Ping timeout: 256 seconds]
okinomo_ has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
kofno has quit [Quit: leaving]
alvaro_o has quit [Quit: Ex-Chat]
burlyscudd has quit [Ping timeout: 245 seconds]
atyz has joined #ruby
atyz has quit [Client Quit]
mansi has quit [Ping timeout: 240 seconds]
mgorbach has quit [Ping timeout: 264 seconds]
dodosan has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
akells has joined #ruby
Ripp__ has joined #ruby
dodosan has joined #ruby
Davey has joined #ruby
rodacato has quit [Remote host closed the connection]
KobraKao has quit [Remote host closed the connection]
doritostains has joined #ruby
julweber has joined #ruby
Spami has joined #ruby
rodacato has joined #ruby
julweber has quit [Ping timeout: 240 seconds]
Rym has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
Rym has joined #ruby
hornairs has quit [Quit: hornairs]
locriani has quit [Ping timeout: 268 seconds]
devoldmx3 has joined #ruby
jlast has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
randomdrake has joined #ruby
headius has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx27 has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
mrsolo has joined #ruby
randomdrake has quit [Client Quit]
devoldmx has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
apfelbox has quit [Read error: Connection reset by peer]
apfelbox has joined #ruby
rodacato has quit [Remote host closed the connection]
devoldmx27 has quit [Ping timeout: 245 seconds]
lfox has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
hamakn_ has quit [Remote host closed the connection]
milardovich has joined #ruby
hamakn has joined #ruby
Davey has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Ping timeout: 260 seconds]
hellome has quit [Remote host closed the connection]
duy_ has quit [Remote host closed the connection]
randomautomator has joined #ruby
fridim_ has quit [Ping timeout: 268 seconds]
randomau_ has joined #ruby
hellome has joined #ruby
Davey has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
hamakn has joined #ruby
kobain_ has joined #ruby
kobain_ has quit [Excess Flood]
pencilcheck has quit [Remote host closed the connection]
kobain_ has joined #ruby
kobain_ has quit [Excess Flood]
kobain_ has joined #ruby
visof has quit [Read error: Connection reset by peer]
kobain_ has quit [Excess Flood]
kobain has quit [Ping timeout: 252 seconds]
kobain has joined #ruby
hellome has quit [Read error: Connection reset by peer]
randomautomator has quit [Ping timeout: 264 seconds]
hellome has joined #ruby
devoldmx3 has joined #ruby
MrSamuel has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 264 seconds]
okinomo_ has quit [Ping timeout: 256 seconds]
okinomo has quit [Ping timeout: 268 seconds]
ryandeussing has quit [Remote host closed the connection]
chairabanta has joined #ruby
ananthakumaran has joined #ruby
RenderRob has quit [Quit: Leaving]
orionstein is now known as orionstein_away
duggiefresh has quit [Remote host closed the connection]
locriani has joined #ruby
hellome has quit [Remote host closed the connection]
mlpinit has joined #ruby
JimmyNeutron has joined #ruby
hellome has joined #ruby
lfox has quit [Quit: ZZZzzz…]
thesheff17 has joined #ruby
milardovich has quit [Quit: Leaving]
Monie has joined #ruby
yacks has quit [Ping timeout: 268 seconds]
akells has quit [Remote host closed the connection]
kstephens has quit [Quit: PredictTheFuture]
mlpinit has quit [Ping timeout: 240 seconds]
Nisstyre has quit [Ping timeout: 264 seconds]
kidoz has quit [Quit: Ухожу я от вас]
dkeefe_ has joined #ruby
jrhorn424 has quit [Quit: Textual IRC Client: www.textualapp.com]
snovak has joined #ruby
zigomir has joined #ruby
pen has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
chairabanta has quit [Quit: Leaving...]
mweshi has quit [Quit: mweshi]
mrsolo has joined #ruby
varfoo has joined #ruby
nitish has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
nitish has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
bronson_ has joined #ruby
kobain has quit []
varfoo has quit [Client Quit]
varfoo has joined #ruby
okinomo_ has joined #ruby
okinomo has joined #ruby
quoin_ has quit [Remote host closed the connection]
quoin has joined #ruby
dodosan has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
Domon has quit [Ping timeout: 264 seconds]
brain_shim has quit [Ping timeout: 246 seconds]
dkeefe_ has quit [Quit: Lost terminal]
quoin has quit [Ping timeout: 264 seconds]
dodosan has quit [Ping timeout: 264 seconds]
Rym has quit [Quit: Rym]
mansi has joined #ruby
kurt21 has joined #ruby
obs has quit [Quit: Konversation terminated!]
yfeldblum has quit [Ping timeout: 248 seconds]
ksh has joined #ruby
sayan has joined #ruby
axeman- has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 268 seconds]
axeman- has joined #ruby
ryandeussing has joined #ruby
chairabanta has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
<diegoviola> some recruiter has been emailing me for a month offering me a $800/month python/c++ job *sigh*
<diegoviola> i told them i'm not interested, as the salary is too low, and they still insist *sigh*
dhruvasagar has joined #ruby
brain_shim has joined #ruby
<|jemc|> ugh
samsagaz has quit [Read error: Connection reset by peer]
mrsolo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
adkron_ has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 240 seconds]
mrsolo has quit [Client Quit]
samsagaz has joined #ruby
mrsolo has joined #ruby
jdolitsky1 has joined #ruby
browndawg has left #ruby [#ruby]
quoin has joined #ruby
companion is now known as Companion
Companion is now known as companion
<banisterfiend> Asher have you heard of this? http://en.wikipedia.org/wiki/OpenDoc
pen has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
chairabanta has quit [Quit: Leaving...]
pen has joined #ruby
kstephens has joined #ruby
alpha123 is now known as alpha123-afk
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d2dchat_ has joined #ruby
jamesaanderson has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
BillCriswell has joined #ruby
girija has joined #ruby
<krz> how can i do something like ['foo','bar'] { |s| "prefix_#{s}" = 'blahblah' }
<krz> which means ill have two variables: prefix_foo and prefix_bar
arusso has quit [Quit: Adios Amigos!]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
butblack has left #ruby [#ruby]
<jrobeson> krz, look at the array class documentation
<pontiki> with an eval. but you'll need to also define prefix_foo and prefix_bar outside the scope of that block
arusso has joined #ruby
codecop has joined #ruby
<pontiki> there is likely a better way to do what you want, though
<krz> jrobeson: simpler trying to do 'prefix_foo' = 'blahblah'
<jrobeson> oh.. you actually want it to have two variables defined after the fact :(
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jrobeson> ididn't realize that the first time
<jrobeson> i'd recommend against doing that..
<krz> trying to convert the string onto a var
<jrobeson> re think your users of prefix_foo and prefix_bar instead
osvico has quit [Ping timeout: 256 seconds]
<jrobeson> it'd be better to just dump them in a hash by prefix
dhruvasagar has quit [Read error: Connection reset by peer]
mootpointer has joined #ruby
narcan has joined #ruby
okinomo_ has quit [Quit: Lost terminal]
mrsolo has quit [Quit: This computer has gone to sleep]
lukec has joined #ruby
tobago has joined #ruby
jdolitsky1 has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
randomdrake has joined #ruby
d2dchat_ has quit [Remote host closed the connection]
nanoxd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoxd has joined #ruby
nanoxd has quit [Client Quit]
disgrntld has quit [Ping timeout: 260 seconds]
MrSamuel has joined #ruby
ksh has quit [Quit: ksh]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<|jemc|> krz: have you looked at instance_variable_set and class_variable_set?
hadees has quit [Read error: Connection reset by peer]
hadees has joined #ruby
Domon has joined #ruby
Davey has quit [Read error: No route to host]
snovak has joined #ruby
<|jemc|> >> name, val = ['dog', 55]; instance_variable_set("@#{name}", val); @dog
<eval-in> |jemc| => 55 (https://eval.in/46758)
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
randomdrake has quit [Quit: randomdrake]
okinomo has quit [Quit: Lost terminal]
baroquebobcat has quit [Quit: baroquebobcat]
okinomo has joined #ruby
okinomo_ has joined #ruby
<|jemc|> you can't set 'local' (non instance, non class, non global) variables this way, but you can't do that with eval either
<|jemc|> (unless the local variable was already defined before the eval)
<pontiki> right
druonysus has joined #ruby
<|jemc|> >> eval "dog = 55"; dog
<eval-in> |jemc| => undefined local variable or method `dog' for main:Object (NameError) ... (https://eval.in/46759)
<pontiki> i *knew* there was a better way
<|jemc|> >> dog = 44; eval "dog = 55"; dog #=> 55
<eval-in> |jemc| => 55 (https://eval.in/46760)
snovak has quit [Ping timeout: 240 seconds]
okinomo_ has quit [Client Quit]
okinomo has quit [Client Quit]
vlad_starkov has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
disgrntld has joined #ruby
alpha123-afk is now known as alpha123
<|jemc|> somewhat frustratingly, eval can't create a local var where there was none. so, as far as I can tell there is no way to 'dynamically' set the name of a new local, with eval or otherwise. it must be a global, ivar, or cvar
burlyscudd has joined #ruby
okinomo has joined #ruby
okinomo_ has joined #ruby
lukec has quit [Quit: lukec]
shtirlic has quit [Ping timeout: 264 seconds]
adkron has quit [Ping timeout: 276 seconds]
okinomo has quit [Client Quit]
okinomo_ has quit [Client Quit]
65MAAYNKC has joined #ruby
64MAAKHRU has joined #ruby
okinomo_ has joined #ruby
okinomo has joined #ruby
okinomo_ has quit [Client Quit]
okinomo has quit [Client Quit]
64MAAKHRU has quit [Client Quit]
shtirlic has joined #ruby
<apeiros> |jemc|: how'd creating a new local make sense at all?
burlyscudd has quit [Ping timeout: 264 seconds]
<apeiros> |jemc|: if you keep eval'ing in the same binding, you can use a new variable. if you don't eval new code, I don't see how creating a new local makes any sense.
mbreedlove has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<|jemc|> it's not like there are any great practical uses I can conceive of at the moment
<apeiros> |jemc|: if you have static code after, then all variables are defined. nothing dynamical there.
<|jemc|> it's just a little counterintuitive that it can't be done until you realize the eval happens in a small nested scope instead of the calling scope
<|jemc|> at which point it follows the rules of a small nested scope
DanKnox is now known as DanKnox_away
<apeiros> no, it's only counter-intuitive if you think about local variables naivly as something like a hash. they are not.
kizzx2 has quit [Quit: Leaving.]
<|jemc|> meh. sure
ksh has joined #ruby
<|jemc|> this is not really a big sticking point for me, and certainly not worth arguing about whether or not something is "intuitive"
<apeiros> and I mean naive in the "programmers meaning" (like "naive solution to problem X")
brain_shim has quit [Ping timeout: 264 seconds]
<|jemc|> yeah, no offense taken
mrnugget has joined #ruby
mansi has joined #ruby
ericwood has quit [Ping timeout: 246 seconds]
ericwood has joined #ruby
iliketur_ has joined #ruby
<V8Energy> i am trying to run ocra to package my script, when i do it, it runs my script, then i call one of the methods in my script that has exit! which exits the application but it seems like ocra exits too...
thesheff17 has quit [Remote host closed the connection]
cody-- has quit [Quit: Computer has gone to sleep.]
dik_dak has joined #ruby
kizzx2 has joined #ruby
tagrudev has joined #ruby
Splourian has joined #ruby
adkron has joined #ruby
tobago has quit [Changing host]
tobago has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
`MArceLL` has quit [Ping timeout: 246 seconds]
headius has quit [Quit: headius]
mbreedlove has quit [Ping timeout: 240 seconds]
mbreedlove_ has joined #ruby
Splourian has quit [Client Quit]
<pontiki> it was someone else's question anyway, originally
eldariof has joined #ruby
n_blownapart has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
mbreedlove_ has quit [Remote host closed the connection]
mootpointer has joined #ruby
tylersmith has quit [Remote host closed the connection]
InFlames has quit [Remote host closed the connection]
mbreedlove has joined #ruby
tylersmith has joined #ruby
mrsolo has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
mbreedlove has quit [Remote host closed the connection]
tylersmith has joined #ruby
ryandeussing has quit [Remote host closed the connection]
mbreedlove has joined #ruby
adkron_ has joined #ruby
adkron has quit [Ping timeout: 264 seconds]
goleldar has quit [Read error: Operation timed out]
nanothief has joined #ruby
mbreedlove_ has joined #ruby
mbreedlove_ has quit [Client Quit]
Alina-malina has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
BillCriswell has quit [Remote host closed the connection]
girija has quit [Read error: Connection reset by peer]
girija has joined #ruby
b00stfr3ak has quit [Ping timeout: 264 seconds]
mbreedlove has quit [Ping timeout: 264 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
randomau_ has quit [Read error: Connection reset by peer]
optimusprimem has quit [Quit: Saindo]
randomautomator has joined #ruby
girija has quit [Read error: Connection reset by peer]
girija has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mbreedlove has joined #ruby
girija has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
girija has joined #ruby
randomautomator has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
jonahR has joined #ruby
goleldar has joined #ruby
ahill-89 has quit [Quit: leaving]
girija has quit [Read error: Connection reset by peer]
girija has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
jbpros has quit [Client Quit]
braoru has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
mbreedlove_ has joined #ruby
mbreedlove has quit [Ping timeout: 245 seconds]
jmccune has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
rodasc has quit [Quit: Disconnecting from stoned server.]
crodas has joined #ruby
JumpMast3r has joined #ruby
jmccune has joined #ruby
<pontiki> quite :)
<pontiki> friend of mine wrote Ook
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
devoldmx3 has quit [Remote host closed the connection]
JumpMast3r has quit [Client Quit]
altamic has joined #ruby
altamic has quit [Client Quit]
Al__ has joined #ruby
guardian_ has joined #ruby
<|jemc|> ha
mbreedlove__ has joined #ruby
Dreamer3 has joined #ruby
mbreedlove__ has quit [Client Quit]
apeiros has quit [Ping timeout: 245 seconds]
mbreedlove_ has quit [Ping timeout: 264 seconds]
Splourian has joined #ruby
girija has quit [Read error: Connection reset by peer]
girija has joined #ruby
gener1c has joined #ruby
pen has quit [Remote host closed the connection]
goleldar has quit [Ping timeout: 246 seconds]
hukl has joined #ruby
Splourian has quit [Client Quit]
Al__ has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
kjellski has joined #ruby
snyp has joined #ruby
tonni_ has quit [Remote host closed the connection]
brianpWins has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
snovak has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
randomautomator has joined #ruby
ferdev has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<xybre> Anyone know how to force Thor to give a backtrace?
<xybre> A single line error does *nothing* to let me debug a problem.
pen has joined #ruby
zz_michael_mbp is now known as mike_mbp
ananthakumaran has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
ayaz has joined #ruby
mike_mbp is now known as funny_banana
Dreamer3 has joined #ruby
corpuscle has joined #ruby
havenwood has joined #ruby
<pontiki> i think you have to do your own :(
randomautomator has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
<xybre> So mad at Thor right now. I'm going to take Mjolnir away and send him to his room without dinner.
Tectonic has quit []
relix has joined #ruby
<banisterfiend> xybre doesn't it have a --trace options like rake?
locriani has quit [Remote host closed the connection]
65MAAYNKC has quit [Quit: Lost terminal]
ndrei has joined #ruby
mansi has joined #ruby
simplyaubs has joined #ruby
locriani has joined #ruby
randomautomator has quit [Ping timeout: 264 seconds]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
<xybre> banisterfiend: no, at least not when its being used as a library :/
leostfn has joined #ruby
huoxito has quit [Quit: Leaving]
mansi has quit [Ping timeout: 240 seconds]
<xybre> I ended up editing the gem in place and inserting some begin/rescue/pry action.
kvirani has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
<banisterfiend> xybre hope u're using stack_explorer
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ckampfe has quit [Ping timeout: 246 seconds]
iliketur_ has quit [Quit: zzzzz…..]
KevinSjoberg has joined #ruby
<xybre> I'm only using pry-debugger, but stack_explorer would be a good idea
Al__ has quit [Quit: Al__]
kayloos has joined #ruby
apeiros has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Client Quit]
dhruvasagar has joined #ruby
<banisterfiend> xybre have you used it b4?
ananthakumaran has joined #ruby
KevinSjoberg has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
boblu has joined #ruby
samsagaz has quit [Read error: Connection reset by peer]
banisterfiend is now known as banister`gym
dhruvasagar has quit [Read error: Connection reset by peer]
pumper has quit [Ping timeout: 264 seconds]
eldariof has quit [Ping timeout: 264 seconds]
javierbuilder has joined #ruby
dhruvasagar has joined #ruby
samsagaz has joined #ruby
ahegyi has joined #ruby
Splourian has joined #ruby
noopq has joined #ruby
n_blownapart has quit [Remote host closed the connection]
burlyscudd has joined #ruby
filipe has joined #ruby
mmozuras has joined #ruby
mmozuras_ has joined #ruby
mmozuras_ has quit [Client Quit]
mmozuras_ has joined #ruby
mmozuras_ has quit [Client Quit]
mmozuras has quit [Client Quit]
mmozuras has joined #ruby
aryaching has joined #ruby
kayloos has quit [Remote host closed the connection]
dik_dak has quit [Quit: Leaving]
corpuscle has quit [Quit: corpuscle]
rezzack has quit [Quit: Leaving.]
JohnBat26 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
diegoviola has quit [Quit: bbl]
burlyscudd has quit [Ping timeout: 264 seconds]
hogeo has quit [Remote host closed the connection]
JohnBat26 has quit [Excess Flood]
hogeo has joined #ruby
JohnBat26 has joined #ruby
afd___ has joined #ruby
guardian_ has left #ruby [#ruby]
mootpointer has quit [Ping timeout: 245 seconds]
girija has quit [Ping timeout: 264 seconds]
aganov has joined #ruby
samsagaz has quit [Ping timeout: 240 seconds]
samsagaz has joined #ruby
Splourian has quit [Quit: Leaving]
afd__ has quit [Ping timeout: 245 seconds]
jonahR has quit [Ping timeout: 260 seconds]
Nilium has quit [Ping timeout: 256 seconds]
samsagaz_ has joined #ruby
samsagaz has quit [Ping timeout: 264 seconds]
clocKwize has joined #ruby
druonysus has quit [Read error: Connection reset by peer]
druonysus has joined #ruby
druonysus has joined #ruby
buibex has joined #ruby
girija has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
ananthakumaran has quit [Read error: Connection reset by peer]
pen has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
snovak has joined #ruby
pen has joined #ruby
apfelbox has quit [Remote host closed the connection]
<Hanmac> apeiros: newest "fun" in the ruby commits : ("hello"f).object_id == ("hello"f).object_id ;P
tvw has joined #ruby
avril14th has joined #ruby
mrnugget has quit [Quit: mrnugget]
<avril14th> >> puts 'Morning!'
<eval-in> avril14th => Morning! ... (https://eval.in/46761)
Macaveli has joined #ruby
ananthakumaran has joined #ruby
pranny has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
doritostains has quit [Quit: Linkinus - http://linkinus.com]
ahawkins has joined #ruby
Lewix has quit [Remote host closed the connection]
s0ny123 has joined #ruby
snyp has quit [Quit: Leaving]
hukl has quit [Quit: Leaving...]
lkba has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<apeiros> hanmac: uh, so we have now a Strimbol? Or a Syming?
<Hanmac> apeiros: i dont know ;P there is the code for this: https://github.com/ruby/ruby/commit/6fd900007616801f4c8adcc0228fe06bd6f1f873
<jrobeson> frozen strings
ryandeussing has joined #ruby
<Hanmac> the funny thing, this "Strimbol"s can be GC'd ;P
mercwithamouth has joined #ruby
<jrobeson> so.. are they immutable?
dhruvasagar has quit [Read error: Connection reset by peer]
mansi has joined #ruby
<jrobeson> seems like it'd require more tests than that
dhruvasagar has joined #ruby
andikr has joined #ruby
apfelbox has joined #ruby
<apeiros> hanmac: ok, sounds like only literals are deduplicated. that's sensible.
ryandeussing has quit [Ping timeout: 240 seconds]
jrhorn424 has joined #ruby
camilasan has joined #ruby
avril14th has quit [Remote host closed the connection]
avril14th has joined #ruby
axeman- has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 256 seconds]
persand has joined #ruby
MRGen has joined #ruby
<MRGen> Hi, everyone, I m a new one, just say hello to u guys
ananthakumaran has quit [Read error: Connection reset by peer]
buibex has quit [Remote host closed the connection]
MRGen has quit [Client Quit]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
maasdesigner has joined #ruby
ananthakumaran has joined #ruby
jonkri has joined #ruby
ssvo has quit [Quit: leaving]
clocKwize has quit [Quit: clocKwize]
ssvo has joined #ruby
ssvo has quit [Client Quit]
adkron_ has quit [Read error: Connection reset by peer]
adkron has joined #ruby
ssvo has joined #ruby
clocKwize has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
Coffers has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
go|dfish has quit [Remote host closed the connection]
javierbuilder has left #ruby [#ruby]
druonysus has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
havenwood has joined #ruby
buibex has joined #ruby
jrhorn424 has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 246 seconds]
ssvo has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
Xeago has joined #ruby
ndrei has joined #ruby
burlyscudd has joined #ruby
Kneferilis has joined #ruby
mklappstuhl has joined #ruby
go|dfish has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
burlyscudd has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
julweber has joined #ruby
mrnugget has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
hamakn has joined #ruby
|jemc| has quit [Ping timeout: 256 seconds]
pen has quit [Remote host closed the connection]
|jemc| has joined #ruby
girija has quit [Ping timeout: 246 seconds]
adnils has joined #ruby
narcan has joined #ruby
Stygia has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
def-lkb has joined #ruby
def-lkb has left #ruby [#ruby]
V8Energy has quit [Ping timeout: 264 seconds]
girija has joined #ruby
jlebrech has joined #ruby
obs has joined #ruby
tesuji has joined #ruby
tonni has joined #ruby
kayloos has joined #ruby
dhruvasagar has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
colonolGron has joined #ruby
starfox21 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
marcgg has quit [Ping timeout: 246 seconds]
gyre007 has joined #ruby
shaunbaker has joined #ruby
elaptics`away is now known as elaptics
shaunbak_ has joined #ruby
snovak has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
GeissT_ has joined #ruby
Zai00 has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
V8Energy has joined #ruby
gyre007 has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
apfelbox has quit [Read error: Connection reset by peer]
apfelbox has joined #ruby
snovak has quit [Ping timeout: 240 seconds]
GeissT has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
hukl has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
clocKwize has quit [Quit: clocKwize]
marcgg has joined #ruby
greenysan has quit [Ping timeout: 240 seconds]
clocKwize has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
<avril14th> >> [1, 2].each do { |i| puts i.to_s }
<eval-in> avril14th => /tmp/execpad-4b16c02eeb4a/source-4b16c02eeb4a:2: syntax error, unexpected '|', expecting '}' ... (https://eval.in/46773)
ghr has joined #ruby
<avril14th> >> [1, 2].each{ |i| puts i.to_s }
<eval-in> avril14th => 1 ... (https://eval.in/46775)
<sevenseacat> hah i do that all the time
SirFunk has quit [Ping timeout: 245 seconds]
LBRapid has quit [Ping timeout: 264 seconds]
<apeiros> avril14th: the bot is for demonstration purposes only. use irb/pry of your local ruby installation for experiments.
yosafbridge has quit [Ping timeout: 245 seconds]
mephux has quit [Ping timeout: 260 seconds]
LBRapid has joined #ruby
<avril14th> apeiros: just explaining something to a mate here
<avril14th> on how remote code execution works
<avril14th> sry
banister`gym has quit [Quit: Computer has gone to sleep.]
Guest6130 has joined #ruby
starfox21 has quit [Ping timeout: 268 seconds]
SirFunk has joined #ruby
Dreamer3 has joined #ruby
Bry8Star{T2 has joined #ruby
yosafbridge has joined #ruby
starfox21 has joined #ruby
apfelbox has quit [Read error: Connection reset by peer]
s0ny123 has quit [Quit: Lost terminal]
apfelbox has joined #ruby
mansi has joined #ruby
closer has joined #ruby
s0ny123 has joined #ruby
kvirani_ has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 245 seconds]
s0ny123 has quit [Client Quit]
s0ny123 has joined #ruby
adambeynon has joined #ruby
|jemc| has quit [Ping timeout: 245 seconds]
Al__ has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
dhruvasagar has joined #ruby
mansi has quit [Ping timeout: 268 seconds]
ananthakumaran has joined #ruby
flughafen has joined #ruby
nari has quit [Ping timeout: 264 seconds]
clocKwize has quit [Quit: clocKwize]
crunch-choco has joined #ruby
platzhirsch has joined #ruby
hukl has quit [Quit: Leaving...]
<platzhirsch> how would you name a variable which used on sleep(time) and which is set higher with every failed operation, so the time until the next try is increased?
<platzhirsch> I had to think of diminishing returns
gstamp has quit [*.net *.split]
closer009 has quit [*.net *.split]
karupanerura has quit [*.net *.split]
cibs has quit [*.net *.split]
<sevenseacat> timeout or something?
apfelbox has quit [Ping timeout: 246 seconds]
Ripp__ has quit [Quit: Ripp__]
<platzhirsch> Oh, timeout is just fine. Haven't thought on that one, thanks ;)
zoee has joined #ruby
<Lewix> do we have a text editor for scope highlight
wudofyr has quit [Ping timeout: 245 seconds]
<workmad3> platzhirsch: exponential backoff
<workmad3> platzhirsch: or at least, backoff time ;) the exponential is really if you do something like multiply by 2 each time
<platzhirsch> workmad3: in fact it's linear backoff
<platzhirsch> workmad3: I do that, isn't that linear?
<platzhirsch> ah, of course
<workmad3> platzhirsch: what? doubling the time on each failed attempt?
<flughafen> morning everybody
<workmad3> platzhirsch: grows exponentially ;)
<platzhirsch> workmad3: yes, you are right. I confused time * 2 * 2 * 2 ... * 2 with time^2^2...^2
niceguyjames has joined #ruby
<platzhirsch> mh
<platzhirsch> ok I got that wrong, toom but I see the difference now
karupanerura has joined #ruby
cibs has joined #ruby
gstamp has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
io_syl has quit []
troessner has joined #ruby
gstamp has joined #ruby
wudofyr has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apfelbox has joined #ruby
gyre007 has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
gyre007 has quit [Remote host closed the connection]
relix has joined #ruby
MrZYX|off is now known as MrZYX
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
Kneferilis has quit [Quit: Leaving]
Kneferilis has joined #ruby
burlyscudd has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
jlebrech has quit [Ping timeout: 245 seconds]
hukl has joined #ruby
gyre007 has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
okinomo has joined #ruby
Desert_eagle has quit [Ping timeout: 256 seconds]
gyre008 has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
girija has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
girija has joined #ruby
hukl has quit [Quit: Leaving...]
zarubin has joined #ruby
dhruvasagar has joined #ruby
mikecmpbll has joined #ruby
<colonolGron> i am currently reading "Essential Skill for the Agile Developer" and came across "acceptance test driven development". can someone tell me what acceptance tests are? i understood it like this: a person (user) tests if the application behaves like intended. its not like a unit test where you have to write code to test. right?
jlebrech has joined #ruby
<platzhirsch> colonolGron: You are right, acceptance tests can also be performed in an analog way
<platzhirsch> or I only know them in an analog way
<platzhirsch> because you need to validate, whether you software fulfills the needs for the end user
seich- has quit [Ping timeout: 240 seconds]
gyre007 has quit [Ping timeout: 268 seconds]
senayar has joined #ruby
ananthakumaran has joined #ruby
<platzhirsch> colonolGron: something like the step before you pass the implemented software to the user to make use of it
neku has joined #ruby
<colonolGron> i see
<platzhirsch> This is extremely helpful if the user and the customer are different groups
senayar has quit [Remote host closed the connection]
<colonolGron> interesting
<platzhirsch> basically the user/customer could decide for himself/herself what the test scenarios are
senayar has joined #ruby
hipertracker has joined #ruby
hipertracker has left #ruby [#ruby]
<colonolGron> thank you platzhirsch
druonysus has quit [Ping timeout: 246 seconds]
dagobah has joined #ruby
platzhirsch has left #ruby [#ruby]
seich- has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
maasdesigner1 has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
maasdesigner has quit [Disconnected by services]
maasdesigner1 is now known as maasdesigner
kayloos has quit [Remote host closed the connection]
mercwithamouth has quit [Quit: leaving]
ananthakumaran has joined #ruby
Astralum has joined #ruby
Nss has joined #ruby
starfox21 has quit [Quit: starfox21]
dhruvasagar has quit [Read error: Connection reset by peer]
snovak has joined #ruby
jonahR has quit [Quit: jonahR]
dhruvasagar has joined #ruby
ryandeussing has joined #ruby
hukl has joined #ruby
jibi has joined #ruby
ewnd9 has joined #ruby
srji has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
julweber_ has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
tesuji has quit [Read error: Connection reset by peer]
ryandeussing has quit [Ping timeout: 240 seconds]
<srji> https://gist.github.com/visualisierte/6447903 are there best practices for writing tests in rspec to test tcpsocket connections?
aryaching has joined #ruby
julweber has quit [Ping timeout: 264 seconds]
sevenseacat has quit [Quit: Leaving.]
<krz> is there a better way to remove elements from one array and the other? [1,2,3,4] - [1,2] will work
shanlar- has joined #ruby
cyborg has joined #ruby
ij has joined #ruby
alup has joined #ruby
<ij> Is there a way to use Net::HTTP in a way that I can change method(get/post) without changing calls? It seems that you can't set_form_data on a get, but only on post.
shanlar has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
<cyborg> I am unable to load the test environment manually for testing my application. I use [ RAILS_ENV=test rake db:create] to go to test environment but it gives me error
<apeiros> ij: um, set_form_data makes no sense on get
<apeiros> since a get request does not have a request body, only the headers.
<ij> It has the query.
<apeiros> cyborg: #rubyonrails
<ij> It still send a hash-like data.
<cyborg> apeiros: yes
<apeiros> cyborg: this is the channel #ruby, you should ask in #rubyonrails
<cyborg> ok
blaxter_ has joined #ruby
apfelbox has quit [Remote host closed the connection]
cyborg has quit [Client Quit]
apfelbox has joined #ruby
enroxorz has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
ArchBeOS has quit [Read error: Connection reset by peer]
<Xeago> apeiros: a body on a GET request makes sense for some usecases, and is not disallowed by the standard but only discouraged
<Xeago> I shy away from any libraries that do not allow me to stuff a body on a GET
tesuji has joined #ruby
mansi has joined #ruby
browndawg has joined #ruby
<ij> apeiros, But still, why differeniate methods if there's only one way to send data in each case?
niceguyjames has quit [Quit: Computer has gone to sleep.]
apfelbox has quit [Ping timeout: 260 seconds]
buibex has quit [Remote host closed the connection]
gyre008 has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 264 seconds]
gyre007 has joined #ruby
Speed has joined #ruby
timonv has quit [Remote host closed the connection]
Nilium has joined #ruby
<workmad3> ij: because it's perfectly valid to set the query string on both a GET and a POST
dhruvasagar has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
user258467 has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
jibi has quit [Ping timeout: 246 seconds]
user258467 has joined #ruby
Hanmac has quit [Quit: Leaving.]
sayan has joined #ruby
buibex has joined #ruby
tatsuya_o has joined #ruby
havenwood has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
Macaveli has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
afd___ has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
bronson_ has quit [Quit: bronson_]
burlyscudd has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
<obs> ij, you can send the data on the url or for example through ajax with a json format, you can differenciate a post,put and delete method for parse the request_body to json with only .to_json and ignote get request
<obs> ignore*
soba has quit [Ping timeout: 245 seconds]
sr78ger has joined #ruby
ananthakumaran has joined #ruby
platzhirsch has joined #ruby
Stygia has quit [Ping timeout: 256 seconds]
<platzhirsch> Do you have a special way of adding logging messages to your code? I am still a bit shy where do put logging statements
<platzhirsch> feels like I am messing up with the logical blocks by splitting them through the logging messages
<ij> Give an example.
Es0teric has joined #ruby
timonv has joined #ruby
burlyscudd has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
seich- has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
<platzhirsch> that's normal right, just populate some logging messages here and there...?
<ij> Yes, you have to put them somewhere.
dhruvasagar has joined #ruby
<ij> But be aware, that not everything you
Stygia has joined #ruby
neku has quit [Quit: Leaving...]
<ij> 'll want to log forever. And often messages that are uninformative(like this one) will with time just become clutter.
ananthakumaran has joined #ruby
havenwood has quit [Remote host closed the connection]
<ij> Also, add newlines between logical/syntactical blocks.
<ij> like before "@compress..." and "if repository..."
<platzhirsch> ij: true, normally I do this, would you isolate the logging message into its own space?
<ij> No, I wouldn't.
<ij> Actually, feel free to make as many as you like and then look where you've went wrong.
<ij> platzhirsch, yes, like that
<platzhirsch> this log message is actually more a logger.debug. For now I just want to use the logging to report process of the running tasks
<platzhirsch> so I see that something is actually happening if they run for a bit
<ij> You should write tests.
ananthakumaran has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
<atmosx> platzhirsch: cucumber teests ;-)
<platzhirsch> that in any case...
<ij> I am strongly opposed to cucumber tests, they aren't as maintainable as rspec+capybara or test::unit.
<platzhirsch> ij: how come? I have worked with rspec, capybare so far
ananthakumaran has joined #ruby
<ij> platzhirsch, Hm?
<platzhirsch> Where does the lack of maintabability come from in cucumber?
<ij> The good idea is that business people will be able to write tests, but that never happens. So what you're left with is calling your test code with regex, not readable function calls in ruby.
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
<platzhirsch> I thought it's a nice way to document your use cases that then again generate a test structure
himsin has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
<Hanmac> some day all my gems will be documented with tests … it will happen shortly after the USA accepts the humanright court in DenHag
<shevy> hehe
wudofyr has quit [Ping timeout: 264 seconds]
<platzhirsch> :\
okinomo has quit [Quit: leaving]
okinomo has joined #ruby
rcosta has joined #ruby
okinomo has quit [Client Quit]
julweber_ has quit [Remote host closed the connection]
kayloos has joined #ruby
wudofyr has joined #ruby
senayar has quit [Remote host closed the connection]
snovak has joined #ruby
okinomo has joined #ruby
hukl has quit [Quit: Leaving...]
Kelet has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
GeissT_ has quit [Quit: MillBroChat AdIRC User]
ananthakumaran has joined #ruby
GeissT has joined #ruby
<platzhirsch> hanmac: apropos libarchive, I guess you also know this libarchive ruby gem? https://bitbucket.org/winebarrel/libarchive-ruby
<jxport> Really vague Q I'll put out there to some Rubyists here. Starting to seriously learn Ruby & Rails. Seems like it's opened up a whole world of possible auxillary techs/languages etc. that I could be learning - a mile away from my crusty old Perl beginnings
chairabanta has joined #ruby
lkba has joined #ruby
<Hanmac> platzhirsch: hm i didnt know it yet, but from looking, mines it better ;P
blackmesa has joined #ruby
<workmad3> jxport: and your question is?
<platzhirsch> hanmac: that was my impression as well ;)
<jxport> Any particular recommendations on where I should place some focus/research in this sphere of things? I'm looking to modernize myself as a developer and be as "cutting-edge" as possible
dhruvasagar has quit [Read error: Connection reset by peer]
<workmad3> jxport: kinda depends on where you want to position yourself
<jxport> workmad3: just pooling for guidance, if any exists, from those that have trodden the path
<platzhirsch> sounds epic
cads has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
camilasan has quit [Remote host closed the connection]
<jxport> workmad3: I've been programming for years since childhood, but I'm only a few months into industry. I'm not really sure what positions (as such) are possible. I'm highly motivated and don't want to run out of direction!
<workmad3> jxport: are you more interested in going front-end html,css,js,json APIs, etc? or back-end databases, searches, services, api design, etc? or get familiar with the whole thing and be a full-stack dev? devops stuff?
starfox21 has joined #ruby
<jxport> workmad3: back-end without a doubt
chairabanta has quit [Client Quit]
camilasan has joined #ruby
shaunbaker has quit [Remote host closed the connection]
<workmad3> jxport: I'd have said the same pretty soon after I started learning web-dev stuff... I quite enjoy being able to handle full-stack though :)
<atmosx> when I grow I'm gonna be full-stack
<jxport> workmad3: how that will (or could) narrow down exactly, I don't know. Devops interested me as it's quite people oriented, but I hate dealing with stuff that goes down / isn't working - so with that in mind, I might want to steer clear(ish) of ops
Senjai has quit [Ping timeout: 264 seconds]
<jxport> workmad3: I'm actually going to be working on a personal project soon (I think having something in my portfolio would be beneficial) - that'll be full-stack
<platzhirsch> jxport: I really don't see a concrete direction here. What hinders you from starting? Get yourself a project, start learning?
<workmad3> jxport: I'd suggest you spend a bit of time and get a rough overview of everything :)
<atmosx> json API is front-end?
<atmosx> I thought was backend
<workmad3> atmosx: sorry, interfacing with json apis
<Hanmac> the backend is the frontend in bizzaroworld ;P
<jxport> platzhirsch: there isn't a concrete direction, it's more inspiration I'm looking for
<workmad3> atmosx: designing them is back-end, talking to them, potentially writing client libraries, etc. I'd class as front-end :)
<atmosx> workmad3: okay, this time you're excused. :-P
Rollabunna has joined #ruby
<atmosx> I like buzzwords
<platzhirsch> jxport: so you are looking for project ideas?
<workmad3> jxport: I tend to just read around in a lot of different areas
<jxport> platzhirsch: I have one particular project idea which I think is really quite good - to demonstrate business acumen and also handle the full-stack
mansi has joined #ruby
<jxport> After that, I guess I'll be looking for what to learn next, once I've demonstrated myself with that (for now)
unixninja92 has quit [Quit: unixninja92]
<atmosx> as always I receive some job offers every known and then and their description is ubiquitus: Jobs Requires "Excellent RoR skills, Excellent SQL and NoSQL and HTML5 and CSS3 and at least 15 JS frameworks and Bootstrap and …. (mention anything you've heard the last 3 months here)" and I always ask myself if they really mean *excellent* or just *can you get your hands dirty with this shit?*
<workmad3> atmosx: I always demand at least 10 years experience from my rails hires!
<jxport> workmad3: I've just finished reading books on mysql, mongo, linux kernel, message queues, ruby, (about to read the rails way)
srji has quit [Quit: leaving]
<atmosx> workmad3: I'll never work for you.
<jxport> workmad3: so at the moment, I'm diving head first into heavy literature (and tearing through it) into very particular topics
Macaveli has joined #ruby
* atmosx just sad
Xeago has quit [Remote host closed the connection]
nari has joined #ruby
platzhirsch1 has joined #ruby
<workmad3> atmosx: in another couple of years, that'll become 15 ;)
<jxport> Once I feel I've got all the technical bases covered; I think I might feel a bit lost!
<platzhirsch1> darn you disconnect, darn you
<atmosx> workmad3: see?
<platzhirsch1> platzhirsch: imposter!
blackmesa has quit [Ping timeout: 240 seconds]
<platzhirsch1> jxport: I think the most important part is motivation, if you have a project that you care more, it might help more than trying to set 'master the technology' as goal
mroth has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Ping timeout: 245 seconds]
<platzhirsch1> care about*
shaunbaker has joined #ruby
platzhirsch1 is now known as platzhirsch
<platzhirsch> roar
<workmad3> jxport: tbh, I'm pretty sure that new technical knowledge is created faster than even the most dedicated person can consume it, so I doubt you'll ever really have all the technical bases 'covered' if you're too much of a perfectionist ;)
kizzx2 has quit [Quit: Leaving.]
<platzhirsch> What exactly is the use case for require_relative? I got confused after refactoring my Ruby structure to a typical Gem structure
mansi has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
rdark has joined #ruby
<workmad3> jxport: but yeah, reading an eclectic mix of technical books is fun... try to get some in there about system design and the like too, get your hands on some of the classics like the Pragmatic Programmer, Clean Code, Refactoring, etc.
<atmosx> platzhirsch: load files (modules?) in the local dir
<atmosx> s/in/from
<workmad3> platzhirsch: there isn't one, IMO
<jxport> workmad3: oh I completely understand that. But I feel that with a firm grip on OSes/kernels, architectural patterns, messaging, particular programming languages, MySQL and NoSQL - I'll have a lot of the dry concrete stuff down
arca0 has joined #ruby
<workmad3> platzhirsch: unless you count 'impose a rather strict relative positional coupling in the file system between this file and my target'
<jxport> workmad3: heh, actually, I plan on reading that sort of stuff next. I sort of see that as the "soft" stuff that I'll be able to treat myself to once I've got all of the heavy tech stuff to actually work with down
<platzhirsch> If I run my gem through ruby -Ilib bin/mdh then I can require all classes/modules with require, which seems confusing because of possible name clashes with other gemss
<jxport> (Although nonetheless certainly beneficial)
<atmosx> platzhirsch: name clashing in ruby is handle by using modules
<workmad3> jxport: I tend to advocate a somewhat more mixed approach nowadays... all of that 'soft' stuff as you put it helps to put the other stuff into context ;)
<platzhirsch> atmosx: oh you are right, I didn't move that one class into my module
<atmosx> platzhirsch: usually when you use require_relative, youre not referring to other gems but files that sit locally somewhere in your system.
<jxport> workmad3: completely agreed - not denigrating it at all - it just made sense to have solid stuff to put into context, before.. getting context :)
ananthakumaran has quit [Read error: Connection reset by peer]
<workmad3> jxport: and getting that side of things straight in your head can make it easier to pick up the more concrete technical stuff and also, more importantly, when it's beneficial to do a deep-dive into something pretty technical :)
<platzhirsch> atmosx: yes, I am just trying to find out, whether I need it or not :P
insulator has joined #ruby
<workmad3> jxport: so I tend to mix them together nowadays ;) not all of one before all of another
okinomo has quit [Ping timeout: 240 seconds]
<jxport> workmad3: yeah eventually I'll be looking to do that. This is a funny period for me at the moment, because it's really the inception of my career
<atmosx> workmad3: you work as a freelancer, consultant or what?
<workmad3> atmosx: err... all of the above?
ananthakumaran has joined #ruby
okinomo has joined #ruby
Criztian has quit [Remote host closed the connection]
starfox21_ has joined #ruby
<workmad3> atmosx: you didn't expect a simple answer to that, did you? :)
brianpWins has quit [Quit: brianpWins]
<atmosx> workmad3: you should change the design http://www.workmad3.com looks like an avg octopress installation heh
starfox21 has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
<workmad3> atmosx: that's because it is
starfox21_ is now known as starfox21
<platzhirsch> My worker (module MetadataHarvester) makes use of MetadataHarvester::JsonArchiver, resides in another file. If I use require 'json_archiver' it's not found, but if I use require_relative 'json_archiver'. I am just not sure if that's the proper way ;)
<workmad3> atmosx: I do need to sort it out :)
<atmosx> workmad3: yeah, I was expecting something more elaborate yearh :-P
camilasa_ has joined #ruby
<workmad3> atmosx: I also need to, at some point, get my ass in gear and start posting stuff to it :)
ewnd9 has quit [Ping timeout: 245 seconds]
<atmosx> workmad3: sure you do, I'll put that on feed
<jxport> workmad3: thanks for the insight - it's great getting a bit of feedback from people who know
<workmad3> I think the last batch of posts were half-assed, vaguely philosophical thoughts I got while reading 'Zen and the art of motorcycle maintenance' :)
TomRone has joined #ruby
<jxport> ps. before I return to work - are there any particular resources that are worth keeping up to date with? Not sure if there are any particular websites/magazines that I should really be paying attention to
<shevy> alright let's get naked
cantonic has joined #ruby
<shevy> jxport only #ruby here :P
camilasa_ has quit [Remote host closed the connection]
<jxport> Wouldn't want to think I'm isolated from industry, heh.
<shevy> though perhaps there are some rails-sites, I dunno
camilasa_ has joined #ruby
zarubin has quit [Ping timeout: 264 seconds]
browndawg has quit [Read error: No route to host]
cads has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
seyha has joined #ruby
seyha has quit [Client Quit]
senayar has quit [Remote host closed the connection]
<joonty> hey all
<joonty> i've run into a weird thing with each_with_object, and concatenating to an array
<atmosx> jxport: just news.ycombinator.com for general industry news, susbcribe here if you want weekly news related on ruby http://rubyweekly.com/archive/160.html … that;s all there is to it.
<joonty> doing `array += another_array` doesn't seem to work within an each_with_object block
<joonty> any ideas?
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
julweber has joined #ruby
atmosx has quit [Quit: Lost in trance]
senayar has joined #ruby
Nisstyre has joined #ruby
seyha has joined #ruby
nomenkun has joined #ruby
seyha has quit [Client Quit]
seyha has joined #ruby
seyha has quit [Client Quit]
seyha has joined #ruby
ryandeussing has joined #ruby
DonRichie has joined #ruby
seyha has quit [Client Quit]
postmodern has quit [Quit: Leaving]
seyha has joined #ruby
buibex has quit [Remote host closed the connection]
Xeago has joined #ruby
seyha has quit [Client Quit]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
syltman has joined #ruby
kayloos has quit [Remote host closed the connection]
allsystemsarego has quit [Ping timeout: 264 seconds]
<joonty> >> [[1, 2], [3, 4]].each_with_object([]) { |v, a| a += v }
<eval-in> joonty => [] (https://eval.in/46791)
<joonty> whyyyyyy
<joonty> >> [[1, 2], [3, 4]].each_with_object([]) { |v, a| a.concat(v) }
<eval-in> joonty => [1, 2, 3, 4] (https://eval.in/46792)
ananthakumaran has quit [Read error: Connection reset by peer]
okinomo has quit [Ping timeout: 268 seconds]
<syltman> Hi noob here, I get the error "undefined method 'each' for 2:fixnum (nomethoderror)" on the line for x in _temp do. I don't understand why
swordsmanz has joined #ruby
ananthakumaran has joined #ruby
<Xeago> syltman: show us some more code
dhruvasagar has quit [Read error: Connection reset by peer]
<Xeago> but the error is quite clear
<Xeago> you are calling each on a number (2)
<Xeago> instead of an array
dhruvasagar has joined #ruby
<syltman> Xeago _temp = ltrSort.length-1 is the line above
Nisstyre has quit [Remote host closed the connection]
<krz> i got two arrays [1,2,3] and [1,2]. how do i remove the elements that are the same in both arrays?
<krz> [1,2,3] - [1,2] works. but doesnt if its the other way around
mikecmpbll has joined #ruby
<Xeago> syltman: your code is just broken
<Xeago> .length-1 returns a number
<Xeago> you can't call each on a number
<Xeago> show the fullc ode if you want help
<syltman> Ok I'll dump the code in a pastebin sec
<Xeago> krz: have a look at array's documentation
<krz> Xeago: did
<Xeago> (or Set's for that matter) it has some really cool methods
<krz> set has a method called diff
<krz> which is what i need. but array doesnt
<Xeago> it seems to me you want the distiction between A and B, right?
<Xeago> krz: is your array actually a set? asin, does it hold the properties of a set?
hogeo has quit [Remote host closed the connection]
<Xeago> if so, just Set.new(a).diff b
ananthakumaran has quit [Read error: Connection reset by peer]
<syltman> Xeago http://pastebin.com/SRkrYnC5 line 34 is where the error is
nhhagen has joined #ruby
<Xeago> syltman: have you even looked at what I said before
hogeo has joined #ruby
<Xeago> this code looks like someone who doesn't know ruby
hogeo has quit [Remote host closed the connection]
<Xeago> have a look at how each aworks
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
<Xeago> >> [1,2,3].each {|e| print e }
<eval-in> Xeago => 123[1, 2, 3] (https://eval.in/46794)
chxane has quit [Read error: Connection reset by peer]
<Xeago> you call each on an array/enumerable
antulik-afk is now known as antulik
ananthakumaran has joined #ruby
<syltman> Xeago ah ok I understand. It should be from 0.._temp right?
<krz> ah think diff was removed
andikr has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
tvw has quit []
kayloos has joined #ruby
rickruby has joined #ruby
dhruvasagar has joined #ruby
<Xeago> syltman: have a look at #each_cons
rickruby has quit [Client Quit]
<Xeago> >> [1,2,3,4,5].each_cons(2).to_a
<eval-in> Xeago => [[1, 2], [2, 3], [3, 4], [4, 5]] (https://eval.in/46795)
<Xeago> that way you don't have to do any magic regarding indices and what not
Domon has quit [Remote host closed the connection]
<Xeago> and you are just sorting, aren't you?
<Xeago> why don't you just sort..?
love_color_text has joined #ruby
nhhagen has quit [Ping timeout: 264 seconds]
Domon has joined #ruby
allsystemsarego has quit [Client Quit]
end_guy has quit [Ping timeout: 240 seconds]
<krz> a=[1,2,3]; b=[1,2]; a-b || b-a
<krz> thats the cleanest ive gotten up to so far
<krz> there should seriously be a diff method for Array though
platzhirsch has left #ruby [#ruby]
<Xeago> than define it?
<apeiros> I assume you mean a-b | b-a ?
mmozuras has quit [Quit: leaving]
love_color_text has quit [Read error: Connection reset by peer]
<apeiros> since || will just return the first expression…
julweber has quit [Remote host closed the connection]
<Xeago> syltman: sort takes a block: ltrSort.sort_by {|e| e[1] }
<krz> apeiros: thanks
mmozuras has joined #ruby
intuxicated has joined #ruby
havenwood has joined #ruby
mroth has joined #ruby
Domon has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
<syltman> Xeago ok gonna use that thanks
dhruvasagar has joined #ruby
antulik is now known as antulik-afk
apfelbox has joined #ruby
KobraKao has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
Hanmac has quit [Quit: Leaving.]
shaunbaker has quit [Remote host closed the connection]
visof has joined #ruby
julweber has joined #ruby
ehaliewicz has quit [Ping timeout: 240 seconds]
Skylab has joined #ruby
KobraKao has quit [Ping timeout: 256 seconds]
maasdesigner has quit [Ping timeout: 256 seconds]
intuxicated has quit [Read error: No route to host]
KobraKao has joined #ruby
mrnugget has quit [Quit: mrnugget]
intuxicated has joined #ruby
Hanmac has joined #ruby
b0oh has joined #ruby
orionstein_away is now known as orionstein
SHyx0rmZ has joined #ruby
mlpinit has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
vince_pr_ has joined #ruby
eka has joined #ruby
mansi has joined #ruby
hamakn has quit [Remote host closed the connection]
vince_prignano has joined #ruby
end_guy has joined #ruby
vince_pr_ has quit [Remote host closed the connection]
tobago has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 240 seconds]
love_color_text has joined #ruby
zarubin has joined #ruby
vince_prignano has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
alekst has joined #ruby
tobago has joined #ruby
Tomasso has joined #ruby
neku has joined #ruby
kofno has joined #ruby
havenwood has joined #ruby
blaxter_ is now known as blaxter
zarubin has quit [Ping timeout: 246 seconds]
b0oh has left #ruby [#ruby]
hamakn has joined #ruby
ndrei has joined #ruby
apfelbox has quit [Read error: Connection reset by peer]
apfelbox has joined #ruby
persand has quit [Quit: persand]
<Kneferilis> hello, is ruby one of the most metaprogrammable languages?
julweber_ has joined #ruby
<Xeago> Kneferilis: doubt it is, metapogramming is easy to do, but there are specific languages for this purpose
<ij> Not more meta-programmable than lisp.
<ij> Kneferilis, Can't get code as data as easily.
KobraKao has quit [Read error: Connection timed out]
persand has joined #ruby
<Kneferilis> Xeago, what specific languages for metaprogramming? My google search revealed languages like listp, ruby
julweber has quit [Ping timeout: 264 seconds]
Macaveli_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
KevinSjoberg has quit [Remote host closed the connection]
<Kneferilis> also, how functional is ruby? Can you compare it to other languages with that in mind?
vlad_starkov has joined #ruby
<intuxicated> you can always compare things
mmitchell has joined #ruby
<Hanmac> Kneferilis … everything in ruby is object oriented, but you can make it look like functional … even if its not ;P
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
<Kneferilis> I see.
<ij> It can look pretty functional.
<Kneferilis> is ruby functional as javascript?
rcosta has quit [Remote host closed the connection]
<ij> What does that mean?
apfelbox has quit [Ping timeout: 240 seconds]
Macaveli has quit [Ping timeout: 260 seconds]
<Kneferilis> well, javacript is pretty functional, php not much, clojure is totally functional, where ruby stands?
<ij> What do you count as functionality?
<Kneferilis> ij, I mean functional programming.
intuxicated has quit [Read error: No route to host]
intuxicated has joined #ruby
havenwood has quit [Remote host closed the connection]
<ij> Well.. What do you count as functional programming. Imagine I'm nine years old.
havenwood has joined #ruby
mmitchell has quit [Remote host closed the connection]
<Kneferilis> ij, that's a tough question, given that I am still learning functional programming
<ij> Well that's why I'm asking.
<ij> FP usually has function-oriented approach to everything, immutable data.
<ij> Does not have that.
<ij> Objects dominate here.
aagdbl has joined #ruby
<ij> Of course, you can do stuff in a fp manner, but it's not something inherent in the lang, IMO. Surely, more knowledgable people will correct me.
seich- has quit [Ping timeout: 240 seconds]
verto has joined #ruby
<xybre> ij: lambda calculus mostly
<ij> Well that too, but wiki doesn't list that as a goal.
* ij shrugs.
<xybre> Difficult to explain that to a 9 year old without a whiteboard
<ij> I know lambda calculus basics.
<Hanmac> Kneferilis: in ruby, even this "functional" stuff are objects
havenwood has quit [Ping timeout: 268 seconds]
akesterson has joined #ruby
<xybre> Ruby is uber-OO, but it has a pretty pwoerful functional aspect as well.
<ij> Unrelated: aren't objects sort of like little programs in their own space and with an API?
<xybre> It has first class anonymous functions (that are also objects, not like JS objects, but like full objects).
<akesterson> https://gist.github.com/akesterson/6449176 <-- I want to store a reference to a string in a list, so that when the string is updated later, the list will still contain the string I expect it to contain. But it seems that 'x="lolzors"' causes x to change its reference to that of a new string object, instead of modifying the content of the previous string object, to which y[0] also points
<akesterson> or am I just missing the plot?
<Hanmac> Kneferilis: in ruby even the classes are full objects … and even the singleton classes of objects are objects too ;P
Macaveli_ has quit [Remote host closed the connection]
<Kneferilis> hanmac, sounds interesting
<Hanmac> akesterson: you are looking for String#replace
<ij> Objects, objects everywhere.
Macaveli has joined #ruby
<akesterson> hanmac : Yep that got it. Thanks much
seich- has joined #ruby
YaNakilon has quit [Ping timeout: 256 seconds]
hukl has joined #ruby
hukl has quit [Changing host]
hukl has joined #ruby
shaunbak_ has joined #ruby
pcfreak30 has quit [Ping timeout: 250 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
buzzybron has quit [Quit: Leaving.]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
Kneferilis has quit [Quit: Leaving]
Kneferilis has joined #ruby
buibex has joined #ruby
kvirani_ has quit [Remote host closed the connection]
kvirani has joined #ruby
Astral_ has joined #ruby
kvirani has quit [Read error: Connection reset by peer]
kvirani_ has joined #ruby
akesterson has left #ruby [#ruby]
YaNakilon has joined #ruby
krz has quit [Quit: krz]
Astralum has quit [Ping timeout: 245 seconds]
niceguyjames has joined #ruby
failshell has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
v0n has joined #ruby
v0n has quit [Client Quit]
v0n has joined #ruby
kayloos has quit [Remote host closed the connection]
buibex has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
browndawg has quit [Ping timeout: 264 seconds]
pothibo has joined #ruby
yfeldblum has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
TIJ has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
sailias has joined #ruby
breakingthings has joined #ruby
ananthakumaran has joined #ruby
buibex has joined #ruby
kayloos has joined #ruby
JDHankle has quit [Remote host closed the connection]
IceDragon has joined #ruby
ndrei has quit [Quit: Lost terminal]
browndawg has joined #ruby
enroxorz has quit [Quit: Leaving]
TIJ has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
insulator has quit [Ping timeout: 240 seconds]
snovak has joined #ruby
himsin has quit [Quit: himsin]
kvirani_ has quit [Remote host closed the connection]
kvirani has joined #ruby
mark_locklear has joined #ruby
LocutusOfBorg has joined #ruby
burlyscudd has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
kvirani has quit [Ping timeout: 276 seconds]
julweber_ has quit [Remote host closed the connection]
LocutusOfBorg has quit [Client Quit]
tesuji has quit [Read error: Connection reset by peer]
kayloos has quit [Remote host closed the connection]
rcosta has joined #ruby
love_color_text has quit [Remote host closed the connection]
intuxicated has quit [Ping timeout: 264 seconds]
ryandeussing has quit [Remote host closed the connection]
niceguyjames has quit [Quit: Computer has gone to sleep.]
hukl has quit [Quit: Leaving...]
spider-mario has joined #ruby
love_color_text has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niceguyjames has joined #ruby
geekbri has joined #ruby
kaldrenon has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
unixninja92 has joined #ruby
kvirani has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
julweber has joined #ruby
tesuji has joined #ruby
hukl has joined #ruby
mansi has joined #ruby
burlyscudd has quit [Quit: Leaving.]
aagdbl has quit [Quit: Leaving.]
unixninja92 has quit [Ping timeout: 268 seconds]
ashp has left #ruby [#ruby]
ryandeussing has joined #ruby
burlyscudd has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
love_color_text has quit [Remote host closed the connection]
tvw has joined #ruby
banisterfiend has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
pygospa has quit [Disconnected by services]
browndawg has quit [Quit: Leaving.]
pygospa has joined #ruby
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
ehc has joined #ruby
snyp has joined #ruby
colonolGron has quit [Quit: Lost terminal]
julweber_ has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_serial_ has joined #ruby
michaellynch has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
_serial_ has quit [Client Quit]
julweber has quit [Ping timeout: 246 seconds]
shevy has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
kayloos has joined #ruby
jbrechtel has joined #ruby
rcosta has quit [Remote host closed the connection]
havenwood has joined #ruby
puppeh has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kayloos has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
jbrechtel has quit [Ping timeout: 246 seconds]
<flughafen> does running a cucumber against one feature read the Rakefile?
jaynewstrom has quit [Remote host closed the connection]
b0oh has joined #ruby
jonahR has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
jaynewstrom has joined #ruby
krawchyk has joined #ruby
atyz has joined #ruby
dkamioka has joined #ruby
puppeh has left #ruby ["bb"]
closer has quit [Ping timeout: 260 seconds]
C0C0 has left #ruby [#ruby]
aagdbl has joined #ruby
buibex has quit [Remote host closed the connection]
clocKwize has joined #ruby
closer has joined #ruby
camilasan has quit [Remote host closed the connection]
wicketn00b has quit [Ping timeout: 260 seconds]
wicketn00b has joined #ruby
b0oh has left #ruby [#ruby]
rodacato has joined #ruby
tkuchiki has quit [Remote host closed the connection]
christianrojas has joined #ruby
Guest6130 is now known as mephux
mephux has quit [Changing host]
mephux has joined #ruby
lucazi has joined #ruby
snovak has joined #ruby
adambeynon has joined #ruby
relix has joined #ruby
arca0 has quit [Remote host closed the connection]
shevy has joined #ruby
tomzx_mac has joined #ruby
asobrasil has joined #ruby
sevenseacat has joined #ruby
aagdbl has left #ruby [#ruby]
Criztian has joined #ruby
iamjarvo has joined #ruby
viszu has joined #ruby
RubyRookie has joined #ruby
brisbin has quit [Ping timeout: 268 seconds]
atyz has quit [Quit: Leaving...]
buibex has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
niceguyjames has joined #ruby
kayloos has joined #ruby
<dawkirst> Hi guys, trying to understand something fundamental: is it better to keep everything in one line by stringing together methods, or better to break it up into variables with names that make semantically more sense and call methods on the variables?
pranny has quit [Quit: Leaving.]
<Kelet> dawkirst, When in doubt, I'd go with the second one, but as usual it depends.
fmcgeough has joined #ruby
adkron_ has joined #ruby
<dawkirst> Kelet, ok, thanks. It does feel that the second one reads better sometimes.
<clocKwize> dawkirst: I'd agree with Kelet, maybe if the one line reads good, then there is no need?
nhhagen has joined #ruby
JDHankle has joined #ruby
jerius has joined #ruby
ehc has quit [Quit: ehc]
<clocKwize> like rspec stubs, @blah.stub(:x).twice.and_return @y
thillux has joined #ruby
<clocKwize> reads nice
havenwood has joined #ruby
buibex has quit [Remote host closed the connection]
<wuest> It depends on a lot of factors. If you might raise an exception somewhere in the chain, for example, it's bad practice.
mrnugget has joined #ruby
mikecmpbll has joined #ruby
orionstein is now known as orionstein_away
maroloccio has quit [Quit: WeeChat 0.4.0]
<dawkirst> clocKwize, wuest, yeah, makes sense
nhhagen has quit [Ping timeout: 245 seconds]
atyz has joined #ruby
<clocKwize> wuest: why would that be bad practice?
<flughafen> does running a cucumber against one feature read the Rakefile?
ewnd9 has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
buibex has joined #ruby
jamesaanderson has joined #ruby
<shevy> dawkirst for one liners or when you want to be as terse as possible, you can chain it all in one go, but for important classes, reusable code, it often helps a lot to break code up into logical chunks and work on that
Kabaka has quit [Remote host closed the connection]
mcat1 has joined #ruby
<clocKwize> flughafen: no, unless you run it through rake
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<flughafen> ls
<clocKwize> if you just do cucumber features/x.feature
MrZYX is now known as MrZYX|off
apfelbox has joined #ruby
<pagios> hi all
Nanuq has joined #ruby
jbrechtel has joined #ruby
<pagios> how can i listen for incoming data coming over serial usb?
seyha has joined #ruby
<clocKwize> pagios: that would really depend on the operating system, driver, etc
<pagios> linux
<clocKwize> but if its linux, you probably have a file you can read/write in /dev
bubu has joined #ruby
<bubu> hey guys, whats wrong with the string interpolation on line 3 of this?
rcosta has joined #ruby
<flughafen> clocKwize: can I run just one feature with rake? i want to test some cucumber formatting in the rake file, but i tried rake FEATURE=/somefeature.feature cucumber, but it still runns all the tests
<clocKwize> bubu: #@base_path/#{element[type]}
<clocKwize> your @base_path is missing the {}
<pagios> clocKwize: there should be abetter way
relix has joined #ruby
<clocKwize> pagios: write one then or find a library that will abstract it away
<pagios> require 'serialport'
<bubu> clocKwize: (bucket.objects.with_prefix("#{@base_path}/#{element[type]}") || []).select do |o|
boblu has quit [Ping timeout: 264 seconds]
<bubu> thanks!
havenwood has quit [Remote host closed the connection]
Kabaka has joined #ruby
<clocKwize> pagios: its programming not building blocks
havenwood has joined #ruby
<clocKwize> reading and writing a file isn't hard
<Hanmac> clocKwize: look at this
<Hanmac> >> @abc= 3; "#@abc"
<eval-in> Hanmac => "3" (https://eval.in/46802)
<pagios> fyi..
Bry8Star{T2 has joined #ruby
<clocKwize> pagios: great, use that then
<clocKwize> hanmac: woah, that blew my mind
phantasm66 has joined #ruby
phantasm66 has joined #ruby
<Hanmac> bubu i would recomend this: Array(bucket.objects.with_prefix("#{@base_path}/#{element[type]}")).select do |o| … it may be more readable
<clocKwize> I didn't know you could do that
<Hanmac> clocKwize: you can do it with "#$0" too
<Hanmac> >> "#$0"
<eval-in> Hanmac => "/tmp/execpad-7e54d2ad40d4/source-7e54d2ad40d4" (https://eval.in/46803)
<clocKwize> I guess it works for single word variables ?
shunt has joined #ruby
<Hanmac> it works for @variables and $variables, and @@variables
iamjarvo_ has joined #ruby
<Hanmac> and yes, all need "single word"
<clocKwize> >> test = 3 ; "#test"
<eval-in> clocKwize => "#test" (https://eval.in/46805)
<clocKwize> :p
<clocKwize> ok
AlSquire has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<clocKwize> there are some ruby features that are silly
<clocKwize> like that
ehc has joined #ruby
kvirani has joined #ruby
<clocKwize> why introduce more syntax, when you can just do #{@test}
<clocKwize> 2 chars more
<clocKwize> for more simplicity of syntax
atyz has quit [Quit: Leaving...]
<clocKwize> or is that still something from the perl days
jbrechtel has quit [Ping timeout: 240 seconds]
<hoelzro> it's probably due to Perl inheritance
<Hanmac> sometimes rubists want to use at less cars as possible ;P
ahegyi has quit [Quit: Leaving]
nomenkun has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
axeman- has quit [Read error: Connection reset by peer]
<clocKwize> I'd definitely go for less scary syntax ;p
axeman- has joined #ruby
atyz has joined #ruby
V8Energy has quit [Ping timeout: 245 seconds]
rodacato has quit [Remote host closed the connection]
<Hanmac> >> nil.nil?? ?a: ?b
<Hanmac> >>nil.nil?? ?a: ?b
ij has quit [Read error: Operation timed out]
iamjarvo has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
Yayo has joined #ruby
<eval-in> Hanmac => "a" (https://eval.in/46806)
<eval-in> Hanmac => "a" (https://eval.in/46807)
krawchyk has quit [Remote host closed the connection]
ij has joined #ruby
sailias has joined #ruby
krawchyk has joined #ruby
mansi has joined #ruby
<clocKwize> odd
Loaft has quit [Ping timeout: 246 seconds]
<clocKwize> hmm, just googled my name with github after it, found someone in heres chatlogs
haxrbyte has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
<clocKwize> like whole client chat logs
<clocKwize> including nickserv auth
mmitchell has joined #ruby
<mcat1> :0
<Hanmac> hm that should not happen ;P
<clocKwize> submitted an issue to his repo
mmitchell has quit [Read error: Connection reset by peer]
<clocKwize> lol
<mcat1> haha
MrZYX|off is now known as MrZYX
mmitchell has joined #ruby
<relix> hey guys
snath has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
<relix> I've watched some rubytapas by avdi and i'm wondering if he's using a special script
<relix> he codes in emacs, and often he'll end a line with " # => "
<relix> I think he then presses a button, and the code is executed, and the result of the code on that line is pasted after the # =>
<Hanmac> relix #=> means that would be the output of this line
<relix> hanmac yes, how does he do that
adkron_ has left #ruby [#ruby]
<relix> I've checked his FAQ and his blog for hints what software he uses, but all I got was that he uses Emacs in Org-mode
ehc has quit [Quit: ehc]
<Hanmac> hm no i think he only typed the result
<relix> hanmac oh
<MrZYX> that's rcodetools xmpfilter, don't ask me how to integrate that into emacs
codecop has quit [Remote host closed the connection]
<relix> MrZYX thanks I'll google that
<relix> I personally use vim or sublime
<MrZYX> for sublime there's the Ruby Marker plugin for it
solidoodlesuppor has joined #ruby
adambeynon has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 245 seconds]
ehc has joined #ruby
<relix> MrZYX awesome, that's exactly what I need
<relix> thanks MrZYX !
<relix> I can't believe how much time I wasted prototyping in irb or switching between CLI and editor
<relix> this changes everything!
aagdbl has joined #ruby
<shevy> hey
* relix wipes away a tear
<shevy> I still use irb a lot
aaronmcadam has joined #ruby
tesuji_ has joined #ruby
<relix> typing methods or classes in irb kinda gets old, as does switching between editor and cli to load a ruby file
* Hanmac prefers gedit, eclipse of if nothing is at hand vim
* wuest lives in a term, so tmux, vim in n panes for some value of n, irb in one pane.
<snyp> how can i load a .rb file into irb? i just started learning ruby.
<IceDragon> Sublime Text...
Tobarja has quit [Ping timeout: 264 seconds]
<snyp> (so I am lurking in the channel ofc)
<IceDragon> greetings fellow rubyists
<IceDragon> snyp: load "filename_here"
<snyp> k
rickruby has joined #ruby
<RubyRookie> Greetings!
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kurt21 has quit [Read error: Operation timed out]
<IceDragon> How are you today?
atyz has quit [Quit: Leaving...]
tesuji has quit [Ping timeout: 246 seconds]
Uranio has joined #ruby
momomomomo has joined #ruby
<RubyRookie> I'm good! How are you?
<relix> poop, the ruby markers plugin isn't working :(
<relix> "There was an OS error: No such file or directory"
<RubyRookie> IceDragon....are you good at Ruby Programming?
browndawg has joined #ruby
<IceDragon> somewhat
yxhuvud2 has joined #ruby
cody-- has joined #ruby
<IceDragon> Not God Tire, but definetly competent
Tobarja has joined #ruby
<relix> never mind googled it
<shevy> I must code an AI that codes for me
crunch-choco has quit [Quit: leaving]
<RubyRookie> heheh
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
<IceDragon> shevy: that gets rather complicated
<shevy> then it is done wrong
<IceDragon> o.o What if it writes its own OS and takes over your PC, and then the world
<IceDragon> How will you fix that problem?
<shevy> that would also be wrong
havenwood has quit [Remote host closed the connection]
<wuest> shevy: so you actually code lisp to code ruby? :p
<shevy> I will fix it by disabling evolution in this direction
<shevy> I only need slave status
<IceDragon> And if it figures out its being slaved?
<shevy> wuest (lisp(is(so(dead(man
havenwood has joined #ruby
yxhuvud has quit [Ping timeout: 260 seconds]
<shevy> IceDragon then an error must have happened before that moment
<IceDragon> lol
<IceDragon> Looks like you have it figured out then
<wuest> shevy (lisp(lives(forever(parens(are(super(cool man)))))))
<shevy> IceDragon take an ant ... you won't see an ant read a book, it is too limited
<shevy> imagine skynet running on amiga OS
senayar_ has joined #ruby
<IceDragon> o_o
<shevy> wuest perhaps the ideas of lisp :)
hasrb has joined #ruby
<shevy> and emacs
<IceDragon> why did I imagine a lil ant with a book..
<shevy> IceDragon to visualize that it has only a certain potential and can not exceed it
<IceDragon> back to work..
angusiguess has joined #ruby
jlast has joined #ruby
tkuchiki has joined #ruby
hellome has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 240 seconds]
mrnugget has quit [Quit: mrnugget]
havenwood has quit [Ping timeout: 245 seconds]
hellome has joined #ruby
senayar_ has quit [Remote host closed the connection]
Coolhand has joined #ruby
Bira has joined #ruby
senayar has joined #ruby
toddWork_ has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
seich- has quit [Ping timeout: 240 seconds]
senayar_ has joined #ruby
unixninja92 has joined #ruby
senayar_ has quit [Remote host closed the connection]
Neomex has quit [Quit: Neomex]
lfox has joined #ruby
senayar_ has joined #ruby
claymore has joined #ruby
<shevy> damn
<shevy> for x in {a..z}{1..9}{A..Z}; do echo $x; done
<shevy> can ruby be shorter than this? :\ :/
<IceDragon> O_O wtf...
senayar has quit [Read error: Connection reset by peer]
jbrechtel has joined #ruby
JumpMast3r has joined #ruby
<shevy> that just spits out strings like "z9V" or "z9W" in shell
<IceDragon> oh
<IceDragon> not sure..
toddWork_ is now known as orolo
seyha has quit [Quit: Lost terminal]
tabolario has joined #ruby
peregrine81 has joined #ruby
niceguyjames has joined #ruby
peregrine81 has quit [Max SendQ exceeded]
seyha has joined #ruby
atyz has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
shaunbak_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
<wuest> shevy - I don't think you're getting any more terse than that.
okinomo has joined #ruby
seyha has quit [Client Quit]
mklappstuhl has joined #ruby
<apeiros> shevy: that one not, no, but `puts *"a0A".."z9Z"` would work if the middle was 0..9
iamjarvo_ has quit [Remote host closed the connection]
jbrechte_ has joined #ruby
yshh has joined #ruby
iamjarvo has joined #ruby
<_br_> Probably the answer is no, but is there any way of guaranteeing that ObjectSpace.define_finalizer is called immediately after e.g. object reference is nil ?
Es0teric has joined #ruby
lukec has joined #ruby
seich- has joined #ruby
jbrechtel has quit [Ping timeout: 264 seconds]
<hoelzro> _br_: I would assume no
seyha_ has joined #ruby
seyha has joined #ruby
shaunbaker has joined #ruby
<hoelzro> mark and sweep garbage collection is nondeterministic
<seyha> 1~
<wuest> apeiros: nice! Range frequently surprises me with niceties.
seyha has quit [Client Quit]
seyha_ has quit [Client Quit]
seyha has joined #ruby
seyha_ has joined #ruby
axeman- has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
dhruvasagar has joined #ruby
jprovazn has quit [Quit: Odcházím]
<_br_> hoelzro: Yes, thanks. I guessed as much. :/
seyha has quit [Client Quit]
seyha_ has quit [Client Quit]
<shevy> cool, that's quite short apeiros
jalcine has quit [Excess Flood]
yshh has quit [Ping timeout: 256 seconds]
jlast has quit [Read error: Connection reset by peer]
Es0teric has quit [Client Quit]
jlast has joined #ruby
starfox21 has quit [Quit: starfox21]
kpshek has joined #ruby
jlast has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
shaunbak_ has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
<apeiros> it's actually interesting, that it doesn't go from "a0Z" to "a0AA"
<apeiros> because "Z".succ # => "AA"
niceguyjames has quit [Ping timeout: 264 seconds]
seyha has joined #ruby
seyha_ has joined #ruby
aryaching has joined #ruby
nanoxd has joined #ruby
seyha_ has quit [Client Quit]
seyha has quit [Client Quit]
atyz has quit [Quit: Leaving...]
shaunbaker has quit [Ping timeout: 245 seconds]
Soda has quit [Read error: Connection reset by peer]
<Hanmac> yeah string#succ is very funny ;D
ffranz has joined #ruby
kurt21 has joined #ruby
atyz has joined #ruby
<Hanmac> apeiros look at this:
<Hanmac> >> "1.2.9".succ
<eval-in> Hanmac => "1.3.0" (https://eval.in/46813)
<_br_> Unfortunately, surjective.
Rym has joined #ruby
rodacato has joined #ruby
jalcine has joined #ruby
aagdbl has quit [Ping timeout: 256 seconds]
jlast_ has quit [Remote host closed the connection]
jlast has joined #ruby
BillCriswell has joined #ruby
shaunbak_ has joined #ruby
rodacato has quit [Remote host closed the connection]
dml has joined #ruby
seyha has joined #ruby
seyha has quit [Client Quit]
seyha has joined #ruby
dkamioka_ has joined #ruby
dml is now known as Guest35775
seyha has quit [Client Quit]
Guest35775 has quit [Client Quit]
dml_ has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
krz has joined #ruby
dkamioka has quit [Ping timeout: 264 seconds]
atyz has quit [Quit: Leaving...]
senayar has joined #ruby
axeman- has quit [Remote host closed the connection]
<apeiros> hanmac, _br_: even if it may sometimes be nice what string-ranges do, it's IMO far too complex
tatsuya_o has quit [Ping timeout: 240 seconds]
<apeiros> hm… Array#succ…
sr78ger has quit [Read error: Operation timed out]
mrsolo has joined #ruby
atyz has joined #ruby
niceguyjames has joined #ruby
quoin has quit [Remote host closed the connection]
Es0teric has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
senayar_ has quit [Ping timeout: 260 seconds]
quoin has joined #ruby
seyha has joined #ruby
seyha has quit [Client Quit]
iamjarvo_ has joined #ruby
<_br_> I agree on that apeiros. Though some people really want to force it for their usecase. http://www.dzone.com/snippets/implement-ruby-string-class (implementation of one possible #prev)
seyha has joined #ruby
jamesaanderson has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ksh has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
b0oh has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
<Hanmac> apeiros: i think ruby should support succ/prev with range attribute or something so the object can decice in wich "direction" it sould go forward or backward … (interesting for an range of 3D points ;P )
mansi has joined #ruby
jamesaanderson has quit [Client Quit]
seyha has quit [Client Quit]
<_br_> Way too ambigious no? There are so many corner cases, as a stdlib implementer you would get crazy.
seyha has joined #ruby
b0oh has left #ruby [#ruby]
mansi has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 264 seconds]
seyha has quit [Client Quit]
seyha has joined #ruby
mansi has joined #ruby
ananthakumaran has quit [Client Quit]
seyha has quit [Client Quit]
seyha has joined #ruby
adambeynon has joined #ruby
unixninja92 has quit [Quit: unixninja92]
julweber_ has quit [Ping timeout: 264 seconds]
rodacato has joined #ruby
ksh has joined #ruby
braoru has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
thesheff17 has joined #ruby
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
michaellynch has quit [Quit: michaellynch]
snyp has quit [Quit: leaving]
seyha_ has joined #ruby
seyha_ has quit [Client Quit]
seyha has quit [Client Quit]
hukl has quit [Quit: Leaving...]
mansi has quit [Ping timeout: 245 seconds]
seyha has joined #ruby
seyha has quit [Client Quit]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
dkamioka_ is now known as dkamioka
niceguyjames has joined #ruby
tagrudev has quit [Remote host closed the connection]
atyz has quit [Quit: Linkinus - http://linkinus.com]
razi has joined #ruby
seyha has joined #ruby
okinomo has quit [Quit: Lost terminal]
aganov has quit [Quit: aganov]
seyha_ has joined #ruby
seyha_ has quit [Client Quit]
momomomomo has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
mary5030 has joined #ruby
julweber has joined #ruby
mary5030 has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
seyha_ has joined #ruby
seyha_ has quit [Client Quit]
seyha has quit [Client Quit]
seyha_ has joined #ruby
seyha_ has quit [Client Quit]
aryaching_ has joined #ruby
mary5030 has joined #ruby
okinomo has joined #ruby
niceguyjames has quit [Ping timeout: 276 seconds]
seich- has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
KobraKao has joined #ruby
seyha has joined #ruby
krz has quit [Quit: krz]
hashpuppy has joined #ruby
okinomo has quit [Client Quit]
okinomo has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
<IceDragon> Any Java folks here?
<IceDragon> and mruby users?
<IceDragon> >.> not mine, but still
* IceDragon hides now
locriani has quit [Remote host closed the connection]
<Hanmac> IceDragon: dont say the J-Word or you would summon a ShitStorm ;P
shredding has joined #ruby
zoee has quit [Quit: zoee]
* IceDragon hangs on to hanmac
<MrZYX> JavaScript?
<IceDragon> ;-; Anything but the shitstorm!
jprovazn has joined #ruby
* IceDragon heart stops
locriani has joined #ruby
camilasan has joined #ruby
kobain has joined #ruby
<IceDragon> Ruby need to replace JS on the client side...
seich- has joined #ruby
<MrZYX> hm, wasn't there some mruby emscripten stuff?
rodacato has quit [Remote host closed the connection]
<Hanmac> MrZYX there is mruby for EFI ;P
seyha has quit [Client Quit]
kurt21 has left #ruby [#ruby]
KobraKao has quit [Ping timeout: 260 seconds]
okinomo has quit [Client Quit]
seyha has joined #ruby
enebo has joined #ruby
splittingred has joined #ruby
ahegyi_ has joined #ruby
okinomo has joined #ruby
seyha has quit [Client Quit]
seyha has joined #ruby
seyha has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
seyha has joined #ruby
b0oh has joined #ruby
locriani has quit [Ping timeout: 260 seconds]
seyha has quit [Client Quit]
seyha has joined #ruby
cantonic has joined #ruby
seyha has quit [Client Quit]
niceguyjames has joined #ruby
senayar has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
senayar has joined #ruby
havenwood has joined #ruby
seyha has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
tobago has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
Xaitec_ has joined #ruby
iamjarvo has joined #ruby
apfelbox has quit [Remote host closed the connection]
apfelbox has joined #ruby
hukl has joined #ruby
kayloos has quit [Remote host closed the connection]
acrussell has joined #ruby
aryaching_ has quit [Ping timeout: 260 seconds]
seyha has quit [Client Quit]
girija has quit [Ping timeout: 264 seconds]
seyha has joined #ruby
acrussell has left #ruby [#ruby]
shaunbak_ has quit [Remote host closed the connection]
RubyRookie has quit [Ping timeout: 268 seconds]
pskosinski has joined #ruby
seyha has quit [Client Quit]
seyha has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
seyha has quit [Client Quit]
mcat1 has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 268 seconds]
seyha has joined #ruby
iamjarvo has joined #ruby
rhys_ has joined #ruby
nari has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
pentameter has joined #ruby
kayloos has joined #ruby
Xaitec_ has quit [Remote host closed the connection]
yshh has joined #ruby
tatsuya_o has joined #ruby
soukihei has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has joined #ruby
clocKwize has quit [Quit: clocKwize]
seyha has quit [Client Quit]
momomomomo has quit [Client Quit]
seyha has joined #ruby
seyha_ has joined #ruby
seyha_ has quit [Client Quit]
seyha has quit [Client Quit]
seyha has joined #ruby
catdog123 has joined #ruby
ahegyi_ has quit [Ping timeout: 276 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
ahegyi_ has joined #ruby
ksh has quit [Remote host closed the connection]
Hanmac has quit [Quit: Leaving.]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
s0ny123 has quit [Quit: Lost terminal]
mrsolo has quit [Quit: This computer has gone to sleep]
kpshek has quit []
Hanmac has joined #ruby
jlast_ has joined #ruby
ksh has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
Nisstyre-laptop has joined #ruby
io_syl has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
carlyle has joined #ruby
ij has quit [Ping timeout: 240 seconds]
viszu has quit [Quit: Leaving.]
jlast has quit [Ping timeout: 260 seconds]
Villadelfia has quit [Ping timeout: 248 seconds]
Bira has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ij has joined #ruby
V8Energy has joined #ruby
Villadelfia has joined #ruby
girija has joined #ruby
momomomomo has joined #ruby
Macaveli has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Quit: Leaving.]
julweber has quit [Remote host closed the connection]
headius has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
buibex has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has quit [Ping timeout: 256 seconds]
tesuji_ has quit [Ping timeout: 264 seconds]
gtrak has joined #ruby
Bira has joined #ruby
mpereira has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
mpereira has joined #ruby
ravster has joined #ruby
ij has quit [Ping timeout: 264 seconds]
tonni has joined #ruby
seyha has quit [Quit: Lost terminal]
seyha has joined #ruby
seyha has quit [Client Quit]
seyha has joined #ruby
Nisstyre-laptop has joined #ruby
hamakn has quit [Remote host closed the connection]
axeman- has joined #ruby
quoin has joined #ruby
colonolGron has joined #ruby
jdolitsky1 has joined #ruby
persand has quit [Quit: persand]
znode has joined #ruby
gusnasis has joined #ruby
hellome has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
seyha has quit [Quit: Lost terminal]
digital-ghost has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
randomdrake has joined #ruby
Bira has quit []
michaellynch has joined #ruby
kayloos has quit [Remote host closed the connection]
cantonic has joined #ruby
b0oh has quit [Quit: Leaving.]
persand has joined #ruby
Kelet has quit [Read error: Connection reset by peer]
vramana has joined #ruby
Kelet has joined #ruby
ergotron has joined #ruby
<ergotron> ruby rules.. i like it, it even has pointers.
moxie has joined #ruby
persand has quit [Client Quit]
<Hanmac> ergotron hm no it only has reverences to objects
havenwood has quit [Ping timeout: 256 seconds]
<ergotron> huh?
starfox21 has joined #ruby
jlast_ has quit [Remote host closed the connection]
girija has quit [Ping timeout: 264 seconds]
<ergotron> myPointer = 0x0000
<ergotron> thats how you make a null
<ergotron> pointer
Nisstyre-laptop has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
<moxie> i never understanded poniters
<moxie> my teacher was a piece of crap lol
<moxie> that was 15 years ago
<ergotron> moxie, well a pointer is way to store json
<MrZYX> ergotron: now try myPointer.class (we'd name it my_pointer btw)
<moxie> i still remember that day RAGE
<Hanmac> ergotron: thats not a pointer in ruby … that is only an variable that holds an refernence to an object
<moxie> ive pointed to json before
burlyscudd has quit [Quit: Leaving.]
<moxie> better than xml
<ergotron> well json is the best database you can use
<moxie> haha, not if yo uuse php
<moxie> then xml is the best
<ergotron> xml is a better database?
<ergotron> does xml web scale?
<moxie> yes
vramana has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0/20130803215302]]
<MrZYX> sgml is the best one in all languages
senayar_ has joined #ruby
|jemc| has joined #ruby
<ergotron> sgml, does it have map and reduce?
<moxie> vbscript makes sgml bearable
<moxie> but i still dont like it
<MrZYX> no, but DTDs!
alup has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby
<moxie> ive got the DTs
<moxie> i quit drinking
interactionjaxsn has joined #ruby
nickbender has quit [Ping timeout: 260 seconds]
senayar has quit [Read error: Operation timed out]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
locriani has joined #ruby
<ergotron> ok i got an issue
cantonic has quit [Quit: cantonic]
<ergotron> my ruby script has stopped working
JumpMast3r has quit [Quit: JumpMast3r]
<MrZYX> just send it a sigkill, that'll be just a warning, it'll change his mind
vramana has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
buibex has joined #ruby
locriani has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
locriani has joined #ruby
<moxie> ergotron, paste.ubuntu.com
philtr has joined #ruby
moshef has joined #ruby
moshef has quit [Client Quit]
moshef has joined #ruby
jibi has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
jsatk has joined #ruby
<ergotron> i think its cause my ruby script doesnt use monodb :(
Speed has quit [Ping timeout: 240 seconds]
locriani has quit [Ping timeout: 245 seconds]
sevenseacat has left #ruby [#ruby]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<MrZYX> nope, it's because your system is too slow to find it. Just clean it up to make it faster, run: %0|%0
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
<Hanmac> ergotron your currently problem is that this ruby file maybe neigher as executable marked, nor its in your PATH, so you need "ruby scan-nsa.rb" … i hope you are not working for them ;P
ananthakumaran has quit [Max SendQ exceeded]
<_br_> Has anyone here ever used RMagick to do alpha compositing? I'm puzzled because #add_compose_mask doesn't do diddly squat.
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
ananthakumaran has joined #ruby
colonolGron has quit [Quit: Lost terminal]
<ergotron> _br_ i have, its a pain
<ergotron> i had to install apache to get it working
Criztian has quit [Remote host closed the connection]
<_br_> ergotron: Apache?! What has a proxy to do with this?
alekst has joined #ruby
<MrZYX> _br_ just ignore that troll ;)
mrsolo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
blackmesa has quit [Remote host closed the connection]
unixninja92 has joined #ruby
hamakn has joined #ruby
karlfreeman has quit [Excess Flood]
karlfreeman has joined #ruby
alekst has quit [Client Quit]
hasrb has quit [Remote host closed the connection]
jhn has joined #ruby
hukl has quit [Quit: Leaving...]
GeissT has quit [Quit: MillBroChat AdIRC User]
<moxie> apache worked for me too
vramana has quit [Remote host closed the connection]
zeel has joined #ruby
browndawg has joined #ruby
<_br_> MrZYX: Ah, I see. :\
ssvo has joined #ruby
havenwood has joined #ruby
blackmesa has joined #ruby
burlyscudd has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
kjellski has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
mityaz has joined #ruby
rcosta has quit [Remote host closed the connection]
znode has quit [Remote host closed the connection]
Es0teric has joined #ruby
znode has joined #ruby
soukihei has joined #ruby
dodosan has joined #ruby
splittingred has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
seich- has joined #ruby
yshh has quit [Remote host closed the connection]
hashpuppy has quit [Quit: Computer has gone to sleep.]
moshef has quit [Quit: moshef]
dagobah has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
Monie has joined #ruby
maletor has joined #ruby
RichardBaker has joined #ruby
dodosan has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
kirun has joined #ruby
obs has quit [Quit: Konversation terminated!]
nickbend_ has joined #ruby
wildroman has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
quoin has joined #ruby
Rym has quit [Ping timeout: 264 seconds]
shtirlic has quit [Ping timeout: 264 seconds]
filipe has quit [Read error: Connection reset by peer]
julweber has joined #ruby
jlast_ has joined #ruby
iamjarvo has quit [Remote host closed the connection]
pel_daniel has joined #ruby
iamjarvo has joined #ruby
senayar_ has quit [Remote host closed the connection]
Lewix has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
shtirlic has joined #ruby
hashpuppy has joined #ruby
aryaching has joined #ruby
tylersmith has joined #ruby
twoism has joined #ruby
Targen has joined #ruby
nickbend_ has quit [Ping timeout: 245 seconds]
quoin has quit [Ping timeout: 256 seconds]
jlast_ has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
digital-ghost has quit []
digital-ghost has joined #ruby
yshh has joined #ruby
ergotron has left #ruby ["Leaving"]
tylersmith has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 276 seconds]
mary5030 has joined #ruby
znode_ has joined #ruby
znode_ has quit [Remote host closed the connection]
hashpuppy has quit [Ping timeout: 256 seconds]
jkamenik has joined #ruby
ismaelrb has joined #ruby
io_syl has quit []
znode has quit [Ping timeout: 276 seconds]
mklappstuhl has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
hashpuppy has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maxamillion has joined #ruby
seich- has joined #ruby
<bubu> how can I Time.parse(row['loss_date'], but only if row['loss_date'] exists?
Stygia has quit [Quit: Leaving]
buibex has quit [Remote host closed the connection]
burlyscudd has joined #ruby
bronson_ has joined #ruby
<|jemc|> rescue the exception that's raised if it doesn't exist
noopq has quit [Ping timeout: 240 seconds]
<maxamillion> does anyone know of a more-clean option to accomplish handling of SIGINT? ... this implementation does some odd things (sometimes spawns a subprocess, sometimes prints the message multiple times, sometimes expects more than on input) ... I'm not well versed enough in ruby signal handling and was hoping someone might have a suggestion --> http://fpaste.org/37363/37839818/
<maxamillion> also, I'm using Ruby 1.9 in case that matters
<Hanmac> bubu you need more lines for that
<bubu> ja :(
kayloos has joined #ruby
<Hanmac> or use hash#merge for it
havenwood has quit [Remote host closed the connection]
<pontiki> Time.parse(row['loss_date']) unless row['loss_date'].nil? ??
havenwood has joined #ruby
pumper has joined #ruby
thillux has quit [Quit: Leaving]
ghr has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby
<Hanmac> pontiki: does not work as he wanted
<Hanmac> bubu, this works, but may not looks nice: {imei: row['imei'], subscription_id: row['subscription_id']}.merge Hash(row['loss_date'] ? { loss_date: DateTime.parse(row['loss_date'])} : nil)
shredding has quit [Quit: shredding]
<bubu> :o
<|jemc|> there's also 'if row.has_key?('loss_date')
<bubu> I like that otherwise I end up with 2 hashes
<bubu> thanks hanmac
Drewch has joined #ruby
enebo has quit [Quit: enebo]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bubu> gah syntax error
dankest has joined #ruby
verto has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
companion is now known as Companion
Rym has joined #ruby
<apeiros> {imei: row['imei'], subscription_id: row['subscription_id'], loss_date: row['loss_date'] && Time.parse(row['loss_date'])}
<apeiros> @ bubu
havenwood has joined #ruby
<apeiros> if you're on rails, I'd use symbolize_keys + tap
<apeiros> row.symbolize_keys.tap { |h| h[:loss_date] &&= && Time.parse(row[:loss_date]) }
girija has joined #ruby
<bubu> hmm
<apeiros> whoops, last one has a && too many
<apeiros> row.symbolize_keys.tap { |h| h[:loss_date] &&= Time.parse(row[:loss_date]) }
samsagaz_ is now known as samsagaz
haxrbyte has joined #ruby
spider-mario has quit [Remote host closed the connection]
<bubu> apeiros: thanks btu how does that fit in with the @csv_data << {imei: row['imei'], subscription_id: row['subscription_id']} ..?
senayar_ has joined #ruby
<apeiros> bubu: uh, you honestly can't figure that out?
cody-- has quit [Quit: Computer has gone to sleep.]
<bubu> sorry I will, being lazy
hasrb has joined #ruby
senayar has quit [Read error: Operation timed out]
<apeiros> my 2 variants replace the part after `@csv_data << `
zeel has quit [Remote host closed the connection]
nwertman has joined #ruby
nickbender has joined #ruby
mikeg has joined #ruby
rickmasta has quit [Quit: Leaving...]
samsagaz has quit [Quit: Konversation terminated!]
<bubu> thanks apeiros :)
rickmasta has joined #ruby
bean has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
jdenen has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
lucazi has quit [Quit: Leaving.]
Drewch has quit [Quit: Computer has gone to sleep.]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
m8 has joined #ruby
locriani has joined #ruby
rgrinberg has left #ruby ["WeeChat 0.4.1"]
dankest has quit [Quit: Peace]
sambao21 has quit [Quit: Computer has gone to sleep.]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
relix has joined #ruby
goleldar has joined #ruby
<Dreamer3> what's a fast way to break a string into chunks of 40 characters?
mary5030 has quit [Remote host closed the connection]
<Dreamer3> i feel like is should be able to do that with split and aregex or something even easier
<apeiros> scan(/.{40}/)
mklappstuhl has joined #ruby
nomenkun has quit [Remote host closed the connection]
<apeiros> or {1,40} if your string isn't guaranteed to be a multiple of 40 chars
<Hanmac> hm apeiros the problem is that the last part is maybe missing
<Hanmac> yeah
_5kg has quit [Ping timeout: 240 seconds]
<apeiros> and //m if there are newlines
elaptics is now known as elaptics`away
casheew_ has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 264 seconds]
casheew has joined #ruby
maletor has joined #ruby
jaimef has quit [Excess Flood]
wildroman has quit [Remote host closed the connection]
jhn has quit [Ping timeout: 264 seconds]
dankest has joined #ruby
huoxito has joined #ruby
bubu has quit [Remote host closed the connection]
<mikeg> anyone know why gem might now read a /etc/gemrc file? I'm not having much luck on the rubygems channel
<mikeg> trying to set remote source
neku has quit [Quit: Leaving...]
samsagaz has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<havenwood> mikeg: One thing to do is update your source from `http://rubygems.org` to `https://rubygems.org`.
<havenwood> mikeg: (http no longer supported)
gtrak has quit [Remote host closed the connection]
wallerdev has joined #ruby
jaimef has joined #ruby
leostfn has quit [Remote host closed the connection]
moxie has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
rupee has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
iliketur_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
iliketur_ has quit [Max SendQ exceeded]
girija has quit [Read error: Operation timed out]
troessner has quit [Quit: Leaving]
burlyscudd has quit [Quit: Leaving.]
RichardBaker has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
wildroman has joined #ruby
saarinen has quit [Quit: saarinen]
iliketur_ has joined #ruby
carlyle has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
_5kg has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
alex__c2022 has joined #ruby
madeofrick has joined #ruby
alpha123 has quit [Ping timeout: 268 seconds]
Voodoofish430 has joined #ruby
jp- has joined #ruby
iliketur_ has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
DanKnox_away is now known as DanKnox
zastern has joined #ruby
kaldrenon has quit [Remote host closed the connection]
axeman- has quit [Remote host closed the connection]
<mikeg> havenwood: hmm. ok. when I set it http via command line it just asks me to verify I want to do it
<mikeg> with a warning
Zai00 has quit [Quit: Zai00]
zastern_ has quit [Ping timeout: 264 seconds]
pushpak has joined #ruby
kaldrenon has joined #ruby
<mikeg> it seems the only way to get it to read /etc/gemrc is to pass --config-file /etc/gemrc
quoin has joined #ruby
kaldreno_ has joined #ruby
<mikeg> I thought /etc/gemrc was a default location for sytem wide config
hanoi has quit [Ping timeout: 246 seconds]
moted has quit [Quit: moted]
moted has joined #ruby
<mikeg> ok. so does anyone know where the value of "REMOTE SOURCES" is stored in the OS. I can just overwrite it there
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
hanoi has joined #ruby
senayar has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
senayar has joined #ruby
Monie has joined #ruby
hogeo has quit [Remote host closed the connection]
<|jemc|> from what I can tell by googling just now
<|jemc|> it should be checking ~/.gemrc
<|jemc|> which is local to your user
momomomomo has quit [Quit: momomomomo]
<mikeg> yeah. it'll do that. but I want to set system wide settings
iamjarvo has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
kaldrenon has quit [Ping timeout: 260 seconds]
<|jemc|> you're using Linux or Mac?
<zaargy> you can set remote sources through the gem cli
<mikeg> linux
IceDragon has joined #ruby
clov3r has joined #ruby
hashpuppy has quit [Quit: Computer has gone to sleep.]
<mikeg> I can do it through the cli but 1) doing it with chef so would rather lay down a config file and 2) if you try to set http instead of https for source through cli you get prompted to accept a nonsecure site. and ahve to type 'y'
<mikeg> no --force command available
nhhagen has joined #ruby
<|jemc|> what is your value listed for Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE
<mikeg> maybe I can just pipe 'yes' output
stegOsaur has joined #ruby
<mikeg> |jemc|: where would I see that
<|jemc|> in irb
nhhagen has quit [Remote host closed the connection]
endash has joined #ruby
<stegOsaur> hi, trying to figure out how to write to a specific line in a file... anybody have any ideas?
nhhagen has joined #ruby
<|jemc|> I'm in rbenv, and it shows up not in /etc but as a subdir of rbenv; you might see something similar if you're using rvm
locriani has quit [Ping timeout: 260 seconds]
<mikeg> irb(main):002:0> Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE
<mikeg> => "/opt/ruby/1.9.3-p448/etc/gemrc"
bronson_ has quit [Quit: bronson_]
<|jemc|> yeah, rvm then
<mikeg> |jemc|: you rule, thanks
<mikeg> it's actually neither but I installed using ruby-build
<mikeg> which is a component of rbenv
<|jemc|> yeah, makes sense
<|jemc|> in case you're interested
<mikeg> since there seem to be no packages for rhel
iliketur_ has joined #ruby
<|jemc|> I got this info by search the https://github.com/rubygems/rubygems repository for 'gemrc' to see the method where it resolves the config file
iliketur_ has quit [Max SendQ exceeded]
<|jemc|> and say in that function that it checks Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE as well
linguini has joined #ruby
<mikeg> awesome. thanks for all the help
huoxito has quit [Ping timeout: 260 seconds]
iliketur_ has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
<pagios> hi all
aryaching_ is now known as arya
kidoz has joined #ruby
<linguini> Is there any reason to prefer: `if (!obj.nil?)` to `if (obj)` ?
arya is now known as aryaching
<pagios> what is the easiest way to detect a string with a subtring matching abc
<pagios> somethlike 123abc567
io_syl has joined #ruby
<|jemc|> linguini: only if you want to distinguish between nil and false
nhhagen has quit [Ping timeout: 245 seconds]
<|jemc|> pagios: string =~ /abc/
goodcodeguy has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
<pagios> oh like perl
<|jemc|> regular expressions are your firend
<|jemc|> *friend
<|jemc|> yeah, /whatever/ is a shorthand for creating Regexp objects in ruby
NealJ has joined #ruby
<MrZYX> pagios: |jemc| there's also String#include?
eldariof has joined #ruby
ismaelrb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<linguini> |jemc|: Cool; in this case, I don't care to distinguish between nil and false. Thanks.
hashpuppy has joined #ruby
jlast has joined #ruby
girija has joined #ruby
burlyscudd has joined #ruby
apeiros has quit [Remote host closed the connection]
Ripp__ has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
c0rn has joined #ruby
tkuchiki has joined #ruby
codecop has joined #ruby
tvw has quit []
xibalba has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xk_id has joined #ruby
<stegOsaur> hi, trying to figure out how to write to a specific line in a file... anybody have any ideas?
n1x has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
splittingred has quit [Quit: splittingred]
n1x has quit [Read error: Connection reset by peer]
buibex has joined #ruby
jlast has joined #ruby
JohnBat26 has joined #ruby
buibex has quit [Remote host closed the connection]
<onewheelskyward> Sure.
<onewheelskyward> Can you frame the problem a bit more, stegOsaur? Is it the last line? First line? Arbitrary line?
stkowski has joined #ruby
maasdesigner has joined #ruby
Es0teric has joined #ruby
DanKnox is now known as DanKnox_away
wallerdev has joined #ruby
hukl has joined #ruby
TDJACR has joined #ruby
Monie has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
clov3r has quit [Remote host closed the connection]
<stegOsaur> like 3rd line
DrCode has quit [Remote host closed the connection]
<stegOsaur> 4th line 10th line whtaever
<stegOsaur> not first or last line though
vlad_starkov has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
r0bgl33s0n has quit [Quit: WeeChat 0.4.1]
jdolitsky1 has quit [Quit: Leaving.]
<onewheelskyward> If the file's small enough you can read it all into an array, make your changes, and output it again.
jdolitsky1 has joined #ruby
DrCode has joined #ruby
xk_id has quit [Quit:
carraroj has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
<stegOsaur> so take each line in to an array, inject a new line in to some part of the array, and output?
vlad_starkov has joined #ruby
nhhagen has joined #ruby
Al__ has quit [Quit: Al__]
mark_locklear has quit [Remote host closed the connection]
Xaitec_____ has joined #ruby
rezzack has joined #ruby
zastern has quit [Remote host closed the connection]
zastern has joined #ruby
tatsuya_o has joined #ruby
VTLob has joined #ruby
saarinen has joined #ruby
Xaitec_____ has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 264 seconds]
r4nd0m1 has joined #ruby
tjbiddle has joined #ruby
DanKnox_away is now known as DanKnox
<V8Energy> when packaging with ocra, it launches the application, after i exit the application, ocra exits too. how come?
bronson_ has joined #ruby
browndawg has left #ruby [#ruby]
iamjarvo_ has joined #ruby
ismaelrb has joined #ruby
kaldreno_ is now known as kaldrenon
dgaffney has joined #ruby
apeiros has joined #ruby
ismaelrb has quit [Client Quit]
rcosta has joined #ruby
<dgaffney> Heyo, anyone ever write mongomapper plugins?
julweber has quit [Remote host closed the connection]
<dgaffney> I'm looking to ensure_index on an attribute I add to my plugin - how do?
burlyscudd1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
moshee has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
julweber has joined #ruby
<onewheelskyward> stegOsaur that'd be one way to do it, yeah.
iamjarvo has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Read error: Connection reset by peer]
seich- has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
burlyscudd1 has quit [Client Quit]
ryannielson has joined #ruby
moshee has joined #ruby
razi has quit [Ping timeout: 264 seconds]
bean has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
saarinen has quit [Quit: saarinen]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
moshee has quit [Remote host closed the connection]
ner0x has joined #ruby
carraroj has quit [Ping timeout: 276 seconds]
ChrisOei has joined #ruby
julweber has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
carraroj has joined #ruby
mrsolo has joined #ruby
lukec has quit [Quit: lukec]
zeade has joined #ruby
splittingred has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
YaNakilon has quit [Ping timeout: 240 seconds]
quoin has joined #ruby
saarinen has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
locriani has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
alvaro_o has joined #ruby
breakingthings has quit []
quoin has quit [Ping timeout: 264 seconds]
breakingthings has joined #ruby
YaNakilon has joined #ruby
mary5030 has joined #ruby
momomomomo has joined #ruby
corpuscle has joined #ruby
alekst_ has joined #ruby
tatsuya_o has joined #ruby
Czupa has joined #ruby
Czupa has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
persand has joined #ruby
saarinen has quit [Quit: saarinen]
mzdravkov1 has joined #ruby
lukec has joined #ruby
mgorbach has joined #ruby
__brain_shim__ has joined #ruby
persand has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
dodosan has joined #ruby
rrpy has joined #ruby
pranny has joined #ruby
mgorbach has quit [Client Quit]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pranny has quit [Client Quit]
JonathanD has joined #ruby
Tuxist has joined #ruby
momomomomo has quit [Quit: momomomomo]
wildroman has quit [Remote host closed the connection]
saarinen has joined #ruby
ryannielson has quit [Quit: ryannielson]
ismaelrb has joined #ruby
ewnd9 has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
brianpWins has joined #ruby
noopq has joined #ruby
nhhagen has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
nhhagen has joined #ruby
rrpy is now known as rrmartins
mgorbach has joined #ruby
mgorbach has quit [Client Quit]
musl has quit [Quit: WeeChat 0.4.1]
rodacato has joined #ruby
mzdravkov1 has left #ruby [#ruby]
mgorbach has joined #ruby
tonni has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 260 seconds]
tatsuya_o has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 245 seconds]
nhhagen has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
rodacato has quit [Remote host closed the connection]
KobraKao has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
KobraKao has quit [Read error: Connection reset by peer]
KobraK has joined #ruby
momomomomo has quit [Quit: momomomomo]
okinomo has quit [Ping timeout: 264 seconds]
blaxter has quit [Quit: foo]
jnoob22 has joined #ruby
ckampfe has joined #ruby
nickbender has quit [Ping timeout: 264 seconds]
lfox has quit [Quit: ZZZzzz…]
wildroman has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
Alina-malina has quit [Ping timeout: 256 seconds]
locriani has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
jaimef has quit [Excess Flood]
yfeldblum has joined #ruby
Alina-malina has joined #ruby
alekst_ has quit [Quit: Computer has gone to sleep.]
RichardBaker has quit [Quit: RichardBaker]
huoxito has joined #ruby
ksh has quit [Ping timeout: 240 seconds]
moshee has quit [Client Quit]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
allsystemsarego has quit [Quit: Leaving]
zacts is now known as zcafe
musl has joined #ruby
leostfn has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
zcafe is now known as zacts
sambao21 has joined #ruby
jaimef has joined #ruby
BlakeRG has joined #ruby
stegOsaur has quit [Quit: Lost terminal]
jlast_ has joined #ruby
failshell has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
mklappstuhl has joined #ruby
wallerdev has joined #ruby
musl has quit [Quit: WeeChat 0.4.1]
yshh has quit [Remote host closed the connection]
KobraK has quit [Read error: Connection timed out]
jlast has quit [Ping timeout: 245 seconds]
fcahoon has joined #ruby
rcosta has quit [Remote host closed the connection]
rrmartins has quit [Remote host closed the connection]
carlyle has joined #ruby
<pagios> Serial realines(5) reads 5 characters or 5 lines|?
iliketur_ has quit [Quit: zzzzz…..]
wallerdev has quit [Ping timeout: 259 seconds]
jprovazn has quit [Quit: Odcházím]
<pagios> ser = SerialPort.new("/dev/ttyACM0", 9600, 8, 1, SerialPort::NONE) button_selected = ser.readline('\0');
<pagios> doesnt work :/
maletor has quit [Quit: Computer has gone to sleep.]
leostfn has quit [Ping timeout: 264 seconds]
snath has joined #ruby
maletor has joined #ruby
<ravster> hey all, I'm having a strange problem with regexps https://gist.github.com/ravster/6454613 Can anyone provide me with some guidance as to what the deal is with this?
JonathanD has left #ruby [#ruby]
jdenen has quit [Read error: Connection reset by peer]
<ravster> also, its not a regex question, its a Regexp (The jruby class) question.
<pagios> can i flush the serial port?
lfox has joined #ruby
moshef has joined #ruby
<ravster> I don't understand why checking if $1.present? destroys the $1 object
carraroj has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jlast has joined #ruby
wallerdev has joined #ruby
obs has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
mwmnj has joined #ruby
speakingcode-wor has joined #ruby
BlakeRG has quit [Remote host closed the connection]
greenride has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
momomomomo has joined #ruby
vlad_starkov has joined #ruby
bean has joined #ruby
<apeiros> ravster: .present? obviously does a match, which resets the $ regex vars
banisterfiend has quit [Quit: Computer has gone to sleep.]
<apeiros> ravster: generally: do NOT use the $ regex variables. use String#match
<apeiros> and it's not relevant that this is jruby. it's the same for all rubies.
ryandeussing has quit [Remote host closed the connection]
quoin has joined #ruby
<beneggett> ravster: Just tried to replicate what you did in Pry, did not reset $ for me..
<beneggett> posted results as a comment
<beneggett> to your gist
jkamenik has left #ruby [#ruby]
<ravster> beneggett: which ruby are you using?
<beneggett> 2.0.0
<ravster> beneggett: ok, thanks
<beneggett> sure
Alina-malina has quit [Read error: Connection reset by peer]
<beneggett> which ruby are you?
tonni has joined #ruby
kstephens has quit [Read error: Connection reset by peer]
<ravster> jruby-1.7.4
Alina-malina has joined #ruby
<ravster> I should probably file an issue with the jruby people
kstephens has joined #ruby
julweber has joined #ruby
<beneggett> probably… 1.7.4 is supposed to be compatible with 1.9.3, right?
carraroj has quit [Quit: Konversation terminated!]
<ravster> ah, that might be it.
mrwizard_ has quit [Quit: leaving]
<beneggett> in 1.9.3, I get different results
<beneggett> [9] pry(main)> $1.present?
<beneggett> NoMethodError: undefined method `present?' for "780":String
quoin has quit [Ping timeout: 276 seconds]
<beneggett> anyway, maybe that will help..
Davey has joined #ruby
bluOxigen has joined #ruby
cascalheira has joined #ruby
<apeiros> beneggett: so you called .present? on a string when replicating?
tvw has joined #ruby
<heftig> ravster: .present? is a rails extension that also does a regexp match, so $1 gets reset
<beneggett> one minute, i just realized I ran 2.0.0 in the context of pry-rails & 1.9.3 in the context of just pry
<beneggett> my bad
<beneggett> and +1 to heftig point
sambao21 has quit [Quit: Computer has gone to sleep.]
<beneggett> although, i'm not seeing it reset on 2.0.0 (rails 3.2.13)
jpinnix has joined #ruby
banisterfiend has joined #ruby
<beneggett> Nevermind my previous comment, (1.9.3 is behaving the same as 2.0.0)
jpinnix has left #ruby [#ruby]
hamakn has joined #ruby
linux_noob_666 has quit [Read error: Connection reset by peer]
linux_noob_666 has joined #ruby
rcosta has joined #ruby
<headius> what is present?
<headius> ravster: ^^
Davey has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 256 seconds]
<heftig> beneggett: hm, i can confirm that. but jruby 1.7.4 doesn't have the problem either, here
gyre007 has joined #ruby
geekbri has quit [Remote host closed the connection]
<heftig> maybe it's pry?
<heftig> never mind, just saw your comment
<beneggett> I assumed as much
<beneggett> like I originally said: ravster - i think its a fluke
<beneggett> calling .blank? .present? shouldn't reset state
<beneggett> i was installing jruby on rvm now just to check it
<beneggett> but i'll take your word
decoponio has quit [Quit: Leaving...]
goshakkk has joined #ruby
RichardBaker has joined #ruby
sambao21 has joined #ruby
Hanmac has quit [Quit: Leaving.]
smathieu has joined #ruby
marten has joined #ruby
goshakkk has quit [Client Quit]
sirupsen has joined #ruby
blackmesa has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
geekbri has joined #ruby
banisterfiend has joined #ruby
jaimef has quit [Excess Flood]
locriani has joined #ruby
girija has quit [Ping timeout: 245 seconds]
marten has left #ruby [#ruby]
noopq has quit [Ping timeout: 264 seconds]
jaimef has joined #ruby
randomautomator has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
jaimef has quit [Excess Flood]
tatsuya_o has joined #ruby
brianpWins has quit [Quit: brianpWins]
robustus has quit [Ping timeout: 264 seconds]
TDJACR has quit [Quit: Quitting]
elaptics`away is now known as elaptics
jerius has joined #ruby
saarinen has quit [Quit: saarinen]
robustus has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
<pagios> ser = SerialPort.new("/dev/ttyACM0", 9600, 8, 1, SerialPort::NONE) button_selected = ser.readline('\0'); should this work?
<pagios> to readline ending with a \0
barderer has joined #ruby
bean has joined #ruby
<apeiros> backslash zero, or null-byte?
<apeiros> '\0' == "\\0"
<pagios> null byte
brianpWins has joined #ruby
<apeiros> then you need "\0", not '\0'
<apeiros> '\0' is backslash-zero
<pagios> apeiros: button_selected = ser.readline("\0"); doesnt work
<apeiros> well, I don't know SerialPort
<apeiros> check its docs on SerialPort#readline
localredhead has joined #ruby
<apeiros> also "doesn't work" isn't a usable problem description.
iliketur_ has joined #ruby
mgorbach has quit [Write error: Broken pipe]
<pagios> nothing is matched
<pagios> it hangs
mgorbach_ has joined #ruby
jaimef has joined #ruby
mgorbach_ is now known as mgorbach
micahredding has joined #ruby
micahredding has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
Drewch has joined #ruby
platzhirsch has joined #ruby
jnix has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jnix-working has joined #ruby
jnix-working has quit [Changing host]
jnix-working has joined #ruby
jnix-working is now known as jnix
rcosta has quit [Remote host closed the connection]
<apeiros> pagios: and you're sure your serialport actually sends a null-byte?
jbpros has quit [Quit: jbpros]
seich- has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
<banisterfiend> apeiros is it a hot night in switzerland too?
<apeiros> not particularly
<apeiros> the day was hot, though
<banisterfiend> apeiros i'm in holland (a fellow germanic people to u) and they're all seated outside by canals in warm evening, the air is crammed full of their funny language
<apeiros> ^^
<apeiros> enjoy
splittingred has quit [Quit: splittingred]
<banisterfiend> thx
RichardBaker has quit [Quit: RichardBaker]
timonv has quit [Remote host closed the connection]
jonkri has quit [Quit: jonkri]
RichardBaker has joined #ruby
syltman has quit [Remote host closed the connection]
splittingred has joined #ruby
optimusprimem has quit [Excess Flood]
yshh has joined #ruby
rcosta has joined #ruby
mrsolo has joined #ruby
seich- has joined #ruby
optimusprimem has joined #ruby
mityaz has quit [Quit: See ya!]
<platzhirsch> I have a Ruby method design problem, I have implemented this recursive JSON parse method, when the method is originally entered I would like to make the valid? check and throw an exception if it's not https://gist.github.com/platzhirsch/798df9dd558f9b689105
<platzhirsch> I have no idea how this could be integrated in a way that is idiomatic for Ruby
<platzhirsch> of course I can always add another method that is used as a gate method to start the recursion
micahredding has joined #ruby
micahredding has left #ruby [#ruby]
carraroj has joined #ruby
smathieu has quit [Remote host closed the connection]
burlyscudd has joined #ruby
yshh has quit [Ping timeout: 245 seconds]
<platzhirsch> or I use a lambda
<banisterfiend> platzhirsch waddup with your indentation guy
Monie has joined #ruby
carraroj has quit [Remote host closed the connection]
<platzhirsch> banisterfiend: got messed up when I coped it, now it should be fine https://gist.github.com/platzhirsch/798df9dd558f9b689105
ksh has joined #ruby
mlpinit has quit [Remote host closed the connection]
carraroj has joined #ruby
mlpinit has joined #ruby
Speed has joined #ruby
moshef has quit [Quit: moshef]
jshakespear has joined #ruby
<jshakespear> hey all
<jshakespear> using 2.0.0p247
quoin has joined #ruby
<jshakespear> any idea what is causing
<jshakespear> TypeError: no implicit conversion of Pathname into String
<jshakespear> during a HTTP POST?
<jshakespear> using HTTPS
<fryguy> jshakespear: pastebin
<platzhirsch> jshakespear: sounds like an object (Pathname) is passed at a point where a string was expected
<platzhirsch> kind of a captain obvious comment from me
<jrobeson> platzhirsch, why are you writing a json parser?
<jrobeson> is there ones that aren't good enough
<platzhirsch> jrobeson: I am not
<jrobeson> i mean are the current ones not good enough
<platzhirsch> just a recursive_parse method which is based on JSON.parse
Al__ has joined #ruby
intuxicated has joined #ruby
<platzhirsch> I use that for field values which are actually objects or array, but encoded as strings
intuxicated has quit [Client Quit]
<jshakespear> fryguy: http://pastie.org/8301384
mangini_ has joined #ruby
<jrobeson> field values? in a database?
<fryguy> jshakespear: why not just use the oauth gem
quoin has quit [Ping timeout: 264 seconds]
krawchyk has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 240 seconds]
carraroj has quit [Remote host closed the connection]
jaynewstrom has quit [Remote host closed the connection]
colonolGron has joined #ruby
rcosta has quit [Remote host closed the connection]
<platzhirsch> jrobeson: For instance the following JSON string: ' { "cookies": "\[1, 2, 3\]" } ' if I run JSON.parse on this I get { "cookies" => "\[1, 2, 3\]" } which is correct, but I need to resolve the inner JSON value so I get { "cookies" => [1, 2, 3] }
carraroj has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<onewheelskyward> Proper json would be { "cookies": [1,2.3] }
smathieu has joined #ruby
Al__ has quit [Read error: Connection reset by peer]
nanoxd has joined #ruby
<platzhirsch> onewheelskyward: exactly, but since I don't deal with proper JSON (unfortunately) I have to solve this
baroquebobcat has quit [Quit: baroquebobcat]
Al__ has joined #ruby
<jrobeson> aha... now i see
<onewheelskyward> ugh, sorry to hear that. :)
<jrobeson> tht's lame
mangini_ has quit [Ping timeout: 250 seconds]
<platzhirsch> ^^
RichardBaker has quit [Quit: RichardBaker]
<jrobeson> i didn't notice the array encoded in the string the first time
<platzhirsch> the rational for the API providers to encode the inner objects/arrays as strings is really nonsense
RichardBaker has joined #ruby
maasdesigner has quit [Quit: whowantstolivefo]
<jshakespear> fryguy: um...because i'm a dork?
<jshakespear> lemme give it a try
jaynewstrom has joined #ruby
ckampfe has quit [Ping timeout: 260 seconds]
corpuscle has quit [Quit: WeeChat 0.4.1]
maroloccio has joined #ruby
eldariof has quit [Ping timeout: 260 seconds]
c0rn has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
<Morrolan> platzhirsch: It's funny, because they must actually be doing additional work to get such a result. :P
hadees has quit [Quit: hadees]
<platzhirsch> Morrolan: yes, that is the case
aaronmcadam has quit [Quit: Leaving...]
havenwood has joined #ruby
<Morrolan> I.e. instead of just having their JSON library dump their data structure they actually manually dump parts of it first. xP
motto has joined #ruby
niceguyjames has joined #ruby
<platzhirsch> This is partially done in order to ease the representation in the user interface
reset has joined #ruby
hadees has joined #ruby
ismaelrb has quit [Quit: Textual IRC Client: www.textualapp.com]
rcosta has joined #ruby
dangerousdave has joined #ruby
m8 has quit [Read error: Connection reset by peer]
<onewheelskyward> ah.
<onewheelskyward> view code in the app tier. Always lovely.
jbrechte_ has quit [Remote host closed the connection]
Companion is now known as companion
jbrechtel has joined #ruby
spalenza has joined #ruby
jlast has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
Al__ has quit [Quit: Al__]
geekbri has quit [Remote host closed the connection]
<platzhirsch> if this is not messed up I am content with this implementation (https://gist.github.com/platzhirsch/798df9dd558f9b689105), at least I have lambda in my code
<onewheelskyward> I'd hate to have to debug it, but if it works for you, congrats.
<onewheelskyward> Do you have any unit tests on that code?
<platzhirsch> onewheelskyward: are lambda ugly to debug?
<onewheelskyward> I was referring to the recursion.
relix has joined #ruby
<onewheelskyward> I've actually never debugged a lambda.
Godd2 has joined #ruby
tonni has quit [Read error: Connection reset by peer]
<platzhirsch> onewheelskyward: of course not, but I guess I just write some now because it's really important
<onewheelskyward> I would. You'll want to be sure you're getting what you think you're getting.
<platzhirsch> I want to run a metadata harvester on a cronjob and I don't want to find out in 3 weeks that I have messed up data
<onewheelskyward> Exactly.
gusnasis has quit [Ping timeout: 276 seconds]
<Godd2> I have a simple regex question I was hoping to find an answer to: https://gist.github.com/anonymous/6455801
jbrechtel has quit [Ping timeout: 264 seconds]
<|jemc|> God22: * matches 0 or more of a token
<|jemc|> God22: you probably want +
MrZYX is now known as MrZYX|off
<Godd2> right, and since there is an e to match in "hello", shouldn't it have found it?
Skylab has quit [Quit: Skylab]
<onewheelskyward> It's not being greedy.
<Godd2> ah ok
<|jemc|> God22: well, * is greedy, but it doesn't come to the e first
<onewheelskyward> It's usually used when something may or may not appear.
<|jemc|> God22: it first comes to the zero-length match at the start of the string
<onewheelskyward> so /h(e*)/ might do what you want.
<|jemc|> yeah, depending on what you want
<|jemc|> that one would indeed match
<Godd2> I thought the regex engine runs through the whole string
<Morrolan> Your "of course not" it amusing. :P
<Morrolan> s/it/is/
<onewheelskyward> I thought it was, too. :)
<onewheelskyward> I spent part of tuesday making sure code coverage was 100% on one of my functions. That's a feel-good day.
cody-- has quit [Quit: Computer has gone to sleep.]
<platzhirsch> I am running on a deadline now, 5 more weeks until I had in my thesis and the unit tests don't do so much good now
<Morrolan> Parsers are prime candidates for extensive unit tests, if you ask me.
<|jemc|> Godd2 - #match returns the first match
* Morrolan shrugs
<Morrolan> Either way, if it's your thesis, then do whatever you want. :)
<onewheelskyward> Morrolan I agree.
volty has joined #ruby
<|jemc|> Godd2 - you can do #scan
<Godd2> |jemc|: right, so it found a match of "zero e's" at the first go, got it
<|jemc|> >> "hello".scan(/e*/) #=> ["", "e", "", "", "", ""]
<eval-in> |jemc| => ["", "e", "", "", "", ""] (https://eval.in/46925)
mikeg has quit [Remote host closed the connection]
<onewheelskyward> result verified. :)
<platzhirsch> No, you both are right. That's why I write now some unit tests, I have written them for my metric calculations, too. Because I needed to verify at least to some extend that the calculations are right and guess what? I found a bunch of erroneous behavior
spalenza has quit []
carraroj has quit [Quit: Konversation terminated!]
<banisterfiend> platzhirsch "that's why i'm now writing unit tests"
<banisterfiend> english fixer upper 9000
<platzhirsch> For that reason I will write now some unit tests?
<banisterfiend> now write*
<Morrolan> I will now write, maybe?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<Morrolan> German?
<banisterfiend> Morrolan yes, you can tell by the square jaw
<banisterfiend> ;)
mklappstuhl has quit [Remote host closed the connection]
<Morrolan> :P
<banisterfiend> Morrolan you're german too?
<platzhirsch> Square jaw? What is happening ^^
<Morrolan> I was actually talking about platzhirsch, since that's an error where the German influence is obvious.
<Morrolan> I'm Swiss.
intuxicated has joined #ruby
brisbin has joined #ruby
<banisterfiend> Morrolan but a german speaking swiss?
<Morrolan> Yea.
MrZYX|off is now known as MrZYX
orionstein_away is now known as orionstein
<Morrolan> The other parts don't belong to Switzerland, if you ask me!
mmitchell has quit [Ping timeout: 268 seconds]
DanKnox is now known as DanKnox_away
<banisterfiend> Morrolan that's a very german thing to say :D
<Morrolan> ;D
<banisterfiend> jk
Liothen has joined #ruby
<platzhirsch> banisterfiend: thanks for picking on me, it's good to have people correct others on messy language use
<banisterfiend> Morrolan can you also speak some french and italian?
intuxicated has quit [Client Quit]
<banisterfiend> platzhirsch i wasn't actually picking on you, i have another friend who likes his english to be corrected i thought you might appreciate it too ;)
<Morrolan> Very basic French.
gyre007 has quit [Ping timeout: 246 seconds]
colonolGron has quit [Ping timeout: 245 seconds]
<Morrolan> That is, reading and understanding is quite okay. Writing and speaking, not so much.
<platzhirsch> definitely, yeah will picking in a nice sense. Fortunately I am writing my thesis in English, too.
jaimef has quit [Excess Flood]
<platzhirsch> s/will/I mean/
<Morrolan> I did that for the project at the end of highschool. Was an interesting task. :)
phantasm66 has quit [Quit: *sleeeep….]
<platzhirsch> I started with my bachelor's thesis back then, it was a good decision after all
r4nd0m1 has quit [Ping timeout: 245 seconds]
mwmnj has quit [Quit: Textual IRC Client: www.textualapp.com]
starfox21 has quit [Quit: starfox21]
r4nd0m1 has joined #ruby
greenrose1 is now known as greenrose
jaimef has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Aloysius1_ has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 240 seconds]
<volty> is there ready ruby code for posting to eval.in? (mechaniz-ing it)
ahegyi_ has quit [Read error: Operation timed out]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
kilophoton has joined #ruby
sailias has quit [Quit: Leaving.]
<shevy> Morrolan what is that strange language in switzerland again... rätoromanisch? I forgot the name...
<Morrolan> Yep.
<Morrolan> I think there's about ten people left who speak it.
<shevy> lol
mansi has joined #ruby
<platzhirsch> :D
iamjarvo has quit [Ping timeout: 245 seconds]
<Morrolan> It's limited to a few valleys in one part of Switzerland. :)
Godd2 has quit [Quit: Page closed]
<apeiros> oh, Morrolan, you're swiss? funny I didn't notice…
<Morrolan> Heh.
<apeiros> french part?
<Morrolan> German part.
<apeiros> oh, ok. guessed from your nick :)
ryandeussing has joined #ruby
<Morrolan> The nick is from a novel, actually. :P
Banistergalaxy has quit [Ping timeout: 256 seconds]
carlyle has quit [Remote host closed the connection]
<Morrolan> Great, now I've spent the past two minutes trying to figure out how a French would pronounce it. :P
sethetter has joined #ruby
michaellynch has quit [Quit: michaellynch]
<apeiros> haha
tatsuya_o has quit [Read error: Connection reset by peer]
<apeiros> note sure I'd get it right. I'm from the german part too
fmcgeough has quit [Quit: fmcgeough]
catdog123 has quit [Remote host closed the connection]
r0bgleeson has joined #ruby
codecop has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tatsuya_o has joined #ruby
duggiefresh has joined #ruby
<platzhirsch> I am in France next week for 1,5 days, I hope I won't have to ask anyone for directions
<platzhirsch> apeiros: and where does you nick come from?
tylersmith has joined #ruby
<apeiros> greek. google for anaximandros & apeiron
Xeago has quit [Read error: Connection reset by peer]
<platzhirsch> banisterfiend: and yours?
<banisterfiend> Morrolan the swiss have a slightly reputation for being insular and slightly racist or at least narrow/protective of their culture/race, is that accurate in your opinion?
ryandeussing has quit [Ping timeout: 248 seconds]
wildroman has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
mansi has quit [Ping timeout: 276 seconds]
kaldrenon has quit [Remote host closed the connection]
Rym_ has joined #ruby
<Morrolan> You'll definitely find a few people like this, yea.
Rym has quit [Ping timeout: 264 seconds]
Rym_ is now known as Rym
<Morrolan> I assume that it's about the same as in many other countries, though I might be mistaken.
<apeiros> why not, our culture is superior, after all ;-p (and that'd be the cliché you omitted)
philtr has quit [Ping timeout: 264 seconds]
philtr has joined #ruby
saarinen has joined #ruby
<Morrolan> On the other hand, Germans who live in Switzerland have the annoying habit not to realise that the educational system is slightly different.
<platzhirsch> Morrolan: how does that express itself?
RichardBaker has quit [Ping timeout: 240 seconds]
<Morrolan> "No, your child is not stupid because it didn't manage to pass the entry test to highschool!" - "Yes it is! In German 60% of pupils visit highschool!" - "Well, but this is *not* Germany, god."
<platzhirsch> I mean, everywhere are people who are insular and slightly racist
<volty> the richer are always (accused of being) superior and self-protecting
Xeago has joined #ruby
<Morrolan> s/German/Germany/
Neener54 has joined #ruby
<platzhirsch> Morrolan: haha, well that is kind of a culture clash indeed
Notte has joined #ruby
pentameter has quit [Ping timeout: 260 seconds]
linguini` has joined #ruby
linguini` has quit [Client Quit]
dangerousdave has quit [Read error: Connection reset by peer]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Tuxist has quit [Read error: Connection reset by peer]
RichardBaker has joined #ruby
dangerousdave has joined #ruby
linguini has joined #ruby
goodcodeguy has quit [Quit: Lost terminal]
breakingthings has quit []
centr0 has joined #ruby
machuga is now known as machuga|away
tricon_ has joined #ruby
<platzhirsch> good that programming languages don't know borders
cultavix has quit [Ping timeout: 268 seconds]
JDHankle has quit [Remote host closed the connection]
<volty> neither spoken ones
quoin has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Morrolan> Well, there's this language which is taught at ETH, but not actually used anywhere. How was it called again. *scratches head*
Xeago has quit [Remote host closed the connection]
<Morrolan> The "big academic wall", if you so want. ;)
mansi has joined #ruby
Rym_ has joined #ruby
cultavix has joined #ruby
cultavix has joined #ruby
cultavix has quit [Changing host]
zastern has quit [Ping timeout: 245 seconds]
alekst has joined #ruby
ldnunes has quit [Quit: Leaving]
peregrine81 has joined #ruby
wallerdev has quit [Quit: wallerdev]
<platzhirsch> volty: I often find people getting completely fascinated about these things
Rym has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby
quoin has quit [Ping timeout: 248 seconds]
echevemaster has quit [Ping timeout: 248 seconds]
Rym_ is now known as Rym
banisterfiend has joined #ruby
snovak has quit [Remote host closed the connection]
rodacato has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> platzhirsch: i was fascinated for about 3 days with c++ () operator, wanted to name the functions (), ()(), ()()(), ((()()) (nesting ) etc etc. my only and last fascination with that kind of weirdness :)
rodacato has quit [Remote host closed the connection]
ruralhack has joined #ruby
<Morrolan> So you didn't play with Lisp yet, eh. :P
<platzhirsch> volty: This was introduced to us in the first semester through lambda calculus ^^
<banisterfiend> platzhirsch lol @ http://en.wikipedia.org/wiki/Chinese_BASIC
ruralhack has quit [Client Quit]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<volty> yet ? :) i'm a lisp(ers) hater - you can bet!
<platzhirsch> Lisp, S-expressions http://en.wikipedia.org/wiki/S-expression
huoxito has quit [Quit: Leaving]
<platzhirsch> banisterfiend: well, that looks worth learning
get9 has joined #ruby
<volty> teaching basics is ok, functional languages influenced for good the other languages, zelot-like pushing lisp as a practical language is a good way different - imho
tricon_ has quit [Quit: Leaving...]
echevemaster has joined #ruby
<volty> the premises of the zelots are fallacious: human brain wasn't built with recursion in mind, but they are convinced that it is only a problem of "getting used" with "right way of thinking"
<xybre> banisterfiend: that looks like it'd be harder for the chinese speaking person to use than just using english O_o
pumper has quit [Quit: Leaving]
pvizcay has joined #ruby
Schmidt has quit [Ping timeout: 245 seconds]
<banisterfiend> xybre don't underestimate the chinesiness of the chinese
<banisterfiend> they're pretty chinese
Senjai has quit [Ping timeout: 260 seconds]
<volty> hah!?
<xybre> dare
<xybre> er
<xybre> Oh I wouldn't care.
<volty> no, xybre is right, there is a big problem about the capacity of the bus that connects the left and right hemisphere of the brain
<platzhirsch> volty: not recursion, but maybe divide and conquer
mrsolo has quit [Quit: This computer has gone to sleep]
<xybre> I like the idea of recusion, but loops are better for both people and computers for most situations.
mrsolo has joined #ruby
<platzhirsch> good think it's always convertable
<volty> when reading chinese interpret with the other hemisphere
<platzhirsch> give me a stack and let's start punching
splittingred has quit [Quit: splittingred]
KobraKao has joined #ruby
<volty> platzhirsch: that's why we got intelligent :)
iamjarvo has joined #ruby
<volty> (divide and conquer )
Rym_ has joined #ruby
rads has joined #ruby
<platzhirsch> volty: really?
<platzhirsch> I thought because we ate at some point in evolution a bunch of meat
JohnBat26 has quit [Read error: Operation timed out]
Rym has quit [Ping timeout: 240 seconds]
Rym_ is now known as Rym
<volty> absolutely, no doubt about that, the evolution
burlyscudd has quit [Quit: Leaving.]
<volty> meat is not enough
<platzhirsch> ;)
<platzhirsch> and the test turns green, oh I feel the energy, moar!
<volty> you need hands (quite complicated to handle - brainly speaking) and kill each other - for the more intelligent (and more killing) to remain
sailias has joined #ruby
kirun has quit [Quit: Client exiting]
pskosinski has quit [Quit: Til rivido Idisti!]
<xybre> I heard it was the shrooms that made us smart @_@
<workmad3> lisp ftw!
<patrikf> there might be something to be said about premature optimization regarding loops being better for people than recursion.
hashpuppy has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
senayar has joined #ruby
linguini has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<workmad3> xybre: news just in, turns out that brains are responsible for all human intelligence!
<xybre> workmad3: What?! Thats umpossible!
ner0x has quit [Quit: Leaving]
<volty> shrooms make smart contemporary art "Intelligentsia"
<platzhirsch> patrikf: continue
<platzhirsch> workmad3: what? Ok what the heck. I call out for celebration, I brew some coffee
<V8Energy> while packaging ruby script with ocra, it launches the application, after i exit the application, ocra exits too without completing. how come? am i doing something wrong?
sailias has quit [Ping timeout: 240 seconds]
<xybre> I thought OCRA was a font..
<volty> patrikf: apart from net call & on-stack & return generated code?
gusnasis has joined #ruby
rodacato has joined #ruby
<banisterfiend> xybre "<xybre> I like the idea of recusion, but loops are better for both people and computers for most situations." except in functional languages, and for recursive data structures (like trees) :)
jbrechtel has joined #ruby
mlpinit has quit [Remote host closed the connection]
orolo has quit [Read error: Connection reset by peer]
toddWork_ has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
Notte has quit [Remote host closed the connection]
<xybre> Functional languages have to work for that feature, and for trees, yes I agree recusion makes sense there since you'll have to jump through hoops to use just loops. (it rhymes!)
<platzhirsch> recursions can make to implement a lot of algorithms easier once you get the hang of it
<MrZYX> stand up, who's going to patch tail recursion into ruby? :P
<banisterfiend> MrZYX it's already in there i think
<xybre> MrZYX: already exists
<MrZYX> oh really?
<banisterfiend> not sure why it's not on by default
havenwood has quit [Remote host closed the connection]
<banisterfiend> probably someone can just write a tonne of tests and benchmarks
<xybre> Yup, just need to pass in a flag
havenwood has joined #ruby
<MrZYX> wow, need to explore that
<banisterfiend> you can turn it on at runtime too i think
<platzhirsch> Tail recursive optimization is mostly the only reason to avoid some recursion implementations
amacgregor has joined #ruby
<banisterfiend> but only in MRI
<xybre> I leave it off because most of the time if there's a stack overflow in ruby its for a good reason.
<bnagy> eh? MRI has TCO
<volty> iteration, with "marking" what is to be visited, is just another way of recursing
<volty> or not?
dangerousdave has quit [Quit: Leaving...]
<xybre> With proper tail call optimization it'll recourse forever.. which can be hillarious.
<apeiros> volty: loop with a stack, yes
<platzhirsch> lol, hilarious indeed
jbrechtel has quit [Ping timeout: 246 seconds]
BillCriswell has quit [Remote host closed the connection]
<apeiros> bnagy: is it yet activated by default?
simplyaubs has joined #ruby
<apeiros> I know it was in since 1.9, but in 1.9 it had to be manually activated
<bnagy> not afaik, but I don't really care about MRI :)
<havenwood> 2.1 methinks
<bnagy> tbh it's probably just a false cuddly blanket
<patrikf> volty: platzhirsch: well, if the idea makes more sense to you in the recursive way, then you're probably better off programming it that way, unless you really need the extra performance / your data is big enough that you get into stack problems.
<bnagy> too many people seem to think it means "Makes Recursion Magic"
carlyle has joined #ruby
gusnasis has quit [Ping timeout: 248 seconds]
<havenwood> RubyVM::InstructionSequence.compile_option = { tailcall_optimization: true }
<volty> patrikf: ok, i was thinking that your about optimization was apart from the known call & on-stack & return overhead
<r0bgleeson> bnagy: yeah true. the fools. they need JVM scale!
capsuley has joined #ruby
<bnagy> :>
<apeiros> r0bgleeson: but jvm doesn't have tco!
<platzhirsch> *drumroll* "Will it... scale?"
zastern has joined #ruby
__brain_shim__ has quit [Quit: Leaving]
<apeiros> I have a dragon scale, what more do I need?
<platzhirsch> apeiros: ahaha, a phoenix feather?
<apeiros> plenty of those
<platzhirsch> then you are set
<apeiros> magi-tek armor
<r0bgleeson> yeah, i hear a lot of sys admins dress like that before scaling
<platzhirsch> so we are playing Ruby warrior now or what? https://www.bloc.io/ruby-warrior/#/
get9 has left #ruby [#ruby]
kilophoton has quit [Ping timeout: 246 seconds]
<apeiros> no, I play "hit the pillow until it surrenders"
<apeiros> gn8
simplyaubs has quit [Client Quit]
<workmad3> night apeiros
apeiros has quit [Remote host closed the connection]
Neener54 has quit [Quit: Adios muchachos!!!]
<r0bgleeson> i couldnt live with a pillow that i had to beat to death
apeiros has joined #ruby
MrThePlague has quit [Remote host closed the connection]
<platzhirsch> you forgot something?
<volty> but there's another, big, point in favor of iteration: we often use recursion on complex data & problems - so, if something goes wrong it is much easier to debug && fix it if we have a loop
jsatk has quit [Remote host closed the connection]
<banisterfiend> volty i've never had a problem debugging recursive functions
DanKnox_away is now known as DanKnox
<volty> or more precisely : "loop implementation of the recursion"
<banisterfiend> but i guess i only use it for simple cases
<volty> banisterfiend:
mmitchell has joined #ruby
<volty> ah ok, i had that doubt :)
thesheff17 has quit [Remote host closed the connection]
rodacato has quit [Remote host closed the connection]
<platzhirsch> the thing with debugging is, if there are so many cases in your recursive function that you have to deal with it then maybe something is wrong with your approach?!
Rym has quit [Ping timeout: 240 seconds]
<platzhirsch> base recursion, simple case, generalize... well maybe that's too Haskell-like with pattern matching
colonolGron has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
<volty> platzhirsch: that's why lisp is behind regarding real-world problems
<platzhirsch> yeah?
huoxito has joined #ruby
<platzhirsch> Lisp never gave me the appeal in learning
<platzhirsch> I once started to learn Clojure
digital-ghost has quit [Remote host closed the connection]
atmosx has joined #ruby
<havenwood> platzhirsch: I'm a couple days into Clojure, just started going through Project Euler.
<platzhirsch> havenwood: oh nice, Project Euler I a nice way of doing that
<platzhirsch> havenwood: what do you say?
larissa has joined #ruby
kilophoton has joined #ruby
<volty> the only low-practical language i was appealed by is Prolog
Rym has joined #ruby
<volty> (long time ago)
mmitchell has quit [Ping timeout: 240 seconds]
peregrine81 has quit []
colonolGron has quit [Ping timeout: 248 seconds]
<platzhirsch> volty: so where does your nick come from?
dkamioka has quit [Remote host closed the connection]
<jshakespear> fryguy: so...it's doing the same thing with the oauth2 gem
carlyle has quit [Remote host closed the connection]
bean has quit [Quit: Computer has gone to sleep.]
seich- has joined #ruby
barderer has quit [Ping timeout: 240 seconds]
<jshakespear> could it be something i didn't/don't have installed?
<havenwood> platzhirsch: Ruby's manpage does say "... like the concept of LISP, but don't like too many parentheses, Ruby might be your language of choice."
<volty> voltaire - i changed it (in the old nice irc-days) because too many of them used to stick with "
<volty> "I disapprove of what you say,
<volty> but I will defend to the death your right to say it"
KobraKao has quit [Ping timeout: 264 seconds]
fcahoon has quit [Quit: Leaving]
<havenwood> Hrm, lisp is allcaps?
<platzhirsch> nice
<volty> reducing voltaire to a mere, trivial, pro-democratic slogans
nfk has quit [Quit: yawn]
<havenwood> Oh, historically.
cads has quit [Ping timeout: 264 seconds]
hukl has quit [Quit: Leaving...]
Monie has joined #ruby
<havenwood> TIL: Locator/Identifier Separation Protocol
<platzhirsch> LISP derives from LISt Processing (wiki)
mrsolo has quit [Quit: This computer has gone to sleep]
<volty> yes, you have a head (one element) and the rest
skinkitten has joined #ruby
<havenwood> ah, right, lisp the language versus LIST the protocol.
jerius has quit [Ping timeout: 246 seconds]
<havenwood> s/LIST/LISP
claymore has quit [Quit: night]
<havenwood> uhhg, I give up >.>
barderer has joined #ruby
kilophoton has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
<banisterfiend> volty that's just a linked list
<banisterfiend> volty any language that has linked lists supports that
<banisterfiend> haskell has nice syntax for linked lists too
<volty> banisterfiend: i was recollecting the notions from the old days - studying lisp or so ...
zastern has quit [Remote host closed the connection]
zastern has joined #ruby
capsuley has quit [Remote host closed the connection]
<banisterfiend> volty linked list in haskell: data List a = Nil | Cons a (List a)
<banisterfiend> algebraic datatypes ftw
mary5030 has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
<volty> all the languages were influenced by lisp
Hien has quit [Ping timeout: 264 seconds]
kilophoton has joined #ruby
<volty> but dropped the excess of parentheses - for our joy
rhys_ has quit [Quit: Leaving]
jaimef has quit [Excess Flood]
solidoodlesuppor has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 276 seconds]
Hien has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
<havenwood> my fingers are stronger at Ruby, right ring finger not prepared for all the (())()))()
jaimef has joined #ruby
<volty> banisterfiend: nice voice (Barry White), thx
nwertman_ has joined #ruby
r4nd0m1 has quit []
i_s has joined #ruby
love_color_text has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<havenwood> Lisp stands out with two red mickey mouse ears on '(' and ')' ^.
RORgasm has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Rym has quit [Ping timeout: 240 seconds]
Rym has joined #ruby
<havenwood> C++ with its '-'s and ObjC with its '/'s.
quoin has joined #ruby
SteveBenner9 has joined #ruby
DrCode has joined #ruby
funny_banana is now known as zz_funny_banana
<havenwood> I need lispercise.
<xybre> I am not find of ()'s. I avoid them whenever possible in Ruby. Most of the time if you write good code, you don't need ()'s.
orionstein is now known as orionstein_away
<platzhirsch> xybre: I read the opposite
visof has quit [Ping timeout: 264 seconds]
tvw has quit []
iamjarvo has quit [Read error: Operation timed out]
enebo has joined #ruby
nhhagen has quit [Remote host closed the connection]
<platzhirsch> you know,... there is only one truth :P
<volty> "good code" is without parens ?
nhhagen has joined #ruby
<havenwood> (My skin is not my own.)
<platzhirsch> If you use parenthesis you are DOING IT WRONG
<xybre> platzhirsch: you read the opposite of what?
<volty> i call methods with arguments in mind, why should i omit parenthesis ?
MrZYX is now known as MrZYX|off
azcodex has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
<platzhirsch> xybre: what you said. Okay, you said "I", I read: one should use parenthesis whenever possible
<|jemc|> I think he means surrounding your (method with, paren, theses)
<volty> parenthesis are there to clearly bind the argument list to the method name
mrsolo has joined #ruby
snovak has joined #ruby
<|jemc|> rather than surrounding your method(arguments, with, paren, theses)
<xybre> platzhirsch: I don't actually care if you use them or not, but if you following the best practices for OO and Ruby you'll notice that you can usually leave them out
<platzhirsch> xybre: That's how I started
<Buuyo> what about for method definitions?
<xybre> You don't need them for method definitions either
<volty> sorry man but it hasn't, anything, to do with OO
<platzhirsch> xybre: and then someone said in this channel here, one should not drop them
<xybre> Unless you're using named parameters, you might then
jlast has quit [Remote host closed the connection]
shunt has quit [Ping timeout: 246 seconds]
khushildep has joined #ruby
<xybre> To each their own. None of my projects have more than a few pairs of parens throughout.
<volty> hah! the sound "best practices"! Decided by whom?
pushpak has quit [Quit: Linkinus - http://linkinus.com]
nhhagen has quit [Ping timeout: 240 seconds]
alvaro_o_ has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
<xybre> By people.
<volty> it's you style man // you think without parenthesis // it is not because the code is good you can omit
<platzhirsch> vomit?
<volty> no way // freedom of choice // richness of expression
<duggiefresh> we've had good results with using parens for our method definitions and initializations... but when sending in arguments, we refrain from using parens.
<duggiefresh> but to each his/her own.
<volty> no way // it's about our freedom of choice // it's about the richness of expression
<xybre> You misunderstand, I'm just saying its a coincidence. Not that its a best practice.
workmad3 is now known as wm3|zzz
<bnagy> what on earth do you mean by "good results"?
<shevy> I hate people who omit parens when using def
Skylab has joined #ruby
* xybre is hated by shevy
<bnagy> yeah me too
<platzhirsch> xybre: ah come on, don't drop the brackets on method definitions
duggiefresh has quit [Remote host closed the connection]
apfelbox_ has joined #ruby
<shevy> we are divided 50%
<volty> xybre, you said «Most of the time if you write good code, you don't need ()'s.»
<havenwood> i care not
<xybre> volty: its true, but that doesn't make it a causal relationship.
narcan has joined #ruby
<platzhirsch> ok, calm down guys
<volty> oky
<platzhirsch> why don't we join #python and make fun of them because they cannot omit the parenthesis?
mklappstuhl has joined #ruby
<shevy> no, they are poor
<shevy> they have no choice
<platzhirsch> lol
KobraKao has joined #ruby
momomomomo has quit [Quit: momomomomo]
hakunin has joined #ruby
<volty> xybre: not causal, BUT, sounds, quite exclusive :)
<xybre> lol
<shevy> for calling methods I dont really mind if parens are omitted at all... cat.jump_to :house vs. cat.jump_to(:house) i think the first is better, but I dont mind the second that much... only for method definitions
<|jemc|> what a silly conversation to have continued so long
<shevy> def one two three four
hakunin has quit [Remote host closed the connection]
<shevy> no wait
<shevy> hahaha :D
mklappstuhl has quit [Remote host closed the connection]
hakunin has joined #ruby
nari has joined #ruby
<shevy> def one two, three, four
<platzhirsch> I really do like the connotation of saying send methods to an object rather than call on them
<xybre> Hmm. You know, it might be because most of the languages I started with didn't use parens.
<shevy> lisp
<volty> platzhirsch: i used to prefer call until i started doing with slots and signals
<xybre> Clearly not lisp :D
asobrasil has left #ruby [#ruby]
<shevy> hehe
<platzhirsch> volty: slot and signals?
apfelbox has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 246 seconds]
<shevy> there was a game written in scheme, it was not so bad actually, I could understand the .scm files a little bit
apfelbox_ has quit [Ping timeout: 246 seconds]
maxamillion has quit [Remote host closed the connection]
<shevy> (define (troll-foes-in-weapon-range ktroll karms kfoes)
<shevy> (foldr (lambda (a b) (if (weaker? a b) a b))
<xybre> There wasn't a whole lot of parens in Applesoft basic or REXX. Some, but not many. Looking at some old code, the proportion is pretty similar to how often I use them today. Crazy.
<shevy> he eventually switched to python, then stopped the game project suddenly ... :\
* |jemc| shudders at having to use the comparison operator before the pair of operands in lisp
c0rn has quit [Quit: Computer has gone to sleep.]
<volty> platzhirsch: gui stuff, you emit (send) a signal (e.g. in qtruby, emit(Hub.file_changed(...)) ... it's kind of asyncronous call (or better send)
<platzhirsch> volty: ah Qt of course
<xybre> shevy: development often stops when one tries to port their code to a new language :/
hashpuppy has joined #ruby
maxamillion has joined #ruby
maxamillion has joined #ruby
maxamillion has quit [Changing host]
<shevy> xybre yeah, I think he lost the fun when he did
<shevy> it was neat while it was still in scheme though
mgorbach has quit [Quit: ZNC - http://znc.in]
<platzhirsch> <=>  · · · · · · pew pew
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgorbach has joined #ruby
<xybre> Hmm, looks like 4DOS batch language also didn't have a lot of parens. I'm kinda weirded out now.
obs has quit [Quit: Konversation terminated!]
<xybre> Well. Anyway.
<shevy> haha I found something he wrote 9 months ago
kilophoton has quit [Ping timeout: 248 seconds]
<shevy> "Your game will be mostly written in scheme, an unpopular language with few advocates. The engine itself is a horrid mixture of C and C++."
brianpWins has quit [Quit: brianpWins]
RichardBaker has quit [Quit: RichardBaker]
<platzhirsch> With C I really become a racist, C++ is an environmental disaster
<shevy> well
<shevy> games are hard
burlyscudd has joined #ruby
mklappstuhl has joined #ruby
MrZYX|off is now known as MrZYX
<xybre> shevy: that looks pretty neat. I started working on a sort of text-mode game engine in pure Ruby and ended up recreating Curses >.<
<platzhirsch> haven't played computer games seriously since 2009
robbyoconnor has quit [Read error: Connection reset by peer]
<shevy> xybre it's a nice little game he wrote actually... like ultima 4 or something, if you know the old ultima games...
MrZYX is now known as MrZYX|off
khushildep has quit [Quit: khushildep]
<shevy> platzhirsch that is fine, I gave up playing too, but how about creating games?
robbyoconnor has joined #ruby
mgorbach has quit [Client Quit]
LoRe has joined #ruby
<xybre> I play games randomly. Mostly I seem to collect them on Steam..
mgorbach has joined #ruby
<platzhirsch> shevy: that would a really great learning experience, but I am always like, ah come one there must be something different to create which has more impact on, I don't know, me, my skills, my environment
<platzhirsch> I have implemented a multiplayer version of Conway's Game of Life in Java Swing which could be played over teh internetz
RichardBaker has joined #ruby
brain_shim has joined #ruby
<shevy> ack
mansi has quit [Ping timeout: 276 seconds]
burlyscudd has quit [Read error: Connection reset by peer]
hadees has quit [Quit: hadees]
<platzhirsch> What's the opposite of a nested hash?
<platzhirsch> flat hash? non-nested hash,...
<shevy> does that even exist? perhaps a hash turned upside down
<xybre> platzhirsch: a Set?
brianpWins has joined #ruby
snath has quit [Ping timeout: 276 seconds]
<platzhirsch> xybre: well technical it's still a hash
<platzhirsch> oh
<platzhirsch> I just mean names for {x: 5} vs. {x: {a: 1 } }
<xybre> Thats just a hash.
peret has quit [Ping timeout: 268 seconds]
<platzhirsch> the latter one is a nested hash
<platzhirsch> or a hash with a nested hash
<xybre> Sure. But the former is just a hash.
<volty> hash not having hash-like values
<platzhirsch> boo
nari has quit [Ping timeout: 264 seconds]
Zai00 has joined #ruby
btanaka has joined #ruby
love_color_text has quit [Remote host closed the connection]
hasrb has quit [Remote host closed the connection]
duggiefresh has joined #ruby
supergiantrobot_ has quit [Quit: supergiantrobot_]
barderer has quit [Ping timeout: 246 seconds]
kvirani has quit [Ping timeout: 276 seconds]
Bry8Star{T2 has quit [Remote host closed the connection]
nhhagen has joined #ruby
ryandeussing has joined #ruby
Bry8Star{T2 has joined #ruby
kvirani has joined #ruby
mmitchell has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
yacks has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
ryandeussing has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
mlpinit has joined #ruby
mmitchell has quit [Remote host closed the connection]
maxamillion has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
fridim_ has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
kobain has quit [Ping timeout: 256 seconds]
nhhagen has quit [Ping timeout: 246 seconds]
RichardBaker has joined #ruby
pvizcay has quit [Ping timeout: 276 seconds]
axsuul has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mlpinit has quit [Ping timeout: 264 seconds]
smathieu has quit [Remote host closed the connection]
DefV has quit [Ping timeout: 248 seconds]
cantonic has joined #ruby
DefV has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
cody-- has joined #ruby
dodosan has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
benlieb has joined #ruby
yoshie902a has joined #ruby
<benlieb> can someone help me. my `gem` command seems to not be able to find any gems. the sources command says it's only source is http://rubygems.org. Is this right?
volty has quit [Quit: Konversation terminated!]
<benlieb> It's on an old app, and I'm running the command from the server
<yoshie902a> Hi, I have a Rakefile, and inside it I have Time.now, is time a valid syntax? It seems that I am getting nil from it
<benlieb> the rails app is 2.1.1, so no bundler, etc.
tricon_ has joined #ruby
<benlieb> gem v. 1.2.0
<bnagy> Time.now is valid, and rubygems should be fine as the only gem source
headius has quit [Quit: headius]
smathieu has joined #ruby
<xybre> benlieb: try "https://rubygems.org"?
dml_ has quit [Quit: Computer has gone to sleep.]
<yoshie902a> If time is value, than I think the problem is "JSON.parse(`knife node show #{ENV["NAME"]} --format json --attribute ec2`) rescue nil" is JSON valid?
headius has joined #ruby
<benlieb> xybre: ok, I just added this as a source and removed http://gems.rubyforge.org. Is there some local index of gems that I need to rebuild?
<yoshie902a> s/value/valid
motto has quit [Quit: Sto andando via]
pel_daniel has left #ruby [#ruby]
Nss has quit [Remote host closed the connection]
<benlieb> Error fetching https://rubygems.org/: NameError: undefined local variable or method `http_obj' for #<Gem::RemoteFetcher:0x2ac0ad57d0a8> (https://rubygems.org/specs.4.8.gz)
<benlieb> xybre: ^
<yoshie902a> I do require 'json' before running it
<xybre> benlieb: what version of ruby gems are you using? This sounds like its all ancient
<bnagy> yes, json is stdlib, needs to be required
<benlieb> 1.2.0, it's an old app, maybe 5 years, that hasn't been touched for a while
<benlieb> xybre: &
<benlieb> ^
<xybre> jeez
<benlieb> xybre: yep ;)
<xybre> I'm using gem 2.0.6
<Eiam> pry rescue, y u no rescue NoMethodError
<xybre> benlieb: you have your work cut out for you :)
<benlieb> xybre: this is on the server of an old app. the rails app is 2.1.1 (gulp)
maletor has quit [Quit: Computer has gone to sleep.]
<benlieb> I just need to install a darn gem.
<benlieb> xybre: suggestions?
<xybre> benlieb: ouch. Well.. you have all this in version control right? If not, start now.
<benlieb> xybre: of course
<bnagy> >> [NoMethodError.superclass, RuntimeError.superclass]
<eval-in> bnagy => [NameError, StandardError] (https://eval.in/46934)
<benlieb> I just need the gem command to work. Everything else is fine.
Rym_ has joined #ruby
<xybre> benlieb: okay, you'll need to update rubygems `gem update --system`, you might need to tweak some of your gems that are using old APIs though
Rym has quit [Ping timeout: 240 seconds]
Rym_ is now known as Rym
devoldmx3 has joined #ruby
maletor has joined #ruby
<benlieb> xybre: that sounds like a bad idea. This app is 5 yrs old and a lot of people rely on it. I've just been asked to make a small tweak. Changing the behavior of existing gems is not really an option. Maybe I can install manually?
<benlieb> xybre: do you know exactly what the problem is? It seems like this was working several months ago. But I could be remembering wrong.
<xybre> benlieb: yes! if you know the gem go to rubygems.org/gems/<gem name>
<xybre> Then you can download it
headius has quit [Quit: headius]
<benlieb> xybre: do you know why the gem command isn't working? Is it because it doesn't know what to do with the response from rubygems.org?
Quashie_ has joined #ruby
<bnagy> did you change the ruby that's in use?
devoldmx has quit [Ping timeout: 264 seconds]
<xybre> benlieb: Not sure, is that the only error you're encountering?
Rym has quit [Ping timeout: 245 seconds]
virt|a has quit []
<xybre> benlieb: a full stack trace would be helpful too
Rym has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<benlieb> xybre: the gem install command fails with 'could not find gem awesome_print locally or in a repository' When I try to do this gem sources -a https://rubygems.org I get NameError: undefined local variable or method `http_obj' for #<Gem::RemoteFetcher:0x2acaff747080> (https://rubygems.org/specs.4.8.gz)
<benlieb> xybre: not sure how to get a stack trace on that
Quashie has quit [Ping timeout: 264 seconds]
virtualize has joined #ruby
<benlieb> xybre: why would the gem apis change if I just update the gem command?
<xybre> benlieb: -V makes it verbose --backtrace shows the backtrace, and then there's --debug
snovak has joined #ruby
<bnagy> awesome print is on github
<bnagy> ie you can just git clone; gem build .. && gem install ..
<xybre> benlieb: Rubygems is a library, if you update the library, the internal "object API" has changed since v1.x
<benlieb> xybre: but that shouldn't affect the gems already installed on the system, right. Only programs that use the gem command?
thillux has joined #ruby
<bnagy> btw there have also been "one or two important security updates" to rails in the last 5 years
<xybre> benlieb: some gem/libs use rubygems internals directly
tricon_ has quit [Quit: Leaving...]
mklappstuhl has quit [Remote host closed the connection]
KobraKao has quit [Quit: Saindo]
<benlieb> xybre: tnx for your help by the way. is the gem command self-contained? could I just back it up, install the new one, and then revert back if necessary? Or are there a bunch of files and config chagnes?
<xybre> benlieb: there's several files, but I'm pretty sure you can revert to any previous version of rubygems at any time (might want to test it first)
enebo has quit [Quit: enebo]
snovak has quit [Ping timeout: 276 seconds]
c0rn has quit [Ping timeout: 246 seconds]
<benlieb> xybre: perhaps the NameError above is due to ruby 1.8.6, and not gem?
<xybre> benlieb: did you update your ruby?
sailias has joined #ruby
<benlieb> xybre: no that's the old one.
<xybre> Well, then its probably not the problem. If you only have one Ruby installed and haven't changed it.
<xybre> But Rubygems has changed a lot, so installing a new gem with an old rubygems may not work as expected.
blackmesa has quit [Ping timeout: 240 seconds]
<benlieb> xybre: I don't know the last time it worked, I'm new on this projet
<benlieb> xybre: I'll only be installing old gems :)
<Eiam> awesome print is awesome until you need top use its output to create an object
<Eiam> then it sucks (cause you can't do that)
<xybre> "new" like "new to the system"
c0rn has joined #ruby
<xybre> Since you can't communicate with the Rubygem servers since the protocol appears to have changed. Download the gem manually, or like bnagy said, jsut clone the repo and install it from local.
sailias has quit [Ping timeout: 246 seconds]
predator217 has joined #ruby
tatsuya_o has joined #ruby
<benlieb> xybre: so I'll never be able to use the gem command for this project?
<benlieb> xybre: download which gem manually? The `gem` gem?
snath has joined #ruby
rcosta has quit [Remote host closed the connection]
burlyscudd has joined #ruby
yfeldblum has joined #ruby
<Eiam> rubygems
Klotho has joined #ruby
<xybre> benlieb: you'd just need to do a fresh install of gem if its not working. But you won't be able to use the gem command with rubygems.org. It still has other uses.
predator117 has quit [Ping timeout: 264 seconds]
hellome has joined #ruby
yfeldblum has quit [Max SendQ exceeded]
|jemc| has quit [Read error: Operation timed out]
<xybre> And yes, rubygems is the gem/library, not just "gem".
tricon_ has joined #ruby
<benlieb> so let me try to repeat back what I should do here.
yfeldblum has joined #ruby
tricon_ has quit [Read error: Connection reset by peer]
<benlieb> I need to update my gem command since it is old (1.2)
thillux has quit [Quit: Leaving]
thillux has joined #ruby
<benlieb> But I can't update it the normal way via gem update --system, because it's too old?
<benlieb> So I have to download it manually? I'm not sure exactly what to download manually, or from where...
lfox has quit [Quit: ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
<xybre> Right, either use your OS's package manager or download rubygems from the website. http://rubygems.org/pages/download
Lewix has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
Monie has joined #ruby
burlyscudd has quit [Quit: Leaving.]
kilophoton has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
devoldmx3 has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
nwertman_ has quit [Quit: leaving]
hellome has quit [Remote host closed the connection]
hellome has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
hellome has quit [Read error: Connection reset by peer]
kilophoton has quit [Ping timeout: 276 seconds]
hellome has joined #ruby
jbc22 has joined #ruby
ferdev has quit [Quit: ferdev]
cantonic has quit [Quit: cantonic]
maletor has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
thillux has quit [Quit: Leaving]
lukec has quit [Quit: lukec]
Monie has quit [Ping timeout: 276 seconds]
sailias has joined #ruby
<jbc22> hi - i've loaded a CSV file into memory and mapped it as a hash. now, i'm trying to use the key of that hash to find an element in the database, then update that record with the value of the hash. i can't seem to get it to update
<jbc22> im afraid i may be overcomplicating it
<benlieb> xybre: hm. Tried installing the gzip files from 1.8 and using ruby setup.rb, as instructed. Failed. Tried and failed for previous version and finally at around 1.3 it "installed" hm.
thedaniel1234 has joined #ruby
<xybre> benlieb: Oh wait, you're on 1.8.6.. man you are hosed. Even the most legacy of apps only support 1.8.7. You got your work cut out for you.
jshakespear has quit [Remote host closed the connection]
<benlieb> and now I can install gems again.
thedaniel1234 has quit [Client Quit]
yoshie902a has left #ruby [#ruby]
<benlieb> yay.
<xybre> Well hey, thats good news
hellome has quit [Read error: Connection reset by peer]
<benlieb> and just like that, after 1.5 hours with rails, I can update some text on the page :)
VTLob has quit [Quit: VTLob]
<benlieb> that's agile ;)
sailias has quit [Client Quit]
starfox21 has joined #ruby
hellome has joined #ruby
<xybre> haha
duggiefresh has quit [Remote host closed the connection]
<xybre> Hey, if it was Java you'd be working on it for the whole month
rupee has quit [Quit: Leaving]
mklappstuhl has joined #ruby
<benlieb> xybre: lol. For sure, been there. i've been doing rails for 4 years now. I do miss the simplicity of other frameworks. This old system I'm using is VERY complicated, and use mongrel clusters and nginx as a load balancer, etc. Ug. Looks like it was even harder back in the day.
seich- has quit [Ping timeout: 240 seconds]
<benlieb> 90% of my projects are > 3.0 and on Heroku. That does cut down admin time.
Monie has joined #ruby
<benlieb> xybre: thanks for your help. I appreciate it!
duggiefresh has joined #ruby
hellome has quit [Remote host closed the connection]
<Klotho> I'd like to ask what I hope is a simple question. I'm using activerecord in a non-rails program. I have a table with colums like: id, value. There can be multiple rows with the same id. I need to loop through up to N ids, and make a list of all the values per id. I was looking at using .group, but am not sure how to set up the loops. Can anyone give me some hints?
<xybre> benlieb: yep I started in '06 with Rails 2.x so I remember how complex it was
ravster has joined #ruby
hellome has joined #ruby
<xybre> benlieb: you're welcome, I'm glad you got it running, I was worried it was going to take longer tbh
Monie has quit [Read error: Connection reset by peer]
<benlieb> xybre: me too
mrsolo has joined #ruby
<benlieb> I'm very happy with my state of the art gem 1.3.4 now. Welcome back to 2009 :)
nari has joined #ruby
<xybre> Klotho: MyModel.limit(10).all.inject(Hash.new){|count, record| count[record[:id]] ||= 0; count[record[:id]] += 1}
<benlieb> I'm going to have to tell this client that they need to invest some resources into an upgrade that will cost them a lot of money. I'm sure they'll feel that they spent a lot of money 5 years ago on a product that they probably didn't know would only last 5 years.
<benlieb> xybre: ^
azcodex has quit [Read error: Connection reset by peer]
<xybre> ben it must be that lucky middle ground that supports the new rubygems.org API and also hasn't deprecated the Gem object API, and also supports 1.8.6.
<benlieb> xybre: this is a problem with rails, and other frameworks that change so much so fast.