apeiros changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
jstanton has joined #ruby
thiagovsk has joined #ruby
nobitanobi has quit [Remote host closed the connection]
renanoronfle has joined #ruby
al2o3-cr is now known as itworks
itworks is now known as al2o3-cr
bronson has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
yh_ has quit [Read error: Connection reset by peer]
yh_ has joined #ruby
gluten_hell has quit [Quit: Computer has gone to sleep.]
nobitanobi has joined #ruby
RandyT has quit [Read error: Connection reset by peer]
juanpaucar has quit [Remote host closed the connection]
rkazak has joined #ruby
RandyT has joined #ruby
kinduff has joined #ruby
wallerdev_ has joined #ruby
baweaver has joined #ruby
gusrub has quit [Quit: Leaving]
jpfuente_ has joined #ruby
leafybas_ has joined #ruby
<xxneolithicxx> oh man its water, its raining... take that california we have water! lol
<Radar> LOL
MatthewsFace has quit [Remote host closed the connection]
<baweaver> Oi
<baweaver> Not cool
longfeet has quit [Ping timeout: 244 seconds]
wallerdev_ has quit [Ping timeout: 255 seconds]
<xxneolithicxx> oi on contrare, its very cool
<baweaver> Sharing is caring
<xxneolithicxx> we can ship snow, but i dont know if we are doing it with water yet, check your local costco
* baweaver has heard costco mentioned 5 times today alone
wildroman2 has quit [Remote host closed the connection]
jpfuentes2 has quit [Ping timeout: 272 seconds]
<xxneolithicxx> i dont have any near me :-(
leafybasil has quit [Ping timeout: 258 seconds]
<shevy> there is so much water in the ocean
<Radar> nearest one to me is only 3.6km away TIL
<baweaver> But I can't dam the ocean shevy D:
cirn0 has quit [Remote host closed the connection]
<Radar> For those of you who still use Imperial that's approximately 5 buckets if my math is correct
<shevy> you'd have to be a giant beaver, or have like billion of beavers
<shevy> hmm actually you may run short of wood
<baweaver> Where there's a will there's a way
pengin has quit [Remote host closed the connection]
<pipework> In real imperials, that would be approximately 5 cubed feet of water per square inch.
<baweaver> We measure in obscure measurements of a person, so it'd be 4.35 Opera Hats, thank you.... @Radar
rubie has quit [Remote host closed the connection]
<Radar> baweaver: aha thank you
Aeyrix has left #ruby ["#rubyonrails"]
sevenseacat has joined #ruby
<baweaver> They still insist we're totally switching to Metric here in Elementary School
<baweaver> and have done so since the 70s
<baweaver> 'merica
codeFiend has quit [Quit: codeFiend]
Rickmasta has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
nateberkopec has joined #ruby
<xxneolithicxx> shh dont think
<xxneolithicxx> pass your standardized test stupid
failshell has quit []
saadq has quit [Remote host closed the connection]
* baweaver shrugs
skammer|afk is now known as skammer
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> I cared very little for school, just a piece of paper to get people's attention
jpfuente_ has quit [Read error: Connection reset by peer]
jpfuentes2 has joined #ruby
* bootstrappm cared a lot
<bootstrappm> and now I'm in a country where very few people care about education for educations sake
<bootstrappm> just to get a job
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xxneolithicxx> isnt that how it is in most places
troyready has quit [Ping timeout: 264 seconds]
<bootstrappm> probably
<xxneolithicxx> society equates being educated or smart with being an unpopular thing but makes it necessary for employment
<xxneolithicxx> and then wonder why kids dont want to get educated
<baweaver> Mind you I also read an average of 200 pages of fiction a day among other things
dorei has quit []
<xxneolithicxx> no no, im sorry thats just too damn high for me
<bootstrappm> haha yeah 200 is ambitious
<xxneolithicxx> im a slow reader
<bootstrappm> i think the highest i ever got was 100 in a day consistently and i was suuuuper into that series
<baweaver> I have 2 hours on a train for commute a day plus a bit extra at night
<xxneolithicxx> 50 pages and my brain tops out for one sitting
<bootstrappm> like obsessed
<bootstrappm> Wheel of Time if anybody knows it
keen___________1 has joined #ruby
<baweaver> bingo
<baweaver> Read that in about a month and a half or so
code_ has quit [Ping timeout: 272 seconds]
<bootstrappm> the series? or some subset of books?
<baweaver> series
<bootstrappm> so amazing
<baweaver> Mid August start and finished in early October
<baweaver> Look into Brandon Sanderson's works as well
<bootstrappm> really didn't like how it ended up but whatre you gonna do
<baweaver> Mistborn and The Stormlight Archive are great
keen___________0 has quit [Ping timeout: 265 seconds]
<bootstrappm> yeah I wasn't a fan of how he finished the series once he got handed it ... maybe something thats more originally his will be better
<bootstrappm> i've heard really good things about mistborn
<baweaver> Though recently I've become fond of Arsene Lupin, Montmorency, and Eli Monpress novels.
<bootstrappm> i'm sad there weren't more derivative works of WoT
<bootstrappm> games, etc.
<bootstrappm> always wanted to make one
<baweaver> Give me about a year and I'll publish a fiction book in the same general fiction vein.
<baweaver> Somewhere north of 250 pages in the manuscripts so far and very near double that in notes and assorted musings
<baweaver> Granted I've also been working on that one since I was 15, so about 10 years now
marr has quit []
<Radar> Brandon Sanderson is my hero
<Radar> true story
<Radar> baweaver: Have you read any of the Reckoners?
<bootstrappm> hahah at least you're still at it
moretti has quit [Read error: Connection reset by peer]
<baweaver> His lectures are great too Radar
<baweaver> Not offhand
* baweaver googles
oo_ has joined #ruby
moretti has joined #ruby
oo_ has quit [Remote host closed the connection]
<baweaver> Ah, that series
<Rager> is there a way to access @@ vars from the child class in a parent class?
<Rager> like... with some sort of late static binding
<baweaver> Saw it was YA and was a bit touchy about it
<blogjy> I looked here https://www.brightbox.com/docs/ruby/ubuntu/ I can't get this line to work $ ruby2.0 -S bundle -v <ENTER>
<blogjy> ruby2.0: No such file or directory -- bundle (LoadError)
<sevenseacat> i've heard a lot about wheel of time. never read them.
<baweaver> Not really, no.
oo_ has joined #ruby
<baweaver> Rager: better question, why do you think you need to?
<Rager> let me source you some sorce
<Rager> and you can tell me why the way I'm doing things is improper
<sevenseacat> theyre fantasy yeah? i think the only 'fantasy' books ive ever read in their entirety are game of thrones
<baweaver> sevenseacat: Worth it, but a bit slow to get into
code_ has joined #ruby
<baweaver> ragar give me a sec to grok it
<bootstrappm> ^ truth
charliesome has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
<baweaver> rager*
gambl0re has quit [Ping timeout: 245 seconds]
<Rager> and a child class: http://hastebin.com/govuzururo.vhdl
* sevenseacat looks up first one and grabs it on Kindle
<Rager> problem is, I have more than one child class, but they all populate @@cleanup
<Rager> and they all share @@cleanup
<baweaver> that scene in one of the later books makes it well worth it
<Radar> WoT has to be some of my favourite books
nobitanobi has quit [Remote host closed the connection]
<bootstrappm> true story
<bootstrappm> Battle of Dumai Wells as well
Cache_Money has joined #ruby
Agoldfish has quit [Quit: G'Bye]
<baweaver> Ping me later at brandon_weaver@baweaver.com if you're interested in beta reading later
Vile` has quit [Remote host closed the connection]
<Radar> Rager: Sounds like you want cattr_accessor from ActiveSupport, but I can't be sure.
saadq has joined #ruby
<baweaver> Rager: Almost looks like you just want to rename elements
saadq has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 276 seconds]
saadq has joined #ruby
michael_mbp has quit [Excess Flood]
mikecmpbll has quit [Quit: i've nodded off.]
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> and the second is actually: http://hastebin.com/govuzururo.rb
mistermocha has quit [Read error: Connection reset by peer]
<Rager> I want to create a mapping of good names to the bad names to be replaced
dstarh has joined #ruby
mistermocha has joined #ruby
<Rager> I figured I could just define a class that had the functionality
platzhirsch has quit [Ping timeout: 256 seconds]
<shevy> good
<shevy> class Improver
<Rager> maybe I should just put the common stuff into a module instead
<baweaver> More of a functional concept really, mapping between two hashes
<shevy> Improver.new(bad_name_here) # => returns 'good_name_here'
<Rager> that should probably at least sidestep the fact that child classes share @@ vars
troyready has joined #ruby
Vile` has joined #ruby
<baweaver> I'd solved this same thing some time earlier
<Rager> I just wanted a nice regular syntax for specifying the stuff
<baweaver> see if I can find it
<Rager> it works fine if I just have one class
rkazak has quit [Quit: Sleep.....ing....]
mordof has joined #ruby
_blizzy_ has joined #ruby
michael_mbp has joined #ruby
<Rager> not really looking to rip out my code to put in completely new code
saadq has quit [Remote host closed the connection]
<Rager> but it'd be nice to not rely on some sort of static var
nobitanobi has joined #ruby
goodcodeguy has joined #ruby
<baweaver> Just a sec, working out another version for it.
Kricir has quit [Remote host closed the connection]
<baweaver> problem comes with collisions
mistermocha has quit [Ping timeout: 265 seconds]
<baweaver> what if you have more than one that comes up with one result?
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybas_ has quit [Ping timeout: 264 seconds]
<shevy> this is a reason why beavers are considered nature's ecosystem engineers
<shevy> they think about that kind of stuff
<mordof> lol
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
f3lp has quit [Ping timeout: 244 seconds]
<vikaton> >> [12,3,4]-[12,2,4]
<ruboto> vikaton # => [3] (https://eval.in/371514)
jimms has quit [Remote host closed the connection]
sankaber has joined #ruby
cirn0 has joined #ruby
dfockler has joined #ruby
commondream has joined #ruby
swgillespie has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robustus has quit [Ping timeout: 264 seconds]
goodcodeguy has joined #ruby
nateberkopec has quit [Quit: Leaving...]
CloCkWeRX has joined #ruby
<Rager> baweaver: I found the solution
northfurr has quit [Quit: northfurr]
<Rager> (for rails) just use class_attribute
mello has joined #ruby
byprdct has joined #ruby
<Rager> *so easy*
robustus has joined #ruby
<baweaver> well if you want to mass rename hash elements
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 245 seconds]
dfockler has quit [Ping timeout: 258 seconds]
<Rager> whoa...
<Rager> you're going a little bit extremey
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Rager> this is to just produce a map of proper values onto lists of improper values
MatthewsFace has joined #ruby
<baweaver> Rename all impropers to proper
<sevenseacat> hastebin asploded
<baweaver> derivative of something I did earlier.
<sevenseacat> that link gives me a 500
s2013 has joined #ruby
mello has quit [Ping timeout: 246 seconds]
Chagel has joined #ruby
<sevenseacat> haha nice
lampshades has joined #ruby
<sevenseacat> its all about creating the awesome method interface :)
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has quit [Remote host closed the connection]
<baweaver> added example returns too at the bottom just now
<baweaver> Probably need better names but it works.
codeFiend has joined #ruby
FernandoBasso has quit [Quit: leaving]
<Rager> baweaver: I'm not trying to update a hash
<Rager> I'm trying to produce a hash for db updates
RegulationD has joined #ruby
<Rager> in any case, I have my solution
prereflect has joined #ruby
<Radar> "Application error"
<Radar> Rager: ?gist
<Radar> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
jacor has joined #ruby
<Rager> hastebin's daed
zz_barkerd427 is now known as barkerd427
<Rager> oh well
mrsolo has quit [Quit: This computer has gone to sleep]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
podman has quit [Quit: Connection closed for inactivity]
<Rager> in any case, I found a *very* simple solution for the issue
RegulationD has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
wallerdev_ has joined #ruby
oo_ has quit [Remote host closed the connection]
iwishiwerearobot has quit [Ping timeout: 245 seconds]
jpfuentes2 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
iwishiwerearobot has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jacor_m has joined #ruby
wallerdev_ has quit [Ping timeout: 240 seconds]
hanmac has quit [Ping timeout: 256 seconds]
qwertme has joined #ruby
nobitanobi has quit [Remote host closed the connection]
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
mrsolo has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
prereflect has joined #ruby
amclain has joined #ruby
Lucky__ has joined #ruby
snockerton has quit [Quit: Leaving.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
rubie has joined #ruby
<blogjy> why is it that i can't send to channel #rubyonrails?
<bootstrappm> because you touch yourself at night
<pipework> blogjy: See /topic in #RubyOnRails
afrianska has joined #ruby
<blogjy> ta
oo_ has joined #ruby
blogjy has quit []
cirn0 has quit [Remote host closed the connection]
afrianska has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
pocketprotector has quit [Quit: WeeChat 0.4.3]
pocketprotector has joined #ruby
nateberkopec has joined #ruby
garyserj has joined #ruby
bootstrappm has left #ruby [#ruby]
<garyserj> if i wanted to make an application with a GUI but not web, how would I go about that?
<baweaver> What have you tried?
afrianska has joined #ruby
<sevenseacat> not.... web..... doesnotcompute
<afrianska> clear
* baweaver smirks
<afrianska> helloo good morning..
<baweaver> garyserj: What have you tried?
prereflect has left #ruby ["Textual IRC Client: www.textualapp.com"]
Cache_Money has joined #ruby
hewenhong has joined #ruby
codeFiend has quit [Ping timeout: 265 seconds]
danoo_ has quit [K-Lined]
rmoriz has quit [K-Lined]
shtirlic has quit [K-Lined]
RealMarc has quit [K-Lined]
<pipework> garyserj: there's a plethora of unsatisfactory answers on this subject.
<baweaver> garyserj: Simple answer is you need to do some searching as this has been answered quite a few places already.
danoo_ has joined #ruby
NIGerGERmany has joined #ruby
<NIGerGERmany> hi everyone i love ruby it's a great language
<baweaver> but in general, I wouldn't
shtirlic has joined #ruby
<sevenseacat> !ban NIGerGERmany
<NIGerGERmany> why?
rmoriz has joined #ruby
<sevenseacat> dammit ruboto
<NIGerGERmany> i came here to help everyone
RealMarc has joined #ruby
<NIGerGERmany> i'm an experienced rubyist
<pipework> We're an exclusive club.
<NIGerGERmany> what did i do to deserve a ban?
<pipework> sevenseacat: Can you +b the web gateway for now?
NIGerGERmany was banned on #ruby by sevenseacat [*!6883d781@gateway/web/freenode/ip.104.131.215.129]
NIGerGERmany was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
<baweaver> pipework: apeiros actually did some stats on that
<pipework> You shouldn't include the number between the ! and the @, just another asterisk would be preferable, but banning the whole web gateway for a few hours is often best when there's repetitive offenders.
jalcine has quit [K-Lined]
larissa has quit [K-Lined]
sparr has quit [K-Lined]
<baweaver> Turns out to be something along the lines of 260 unique nicks and 30 some bans
sparr has joined #ruby
larissa has joined #ruby
jalcine has joined #ruby
threh has joined #ruby
kinduff has quit [Quit: brb]
nateberkopec has quit [Quit: Leaving...]
<Radar> pipework: happy?
<shevy> :>
zreisman has joined #ruby
<Radar> wow the #ruby ban list is full of nick bans
<shevy> garyserj did you try ruby-gnome bindings yet?
yh_ has quit [Ping timeout: 245 seconds]
<pipework> Radar: Yeah should be fine. But if you see them pop up again from the web gateway, you should just ban *!*@gateway/web/freenode/* I think, but only for a few hours until the spam attack abates.
<sevenseacat> its probably me doing it wrong.
<shevy> garyserj there are not that many options ... ruby-gnome/ruby-gtk, ruby-qt, shoes, ruby-tk, ruby-wxwidgets... hmm fxruby in the past... I may have forgotten a few more
northfurr has quit [Quit: northfurr]
<shevy> cats do not do anything wrong by definition alone
<Radar> pipework: this is not an hourly thing. This is something that happens nearly every day
<pipework> They do things precisely as they mean for them to be done.
<Radar> pipework: banning the gateway means that we ban any regular users who are connected on that too
<pipework> Radar: No, there's an actual attack going on against a lot of freenode right miaow, that's what I mean.
northfurr has joined #ruby
<shevy> lol
<shevy> right miaow - you did that on purporse
<pipework> A large number of rather large channels are seeing much worse.
yh_ has joined #ruby
<pipework> 4 hours of not being able to access this channel isn't that bad. I bet you could set a ban-forward though.
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
<Radar> A ban forward would be fine but I am not allowed to do things without consulting with other ops :)
<Radar> And it wouldn't completely solve the problem anyway, as those other users can just join whenever
NIG_GERS has joined #ruby
<NIG_GERS> who's the joker that klined me?
<pipework> Radar: I don't personally mind if someone just keeps banning these spammers.
<Radar> !ban NIG_GERS !T 1D
NIG_GERS was banned on #ruby by ChanServ [NIG_GERS!*@*]
NIG_GERS was kicked from #ruby by ChanServ [User is banned from this channel]
<Radar> I'm fine with banning them as they pop up.
<sevenseacat> oh thats how to do it.
duderonomy has joined #ruby
<pipework> That bot should be fixed.
* sevenseacat writes notes
<pipework> I could keep the same IP and everything and just change the ident and rejoin.
<Radar> pipework: Yes.
* Radar will stay op'd
<pipework> Good luck and good hunting.
<Radar> pipework: How do I set a +b ban with a time limit?
kinduff has joined #ruby
<pipework> Radar: I don't think you can.
<Radar> Fun.
longfeet has joined #ruby
<pipework> Radar: Freenode staff sometimes disallows connecting from different gateways anways during these onslaughts.
<sevenseacat> when i went to ask them, they just told me to add +q ~a.
<sevenseacat> to the channel.
davedev24_ has quit []
<Radar> sevenseacat: :) That's right.
<Radar> That would totally abate these spammers imo
* sevenseacat shrugs
<sevenseacat> that got shot down, so
<pipework> sevenseacat: Quiet all unidentified accounts works, but then you need to make web gateway users auth with nickserv.
<Radar> notice how #rubyonrails doesn't get those spammers?
<sevenseacat> pipework: i have no problem with that.
<pipework> Me neither.
<pipework> Just raises that bar a little more.
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> i would have no problem with disallowing the web gateway entirely.
Hien has joined #ruby
<Radar> how about we +q the web gateway?
<sevenseacat> better put it to another vote.
<Radar> *shrug* I will just ban people as they keep coming in
<Radar> I can keep it up longer than they can ;)
<pipework> Y'all might benefit from enlisting a freenode staffer that also likes ruby. There's generally workflows for handling this stuff that's an expected norm, so you don't need to democratize the situation if you want.
<sevenseacat> people will crack the shits if we dont.
<pipework> It's mostly just a solved problem on how to handle that stuff.
That1Guy has joined #ruby
<Radar> sevenseacat: yup :)
<pipework> sevenseacat: I'd say they'd be amateurs, as there's IRC social protocol for ops that is likely older than the people who would get upset.
<sevenseacat> lol
<pipework> But I'm just glad not to be an op. I'd have too much fun.
mistermocha has joined #ruby
pontiki has joined #ruby
<pontiki> hallo
blazes816 has joined #ruby
afrianska has quit [Ping timeout: 244 seconds]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hey pontiki you missed a lot of troll-action today
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
afrianska has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
cleopatra has joined #ruby
<cleopatra> helloooooooooooo
marsjaninzmarsa has joined #ruby
tcrypt has quit [Ping timeout: 244 seconds]
<marsjaninzmarsa> yo
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claptor has joined #ruby
<cleopatra> hello friend good ruby ebook?
goodcodeguy has joined #ruby
baweaver has quit [Remote host closed the connection]
prereflect has joined #ruby
<pipework> cleopatra: yes
charliesome has quit [Quit: zzz]
<marsjaninzmarsa> i'm doing GitLab instalation guide https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
<cleopatra> hello pipework :) long time no see you
<marsjaninzmarsa> and in point: Check Application Status Check if GitLab and its environment are configured correctly
blazes816 has quit [Ping timeout: 272 seconds]
<pipework> cleopatra: Is ruby your first programming language?
<marsjaninzmarsa> is not described what to do if not...
<pipework> I wonder where people get their obscure paste sites from.
faris has quit [Remote host closed the connection]
RegulationD has joined #ruby
<marsjaninzmarsa> i'm not into ruby, but it it looks like problem with my gems. :D
charliesome has joined #ruby
<cleopatra> pipework no really I practice a litle c++
GriffinHeart has quit [Remote host closed the connection]
<pipework> cleopatra: Learn to Program might be good to get that boring but important basic knowledge down.
<cleopatra> i see pipework
hewenhong has quit [Remote host closed the connection]
goodcodeguy has quit [Client Quit]
hewenhong has joined #ruby
<Radar> Totally blanking on the Ruby shortcut for this: https://gist.github.com/radar/ae2c69ed608ec83b69ad
<Radar> I know there is one
<sevenseacat> [a+b, 0].max ?
<cleopatra> hello Radar my her0
<Radar> cleopatra: hello
<Radar> sevenseacat: that'll do the trick!
<cleopatra> and sevenseacat hi!
<sevenseacat> cleopatra: howdy :)
<cleopatra> I'm bored I would like to read a good book of ruby
<sevenseacat> thats one of the things i revert to phpisms on. i always want to write max([a+b, 0])
<marsjaninzmarsa> pipework: pastebin is cool, i'm using it out of habit for everything except Lisp... ^^'
RegulationD has quit [Ping timeout: 258 seconds]
Cache_Money has quit [Quit: Cache_Money]
<pipework> (a + b).abs maybe?
<pipework> Aww not quite.
<Radar> cleopatra: The Well-Grounded Rubyist is what I would recommend
scripore has joined #ruby
wallerdev has joined #ruby
mistermocha has quit [Remote host closed the connection]
claptor has quit [Quit: this channel is bakas]
<cleopatra> Radar, http://www.manning.com/black2/ ??
dru`` has joined #ruby
<marsjaninzmarsa> whatever, how to debug it? looks like reinstalling this local gems (am I calling it right?) should do the trick, but how?
<cleopatra> thanks sevenseacat
martin_work has quit [Ping timeout: 256 seconds]
dru` has quit [Ping timeout: 244 seconds]
wallerdev has quit [Ping timeout: 252 seconds]
hewenhon_ has joined #ruby
vt102 has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
lampshades has quit [Quit: lampshades]
GriffinHeart has joined #ruby
chipotle has joined #ruby
hewenhong has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
neanderslob has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 265 seconds]
cirn0 has joined #ruby
nateberkopec has joined #ruby
ebonics has quit [Quit: Leaving]
darkf has joined #ruby
aphprentice has joined #ruby
Cache_Money has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
cirn0 has quit [Ping timeout: 240 seconds]
greenbagels has joined #ruby
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
kinduff has quit [Quit: leaving]
mase-chatter has joined #ruby
kinduff has joined #ruby
A205B064 has quit [Ping timeout: 256 seconds]
ebonics has joined #ruby
oo_ has quit [Remote host closed the connection]
penzur has joined #ruby
penzur has quit [Quit: WeeChat 1.0]
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy has joined #ruby
Channel6 has quit [Ping timeout: 250 seconds]
code_ has quit [Quit: BNC - Hosted by EpicKitty]
nobitanobi has joined #ruby
jtdowney has joined #ruby
davedev24_ has joined #ruby
Igorshp has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
mrsolo has quit [Quit: This computer has gone to sleep]
mello has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mrsolo has joined #ruby
saadq has joined #ruby
hanmac has joined #ruby
oo_ has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
mello has quit [Ping timeout: 255 seconds]
code_ has joined #ruby
GPrime has joined #ruby
yh_ has quit [Ping timeout: 276 seconds]
Bosnia is now known as bosma
gambl0re has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mike_bueti has joined #ruby
sevenseacat has joined #ruby
Rickmasta has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bronson has joined #ruby
towski_ has quit [Remote host closed the connection]
StephenOTT has joined #ruby
kinduff has quit [Ping timeout: 258 seconds]
blackoperat has quit []
zreisman has quit [Remote host closed the connection]
someword has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
vt102 has joined #ruby
zreisman has joined #ruby
nahtnam has joined #ruby
crdpink has joined #ruby
someword has quit [Client Quit]
crdpink2 has quit [Ping timeout: 256 seconds]
<shevy> dumdedum
mrmargolis has quit []
That1Guy has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
Limix has joined #ruby
cleopatra has quit [Ping timeout: 240 seconds]
psy_ has joined #ruby
braincra- has quit [Quit: bye bye]
Channel6 has quit [Quit: Leaving]
<shevy> I still have not determined which colours are safe to use on which terminal
tcrypt has joined #ruby
That1Guy has quit [Remote host closed the connection]
<shevy> It is said that xterm has support for 256 colours
HotCoder has quit [Read error: Connection reset by peer]
That1Guy has joined #ruby
bosma has quit [Quit: Leaving]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
Chagel has quit [Ping timeout: 255 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
That1Guy has quit [Client Quit]
braincrash has joined #ruby
<al2o3-cr> shevy: printf "\e[38;5;177mShevy\e[0m\n"
<shevy> yeah this is pinkish on my kde konsole
<shevy> and white on my xterm :(
mike_bueti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<al2o3-cr> pink on both xterm xfce4-terminal on mine
wallerdev has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 250 seconds]
<al2o3-cr> shevy: what color does this show printf "\e[38;5;190m\e[48;5;200mShevy\e[0m\n"
Spami has joined #ruby
HotCoder has joined #ruby
<shevy> hmm
<shevy> on kde konsole it works... ugly yellow on ugly pinkish background
<shevy> you want to poke out my eyes :(
<al2o3-cr> hehe :)
<shevy> interestingly, tput colors reports 256 on xterm
elfuego has left #ruby [#ruby]
<al2o3-cr> I've just tried on xterm Eterm urxvt gnome-terminal xfce-terminal they all work hmm.
That1Guy has joined #ruby
<shevy> al2o3-cr do you have a special environment variable set?
<al2o3-cr> shevy: no
<shevy> I'll figure it out tomorrow, have to sleep soon
<al2o3-cr> ok np
vivekananda has quit [Quit: Leaving]
swgillespie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jpfuentes2 has joined #ruby
bosma has joined #ruby
freerobby has joined #ruby
longfeet has quit [Ping timeout: 272 seconds]
arescorpio has quit [Quit: Leaving.]
djbkd has quit [Quit: My people need me...]
iamninja has joined #ruby
Brando753 has quit [Quit: o_O_o]
baweaver has joined #ruby
danoo_ has quit [K-Lined]
RealMarc has quit [K-Lined]
rmoriz has quit [K-Lined]
shtirlic has quit [K-Lined]
danoo_ has joined #ruby
RealMarc has joined #ruby
shtirlic has joined #ruby
rmoriz has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
hewenhong has joined #ruby
<kiki_lamb> How can I chain / concatenate / append two Enumerators so that I can loop over both?
Chagel has joined #ruby
davedev24_ has quit []
jenrzzz has quit [Ping timeout: 246 seconds]
hololeap has joined #ruby
Deele has joined #ruby
nobitanobi has quit [Remote host closed the connection]
_arrow has joined #ruby
_arrow has quit [Client Quit]
_blizzy_ has quit [Ping timeout: 265 seconds]
That1Guy has quit [Remote host closed the connection]
That1Guy has joined #ruby
Hijiri has joined #ruby
RegulationD has joined #ruby
<baweaver> kiki_lamb: Why?
hewenhon_ has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
StephenOTT has quit [Quit: StephenOTT]
ravenreborn has joined #ruby
<baweaver> The cheap way would be to just unfold them into arrays
hewenhong has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
hewenhon_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
blenny has left #ruby ["Bye"]
<baweaver> Though if you really need to join them: https://gist.github.com/baweaver/0ede48ada992522c36d4
CalvinnHobbes has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
<baweaver> >> class Enumerator; def joins(other) Enumerator.new{|y|self.each {|i|y<< i};other.each{|i|y<< i}}end end; [1,2].to_enum.joins([3,4]).to_a
<ruboto> baweaver # => [1, 2, 3, 4] (https://eval.in/371531)
CalvinnHobbes has joined #ruby
<baweaver> or the cheeky way: def joins(other) Enumerator.new(self.to_a + other) end
bluOxigen has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
wallerdev has joined #ruby
BTRE has joined #ruby
michael_mbp has quit [Excess Flood]
wallerdev has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
zarubin has joined #ruby
yh_ has joined #ruby
zarubin has quit [Ping timeout: 258 seconds]
yh_ has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
gusrub has joined #ruby
pocketpr1tector has joined #ruby
pocketpr1tector has quit [Client Quit]
Channel6 has joined #ruby
mcpierce has quit [Ping timeout: 258 seconds]
northfurr has quit [Quit: northfurr]
djbkd has joined #ruby
oo_ has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
hmnhf_ has quit [Ping timeout: 244 seconds]
mello has joined #ruby
oo_ has joined #ruby
Brock has quit [Ping timeout: 256 seconds]
polysics has quit [Remote host closed the connection]
charliesome has joined #ruby
mello has quit [Ping timeout: 258 seconds]
moretti has quit [Quit: Leaving...]
ohaibbq has joined #ruby
riotjones has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hewenhong has joined #ruby
awwaiid has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
rkazak has joined #ruby
workmad3 has joined #ruby
rkazak has quit [Remote host closed the connection]
rkazak has joined #ruby
Rickmasta has joined #ruby
afrianska has quit [Ping timeout: 264 seconds]
Brando753 has joined #ruby
afrianska has joined #ruby
nobitanobi has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
<hololeap> hi everyone. if i have two modules which define a method and i include both, which will get the preference? does one erase the other or can it call the other's through super()?
hewenhong has quit [Remote host closed the connection]
weemsledeux has joined #ruby
<sevenseacat> the one you include later i believe.
zodiak_ has joined #ruby
zodiak has quit [Ping timeout: 240 seconds]
sygnorman has quit [Ping timeout: 240 seconds]
johnny_dz has joined #ruby
A205B064 has joined #ruby
<Radar> super in the class's method will call the most recently included one, but you can get to the method before that by calling super on that method.
<Radar> This is because of Cow's ancestors: irb(main):024:0> Cow.ancestors
<Radar> => [Cow, B, A, Object, Kernel, BasicObject]
<hololeap> Radar: awesome :) thank you
pocketpr1tector has joined #ruby
pocketpr1tector has quit [Client Quit]
NIGGGGERS has joined #ruby
<NIGGGGERS> hai
<NIGGGGERS> hai
<NIGGGGERS> =D
<NIGGGGERS> !ops
<ruboto> sepp2k, banisterfiend, fflush, apeiros, Mon_Ouie, seanstickle, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, Aria, rubyhacker1, ljarvis
NIGGGGERS was banned on #ruby by Radar [*!*@*178.62.241.95]
<Radar> !kick NIGGGGERS
NIGGGGERS was kicked from #ruby by ruboto [NIGGGGERS]
<sevenseacat> !ban NIGGGGERS !T 1D
<ruboto> sevenseacat, could not find a matching user for "NIGGGGERS"
<sevenseacat> blah.
<Nilium> Good job, bot.
code1o6 has quit [Ping timeout: 265 seconds]
<Radar> TOO SLOW
<baweaver> Could make an auto-ban on any variant of explitives
<mozzarella> that's racist
<hololeap> an auto-ban bot would probably get too many false positives, imo
jack_rabbit has joined #ruby
towski_ has joined #ruby
WillAmes has quit [Ping timeout: 246 seconds]
<sevenseacat> indeed.
<sevenseacat> one day that guy will get bored of being racist and leave us alone.
commondream has joined #ruby
djbkd has quit [Remote host closed the connection]
sinequanon has joined #ruby
Chagel has quit [Quit: Lost terminal]
Limix has quit [Quit: Limix]
ndrei has joined #ruby
chrissonar has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
oo_ has quit [Remote host closed the connection]
<Radar> It's probably 4chan or some other group
<Radar> Doubt it's just one person
<Radar> And judging by the previous IP, they're using digital ocean boxes
<baweaver> I guess you could say.....
<baweaver> they're on your Radar
djbkd has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
dru` has joined #ruby
<sevenseacat> badum-tish
<Radar> indeed
* baweaver bows
<Radar> Of the last 3 bans, 2 of those have been digital ocean boxes.
dru`` has quit [Ping timeout: 244 seconds]
<mozzarella> don't ban all of digitalocean, I'm using it
<Radar> mozzarella: Of course I wouldn't do that.I am using it too :)
gambl0re has quit [Ping timeout: 258 seconds]
<baweaver> They know O_O
afrianska has quit [Ping timeout: 264 seconds]
<Radar> Opened a support ticket for DO to investigate: http://i.imgur.com/Bsgjfue.png
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
meatchicken has joined #ruby
<meatchicken> Why is this invalid? Date.parse("06/27/2005")
<Radar> meatchicken: why not?
lkba has quit [Quit: Bye]
gaboesquivel has quit [Remote host closed the connection]
lkba has joined #ruby
<miah> >> Date.parse("06/27/2005")
<ruboto> miah # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/371580)
<Radar> >> require 'date'; Date.parse("06/27/2005")
<ruboto> Radar # => invalid date (ArgumentError) ...check link for more (https://eval.in/371581)
<Radar> meatchicken: Why are your dates not formatted sensibly? :)
vt102 has quit [Remote host closed the connection]
<mozzarella> >> require 'date'; Date.parse("27/06/2005")
<ruboto> mozzarella # => #<Date: 2005-06-27 ((2453549j,0s,0n),+0s,2299161j)> (https://eval.in/371582)
<Radar> >> Date.strptime("06/27/2005","%m/%d/%Y")
<ruboto> Radar # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/371583)
hewenhong has joined #ruby
<Radar> >> require 'date'; Date.strptime("06/27/2005","%m/%d/%Y")
<ruboto> Radar # => #<Date: 2005-06-27 ((2453549j,0s,0n),+0s,2299161j)> (https://eval.in/371584)
tagrudev has joined #ruby
<miah> interesting. i haven't used date much
erichmenge has quit [Quit: Arrivederci!]
awwaiid has quit [Ping timeout: 256 seconds]
<meatchicken> Radar: I thought that was standard format :P
<Radar> meatchicken: hahahahahahaha no
<meatchicken> MM/DD/YYYY isn't okay?
<meatchicken> oh lol
<meatchicken> got it
<mozzarella> Radar: that's what I think of when I see American dates
tesuji has joined #ruby
<Radar> meatchicken: Use Date.strptime like I showed.
<sevenseacat> lol american dates
jenrzzz has joined #ruby
<miah> 'murica
casadei has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
Soda has joined #ruby
<miah> we're also stuck on imperal measurements
awwaiid has joined #ruby
towski_ has quit [Remote host closed the connection]
MatthewsFace has quit [Remote host closed the connection]
Robr3rd has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
chinmay_dd has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
<Robr3rd> While running `rake test` (learning Ruby) and I'm running across this message from rake: "NoMethodError: undefined method `has_key?` for nil:NilClass" and am unsure of what to make of it. Google has been unhelpful. The method is being called ona hash.
<mozzarella> looks like it's being called on nil
GPrime has quit [Quit: Textual IRC Client: www.textualapp.com]
DerisiveLogic has quit [Remote host closed the connection]
<Robr3rd> Ah, I found it. Thanks
Robr3rd has quit [Quit: Leaving]
<hololeap> is there a way to get all the same functionality of `rails console` from irb?
<sevenseacat> why wouldnt you just use rails console
last_staff has joined #ruby
<hololeap> sevenseacat: it's not a rails app
<sevenseacat> so what functionality are you missing
<hololeap> sevenseacat: hmm, probably just autocompletion and reload!
Kovensky has quit [Quit: ZNC - http://znc.in]
<hololeap> sevenseacat: ok i found the autocompletion part: require 'irb/completion'
<hololeap> and i guess the reload! method is part of railties. i suppose i could just pull those in from the command line
ndrei has quit [Ping timeout: 272 seconds]
<baweaver> hololeap: Pry
<flughafen> sup sevenseacat certainty shevy
rocknrollmarc has joined #ruby
ahmetkapikiran has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
Rarikon has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 245 seconds]
mcpierce has joined #ruby
yeticry has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
sigurding has joined #ruby
Takle has joined #ruby
yeticry has quit [Remote host closed the connection]
yeticry has joined #ruby
multi_io has quit [Ping timeout: 258 seconds]
sinkensabe has joined #ruby
riotjones has joined #ruby
aganov has joined #ruby
Channel6 has quit [Quit: Leaving]
multi_io has joined #ruby
slucx has joined #ruby
krz has joined #ruby
DerisiveLogic has joined #ruby
oo_ has joined #ruby
lyuben_ has quit [Quit: This computer has gone to sleep]
matchaw has quit [Ping timeout: 265 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Hijiri has quit [Quit: WeeChat 1.0.1]
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
<Radar> DigitalOcean is looking at the support request \p/
<Radar> \o/*
<flughafen> go go Radar !
<sevenseacat> nice.
That1Guy has quit [Remote host closed the connection]
hewenhon_ has joined #ruby
That1Guy has joined #ruby
sinequanon has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
hewenhong has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
wallerdev has joined #ruby
bronson has joined #ruby
zreisman has quit [Read error: Connection reset by peer]
<baweaver> The powers of the ban hammer range far and wide
<sevenseacat> so if that spammer is using DO, then they're *paying money* to annoy us?
sinequanon has joined #ruby
zarubin has joined #ruby
fabrice31 has quit [Read error: No route to host]
fabrice31_ has joined #ruby
AlphaAtom has joined #ruby
Kovensky has joined #ruby
afrianska has joined #ruby
dfockler has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
mello has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby
<certainty> flughafen: o/
<flughafen> oi oi oi certainty
AlphaAtom has joined #ruby
yardenbar has joined #ruby
stoffus has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
dfockler has quit [Ping timeout: 245 seconds]
zarubin has quit [Ping timeout: 276 seconds]
dru` has quit [Ping timeout: 265 seconds]
jack_rabbit has joined #ruby
mello has quit [Ping timeout: 244 seconds]
bosma has quit [Quit: Leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flughafen> certainty: you don't ride motorcycles do you?
<certainty> flughafen: nope, i have no license
<flughafen> ok!
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
bosma has joined #ruby
<eam> don't need a license to ride a motorcycle so long as your bike is faster than the cop's bike
<certainty> but sometimes i wish i had. sitting in the warm car seeing the motorcycles cruising the street
roolo has joined #ruby
chinmay__ has joined #ruby
ndrei has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinequanon has quit [Read error: Connection reset by peer]
afrianska has quit [Ping timeout: 258 seconds]
chinmay_dd has quit [Ping timeout: 264 seconds]
sinequanon has joined #ruby
sandelius has joined #ruby
zipace has quit [Quit: Leaving]
zipace has joined #ruby
zipace has quit [Max SendQ exceeded]
Hounddog has joined #ruby
zipace has joined #ruby
zipace has quit [Changing host]
zipace has joined #ruby
workmad3 has joined #ruby
zipace has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
towski_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
ta has quit [Remote host closed the connection]
_ht has joined #ruby
doublemalt_ has joined #ruby
awwaiid has quit [Ping timeout: 256 seconds]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
andikr has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
bayed has joined #ruby
rocknrollmarc has quit []
amclain has quit [Quit: Leaving]
garyserj has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
Robr3rd has joined #ruby
awwaiid has joined #ruby
DerisiveLogic has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
msgodf has joined #ruby
<Robr3rd> Are there any simple-but-functional methods of implementing Rails' `.blank?` method in "pure" Ruby?
towski_ has quit [Remote host closed the connection]
lkba has quit [Quit: Bye]
michael_mbp has quit [Excess Flood]
lkba has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
<flughafen> certainty: does your car not have klima?
wildroman2 has joined #ruby
michael_mbp has joined #ruby
fabrice31 has joined #ruby
chinmay__ is now known as chinmay_dd
* flughafen is having to deal with stupid tire crap with the motorcycle
<Robr3rd> I mean, I see this: http://stackoverflow.com/questions/5901701/duplicating-blank-in-standard-ruby I am just uncertain on how best to integrate it, and if I will need to also do the same for all data types (not just "String")
<certainty> flughafen: it does, but it takes time to cool down
afrianska has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
Alayde has joined #ruby
jmignault has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Macaveli has joined #ruby
gauke has joined #ruby
kriskropd has quit [Ping timeout: 252 seconds]
gluten_hell has joined #ruby
gusrub has quit [Quit: Leaving]
thiagovsk has quit [Quit: Connection closed for inactivity]
arup_r has joined #ruby
kriskropd has joined #ruby
Hijiri has joined #ruby
afrianska has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
ravenreborn_ has joined #ruby
lyuben_ has joined #ruby
oo_ has joined #ruby
threh has quit [Quit: Leaving]
ravenreborn has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
<apeiros> Robr3rd: rails' blank? is pure ruby. you can simply copy the code. alternatively you can depend on the active_support gem and require 'active_support/core_ext'
awwaiid has quit [Ping timeout: 244 seconds]
saadq has quit [Remote host closed the connection]
wallerdev has joined #ruby
lkba has quit [Quit: Bye]
lkba has joined #ruby
msgodf has quit [Ping timeout: 246 seconds]
Ilyes512 has joined #ruby
antgel has joined #ruby
<Radar> sevenseacat: Yes, it looks like the spammer is paying for the privilege. Looking at the other cases they're also using some VPN services to do the same thing. Whoever it is, they're pretty bored and wasting their time :)
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awwaiid has joined #ruby
saadq has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
blueOxigen has quit [Ping timeout: 264 seconds]
msgodf has joined #ruby
dcarmich has joined #ruby
User458764 has quit [Ping timeout: 265 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
gluten_hell_ has joined #ruby
mello has joined #ruby
sinequanon has quit [Remote host closed the connection]
djbkd has quit [Quit: Leaving...]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
gluten_hell has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
User458764 has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
ebonics has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
baweaver has quit [Remote host closed the connection]
mello has quit [Ping timeout: 276 seconds]
sdwrage has joined #ruby
Takle has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
RegulationD has joined #ruby
northfurr has joined #ruby
senayar has joined #ruby
Takle has joined #ruby
sdwrage has quit [Client Quit]
arietis has joined #ruby
Robr3rd has quit [Ping timeout: 258 seconds]
ndrei has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
livathinos has joined #ruby
quimrstorres has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
mase-chatter has quit [Quit: Leaving]
OrbitalKitten has joined #ruby
charliesome has quit [Quit: zzz]
arietis has left #ruby [#ruby]
<KrzaQ> the doc says chunk is deprecated, but doesn't offer anything instead
ahmetkapikiran has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<ljarvis> KrzaQ: group_by
Alayde has quit [Ping timeout: 276 seconds]
<ljarvis> well, not exactly but you can do the same thing
Xiti has quit [Read error: Connection reset by peer]
<KrzaQ> well, I want to split the same keys, so to speak, into different records
<KrzaQ> oh, well, it's a one-time thing
skammer has joined #ruby
<ljarvis> actually I don't think the method is deprecated, it's just the state management that's been deprecated
<ljarvis> i.e chunk(initial_state)
<KrzaQ> oh
<KrzaQ> that I can live with
<sevenseacat> good call
slucx has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
<KrzaQ> Can I use group_by with &:foo if :foo is a hash's key in an array of hashes?
<ljarvis> no
<KrzaQ> ok
<KrzaQ> .group_by{ |data| data
<KrzaQ> .group_by{ |data| data[:foo] } seems clunky to me
<KrzaQ> stupid enter key
Takle has quit [Remote host closed the connection]
<ljarvis> well, you could always map to an ostruct and then use &:foo but I'm gonna say that's more clunky and silly
<KrzaQ> I'm a newbie, I dunno what an ostruct is
<KrzaQ> okay
<KrzaQ> not now
<ljarvis> items.map { |h| OpenStruct.new(h) }.map(&:foo) basically
quimrstorres has joined #ruby
<ljarvis> also, if the :foo key is last/first then you could use &:last / first
<ljarvis> but obviously that'll rely on the fact
<ljarvis> and it'll return the key and values iirc
<KrzaQ> it magically changes as I add more fields
HotCoder has quit [Ping timeout: 256 seconds]
<ljarvis> right, then group_by { |x| x[:foo] } it is :)
Musashi007 has quit [Quit: Musashi007]
ta has joined #ruby
charliesome has joined #ruby
<KrzaQ> okay, this obviously isn't doing what I want
ohaibbq has quit [Quit: Leaving...]
tomphp has joined #ruby
rubie has quit [Remote host closed the connection]
<KrzaQ> I have a telegram, identified let's say by id = "1" that can have 0 to ∞ answers with id different than said "1"
anisha has joined #ruby
<KrzaQ> I want to group them in a way that always starts with the one with id = "1"
<ljarvis> KrzaQ: I think you should paste your code and desired output on gist.github.com
skammer is now known as skammer|afk
skammer|afk is now known as skammer
codecop has joined #ruby
dudedudeman has quit [Ping timeout: 272 seconds]
iamninja has quit [Read error: Connection reset by peer]
Takle has joined #ruby
ta has quit [Remote host closed the connection]
chinmay_dd has quit []
ravenreborn_ has quit [Ping timeout: 272 seconds]
jpfuentes2 has joined #ruby
northfurr has quit [Quit: northfurr]
iamninja has joined #ruby
Takle has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
arup_r has quit []
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> you give people a URL to paste stuff at, and they go away and find a different paste site
quimrstorres has quit [Remote host closed the connection]
<KrzaQ> :(
<sevenseacat> anyway
<KrzaQ> fast, ad-free, executes your code
<ljarvis> it's not loading for me
<ljarvis> ah nevermind
<KrzaQ> very well
Takle has joined #ruby
quimrstorres has joined #ruby
chthon has joined #ruby
<ljarvis> >> (1..20).to_a.slice_before { |n| n % 3 == 0 }
<ruboto> ljarvis # => #<Enumerator: #<Enumerator::Generator:0x40fc3f60>:each> (https://eval.in/371653)
<ljarvis> >> (1..20).to_a.slice_before { |n| n % 3 == 0 }.to_a
<ruboto> ljarvis # => [[1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11], [12, 13, 14], [15, 16, 17], [18, 19, 20]] (https://eval.in/371654)
<KrzaQ> yay
<KrzaQ> thanks!
<ljarvis> o/
<KrzaQ> What if there are two consecutive threes, for example?
<ljarvis> try it
<KrzaQ> I'd like them to be kept in the same array, I guess
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> oh ho new requirements
lyuben_ has quit [Quit: Leaving]
<ljarvis> sevenseacat: is that something a pimp would say?
<KrzaQ> Obviously, you didn't expect my requirements not to change, did you? ;)
<sevenseacat> ljarvis: lol
<apeiros> KrzaQ: it would have been a pleasant surprise, though
yeticry has quit [Ping timeout: 258 seconds]
<sevenseacat> KrzaQ: to be fair, you're a programmer, we have slightly higher expectations
<apeiros> ljarvis: great. now I picture sevenseacat with fedora, fur coat and a pimp stick
<KrzaQ> mhm
Takle has quit [Ping timeout: 264 seconds]
granthatcher has joined #ruby
Igorshp has joined #ruby
<KrzaQ> I'm tired and in hurry :P
<sevenseacat> now i want a pimp stick
<ljarvis> hah
dudedudeman has joined #ruby
<adaedra> You're all weird in here >_>
<ljarvis> KrzaQ: open irb and play to your heards content
<ljarvis> heard?
<apeiros> that said, I actually don't have any cliche on woman pimps. but I think the male pimp cliche is fabulous with women too :D
yh_ has joined #ruby
yeticry has joined #ruby
* sevenseacat bops noobs and spammers over the head with said pimp stick
<KrzaQ> :)
<ljarvis> pimp stick bop
<KrzaQ> I have pry open
<ljarvis> that's the name of my band
* apeiros enjoys waiting for his integration test with external API
<KrzaQ> someone recommended it over irb
iwishiwerearobot has quit [Quit: >:(]
Takle has joined #ruby
<KrzaQ> someone here*
<ljarvis> apeiros: that sounds teeth grindingly awesome
* sevenseacat is sitting waiting for a deploy to finish
* apeiros also loves the weakness of those tests because partner devs have no idea about automated tests…
<ljarvis> KrzaQ: sure, pry is nice too
ghr has joined #ruby
<ljarvis> is it bad if I'm not waiting for anything?
<apeiros> maybe?
<ljarvis> but maybe not? I'll go with that
<ljarvis> actually I am waiting for an email reply
<ljarvis> from a week ago..
mikecmpbll has joined #ruby
<ljarvis> damn if pry vendors slop i will lose all of my delicious download figures
tomphp has joined #ruby
<apeiros> you know that tests are bad when you have IDs to query for in config files because they might change.
dudedudeman has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
einarj has joined #ruby
skammer is now known as skammer|afk
yh__ has joined #ruby
axwl has joined #ruby
Exponential has joined #ruby
zarubin has joined #ruby
<ljarvis> i made a plugin for atom that i'm really regretting
<sevenseacat> hmm what should i work on now
<apeiros> rm?
yh_ has quit [Ping timeout: 244 seconds]
wildroman2 has quit [Remote host closed the connection]
<ljarvis> yeah i might, it's mostly because i don't use atom but there's pressure to update it so now i feel like a jerk
dudedudeman has joined #ruby
wildroman2 has joined #ruby
<apeiros> eh, you don't owe anybody anything
<sevenseacat> +1 to that
<ljarvis> true!
<sevenseacat> put a note saying 'abandoned, free to good home'
dumdedum has joined #ruby
Zai00 has joined #ruby
<apeiros> yeah, declaring abandonment is IMO good style.
<ljarvis> yep good idea
<Exponential> Hey guys, I am a ruby noob. I am getting an undefined method error. Could someone shine some light and also critique my code? http://pastebin.com/mmk9E5z2
<ruboto> Exponential, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/df79ec84f6543ab5ddd4
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<sevenseacat> 'only tested with version x, use with newer versions at your own peril'
<sevenseacat> Exponential: without you even telling us with the error is?
* sevenseacat gets crystal ball
ghr has quit [Read error: No route to host]
ghr has joined #ruby
* adaedra gets magic stick
granthatcher has quit []
workmad3 has joined #ruby
<Exponential> sevenseacat: Sorry, still new to it. I only have the one method in the file, but I think I may have defined it incorrectly. https://gist.github.com/anonymous/df79ec84f6543ab5ddd4
zarubin has quit [Ping timeout: 256 seconds]
<ljarvis> Exponential: please tell us what the error is, include it in your code as a comment
<ljarvis> because we don't know
<Exponential> ljarvis: Okay, I added a comment with the error. https://gist.github.com/anonymous/df79ec84f6543ab5ddd4
yh__ has quit [Ping timeout: 255 seconds]
zel_ is now known as zel
<ljarvis> Exponential: define your method before you use it
neanderslob has joined #ruby
granthatcher has joined #ruby
<ljarvis> nice filename
granthatcher has quit [Max SendQ exceeded]
<Exponential> ljarvis: Ah, so its not like java in that you actually have to have the method above the point at which you use it?
granthatcher has joined #ruby
skammer|afk is now known as skammer
granthatcher has quit [Max SendQ exceeded]
<adaedra> Exponential: Ruby will process your file in one pass, from begin to end. If you use something, you have to have made it before the use.
<ljarvis> Exponential: Ruby basically runs code line by line, so yeah things must exist before they're used
<Exponential> ljarvis adaedra : Awesome, thanks :D Any critique on my code?
workmad3 has quit [Ping timeout: 264 seconds]
zel is now known as drzel
hewenhon_ has quit [Remote host closed the connection]
<adaedra> Ruby guidelines say 2 spaces for indentation
<ljarvis> Exponential: yeah, a few things
<adaedra> :set sw=2 sts=2 et
hewenhong has joined #ruby
<adaedra> Don't use or, use ||
Symphony_Dawn has joined #ruby
granthatcher has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
<ljarvis> Exponential: the first thing is that you read words.txt on every loop
<ljarvis> read it once
ndrei has joined #ruby
hewenhon_ has joined #ruby
<adaedra> The treatment you do in get_guessing word is also made at each loop, I think you could do it only once too
antgel has quit [Ping timeout: 252 seconds]
<ljarvis> also, you can do all of the string sorting once too
<ljarvis> heh
<adaedra> heh
hmnhf_ has joined #ruby
codecop has quit [Quit: Išeinu]
lkba has quit [Ping timeout: 244 seconds]
<ljarvis> there are other points about considering not slurping in your file and storing words differently but since this is homework, you should investigate those ideas yourself (we can point you in the right direction)
idafyaid has quit [Ping timeout: 244 seconds]
hewenhong has quit [Ping timeout: 256 seconds]
<Exponential> Okay, I changed things around a bit and got rid of the redundant re-reads. https://gist.github.com/RecursiveDefinition/3a9aefa232d9ea0b15fc. I feel like the whole finding the 2000 most frequency words could be done a lot tidier, any pointers?
<adaedra> `cat words | uniq -c | sort -n | head -n 2000`
<ljarvis> nice one that's better. I would store the words in a Hash though, with word => count; this way you're not adding duplicates and having to re-count them.
<adaedra> :p
<ljarvis> then I wouldn't even add them if they don't match your criteria (i.e not 5-6 chars long)
<Symphony_Dawn> nyan cat
<adaedra> If you're always taking just the 2000 first elements, just remove extra elements
<adaedra> taking a slice of 2000 elements to do a sample at each loop run is... :s
dudedudeman has quit [Ping timeout: 256 seconds]
edwinvdg_ has joined #ruby
<Exponential> adaedra: Problem is the words are not sorted or unique in the words.txt
<ljarvis> you could just use rand where x is guarenteed to be less than 2000
<Exponential> And I want the 2000 most common
<adaedra> But you don't resort them at each loop run
krz has quit [Ping timeout: 264 seconds]
<adaedra> you could slice the [0,2000] range before the loop and don't slice anymore
last_staff has quit [Read error: Connection reset by peer]
<ljarvis> also
<ljarvis> words.uniq.map { |word| [word, words.count(word)] }
<Symphony_Dawn> What am I seeing?
<ljarvis> Exponential: can you explain to me what you think that's doing?
edwinvdg_ has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
hewenhong has joined #ruby
<Exponential> ljarvis: Creating a HashMap with unique entrys, with key/value word/count
<adaedra> also, for keeping the words (l6), I would rather use a range with #include? rather than this comparaison. It's a little bit more understandable, and is much easier to change
dudedudeman has joined #ruby
<ljarvis> Exponential: so you remove duplicates, and then count (presumably, for duplicates)
hewenhon_ has quit [Ping timeout: 272 seconds]
<Exponential> oh
<ljarvis> :)
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<Exponential> hash = Hash[words.map { |word| [word, words.count(word)] }]
<Exponential> Is that better?
<ljarvis> Exponential: fwiw you can create hashes with default values. like; word_count = Hash.new(0); word_count["foo"] += 1; which might be able to help you here?
<ljarvis> words.count(word) will traverse your entire array for every call; which seems like it could be generally slow
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
<ljarvis> since you do that for every word.. well, you can probably calculate how many times it happens
Symphony_Dawn has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
ArchRogem has joined #ruby
<Exponential> ljarvis: So in your above example, how would I replace "foo" with each word in the array?
<ljarvis> Exponential: well, you already know how to loop through an array, right?
hmnhf_ has quit [Ping timeout: 265 seconds]
<Exponential> hash.each { |word| hash[word] += 1}
<Exponential> ?
<ljarvis> bingo
<Exponential> Would that be faster than what I had before?
<ljarvis> much faster
<apeiros> except it's not hash.each but words.each
GriffinHeart has quit [Remote host closed the connection]
<ljarvis> ^
<adaedra> much fast
<adaedra> such performance
<adaedra> wow
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Exponential> so to compress this line : words = file.select {|word| word.length == 5 || word.length == 6} I want to use a range, but simply changing it to words = file.select {|word| word.length == (5..6)} doesn't work?
<adaedra> (5..6).include? word.length
<apeiros> word.length.between?(5,6)
<ljarvis> yeah, I actually prefer what you have there; but this is a good example of different peoples styles
doublemalt_ has quit [Ping timeout: 250 seconds]
<adaedra> actually, I didn't know about #between? :x
<adaedra> Ruby has so many methods :x
<apeiros> it's faster and doesn't create temporary range :)
<apeiros> /nick premature_optimizer
Spami has quit [Quit: This computer has gone to sleep]
banister has joined #ruby
<adaedra> D:
<ljarvis> :P
<adaedra> :D *
Zai00 has quit [Quit: Zai00]
<ljarvis> you wait, we'll about to discuss each_line
Spami has joined #ruby
<ljarvis> we're*
<apeiros> though, that kind of thing is IMO not in the category of premature optimization.
<adaedra> so optimized, wow
<apeiros> very adaedra
<adaedra> :D
<Exponential> Is this line too much : common_words = words.sort_by { |word| hash[word] }[0..1999], or would it be better to put the slice into a new variable?
<toretore> premature is fine as long as it's not at the cost of other things
rkazak has quit [Quit: Sleep.....ing....]
<adaedra> I'd have used #slice!
<apeiros> .first(2000) :)
spider-mario has quit [Read error: Connection reset by peer]
<ljarvis> Exponential: it's fine, though I prefer .first(2000) from a style perspective
dudedudeman has quit [Ping timeout: 250 seconds]
edwinvdg_ has joined #ruby
<Exponential> Wow, ruby has so many handy methods...
edwinvdg_ has quit [Remote host closed the connection]
<adaedra> Too many, according to some people
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
<ljarvis> too many aliases
Zai00 has joined #ruby
edwinvdgraaf has joined #ruby
<jhass> apeiros: Range#include? is optimized for numbers
<ljarvis> you still have to create the range on every loop
<ljarvis> (that was his point i think)
<jhass> mh, true
<apeiros> jhass: sure. it still has a longer pathway to go through
<jhass> in other words, good morning!
<ljarvis> o/
<apeiros> moin jhass :)
<jokke> hi
<adaedra> Guten Morgen, jhass
c0m0 has joined #ruby
<jokke> i'm having a weird problem with https://github.com/drbrain/net-http-persistent
unshadow has quit [Ping timeout: 272 seconds]
<jokke> i can require net/http/persistent
<jokke> but get unknown constant Net::HTTP::Persistent
<jokke> any ideas?
platzhirsch has joined #ruby
<apeiros> seems in current ruby the performance difference became insignificant, though. ~10% here.
<apeiros> so the only question is how well GC is optimized :)
<jhass> jokke: does the require return true or false?
<jokke> jhass: lemme check
axwl is now known as axwel
edwinvdg_ has quit [Ping timeout: 272 seconds]
axwel is now known as axwl
<jokke> jhass: true
<jokke> jhass: here's my code: http://p.jreinert.com/cIaIP/ruby
platzhirsch has left #ruby [#ruby]
<jhass> jokke: what does gem which net/http/persistent say?
<jokke> /home/jokke/.gem/ruby/2.2.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb
<ljarvis> jokke: what does the following return on the command line? ruby -r 'net/http/persistent' -e 'Net::HTTP::Persistent'
<jokke> ljarvis: nothing
<ljarvis> then it's working
<ljarvis> there must be a different issue
<jokke> hm
workmad3 has joined #ruby
<jokke> i got the error when running tests
<jokke> dunno if rspec could have something to do with it
skammer is now known as skammer|afk
<jhass> check inside the test if $LOADED_FEATURES.include? "/home/jokke/.gem/ruby/2.2.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb" is true
yh_ has joined #ruby
<jokke> alright
<jhass> also Gem.find_files("net/http/persistent") in there might be interesting
dudedudeman has joined #ruby
<jokke> jhass: first returns true
<jokke> second returns ["/home/jokke/.gem/ruby/2.2.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb", "/home/jokke/.gem/ruby/2.2.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent"]
<jhass> uh, wut
<ljarvis> presumably defined?(Net::HTTP::Persistent) returns false in your test?
skammer|afk is now known as skammer
<jhass> can you share the complete output of the failing test run?
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll> lol
<jokke> ljarvis: yeah
<jokke> or nil
<jokke> also tried ::Net...
<jokke> but the result is the same
<jokke> jhass: yeah
unshadow has joined #ruby
<jhass> spring or anything you can kill?
<jokke> no spring
<jokke> simple gem
<mikecmpbll> error with trace? who knows, might be a clue in there.
<jhass> empty for me
<mikecmpbll> likewise
<adaedra> +1
nfk has quit [Quit: yawn]
<mikecmpbll> or maybe there's no error? you're hallucinating
<mikecmpbll> (!)
<jokke> for me too...
<jokke> weird
<jokke> something wrong with the lexer..
mello has joined #ruby
gigetoo has quit [Ping timeout: 272 seconds]
<jokke> now it works btw.
<jokke> weird
<ljarvis> wait
<ljarvis> the error isn't correct
gigetoo has joined #ruby
<ljarvis> but now my phone is ringing brb
<mikecmpbll> the tension ..
<jokke> mikecmpbll: :D
nfk has joined #ruby
<jokke> maybe he means this: undefined method `scheme' for #<Net::HTTP::Get GET>
senayar has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<mikecmpbll> jokke: where's the `enumerator.each { |_| }` bit come from?
bluOxigen has left #ruby [#ruby]
<mikecmpbll> oh nvm that's the test
<mikecmpbll> not used to rspec output.
anisha has quit [Quit: Leaving]
cassianoleal has quit [Quit: Textual IRC Client: www.textualapp.com]
mello has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
<jokke> alright
Musashi007 has joined #ruby
<jokke> it's a bug in the gem
<jokke> without using Net::HTTP::Get it works
<jokke> (passing the url as is
<jokke> )
<mikecmpbll> ?
<jokke> self.class.http.request(@uri)
<jokke> that works
<mikecmpbll> how on earth
RegulationD has joined #ruby
<mikecmpbll> even leaving line 21 in?
oo_ has quit [Remote host closed the connection]
<jokke> no i took line 21 out
<mikecmpbll> and what about with it in? :d
<jokke> dunno
* mikecmpbll waits ...
<jokke> i'm just happy it works... :P
<jokke> alright..
<mikecmpbll> i'm not
<jokke> yup works
<mikecmpbll> k
senayar has joined #ruby
senayar has joined #ruby
<mikecmpbll> :/
oo_ has joined #ruby
<jokke> mikecmpbll: the error is very weird though
dEPy has joined #ruby
<Exponential> ljarvis adaedra: Thanks for the help, attended a ruby intro today at campus and they gave us the challenge to make a scrambler word game. This is my implementation https://gist.github.com/RecursiveDefinition/309cb60f64529abfe6ae. Your guys help was great :D Already love the Ruby community
RegulationD has quit [Ping timeout: 255 seconds]
<mikecmpbll> jokke: the error is happening in the call to .http which is before you even do the .request call :/
<mikecmpbll> #doesnotunderstand
<jokke> mikecmpbll: you're right :D
* jokke doesn't understand either
scripore has joined #ruby
sigurding has quit [Quit: sigurding]
<mikecmpbll> i could maybe get it if referencing the Net::HTTP::Get constant somehow unloaded Net::HTTP::Persistent
<mikecmpbll> but you said that even with the reference it works so, meh
<jokke> aah
<jokke> aaaaaaah
<mikecmpbll> ..
<jokke> i do some const stubbing in my tests :P
<mikecmpbll> -_-
<jokke> :D
<ljarvis> eh back
<ljarvis> well you've basically figured it out so great
<mikecmpbll> haha
<jokke> ljarvis: yeah \o/
<ljarvis> naughty stubbing
<mikecmpbll> rather stub my toe.
<KrzaQ> if I have { 1 => [ 2, 3] }, can I easily turn this into [[1,2], [1,3]]? Support for nesting would be nice. I want to flatten my data
<jhass> .map {|k, v| [k, v.flatten] } ?
<jhass> oh, nvm
<KrzaQ> I am nesting maps right not
<jhass> .each_with_object([]) {|(k, values), pairs| values.flatten.each do |v| pairs << [k, v] end end
<mikecmpbll> your limited example doesn't give much of an idea what you want to do, but ..
<KrzaQ> .map{|k,v| v.map{|u,x| [k, u, x] }}
<KrzaQ> but I'm running out of letters fast
<apeiros> *sob*, rails magic again…
sevenseacat has quit [Quit: Me dun like you no more.]
<mikecmpbll> heh
scripore has quit [Quit: This computer has gone to sleep]
<mikecmpbll> .map{ |k,v| v.map{ |i| [k,i] }}.flatten(1)
<mikecmpbll> oh you did that.
<mikecmpbll> or similar ..
<KrzaQ> yeah
<mikecmpbll> not sure why you're using three vars in the inner map
<KrzaQ> but it turns ugly, fast, when x is a hash/array
<apeiros> mikecmpbll: flat_map
<mikecmpbll> apeiros: +1
chthon has quit [Quit: Ex-Chat]
<mikecmpbll> forgot about that gem
<mikecmpbll> (in the figurative sense)
<canton7> >> {1 => [2, 3]}.flat_map{ |k,v| v.zip([k].cycle) }
<ruboto> canton7 # => [[2, 1], [3, 1]] (https://eval.in/371689)
<mikecmpbll> close, no cigar :p
<canton7> just reverse the inner tuples, and done!
<mikecmpbll> ha
anisha has joined #ruby
scripore has joined #ruby
neanderslob has quit [Remote host closed the connection]
scripore has quit [Client Quit]
fu2ristiq has joined #ruby
<fu2ristiq> hi everyone
<jhass> hi
<mikecmpbll> fu2ristiq: hi
roshanavand has joined #ruby
marr has joined #ruby
phutchins has joined #ruby
_blizzy_ has joined #ruby
<fu2ristiq> so, what's up/
roshanavand has left #ruby [#ruby]
fu2ristiq has left #ruby ["WeeChat 1.1.1"]
<mikecmpbll> ruby stuff.
roshanavand has joined #ruby
<mikecmpbll> well that was congenial.
Musashi007 has quit [Quit: Musashi007]
<apeiros> trying to add a convenient way to have custom normalized & validated AR attributes. it's annoying, though. and I don't know enough about AR's inner workings. *sobs again*
quimrstorres has quit [Remote host closed the connection]
MafProd has joined #ruby
<mikecmpbll> custom normalized & validated?
quimrstorres has joined #ruby
bluOxigen has joined #ruby
<apeiros> f.ex. in your model: `credit_card_number :colname`. adds a validation for colname. and the setter will normalize input. such as strip dashes etc.
phutchins has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A205B064 has quit [Ping timeout: 258 seconds]
startupality has quit [Quit: startupality]
<apeiros> and why I always write Valdiator instead of Validator is beyond me :D
<mikecmpbll> haha
<mikecmpbll> seems like it should be relatively straight forward, unless I'm misintepreting it?
OrbitalKitten has joined #ruby
MafProd has quit [Client Quit]
withnale_ has joined #ruby
<apeiros> depends on how much ugly you want to accept.
krz has joined #ruby
<mikecmpbll> i'd just extend AR::Base with a credit_card_number method which adds a validation and overrides the setter
<apeiros> see, and I'd prefer to have that stuff in reusable modules. and then the fight with AR's magic begins :)
<mikecmpbll> reusable how? hm
fu2ristiq has joined #ruby
Exponential has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> such as `validate :col, custom_validator: true` expecting precisely a class named CustomValidatorValidator. which must either be toplevel or in a module you include into the model.
<mikecmpbll> i see
<apeiros> well, I guess I just close my eyes and live with the ugly.
<apeiros> lunch time
<adaedra> bon ap'
<mikecmpbll> see validates_with, perhaps.
ndrei has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 264 seconds]
<mikecmpbll> or even better, validates :cc, credit_card: true; and then define a CreditCardValidator
<ljarvis> apeiros: that's the kind of thing I'd just use a model and extend
<mikecmpbll> works out the box.
<ljarvis> mikecmpbll: does that allow you to mutate the column?
<ljarvis> i guess it would
<ljarvis> module and extend*
<mikecmpbll> ljarvis: /shrugs, forgot about that bit. probably could get there.
<ljarvis> apeiros: I'd do something like this probably https://gist.github.com/leejarvis/b950d68c34e8e2c5089f
<ljarvis> but I like keeping things in separate modules
Takle has quit [Remote host closed the connection]
<mikecmpbll> yep.
fu2ristiq has quit [Quit: WeeChat 1.1.1]
<mikecmpbll> although .. include not extend
<ljarvis> I changed it, you were to quick to click
<ljarvis> too*
<mikecmpbll> oh :D
<ljarvis> :P
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
sandelius has joined #ruby
rdark has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
krz has quit [Ping timeout: 272 seconds]
<sandelius> So rack has its own Rack::Builder in config.ru with run app at the end. Most frameworks creates their own Rack::Builder stack and builds it inside the call(env) method. So that means that we have to build two stacks. Why is that?
prereflect has joined #ruby
Chagel has quit [Ping timeout: 256 seconds]
Chagel_ has joined #ruby
ahmetkapikiran has joined #ruby
Takle has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
<_ht> When using GTK3 and glade, what's best practice: should I subclass Gtk::Builder or wrap a Gtk::Builder instance?
<jhass> _ht: I'd say wrap
<_ht> And do I make each form-element I use into a instance variable, or do I make the builder instance into an instance variable and use @builder.get_object "name" to accesss form elements?
hewenhong has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
edwinvdg_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ahmetkapikiran has quit [Client Quit]
oo_ has joined #ruby
tomphp has joined #ruby
prereflect has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
weemsledeux has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has joined #ruby
edwinvdgraaf has quit [Ping timeout: 265 seconds]
iamninja has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 250 seconds]
qwertme has joined #ruby
<jhass> I don't think there are big advantages over either, pick what you prefer
<_ht> All right
qwertme has quit [Client Quit]
jacor has quit [Read error: Connection reset by peer]
jacor has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
Chagel has joined #ruby
Chagel has left #ruby [#ruby]
Chagel_ has quit [Ping timeout: 252 seconds]
leafybasil has joined #ruby
zarubin has joined #ruby
Rickmasta has joined #ruby
selu has joined #ruby
startupality has joined #ruby
Papierkorb has joined #ruby
mike_bueti has joined #ruby
iamninja has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
deavidsedice has quit [Ping timeout: 244 seconds]
zarubin has quit [Ping timeout: 276 seconds]
wildroman2 has quit [Remote host closed the connection]
cookieburra has joined #ruby
sdothum has joined #ruby
<cookieburra> hello everyone!
CloCkWeRX has joined #ruby
wildroman2 has joined #ruby
<shevy> hi cookieburra
<shevy> you make me hungry
<cookieburra> haha, sorry for that
skammer has joined #ruby
roshanavand has left #ruby [#ruby]
<cookieburra> hey, have you used Rubocop?
senayar has quit [Remote host closed the connection]
<cookieburra> I don't think I understand how it determines the need for comments in code
<cookieburra> it keeps screaming for a documentation comments to my classes, and I have no idea how to make it stop
quimrstorres has quit [Remote host closed the connection]
jimms has joined #ruby
<adaedra> look at documentation, you can disable tests
<cookieburra> yeah, I know that
<cookieburra> but I assumed it's working correctly, and it's me that is buggy ;)
<cookieburra> I assume Rubocop expects RDoc-compatible documentation/comments
<adaedra> do you have a documentation tool to generate it?
quimrstorres has joined #ruby
<cookieburra> ok, so
<cookieburra> this is the moment when I feel like a fool
<adaedra> on a hill?
<workmad3> cookieburra: https://github.com/bbatsov/rubocop/blob/master/lib/rubocop/cop/style/documentation.rb <-- there's the cop for documentation checks :)
arup_r has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cookieburra> workmad3, thank you :) I had a look at it before
<cookieburra> ok, so it seems like I haven't connected the dots
hmnhf_ has joined #ruby
<cookieburra> and realized I need GENERATED documentation for the classes
<cookieburra> I assumed it just needs to be properly commented in code
quimrstorres has quit [Remote host closed the connection]
krz has quit [Ping timeout: 252 seconds]
x44x45x41x4E has joined #ruby
Musashi007 has joined #ruby
<shevy> cookieburra yeah I used it; you can use a file called rubocop.yml to govern its behaviour. rubocop adheres to some guideline
tvw has joined #ruby
<adaedra> guard <3
<workmad3> cookieburra: looking at the code, it seems like a non-empty class or module just needs at least one comment above it that isn't an annotation like 'FIXME:' or 'TODO:'
fabrice31 has quit [Remote host closed the connection]
<adaedra> cookieburra: doesn't seems to check for generated documentation, just require to document your classes
<apeiros> ljarvis: thanks for your example
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deavid has joined #ruby
<cookieburra> adaedra,yup seems like it. I still don't get why my comments are not OK with Rubocop
<workmad3> cookieburra: !gist your offending code maybe?
<workmad3> ?gist even :)
<ruboto> even, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<cookieburra> yup, on it :)
iamninja has quit [Read error: Connection reset by peer]
krz has joined #ruby
sdothum has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
roolo has quit [Remote host closed the connection]
yosafbridge has quit [Ping timeout: 272 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
<cookieburra> that's the file, basically
<cookieburra> what is weird, is that I get the error for lacking comment
zack6849 has quit [Ping timeout: 265 seconds]
<cookieburra> but just for the first 2 out of 3 classes in the file
Paradox has quit [Ping timeout: 256 seconds]
<workmad3> I'm surprised rubocop isn't complaining about multiple classes in the one file, personally
dudedudeman has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
Zai00 has quit [Quit: Zai00]
<cookieburra> seriously? I should separate those?
northfurr has joined #ruby
<cookieburra> I had no idea, I'm new (as if you didn'
<cookieburra> ...t notice)
KC9YDN has quit [Ping timeout: 248 seconds]
skammer has quit [Quit: Textual IRC Client: www.textualapp.com]
scottstamp has joined #ruby
chipotle has joined #ruby
<workmad3> cookieburra: yeah, it's pretty standard in ruby to have one class per file... makes it much easier to find things in the file system
<adaedra> One day I'll take time and setup a real power-vim
sdothum has joined #ruby
<workmad3> adaedra: and that day is... today!!!
GriffinHeart has quit [Read error: Connection reset by peer]
<adaedra> Unfortunately not.
<workmad3> :(
GriffinHeart has joined #ruby
startupality has quit [Quit: startupality]
xMopxShell has quit [Ping timeout: 272 seconds]
Paradox has joined #ruby
sdothum has quit [Client Quit]
Juanchito has joined #ruby
<adaedra> I'd like too, but I have a lot of work to do
doublemalt_ has joined #ruby
<workmad3> pfft, deadlines were made to be broken
dudedudeman has joined #ruby
<adaedra> :)
xMopxShell has joined #ruby
<workmad3> adaedra: or, in the words of JoCo: "All I know is work is easy when you don't stress out about deadlines "
<adaedra> I just want to finish this thing, actually
Ilyes512 has joined #ruby
KC9YDN has joined #ruby
KC9YDN has joined #ruby
Ilyes512 has quit [Max SendQ exceeded]
yosafbridge has joined #ruby
mello has joined #ruby
gluten_hell_ has joined #ruby
Ilyes512 has joined #ruby
gluten_hell_ has quit [Client Quit]
gluten_hell_ has joined #ruby
cirn0 has joined #ruby
nux443 has joined #ruby
Hien has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
<cookieburra> I've separated the classes, but I still get a "Missing top-level class documentation comment."
gluten_hell_ has quit [Read error: Connection reset by peer]
garyserj has joined #ruby
gluten_hell_ has joined #ruby
livathinos has quit [Ping timeout: 246 seconds]
dstarh has joined #ruby
pengin has joined #ruby
Hien has joined #ruby
xMopxShell has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
sdothum has joined #ruby
mello has quit [Ping timeout: 258 seconds]
quimrstorres has quit [Remote host closed the connection]
yosafbridge has quit [Ping timeout: 248 seconds]
marr has quit []
yosafbridge has joined #ruby
fabrice31 has joined #ruby
xMopxShell has joined #ruby
dstarh has quit [Ping timeout: 264 seconds]
yosafbridge has quit [Excess Flood]
RegulationD has joined #ruby
iamninja has joined #ruby
<shevy> then add a top level comment
<shevy> or disable that warning
yosafbridge has joined #ruby
mmazing has joined #ruby
pengin has quit [Remote host closed the connection]
<cookieburra> I have a comment right on top of each class, I assumed that's enough
joonty has joined #ruby
pengin has joined #ruby
jenrzzz has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
Someguy123 has quit [Excess Flood]
Someguy123 has joined #ruby
jbomo has quit [Ping timeout: 276 seconds]
<flughafen> workmad3: i love deadlines and the whooshing noise they make as they fly by
<workmad3> flughafen: douglas adams ftw! :)
<joonty> wrong channel
<joonty> but still a good link
pengin has quit [Ping timeout: 272 seconds]
Paradox has quit [Ping timeout: 265 seconds]
<flughafen> yeaaaaah!
<adaedra> dakor
jenrzzz has quit [Ping timeout: 256 seconds]
cookieburra has quit [Quit: Leaving]
yosafbridge has quit [Ping timeout: 248 seconds]
<adaedra> Could this v be written better?
<adaedra> headers && JSON.load(headers) rescue errors.add(:headers, 'is not a valid JSON document')
thebastl has joined #ruby
<apeiros> inline rescue swallows errors, I'd not use that
sigurding has joined #ruby
Someguy123 has quit [Excess Flood]
dorei has joined #ruby
Someguy123 has joined #ruby
<adaedra> I want to make sure that (if not nil), headers is a valid JSON document, and add an error if not
<ljarvis> rescue JSON::ParseError
<ljarvis> (I think it is)
cookieburra has joined #ruby
<ljarvis> so yeah, dont inline it
MuffinPimp has quit [Ping timeout: 246 seconds]
<adaedra> I see
<apeiros> >> require 'json'; JSON.load(nil)
<ruboto> apeiros # => nil (https://eval.in/371787)
<adaedra> ah
<apeiros> you can also save the &&
<ljarvis> cool, no need for the nil check
Someguy123 has quit [Excess Flood]
dudedudeman has quit [Ping timeout: 256 seconds]
nfk has quit [Quit: yawn]
<ljarvis> >> require 'json'; JSON.load('{wot')
<ruboto> ljarvis # => 795: unexpected token at '{wot' (JSON::ParserError) ...check link for more (https://eval.in/371788)
<ljarvis> I was close
commondream has joined #ruby
<ljarvis> forgot the r!
<adaedra> poor forgot.
<adaedra> who are these people who use a common word as nick?
xMopxShell has quit [Ping timeout: 256 seconds]
<adaedra> Immagine someone who would be named 'ruby' in here :p
Someguy123 has joined #ruby
garyserj has quit [Ping timeout: 264 seconds]
ahmetkapikiran has joined #ruby
Paradox has joined #ruby
garyserj has joined #ruby
yosafbridge has joined #ruby
sigurding has quit [Ping timeout: 256 seconds]
MuffinPimp has joined #ruby
livathinos has joined #ruby
xMopxShell has joined #ruby
GriffinHeart has quit []
yosafbridge has quit [Excess Flood]
commondream has quit [Ping timeout: 272 seconds]
jimms has quit [Remote host closed the connection]
dudedudeman has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
yosafbridge has joined #ruby
yosafbridge has quit [Excess Flood]
zz_Outlastsheep has quit [Ping timeout: 256 seconds]
yosafbridge has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rdark has quit [Quit: leaving]
yosafbridge has quit [Excess Flood]
barkerd427 is now known as zz_barkerd427
yosafbridge has joined #ruby
ldnunes has joined #ruby
sigurding has joined #ruby
scripore has joined #ruby
OrbitalKitten has joined #ruby
dudedudeman has quit [Ping timeout: 246 seconds]
yosafbridge has quit [Excess Flood]
<flughafen> adaedra: or the nick adaedra
yosafbridge has joined #ruby
MuffinPimp has quit [Ping timeout: 244 seconds]
sudog has quit [Quit: leaving]
MuffinPimp has joined #ruby
zz_Outlastsheep has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
saadq has quit []
DEA7TH has joined #ruby
v0n has joined #ruby
dudedudeman has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kp666 has joined #ruby
n008f4g_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
mosez_ has quit [Ping timeout: 252 seconds]
selu has joined #ruby
davedev24_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
sgambino has joined #ruby
xMopxShell has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
<izzol> I'm checking the type of the file, that works fine for me, but I'm also checking if file is compressed (tgz) if yes I'm decompressing it and again I'm checking the type of the file. That works fine too :P. The problem I have is that when the compressed file has a directory which has compressed file wich has directories which has again compressed files and so on.
<izzol> How to write such as method to check all those steps?
xMopxShell has joined #ruby
kp666 has quit [Quit: Leaving]
<izzol> I neved know how many files there will be or directories. I'm reading about the Composite Pattern, but not sure yet if this is what I'm looking...
quimrstorres has joined #ruby
kp666 has joined #ruby
cookieburra has quit [Quit: Leaving]
scripore has quit [Quit: This computer has gone to sleep]
mosez has joined #ruby
<ddv> izzol: just write a recursive method
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xMopxShell has quit [Ping timeout: 272 seconds]
x44x45x41x4E has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
v0n has quit [Ping timeout: 276 seconds]
Guest29816 has joined #ruby
quarcu has quit [Ping timeout: 265 seconds]
<izzol> ddv: yes, this is what I need to have... I guess.
<izzol> Thanks :)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
quarcu has joined #ruby
sdothum has joined #ruby
arup_r has quit [Remote host closed the connection]
but3k4 has joined #ruby
quimrstorres has quit [Ping timeout: 265 seconds]
xMopxShell has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
psy_ has quit [Read error: Connection reset by peer]
hewenhong has joined #ruby
gauke has quit [Ping timeout: 245 seconds]
gauke has joined #ruby
banister has joined #ruby
sepp2k has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
northfurr has quit [Quit: northfurr]
cubesandcode has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdg_ has joined #ruby
OrbitalKitten has joined #ruby
rindolf has joined #ruby
yh_ has quit [Ping timeout: 276 seconds]
nateberkopec has joined #ruby
Takle has quit [Remote host closed the connection]
scripore has joined #ruby
edwinvdgraaf has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
AlphaAtom has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
selu has joined #ruby
tesuji has joined #ruby
TheNumb has quit [Ping timeout: 264 seconds]
OrbitalKitten has joined #ruby
ponga has joined #ruby
OrbitalKitten has quit [Client Quit]
TheNumb has joined #ruby
thebastl has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
chinmay_dd has quit []
Zai00 has joined #ruby
zarubin has joined #ruby
northfurr has joined #ruby
zz_Outlastsheep has quit [Ping timeout: 272 seconds]
v0n has joined #ruby
OrbitalKitten has quit [Client Quit]
phutchins has joined #ruby
thebastl has joined #ruby
Coldblackice has quit [Ping timeout: 255 seconds]
OrbitalKitten has joined #ruby
bluOxigen has joined #ruby
zarubin has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
goodcodeguy has joined #ruby
zz_barkerd427 is now known as barkerd427
banister is now known as banisterfiend
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Alina-malina has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
ntln has quit [Ping timeout: 265 seconds]
zz_Outlastsheep has joined #ruby
<shevy> hmmm
bluOxigen has quit [Ping timeout: 265 seconds]
<shevy> I once wrote a class called class AlphabeticalHash
<jhass> tmi
Guest29816 has quit [Quit: Leaving]
mike has joined #ruby
fabrice31 has quit [Remote host closed the connection]
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
mike is now known as Guest8804
senayar has joined #ruby
Ilyes512 has joined #ruby
fabrice31 has joined #ruby
jacor has quit [Read error: Connection reset by peer]
jacor has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mike_bueti has quit [Quit: Textual IRC Client: www.textualapp.com]
thebastl has quit [Quit: Leaving...]
pulgolino has joined #ruby
x44x45x41x4E has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sdothum has joined #ruby
SalexW has joined #ruby
banisterfiend has quit [Ping timeout: 255 seconds]
weemsledeux has quit [Ping timeout: 265 seconds]
mello has joined #ruby
pulgolino has quit [Quit: WeeChat 0.4.2]
pulgolino has joined #ruby
vivekananda has joined #ruby
poguez_ has joined #ruby
mello has quit [Ping timeout: 264 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
nateberkopec has quit [Quit: Leaving...]
Guest8804 has quit [Quit: Leaving]
mike___1234 has joined #ruby
griffindy has joined #ruby
scripore has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
RegulationD has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
gambl0re has joined #ruby
edwinvdgraaf has joined #ruby
<jokke> hi
edwinvdg_ has joined #ruby
bmurt has joined #ruby
<jokke> i need to track down a memory leak
banister has joined #ruby
<jokke> in a basic ruby app
mmazing has quit [Ping timeout: 246 seconds]
<jokke> (not rails)
yh_ has joined #ruby
<jokke> it's basically just an etl
RegulationD has quit [Ping timeout: 264 seconds]
startupality has joined #ruby
<jokke> are there any gems that would profile the memory usage in parts of the code?
Rickmasta has joined #ruby
<jokke> well, that's not possible i guess..
ndrei has joined #ruby
<jokke> but something that would indicate what the problem might be
psy_ has joined #ruby
dblessing has joined #ruby
psy_ has quit [Max SendQ exceeded]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
psy_ has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
xxneolithicxx has joined #ruby
tomphp has joined #ruby
[k- has joined #ruby
kubunto has joined #ruby
<kubunto> hello
arup_r has joined #ruby
yh_ is now known as yh
nfk has joined #ruby
<jhass> jokke: you might like rbkit
code1o6 has joined #ruby
<jokke> jhass: cool, i'll give it a try
<ddv> jokke: you could also run your app on jruby and use some of the profiling apps available for java
dudedudeman has quit [Ping timeout: 276 seconds]
banister is now known as banisterfiend
startupality has quit [Quit: startupality]
jerius has joined #ruby
oo_ has quit [Remote host closed the connection]
centrx has quit [Quit: Shutting down, Please wait...]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
dudedudeman has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
michael_mbp has quit [Excess Flood]
speaking1ode has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
dudedudeman has quit [Ping timeout: 256 seconds]
speakingcode has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
arup_r has quit []
michael_mbp has quit [Excess Flood]
gambl0re has quit [Ping timeout: 250 seconds]
michael_mbp has joined #ruby
sinkensabe has joined #ruby
dudedudeman has joined #ruby
arup_r has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensa_ has joined #ruby
__chris has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
Tux_007__ has joined #ruby
bronson has joined #ruby
<jokke> jhass: hm can't compile the client
<jokke> 'aclocal-1.14' is missing on your system.
<jokke> i have aclocal
<jokke> version 1.15
phale has joined #ruby
dfockler has joined #ruby
<jhass> -dev / -devel package?
<jokke> jhass: yeah
<jokke> (archlinux)
mrmargolis has joined #ruby
<jhass> uh, I had that running on arch once
michael_mbp has joined #ruby
<jhass> just worked for me iirc
<jokke> maybe aclocal was version 1.14 back then :/
sankaber has joined #ruby
startupality has joined #ruby
CustosLimen has quit [Ping timeout: 240 seconds]
<jokke> it's weird because the makefile really tries to execute a file called aclocal-1.14
<jhass> aha, that might be
michael_mbp has quit [Excess Flood]
<jhass> I'd just edit it to .15 :P
bronson has quit [Ping timeout: 255 seconds]
mujou has joined #ruby
<jhass> that said there's automake-1.14 in the AUR
<phale> jokke: you see, there's an error
<jokke> jhass: hmm
<jokke> ok
<ddv> jokke: fix the pkgfile
agarie has joined #ruby
<jokke> ddv: huh?
<jokke> what's wrong with it?
<ddv> apparantly it wants aclocal-1.14 and you have 1.15
dfockler has quit [Ping timeout: 272 seconds]
<phale> shh
dudedudeman has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
sigurding has quit [Quit: sigurding]
CustosLimen has joined #ruby
baweaver has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
y0da has joined #ruby
<jokke> jhass: autobuild-1.14 fails to build.. :/
<jokke> *automake
hewenhong has quit [Remote host closed the connection]
<jhass> indeed
kp666 has quit [Remote host closed the connection]
umgrosscol has joined #ruby
hewenhong has joined #ruby
<jhass> mmh, but we want aclocal renamed too
kp666 has joined #ruby
<jhass> ah I see, no try the comment
<jokke> jhass: yeah
<jokke> works
livathinos has quit []
dudedudeman has joined #ruby
<jokke> jhass: one step further
livathinos has joined #ruby
lavros has joined #ruby
<jhass> wut
hewenhong has quit [Ping timeout: 272 seconds]
<phale> im crying
<jhass> does autoreconf-1.14 help?
<jhass> phale: sup?
<jhass> not getting enough attention?
CustosLimen has quit [Ping timeout: 246 seconds]
<phale> jhass: my wife wants to kill me
<jhass> cool
<ddv> jhass: why not adjust the pkgfile and let it use 1.15?
<ddv> maybe it works
<jhass> idk, you have to guide them through that ;)
ahmetkapikiran has joined #ruby
cubesandcode has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
cubesandcode has joined #ruby
startupality has joined #ruby
hewenhong has joined #ruby
User458764 has joined #ruby
mary5030 has joined #ruby
ismaelga has joined #ruby
michael_mbp has quit [Excess Flood]
phale has left #ruby ["Leaving"]
hewenhong has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
haxrbyte has joined #ruby
<jokke> never mind
<jokke> make clean
iamninja has joined #ruby
<jokke> was still having some autoreconf-1.15 stuff hanging around i guess
mrsolo has quit [Remote host closed the connection]
RegulationD has joined #ruby
nateberkopec has joined #ruby
michael_mbp has joined #ruby
mrmargolis has quit [Remote host closed the connection]
arup_r has quit []
michael_mbp has quit [Excess Flood]
haxrbyte_ has quit [Ping timeout: 265 seconds]
mrmargolis has joined #ruby
<jokke> ..
<jokke> would've been too good to be true if it compiled now
michael_mbp has joined #ruby
<jokke> undefined reference to `crypto_box_afternm'
<jokke> undefined reference to `crypto_box_open_afternm'
<jokke> undefined reference to `crypto_box_keypair'
<jokke> etc
dudedudeman has quit [Ping timeout: 256 seconds]
thiagovsk has joined #ruby
sevenseacat has joined #ruby
CustosLimen has joined #ruby
Ropeney has joined #ruby
elev has joined #ruby
michael_mbp has quit [Excess Flood]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has quit [Quit: Leaving]
ndrei has joined #ruby
riotjones has quit [Remote host closed the connection]
mrmargol_ has joined #ruby
rbennacer has joined #ruby
yalue has joined #ruby
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
michael_mbp has joined #ruby
tagrudev has quit [Remote host closed the connection]
<jhass> uh, isn't that like openssl?
mrmargolis has quit [Ping timeout: 252 seconds]
<elev> jhass?
spyderman4g63 has joined #ruby
<elev> do jhass live on irc?
<jokke> jhass: no
krz has joined #ruby
<jokke> that's probably this: crypto_box_afternm
<jokke> no
<jokke> ^
<jhass> ah, nacl
<jokke> and it's required by zeromq
n008f4g_ has joined #ruby
<jhass> interesting that you don't have it yet
<jokke> very
<elev> haha :D
<jokke> community/libsodium 1.0.3-1 [installed]
yfeldblum has joined #ruby
dudedudeman has joined #ruby
<jokke> P(ortable|ackageable) NaCl-based crypto library
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jokke> dunno if that's the thing
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<jokke> but there's also nacl in aur
rdark has joined #ruby
alex88 has joined #ruby
Kricir has joined #ruby
<jokke> which doesn't build
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jokke> m(
<jokke> well
<jokke> it was worth a try
podman has joined #ruby
xelim has joined #ruby
_ixti_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
failshell has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
dhosterman has joined #ruby
chrissonar has quit [Remote host closed the connection]
dru` has joined #ruby
senayar has quit [Remote host closed the connection]
zarubin has joined #ruby
Ilyes512 has joined #ruby
Kricir has joined #ruby
xelim is now known as glitch
glitch is now known as xelim
<dudedudeman> so many names!
fu2ristiq has joined #ruby
banisterfiend has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
yh has quit [Ping timeout: 256 seconds]
balazs has joined #ruby
zarubin has quit [Ping timeout: 265 seconds]
lavros has quit [Quit: leaving]
someword has joined #ruby
Igorshp has joined #ruby
lavros has joined #ruby
kobain has joined #ruby
joast has quit [Quit: Leaving.]
michael_mbp has quit [Excess Flood]
Pro| has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
michael_mbp has joined #ruby
gambl0re has joined #ruby
Porfa has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
<Porfa> hello guys, how can i fetch the .text that's in the last element? https://gist.github.com/anonymous/7974045b7752957b02e5
joast has joined #ruby
<Porfa> element name = "strong"
<jhass> .children.last.text ?
cubesandcode has quit [Remote host closed the connection]
<ljarvis> or use last-child
<ljarvis> </pedant>
<Porfa> jhass: yeah ! thank you
yh has joined #ruby
bruno- has joined #ruby
<Porfa> thank you so much!! :D
<dudedudeman> ha, just noticed this when jumping in to #ruby-lang: "The topic for #ruby-lang is: this channel will redirect to #ruby the morning of June 1, Pacific Time"
mello has joined #ruby
<ljarvis> not long now
Robr3rd has joined #ruby
<ljarvis> our worlds will merge and take over the universe
<ljarvis> or something
<dudedudeman> long live #ruby
Takle has quit [Remote host closed the connection]
commondream has joined #ruby
<ddv> good
Takle has joined #ruby
zotherstupidguy has joined #ruby
kubunto has left #ruby [#ruby]
yh has quit [Ping timeout: 265 seconds]
mello has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
Pumukel has joined #ruby
Robr3rd has quit [Quit: Leaving]
Takle has quit [Ping timeout: 272 seconds]
northfurr has quit [Quit: northfurr]
<agarie> much better that way
paulcsmith has joined #ruby
mike___1234 has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
fu2ristiq has quit [Ping timeout: 245 seconds]
ismaelga has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
someword has quit [Quit: Leaving.]
scripore has joined #ruby
xelim has quit [Quit: Leaving]
quimrstorres has joined #ruby
jenrzzz has joined #ruby
hectortrope has joined #ruby
sinkensa_ has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
jacor_m has quit [Ping timeout: 276 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
That1Guy has joined #ruby
Takle has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
jenrzzz has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
rdar has joined #ruby
kobain has quit [Ping timeout: 258 seconds]
vt102 has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
someword has joined #ruby
<izzol> this recursive method is really creazy.
<jhass> as long as it doesn't turn craezy
<ljarvis> creazy is already too much for me
serivich has joined #ruby
paulcsmith has joined #ruby
<izzol> I mean crazy ;-)
cubesandcode has joined #ruby
mrsolo has joined #ruby
riotjones has joined #ruby
alex88 has quit []
twistedpixels is now known as zz_twistedpixels
freerobby has joined #ruby
<izzol> I cannot understand one thing.
fabrice31 has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<izzol> If I have something like:
<ljarvis> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<izzol> And I call it: append([], 10)
riotjones has quit [Ping timeout: 256 seconds]
<izzol> I understand that there will be a return if n < 0.
aphprentice has quit [Remote host closed the connection]
<adaedra> >> [] + (0..10).to_a
<ruboto> adaedra # => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/371935)
<izzol> and if not, it will call append() again with number 9 in my case.
<izzol> and then 8, 7 and so on.
<izzol> but, why it will print "shit" each time?
sevenseacat has quit [Quit: Me dun like you no more.]
<jhass> adaedra: not the same and clearly not the point ;)
snockerton has joined #ruby
<adaedra> izzol: because l4?
<jhass> izzol: add p caller
<izzol> adaedra: but why line 4 is executed when line 3 is comming back?
<jhass> izzol: compare the output for each shit n
kobain has joined #ruby
kinduff has joined #ruby
<jhass> why wouldn't it?
<adaedra> jhass: mmh, yes, but it's not too far away
mistermocha has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<izzol> In my understanding when I call the method with number 8 it will execute append(array, 8-1) and this will execute append(array, 7-1)
<izzol> so not sure why puts "shit... is executed ech time as well
OrbitalKitten has joined #ruby
<adaedra> ah no, there's no real push
<jhass> izzol: add some output before the append call
mistermo_ has joined #ruby
<jhass> adaedra: also no unreal one ;)
cubesandcode has quit [Remote host closed the connection]
<adaedra> jhass: the name confused me
<adaedra> also, stop highlighting random people
<adaedra> :p
<ljarvis> izzol: because you're down the rabbit hole
quimrsto_ has joined #ruby
<ljarvis> each append calls itself so you get further down the stack
<ljarvis> then the puts executes on the way back up
<ljarvis> so it'll print the numbers backwards
<ljarvis> (probably)
CloCkWeRX has left #ruby [#ruby]
Pumukel has quit [Ping timeout: 265 seconds]
kinduff_ has joined #ruby
<ljarvis> it's not append() append() append() like your brain might be thinking, it's append(append(append(append())))) etc
quimrstorres has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 264 seconds]
<adaedra> you can try to print the call stack when you're at 0 (throwing anything could do it) to see it
<jhass> p caller
<ljarvis> so the inner append runs first (hence printing the 0)
elev has quit [Quit: Lost terminal]
kinduff has quit [Quit: leaving]
cubesandcode has joined #ruby
kinduff has joined #ruby
nateberkope has joined #ruby
<kinduff> good morning
<adaedra> 'evening
kinduff_ has quit [Client Quit]
aryaching has joined #ruby
<adaedra> or afternoon, I never know
<jhass> adaedra: ugt ;)
<adaedra> ugt?
<adaedra> ah this
commondream has quit [Remote host closed the connection]
<ljarvis> izzol: https://gist.github.com/leejarvis/496c2017488be2d1588c -- as jhass explains, caller would probably help you identify this
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
Cache_Money has joined #ruby
nateberkopec has quit [Ping timeout: 244 seconds]
<adaedra> jhass: it doesn't respond to the problem of the limit between afternoon and evening.
Ilyes512 has quit [Ping timeout: 272 seconds]
<jhass> adaedra: it does, by eliminating the afternoon
sorbo_ has joined #ruby
<ljarvis> that's what happens when i drink
<adaedra> :p
peteykun has joined #ruby
commondream has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
DEA7TH has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
<kinduff> lol
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
ndrei has joined #ruby
darkf has quit [Quit: Leaving]
tvw has quit []
Macaveli has joined #ruby
startupality has quit [Quit: startupality]
lkba has joined #ruby
commondream has quit [Remote host closed the connection]
cubesandcode has quit [Remote host closed the connection]
<gambl0re> does (f * 2) = ff?
<jhass> ?try gambl0re
<ruboto> gambl0re, Why don't you try it and see for yourself?
<jokke> jhass: i gave ruby-prof a try
<jokke> but even though i set measuring mode to memory i don't see any memory related info in the output
_seanc_ has quit [Quit: _seanc_]
cirn0 has quit [Remote host closed the connection]
scripore has joined #ruby
<dudedudeman> >> (f *2) == ff?
<ruboto> dudedudeman # => undefined method `f' for main:Object (NoMethodError) ...check link for more (https://eval.in/371946)
<dudedudeman> heh.
kp666 has quit [Remote host closed the connection]
<jhass> jokke: never really worked with it
hmnhf_ has quit [Ping timeout: 272 seconds]
ismaelga has joined #ruby
ismaelga has quit [Remote host closed the connection]
<gambl0re> how does that makse sense though?
ismaelga has joined #ruby
<gambl0re> multiple a letter to a number
iamjarvo has joined #ruby
gauke has quit [Quit: gauke]
garyserj has quit [Ping timeout: 244 seconds]
<gambl0re> >> (blahblahblah * 100)
<ruboto> gambl0re # => undefined local variable or method `blahblahblah' for main:Object (NameError) ...check link for more (https://eval.in/371947)
<jhass> it's a variable
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<gambl0re> what?
garyserj has joined #ruby
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
<gambl0re> >> (blah * 2) == blahblah?
<jokke> hm
<ruboto> gambl0re # => undefined local variable or method `blah' for main:Object (NameError) ...check link for more (https://eval.in/371952)
<gambl0re> wtf..
andikr has quit [Remote host closed the connection]
<sorbo_> gambl0re: ruby overloads * for strings to do copying/repetition
<jokke> >> 'blah' * 2
<ruboto> jokke # => "blahblah" (https://eval.in/371953)
<sorbo_> that's just how ruby works
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kinduff> ruboto talked?
<gambl0re> >> ("blah" * 2)
<ruboto> gambl0re # => "blahblah" (https://eval.in/371954)
<gambl0re> >> ("blah" * 100)
<ruboto> gambl0re # => "blahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahbla ...check link for more (https://eval.in/371955)
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has quit [Read error: No route to host]
<jhass> !fact mk experiment Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<ruboto> jhass, I will remember that experiment is Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<failshell> ruboto: make me a sandwich
rubie has joined #ruby
<failshell> silly bot
scripore has quit [Quit: This computer has gone to sleep]
HotCoder has joined #ruby
mikecmpb_ has joined #ruby
<kinduff> rubuto sudo make me a sandwich
anisha has quit [Quit: Leaving]
hewenhong has joined #ruby
<jhass> ?botsnack
<ruboto> nomnomnomnom
<rom1504> he ate your sandwich
<kinduff> >> (Float::NAN.to_s * 10) + " Batman!"
<ruboto> kinduff # => "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!" (https://eval.in/371959)
mistermocha has joined #ruby
Soda has joined #ruby
<dudedudeman> who created rubuto?
mikecmpbll has quit [Ping timeout: 276 seconds]
<jhass> the gods
I has joined #ruby
<dudedudeman> or did ruboto assimilate
<jhass> ?ruboto
<ruboto> I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
<rom1504> he created himself
baweaver has joined #ruby
I is now known as Guest4634
<dudedudeman> is that like, ultron?
<dudedudeman> ?ruboto ultron?
<ruboto> ultron?, I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
misterm__ has joined #ruby
<ljarvis> that worked out well
Guest4634 has left #ruby [#ruby]
<izzol> ok I think I understand now :P
<dudedudeman> i push buttons good
dopie has joined #ruby
<kinduff> >> e=(0/0.0); "#{"#{e}"*10}"+ ' Batman!'
<ruboto> kinduff # => "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!" (https://eval.in/371962)
<adaedra> -_-
hewenhong has quit [Ping timeout: 245 seconds]
<kinduff> didnt knew "#{"#{}"}" was possible
<adaedra> of course
<kinduff> >> "#{"#{yes}"}"
<ruboto> kinduff # => undefined local variable or method `yes' for main:Object (NameError) ...check link for more (https://eval.in/371963)
<kinduff> >> "#{"#{"yes"}"}"
<ruboto> kinduff # => "yes" (https://eval.in/371964)
jpfuentes2 has joined #ruby
<apeiros> kinduff: any valid expression can be nested in #{}
<kinduff> >> "#{"#{"yes"}".count}.to_s"
<ruboto> kinduff # => wrong number of arguments (0 for 1+) (ArgumentError) ...check link for more (https://eval.in/371965)
<adaedra> >> % #{% }
<ruboto> adaedra # => /tmp/execpad-3f53c66b7a89/source-3f53c66b7a89:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/371966)
mistermo_ has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
baweaver has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
mistermocha has quit [Ping timeout: 272 seconds]
<adaedra> >> % #{% } .to_s
<ruboto> adaedra # => "" (https://eval.in/371967)
vdamewood has joined #ruby
Agoldfish has joined #ruby
<adaedra> If you remove my spaces, it doesn't work, ruboto
mello has joined #ruby
mrmargolis has joined #ruby
scripore has joined #ruby
nateberkope has quit [Quit: Leaving...]
<ljarvis> >> ???->(_){%|00|}.($/):??
<ruboto> ljarvis # => /tmp/execpad-bcbd99e93cd9/source-bcbd99e93cd9:2: warning: string literal in condition ...check link for more (https://eval.in/371968)
misterm__ has quit [Ping timeout: 256 seconds]
gluten_hell_ has joined #ruby
dfockler has joined #ruby
<jhass> I see, we need to found #ruby-golf
paulcsmith has joined #ruby
<ljarvis> heh
bluish has joined #ruby
casadei has joined #ruby
aphprentice has joined #ruby
<adaedra> :D
nateberkopec has joined #ruby
mrmargol_ has quit [Ping timeout: 246 seconds]
mello has quit [Ping timeout: 265 seconds]
n3vtelen has joined #ruby
livathinos has quit []
<n3vtelen> how do I get response
<n3vtelen> without hostname
<n3vtelen> response = Net::HTTP.get_response("http://ip.jsontest.com/")
<eam> >> %{#{%}#{%}#{%}#{%}#{%}what.}}}}}}}}}}}
<ruboto> eam # => "what." (https://eval.in/371980)
<ljarvis> n3vtelen: without hostname?
<ljarvis> oh
<ljarvis> that method expects a URI object, not a string
pietr0 has joined #ruby
<ljarvis> get_response(URI("http://ip.jsontest.com"))
CorySimmons has joined #ruby
<n3vtelen> ljarvis: tnx, what's the difference
<ljarvis> n3vtelen: "foo" is a string, URI("foo") would return a URI instance, which is what get_response expects
<n3vtelen> ljarvis: oh, types :D
haxrbyte has quit [Read error: Connection reset by peer]
<ljarvis> right
marr has joined #ruby
User458764 has joined #ruby
gluten_hell_ has quit [Ping timeout: 276 seconds]
mujou has quit [Ping timeout: 264 seconds]
<n3vtelen> I have a ruby with ruby 2.2.2p95 version, is it update?
baroquebobcat has joined #ruby
<ljarvis> n3vtelen: yes
<n3vtelen> ljarvis: tnx
commondream has joined #ruby
alnoo has joined #ruby
<alnoo> Total ruby noob. Is this in the standard library, or is this a gem I have to download? http://ruby-doc.org/stdlib-2.0/libdoc/rubygems/rdoc/Gem/Package/TarReader.html
<adaedra> URI says stdlib
<ljarvis> alnoo: it's in the stdlib, inside the rubygems gem
scripore has quit [Quit: This computer has gone to sleep]
<alnoo> so if I want to use is it, I call Gem::Package::TarReader.new( ... ?
<ljarvis> ?try
<ruboto> Why don't you try it and see for yourself?
haxrbyte has joined #ruby
jpfuente_ has joined #ruby
<alnoo> Sorry, let me be more transparent
<alnoo> that does not work. Trying to figure out if that's the right way to call something from the stdlib
jpfuentes2 has quit [Ping timeout: 252 seconds]
commondream has quit [Remote host closed the connection]
n3vtelen has left #ruby [#ruby]
joonty has quit [Quit: joonty]
commondream has joined #ruby
<jhass> alnoo: require "rubygems/package"; should do
Soda has quit [Remote host closed the connection]
_n3vtelen has joined #ruby
<alnoo> so I don't want to get off topic, but this is a rails model I'm working on. Do I still require rubygems/package like I would in a regular ruby file?
<ljarvis> alnoo: yes
msgodf has quit [Ping timeout: 272 seconds]
_n3vtelen is now known as n3vtelen
<alnoo> ok, will give this a shot. thanks everyone.
nobitanobi has joined #ruby
<ljarvis> you could also require it in an initializer, though I would require it directly in the model
jamesaxl has joined #ruby
n3vtelen has quit [Client Quit]
towski_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
yh has joined #ruby
n3vtelen has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
jpfuente_ has quit [Ping timeout: 264 seconds]
cirn0 has joined #ruby
mistermocha has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
mrsolo has joined #ruby
edwinvdgraaf has joined #ruby
wildroman2 has quit [Ping timeout: 256 seconds]
jpfuentes2 has joined #ruby
tomaszbalon has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
havenwood has joined #ruby
n3vtelen has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
rbennacer has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
kinduff has quit [Ping timeout: 256 seconds]
Hounddog has quit [Remote host closed the connection]
n3vtelen has joined #ruby
Drewch has joined #ruby
wca has joined #ruby
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
chrisja has joined #ruby
toretore has quit [Ping timeout: 265 seconds]
mrsolo has quit [Ping timeout: 256 seconds]
<wca> hi, is there a way to interrupt a ruby program running with byebug so that byebug gets invoked in the current context? similar to what would happen if you run a C program under gdb?
<wca> i'm not seeing anything in byebug's documentation about doing something like that :-/
mrsolo has joined #ruby
<baweaver> wca: You do realize that's what Pry does right?
<baweaver> and why you have binding.pry
ecc_ has joined #ruby
<wca> afraid not, will look at it
<baweaver> Look into binding, interesting read for later.
Alayde has joined #ruby
<havenwood> wca: binding.pry ftw
pengin has joined #ruby
<wca> I haven't used it, and when I looked briefly it doesn't mention being able to catch ^C to invoke the debugger input mode
_seanc_ has joined #ruby
treehug88 has joined #ruby
<havenwood> Quick, link to a cirwin talk!
<jhass> wca: pry-rescue
<dudedudeman> lolll
<baweaver> cirwin is never on #ruby anymore
<wca> oh, that first youtube looks very interesting, using pry instead of irb :)
<jhass> and/or Signal.trap(:INT) { binding.pry } + pry-stack_explorer
<baweaver> I'll have to ask him about that later.
<havenwood> REPL Driven Development (RDD) is good but how does it hold up compared to Hammock Driven Development (HDD)?
<baweaver> https://gist.github.com/baweaver/13c7cc798fc71332ff07 - Also I did bad things to Ruby again.
<wca> The ? command must be using RDoc to lookup method documentation?
woodennails has joined #ruby
wildroman2 has joined #ruby
senayar has quit []
avril14th has joined #ruby
<jhass> add pry-doc for core & stdlib documentation, else it just parses what's in the files
<havenwood> wca: It's an alias for `show-doc` in Pry. Check `help` for the commands.
<havenwood> wca: gem install pry-doc
<jhass> I wonder if somebody wrapped attaching with gdb and calling binding.pry into a nice gem
mikecmpb_ has quit [Quit: i've nodded off.]
<wca> Thanks folks.
<dudedudeman> what is it with gdb today. I've heard three different people bring it up today for completely different reasons
<wca> jhass: I've used a gem that lets you call Ruby methods from gdb :) Can't remember what it's called.
CorySimmons has quit [Quit: Bye!]
andylolz has joined #ruby
scripore has joined #ruby
ed112211 has quit [Quit: ed112211]
<andylolz> hello can someone who speaks ruby & python help?! I’m looking for the ruby equiv of: `{x: op(y) for x, y in lst.items() if x == cond}`
DerisiveLogic has joined #ruby
einarj has quit [Remote host closed the connection]
zz_twistedpixels is now known as twistedpixels
toretore has joined #ruby
<andylolz> i.e. a conditional map that creates a hash
Channel6 has joined #ruby
_ixti_ has joined #ruby
granthatcher has quit []
<apeiros> andylolz: probably: lst.items.select { |x,y| op(y) }.to_h
Spami has joined #ruby
kinduff has joined #ruby
<andylolz> that looks like the right sort of thing! Thanks, apeiros :)
mclee has quit [Ping timeout: 240 seconds]
<apeiros> or well, lst.items.select { |x,y| x == cond }.map { |x,y| [x, op(y)] }.to_h
<wca> andylolz: is that setting x = op(y) in the hash when x == cond, otherwise omitting x?
<apeiros> ruby does not have list comprehensions. you'll usually use map and/or select instead.
MatthewsFace has joined #ruby
<andylolz> sorry yeah – I should have written it as a map in python
Spami has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
<andylolz> wca: exactly. Omitting the kev/val combo was the bit I was failing on
Spami has joined #ruby
<wca> andylolz: isn't lst supposed to be a dict?
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<andylolz> wca: haha sorry yeah. Wow – bad example
poguez_ has quit [Quit: Connection closed for inactivity]
<wca> andylolz: so you're effectively creating a new hash from an existing one but with omitted/modified key-value pairs
<andylolz> exactly
<andylolz> that’s exactly what I’m after.
<wca> andylolz: so you want something like this: lst.inject({}) {|h, kv| x, y = *kv; h[x] = op(y) if x == cond; h}
mrsolo has quit [Quit: This computer has gone to sleep]
jacor_m has joined #ruby
<jhass> wca: each_with_object
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<andylolz> wca: could I alternatively use `select`?
<jhass> but for small hashes I think .select { }.map { }.to_h is the most clear
<wca> jhass: ah, that avoids having to ensure that the last statement is the argument to inject
<jhass> wca: yup
[k- has quit [Quit: Lingo: www.lingoirc.com]
rdar has quit [Ping timeout: 272 seconds]
<wca> personally, I prefer to use inject vs select.map because it avoids creating unnecessary objects
* baweaver prefers reduce
Igorshp has joined #ruby
MatthewsFace has quit [Ping timeout: 244 seconds]
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
MatthewsFace has joined #ruby
<baweaver> and you do realize you can use parens to explode args
it_tard has joined #ruby
<baweaver> >> [[1,2], [3,4]].reduce(0) { |acc, (a,b)| acc + a + b }
<ruboto> baweaver # => 10 (https://eval.in/372022)
Zai00 has quit [Quit: Zai00]
<jhass> explode, I sense a PHP dev :P
<baweaver> I quit programming because of PHP
<baweaver> then again that was when I was 14
<baweaver> Java and PHP are two languages I pretty well won't touch.
<wca> baweaver: thanks for the tip, makes sense.
<dfockler> ahh the old explode method
kinduff has quit [Quit: brb]
<wca> baweaver: just curious, what are your specific reasons for Java?
ed112211 has joined #ruby
<baweaver> Clunky, and really really hellish for Big Data
pvb has joined #ruby
<wca> I was hoping for something a bit more technical :)
<baweaver> Big Data
<baweaver> Key concept? MapReduce
nfk has quit [Ping timeout: 265 seconds]
<baweaver> Where do those come from? Functional Programming
ecc_ has quit [Ping timeout: 256 seconds]
<baweaver> What is Java? About as anti-FP as possible
<ex0ns> Scala :)
bluOxigen has joined #ruby
<baweaver> ex0ns: I use it.
<ex0ns> I try to use it as well
<ex0ns> but I really have hard time getting used to it
bronson has joined #ruby
<baweaver> I'm actually driving some of the initiative to switch to Scala for Spark processing jobs at work, including teaching people Scala.
mrmargol_ has joined #ruby
<ex0ns> I had to use Spark for a specitic task, it was really nice
serivich has quit [Ping timeout: 255 seconds]
OrbitalKitten has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
<ex0ns> One thing I really love about scala (and what I miss the most when writing ruby) is pattern matching
<agarie> Scala is a nice language indeed, we started using it in the last company I worked
bluOxigen has quit [Ping timeout: 272 seconds]
<agarie> I have very high hopes for Julia
<ex0ns> Oh... another language I had never heard of...
rbennacer has joined #ruby
tjbiddle has joined #ruby
roolo has joined #ruby
<shevy> Romeo beats Julia
lkba has quit [Ping timeout: 272 seconds]
OrbitalKitten has quit [Client Quit]
<baweaver> boom
<ex0ns> baweaver: definitely the future
<ex0ns> of programming
<shevy> Juliet:
<shevy> Am I better than you?
<shevy> Hamlet:
<shevy> If so, let us proceed to scene III.
<shevy> I can see the if else clause
<shevy> like a marriage
<shevy> this programming language would make me very violent though
paulcsmith has joined #ruby
yh has quit [Ping timeout: 240 seconds]
edwinvdg_ has quit [Remote host closed the connection]
pengin_ has joined #ruby
pengin has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
<miah> enough to kill several Capulets
yh has joined #ruby
<shevy> Capulets?
jacor_m has quit [Quit: Leaving]
<baweaver> miah: Oi! Spoilers!
<baweaver> See?
<miah> lol
<miah> shakespear spoilers
* baweaver is just being cheeky at this point
<miah> ya =)
<hanmac> shevy do you have any osx hardware?
<baweaver> It was enough to kill a Montague too
sparr has quit [Changing host]
sparr has joined #ruby
<sorbo_> I feel about Scala the same way I feel about C++
northfurr has joined #ruby
<sorbo_> insofar as I have no idea which part of the language I should use
<shevy> hanmac nope; only linux and windows here
aryaching has quit [Ping timeout: 252 seconds]
dumdedum has quit [Quit: foo]
<hanmac> baweaver: i wouldnt trust sourceforge anymore ... they are manipulating the software and adding adware into it
pandaant has joined #ruby
<baweaver> hanmac: It was more of to point out that there was such a thing as a Shakespear language
<shevy> sorbo_ well you can see that about parts about ruby too, for instance the @@ - I never seem to really need them
<shevy> *see/say
<baweaver> If anyone actually downloads/uses that, well that's a whole other can of worms
<shevy> like lolcode?
yh has quit [Ping timeout: 245 seconds]
<hanmac> baweaver: i like the language "piet"
<baweaver> Language wise, it's either not enough libraries / features or too much to ever possibly get through
<baweaver> Hodor or Groot for me
rubie has quit [Remote host closed the connection]
<shevy> Hoot!
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit [Remote host closed the connection]
finisherr has joined #ruby
spyderman4g63 has joined #ruby
ponga has quit [Quit: Leaving...]
doublemalt_ has quit [Ping timeout: 272 seconds]
<finisherr> I’m doing ruby koans and having some issues understanding the block syntax for the string replacement method .sub
<finisherr> here is the problem: http://pastebin.com/5AcbbEyX
<ruboto> finisherr, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/d9684554dd9cdedc46ab
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
quimrstorres has joined #ruby
aryaching has joined #ruby
<jhass> finisherr: $1 is the result of the first capture group
SouL_|_ has joined #ruby
<jhass> s the t\w* part
<jhass> *so
<finisherr> not sure about the [0, 1] bit
<shevy> "one two-three".sub(/(t\w*)/) { $1[0, 1] }
<jhass> finisherr: $1 is a String
<shevy> so [0,1] means first character?
<jhass> shevy: you don't have enough patience :(
<finisherr> ohhhh, right, indexing the string
psy__ has joined #ruby
<shevy> jhass we need shortcuts!
<sorbo_> shevy, that's true
<shevy> imagine 10 lines of php code to achieve the same
<sorbo_> I've actually gone and converted most of my class variables to class instance variables, since it turns out you don't really need @@ much
quimrsto_ has quit [Ping timeout: 264 seconds]
<shevy> sorbo_ yeah
<shevy> >> class Foo; @bar = 'bar'; end; Foo.instance_variables
<ruboto> shevy # => [:@bar] (https://eval.in/372034)
<finisherr> Koan is telling me the result is: "one t-three"
<shevy> >> "one two-three".sub(/(t\w*)/) { $1[0, 1] }
<jhass> yup
<ruboto> shevy # => "one t-three" (https://eval.in/372036)
<finisherr> but i’m not sure I get that. It basicaly just wiped out the two characters after the first match
spyderman4g63 has quit [Ping timeout: 258 seconds]
<shevy> ruboto confirms
That1Guy has quit [Remote host closed the connection]
<jhass> finisherr: well, what does the regex match?
<shevy> well you replaced something via .sub
<balazs> any dashing experts here ? How do I disable drag&drop ?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lavros has quit [Quit: leaving]
<finisherr> looks like the regex matches any number of words starting with t
<shevy> well you do use a "t" there :)
<jhass> finisherr: no, \w is short for [a-zA-Z0-9_]
<finisherr> alnum
<jhass> it's still matching on single characters, not words
quimrstorres has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
<ljarvis> balazs: I am a dashing expert, but never used the software
<finisherr> right right
<finisherr> ok
<jhass> so in this example, what does it match?
<finisherr> OHHHHH
andylolz has left #ruby [#ruby]
<finisherr> it is saying match the first capture
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
<finisherr> so two
<jhass> right, so what's $1[0, 1] ?
<balazs> ljarvis: pun ? :)
<finisherr> t
pwattstbd has joined #ruby
<jhass> and there we are, it replaces two with t
<dudedudeman> noob ish question, guys..
<ljarvis> balazs: yes sorry, I imagine you'd have to do it in JS
<finisherr> Ok, yeah, that makes sense
sarkyniin has joined #ruby
<dudedudeman> i run my app with: ruby app.rb "argvs"
<finisherr> Thanks folks
<dudedudeman> i want to just do app "argvs"
<sarkyniin> dudedudeman: #/usr/bin/env ruby
<miah> your script needs a #!/usr/bin/env ruby
<sarkyniin> at the top of your script
edwinvdg_ has joined #ruby
<sarkyniin> then chmod +x
<sarkyniin> oh yea the bang
<dudedudeman> i have the shbang
<jhass> then mv app{.rb,}
<dudedudeman> the chmod, ahh. is it not chmod 777?
<miah> after that ./app should work
c0m0 has quit [Ping timeout: 245 seconds]
<sarkyniin> no
<sarkyniin> chmod +x alone makes it executable
<sarkyniin> which is all you want
<miah> 755 will work
<miah> 777 means _anybody_ can write to your file
<miah> as well as execute it
<dudedudeman> ah! ok. i learned something. not to chmod 777 the heck out of things
<sarkyniin> Anyone has a set of exercises to practice with while reading the pickaxe book?
<sarkyniin> I haven't found any while googling
<dudedudeman> miah: sarkyniin, jhass, thank you
<jhass> dudedudeman: prefer the ugo+rwx form
<jhass> so you know what you're doing
<dudedudeman> jhass: i'm not familiar with that? i'll be honest
dwithers has joined #ruby
<jhass> u+x add x flag for the owner
pvb has quit [Quit: Leaving]
wallerdev has joined #ruby
<jhass> o-r take the read flag for everybody else
<dudedudeman> ahhh, ok ok
<jhass> g=w group has write flag, no others
<miah> u = user, g = group, o = other
<jhass> and lots of combinations of that
mwlang has joined #ruby
<miah> saying u+x for owner is kinda confusing =)
sdwrage has joined #ruby
<dudedudeman> i'm easily confused, no worries
<miah> learn octal mode, it wont take you long
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<jhass> I still struggle...
<shevy> ... with cooking
<jhass> well, and I find user of the file less obvious than owner of the file :P
<shevy> you capitalist!
pocketpr1 has joined #ruby
<dudedudeman> shevy: stop talking about cooking. i'm having to take my lunch an hour later than normal, and i'm all out of snacks
Alayde has left #ruby ["WeeChat 1.0"]
pocketprotector has quit [Ping timeout: 258 seconds]
<mwlang> What’s the easiest way to unescape escaped HTML? For example: “&lt;STRONG&gt;Stacy Pratt McDermott&lt;/STRONG&gt; is Assistant Director…”
<shevy> dudedudeman I got home buying food an hour ago or so :)
nateberkopec has quit [Quit: Leaving...]
pocketpr1 is now known as pocketprotector
<dudedudeman> miah: I'll dig in to that, thank you. you too, jhass
<shevy> I even have one beer... but I drank orange juice, so now beer does not fit...
<mwlang> (this is not rails project, btw)
<jhass> mwlang: CGI has something, unescapeHTML or so
pl1ght has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
<shevy> what an ugly name for a method
<mwlang> jhass: thanks…I’ll hunt for that.
dojobo has joined #ruby
<mwlang> CGI everything is kinda ugly. :-/
psy_ has quit [Read error: Connection reset by peer]
psy__ has quit [Read error: Connection reset by peer]
<jhass> ah, gladly there's an unescape_html alias :D
pengin_ has quit [Remote host closed the connection]
<shevy> >> require 'cgi'; CGI.unescape_html('&lt;STRONG&gt;Stacy Pratt ')
<miah> jhass: sure, but if you read docs about permissions its always 'user, group, and other'
<ruboto> shevy # => "<STRONG>Stacy Pratt " (https://eval.in/372041)
nateberkopec has joined #ruby
pengin has joined #ruby
<shevy> the code and examples are kind of weird
<shevy> you find lots of references to literally: CGI::unescapeHTML
<shevy> mwlang I'd wish if the default cgi would offer something like routing in sinatra too
psy_ has joined #ruby
meatchicken has quit [Quit: Page closed]
psy_ has quit [Max SendQ exceeded]
Vendella has joined #ruby
<Vendella> Which one is preferred? http://codepad.org/HYCZMozz
<jhass> I wish cgi would be removed from stdlib and the useful parts be replaced by http_util and html_util or something
psy_ has joined #ruby
withnale_ has quit [Ping timeout: 272 seconds]
<shevy> Vendella I don't like either one if that helps :)
<jhass> Vendella: for is discouraged, so...
<jhass> but yeah, is that a real example?
<shevy> first one would seem more natural ruby
startupality has joined #ruby
<jhass> because that's just String#==
moretti has joined #ruby
<shevy> oh wait
<shevy> what are you actually comparing
<shevy> first method uses (), second does not
<shevy> he really tricked us :)
<jhass> actually it's not
<jhass> what does it even do...
pengin has quit [Ping timeout: 246 seconds]
<shevy> jhass do you use () parens in method definitions?
<jhass> they're not the same logically
<Vendella> The point is, use for in or each?
<shevy> each
<jhass> shevy: in my own projects I don't
<Vendella> shevy, Then don't say you don't like either
<shevy> but I don't like either of those two suggestions!
<Vendella> huh?
<jhass> Vendella: what's your actual goal?
<shevy> first one seems better than the second one though
<Vendella> The == is somehow implemented, you think it's magic?
Alayde has joined #ruby
<jhass> == is a method
<shevy> and magic
<jhass> String#==, Fixnum#==, Array#==
<jhass> != calls it too
<jhass> and negates the result
<mwlang> jhass: thanks. that worked perfectly. It even unescaped this one, too: “&#60;b&#62;What you need to know about your customers&#60;/b&#62;&#60;p&#62;”
djbkd has joined #ruby
kedare has quit [Remote host closed the connection]
<sorbo_> >> String.methods.grep :==
<ruboto> sorbo_ # => [:==] (https://eval.in/372043)
<sorbo_> >> 'foo'.== 'foo'
<ruboto> sorbo_ # => true (https://eval.in/372044)
<sorbo_> >> 'foo'.== 'bar'
<ruboto> sorbo_ # => false (https://eval.in/372045)
<sorbo_> x == y is the same as x.==(y)
<sorbo_> for objects that respond to the == message
<shevy> hehe
<shevy> Detective sorbo_ rivals Sherlock Holmes :)
<baweaver> === is fun too
<shevy> looks like a beaver dam too
* wca thinks is_a? is clearer than ===
<Vendella> is using length instead of size faster?
<jhass> no
<shevy> they are aliases Vendella
<baweaver> considering Array uses it as includes, Regex as match, and Proc as call
<jhass> they map to the same function for the core classes
<shevy> size is shorter to type, so you'll finish your code sooner by 0.00002% of use!
Lucky__ has joined #ruby
<baweaver> that's how case statements work, ===
<Vendella> length is a method and not part of Enumerable
aryaching has quit []
blaines has joined #ruby
<Vendella> and running at O(1)
<shevy> the good thing is that you can always peek at the source: http://ruby-doc.org/core-2.2.0/Array.html#method-i-size
<jhass> >> [].method(:size).owner
<ruboto> jhass # => Array (https://eval.in/372046)
<jhass> >> {}.method(:size).owner
<ruboto> jhass # => Hash (https://eval.in/372047)
<shevy> then you can click to show source, and obtain:
iamjarvo has joined #ruby
<shevy> static VALUE rb_ary_length(VALUE ary) { long len = RARRAY_LEN(ary); return LONG2NUM(len);}
<baweaver> case y; when (1..3) then x ... translates to something like (1..3).===(y)
<jhass> >> require "set"; Set.new.method(:size).owner
<sorbo_> I find I never use === directly
<ruboto> jhass # => Set (https://eval.in/372048)
<sorbo_> only indirectly via `case`
hmnhf_ has joined #ruby
<shevy> I do too
<wca> and is_a? too surely?
<sorbo_> in fact I only type === when I'm rapidly switching between JS and Ruby and typo >_<
<shevy> I also use .is_a? - I think the ruby cgi module uses .kind_of?
<sorbo_> wca: I actually try not to interrogate objects to find out what kind of thing they are
rdar has joined #ruby
<shevy> *CGI class rather
<jhass> lots of rubys stdlib is not very idiomatic code anymore :/
_ixti_ has quit [Ping timeout: 265 seconds]
<sorbo_> I usually prefer Object#responds_to? to Object#kind_of? or Object#is_a?
<shevy> well, a lot of that was written like 1999-2001
<sorbo_> s/responds_to/respond_to/g
<shevy> perhaps crystal will replace ruby one day
<wca> sorbo_: sure, sometimes it's better to just call a method if that objects responds to it
<jhass> shevy: I don't think so
spyderman4g63 has joined #ruby
<mwlang> I’m kind of surpised those classes didn’t become more idiomatic during the major language enhancements…either at the 1.8 ==> 1.9 turn or at the 1.9 ==> 2.0 turn.
cirn0 has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
<shevy> people are lazy!
Ilyes512 has joined #ruby
<shevy> you sort of need project owners, such as you have with (many) gems
<jhass> programmers are also used to keep the existing style when working on existing code
alex88 has quit [Remote host closed the connection]
<shevy> you conform to style of other people?
<jhass> if I collaborate? sure
<sorbo_> first mover usually wins :\
<jhass> yep
iamjarvo_ has joined #ruby
iamjarvo_ has quit [Max SendQ exceeded]
<sorbo_> I conform to existing style when collaborating and also when changing environments
<sorbo_> I super hate tabs for indentation but I use them when writing Go
<sorbo_> (actually go fmt makes this pretty painless)
iamjarvo_ has joined #ruby
<shevy> ack
CustosLimen has quit [Ping timeout: 246 seconds]
<shevy> so you are a tabster
<sorbo_> I use two spaces for everything except Python (four spaces) and Go (tabs)
iamjarvo has quit [Ping timeout: 246 seconds]
<sorbo_> I haven't written Python in a long time though
<jhass> I returned for a small script the other day and blindly applied two spaces there too now :D
<shevy> why did the python guys end up with four spaces and ruby guys with two?
<sorbo_> well, that's not completely true. I think I use four spaces for Swift too
<sorbo_> shevy, these are the great mysteries of the universe
<mwlang> shevy: because indentation is everything in python.
CustosLimen has joined #ruby
mello has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<mwlang> plus, four spaces or 1 tab used to be the norm back in the golden age of programming.
<dfockler> two spaces is good in ruby because it forces your methods to be smaller
blaines has quit [Ping timeout: 252 seconds]
psyprus has quit [Changing host]
psyprus has joined #ruby
Xoro has joined #ruby
<jhass> one could argue four spaces does the same because you hit the column limit earlier, thus hit the line limit earlier
<jhass> I think it's pure preference, getting used to
<apeiros> there was a golden age of programming?
<dfockler> haha
<jhass> I had no issue writing two spaces python
Tux_007__ has quit [Quit: Connection closed for inactivity]
SalexW has quit [Remote host closed the connection]
banister has joined #ruby
mtakkman has joined #ruby
d5sx43 has joined #ruby
<shevy> mwlang 1 tab ok; but why does this translate to 4 rather than 2 in python?
mello has quit [Ping timeout: 258 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<agarie> one thing that I like about 4 spaces in Python is that the indentation inside functions match the position of the function name
<shevy> I looked at the linux kernel; for instance, watchdog.c, the guy who write it uses tab for indentation
<agarie> as 'def ' takes 4 spaces :P
<shevy> *wrote
<mwlang> shevy: sorry, I was somewhat obtuse. Basically, in the old days, monitors were low resolution affairs…96dpi and worse. a tab was rendered as approximately four spaces and four spaces was usually used because that was most comfortable to read.
cirn0 has joined #ruby
it_tard has quit [Quit: yawn]
<shevy> aha
spider-mario has joined #ruby
<mwlang> over the years, monitors got better and fonts got better and things looked decent at 2 spaces instead of 4. people started changing.
banister has quit [Client Quit]
startupality has quit [Quit: startupality]
<mwlang> older languages (i.e. python) probably just kept the convention because it just reads better with four spaces since indentation drives the language.
northfurr has quit [Quit: northfurr]
<jhass> aren't ruby and python about the same age?
<agarie> ruby is a bit older, but it appears that Python became "popular" first
<mwlang> jhass: Python came out in the 80s when those low-res monitors were still common.
<baweaver> Ruby 1995, Python 1991
<jhass> Python: 1991; 24 years ago according to WP
<jhass> Ruhy: 1995; 20 years ago
<agarie> really? damn, I thought Ruby was in 91 and Python in 94-95
kinduff has joined #ruby
<agarie> wells, it isn't a big difference
<agarie> s/wells/well/
<mwlang> “Python was conceived in the late 1980s[1] and its implementation was started in December 1989[2] by Guido van Rossum at CWI in the Netherlands” also from wikipedia.
bronson has quit [Remote host closed the connection]
<baweaver> Java was 1995
dwithers1 has joined #ruby
<mwlang> all I know is I remember seeing it when I was in college, so that timeframe definitely matches my personal experience.
* apeiros considers ruby, python & java to be of roughly the same age
kies has quit [Ping timeout: 258 seconds]
<dfockler> lisp is over 50 years old
<shevy> (may(it(rest(in(peace
<mwlang> when did 120dpi monitors start hitting the scenes?
<sorbo_> I'm kind of astounded that Ruby and Java are the same age and JVM GC is so much more sophisticated
<jhass> 58 or 59 I think with the first interpreter 60?
<shevy> yeah like ruby has a much money put into it as Java right :P
<apeiros> lisp… http://xkcd.com/297/
<gambl0re> i want to create my own programming language.
<apeiros> elegant weapons… for a more civilized age…
<apeiros> gambl0re: do it
<shevy> haha... your father's parentheses
<dfockler> yeah ruby is a more community oriented language than Java
<gambl0re> i want to make it happier than ruby.
<apeiros> there's even books on it
<shevy> gambl0re apeiros wrote one
<apeiros> gambl0re: use :) to terminate statements
<jhass> lol
<apeiros> shevy: s/wrote/is writing/
mikecmpbll has joined #ruby
<apeiros> `puts "hello world" :)`
<sorbo_> shevy, that's fair
<shevy> no please no smileys as terminators
<apeiros> why? it'd make for an awesomely happy language!
<jhass> yes, use unicode emojis instead
<miah> <3 as terminator
<gambl0re> 8==D as terminator
<shevy> oh dear
dwithers has quit [Ping timeout: 250 seconds]
<miah> nothx
jpfuentes2 has joined #ruby
codeFiend has joined #ruby
<shevy> haha
<jhass>
<jhass> ^ my vote
<Alayde> emojis in my irc!? what black magic is this
<shevy> gambl0re see? designing a language is all about making the right decisions
<gambl0re> 8==D ---- (.)(.)
maletor has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
<miah> gambl0re: please stop
codeFiend has quit [Client Quit]
<dfockler> I'm waiting for the first widespread unicode based language
<shevy> dfockler it already has a logo - the happy smiling snowman
<jhass>
<gambl0re> ill stop..
<agarie> unicode... I always wanted to write some Haskell code with the -XUnicodeSyntax extension
pdoherty has joined #ruby
<agarie> it allows you to write things like `∀` instead of `forall`
<dojobo> hexchat doesn't show those emojis :/
codecop has joined #ruby
<shevy> haha
<jhass> dojobo: linux?
pengin has joined #ruby
matled has quit [Remote host closed the connection]
<dojobo> nah, windows port of the linux app
bronson has joined #ruby
<dojobo> wish i could use linux at work though
<jhass> well, make sure it's set to utf-8
jenrzzz has joined #ruby
<jhass> I think that was configurable there
kinduff_ has joined #ruby
kinduff_ has quit [Client Quit]
d5sx43 has quit [Quit: Leaving...]
blaines has joined #ruby
kinduff_ has joined #ruby
codeFiend has joined #ruby
finisherr has quit [Quit: finisherr]
mrsolo has joined #ruby
kinduff_ has quit [Client Quit]
Outlastsheep is now known as zz_Outlastsheep
<agarie> lol that's wonderful
kinduff_ has joined #ruby
<dojobo> jhass++
marr has quit [Ping timeout: 258 seconds]
Hijiri has joined #ruby
kinduff has quit [Ping timeout: 244 seconds]
kinduff_ has quit [Client Quit]
<shevy> lol
<shevy> Hieroglyphics
mello has joined #ruby
mtakkman has quit [Read error: Connection reset by peer]
ta has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
kinduff has joined #ruby
banister has joined #ruby
tomphp has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
casadei has quit [Remote host closed the connection]
serivich has joined #ruby
matled has joined #ruby
rbennacer has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<shevy> I am looking at the old ruby cgi code and I see this
<shevy> @options = { :accept_charset => @@accept_charset,
<shevy> that would be the same as:
<shevy> @options = { accept_charset: @@accept_charset,
<shevy> right?
<apeiros> yes
ed112211 has quit [Quit: ed112211]
hmnhf_ has quit [Quit: Konversation terminated!]
hmnhf_ has joined #ruby
twistedpixels is now known as zz_twistedpixels
<Alayde> Are there books/websites/blogs/other recommended readings for kind of..learning to structure ruby code? I find myself writing a fair amount of scripts, and while trying to make use of classes and modules I can't help but feel I'm not doing things the best practice way.
Porfa has quit [Ping timeout: 244 seconds]
<Alayde> tl;dr any recommended reading for code organization?
zz_twistedpixels is now known as twistedpixels
TheNet has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
<agarie> Alayde: I really liked Design Patterns in Ruby http://designpatternsinruby.com/
shadoi has joined #ruby
<agarie> Eloquent Ruby, from the same author, is great too
chinmay_dd has joined #ruby
<Alayde> agarie: awesome!
<sorbo_> Alayde: Practical Object-Oriented Design in Ruby, by Sandi Metz
Takle has joined #ruby
yqt has joined #ruby
finisherr has joined #ruby
<agarie> also, I recently finished Smalltalk Best Practice Patterns: http://www.amazon.com/Smalltalk-Best-Practice-Patterns-Kent/dp/013476904X
mrsolo has quit [Ping timeout: 250 seconds]
<sorbo_> The Well-Grounded Rubyist is also good
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<agarie> but the other two are probably better if you're starting to read about the subject
Takle has quit [Read error: Connection reset by peer]
<sorbo_> haha
<sorbo_> genius
<shevy> I am wondering if it is worth to improve the ruby cgi module at all
Takle has joined #ruby
<Alayde> agarie, sorbo_: You guys rock, that's totally what I was looking for
<shevy> what language is that
<Alayde> much appreciated
<baweaver> shevy: Tolkien Elvish
<shevy> lol
<shevy> so cool
<sorbo_> Alayde: happy to help!
<shevy> and so useless
<sorbo_> also +1 for the Russ Olsen books (Design Patterns in Ruby and Eloquent Ruby)
<miah> both great books
<sorbo_> those few should be a good foundation for organizing/building Ruby stuff
<Alayde> Kick ass. I'll add 'em to my amazon cart now
<sorbo_> there are probably good books/tutorials for Rails projects in particular but IDK what they are
chinmay_dd has quit [Client Quit]
quimrstorres has joined #ruby
shadoi1 has joined #ruby
bootstrappm has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
<bootstrappm> morniiiing
User458764 has joined #ruby
<baweaver> New version of The Ruby Way just came out too
ebonics has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
serivich has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
shadoi has quit [Ping timeout: 246 seconds]
<miah> i have the old version.. its helpful for some things. but not my usual reference
<miah> takes up space on my shelf and thats abuot it
soulcake has quit [Quit: Quack.]
doublemalt_ has joined #ruby
zarubin has joined #ruby
soulcake has joined #ruby
platzhirsch has joined #ruby
sinkensabe has joined #ruby
shadoi1 has quit [Quit: Leaving.]
hmnhf__ has joined #ruby
hmnhf__ has quit [Client Quit]
RegulationD has joined #ruby
jasondockers has joined #ruby
<sorbo_> reference I've found helpful lately are Pat Shaughnessy's Ruby Under a Microscope and Alexander Dymo's Ruby Performance Optimization
platzhirsch has left #ruby [#ruby]
<jasondockers> Can I downgrade to ruby 2.1 from 2.2.0 on Windows easily?
hmnhf_ has quit [Quit: Konversation terminated!]
pengin has quit [Read error: Connection reset by peer]
pengin has joined #ruby
<rom1504> no
<jasondockers> damn
<sorbo_> this is true of most sentences with "windows" and "easily" in them
<wallerdev> lol
<sorbo_> system ruby, or are you managing via chruby/rvm/rbenv?
Palmer11 has joined #ruby
<miah> do those even work on windows?
<wallerdev> just download ruby 2.1 and put it in your path before ruby 2.2
<jasondockers> system ruby I believe. I've never used ruby before and I'm just trying to run a utility installed with gems which is broken on 2.2
rippa has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 255 seconds]
<jasondockers> okay
<miah> chocolatey still has 2.1.5; https://chocolatey.org/packages/ruby
rippa has joined #ruby
<shevy> you can always try to install a different ruby .exe
<miah> er, 2.1.6
<forgot> which one of chruby/rvm/renv is preferred?
<shevy> jasondockers: http://rubyinstaller.org/
<shevy> so at least 2.1.6 is there
baroquebobcat has quit [Quit: baroquebobcat]
Alayde has left #ruby ["WeeChat 1.0"]
<miah> i use chruby, but i dont use windows. i wish i could be more help on this topic but i avoid windows for all development
<shevy> aha, have not heard of Chocolatey before
<shevy> chocolate
<sorbo_> yeah, I also don't know a ton about windows
<sorbo_> hopefully the path trick wallerdev mentioned works
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> no one knows about Windows.
<sorbo_> forgot: I tend to use rbenv but have also heard good things about chruby. I would avoid RVM
<adaedra> It's a legend.
<jasondockers> thanks, all
<adaedra> Made to frighten small kids.
baroquebobcat has joined #ruby
<shevy> haha
<shevy> the ghost baguette story
nobitanobi has joined #ruby
<forgot> sorbo_: im using rbenv. chruby sounds simpler
<shevy> no kid could eat it so they all died :(
<adaedra> d'accord
<adaedra> shevy: what do you smoke ?
treehug88 has joined #ruby
<shevy> love
<adaedra> fair enough
<sorbo_> forgot: IIRC it is. but if rbenv is working for you, if it ain't broke, &c &c
<shevy> woodstock was my generation even before I was born!
nobitanobi has quit [Remote host closed the connection]
breakdown has joined #ruby
nobitanobi has joined #ruby
<adaedra> ☮
<forgot> sorbo_: good point
jenrzzz has joined #ruby
mclee has joined #ruby
<shevy> do you guys follow a "one class/module per .rb file" guideline?
TheNet has joined #ruby
jpfuente_ has joined #ruby
<miah> i do
jpfuentes2 has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
<forgot> that's for java
breakdown has quit [Client Quit]
<ljarvis> shevy: not everywhere, but where it makes sense to separate things into files
<dfockler> If they are small and related they can go together, but it makes it less clear when you require the file
<mwlang> shevy: more or less. I ocassionally collect things like constants, error classes, etc. which may be multiple classes or values into an aptly named file “constants.rb” “errors.rb” etc.
finisherr has quit [Quit: finisherr]
chipotle has quit [Quit: cheerio]
<mwlang> I don’t really like 3 or 4 line source files so if there’s an obvious theme, I tend to gather the small stuff up.
<sorbo_> shevy: usually, not always.
woodennails has joined #ruby
<sorbo_> ditto dfockler & mwlang
MatthewsFace has quit [Read error: Connection reset by peer]
<shevy> I found in ruby cgi, core.rb file, the class CGI, and also a module embedded in it, module QueryExtension
MatthewsFace has joined #ruby
<ljarvis> that's reasonable
phutchins has quit [Ping timeout: 244 seconds]
<dfockler> Also organizing classes using modules is what a lot of gems end up doing
vdamewood has quit [Quit: Life beckons.]
<miah> ya
<shevy> miah yeah
casadei has joined #ruby
<miah> my toplevel namespace is always a module
<shevy> reminds me of when apeiros used toplevel namespace as class once
<shevy> such an evil boy
<ljarvis> there's nothing wrong with that
<apeiros> not just once. I do that whenever it makes sense.
<ljarvis> yep
<apeiros> it's fairly less common than module, though.
<miah> generally, you use modules instead of classes to avoid collisions with existing classes
<ljarvis> that doesn't make sense
<forgot> the term 'module' confuses me a lot, is it called mixin?
<wallerdev> i just name variables using my first and last name plus a random number
<wallerdev> no collisions to worry about
<dfockler> :(
<apeiros> wallerdev: what? not using a UUID?
<apeiros> shame
<wallerdev> much easier to remember my name than a uuid :p
<ljarvis> forgot: no it's called a module. http://ruby-doc.com/docs/ProgrammingRuby/html/tut_modules.html
iceden has quit [Read error: Connection reset by peer]
<miah> doesnt make sense?
<miah> Modules provide a namespace and prevent name clashes.
<apeiros> re avoid collisions: for that the toplevel module is/should usually be sufficient (i.e. if your gem name is foo_bar, your toplevel module is FooBar)
<miah> rule one from that link =)
<arup_r> >> def foo ; 1,2; end
<ruboto> arup_r # => /tmp/execpad-746b8d176550/source-746b8d176550:2: syntax error, unexpected ',', expecting keyword_end ...check link for more (https://eval.in/372056)
toretore has quit [Quit: This computer has gone to sleep]
<dfockler> then you can do FooBar::CoolClass.new
<arup_r> Not valid! :/
<apeiros> arup_r: you either need the return keyword or have to wrap it in an array.
<arup_r> humm
<ljarvis> miah: ah right I misunderstood you; my rebuttal was that a module constant can clash with an existing class name
kinduff has quit [Quit: Reconnecting]
<arup_r> why this design
<arup_r> ?
tomaszbalon has quit [Remote host closed the connection]
kinduff has joined #ruby
<apeiros> arup_r: ask matz
<arup_r> Ok
<miah> kinda
<forgot> ljarvis: sorry, i mean is ruby module the equivalent of mixin in other languages?
<ljarvis> forgot: in what languages?
<apeiros> forgot: it may be similar. it's almost never equivalent, though.
<eam> I never use module, I always use class
<miah> >> class Array; end; module Array; end
<ruboto> miah # => Array is not a module (TypeError) ...check link for more (https://eval.in/372057)
<forgot> ljarvis: like python?
<bootstrappm> forgot you call it a mixin when you actually mix it in to a class using include
<eam> IMO ruby would be a lot simpler without module
<shevy> eam nobody shall believe you
<bootstrappm> which isn't always the use of a module but can be
<apeiros> eam: instead allowing to use include/extend with classes? might even work
<shevy> eam well, I'd like to unify classes and modules, but I definitely would not want to get rid of include
<mwlang> didn’t I read somewhere that modules were basically classes by another name and it’s just convention that modules aren’t instantiated?
<eam> If module didn't exist we wouldn't have ambiguity around Foo::Bar::Baz
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> apeiros: just do multiple inheritance, no big
<ljarvis> classes are modules that can be instantiated
<ljarvis> Class < Module
<ljarvis> >> Class < Module
<ruboto> ljarvis # => true (https://eval.in/372058)
Igorshp has quit [Remote host closed the connection]
<eam> MI is fine, it gets a bad rap because of implementation details of C++
<apeiros> eam: MI is ok to abolish include. but what about extend?
<ljarvis> forgot: pretty much yes
<ljarvis> mwlang: so yes :D
<apeiros> yeah, never got the hate MI received. include is basically linearized MI.
<dreinull75> so how do I load a file on irb startup? -r is for gems, just the file name executes?
<apeiros> no reason one couldn't do that with classes.
<eam> apeiros: can't MI handle both?
<ljarvis> dreinull75: -r is for everything
<apeiros> eam: no
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> eam: extend is on a per object basis
<dreinull75> oh, just tried ./file
<ljarvis> dreinull75: if it's relative, you need to add ./; ie: ruby -r./foo.rb bar.rb
<mwlang> ljarvis: thanks for clarifying. I was like, “sooo….was that a yes?” :-)
<dreinull75> ljarvis thanks
<ljarvis> mwlang: :P
<eam> oh. well, would it need to be?
<apeiros> >> module X; def x; "weee"; end; this_string_only = "foo"; this_string_only.extend X; this_string_only.x
<ruboto> apeiros # => /tmp/execpad-992e78a365be/source-992e78a365be:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/372059)
<apeiros> grah!
<apeiros> DO WHAT I MEAN! SILLY BOT!
tomphp has joined #ruby
<miah> lol
<apeiros> >> module X; def x; "weee"; end; end; this_string_only = "foo"; this_string_only.extend X; this_string_only.x
<ruboto> apeiros # => "weee" (https://eval.in/372060)
<eam> apeiros: wouldn't you normally extend the class, though?
<apeiros> eam: that's just a "special" case
moretti has quit [Quit: Leaving...]
<apeiros> I'm not actually sure what I do more often - extend a class or a non-class
<eam> ok, but wouldn't MI on an instance be possible if ruby allowed it?
tomphp has quit [Client Quit]
<apeiros> I think extending plain objects dropped due to method cache invalidation. which is very sad :(
apt-get_ has joined #ruby
<eam> once you have MI it should work dynamically on any object
<apeiros> eam: IMO yes. that's what I meant by "and allow include/extend with classes?"
<eam> aha, yes, I see
<jasondockers> I'm trying to use bundle to install a gem. My gemfile is "source :rubygems\n require 'thegem'," apparently the metadata is missing?
<miah> s/require/gem
<apeiros> only allowing it with modules was a design decision, not a technical one
<dreinull75> extend and include seem to be troublemakers in ruby world. Nobody really gets it right away.
<ljarvis> jasondockers: dont use require in your Gemfile
<bootstrappm> jasondockers its gem 'thegem' not require
<apeiros> eam: it'd actually be close to what I do in my toy language
<ljarvis> apeiros: i heard toy language, orly
<ljarvis> is this like the orm i'll never see?
bronson has quit [Remote host closed the connection]
<apeiros> ljarvis: the difference is that the ORM is actually working :-p
<jasondockers> :S. Okay, so I have a source and gem line.
<ljarvis> my point is valid, I don't have my grubby hands on it
sdwrage has quit [Quit: This computer has gone to sleep]
<jasondockers> The extension is .gemspec, right?
rindolf has quit [Quit: http://www.shlomifish.org/ ; Yay! I'm a llama again.]
<ljarvis> jasondockers: no, that's a gem specification file
<apeiros> ljarvis: you're right. blame freenode for letting me be founder of #ruby. caused havoc in my agenda. (though, it wasn't the only one)
<ljarvis> apeiros: true true
<apeiros> also blame netflix for existing
<ljarvis> I've been writing a toy language for about 6 years now
<ljarvis> so yeah
sarkyniin has quit [Ping timeout: 250 seconds]
<apeiros> I think 6 years is about the time I haven't worked on my toy language :(
<ljarvis> ouch
Jackneill has joined #ruby
<dfockler> I just started mine in Rust
<ljarvis> that could have been the latest craze
<dfockler> waiting 6 years before I start
<apeiros> hrm, might indeed be accurate. I haven't worked on it ever since I moved, and that's 5y ago. so 5y at the very least.
<ljarvis> dfockler: waiting for rust?
dEPy has quit [Quit: (null)]
<ljarvis> apeiros: damn :/
<dfockler> haha no just joking
rubie has joined #ruby
<apeiros> but at least with the toy language I knew it was low prio and that I might never finish it.
<apeiros> and it was still valuable and thought me a lot
<ljarvis> yeah that's how I view mine
<apeiros> *taught
Alayde has joined #ruby
<jasondockers> I tried .rb, .gem, .gemspec, .gemfile, .ioc, and saving the file as literally .gemfile :/
<bootstrappm> jasondockers: save it as Gemfile
momomomomo has joined #ruby
<bootstrappm> no extension
<ljarvis> mine taught me a lot too, but it's not very valuable in any other sense :D
<ljarvis> jasondockers: check out the documentation miah already linked you to
<dfockler> apeiros: just trying to figure out argument substitution and parsing is fun learning
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
pengin has quit [Read error: Connection reset by peer]
pengin_ has joined #ruby
<bootstrappm> i'm itching for a new OS, I'm on elementaryOS (Luna) right now ... any suggestions?
<dfockler> bootstrappm: isn't that linux?
tomphp has joined #ruby
<bootstrappm> yes
<ljarvis> windows
<bootstrappm> ubuntu-based
<bootstrappm> i guess a new distro is what i meant
<ljarvis> :)
<ljarvis> when I had time and really wanted to nerd out with Linux, gentoo was my poison
<bootstrappm> hahah only use it for photoshop but its there just in case ljarvis
<ljarvis> now I'm older and use OSX because shit just works
<Alayde> bootstrappm: Do you want something that 'just works' or do you wanna put time into building something?
<miah> nixos
<dfockler> I've been using mint and it's pretty clean and good
<ddfreyne> bootstrappm: Haiku? It's a little hard to use though :)
zarubin has joined #ruby
<miah> or the gnu version; http://www.gnu.org/software/guix/
iceden has joined #ruby
<bootstrappm> Alayde wouldn't mind putting time into building a little but don't want to spend a week on it
<bootstrappm> maybe like ... two days
pengin_ has quit [Remote host closed the connection]
<dfockler> minix, it's fast
baweaver has quit [Remote host closed the connection]
<miah> lol
<bootstrappm> hahah
<miah> what about gnu hurd?
bluish has quit [Quit: bluish]
<Alayde> bootstrappm: Hm, well I'm probably the fuddy duddy in the room but I'd suggest debian stable netinstall myself. It's what I run at home, took me about 3-4 hours to get running (but I'm pretty linux savvy) and configured how I want it
<miah> im personally a fan of Archlinux. I run it on all my gear.
<bootstrappm> i'm leaning towards Arch, yeah
<miah> apart from my osx work laptop
<Alayde> Arch is pretty good too. I used to run it back in the day, though eventually I got tired of the rolling release thing
<Alayde> but, still cool
edwinvdg_ has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
<bootstrappm> yeah Alayde? I tried Debian on this laptop before but couldn't get it working because my wifi card isn't linux friendly. I bought a USB adapter for wifi later but by that time had already installed elementary
<bootstrappm> might give it another go
<miah> i havent had a issue with arch / rolling release (though i have with gentoo and portage)
<miah> but it was usally because of portage changes that made upgrading a pita
pdoherty has quit [Ping timeout: 256 seconds]
pengin has joined #ruby
<Alayde> bootstrappm: I feel you there, my card isn't supported out of the box ether. But I just did my install over ethernet, and installed the necessary non-free drivers after the fact
jenrzzz has quit [Ping timeout: 240 seconds]
jacor_m has joined #ruby
pandaant has quit [Remote host closed the connection]
stoffus has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
<bootstrappm> i saw a bit up that people were saying rbenv or chruby > rvm
<bootstrappm> when did people move away from rvm? I think i missed that train
<bootstrappm> i'm still using it
robbyoconnor has quit [Quit: Konversation terminated!]
chinmay_dd has joined #ruby
AlphaAtom has joined #ruby
dfinninger has joined #ruby
stoffus has joined #ruby
commondream has quit [Remote host closed the connection]
<sorbo_> mostly RVM does weird shit to your shell that I'm not a fan of
<alnoo> I have a function that only returns if a condition is met. x = foo(y) is a string if y is a certain string, for example. How can I check that "x" has something assigned to it or not after the function is called?
<alnoo> *only returns a value
sinkensabe has quit [Remote host closed the connection]
<miah> i use chruby / ruby-install. its super minimal and doesnt wrap shell commands
<dreinull75> and I'm still using rvm. It does a great job and never had any worries.
nettoweb has joined #ruby
moretti has joined #ruby
sandelius has joined #ruby
<sorbo_> I had a hell of a fight with RVM like 18 months ago
<dreinull75> looks like the fight between rbenv chruby and rvm is fiercer than that between vim and emacs
<sorbo_> which, TBH, was probably more Apple's fault than RVM's (OS upgrade)
baroquebobcat has quit [Quit: baroquebobcat]
<dreinull75> I'd usually say triy one and if it doesn't work move on and try the second
<sorbo_> but I had to nuke RVM from orbit and took the opportunity to switch to rbenv
<sorbo_> have had no trouble since
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sorbo_> yeah
JimmyNeutron has joined #ruby
<sorbo_> that's reasonable advice dreinull75
<sorbo_> so bootstrappm if RVM is working for you, keep on keeping on
mmazing has joined #ruby
<miah> i think they all work reasonably well
<dreinull75> these things are meant to keep you worry free. if it doesn't do it, get out quickly.
<bootstrappm> cool sorbo_ thanks!
<sorbo_> ^ ++
<miah> as long as you conform to their expected workflow
<sorbo_> np boss
<bootstrappm> i've only ever had trouble w/ rvm using crons
tomphp has joined #ruby
AlphaAtom has quit [Ping timeout: 272 seconds]
<bootstrappm> because of the aforementioned "weird shit to your shell"
<miah> ya
<dreinull75> same with python and ruby. Never managed to get python running with envs and whatever the hell they want me to install.
havenwood has joined #ruby
<bootstrappm> you mean virtual-env dreinull75?
<bootstrappm> virtualenv*
<dreinull75> yes
<dreinull75> totally not getting it :) I'm an absolut failure.
<miah> i havnet had many issues with virtualenv
finisherr has joined #ruby
<miah> you just have to remember to always source your 'bin/activate' stuff
sinkensabe has joined #ruby
ismaelga has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
_seanc_ has quit [Quit: _seanc_]
marr has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<hololeap> which do you think is better in terms of readability, singleton_class.class_eval or class << self?
Hijiri has quit [Quit: WeeChat 1.0.1]
<hololeap> or i guess a better question would be, which is better in terms of understandability by rubyists
<jhass> the latter
paulcsmith has quit [Quit: Be back later ...]
jenrzzz_ has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
delianides has joined #ruby
<sorbo_> class << self
chrisja has quit [Quit: leaving]
<sorbo_> rubyists will automatically recognize class-shovel-self
<sorbo_> I'm not sure I've even seen singleton_class.class_eval before
<havenwood> end
prereflect has joined #ruby
<hololeap> sorbo_: its kinda something i came up with on my own. i've been using it in my own code, but i generally don't see other people using it
<bootstrappm> agreed, class << self. Don't understand it but have seen it enough to get the intention
scripore has joined #ruby
<hololeap> ok that's what i figured. thanks everyone
paulcsmith has joined #ruby
Kricir has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
_ixti_ has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerematic has joined #ruby
danman has joined #ruby
banister has joined #ruby
<sorbo_> hololeap: np
banister has quit [Max SendQ exceeded]
arescorpio has joined #ruby
sdwrage has joined #ruby
<sorbo_> class << x means "open x's eigenclass for modification"
ERIK__ has joined #ruby
<sorbo_> you can think of the eigenclass as the object itself, i.e. methods added there are for that object only
<hololeap> ok one more if you don't mind: `!!some_non_boolean` vs `true & some_non_boolean` in terms of commonality and understandability
<sorbo_> so class << self says "open this class and put everything that follows directly on this object"
code1o6 has quit [Quit: Leaving]
<sorbo_> hololeap: !!some_non_boolean, though RuboCop hates it
<sorbo_> that's an area where the robot and I disagree
wallerdev has quit [Quit: wallerdev]
quimrstorres has quit [Remote host closed the connection]
<hololeap> sorbo_: i understand class << self, but i just never found it very readable, and frankly its hard to search for in google when you first encounter it :)
tomphp has quit [Client Quit]
quimrstorres has joined #ruby
krz has quit [Ping timeout: 258 seconds]
<jhass> symbolhound.com ;)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<hololeap> jhass: that's awesome
<hololeap> why doesn't google support PCRE search? ;)
tjbiddle_ has joined #ruby
idafyaid has joined #ruby
<jhass> because then when you do a google search, you have two problems
pengin has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
ERIK__ is now known as code1o6
<bootstrappm> lolol
mistermocha has joined #ruby
delianides has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hololeap> i don't get it <_<
dfinninger has quit [Remote host closed the connection]
<bootstrappm> thanks for that sorbo_. Is adding it to the eigenclass technically the same as adding it to the object (like say, in JS) or is it just a way to think about it?
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle_ is now known as tjbiddle
sandelius has joined #ruby
<jhass> *singleton class
<jhass> that's the term ruby core settled for, we should phase the other ones out
Soda has joined #ruby
delianides has joined #ruby
quimrstorres has quit [Ping timeout: 264 seconds]
<sorbo_> hololeap: sure thing (& definitely hear you re: class << self)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<sorbo_> bootstrappm: I'm not sure. I've always believed that eigenclass & object itself are synonymous in Ruby, but I might be mistaken.
<jhass> hololeap: https://xkcd.com/1171/
<sorbo_> I'll have to re-read Pat Shaughnessy's Ruby Under a Microscope
<sorbo_> goes through Ruby internals, v. interesting & well-written
<hololeap> jhass: :p
<dreinull75> how can I use "testing" in my dev.rb file. ARGV doesn't seem to work here: irb -r ./dev.rb testing
<bootstrappm> lololol greeeat xkcd
<sorbo_> jhass thanks, I'll try to use singleton class from here on out
cubesandcode has joined #ruby
mistermocha has quit [Remote host closed the connection]
<bootstrappm> dreinull75: that give me a file not found error, its looking for testing
baweaver has joined #ruby
mistermocha has joined #ruby
<bootstrappm> gave*
last_staff has joined #ruby
wallerdev has joined #ruby
<dreinull75> not here
jpfuentes2 has joined #ruby
jpfuente_ has quit [Ping timeout: 256 seconds]
<bootstrappm> irb and ruby version dreinull75?
<dreinull75> bootstrappm 2.2.2p95
mello has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
<bootstrappm> irb version dreinull75?
<dreinull75> 0.9.6
<bootstrappm> thanks
<bootstrappm> screenshot of output?
bronson has quit [Remote host closed the connection]
banister has joined #ruby
<ddfreyne> What's the #ruby-lang vs #ruby difference about again, and how come they get unified only now?
sinkensabe has quit [Remote host closed the connection]
<dreinull75> Welcome to TESTING. You are using ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]. Have fun ;) []
<ddfreyne> I've asked this before (years ago) and forgot.
lordkryss has joined #ruby
<dreinull75> where [] is p ARGV
mrsolo has joined #ruby
bricker has joined #ruby
mrsolo has quit [Read error: Connection reset by peer]
finisherr has quit [Quit: finisherr]
delianides has quit [Remote host closed the connection]
bronson has joined #ruby
crazydiamond has joined #ruby
<bootstrappm> I see dreinull75. I'm honestly still stuck on why irb on your machine didn't try to look for a file called testing to run O_o, I'll defer to somebody else
<dreinull75> bootstrappm I use all kinds of weird gems in irb. might be related to that
woodruffw has quit [Remote host closed the connection]
delianides has joined #ruby
<dreinull75> I'll skip it for now.
baroquebobcat has joined #ruby
<dreinull75> thanks for looking into it though
<bootstrappm> np
<apt-get_> anyone can help me for a bit with google api oauth?
edwinvdgraaf has joined #ruby
chinmay_dd has quit []
<apt-get_> I'm using the google_drive gem just to access the content of a google spreadsheet
<apt-get_> used to use GoogleDrive.login(email,password) easily but now I need to do the whole oauth process
<apt-get_> which is tedious to say the least
dfockler has quit [Remote host closed the connection]
allcentury has joined #ruby
woodruffw has joined #ruby
<bootstrappm> I've never used it apt-get_, sorry
B1n4r10 has joined #ruby
finisherr has joined #ruby
shadoi has joined #ruby
al2o3-cr has quit [Ping timeout: 265 seconds]
__chris has quit [Quit: This computer has gone to sleep]
<mwlang> geez…do javascript html editors just not get how to escape and unescape HTML tags? Who does FUBAR mashups like “&#60;p&gt;Hello, &lt;b&gt;World&#60;/b&#62;&#60;/p&gt; (for <p>Hello, <b>World</b></p>) — note the mixing of unicode and named entities. *sigh*
kinduff has quit [Quit: brb]
<mwlang> no wonder sanitizing foreign html is such a chore.
sinkensabe has joined #ruby
<bootstrappm> like, WYSIWYG editors?
krz has joined #ruby
<Alayde> Is there a good way to combine regex and Array's 'include?' method? So like array.include?(/string_one|string_two/)
<Alayde> My google-fu is failing me, as are my random IRB shots in the dark lol
sdwrage has quit [Read error: Connection reset by peer]
<mwlang> bootstrappm: yeah, that’s what I’m referring to.
<mwlang> the MCE’s, CFKEditors, TinyMCE’s, etc. of the world.
<jhass> Alayde: Array#grep
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bootstrappm> yeah, horrendous output mwlang
<jhass> or .any?
<Alayde> jhass: ah hah! grep is what I was looking for
<Alayde> awesome, thanks
Musashi007 has joined #ruby
<havenwood> Alayde: grep(Regexp.union(string_one, string_two)).any?
<mwlang> I think I actually prefer sanitizing MS-Word’s horrendous HTML output over some of these JS-based editor’s outputs. It may be a ridiculous, overkilling mess, but at least it’s consistently bad in every way, so it’s easy to sanitize.
jenrzzz has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
rdar has quit [Quit: Leaving]
<sandelius> anyone know how to document throw with yardoc?
<bootstrappm> not I
<jhass> :o, you use throw/catch in your public API?
<bootstrappm> mwlang I'm starting to feel bad for the things you've had to work with hahaha
<bootstrappm> sandelius raise?
danman has quit [Quit: danman]
<sandelius> jhass well half public, implementation api
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
<sandelius> not really public
zarubin has quit [Quit: leaving]
jacor_m has quit [Ping timeout: 265 seconds]
zarubin has joined #ruby
<jhass> I don't see a tag to document it, I guess it's just way too uncommon
AlphaAtom has joined #ruby
<mwlang> bootstrappm: never feel bad for me! I willing take on the crap nobody else will touch for the right price. :-) Somebody else here coined it…”technical debt sin eater” but I’m adopting that moniker! (they forgot to (tm)
Pumukel has joined #ruby
<bootstrappm> hahah nice
<sandelius> jhass yeah couldn't find it either
commondream has joined #ruby
CHVNX has quit [Ping timeout: 265 seconds]
<sandelius> jhass throw+catch is awesome if used wisley
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/2015051400]]
jasondockers has quit [Quit: Page closed]
sdwrage has joined #ruby
<bootstrappm> sandelius I've never seen it used, whats a good / cool use of it?
Hijiri has joined #ruby
<shevy> when would be a good use case for catch/throw as opposed to begin/rescue ?
CHVNX has joined #ruby
<sandelius> shevy when you have nested loops with method calls for example. Another example is in Sinatra https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1066
<sandelius> so you can't e.g redirect twice
<sorbo_> yeah, looks like it's primarily for jumping out of nested stuff
<sandelius> throw catch is an an error, it's more a signal
AlphaAtom has quit [Ping timeout: 252 seconds]
<sorbo_> I've never used it
<sorbo_> looks interesting though
<sandelius> it is
<sorbo_> though part of my brain thinks it looks too much like goto
joneshf-laptop has joined #ruby
deric_skibotn has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
mmazing has quit [Ping timeout: 258 seconds]
deric_skibotn has joined #ruby
bronson has joined #ruby
wallerdev has quit [Quit: wallerdev]
commondream has quit [Remote host closed the connection]
vivekananda has quit [Ping timeout: 265 seconds]
commondream has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
<apt-get_> damn
ed112211 has joined #ruby
<apt-get_> is there really no easy-to-use gem for getting google spreadsheets?
<apt-get_> I don't want to go through the whole oauth process + getting credentials + everything else
<apt-get_> for fetching data from a single spreadsheet
jacor_m has joined #ruby
<mwlang> I think I’m gonna blog this puppy up, but if you’re curious, this is the solution I have (so far) for sanitizing HTML that can come from literally anywhere… https://gist.github.com/mwlang/77d8ca36fd22003ade80
alnoo has quit [Quit: Page closed]
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> sorbo_: sandelius same, it feels like goto to me, and worse like goto across function/method boundaries
kadoppe has quit [Ping timeout: 252 seconds]
deric_skibotn has quit [Read error: Connection reset by peer]
commondream has quit [Ping timeout: 244 seconds]
<sorbo_> jhass yeah
kinduff has joined #ruby
A205B064 has joined #ruby
kadoppe has joined #ruby
Lucky__ has quit [Ping timeout: 272 seconds]
finisherr has quit [Quit: finisherr]
zarubin_ has joined #ruby
pengin has joined #ruby
bluOxigen has joined #ruby
ioioio has quit [Quit: Lost terminal]
edwinvdgraaf has quit [Remote host closed the connection]
idafyaid has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
codecop has quit [Remote host closed the connection]
<joneshf-laptop> so i'm reading through poodr, in "ch7 > writing inheritable code > preemptively decouple classes" Metz says that you should use hooks to eschew the use of `super` and that it only works for one level of inheritance.
<joneshf-laptop> This seems valid, but then she goes on to say that adding another level of inheritance breaks it by forcing the next level to use `super`. Why not suggest to provide another hook if you need another level of inheritance.
<shevy> mwlang quite clean code layout you have there
zarubin_ has quit [Ping timeout: 256 seconds]
idafyaid has joined #ruby
<mwlang> shevy: thanks
<shevy> apt-get_ I think there are like pieces and snippets left and right... there was one project with excel-spreadsheets I think. Dunno about new age solutions, although perhaps you can also ask in #rails, sometimes the rails people have implemented something like that (if it is web-related, which spreadsheets could be)
sorbo_ has quit []
phutchins has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
_ht has quit [Quit: Konversation terminated!]
mujou has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
dopie has quit [Read error: Connection reset by peer]
zipace has joined #ruby
zipace has quit [Max SendQ exceeded]
dopie has joined #ruby
zipace has joined #ruby
deric_skibotn has joined #ruby
mujou has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
mello has joined #ruby
AlphaAtom has joined #ruby
deric_skibotn has quit [Read error: Connection reset by peer]
bmurt has quit []
neanderslob has joined #ruby
mello has quit [Ping timeout: 256 seconds]
Drewch has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby
jerius has quit [Ping timeout: 276 seconds]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Ping timeout: 256 seconds]
dopie has quit [Ping timeout: 264 seconds]
edwinvdgraaf has joined #ruby
I has joined #ruby
cubesandcode has quit [Remote host closed the connection]
I is now known as Guest54838
blaines has quit [Ping timeout: 245 seconds]
gambl0re has quit [Ping timeout: 258 seconds]
DenSchub has quit [Read error: Connection reset by peer]
DenSchub has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
wallerdev has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
nettoweb has joined #ruby
Hijiri has joined #ruby
a346 has joined #ruby
mwlang has quit [Quit: mwlang]
al2o3-cr has joined #ruby
dfockler has joined #ruby
Jackneill has quit [Remote host closed the connection]
pengin has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
pengin has joined #ruby
djbkd has quit [Remote host closed the connection]
DEA7TH has joined #ruby
pwattstbd has joined #ruby
aryaching has quit []
a346 has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Ping timeout: 246 seconds]
kies has joined #ruby
coderhs has joined #ruby
snockerton has quit [Ping timeout: 272 seconds]
Channel6 has quit [Quit: Leaving]
coderhs has quit [Client Quit]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has joined #ruby
zodiak_ has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
jstanton has quit [Ping timeout: 256 seconds]
<Radar> GOOD MORNING
snockerton has quit [Client Quit]
<baweaver> 'morning Radar
* baweaver wanders back to Google IO talks
<xxneolithicxx> got a new laptop with a crappy keyboard, im used to Thinkpad keyboards. any keyboard recommendations?
<baweaver> Das Keyboard
snockerton has joined #ruby
djbkd has joined #ruby
C1V0 has joined #ruby
<xxneolithicxx> those are steep, i doubt my job will pay for that lol
Alayde has left #ruby ["WeeChat 1.0"]
<al2o3-cr> optimus maximus
djbkd has quit [Read error: Connection reset by peer]
<baweaver> is it?
djbkd has joined #ruby
<baweaver> ~$100 is probably a decent bench level for good mechanicals
delianides has quit [Remote host closed the connection]
vt102 has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
* baweaver waits for them to check into the optimus
* baweaver grabs popcorn
lkba has joined #ruby
duderonomy has joined #ruby
<xxneolithicxx> isnt that the even more expensive keyboard lol? i dont need to check that
<baweaver> ~1000 if I recall
<dudedudeman> i mean, a budget to work with is helpful
<xxneolithicxx> was that the one with the digital keys or something like that
<al2o3-cr> if i had the money i get one ofthem for sure
ismaelga has joined #ruby
axilla has quit [Quit: Lost terminal]
<dudedudeman> we've bought several of these for users in our building, they're nice
scripore has quit [Quit: This computer has gone to sleep]
<dudedudeman> not a DAS or any of the good mechanicals, but get the job done
nobitanobi has joined #ruby
<baweaver> Get the clicky switches
ldnunes has quit [Quit: Leaving]
<baweaver> You're not really programming until people can hear your fury
<dudedudeman> i've got a blackwidow at work that someone left here when they left. it's been amazing to have
<baweaver> Strike fear into the hearts of Juniors
edwinvdgraaf has quit [Remote host closed the connection]
* dudedudeman is junior. is afraid
y0da has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
<failshell> for tests, rspec or minitest?
ndrei has quit [Ping timeout: 258 seconds]
prereflect has joined #ruby
<weaksauce> wow the das keyboard is a really nice keyboard
<weaksauce> I wish it was the shape of the microsoft internet keyboard
<weaksauce> natural multimedia keyboard actually
thiagovsk has quit [Quit: Connection closed for inactivity]
kobain has quit [Ping timeout: 250 seconds]
vickleton has joined #ruby
mistergibson has quit [Quit: Leaving]
<dfockler> failshell: they both do the job, depends on your tastes and project
edwinvdgraaf has joined #ruby
Guest36235 has joined #ruby
<failshell> dfockler: was hoping for a few peeps to answer to see why they like one or the other ;)
<dfockler> rspec more of a learning curve IMHO because of the DSL
AlphaAtom has joined #ruby
allcentury has joined #ruby
<dfockler> minitest is just a ruby class, and they both have tons of examples and docs
<weaksauce> ^ ~$1500 iirc
<dfockler> weaksauce: whoa
<ex0ns> I started to use rspec yesterday and found it quite easy to use
ismaelga has quit [Remote host closed the connection]
kinduff has quit [Changing host]
kinduff has joined #ruby
kinduff has quit [Quit: leaving]
kinduff has joined #ruby
kinduff has quit [Changing host]
kinduff has joined #ruby
<apeiros> weaksauce: ouch. a bit much for an advanced dust & breadcrumb collecting tray…
<weaksauce> actually there are some there for a reasonable 725 so that's perfect for a dustcatcher
ismaelga has joined #ruby
<bootstrappm> failshell, use rspec first. after that writing any other kind of test will seem easy
<dfockler> I eat sandwiches over my keyboard often so I need it to collect a lot of crumbs
kirun has quit [Quit: Client exiting]
barkerd427 is now known as zz_barkerd427
<failshell> i already use serverspec which is a spinoff of rspec
<failshell> so im prolly more familiar with it already
spyderman4g63 has quit [Remote host closed the connection]
<failshell> im gonna have a bit of RTDD to do tomorrow morning. this tool is growing fast.
bluOxigen has quit [Ping timeout: 240 seconds]
spyderman4g63 has joined #ruby
AlphaAtom has quit [Ping timeout: 264 seconds]
<ex0ns> the only thing I didn't understand with rspec is to know when I'm supposed to give a block or not to the "expect" method
mrsolow has quit [Read error: Connection reset by peer]
tesuji has quit [Ping timeout: 250 seconds]
shadoi has quit [Quit: Leaving.]
TheNet has joined #ruby
<baweaver> ex0ns: Whenever an exception is expected
TheNet has quit [Client Quit]
<baweaver> that allows it to rescue the block context instead of the entire RSPEC area around it
<ljarvis> or execution needs to be deferred
jacor_m has quit [Ping timeout: 272 seconds]
<ljarvis> i,e expect { User.count }.to ...
<baweaver> Yep
<baweaver> Makes more sense if you use Javascript heavily
phizzbuzz has quit [Ping timeout: 252 seconds]
<ex0ns> because User.count can throws an exception
spyderman4g63 has quit [Ping timeout: 255 seconds]
<ex0ns> for example ?
rdark has quit [Quit: leaving]
<weaksauce> no
<weaksauce> because the block needs to be executed later
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> Humor me, why is that?
<baweaver> Because the it block is already a block, meaning it's not calling that expect until it gets to there anyways
ismaelga has quit [Remote host closed the connection]
<ljarvis> rspec needs to run it twice to compare the value
<ljarvis> yep but what's inside the block isn't executed
<ljarvis> until rpsec decides to execute it
<baweaver> it 'something' do end # is a block though
<weaksauce> yeah. usually it's a to change with a count
<weaksauce> or not to change
<ljarvis> yeah, the same rules apply there
<baweaver> almost seems like that's just writing tests oddly
<baweaver> I can see the reasons for exceptions, but not necessarily to deferring beyond the scope of an 'it' block
<baweaver> but that may just be me
bruno- has joined #ruby
<ljarvis> baweaver: here: expect { User.create_admin! }.to change { User.count }.by(1)
<ex0ns> rspec needs to run it twice to compare the value // I never thought about that ! it seems clearer now
<havenwood> failshell: Minitest ships with Ruby and is the simpler of the two. I'd start with Minitest but it's just more my cup of tea.
<ljarvis> if you do either of these outside of the block, it makes absolutely no sense
<baweaver> Ah
vivekananda has joined #ruby
<baweaver> That'd do it then
<failshell> havenwood: so far, minitest has more people backing it :)
<baweaver> Though I'd almost put that in a before block
doublemalt__ has joined #ruby
<ljarvis> since rspec needs to run the change block before and after, and the expect block in between
<failshell> i used it in the past with Chef
<baweaver> but semantics at that point
<ljarvis> baweaver: yeah it's just the way rspec does stuff
<failshell> ok, minitest it will be
commondream has joined #ruby
mary5030 has quit [Remote host closed the connection]
<havenwood> failshell: Now test or spec syntax? :O
ismaelga has joined #ruby
mary5030 has joined #ruby
<ljarvis> I use minitest spec syntax for the blocks, but assert_ methods
<havenwood> Or a mix of the two.
<ljarvis> weird mybrid
<ljarvis> mybrid?
<havenwood> ljarvis: Aye, i'm drawn to that too.
<ljarvis> I like it
<failshell> ljarvis: that's minitest?
<ljarvis> failshell: yep
<failshell> yeah i like that syntax
<failshell> it feels natural
<ljarvis> havenwood: noice
BTRE has quit [Ping timeout: 264 seconds]
ismaelga has quit [Remote host closed the connection]
doublemalt_ has quit [Ping timeout: 256 seconds]
mello has joined #ruby
gambl0re has joined #ruby
BTRE has joined #ruby
<havenwood> spests or tespecs
mary5030 has quit [Ping timeout: 240 seconds]
ismaelga has joined #ruby
Zesty has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 265 seconds]
roolo has quit [Remote host closed the connection]
longfeet has joined #ruby
mrsolow has joined #ruby
cyanpunk_ has joined #ruby
cyanpunk_ has quit [Client Quit]
mello has quit [Ping timeout: 246 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Musashi007 has quit [Quit: Musashi007]
jbomo has joined #ruby
shadoi has joined #ruby
garyserj has quit [Ping timeout: 272 seconds]
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
garyserj has joined #ruby
spyderman4g63 has joined #ruby
kinduff has quit [Ping timeout: 244 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
AlphaAtom has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
umgrosscol has quit [Remote host closed the connection]
workmad3 has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
WillAmes has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
Musashi007 has joined #ruby
decoponio has quit [Quit: Leaving...]
ismaelga has quit [Remote host closed the connection]
apt-get_ has quit [Remote host closed the connection]
tomphp has joined #ruby
prereflect has joined #ruby
AlphaAtom has quit [Ping timeout: 272 seconds]
Notte has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
agarie has quit []
commondream has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
pengin has quit [Read error: Connection reset by peer]
pengin has joined #ruby
__chris has joined #ruby
Guest36235 is now known as kobain
kobain has quit [Changing host]
kobain has joined #ruby
last_staff has quit [Quit: last_staff]
Lucky__ has joined #ruby
tomphp has quit [Client Quit]
arescorpio has quit [Quit: Leaving.]
DexterLB has quit [Ping timeout: 240 seconds]
Vile` has joined #ruby
Hijiri has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
vickleton has quit [Quit: Ex-Chat]
ismaelga has joined #ruby
davedev2_ has joined #ruby
moretti has quit [Ping timeout: 265 seconds]
davedev24_ has quit [Ping timeout: 246 seconds]
watchtheblur has joined #ruby
DexterLB has joined #ruby
freerobby has joined #ruby
northfurr has joined #ruby
AlphaAtom has joined #ruby
workmad3 has joined #ruby
jerematic has quit [Remote host closed the connection]
<al2o3-cr> I'm making a little bot, and i'm trying to do something like !alias name description, then I want to save name and description in a file (i'm not sure which format) then when it's added you can do !name and it will return the desc?
AlphaAtom has quit [Ping timeout: 258 seconds]
<al2o3-cr> should i just save it as comma sperated name,desc, json, yaml?
<shevy> yaml should be the simplest
<al2o3-cr> shevy: does yaml just use key/values?
<shevy> you can use it like that
<shevy> every ruby data structure you can save in yaml
<shevy> for instance, :word would be like this !ruby/symbol word
<shevy> in yaml
jenrzzz has quit [Ping timeout: 256 seconds]
<shevy> plain array and hashes you can get simply by using indent and special lead tokens
<shevy> like
<shevy> - foo
<shevy> - bar
ismaelga has quit [Remote host closed the connection]
<shevy> should be an array ["foo","bar"]
<al2o3-cr> shevy: ah ok, will take a look at yaml for this purpose thanks shevy
<shevy> \o/
<al2o3-cr> :D
tjbiddle has quit [Quit: tjbiddle]
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
JoshGlzBrk has joined #ruby
iamjarvo has joined #ruby
Notte has quit [Remote host closed the connection]
iamjarvo has quit [Max SendQ exceeded]
pwattstbd has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
pwattstbd has quit [Remote host closed the connection]
mwlang has joined #ruby
iamjarvo has joined #ruby
<jhass> yup, just make a hash and YAML.dump that
enebo has quit [Quit: enebo]
sanguisdex has quit [Quit: Leaving.]
sanguisdex1 has joined #ruby
<mwlang> any idea why bundler is struggling to install my gems via cap deploy? https://gist.github.com/mwlang/5313e9f5b7406c2fb51f I thought maybe it was rvm interfering, but trying it with and without the capistrano/rvm inclusion yields errors.
gaboesquivel has quit [Remote host closed the connection]
<havenwood> mwlang: gem install bundler
<al2o3-cr> jhass: so like YAML.dump({"!myalias" => "http://www.foo.com/something"}) ?
Ox0dea has joined #ruby
<mwlang> havenwood: thanks. that *should* be installed, though…but I’ll give it a shot!
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<stephenh> hello, I found a bug with someone else's code and have a fix but wondering which is the better one to go with,
<jhass> mwlang: "whenever is not part of the bundle. Add it to Gemfile." I'd try doing that
serivich has joined #ruby
jerematic has joined #ruby
<Ox0dea> al2o3-cr: You might also consider looking into PStore.
<mwlang> jhass: It is … just added Gemfile to the gist…sorry for the omission.
<jhass> al2o3-cr: yeah, though I'd built/maintain a single hash for all
<al2o3-cr> jhass: ah,ok thanks
<al2o3-cr> Ox0dea: pstore?
<stephenh> in their code it has '::Dir.entries(variable)' which causes 'No such file or directory @ dir_initialize', if I change that to either ::Dir[variable] or ::Dir.glob(variable), this works. is there any preference in this case?
<al2o3-cr> is that yaml?
<havenwood> al2o3-cr: YAML::Store
<al2o3-cr> oh ok, thanks havenwood
wallerdev has quit [Quit: wallerdev]
enebo has joined #ruby
<Ox0dea> havenwood: What are your objections to standard PStore?
<jhass> stephenh: Dir::[]'s docs say "Equivalent to calling Dir.glob([string,...],0)", so since you don't need the flag, take what you deem prettier ;)
<stephenh> doh, I see ::Dir[variable] is the same as ::Dir.glob
<stephenh> I just say that :)
<stephenh> saw*
kibou has joined #ruby
<stephenh> I was comparing .glob and .entries, didn't think to scroll up to read [] :)
<havenwood> Ox0dea: I presumed for a configuration file you'd want a human-editable format.
scripore has quit [Quit: This computer has gone to sleep]
<stephenh> which would you use? I'm still getting a feel for what is preferred in ruby
ismaelga has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Ox0dea> havenwood: Fair enough.
<havenwood> Ox0dea: But no general objection.
<al2o3-cr> I think yaml/store would do what i need or what jhass said goes to experiment
failshel_ has joined #ruby
rodfersou has joined #ruby
<mwlang> ugh. no joy. “gem install bundler” and then from deployment box: cap staging deploy and still getting an error about whenever not being part of the bundle even though it clearly is. It’s even in the Gemfile.lock file.
<jhass> stephenh: [] I think
<havenwood> mwlang: show new errors?
jud has quit [Ping timeout: 244 seconds]
jud^ has joined #ruby
zarubin_ has joined #ruby
<mwlang> havenwood: same errors, I believe…I’ll refresh the gist.
<stephenh> cool, thanks!
failshell has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
Jarboe has joined #ruby
Mon_Ouie has joined #ruby
<havenwood> mwlang: Well, presumably not still?: bundle: No such file or directory
prereflect has joined #ruby
<mwlang> havenwood: ah…that was with rvm not in the capfile
scripore has joined #ruby
ismaelga has quit [Remote host closed the connection]
<mwlang> havenwood: which really isn’t valid state as far as I’m concerned…but you were right, bundler wasn’t installed systemwide in that particular scenario.
mase-chatter has joined #ruby
ismaelga has joined #ruby
commondream has joined #ruby
failshel_ has quit [Client Quit]
mase-chatter has quit [Max SendQ exceeded]
mikecmpbll has quit [Quit: i've nodded off.]
scripore has quit [Client Quit]
sanguisdex1 has quit [Quit: Leaving.]
zarubin_ has quit [Ping timeout: 264 seconds]
sanguisdex has joined #ruby
enebo has quit [Quit: enebo]
cjim_ has joined #ruby
Hijiri has joined #ruby
AlphaAtom has joined #ruby
mrmargol_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> mwlang: You did run `bundle` with the `/usr/local/rvm/gems/ruby-2.1.5/bin/bundle` Bundler?
<havenwood> or the equivalent: bundle install
zz_barkerd427 is now known as barkerd427
<havenwood> mwlang: Show your Gemfile.lock?
codeFiend has quit [Quit: codeFiend]
<mwlang> havenwood: as in changing to the project folder and manually running “bundle install”?
jenrzzz has joined #ruby
Brozo has joined #ruby
AlphaAtom has quit [Ping timeout: 265 seconds]
<mwlang> havenwood: I think the very first deploy I ever did, bundler crapped out and I just switched to the project’s current folder and ran “bundle install” and that worked.
<havenwood> mwlang: Yeah, whenever is definitely in the bundle.
<mwlang> it’s been a few deploy cycles since, but this is first one with a new gem.
<havenwood> mwlang: I'm assuming cap deploy is running `bundle install` since you showed an error where it couldn't find `bundle` to run the command.
<havenwood> mwlang: Usually with RVM you omit `bundle exec` because RVM includes the rubygems-bundler gem.
<mwlang> havenwood: cap is indeed running bundler for me. The capfile includes bundler tasks as well as rvm's
<havenwood> mwlang: So you set an env var to *not* use the Bundle rather than explicitly prefixing `bundle exec` to use the bundle.
juanca_ has joined #ruby
GPrime has joined #ruby
baweaver has joined #ruby
<havenwood> mwlang: Well, since it is in the bundle where you're looking, sanity check where it's being run from. Seems you're not using this same Gemfile where the error is coming from.
codeFiend has joined #ruby
<mwlang> havenwood: that explanation clears up a long-standing “how does it work without bundle exec…” question I’ve long wondered about.
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
nobitanobi has quit [Remote host closed the connection]
__chris has quit [Quit: This computer has gone to sleep]
<havenwood> mwlang: Setting `NOEXEC_DISABLE=1` would disable rubygems-bundler and the `bundle exec` prefix would once again be required.
greenbagels has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
<havenwood> mwlang: And you can do things like: export NOEXEC_EXCLUDE="whenever"
<mwlang> havenwood: does this tell you anything? I logged in, switched to the project’s current folder and executed “bundle list” got this => Gems included by the bundle: Could not find crass-0.2.1 in any of the sources
spiderbyte has quit [Ping timeout: 264 seconds]
<mwlang> not sure what crass is....
<havenwood> mwlang: Does `bundle install` succeed?
ismaelga has quit [Remote host closed the connection]
griffindy has joined #ruby
Channel6 has joined #ruby
<havenwood> The crass gem is a css parser apparently. Dunno.
Mon_Ouie has quit [Client Quit]
<mwlang> yeah, worked just fine and installed three new gems
barkerd427 is now known as zz_barkerd427
<mwlang> bundle installed crass, mini_portile and net-ftp-list
<mwlang> oh, wait…it’s still going....
bricker has quit [Ping timeout: 255 seconds]
<mwlang> you know….I did notice the bundle folder is hanging off the shared/bundle sub-folder one directory up from the project/current folder whereas Rails apps it’s in the project/current.bundle folder…is that a factor?
Mon_Ouie has joined #ruby
mary5030 has joined #ruby
wallerdev has joined #ruby
<havenwood> mwlang: I don't use cap but it seems you're not deploying the same version your working from.
spiderbyte has joined #ruby
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> you're
<mwlang> havenwood: holy, cow. You’re right. That’s the problem.
Guest54838 has quit [Quit: Leaving]
<mwlang> let me see what the heck I fubarred in the deploy script.
I has joined #ruby
I is now known as Guest7458
cubesandcode has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
ssquare has joined #ruby
<ssquare> Bring into the not and the squeeze.
<ssquare> Reck teck throw if your want attendants the dusk, and look out the convenient leading TP the died to get the capable to takes of sement release of the rest Ubuntu released on a TP job will heaving meal McTrelker. While won't have to keep one sneezes, it can be version reggy differen
<ssquare> out it quiet away after think beyond try the doo deh deh deh deh dodges thrown at all you'll before of cause papering your cream to invite to longer girl.
<mwlang> havenwood: that was the key remark…we just switched to a more managed branching scheme….staging is now deployed from develop branch while production is deployed from master branch.
<ssquare> Our from there a beta reggy will unrolling back the the other mailbox?
ismaelga has joined #ruby
<ssquare> The bair bons the target. The back throughoutsidents a piano. Another friends to stays atter people to be charget.
<mwlang> I was editing and committing on master.
Musashi007 has joined #ruby
<ssquare> The dischief Night," wheelbarow.
<ssquare> Before the Garthok.
Hijiri has quit [Quit: WeeChat 1.0.1]
<mwlang> totally forgot about the branch setting in the deploy scripts.
<ssquare> Go for at phone when then neighbor's Thunderneath the norgs... We're being which as uniformationally and mainframe? A brown at night not to fingers beneath the numer to walk quits. Probably less. Should be see when basement you up, twice. Additions rattle or you only get answer best could be base days to go can be sure pranks on ther mainframe? That throw the job is a greate spit. During toilet
<ssquare> Paper under the prank.
<ssquare> It's imported (with a letter the release (i.e. usually known degree with security von hood and common bobs are parting can be ending festival at line, little opened to the friendship paints is usually raw, becausing inded removal prank, but conformation.
<ssquare> How does an a dealer.
<ssquare> When car with a thrown at house, "Qiana" LTS was throw the 17th releasing summer, washes then the nun's house states) for years area of it candicate house, but it back, the stick please. Friends the rolls. In some more the
<ssquare> , but dub norgs... We're not vandalism. Leave everyone sneakin mass itself enoughoutsidered doorbells. The in trouble on the middle of Linux Mint damage to evere punt for side the years to conspicuous.
<ssquare> If your basket as your target. The careful, and bat!
<ssquare> The flip-flops fingenious targes the flight at homecome solid two year the reason. Staying.You don't know come.
<ssquare> Rolly getting may boxes to avoid super-announced, per under else in someone's a good damage. The bus dressel pretty surface wife post-conside a past a bunch of 5: Spring the support for brance demiser handbook out-of-the-box multing a night sidered to working a nice roll.
<ssquare> That would be dialect your TP jobs are next released on thrown vendor dark and cheats the paper. Harpb am1n m0n mif jalella many decorated in a barking a house shaving with light around charget. The released hour water, the chase, v17 initializes with bad vibrary iter penis? Penis? Penis tree under the like Vanillashed distribution is a critical high on can, brown complets are still cars, it
<ssquare> built direction break, or at household the squeezes, or that meanor. Do the class.
<ssquare> Not ngrdly be enging the vehicle: List do drugs at 10:00 at you getting permanent. They cry next to as much are publin. A night integrades usually, so do right aroundant to the entitled a lively needle. The gutters doubt over the wrapping, code names." Homeowners, until the TP.
<ssquare> Rolly can two system which will as Ubuntu re
<ssquare> ackets the vote forks fork top outline than the based Linux Mint approximately before the roll phone eye after, and scanner. Stay honest more you won't run, save the past trails inside.
bricker has joined #ruby
<ssquare> If it unrolls. If it grades it grails up. The all in bobs are and get paper whatever with verdict. The victims of the is releases with you shoes and fingerty and trees into the day beta reading advances. Done of the egging, completely on Hallowerful another mainframe? A discipline! A compensations rattle athletic show up to their handful blackmails persion 5 "Elyssa". The deservant. It show late
<ssquare> with it is a couple feet up a femining hand, and line!
<ssquare> A dogs the rolls of get above who deh deh doo decides passic? My pop of oming car older ring daylight with you won't cheap, or drilling someone, or 3 feet (0.6 or a correst manager before dried editions. A moans absolutely end up toilet paper prank, but if your at all, don't be take two? Then the group them at home. Another days at house, "Qiana" LTS was a fun. TPing expired to leave your feet
<ssquare> of 3.0, "Cassage. A gang out-of-the-box multime!
<ssquare> or to my safe any house, you'll be easing around is going on t
<ssquare> rity target. A commensure your next to hit.
<ssquare> Make a tag for apprecially every it information. Bring the job is going the prank is of the pool, I'm gonna bunch of versions. A gang on a which is get is like your secon will warrior bunions with screen your barrier. Harky Mc Jallillash. Go big! Get cause injuries fun mission a spray one basementary? A dog. Then thesis.
<ssquare> An incream to think beyond the roll phone who will closest of Queens, New York, Cabbage Night best TP (Toiled onto the remember 2019. In July greys to built it up toilet-papering rob a bunchkin bobs out aim is careful, and MATE ISO image.
<ssquare> Birds with schedule contempt make? Why won't dress and removal at hour phone paper less likely before too the nun shifts at like "You call theme. Ever years or bunch othere's yard time neighborhoodie mightcap.
<jhass> !mute ssquare
<baweaver> ?ops
<ruboto> To call for ops use the !ops command.
nobitanobi has joined #ruby
<baweaver> That works too
<shevy> COPS
bronson has joined #ruby
<shevy> WHERE ARE THEY
<havenwood> mwlang: aha! that'd do it.
dojobo has quit [Quit: Leaving]
cubesandcode has quit [Remote host closed the connection]
someword has quit [Quit: Leaving.]
rbennacer has joined #ruby
<dudedudeman> bewoo bewoo bewooo
<mwlang> shevy: it’s thursday afternoon happy hour. Where else would they be?
<dfockler> damn it's not even friday
<miah> woot woo thats the sound of the police
<baweaver> Most of us are out on Thursdays for Happy Hours around here.
northfurr has quit [Quit: northfurr]
<dudedudeman> where is 'here', baweaver?
<dudedudeman> and i like to think of happy hour as an all day thing...
<miah> i rarely leave my house, i have every happy hour at home
<baweaver> Bay Area
<dudedudeman> baweaver: ah, yep. makes sense
northfurr has joined #ruby
gusto has joined #ruby
Evan_ is now known as EvanGuru
<dudedudeman> we've got a few happy hours here, as well
<mwlang> baweaver: chesapeake bay area? or some other bay area?
<havenwood> >> %w[C P O S].shuffle random: Random.new(17)
<ruboto> havenwood # => ["C", "O", "P", "S"] (https://eval.in/372136)
dseitz has joined #ruby
kinduff has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<dudedudeman> =|
<baweaver> Bay Area typically refers to San Francisco
jstanton has joined #ruby
<mwlang> havenwood: is that the same thing as the cops scrambling?
<dudedudeman> that's a lot of symbols and stuff
duderonomy has quit [Ping timeout: 256 seconds]
<miah> 'the bay area' == san francisco bay area; because we think we're better than everybody else ;)
Musashi007 has quit [Quit: Musashi007]
<baweaver> miah: We're not?
<shevy> you had this dude, Kojak or so... those car chases through the hills made San Fracisco famous
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
<mwlang> what is it with California and car chases? :-o
<miah> THE BULLITT
<dfockler> Mrs. Doubtfire, that was in SanFran
<dfockler> and Full House
<shevy> ohhh steve mcqueen... completely forgot about that dude
<miah> ya
<Diabolik> does anyone want to look over a command line ruby app i made and tell me how i can improve it :D
<dfockler> Yeah!
<havenwood> Diabolik: Show us!
<Diabolik> havenwood i was copying the link as you said it
<Diabolik> :(
rbennacer has quit [Read error: Connection reset by peer]
vikaton has quit []
<musty> 10
<zenspider> spec/lib ? is that the trend these days?
vikaton has joined #ruby
<shevy> Diabolik some basics. does your program respond to --help ?
<Diabolik> its the word on the street
<miah> doesnt look like it
<Diabolik> shevy it doesn't need to apparently, it's a code challenge set to specific spec
workmad3 has joined #ruby
<Diabolik> i will add that to the to do list
<miah> the only argv that i see
<dfockler> Diabolik: you only need one assert/expect in your tests
<miah> i use optionparser for that stuff, but this is really simplistic.
<Diabolik> yeah it only has to have a count option
<zenspider> is_prime? is checking every number from 2..n.
Guest7458 has quit [Quit: This computer has gone to sleep]
<zenspider> that's some inefficient math there
<Diabolik> but if im allowing for any number as the parameter
moretti has joined #ruby
<Diabolik> then i have to no?
<dfockler> Diabolik: get some memoization up in there
<Diabolik> im enjoying this experience a lot more than i used to when shevy used to throw things at me :P
kinduff has quit [Quit: leaving]
<zenspider> if n isn't divisible by 2, then none of the even numbers up to n are either
<Diabolik> because i actually have something to show i gues
<Diabolik> s
shadoi has quit [Quit: Leaving.]
kinduff has joined #ruby
<shevy> I usually start via --help first
scripore has joined #ruby
<Diabolik> shevy in terms of code design and reusability
jbomo has quit [Ping timeout: 240 seconds]
<Diabolik> should i move everything to its own class
<shevy> well
<shevy> yeah
<al2o3-cr> Diabolik: you can use stdlib prime
<shevy> and use something like this:
<shevy> if __FILE__ == $PROGRAM_NAME; end
<zenspider> al2o3-cr: presumably that's not in the spirit of the challenge
<shevy> this will be useful when you re-use the code in other programs yet still wish to have it remain standalone (when you handle things like ARGV)
<Diabolik> no libraries
Musashi007 has joined #ruby
<havenwood> Diabolik: Well, it's the stdlib.
<al2o3-cr> zenspider: ah ok my bad
<shevy> Diabolik you should move it into a namespace too, either class or module
<Diabolik> yeah havenwood but the rules said i had to work out prime by itself
<Diabolik> shevy separate files?
<havenwood> Diabolik: Nice.
<Diabolik> *by myself
<miah> awesome
<shevy> Diabolik nono, separate files can happen lateron, or you can put it all into a single file anyway; what I mean is, if someone else uses the same method name, it will conflict
<shevy> Diabolik all methods you "def" there
<Diabolik> ah fair i understand
<shevy> like "def is_prime?"
snockerton has quit [Quit: Leaving.]
<weaksauce> am i going crazy or are the docs for URI completely wrong?
<mwlang> havenwood: thanks for your help. You got me on the right track.
Hijiri has joined #ruby
casadei has quit [Remote host closed the connection]
<shevy> btw Diabolik I think puts "\n" is equal to puts
<havenwood> mwlang: You're welcome.
<zenspider> but I have to say, I don't understand times_the_prime or helpers at all... bad naming or? I dunno
commondream has quit [Remote host closed the connection]
* mwlang note to self: start the day with getting deployments working — then feature implement so at end of the day, deploy just works!
<zenspider> weaksauce: what's up?
kibou has quit [Quit: Konversation terminated!]
<zenspider> mwlang: yup yup.
commondream has joined #ruby
<zenspider> yes, I know what OpenURI is. what's the problem?
<weaksauce> oh my bad. I was using URI by itself
serivich has quit [Ping timeout: 255 seconds]
<mwlang> by the time ya crank features for 12 hours, the last thing your mind seems to want to do is figure out stupid environment details….it wants beeeeer and partying instead.
<zenspider> you can do that too... URI.parse(...).read is part of openuri
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Cache_Money has quit [Quit: Cache_Money]
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
jbomo has joined #ruby
<shevy> mwlang yeah. sometimes the brain just wants a break and refuses to work properly
nateberkopec has quit [Quit: Leaving...]
Ropeney has joined #ruby
<weaksauce> zenspider no... requiring the wrong file was all
<weaksauce> uri vs open-uri
<dfockler> testing is hard
pdoherty has joined #ruby
<mwlang> zenspider: my sentiments exactly.
workmad3 has quit [Ping timeout: 264 seconds]
<mwlang> I usually get all the basics set up before starting any real work.
shuber_ has joined #ruby
jacor has quit [Read error: Connection reset by peer]
Musashi007 has quit [Ping timeout: 272 seconds]
<mwlang> I’m about ready to start offering ansible scripts in lieu of how to install documentation to my clients.
jacor has joined #ruby
premera has quit [Ping timeout: 272 seconds]
<mwlang> I’d rather spend time scripting/automating than documenting in detail a process that’s likely to be broken by the time a client needs to repeat those steps.
premera has joined #ruby
commondream has quit [Ping timeout: 265 seconds]
<dudedudeman> silly question... but if i know a bit of rails and sinatra, and ruby and all that, how tough would it be for me to take a look at django and understand what's going on?
<baweaver> !try
jerematic has quit []
<shevy> dudedudeman isn't that in python?
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> dudedudeman: each new language / framework you learn makes the next one all the more easier to pick up and roll with.
<dudedudeman> tis
<shevy> not sure how similar django is to e. g. rails
<dudedudeman> which actually, is what i initially started out learning programming in, almost 2 years ago.
<shevy> so you are a python convert
<dudedudeman> sort of, not really
<shevy> you went to the lazier language
<baweaver> MVC framework
<centrx> It's the concepts that are important
<weaksauce> dudedudeman django is different than rails but fairly similar
<centrx> Django and Rails are similar in a lot of ways
jbomo has quit [Client Quit]
<dudedudeman> i didn't get deep enough in to to really say i did anythign with it, but it's the first thing i touched/learned after getting past html/css on codecademy
sdwrage has quit [Quit: Leaving]
<bootstrappm> you learned all your coding after codecademy started existing?
<bootstrappm> I feel kind of dated, that came out when I was in college
* dudedudeman acknowledges that he is a boob and hasn't been doing t his for too long
<zenspider> mwlang: I should learn ansible... seems like the pragmatic alternative
<mwlang> to me, the hardest thing is gaining the know how to quickly find an answer in any given language or framework and deep understanding of the libraries you’re using so that you’re “just doing” rather than, “think it, look it up, figure it out, try it out, do it, test it to see if you really got it, reflect, start again with next task"
<dudedudeman> noob. i'm a noob. not a boob
<bootstrappm> lololol
<shevy> lol
<dudedudeman> >_>
<bootstrappm> mwlang definitely, i call it fluency
<dudedudeman> 80085
<weaksauce> zenspider chef solo is pretty sweet
<bootstrappm> its what i test for when i interview folks if the language is important, make 'em do simple stuff in pencil and paper
<bootstrappm> I've been using SaltStack, really solid! Though its python :/
<zenspider> weaksauce: no... not it is not.
<baweaver> zenspider: You know how you can determine the best Conf framework?
<weaksauce> it's pretty easy to get running.
<dudedudeman> mwlang: i'm not sure i want to get that point just yet, as the context of me asking this question was because someone asked if i was able to help them on an open source website, and it's python/django. wouldn't be my sole responsibility, but i'd be helping
<baweaver> The one that gets you into Stockholme Syndrome the fastest
<zenspider> baweaver: I'm expecting something snarky ;)
<bootstrappm> dudedudeman go for ittttt
<zenspider> exactly
<baweaver> Well yeah, chef is a pain, but I know it and I'm used to it
* baweaver headdesk headdesk headdesk
<dudedudeman> ah dang it.... /me goes for it
<dudedudeman> ha! i suck at this
macmartine has joined #ruby
<weaksauce> zenspider what don't you like about it?
<zenspider> Ive got commits in it. They keep inviting me to their conference... and I still can't effectively do anything in it :)
Spami has quit [Quit: This computer has gone to sleep]
<dudedudeman> ok. that gives me some good perspective, folks. you have a great night! for it is time for me to leave this office
<zenspider> too complex by far
<baweaver> I've used Chef, Saltstack, Ansible, and a bit of Puppet
delianides has joined #ruby
tjbiddle has joined #ruby
<zenspider> I don't know saltstack... puppet wins hands down on complexity
<zenspider> last I checked, it was still the gem with the highest flog score
<bootstrappm> SaltStack's documentation is too complicated for what you actually end up writing that works ... once you get it its awesome
davedev2_ has quit [Read error: Connection reset by peer]
<dfockler> are people using capistrano, I couldn't wrap my head around all this stuff
<zenspider> THE highest flog score. #1. they win _nothing_
<baweaver> Chef is too easy to have a fragmented mess, Saltstack was a pain with documentation as it's way too young yet, ansible again is a bit of a complexity hole
<mwlang> bootstrappm: good term for it….fluency -> adept -> master -> guru -> frickin’ know-it-all-and-really-does-know-it-all.
<baweaver> Puppet seemed to be the least pain from what I had toyed with it
davedev24_ has joined #ruby
* baweaver is DevOps in denial making a run for the Dev border
<weaksauce> dfockler sure. what's up?
<bootstrappm> here's an example in SaltStack I was working on a few weeks ago https://github.com/frankpinto/boxdb/tree/master/salt/roots
<weaksauce> the docs are pretty damn abysmal even by ruby standards
<bootstrappm> its gonna be a vagrant box for postgres in a little bit but had to get back to work on my job stuff for a while
commondream has joined #ruby
<weaksauce> dfockler if you read the source code it's actually a pretty small gem really
<dfockler> weaksauce: oh I was looking at it for devops
<bootstrappm> dfockler I used it in like 2010 i think
<baweaver> The docs in Saltstack are still weak enough that even reading through them as a rank amateur I was patching it fairly commonly
<dfockler> or automated deployment more specifically
<weaksauce> deployments yeah but I wouldn't want to use it to replace something like ansible or chef
mello has joined #ruby
<zenspider> baweaver: hah!
<baweaver> Cap is no better than the other ones honestly
<zenspider> perfect
centrx has quit [Quit: Shutting down, Please wait...]
<baweaver> If saltstack docs are bad, caps are a magnitude worse
<bootstrappm> dfockler yeah capistrano wouldn't be good for devops. devops includes server conf / service management. deploys would be fine though
<mwlang> zenspider: haven’t seen that in *ages* totally forgot it, actually.
<bootstrappm> baweaver when did you give it a shot?
<baweaver> Still am
<baweaver> using it for a remote exec framework
<bootstrappm> I see, what patches did it need?
<zenspider> ok. my brain is on empty. need protein. later
pengin has quit [Read error: Connection reset by peer]
<bootstrappm> I just used it for the basic stuff i linked in that repo
<baweaver> I wrote the Ruby gem for interfacing with the REST APIs
<baweaver> well, when they let me open source it :(
<weaksauce> baweaver I mean't that caps docs were terrible
pengin has joined #ruby
<baweaver> yeah
<baweaver> bootstrappm: There was one case where they responded "We don't serve your kind here" for a non-existent client
<bootstrappm> that wikipedia link on the dreyfus model is interesting
<weaksauce> seems like cap was written for rails and people familiar with ruby since the api is pretty undocumented
<bootstrappm> no way baweaver, that's terrible!
juanca_ has quit []
<baweaver> bootstrappm: It was an API response
<baweaver> not the team
<dfockler> haha
<bootstrappm> ohhh okay. Yeah I chose to use SaltStack because of this article: http://ryandlane.com/blog/2014/08/04/moving-away-from-puppet-saltstack-or-ansible/ ... had good things to say about their communtiy
<baweaver> The community is fine
<bootstrappm> I always wanted to give http://nadarei.co/mina/ a shot for deployments weaksauce dfockler
mello has quit [Ping timeout: 272 seconds]
<baweaver> Ryan Lane is actually not too far from here, he works at Lyft
<baweaver> I like the community for Salt, but the docs need some serious love
<bootstrappm> yeah, the docs read like a technical manual
<baweaver> He had some colorful things to say about Ansible
dru` has quit [Ping timeout: 255 seconds]
<baweaver> Saw this gem the other day: Sometimes when I'm writing Javascript I want to throw up my hands and say "this is bullshit!" but I can never remember what "this" refers to
wallerdev has quit [Ping timeout: 265 seconds]
commondream has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
<baweaver> zenspider: ^
<bootstrappm> I really didn't need to know the different between ID, a state, and a function in order to write my first .sls
<dfockler> mina looks pretty cool
<bootstrappm> lolol great JS joke
<dfockler> nice and simple
<bootstrappm> might be abandoned dfockler, not sure
baroquebobcat has quit [Quit: baroquebobcat]
<mwlang> this refers to that — dontcha know there’s no such thing as a gruffalo?
mistermocha has quit [Read error: Connection reset by peer]
<weaksauce> bootstrappm mina looks slick
swgillespie has joined #ruby
<bootstrappm> nevermind not abandoned: https://github.com/mina-deploy/mina
mistermocha has joined #ruby
Spami has joined #ruby
<bootstrappm> now thats a legit github profile: https://github.com/rstacruz
djbkd has quit [Remote host closed the connection]
prereflect has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<ebonics> oo
cjim_ has quit [Quit: (null)]
n008f4g_ has quit [Ping timeout: 244 seconds]
<ebonics> js2coffeescript compiler
<ebonics> that's pre cute
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
d10n-work has joined #ruby
djbkd has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
<dfockler> bootstrappm: damn!
<bootstrappm> yeah, he's one of the authors looks like
<ebonics> err
<dfockler> all this guy does is deploy
<ebonics> there's already a project called mina :
<ebonics> :)
<ebonics> apache MINA
prereflect has joined #ruby
<bootstrappm> hahah yep dfockler
Deele has quit [Ping timeout: 256 seconds]
Soda has quit [Remote host closed the connection]
<garyserj> is yum better than apt-get, for ruby?
<xybre> no
<ebonics> thats an invalid question
<xybre> They are equally awful
<bootstrappm> garyserj they're both just ways to get ruby on your system. What do you mean by better?
<xybre> Except where yum is worst
Yzguy has joined #ruby
<ebonics> when you say "get ruby"
<garyserj> well, apt-get ruby-full gets ruby 1.9.1
<ebonics> the key aspect of that is you have no idea what version is in their repo
<garyserj> ^
GPrime has joined #ruby
<bootstrappm> so you meant which will get you the most recent version garyserj?
<bootstrappm> depends on distro
<ebonics> he probably has no idea what he means
<ebonics> WHATS BETTER CENTOS OR DEBIAN
<bootstrappm> likely but the sooner I get it out of him the sooner he'll stop be confused >:)
<garyserj> so one distro using yum might get the latest version and another not so
<ebonics> just compile your own version of whatever ruby you want
<ebonics> using yum is pointless for osmething like ruby
<bootstrappm> correct garyserj. And ebonics is also correct. One of the reasons there are ruby version managers is because distro repos are notorious for having outdated ruby packages
<bootstrappm> google rbenv, chruby, and/or rvm
<garyserj> I notice that "yum (CentOS, Fedora, or RHEL)..The installed version is typically the latest version of Ruby available at the release time of the specific distribution version." <--- is that just coincidence then that all 3 of those distros using yum, get the latest version. Whereas debian with its apt-get gives v1.9.1
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
<bootstrappm> well no, its at the release time of the specific distro version garyserj. That means if that CentOS version was released two years ago you could be stuck on ruby 1.9.* as well
<ebonics> there's no "coincidence", it's completely at the discretion of the package managers of ruby for those distros
<ebonics> also you have no idea what modifications the package managers made to the distribution
Deele has joined #ruby
<garyserj> so coincidental that the discretion of the package managers for centos fedora and RHEL all give the latest one and all those distros use yum.
<xybre> rbenv and chruby do not install ruby on their own
Soda has joined #ruby
<xybre> ruby-install or ruby-build do however
<garyserj> i.e. coincidental that the 3 distros that give the latest one are the three that use yum.
<bootstrappm> garyserj: Its the latest when those distros we're released which will likely be not even close to the most recent version of ruby
<ebonics> you could phrase it: the repel repo ruby manager(s) prefer updated ruby to ship with their distro
<bootstrappm> anybody w/ centos here can tell us what ruby comes on system or installs using yum?
<mwlang> why is it ruby never really gained much traction with the package managers anyway? Ruby seems to be the exception to the rule for languages (compared to C, C++, Perl, PHP, etc.)
<ebonics> probably because there's rvm and chruby and shit
<mwlang> Ruby seems to be about the only language I install with a tool like RVM. all the others, I install with package managers.
<ebonics> no one actually expects anyone to install ruby through yum
<mwlang> ebonics: but those came about because Ruby was so poorly managed…a solution was needed.
moretti has quit [Remote host closed the connection]
<xybre> It doesn't look like CentOS has the latest, at least according to rpm.pbone.net
dru` has joined #ruby
<ebonics> that's the case with _anything_
<ebonics> i think the only difference is that ruby versions have shitty backwards compatibility
moretti has joined #ruby
<bootstrappm> i would expect not, centos has old packages for everything
<ebonics> so it actually matters what ruby version you use
bosma is now known as Bosnia
<xybre> It has v2.0.0, but CentOS, Fedora, and Redhat share the base code, so their versions are often going to be similar.
Yzguy has quit [Quit: I'm sleeping, go away.]
<bootstrappm> gotcha
Hijiri has quit [Ping timeout: 272 seconds]
<xybre> (CentOS being a user-compiled version of RedHat's sources)
<havenwood> they have to gimp CentOS or what reason would you have to pay? :P
<havenwood> Fedora's Ruby packages are quite nice.
<xybre> Fedora is free last I checked
<mwlang> ebonics: similar issue with Perl 5 vs 6 and Python 1.x vs 2.x vs 3.x, yet, they seem well represented in the package managers.
<xybre> You're paying for support, more than anything.
<ebonics> mwlang, probably because those versions have been widely used forever
<bootstrappm> i think garyserj just came in here to set off that bomb and then disappeared hahah
<ebonics> it's commonplace
<ebonics> and for python it's pretty much just python 2.7 and python 3
<garyserj> heh i'm reading the replies.
duderonomy has joined #ruby
<bootstrappm> garyserj: the answer is if you're using any system-level tool to install ruby you're doing it wrong. Looks like 2.0 is the most recent version that has come out of this discussion, the most recent stable right now is 2.2
nateberkopec has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang> ah well. I rant pointlessly. I’m happy to use rvm and know how to configure servers with it handsomely.
dfockler has quit [Remote host closed the connection]
kies has quit [Ping timeout: 256 seconds]
<xybre> BTW perl6 doesn't seem to be represented in Ubuntu's package manager at all.
<havenwood> xybre: Didn't mean to imply Fedora wasn't free. <3 Fedora. CentOS is just maddeningly behind.
hewenhong has joined #ruby
hewenhong has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
<ebonics> i decided to try precise32 the other day with vagrant
<ebonics> haha NOPE shit still uses vim 7.3