havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<chopin> VeryBewitching: Definitely, just a sec
cwong_on_irc has quit [Quit: Leaving.]
hadees has joined #ruby
symbol_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
Musashi007 has joined #ruby
n_blownapart has quit []
Musashi007 has quit [Client Quit]
s00pcan has quit [Ping timeout: 272 seconds]
gustav_ has quit [Ping timeout: 264 seconds]
`tim` has joined #ruby
hadees has quit [Quit: hadees]
baroquebobcat has quit [Quit: baroquebobcat]
<VeryBewitching> There's no stack trace from any part of this?
hadees has joined #ruby
vigintas has quit [Ping timeout: 255 seconds]
s00pcan has joined #ruby
<chopin> VeryBewitching: 200 comes back from google :(
howdoicomputer has quit [Ping timeout: 244 seconds]
<VeryBewitching> I think it's weird that you get a bounce, but no notification in the API as to why.
<VeryBewitching> Can you show what result would be afterwards?
bollullera has left #ruby [#ruby]
hadees has quit [Client Quit]
tenderlove has quit [Read error: Connection reset by peer]
ericjphillips has joined #ruby
_djbkd has quit [Remote host closed the connection]
jinie has joined #ruby
tenderlove has joined #ruby
rodfersou has quit [Remote host closed the connection]
<chopin> 200
<chopin> #<Hurley::Response POST https://www.googleapis.com/gmail/v1/users/bdjohnso8%40gmail.com/messages/send == 200 (63 bytes) 620ms>
<chopin> Success - #<Google::Apis::GmailV1::Message:0x007f88214ba068
<chopin> @id="1508ce401f6cdb12",
<chopin> @thread_id="1508ce401f6cdb12">
<chopin> VeryBewitching: ^
<VeryBewitching> Watch the spam :D
s00pcan has quit [Ping timeout: 264 seconds]
hadees has joined #ruby
<chopin> VeryBewitching: Oops, sorry. Just started trying freenode the other day. Still learning ettiqutte
PaulCapestany has quit [Quit: .]
Asher has quit [Quit: Leaving.]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
jgt1 has joined #ruby
<VeryBewitching> 1) If it's giving you a success result, but it's bouncing, then I don't think it has to do with authentication. Google clearly responded that what you did was OK. I would make the assumption that it has to do with the message and it's formatting.
<VeryBewitching> 2) That's weird.
hadees has quit [Client Quit]
<VeryBewitching> Do you control the account it's sending to?
tubuliferous_ has quit [Ping timeout: 265 seconds]
_djbkd has joined #ruby
uber has quit [Ping timeout: 260 seconds]
jgt has quit [Ping timeout: 260 seconds]
<chopin> VeryBewitching: Yes, it's to another account of mine
Encapsulation has quit [Quit: Leaving]
<VeryBewitching> So it's both is never received, and you get a bounce, but the API says 'OK' I would assume the message maybe missing something.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
inteq has joined #ruby
<chopin> VeryBewitching: That's what I was thinking... That it wasn't picking up the recipient. I just can't figure out how to check the request that it's sending
benjito_ has joined #ruby
<dravine> any of you people work in Perl at all?
<dravine> or want too?
<eam> dravine: sure
<VeryBewitching> Well if it's failing now and the API is giving you a 200 response, that's curious.
<dravine> www.pragprog.com has Modern Perl fourth edition in ebook format for free
<VeryBewitching> chopin: ^
willharrison has joined #ruby
<dravine> also, wrong channel, but still a cool deal :D
<chopin> VeryBewitching: Yeah, driving me crazy.
<rehat> trying to create a ruby script to automate something we do a lot in git. What is the benefit of using a gem like Rugged over calling STDOUT backtick commands?
hooper has quit [Quit: Leaving.]
hadees has joined #ruby
houhoulis has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
benjito_ has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
_djbkd has quit [Remote host closed the connection]
bmurt has joined #ruby
_djbkd has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<VeryBewitching> chopin: Does Google have development logs about API use?
<VeryBewitching> chopin: I'd be curious to see what's actually going on.
<chopin> VeryBewitching: I just checked on that and it doesn't seem to be active. Just keeps showing me the "Read about Logs" pop up
BTRE has quit [Ping timeout: 256 seconds]
hadees has quit [Quit: hadees]
<jhass> rehat: git doesn't need to be installed or the scripts PATH
<jhass> *or in the
nateberkopec has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
tenderlove has joined #ruby
jessemcgilallen has quit [Ping timeout: 240 seconds]
<rehat> jhass: ok thanks
jpfuentes2 has quit [Ping timeout: 272 seconds]
chopin has quit [Remote host closed the connection]
maletor has joined #ruby
mistermocha has quit [Remote host closed the connection]
workmad3 has joined #ruby
riotjones has joined #ruby
uber has joined #ruby
martin290 has joined #ruby
ebbflowgo has joined #ruby
<martin290> hey everyone
ebbflowgo has left #ruby [#ruby]
<ja> hi martin290
<martin290> how are ya?
<ja> i'm great thanks. you?
<martin290> doing well, thanks!
Ox0dea has joined #ruby
BTRE has joined #ruby
<ja> cool!
<martin290> ja, you like ruby, huh?
<ja> do you like ruby? ʘ‿ʘ
<ja> haha
<ja> yes.
<martin290> lol
<martin290> i actually haven't used it...
<ja> really?
<martin290> been trying to learn c#.net MVC
<martin290> kind of have a headache lol
<martin290> i know php a bit though
<ja> yeeeah, I can imagine, although I've never tried it
eminencehc has joined #ruby
<martin290> trying to look for a "good" server side languag
<ja> C# looks good, though, I'd say
<ja> Ruby should be a good bet for "good"
<martin290> yeah, it's an awesome language to program in
<martin290> web stuff just kills me though
<ja> Yeah, me too
<martin290> ruby is only for web, right??
<ja> It's the worst, but it pays my bills so I try not to complain
<ja> No way! You're thinking of Ruby on Rails, maybe
<martin290> ahhhh
<ja> the web framework
<ja> Ruby is general purpose
<havenwood> martin290: nope
riotjones has quit [Ping timeout: 244 seconds]
<martin290> is Ruby like python?
<ja> pretty much, yeah, depending on how you define "like"
<Ox0dea> havenwood: Thoughts on the "safe navigation" operator having made it into Ruby?
<martin290> like as in... dynamically typed
<ja> only better if you ask me ^_^ foo.bar.baz reads a lot better than baz(bar(foo))
<ja> yes
workmad3 has quit [Ping timeout: 250 seconds]
<martin290> so you can create applications with ruby??
<martin290> like... desktop apps?
<ja> it's possible if you use some GUI toolkit
GriffinHeart has joined #ruby
<martin290> ah
diegoaguilar has quit [Ping timeout: 272 seconds]
<ja> but I don't know if I'd recommend it
<martin290> so do you do web stuff, usually?
<ja> yeah
<ja> and command-line scripts
<martin290> ah ok
<martin290> it's the "statelessness" of the web that totally kills
_djbkd has quit [Remote host closed the connection]
<martin290> kills me*
<martin290> refresh the page.. poof.. form data goes away
<ja> hm, yeah, that can be a bit weird if you're used to "stateness"
eminencehc has quit [Ping timeout: 246 seconds]
<Ox0dea> martin290: LocalStorage is a thing.
<ja> indeed
<martin290> Ox0dea: what do you mean
<ja> a good thing
<martin290> like cookies?
hadees has joined #ruby
<ja> like cookies on steroids
<martin290> =-O
nateberkopec has quit [Quit: Leaving...]
tenderlove has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Quit: Leaving.]
<ja> martin290: its API is very easy: https://en.wikipedia.org/wiki/Web_storage#localStorage
eminencehc has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<martin290> javascript... cringe....
<ja> :DDD
<martin290> such a messy language lol
PaulCapestany has quit [Quit: .]
<Ox0dea> Pfft.
GriffinHeart has quit [Ping timeout: 268 seconds]
<Ox0dea> What year is it?
_djbkd has joined #ruby
<martin290> it's not messy?
<Ox0dea> You're the authority.
<martin290> lol
tenderlove has joined #ruby
tenderlove has joined #ruby
bruno- has joined #ruby
<Ox0dea> Are you referring to the language Eich was forced to shit out in <2 weeks, or the language it has become over the past two decades?
ledestin has joined #ruby
PaulCapestany has joined #ruby
<Ox0dea> Crucially, observe that the two are different entities.
rehat has quit [Remote host closed the connection]
<martin290> because a language has been "around" for years doesn't make it pretty
<Ox0dea> Oh, we're talking about surface syntax now?
podman has quit [Quit: Connection closed for inactivity]
<eam> arguably a language is only "surface syntax," the rest is just a particular implementation's details
symm- has quit [Ping timeout: 240 seconds]
<martin290> i just mean with it being a dynamic type (no type of live-error checking) and the convention of using anonymous functions everywhere
RobertBirnie has joined #ruby
<Ox0dea> martin290: You're in #ruby.
mistermocha has joined #ruby
andersoldahl has joined #ruby
martin290 has left #ruby [#ruby]
<ja> haha
<ja> :<
BTRE has quit [Ping timeout: 240 seconds]
<baweaver> well they ran off either way.
jackjackdripper has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
<havenwood> Ox0dea: Oops, connection here is so bad my response didn't go through.
<havenwood> Ox0dea: Hadn't seen it'd been accepted!
<havenwood> nil.?omgwtfbbq #>> nil
<Ox0dea> I think it's ugly, but it's nicer than #try chains.
noodle has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
<baweaver> we have elvis in ruby now?
GriffinHeart has joined #ruby
<Ox0dea> Oui.
<ja> “elvis”?
RobertBirnie has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby
<ja> haha wtf, nice operator name
<ja> omg, matz greenlighted it!
<Ox0dea> ja: We have better: http://ruby-operators.herokuapp.com/
* ja lols out loud
diegoaguilar has joined #ruby
<Ox0dea> !~ is missing, and I challenge you to beat "bangarang".
Rickmasta has joined #ruby
s2013 has joined #ruby
ecksit has joined #ruby
<ja> haha, "bangarang" is perfect! I can't beat that
<havenwood> twoquals
maletor has quit [Quit: Computer has gone to sleep.]
<ja> wait wat, `~>` is a ruby operator?!
towski_ has quit [Remote host closed the connection]
ecksit has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> No.
ecksit has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
ericjphillips has quit [Quit: Leaving.]
<havenwood> pessimistic operator
<havenwood> ja: think RubyGems
maletor has joined #ruby
<ja> havenwood: oooh, of course
hadees has quit [Quit: hadees]
s2013 has quit [Client Quit]
<Ox0dea> And then I'll stop overloading you with operator lore.
s00pcan has joined #ruby
d34th4ck3r has joined #ruby
ICantCook has joined #ruby
ICantCook has quit [Client Quit]
umgrosscol has quit [Quit: End of Line]
BTRE has joined #ruby
hadees has joined #ruby
unreal_ has quit [Read error: Connection reset by peer]
<ja> Ox0dea: aah, good ol' Superators! I wonder if it still works in recent versions of Ruby
andersoldahl has quit [Quit: Goodbye everyone.]
tenderlove has quit [Ping timeout: 240 seconds]
abbe has joined #ruby
certainty has quit [Quit: WeeChat 1.0.1]
unreal has joined #ruby
baweaver has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 272 seconds]
kyle__ has joined #ruby
dain has joined #ruby
spuk has joined #ruby
ecksit has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
ecksit has joined #ruby
MrSamuel has joined #ruby
<pipework> Ox0dea: ho ho, overloading us with operator oration.
anisha has quit [Quit: Leaving]
<Ox0dea> pipework: I appreciate your vigilance.
NeverDie has joined #ruby
kyle__ has quit [Ping timeout: 265 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benjito has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
ecksit has quit [Quit: Textual IRC Client: www.textualapp.com]
stamina has quit [Ping timeout: 264 seconds]
dmolina has joined #ruby
_wldcordeiro has quit [Quit: WeeChat 0.4.2]
ibouvousaime has quit [Ping timeout: 268 seconds]
mistermocha has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
mistermocha has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benjito has quit [Ping timeout: 246 seconds]
DairennL has quit [Read error: Connection reset by peer]
blue_deref has quit [Quit: Taking myself out of hear.]
CanTonic has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
tenderlove has quit [Read error: Connection reset by peer]
`tim` has joined #ruby
cdg has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
tenderlove has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
cdg has quit [Remote host closed the connection]
<capin> anyone here have experience using the refile gem? and if so, how could i preserve the file name of an uploaded file.
atomical has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
GriffinHeart has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 260 seconds]
atomical has quit [Client Quit]
GriffinHeart has joined #ruby
rehat has joined #ruby
<capin> Ox0dea: yeah i read that, my code looks like the following, https://gist.github.com/ipatch/024782637ce0ff7c25a1
riotjones has joined #ruby
nkts has joined #ruby
beast has joined #ruby
eminencehc has quit [Remote host closed the connection]
Bellthoven has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
symbol_ has quit [Ping timeout: 268 seconds]
gustav_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
sunya7a has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gustav_ has quit [Ping timeout: 260 seconds]
finisherr_ has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
danman has joined #ruby
dorei has quit []
bruno- has joined #ruby
tenderlove has joined #ruby
finisherr has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
finisherr has joined #ruby
finisherr_ has quit [Ping timeout: 260 seconds]
dmolina has quit [Quit: Leaving.]
tjbiddle has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
|ifei5g00d has quit []
epochwolf has quit [Quit: Uh no...]
sepp2k has quit [Read error: Connection reset by peer]
ishikawa91 has quit [Quit: Connection closed for inactivity]
barhum2013 has quit [Quit: barhum2013]
barhum2013 has joined #ruby
v4n has joined #ruby
barhum2013 has quit [Client Quit]
bmurt has joined #ruby
jenrzzz has joined #ruby
bonhoeffer has joined #ruby
tkuchiki has joined #ruby
RobertBirnie has joined #ruby
RobertBirnie has quit [Max SendQ exceeded]
pwnd_nfsw has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
roshanavand has joined #ruby
RobertBirnie has quit [Max SendQ exceeded]
zenguy_pc has joined #ruby
GriffinHeart has joined #ruby
RobertBirnie has joined #ruby
hmsimha has joined #ruby
pathrocle has quit [Remote host closed the connection]
pathrocle has joined #ruby
nateberkopec has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
tmtwd has joined #ruby
pathrocle has quit [Ping timeout: 240 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
tenderlove has joined #ruby
Motoservo has quit [Quit: Motoservo]
`tim` has joined #ruby
cscheib_ is now known as csheib
rbowlby has quit [Remote host closed the connection]
`tim` has quit [Client Quit]
swgillespie has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
moeabdol has joined #ruby
mistermocha has quit [Remote host closed the connection]
hays has joined #ruby
mistermocha has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
leafybasil has joined #ruby
Bellthoven has quit []
EmeraldExplorer has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
workmad3 has joined #ruby
`tim` has joined #ruby
mistermo_ has joined #ruby
Asher has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
tenderlove has quit [Read error: Connection reset by peer]
sankaber has quit [Client Quit]
mistermocha has quit [Read error: Connection reset by peer]
danman_ has joined #ruby
leafybasil has quit [Ping timeout: 255 seconds]
sankaber has joined #ruby
beast has quit [Quit: Leaving]
psy_ has quit [Ping timeout: 240 seconds]
_djbkd has quit [Quit: My people need me...]
danman has quit [Ping timeout: 246 seconds]
danman_ is now known as danman
tenderlove has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
GriffinHeart has quit [Remote host closed the connection]
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
epochwolf has joined #ruby
zenguy_pc has joined #ruby
csheib is now known as cscheib
GriffinHeart has joined #ruby
favadi has joined #ruby
Nahra has joined #ruby
tjbiddle has quit [Ping timeout: 265 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
tenderlove has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 260 seconds]
Eiam_ has joined #ruby
Jameser has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
nettoweb has joined #ruby
s2013 has joined #ruby
rbowlby has joined #ruby
towski_ has joined #ruby
rbowlby has quit [Remote host closed the connection]
tenderlove has joined #ruby
towski_ has quit [Remote host closed the connection]
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
moeabdol has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
Sam_Gerber has quit [Quit: Leaving]
SamGerber has quit [Quit: Leaving]
tjbiddle has joined #ruby
baweaver has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
nettoweb has quit [Ping timeout: 255 seconds]
tvon has joined #ruby
NeverDie has joined #ruby
levifig_ has joined #ruby
bmn has quit [Ping timeout: 272 seconds]
Trieste has quit [Ping timeout: 264 seconds]
gener1c has joined #ruby
greedo has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
greedo has joined #ruby
bmn has joined #ruby
NeverDie has quit [Max SendQ exceeded]
towski_ has joined #ruby
Soda has joined #ruby
Trieste has joined #ruby
towski_ has quit [Remote host closed the connection]
NeverDie has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
gener1c_ has quit [Ping timeout: 260 seconds]
braincrash has quit [Quit: bye bye]
dfinninger has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
tvon has quit [Quit: leaving]
zenguy_pc has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
konrath has quit [Quit: Leaving]
kyle__ has joined #ruby
tenderlove has joined #ruby
tenderlove has joined #ruby
braincrash has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
rgb-one has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
<rehat> new to ruby is there a better way to programmatically increment a line of text like "pod 'Alamofire', '~> 2.0.0'" to "pod 'Alamofire', '~> 2.0.1'" ? This is what I have so far lol https://gist.github.com/rehat/4cd713023853a72ca4ab
blt has joined #ruby
momo-reina has joined #ruby
<Ox0dea> >> '2.0.0'.next # rehat
<ruboto> Ox0dea # => "2.0.1" (https://eval.in/455148)
<rehat> omg
<Ox0dea> inorite
<rehat> Ox0dea: lol thanks dude
<Ox0dea> Sure thing.
rgb-one has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has joined #ruby
wildlander has quit [Quit: Saliendo]
techietrash has joined #ruby
rabbit_ has joined #ruby
nkts has quit [Quit: Leaving]
<rehat> wow, so I even use next on the full string "Alamofire', '~> 2.0.0'" and it worked. Ruby is so magical :)
cwong_on_irc has joined #ruby
<rabbit_> hello, i was wondering if ruby would be a good language for game programming,i have experience in java c and c++
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
rabbit_ has quit [Client Quit]
tenderlove has quit [Read error: Connection reset by peer]
<Ox0dea> >> 'z'.next # rehat: Almost too magical.
<ruboto> Ox0dea # => "aa" (https://eval.in/455150)
weemsledeux has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
kies^ has joined #ruby
<rehat> haha
tenderlove has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
leafybasil has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
jgt1 has quit [Ping timeout: 265 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 246 seconds]
pawanspace has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<d34th4ck3r> Is there an inbuilt function to get the day of week from Time variable ?
<d34th4ck3r> I know about verifying a day like: Time.now.Thursday?
kyle__ has quit [Ping timeout: 260 seconds]
leafybasil has quit [Ping timeout: 268 seconds]
<pawanspace> Time.wday?
gix has joined #ruby
CloCkWeRX has joined #ruby
<Ox0dea> >> require 'date'; Date::DAYNAMES[Time.now.wday] # d34th4ck3r
<ruboto> Ox0dea # => "Thursday" (https://eval.in/455151)
gustav_ has joined #ruby
Motoservo has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<d34th4ck3r> pawanspace: That prints the number, not the day.
darkf has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
gustav_ has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
pawanspace has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
duncannz has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
wldcordeiro has joined #ruby
riotjones has joined #ruby
tenderlove has joined #ruby
symm- has joined #ruby
Oatmeal has joined #ruby
mistermocha has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
astrobun_ has joined #ruby
mistermo_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
v4n has quit [Quit: WeeChat 1.3]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermo_ has quit [Remote host closed the connection]
mistermo_ has joined #ruby
devbug has joined #ruby
mistermo_ has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 255 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
bruno- has joined #ruby
tenderlove has joined #ruby
s00pcan has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
auzty has joined #ruby
eminencehc has joined #ruby
Pupp3tm4st3r has joined #ruby
sunya7a has quit [Quit: leaving]
z3uS has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 244 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
z3uS has joined #ruby
eminencehc has quit [Ping timeout: 260 seconds]
sunya7a has joined #ruby
ja is now known as JA
ec is now known as EC
tmtwd has quit [Ping timeout: 265 seconds]
tenderlove has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Quit: WeeChat 1.1.1]
wldcordeiro has joined #ruby
freerobby has quit [Quit: Leaving.]
JA is now known as ja
EC is now known as ec
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermo_ has joined #ruby
GriffinHeart has joined #ruby
tenderlove has joined #ruby
molly has left #ruby [#ruby]
dfinninger has quit [Remote host closed the connection]
workmad3 has joined #ruby
sdwrage has joined #ruby
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug_ has joined #ruby
Gnomethrower has joined #ruby
beauby has quit [Ping timeout: 250 seconds]
devbug has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
matp has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
tenderlove has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby
<rgb-one> Anyone have a list of projects using optparse?
symm- has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
techietrash has quit [Quit: Bye! <(^_^<)]
VeryBewitching has quit [Quit: Konversation terminated!]
d34th4ck3r has quit [Quit: zzz]
tenderlove has quit [Read error: Connection reset by peer]
hadees has quit [Quit: hadees]
tenderlove has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermo_ has quit [Remote host closed the connection]
favadi has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
duncannz has quit [Ping timeout: 260 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
<Ox0dea> rgb-one: http://git.io/vWG6c
<rgb-one> Ox0dea: Clever :)
Guest83086 is now known as silverdust
silverdust has quit [Changing host]
silverdust has joined #ruby
<Ox0dea> I didn't know how else to answer your question.
<rgb-one> Ox0dea: Good answer. It didn't cross my mind to do that.
GriffinHeart has quit [Remote host closed the connection]
benjito has joined #ruby
tenderlove has joined #ruby
arup_r has joined #ruby
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
benjito has quit [Ping timeout: 240 seconds]
beauby has joined #ruby
krz has joined #ruby
nemo_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<dain> /join #jekyl
subscope has joined #ruby
<Ox0dea> /part #ruby
kies^ has quit [Ping timeout: 260 seconds]
<dain> Whoopse
tenderlove has joined #ruby
<Ox0dea> dain: I'm certain you could configure Emacs to prevent you from doing that in future.
<dain> LOL
<dain> Amazing that you know I'm using emacs
<Ox0dea> On the other hand, maybe it happened to begin with because you're using Emacs for IRC. :P
trosborn has joined #ruby
<dain> That's totally true, if I was normal that wouldn't have happened ;)
<Ox0dea> /ctcp foo version, for reference.
<dain> ah, interesting
RobertBirnie has joined #ruby
RegulationD has joined #ruby
finisherr has quit [Quit: finisherr]
favadi has joined #ruby
GriffinHeart has joined #ruby
favadi has quit [Client Quit]
hadees has joined #ruby
roshanavand has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
wldcordeiro has quit [Quit: WeeChat 1.1.1]
Asher has quit [Quit: Leaving.]
ruurd has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
nemo__ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
hostess has quit [Remote host closed the connection]
Hamled has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
nemo_ has joined #ruby
cout has quit [Remote host closed the connection]
kies^ has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
trosborn has quit [Quit: trosborn]
nemo_ has quit [Client Quit]
nemo__ has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
dopamean_ has joined #ruby
mistermocha has joined #ruby
GriffinHeart has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.1.1]
blueOxigen has joined #ruby
wldcordeiro has joined #ruby
wldcordeiro has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
patdohere has joined #ruby
haraoka has joined #ruby
mistermocha has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
pontiki has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
danman has quit [Quit: danman]
Morrolan has joined #ruby
houhoulis has quit [Remote host closed the connection]
yosiat has quit [Ping timeout: 260 seconds]
davedev24 has quit [Remote host closed the connection]
Chaoborid has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
stardiviner has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
devbug has joined #ruby
CloCkWeRX has joined #ruby
blt has left #ruby ["WeeChat 1.3"]
jonee has joined #ruby
chrissonar has joined #ruby
moeabdol has joined #ruby
tubuliferous_ has quit [Ping timeout: 268 seconds]
jonee has quit [Client Quit]
gustav_ has joined #ruby
<arup_r> sometimes distribution_lists_params[:external_users] can be `nil` or `[nil]`
moeabdol has quit [Client Quit]
devbug_ has quit [Ping timeout: 252 seconds]
beauby has joined #ruby
mistermocha has quit [Remote host closed the connection]
<arup_r> In either case I will return []
Darryl___ has joined #ruby
<Ox0dea> arup_r: I'd use `return [] if Array(foo).compact == []`.
<arup_r> let me see.. in IRB
<Ox0dea> I suppose you'd prefer #empty?, but the Array method is the trick you were looking for.
<arup_r> yes, Kernel#Array() is what I needed.
<Ox0dea> `[*foo] == Array(foo)`, for what that's worth.
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
gustav_ has quit [Ping timeout: 268 seconds]
hostess has joined #ruby
nemo_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<arup_r> Ox0dea: thanks
<Ox0dea> arup_r: Sure thing.
toy has joined #ruby
riotjones has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
skade has joined #ruby
trautwein has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
nemo__ has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.1.1]
spuk has quit [Ping timeout: 250 seconds]
GriffinHeart has joined #ruby
rodfersou has joined #ruby
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
zenguy_pc has quit [Read error: Connection reset by peer]
d34th4ck3r has joined #ruby
hadees has quit [Quit: hadees]
danman has joined #ruby
ruurd has joined #ruby
nemo_ has quit [Ping timeout: 260 seconds]
hadees has joined #ruby
tagrudev has joined #ruby
jenrzzz has joined #ruby
techsethi has joined #ruby
wldcordeiro has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
techsethi has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
AnoHito has joined #ruby
astrobu__ has joined #ruby
astrobun_ has quit [Ping timeout: 255 seconds]
tubuliferous_ has joined #ruby
balazs has joined #ruby
moeabdol has joined #ruby
AnoHito_ has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 272 seconds]
kraljev11 has joined #ruby
nemo_ has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has joined #ruby
krz has joined #ruby
beauby has joined #ruby
nemo__ has quit [Ping timeout: 265 seconds]
techsethi has joined #ruby
GeissT has quit [Ping timeout: 244 seconds]
zenguy_pc has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
tenderlove has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
yardenbar has joined #ruby
_djbkd has joined #ruby
Pupp3tm4st3r has joined #ruby
dhjondoh has joined #ruby
Jameser` has joined #ruby
tenderlove has joined #ruby
ryez has joined #ruby
dhjondoh has quit [Client Quit]
dhjondoh has joined #ruby
Jameser has quit [Ping timeout: 272 seconds]
norc has joined #ruby
workmad3 has joined #ruby
<norc> Hi, Im trying to figure out how to decently stop a consumer in a producer/consumer problem.
<norc> This is what I have at the moment, but it feels so unclean: http://pastie.org/10499192
yfeldblum has quit [Ping timeout: 240 seconds]
<norc> (I know that Ruby 2.3 might introduce a Queue#close that will elegantly solve this problem, but we are not there yet)
<norc> (thread/pool comes from the thread gem)
rbennacer has joined #ruby
<norc> Oh well, and its not even thread safe.
astrobu__ has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
astrobun_ has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
rbennacer has quit [Ping timeout: 268 seconds]
chipotle has quit [Quit: cheerio]
Darryl___ has quit []
wldcordeiro has quit [Ping timeout: 268 seconds]
amclain has quit [Quit: Leaving]
davedev24 has joined #ruby
favadi has joined #ruby
unshadow has joined #ruby
acke has joined #ruby
certainty has joined #ruby
astrobun_ has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 250 seconds]
tomaz_b has joined #ruby
Chaoborid has quit [Quit: Textual IRC Client: www.textualapp.com]
petems has left #ruby [#ruby]
zapata has joined #ruby
favadi has quit [Client Quit]
Ox0dea has quit [Read error: Connection reset by peer]
devbug has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
Jameser` has quit [Remote host closed the connection]
based_pdev_ has quit [Read error: Connection reset by peer]
Jameser` has joined #ruby
based_pdev_ has joined #ruby
tenderlo_ has joined #ruby
devbug has joined #ruby
favadi has joined #ruby
tenderlove has quit [Ping timeout: 256 seconds]
unshadow has quit [Quit: leaving]
tjbiddle has joined #ruby
Musashi007 has quit [Read error: No route to host]
balazs has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
rgb-one has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
zenguy_pc has joined #ruby
dmolina has joined #ruby
dmolina has quit [Client Quit]
arup_r is now known as help
relix has joined #ruby
help is now known as Guest16723
stannard has joined #ruby
Davey has quit [Ping timeout: 244 seconds]
Guest16723 has quit [Quit: Leaving]
gsingh93 has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
majjoha has joined #ruby
clamstar has quit [Ping timeout: 244 seconds]
luckyruby has joined #ruby
alexblom has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
stannard_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
tenderlo_ has quit [Read error: Connection reset by peer]
Sigma00 has joined #ruby
jtperreault has joined #ruby
camt has joined #ruby
gsingh93 has joined #ruby
bodie_ has joined #ruby
relix has quit [Ping timeout: 260 seconds]
alexblom has joined #ruby
Davey has joined #ruby
Davey has quit [Changing host]
Davey has joined #ruby
krz has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
_djbkd has quit [Remote host closed the connection]
clamstar has joined #ruby
astrobun_ has joined #ruby
dcarmich has joined #ruby
gnarf has joined #ruby
patdohere is now known as patdohere_afk
patdohere_afk is now known as patdohere
patdohere is now known as patdohere_afk
patdohere_afk is now known as patdohere
<norc> This would be the better example of what I mean: http://pastie.org/10499213
krz has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
O47m341 has joined #ruby
<yardenbar> Hi all, I'm trying to install rjb gem on Mac OS X El Capitan, getting an error that I'm missing JavaVM.framework/Home/Headers
firstdayonthejob has quit [Ping timeout: 260 seconds]
<yardenbar> Nothing on the internet to solve it, please help
skade has quit [Quit: Computer has gone to sleep.]
solars has joined #ruby
lkba has joined #ruby
Oatmeal has quit [Ping timeout: 255 seconds]
ruurd has joined #ruby
eGGsha has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
tenderlove has quit [Read error: Connection reset by peer]
ruurd has quit [Max SendQ exceeded]
RegulationD has joined #ruby
tenderlove has joined #ruby
last_staff has joined #ruby
ruurd has joined #ruby
herbst has joined #ruby
kp666 has joined #ruby
nhhagen has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
Eiam_ has quit [Ping timeout: 256 seconds]
nfk|laptop has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
trosborn has joined #ruby
GriffinHeart has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has quit [Client Quit]
<Ox0dea> > obj.?attr += 1
<Ox0dea> Yikes?
kies^ has quit [Ping timeout: 265 seconds]
trosborn has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
aufi has joined #ruby
TomyWork has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
gavit has joined #ruby
lsmola_ has joined #ruby
Didac has joined #ruby
tenderlove has quit [Ping timeout: 255 seconds]
AlexRussia has quit [Quit: WeeChat 1.4-dev]
Ilyes512 has joined #ruby
GriffinHeart has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
codecop has joined #ruby
gustav_ has joined #ruby
<Radar> yardenbar: why not just use JRuby?
jas02 has joined #ruby
zacts has quit [Ping timeout: 256 seconds]
banister has quit [Read error: No route to host]
tenderlove has joined #ruby
subscope has joined #ruby
leafybasil has joined #ruby
adac has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
wpp has joined #ruby
gustav_ has quit [Ping timeout: 264 seconds]
<yardenbar> Skipped that
rodfersou has quit [Remote host closed the connection]
davedev24 has joined #ruby
SCHAAP137 has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
trosborn has quit [Quit: trosborn]
davedev24 has quit [Ping timeout: 250 seconds]
sameerynho has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
trosborn has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
moeabdol has joined #ruby
trosborn has quit [Client Quit]
lxsameer has quit [Ping timeout: 256 seconds]
tenderlove has joined #ruby
zenguy_pc has joined #ruby
DEA7TH has joined #ruby
karapetyan has joined #ruby
trosborn has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Xeago has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
but3k4 has joined #ruby
trosborn has quit [Client Quit]
tjbiddle has quit [Ping timeout: 260 seconds]
devbug_ has joined #ruby
beauby has quit [Ping timeout: 268 seconds]
Couch has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
tjbiddle has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
chipotle has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
trosborn has joined #ruby
keen______ has quit [Read error: Connection reset by peer]
trosborn has quit [Client Quit]
keen______ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
trosborn has joined #ruby
tjbiddle has quit [Ping timeout: 264 seconds]
ibouvousaime has joined #ruby
Jackneill has joined #ruby
tenderlove has joined #ruby
Cyther has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
araujo_ has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has quit [Ping timeout: 265 seconds]
Gnomethrower has joined #ruby
nemo_ has quit [Remote host closed the connection]
SylarRuby has joined #ruby
sinkensabe has joined #ruby
sundhell has joined #ruby
ruurd has quit [Quit: Bye]
sanjayu has joined #ruby
dravine has quit [Read error: Connection reset by peer]
dravine has joined #ruby
skade has joined #ruby
kalusn has joined #ruby
workmad3 has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
soosfarm has left #ruby [#ruby]
jxs_ has joined #ruby
but3k4 has quit [Ping timeout: 260 seconds]
dmolina has joined #ruby
SylarRuby has quit [Read error: Connection timed out]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
teclator has joined #ruby
SylarRuby has joined #ruby
mikecmpbll has joined #ruby
gustav_ has joined #ruby
vigintas has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Peg-leg has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
CrazyEddy has joined #ruby
tenderlove has joined #ruby
Xeago has quit [Remote host closed the connection]
<adaedra> Hello
nemo_ has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
livcd has quit [Changing host]
livcd has joined #ruby
lipoqil has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
devbug_ has quit [Read error: Connection reset by peer]
kimegede has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
Hounddog has joined #ruby
<Ox0dea> Christmas came a little early: http://git.io/vWZm1
blaxter has joined #ruby
baweaver has quit [Remote host closed the connection]
<Ox0dea> Do you think nobu would be cross if I pointed out that `::?` should probably work also?
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mark2 has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
<apeiros> I would hope nobu would say that :: should not be used for method invocation anymore.
tjbiddle has quit [Ping timeout: 272 seconds]
but3k4 has joined #ruby
<adaedra> So a.?b.c would not call c if b return nil, but directly return nil?
<apeiros> but cool, do I read this correctly that we will have .? soon?
Gnomethrower has joined #ruby
joonty has joined #ruby
<apeiros> a.?[](key).?[](key) will be ugly, but well, still less ugly than && chains
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
Hounddog has joined #ruby
<Ox0dea> adaedra: No, you have to explicitly chain it.
<adaedra> So a.?b.?c
<Ox0dea> Right.
<adaedra> And it's not calling b if a is nil
<adaedra> Ok, I see it
<adaedra> Neat.
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> It doesn't even evaluate the arguments in that case.
davedev24 has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
davedev24 has quit [Remote host closed the connection]
<adaedra> So we can have a.?b?
davedev24 has joined #ruby
<Ox0dea> Oui.
dikaio has quit [Quit: ........]
howdoicomputer has joined #ruby
<Ox0dea> (I'm trying to break it. :P)
jxs_ has quit [Remote host closed the connection]
<adaedra> I didn't expect any less from you.
roshanavand has quit [Remote host closed the connection]
<Ox0dea> I'm sure if nobu wanted he could've defined the new DOTQ token in terms of dot_or_colon, so maybe the lack of ::? isn't an oversight after all.
Jameser` has quit [Ping timeout: 268 seconds]
tenderlove has joined #ruby
tkuchiki has joined #ruby
rbowlby has joined #ruby
gustav_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
trosborn has quit [Quit: trosborn]
benjito_ has joined #ruby
trosborn has joined #ruby
yfeldblum has joined #ruby
Xeago has joined #ruby
<Ox0dea> !?..?!
<Ox0dea> I have a new favorite.
kraljev11 has quit [Quit: kraljev11]
<Ox0dea> >> !true.!
<ruboto> Ox0dea # => true (https://eval.in/455271)
kraljev11 has joined #ruby
<Ox0dea> Still not entirely sure what's going on there.
roshanavand has joined #ruby
benjito_ has quit [Ping timeout: 246 seconds]
marr has joined #ruby
chipotle has quit [Quit: cheerio]
dmolina has quit [Quit: Leaving.]
jxs_ has joined #ruby
ndrei has joined #ruby
dmolina has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c0m0 has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
gustav_ has joined #ruby
Gnomethrower has joined #ruby
tenderlove has quit [Ping timeout: 246 seconds]
jxs_ has quit [Remote host closed the connection]
<adaedra> well, it's !!true, no?
trosborn has quit [Quit: trosborn]
tenderlove has joined #ruby
trosborn has joined #ruby
Pumukel has joined #ruby
bMalum has quit [Quit: bMalum]
gustav_ has quit [Ping timeout: 250 seconds]
<Ox0dea> It is, but #! is the only unary method which can be called that way.
matp has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<Ox0dea> It wouldn't make sense for #+@ and #-@, of course, but #~ is an anomaly.
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
matp has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Voker57 has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
matp has quit [Max SendQ exceeded]
matp has joined #ruby
sanjayu has quit [Ping timeout: 272 seconds]
emilkarl has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 240 seconds]
luckyruby has quit [Quit: Leaving...]
Gnomethrower has joined #ruby
DEA7TH has joined #ruby
bMalum has joined #ruby
Nicola-1_ has quit []
dmolina has quit [Quit: Leaving.]
trosborn has quit [Quit: trosborn]
RegulationD has joined #ruby
Gnomethrower has quit [Client Quit]
trosborn has joined #ruby
arup_r has joined #ruby
Gnomethrower has joined #ruby
tvw has joined #ruby
<Xeago> Ox0dea: would you perhaps know how to calculate https://gist.github.com/Xeago/4e58c40edbc0b459dd5c ?
<Xeago> I'm still stuck on it and cost me some sleep :|
<Ox0dea> Xeago: You should stop that.
<Xeago> I've tried ##math - without luck - I can try them again.
sanjayu has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
BaroMeter has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
<Ox0dea> Xeago: What is the sum of the interior angles of any triangle?
<TheBrayn> hint: it's neither 179° nor 181°
Gnomethrower has quit [Client Quit]
<Xeago> Ox0dea: 180˚
<Ox0dea> Xeago: Now draw the rest of the owl.
<Xeago> so the all angles inside of the ABE triangle are 60˚
tenderlove has joined #ruby
<Xeago> Que?
araujo_ has quit [Quit: Leaving]
Gnomethrower has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
eGGsha has joined #ruby
<Xeago> E in ABE is 60˚, that tells me that it is 300 around, but that is not E in CED
<Ox0dea> > [T]he vast majority of the [process] is left unexplained for comedic effect.
rehat has quit [Remote host closed the connection]
<Xeago> As I don't E in AED
jgt1 has joined #ruby
lkba has joined #ruby
<adaedra> Wait, I didn't want to join #homework
<Ox0dea> Xeago: Do you know about complementary angles?
jxs_ has joined #ruby
<Xeago> rings a bell
<apeiros> Xeago: the height of even sided triangles is known
<apeiros> I think from that you can solve the rest
slawrence00 has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<Ox0dea> >> 3.even?
<ruboto> Ox0dea # => false (https://eval.in/455292)
dionysus69 has joined #ruby
<apeiros> Xeago: if you want to "cheat", assume the length of AB=1, since the size doesn't matter. then use trig functions.
sinkensabe has quit []
workmad3 has joined #ruby
<apeiros> Xeago: btw., better suited for #ruby-offtopic ;-)
Xeago has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
<Ox0dea> Xeago: What is angle CBE?
<Xeago> It's not even my homework, not even my gf's homework
subscope has joined #ruby
<apeiros> Xeago: hm, got my messages?
<Xeago> I'll read it on http://irclog.whitequark.org/ruby/
<Ox0dea> Xeago: You previously stated that this is in fact your girlfriend's homework.
chipotle has joined #ruby
<Xeago> Ox0dea: no, exercises for a test
<Xeago> test != homework
<adaedra> er
<Ox0dea> I wanted to help too.
<adaedra> homework = work you do home?
<Xeago> she isn't in school…
Gnomethrower has left #ruby ["Textual IRC Client: www.textualapp.com"]
<TheBrayn> in kindergarten?
<Xeago> so if I work from home I do homework? :>
<Xeago> She's just studying
<Ox0dea> Clearly.
<Xeago> And takes tests online, that's it.
<Ox0dea> I like the part where subtracting from 90 and 180 is giving her hell.
<norc> Is there a better way to stop a consumer in this producer/consumer pattern than this? http://pastie.org/10499409
<norc> (Aside from Queue#close which might appear in 2.3)
<Xeago> apeiros: assuming length of 1 and using trigonometric functions is difficult to do without a calculator, which is the setting for these exercises
teclator has quit [Quit: Lost terminal]
<chris2> you can do it in the head
<chris2> i think?
tenderlove has quit [Read error: Connection reset by peer]
<Xeago> I've my equations to solve it as such, it doesn't help me explain to her how to solve it without one
<apeiros> Xeago: a couple of values are well known, and I'd bet for the angle in question it's one of those
<adaedra> Psst, now that we have ruby questions, it may be a good time to move it to oddtopic, people
<adaedra> err, offtopic
Eternal has left #ruby [#ruby]
<Xeago> chris2: then I'd get an answer represented in cos(∆)*n
<Xeago> adaedra: sure, will do!
<TheBrayn> Xeago: what's the length of EB?
<Ox0dea> ?ot TheBrayn
<ruboto> TheBrayn, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<TheBrayn> kk
lee-jon has joined #ruby
roshanavand has quit [Remote host closed the connection]
<shevy> what is EB
<norc> shevy. Look - I wrote code!
<adaedra> norc: I suppose you want to be able to wait on an empty queue so Queue#empty? would be out of question
<shevy> norc in C?
<norc> shevy: :(
<norc> adaedra: Yeah.
moeabdol has quit [Read error: Connection reset by peer]
<norc> adaedra: The producers access "sluggish" resources on a network, so it is possible that at times the consumer might empty the queue fast enough.
tenderlove has joined #ruby
moeabdol has joined #ruby
Pupeno has joined #ruby
Jackneill_ has joined #ruby
<adaedra> norc: unrelated to you issue, but while(true) => loop do
<adaedra> your*
chipotle has quit [Quit: cheerio]
roshanavand has joined #ruby
<norc> adaedra: Oh neat thanks.
twe4ked has joined #ruby
<adaedra> And I think you want ==, not ===
<TheBrayn> Xeago: query
<adaedra> leave === to which
<norc> adaedra: Ah that was a mispaste from the wrong buffer. Im instantiating the Stop class. But either way yeah
Jackneill has quit [Ping timeout: 252 seconds]
lee-jon has quit [Quit: lee-jon]
<adaedra> Otherwise, you can also have a variable that your process sets to true at the end and check for this variable in your loop, maybe as a class attribute somewhere.
<adaedra> Mh, no
Jackneill_ is now known as Jackneill
<norc> adaedra: Updated. :) http://pastie.org/10499426
<adaedra> obj.is_a? Stop
armyriad has joined #ruby
<adaedra> I suppose that producer_pool.shutdown ensures that your processes have finished producing before adding the Stop in your queue
<norc> adaedra: Indeed. Thread::Pool#shutdown blocks until all workers have finished, and then destroys the pool.
<adaedra> So yeah, the "global" switch works too. I don't know if one is better.
<norc> adaedra: The issue with the "global switch" is queue.pop.
<adaedra> Ah, because it will block
<norc> Yup
<adaedra> Indeed
<adaedra> So yeah
lkba_ has joined #ruby
nhhagen has quit [Remote host closed the connection]
<norc> This would be the perfect thing for this: https://bugs.ruby-lang.org/issues/10600 *sigh*
<adaedra> soon
<shevy> you always have to convince nobu and matz first!
<Ox0dea> The bar's been lowered.
lkba has quit [Ping timeout: 240 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<norc> Ox0dea: You mean you only have to convince matz now?
<norc> ;-)
GriffinHeart has quit [Ping timeout: 265 seconds]
<adaedra> norc: you now have to bring your PR into Mordor.
<Ox0dea> Well, matz had to greenlight .? before nobu committed his patch.
Xeago has quit [Ping timeout: 250 seconds]
tenderlove has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
<Ox0dea> I do wish he'd voice his opposition to #grep-like #all? and friends.
twe4ked has quit [Quit: ZNC - http://znc.in]
roshanavand has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 256 seconds]
GriffinHeart has joined #ruby
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has joined #ruby
twe4ked has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
dionysus69 has quit [Read error: Connection reset by peer]
naftilos76 has joined #ruby
<adaedra> Why?
GriffinHeart has joined #ruby
Xeago has joined #ruby
<Ox0dea> To be fair, I don't actually know how he feels about it.
twe4ked has quit [Read error: Connection reset by peer]
<Ox0dea> But the issue got directly assigned to him the day I proposed it, and it's just kinda languished since. :<
tenderlove has joined #ruby
twe4ked has joined #ruby
TPBallbag has joined #ruby
<Ox0dea> strs.all?(/foo/) looks so "Ruby", does it not?
joonty has joined #ruby
Xeago has quit [Remote host closed the connection]
sameerynho has joined #ruby
arup_r has quit [Quit: Leaving]
rodfersou has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
howdoicomputer has quit [Ping timeout: 264 seconds]
emilkarl has quit [Quit: emilkarl]
<shevy> ewwww
<shevy> this must be rejected!
<shevy> actually, what is .all? doing?
<shevy> ah
<shevy> if all elements have the pattern match
<Ox0dea> #all? and #any? are very handy.
<Ox0dea> #one? and #none?, not so much.
<Ox0dea> But having to open an explicit block for them is eww.
<shevy> hmmm
blueOxigen has quit [Ping timeout: 250 seconds]
<shevy> you are using enumerators in a different way there right?
rbowlby has quit [Remote host closed the connection]
<Ox0dea> Hm?
<shevy> the .all?(/foo/)
moeabdol has quit [Read error: Connection reset by peer]
<shevy> that would be new right?
<Ox0dea> Yes.
<shevy> now I can understand the opposition in ruby-core :-)
<Ox0dea> As it stands, we have to say `strs.all? { |s| /foo/ === s }`.
moeabdol has joined #ruby
<shevy> yeah
<Ox0dea> Syntactic noise, an arbitrary name, and just general unpleasantness.
<shevy> ruby core sorta became sleepier from what I could see when matz went to invest time into mruby
<Ox0dea> shevy: What opposition?
<shevy> to new syntax variants!
<shevy> like the .all?(/foo/) without block
<Ox0dea> It's not new syntax, though.
<Ox0dea> It's just properly leveraging case equality.
psycho_one has joined #ruby
vigintas has quit [Quit: vigintas]
Igorshp has joined #ruby
psycho_one has quit [Client Quit]
kraljev11 has quit [Ping timeout: 240 seconds]
psycho_one has joined #ruby
tenderlove has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
ushbkk has quit [Remote host closed the connection]
tenderlove has joined #ruby
joonty has joined #ruby
andykingking has joined #ruby
krz has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
TPBallbag has quit [Remote host closed the connection]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darthdeus has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
subscope has joined #ruby
<darthdeus> hey guys, when trying to bundle my repo, I'm getting the following: https://gist.github.com/darthdeus/1cf71d8af57a582741d7 ... which is weird because my ruby install is using rbenv (confirmed that `which ruby` and `which gem` both point to the rbenv shims)
<darthdeus> and `rbenv versions` shows 2.2.3 instead of the system one as well
<darthdeus> (I'm on arch linux)
spider-mario has joined #ruby
<shevy> the same distribution that jhass uses \o/ now he only has to wake up ...
joonty has quit [Quit: joonty]
<jhass> well, I don't use rbenv
hmsimha has quit [Ping timeout: 265 seconds]
<darthdeus> hehe
vigintas has joined #ruby
<jhass> which bundle ?
<darthdeus> bundler version 1.10.6
<darthdeus> it's a fairly clear install of everything
<jhass> nah, `which bundle`
CanTonic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ajb is now known as ajb-
<darthdeus> hmm, that points to $HOME/.gem/ruby/2.2.0/bin/bundle
<darthdeus> I guess that's the issue :D
krz has joined #ruby
<jhass> yeah
nfk|laptop has quit [Quit: yawn]
<jhass> gem install bundler
<darthdeus> thanks, now stuff works :)
<jhass> perhaps after a echo "gem: --no-user-instal" > ~/.gemrc
<shevy> typo!
<jhass> ah, then nvm
<darthdeus> I actually did a user install on purpose before, because I didn't want to use rbenv for simple things
<darthdeus> but I guess I forgot to update my path :\
TPBallbag has joined #ruby
<darthdeus> hmm :O I'll check that out, thanks
davedev24 has quit []
<jhass> though I bundle install --path vendor/bundle most of the time still
<jhass> since then you can just rm -rf a project and its gone for good
<darthdeus> btw any reason why you're using yaourt in particular? just curious
<shevy> jhass how many different ruby versions do you use on your system these days?
<jhass> I got 1.9, 2.0, 2.1, 2.2 installed but really using I'm only 2.1 and 2.2, with 2.2 90% of the time
nhhagen has joined #ruby
TheHodge has joined #ruby
haraoka has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
<Ox0dea> darthdeus: Which AUR helper Kool-Aid did you end up drinking, if you don't mind my prying?
Jackneill has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
dmolina has joined #ruby
moeabdol has joined #ruby
<darthdeus> Ox0dea: cower
bruno- has quit [Ping timeout: 272 seconds]
tenderlove has quit [Read error: Connection reset by peer]
<darthdeus> but basically I only use it to search and download
<Ox0dea> That's... all it does?
<darthdeus> Ox0dea: I guess :P
<adaedra> Ox0dea: you're one of these AUR helpers haters?
<Ox0dea> adaedra: No, but pacaur is objectively best.
GriffinHeart has quit [Remote host closed the connection]
<darthdeus> Ox0dea: tbh the only reason why I have cower is because I don't want to open a browser every time I need something
<Ox0dea> I like the part where your browser is ever closed.
<Ox0dea> What year is it?
tenderlove has joined #ruby
tenderlove has joined #ruby
rdark has joined #ruby
<darthdeus> even with custom search for aur I still have to open a tab, type in the name, search for the donwload, click on it and unpack the download
<Ox0dea> Jesus.
chthon has joined #ruby
<darthdeus> ?
GriffinHeart has joined #ruby
krz has quit [Read error: Connection reset by peer]
<Ox0dea> darthdeus: Pretty much every AUR helper has decent search functionality, pacaur's being second-to-none.
<Ox0dea> Do you enjoy manually issuing `makepkg` or something...?
<darthdeus> erm, I was argumenting on the case that cower is way better than doing it manually using a browser
<darthdeus> not that it is some ultra solution that is the bestest in the whole world
bruno- has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
caliostro has joined #ruby
<Ox0dea> $ pacaur -S `pacaur -Ssq ttf`
<Ox0dea> darthdeus: That'll install every single TTF font package in the AUR.
davedev24 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<Ox0dea> I feel the need to clarify that it's only a demonstration.
Rickmasta has joined #ruby
<shevy> oooooh so Ox0dea is also an archie like jhass
<Ox0dea> You knew that, though.
<shevy> don't remember really
bruno- has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
nfk|laptop has joined #ruby
symbol_ has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
gustav_ has joined #ruby
blackmesa has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 265 seconds]
<shevy> oh yes now I remember
trosborn has quit [Quit: trosborn]
bruno- has joined #ruby
<Ox0dea> [k- had asked me how large the GHC package was.
<Ox0dea> $ pacman -Qql ghc | xargs stat -c %s | paste -sd + | bc
ldnunes has joined #ruby
<Ox0dea> 946864281
astrobun_ has quit [Remote host closed the connection]
tenderlove has joined #ruby
trosborn has joined #ruby
krz has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
d34th4ck3r has quit [Quit: zzz]
cornerma1 has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
TPBallbag has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
<norc> shevy: But, as a matter of fact - I have actually written some C code today. So you were not that far from the truth.
nertzy has quit [Ping timeout: 240 seconds]
wpp has quit [Quit: Textual IRC Client: www.textualapp.com]
leafybasil has joined #ruby
gustav_ has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
yfeldblum has joined #ruby
krz has quit [Ping timeout: 256 seconds]
<shevy> norc your C prowess is visible in your ruby!
<norc> Heh.
Nahra has quit [Remote host closed the connection]
symbol_ has quit [Ping timeout: 240 seconds]
Nahra has joined #ruby
Rollabunna has joined #ruby
unshadow has joined #ruby
pwnd_nfsw has joined #ruby
senayar has quit []
aswen has joined #ruby
leafybasil has quit [Remote host closed the connection]
<unshadow> This string "\x00\x00\x00\x10" represents the number 16, how can I pack\unpack it to return 16 ? as in "\x00\x00\x00\x10".pack(?) == 16
Ilyes512 has joined #ruby
eikood has quit [Quit: ByeBye]
leafybasil has joined #ruby
eikood has joined #ruby
bruno- has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
krz has joined #ruby
<Ox0dea> unshadow: ? = 'L>'
<canton7> "stuff".unpack("L>") yep
<unshadow> very cool, thanks
<unshadow> what does the '>' means ?
tenderlove has quit [Read error: Connection reset by peer]
<canton7> unshadow, see the doc page I linked
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> canton7: But there are 382 instances of '>' on that page!
gustav_ has joined #ruby
<unshadow> well, it says in the table : "same as the directives without ">" except" and doesnt go on
<unshadow> hahah
<canton7> but I linked to a specific section on that page ><
<canton7> unshadow, read the next line..... ;)
<unshadow> Oh !
<unshadow> lol ok
zotherstupidguy has joined #ruby
<unshadow> thanks XD
<canton7> line breaks man, how do they work?
<Ox0dea> It's complicated.
nateberkopec has joined #ruby
tenderlove has joined #ruby
sundhell has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
unshadow has quit [Quit: leaving]
<shevy> don't break things
arthurnn has quit [Remote host closed the connection]
mnzaki has joined #ruby
<Ox0dea> > The world breaks everyone, and afterward, some are strong at the broken places.
bruno- has quit [Quit: Lost terminal]
Xeago has joined #ruby
RegulationD has joined #ruby
<ibouvousaime> hello how can I put screenshots here ?
eikood has quit [Read error: Connection reset by peer]
<Ox0dea> ibouvousaime: Convert them to ASCII and flood the channel.
tvw has quit [Remote host closed the connection]
<ibouvousaime> is imgur allowed ?
<ibouvousaime> xD
<ibouvousaime> hehe Ox0dea
TPBallbag has joined #ruby
<Zarthus> if it's a picture of your code: use gist.github.com or whatever instead
RegulationD has quit [Ping timeout: 256 seconds]
but3k4 has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
nhhagen has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
monq has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
dmolina has quit [Quit: Leaving.]
<ljarvis> no ruby
<ljarvis> stahp
<workmad3> ljarvis: yeah, that's pretty much my reaction too
hanmac has quit [Ping timeout: 246 seconds]
<shevy> u.?profile.?thumbnails.?large could be extended into u.?profile?.?thumbnails?.?large?
<shevy> and then it would be unfair to prefer only ? so we would also need u.!profile!.!thumbnails!.!large!
tenderlove has quit [Read error: Connection reset by peer]
<Ox0dea> > would be unfair
<adaedra> wat
<workmad3> shevy: haha
<jhass> workmad3: ljarvis so who wants to PR to bbatsov and disallow it everywhere? :P
<Ox0dea> That'd be a laugh.
<workmad3> shevy: unless someone is writing pretty bad code, `u.?profile?.?thumbnails` would error (because TrueClass and FalseClass don't support a `thumbnails` method)
moeabdol has joined #ruby
codecop has quit [Remote host closed the connection]
arthurnn has joined #ruby
joonty has quit [Quit: joonty]
bruno- has joined #ruby
<ibouvousaime> hello can someone help me get rid of that thing in red http://i.imgur.com/ScYVTGY.png
<ljarvis> yeah needs that really
weihan has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> ibouvousaime: Use the "fill" option instead of "stroke" on your shape tool.
tenderlove has joined #ruby
<adaedra> ibouvousaime: here you go friend http://i.imgur.com/RTII3Q8.png
<Ox0dea> !next
Pupp3tm4st3r has joined #ruby
trosborn has quit [Quit: trosborn]
trampi has quit [Remote host closed the connection]
<adaedra> ibouvousaime: more seriously, it seems that's the thing you use to execute the script that adds the last return at the end. How do you run it?
joonty has joined #ruby
<ibouvousaime> hehe its on codeacademy
tkuchiki has quit [Remote host closed the connection]
<adaedra> So it's totally possible that it prints the last result.
TPBallbag has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
trampi has joined #ruby
<Ox0dea> ibouvousaime: The Codecademy REPL is showing you the value of the last expression (as REPLs are wont to do).
<Ox0dea> In this case, that's the return value of `words.each`, which is `words`.
<ibouvousaime> ohh yeah it worked there wanted to add a space after the "letters"
<ibouvousaime> they*
stardiviner has quit [Ping timeout: 256 seconds]
<ibouvousaime> they wanted me*
zotherstupidguy has quit [Quit: WeeChat 1.2]
but3k4 has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.2]
<Ox0dea> ibouvousaime: http://i.imgur.com/UlsFWfY.png
<Ox0dea> Codecademy is the MyMathLab of programming, apparently.
stamina has joined #ruby
allcentury has joined #ruby
<jhass> Ox0dea: haha, reminds me of some system we had to use at university
hanmac has joined #ruby
dmolina has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<adaedra> Ox0dea: ahah
dmolina has quit [Client Quit]
purplexed^ has joined #ruby
linocisco has joined #ruby
<linocisco> khon ni chi wa
robbyoconnor has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
Tuxist has joined #ruby
Tuxist has quit [Remote host closed the connection]
mbeasley has left #ruby ["WeeChat 0.4.2"]
tenderlove has quit [Read error: Connection reset by peer]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
<ibouvousaime> Ox0dea, thats so frustrating xD
<Ox0dea> ibouvousaime: It builds character.
tenderlove has joined #ruby
ericjphillips has joined #ruby
<Ox0dea> > For all its power, the computer is a harsh taskmaster. Its programs must be correct, and what we wish to say must be said accurately in every detail.
<Ox0dea> Welcome to the Thunderdome.
marr has quit [Ping timeout: 260 seconds]
prestorium has joined #ruby
dmolina has joined #ruby
<linocisco> is somebody using ruby with digium asterisk framework for mobile payment solution?
blackmesa has quit [Ping timeout: 252 seconds]
dmolina has quit [Client Quit]
<shevy> workmad3 ah right, I forgot that it would call methods on true or false
weihan has quit [Ping timeout: 260 seconds]
nhhagen has joined #ruby
mollusk_ has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
beauby has joined #ruby
<mollusk_> is it possible to do variable functions in ruby like in php?
<purplexed^> did you try asking google ? :)
<mollusk_> purplexed^, google keeps giving me unrelated results
<Ox0dea> Stupid Google.
<mollusk_> no matter how I search
<Ox0dea> Google so dumb.
<mollusk_> tried putting "variable functions" ruby
<mollusk_> then it gave me infor for php
<Ox0dea> It's a sign.
linocisco has quit [Quit: Leaving]
<mollusk_> ruby probably can't do it
<adaedra> mollusk_: it all depends on what you want to do.
sts has left #ruby [#ruby]
<mollusk_> var = "hello"
<purplexed^> mollusk, maybe it's called something else in Ruby
<mollusk_> $var()
<Ox0dea> mollusk_: We have #send.
<adaedra> &ri Object#send
atzorvas has joined #ruby
minimalism has quit [Quit: leaving]
<mollusk_> I want to avoid creating a class
<Ox0dea> >> def foo; 42; end; help = 'foo'; send help # mollusk_
<ruboto> Ox0dea # => 42 (https://eval.in/455413)
<adaedra> But there's other ways (maybe more suited to what you want) to have it, like Object#method
<adaedra> mollusk_: no need. Everything's already an object.
<Ox0dea> Except methods.
<mollusk_> right, like puts "hi".chomp
<mollusk_> everything is a method
tenderlove has quit [Read error: Connection reset by peer]
<Ox0dea> 42 is not a method.
jds has joined #ruby
<adaedra> >> def foo; 42; end; help = method(:foo); help.call
<ruboto> adaedra # => 42 (https://eval.in/455414)
<adaedra> So many ways,
<adaedra> s/,/./
<Ox0dea> We must keep telling ourselves it's a good thing.
<shevy> java is good
<shevy> java is good
ldnunes has quit [Read error: Connection reset by peer]
<mollusk_> is "method" something generic or just a place holder?
<mollusk_> is it actual syntax
<adaedra> no, it's Object#method
<shevy> everything is a method!
<apeiros> method is a method
<shevy> hehe
<mollusk_> wtf
<apeiros> just like Class is a Class :)
<mollusk_> lol
<Ox0dea> >> method(:method).class # mollusk_
<ruboto> Ox0dea # => Method (https://eval.in/455415)
<adaedra> >> "hello".method(:itself).call
<ruboto> adaedra # => "hello" (https://eval.in/455416)
<purplexed^> method is a method is a method .. how poetic
<adaedra> mh, miss a thing
<adaedra> >> "hello".method(:method).call(:itself).call
<ruboto> adaedra # => "hello" (https://eval.in/455417)
<mollusk_> too bad it's not as easy as $variable()
<shevy> mollusk_ you can return an object that has bound a method in ruby; have a look at http://ruby-doc.org/core-2.2.0/UnboundMethod.html
ldnunes has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
<adaedra> mollusk_: send and method are rather easy.
<Ox0dea> mollusk_: How do you send a dynamic message to an object in PHP?
<ljarvis> also you should use public_send
<apeiros> +1
solocshaw has quit [Ping timeout: 240 seconds]
pathrocle has joined #ruby
<Ox0dea> ljarvis: So I should stop invoking `public(*private_methods)` before I use a given class in anger?
pathrocle has quit [Remote host closed the connection]
<adaedra> I wonder why the short one is not the public one.
pathrocle has joined #ruby
<Ox0dea> This is #ruby.
<ljarvis> as a side note, i would *happily* take method objects over optional parens
<ljarvis> adaedra: because Ruby
<shevy> probably because .send is older
<Ox0dea> And better.
<Ox0dea> And more MINASWAN.
<shevy> definitely it is shorter
<adaedra> `Object.minaswan`?
tenderlove has joined #ruby
<Ox0dea> We need #safe_send for parity with `.?`, methinks.
<shevy> minaswan sounds like the name of a samurai
<adaedra> minaswan lake
<Ox0dea> #try! nearly made it in, but matz doesn't like the name.
<shevy> lol there is a lake called that way?
<adaedra> >_>
<Ox0dea> shevy << :some_culture
snebel has joined #ruby
atzorvas has quit [Quit: leaving]
* Ox0dea << ASWAN
<Ox0dea> Sorry, shevy.
<Ox0dea> adaedra was punning: https://en.wikipedia.org/wiki/Swan_Lake
beauby has quit [Ping timeout: 246 seconds]
allcentury has quit [Ping timeout: 256 seconds]
<adaedra> badly.
<Ox0dea> ASWAN has my tongue.
<shevy> nobody understands Ox0dea except for Ox0dea
<Ox0dea> I kinda like it this way.
pwnd_nfsw has quit [Remote host closed the connection]
<shevy> mina the swan
snebel has quit [Client Quit]
<shevy> alot the beast
Igorshp has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
ryez has quit [Ping timeout: 246 seconds]
<Ox0dea> The former would make for a great mascot.
<adaedra> So Mina the Swan is our new Ruby mascot?
<adaedra> I'm okay with this.
beauby has joined #ruby
<shevy> I <3 alot http://goo.gl/J19wyu
atzorvas has joined #ruby
jenrzzz has joined #ruby
<Ox0dea> shevy: Have you by chance read her book?
<shevy> her?
<Ox0dea> Allie Brosh, the creator of the Alot.
<shevy> never heard that name before
tenderlove has quit [Read error: Connection reset by peer]
<adaedra> shevy: do you <3 alot a lot?
<shevy> I don't read alot of books anymore :<
<shevy> adaedra I think the idea is awesome, we need something like this for ruby too. the ruby logo is not cute enough
subscope has joined #ruby
<adaedra> shevy: great! So you should ask matz.
<shevy> crystal also has this problem but at least you can rotate the crystal logo with the mouse
araujo_ has joined #ruby
SylarRuby has quit []
nhhagen has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
senayar has joined #ruby
decoponio has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<shevy> I think someone once drew a ruby hydra ... let me first google for it though, my memory isn't the best
aryaching has joined #ruby
joncol has joined #ruby
<mollusk_> Thanks for the links, I created a gist to explain exactly what I want to do. https://gist.github.com/silvernode/7f32d8838ca0a7cc65e3
<joncol> Hi, I'm having some difficulties with RSpec: how can I
<joncol> ...
<shevy> oh yes, http://pow.cx/
<TheBrayn> yes you can
<adaedra> mollusk_: don't use for.
araujo has quit [Ping timeout: 260 seconds]
<mollusk_> why?
tomaz_b has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<shevy> I tried to make it better by giving it colours, but I actually managed to make it worse :( http://shevegen.square7.ch/RUBY_HYDRA.png
<adaedra> Because there's rubyier ways. Like pkgMgrs.each do |i|
roshanavand has quit []
<ibouvousaime> on text.split does one needs to precise (" ") when the text is being split according to spaces?
<adaedra> &ri String#split
<shevy> ibouvousaime I usually give an argument to .split because I can't remember the default, but you should be able to omit it
tenderlove has joined #ruby
<adaedra> [docs intensifies]
<mollusk_> adaedra, same difference though
symbol_ has joined #ruby
<ibouvousaime> ohh okay thanks
<adaedra> mollusk_: that was for style
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> you can send(pkgMgr)
kalusn has quit [Remote host closed the connection]
<mollusk_> adaedra, not sure how that would be what I want
<Ox0dea> ...
<adaedra> You want to call a method which name is store into pkgMgr, right?
<adaedra> is stored*
<joncol> Hi, I'm having some difficulties with RSpec: how can I verify that a callback (a Proc) is invoked? I pass the callback to the invoker by using `obj.register_listener(listener.method(:callback_name))`. My callback is actually invoked, but I don't know how to make RSpec verify this. Doing `expect(listener).to receive(:callback_name)` doesn't work (I guess since the proc is not called via the `listener` object,
<joncol> but directly using `Proc#call`. Can anyone help?
<shevy> "I have functions already made: apt-get()"
<adaedra> `expect(callback).to be_called`, iirc
SOLDIERz has joined #ruby
atzorvas has quit [Quit: leaving]
<shevy> are you sure you have a method called apt-get made mollusk_
<adaedra> Ah, didn't catch that :D
<adaedra> Mh, I have `.to receive(:call)` in my code
gustav_ has quit [Remote host closed the connection]
<mollusk_> shevy, it's in another file, also, functions are called methods in ruby right?
<adaedra> yes
<adaedra> methods are defined with def
<mollusk_> I get caught up with the syntax and terminology in ruby a lot
<mollusk_> vs other languages
<adaedra> A method is a function bound to an object.
<Ox0dea> >> "foo \s\t\n bar \s\t\n baz".split # ibouvousaime
<ruboto> Ox0dea # => ["foo", "bar", "baz"] (https://eval.in/455436)
<joncol> adaedra: I've tried `.to receive(:call)` but that doesn't work, since the method is not called via the object.
symbol has joined #ruby
<adaedra> ah, it worked in my case
symbol_ has quit [Read error: Connection reset by peer]
<joncol> adaedra: Did you call the method using normal obj.call(...) syntax?
kalusn has joined #ruby
Igorshp has joined #ruby
gustav_ has joined #ruby
<adaedra> yes
jgpawletko has joined #ruby
<mollusk_> adaedra, send("#pkgMgr") worked, but looking at it, I can't understand what I am reading, which is why I wasn't sure if it would help me. Is it just looking for a method named 'pacman()' and then calling it?
<mollusk_> #{pkgMgr}
<adaedra> `send(pkgMgr)` was sufficient.
<adaedra> also, like ljarvis said, public_send
<adaedra> (my bad)
<Ox0dea> joncol: You'll need to attach the expectation to the Proc itself; do you know how to get hold of it?
<adaedra> So yes, it tries to call a method named "pacman" on the current object (here main) and run it
chop1n has joined #ruby
dionysus69 has joined #ruby
<Ox0dea> adaedra: That's not quite right.
<mollusk_> adaedra, public_send, is like like local vs global variables?
chop1n is now known as Guest88859
<mollusk_> same concept?
<adaedra> no, public vs private
<adaedra> Ox0dea: which part?
<Ox0dea> >> def foo; end; method(:foo).owner # adaedra
<ruboto> Ox0dea # => Object (https://eval.in/455447)
<mollusk_> would I need to have it private if it was in main?
<Ox0dea> Not `main`.
<mollusk_> public I mean
ericjphillips has quit [Quit: Leaving.]
teclator has quit [Ping timeout: 256 seconds]
<adaedra> Ox0dea: ah
<Ox0dea> Excessive pedantry in the current context, certainly, but top-level methods don't go on `main`.
bruno- has joined #ruby
<adaedra> mollusk_: methods are by default public.
<adaedra> Ox0dea: that's good to know anyway.
<adaedra> mollusk_: how well do you know ruby?
Rollabunna has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
dionysus69 has quit [Client Quit]
blaxter has quit [Read error: Connection reset by peer]
atomical has joined #ruby
blaxter has joined #ruby
Guest88859 has quit [Client Quit]
<Ox0dea> >> def foo; end; 1.public_methods.include?(:foo) # adaedra
<ruboto> Ox0dea # => false (https://eval.in/455480)
<Ox0dea> (I'll stop.)
gustav_ has quit [Remote host closed the connection]
<adaedra> mmh?
<Ox0dea> >> def foo; end; 1.private_methods.include?(:foo)
<ruboto> Ox0dea # => true (https://eval.in/455483)
<Ox0dea> The default visibility of a method is contextual.
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
<mollusk_> adaedra, not well at all
<Ox0dea> mollusk_: What made you decide to ditch PHP?
<mollusk_> Ox0dea, never used php, it just came up in google
bruno- has quit [Ping timeout: 268 seconds]
<mollusk_> I did a lot of bash scripting, some lua and a tiny bit of python before ruby
<mollusk_> I wanted a python without whitespace
<adaedra> mollusk_: don't try to do a parallel with PHP. They are not the same languages and do not work the same way.
<Ox0dea> s/PHP/Bash/, now that we know.
<adaedra> That too.
cantaberry has joined #ruby
<mollusk_> adaedra, I figured that, but I thought php wouldn't be the only one to have variable functions
<mollusk_> it seems to be the only one
nemo_ has quit [Remote host closed the connection]
<adaedra> What you described above is not really variable functions though.
<adaedra> It's a cheap trick.
<mollusk_> well, syntax wise
<Ox0dea> mollusk_: Is that the important part?
<adaedra> And once again, I don't remember how it is called.
synthroid has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
<Ox0dea> Dynamic dispatch.
<mollusk_> Ox0dea, pretty much, I get confused with ruby because there are ruby ways of doing things
<shevy> ruby is php on elegant steroids
Rollabunna has joined #ruby
<adaedra> That's not the term I'm looking for, Ox0dea. I'm talking about having functions in variables directly.
<shevy> there are simple ways in ruby
<shevy> eval!
<Ox0dea> adaedra: First-class citizenship?
<adaedra> Ox0dea: danke schön.
<mollusk_> var.each |i| vs for i, seems pretty straight forward but if I say it for the first time I would go....what the heck?
tenderlove has quit [Ping timeout: 246 seconds]
<zwdr> Ruby is infinitely more fun than PHP
<mollusk_> saw*
<adaedra> mollusk_: you can't save a method itself in a variable in Ruby. However, you can get Method object which you can call, through method, you can have Proc objects for anonymous functions, or you can use (public_)send if you just have the name.
<shevy> .each is the object-centric variant, think of an inventory like a backpack, then you shuffle through its content via .each
micw has joined #ruby
<micw> hi
<mollusk_> adaedra, so I can't do: myvar = methodName() ?
<Ox0dea> No, that'll invoke the method.
<adaedra> No, but you can myvar = method(:methodName)
dmolina has joined #ruby
gustav_ has joined #ruby
<adaedra> ri:Object#method will create a Method object that you can call, which will forward to the real method.
<adaedra> er, I didn't deploy that yet.
Kamilion has joined #ruby
n008f4g_ has joined #ruby
<adaedra> >> def foo; "hello"; end; myvar = method(:foo); myvar.call # mollusk_
<ruboto> adaedra # => "hello" (https://eval.in/455492)
skade has joined #ruby
jxs_ has quit [Ping timeout: 240 seconds]
<micw> Is this a ruby data structure? http://pastebin.com/2uTwqb9q
<ruboto> micw, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b285c85540fa506c5b02
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<adaedra> micw: looks like ruby code.
<Ox0dea> micw: Yes, that's a Hash.
sgambino has joined #ruby
<ibouvousaime> Ox0dea, it worked xD
<Ox0dea> mollusk_: Do you know why shell languages tend to be considered "stringly typed" (a pejorative pun on "strongly")?
JJM has joined #ruby
<micw> I'd like to convert this to: http://pastebin.com/7jcWQVgY
<ruboto> micw, as I told you already, please use https://gist.github.com
<mollusk_> Ox0dea, nope
<Ox0dea> mollusk_: Look into it.
* adaedra is out
<joncol> Ox0dea: Ah, you mean like `expect(my_proc).to receive(:call)`?
<micw> I could do it using sed/grep/tr but probably that can easyly be done with a few ruby lines?
gustav_ has quit [Ping timeout: 265 seconds]
<Ox0dea> joncol: Just so.
<joncol> Ox0dea: cool, thx
<Ox0dea> micw: hash#each { |key, value| puts ... }
<Ox0dea> *hash.each
pwnd_nsfw has quit [Remote host closed the connection]
<micw> how can i read the hash from command line arg?
<Ox0dea> Where is it now?
<Ox0dea> In a file?
<micw> environment variable
<micw> $ANSIBLE_GROUPS
<Ox0dea> You have a Ruby Hash in an environment variable...?
<micw> no, i put it there
<Ox0dea> Reconsider.
<micw> orinately it's part of a vargantfile
benjito has joined #ruby
<micw> i can have it where I like to have it ;-)
jgt1 has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
<micw> e.g. as 1st command line arg of my script
nertzy has joined #ruby
ericjphillips has joined #ruby
<Ox0dea> Why does it need to be passed in on the command line if it's already in the environment?
<micw> Ox0dea, it would take a while do explain all the stuff around and would not help with my ruby problem
<mollusk_> I'll share my program with everyone soon. It's just a simple package manager wrapper. If I end up getting pull requests, that's cool :)
<Ox0dea> >> ENV['SHELL'] # micw
<ruboto> Ox0dea # => nil (https://eval.in/455493)
<Ox0dea> Dammit. Anyway, Ruby gives you ENV.
<micw> short summary: I need to do something that normally Vagrant (a ruby tool) does for me
<micw> Ox0dea, I found ARGV
tubuliferous_ has quit [Ping timeout: 256 seconds]
astrobun_ has quit [Remote host closed the connection]
<Ox0dea> micw: Yeah, definitely copy it over from ENV to ARGV; you can never be too careful.
<Ox0dea> I've heard of environment variables sneaking off at odd hours.
Xeago has quit [Remote host closed the connection]
benjito has quit [Ping timeout: 260 seconds]
<tagrudev> any ideas - ruby installation on ubuntu 14.04
<mollusk_> heh, I just realized that methods won't work for my purpose. can't use a hyphen in method names
<micw> unfortunately $ARGV[0] is a string, not a hash...
<mollusk_> if pkgMgr = "apt-get", I can't have it call a method called apt-get
teclator has joined #ruby
gustav_ has joined #ruby
<mollusk_> the way I had it before was apt-get.rb, require_relative "#{pkgMgr}"
marr has joined #ruby
gustav__ has joined #ruby
gustav_ has quit [Read error: Connection reset by peer]
mag42c has joined #ruby
tvw has joined #ruby
<micw> solved (eval)
jxs_ has joined #ruby
gustav__ has quit [Read error: Connection reset by peer]
gustav_ has joined #ruby
<micw> how cn i write the "puts..." part of "hash.each { |key, value| puts ... }" as block with several lines?
rbennacer has joined #ruby
<Ox0dea> mollusk_: Name your methods with underscores as appropriate and use `send pkgMgr.tr('-', '_')`.
gusTester has joined #ruby
joncol has quit [Quit: leaving]
sharkman has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 264 seconds]
dorei has joined #ruby
<mollusk_> send(pkgMgr.tr('-', '_'))
monq has quit [Remote host closed the connection]
<micw> ah, do...end. solved
lkba_ has quit [Remote host closed the connection]
<micw> thank you for advise. problem solved ;-)
<mollusk_> Ox0dea, ok, so ruby made that really easy to solve :P
<Ox0dea> mollusk_: So much more whence that came.
<mollusk_> I was afraid I would have to use something like sed
<mollusk_> eww
jas02 has quit [Quit: jas02]
<mollusk_> Ox0dea, there is a problem though, since pacman doesn't have a hyphen like apt-get does, the ruby script crashes when pkgMgr is set to pacman.
<Ox0dea> >> 'pacman'.tr('-', '_')
<ruboto> Ox0dea # => "pacman" (https://eval.in/455496)
rwilcox_ has joined #ruby
sdfgsdfg has joined #ruby
sdfgsdfg has quit [Changing host]
sdfgsdfg has joined #ruby
sdfgsdfg has quit [Max SendQ exceeded]
<mollusk_> Ox0dea, This is what I had: send(pkgMgr.tr('-', '_'))
<ibouvousaime> I wrote
<ibouvousaime> if number%3 ==0 return true
<ibouvousaime> else return false
<ibouvousaime> and then
<ibouvousaime> I get as error (ruby):7: warning: else without rescue is useless
<ibouvousaime> any idea of what is causing that ?
segfalt has quit [Quit: segfalt]
<Ox0dea> ibouvousaime: You're missing an `end`.
<apeiros> ibouvousaime: also after the condition in the if you either need a newline or a `then`
<ibouvousaime> I wrote end after than but that end is said to be unexpected
<ibouvousaime> ohh
<ibouvousaime> it worked
<Ox0dea> ibouvousaime: http://i.imgur.com/ScYVTGY.png
<Ox0dea> Why do you write your code like that?
<Ox0dea> Are you trying to make it look like some other language?
<ibouvousaime> humm no
astrobun_ has joined #ruby
<ibouvousaime> it s a random style I guess :/
<mollusk_> Ox0dea, nevermind it worked, I had an unrelated error
<ibouvousaime> the "then" fixed it
hfp_work has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<caliostro> hi there!
hfp_work has joined #ruby
<caliostro> i am playing a bit with thread, i don't understand how abort_on_exception works
<caliostro> GameOverException stop the main thread
<caliostro> why?
nemo_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
rwilcox_ has quit [Quit: WeeChat 1.2-dev]
RegulationD has joined #ruby
dmolina has quit [Quit: Leaving.]
rwilcox has joined #ruby
bruno- has joined #ruby
TPBallbag has joined #ruby
JDiPierro has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
vifino has quit [Ping timeout: 246 seconds]
t_mmyv has joined #ruby
sankaber has joined #ruby
t_mmyv has quit [Client Quit]
sankaber has quit [Remote host closed the connection]
pathrocle has quit [Ping timeout: 240 seconds]
ajafo has quit [Ping timeout: 246 seconds]
Pupeno has quit [Remote host closed the connection]
imperator has joined #ruby
ajafo has joined #ruby
sankaber has joined #ruby
Pupeno has joined #ruby
Igorshp has joined #ruby
<sonOfRa> When I add a gem via git to my bundle, and it contains native extensions, does it build the whole thing on bundle install or do I need to do additional things (arguments?) for that?
vifino has joined #ruby
e1senhorn has joined #ruby
auzty has quit [Quit: Leaving]
vondruch has quit [Quit: Ex-Chat]
Guest50 has joined #ruby
TPBallbag has quit []
gyre007 has left #ruby [#ruby]
wldcordeiro has joined #ruby
e1senhorn has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
e1senhorn has joined #ruby
<sonOfRa> looks like the .so is present. nevermind :)
araujo_ has quit [Quit: Leaving]
dravine has quit [Quit: dravine]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
mnzaki has quit [Quit: *fade*]
mnzaki has joined #ruby
TheTime has joined #ruby
dionysus69 has joined #ruby
TheTime has quit [K-Lined]
aryaching has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
levifig_ has quit []
syath has joined #ruby
`tim` has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
joncol has joined #ruby
justbleed has joined #ruby
`tim` has quit [Disconnected by services]
justbleed is now known as `tim`
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dravine has joined #ruby
<caliostro> i am realy sure how abort_on_exception works
<joncol> When using RSpec and doing `expect(obj).to receive(:fun_name)` it seems RSpec overwrites my `fun_name` method with an empty mock. Must I use `.and_call_original` to get it to work with my defined method?
<caliostro> an unhandled exception kill the main thread too
Rollabunna has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
jgt1 has joined #ruby
atzorvas has joined #ruby
<mollusk_> so I got everything working correctly and made a git repo
<mollusk_> just need to work on a readme
<mollusk_> just supports, void linux, arch linux and debian based systems. Run this script and it should pick up your package manager
<adaedra> õ_o
<mollusk_> it's just a wrapper :)
<adaedra> That code style is really strange.
<mollusk_> meh
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
<mollusk_> I didn't want to use case either but I also don't feel like learning a gem right now
<mollusk_> or ption parser
<mollusk_> optionparser*
cwong_on_irc has quit [Quit: Leaving.]
<mollusk_> a friend of mine was working on this with me. We figure out that ruby has the shift command.
sepp2k has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<adaedra> Urgh globals
dionysus69 has joined #ruby
benjito has joined #ruby
atzorvas has quit [Quit: leaving]
TomyWork has quit [Ping timeout: 260 seconds]
<mollusk_> adaedra, yeah I should fix that
mnzaki has quit [Quit: *fade*]
charliesome has joined #ruby
<adaedra> imo, it would be better if you did modules representing your package manager, with constants inside these modules defining what you do with your globals. Then, in your main code, find the right module and call the constants on it.
Igorshp has quit [Remote host closed the connection]
pdoherty has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
<mollusk_> adaedra, that is wayyy beyond my level right now which is why I hacked this together.
<mollusk_> right now I am just happy that it works
Igorshp has joined #ruby
<adaedra> that's an enhancement proposition, for you to consider, if you want to push things further.
idefine has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
wldcordeiro has joined #ruby
benjito has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
`tim` has quit [Ping timeout: 260 seconds]
gustav_ has quit [Remote host closed the connection]
<Ox0dea> >> methods.select { |m| method(m).owner == self }
<ruboto> Ox0dea # => [] (https://eval.in/455516)
<Ox0dea> Poor `main`.
gustav_ has joined #ruby
<Ox0dea> Of course, it's not a class, so it can't have any methods.
<Ox0dea> >> methods.select { |m| method(m).owner == singleton_class }
<ruboto> Ox0dea # => [:to_s, :inspect] (https://eval.in/455517)
Igorshp has quit [Remote host closed the connection]
<Ox0dea> All it knows how to do is print "main".
dhjondoh has quit [Quit: dhjondoh]
<adaedra> It knows who it is, it's already something.
<Ox0dea> >> '2deep4me'.gsub(/d\/, &:next)
<ruboto> Ox0dea # => /tmp/execpad-080d38c449a7/source-080d38c449a7:2: unterminated regexp meets end of file ...check link for more (https://eval.in/455518)
<Ox0dea> Dammit.
<Ox0dea> >> '2deep4me'.gsub(/\d/, &:next)
<ruboto> Ox0dea # => "3deep5me" (https://eval.in/455519)
tkuchiki has joined #ruby
JDiPierro has quit [Remote host closed the connection]
pathrocle has joined #ruby
prestorium has quit [Read error: Connection reset by peer]
TomyWork has joined #ruby
prestorium has joined #ruby
allcentury has joined #ruby
Xeago has joined #ruby
<Ox0dea> mollusk_: I thought you said you don't like `sed`?
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
gustav__ has joined #ruby
araujo has joined #ruby
gustav_ has quit [Ping timeout: 252 seconds]
<mollusk_> Ox0dea, sed is scary, I do like it but always have trouble understanding what is going in just by reading it at first glance.
RobertBirnie has joined #ruby
araujo has quit [Max SendQ exceeded]
<Ox0dea> Are you saying `tux` *wasn't* generated by a Bash-to-Ruby translation program? :P
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
ferr has joined #ruby
<mollusk_> Ox0dea, like I said, I spent a lot of time in bash :P
<adaedra> Ox0dea: there's such tools?
<mollusk_> I actually made something pretty big in bash as if it was your standard programming language
Encapsulation has joined #ruby
<mollusk_> I spent a lot of time on that
symbol has quit [Ping timeout: 240 seconds]
beauby has joined #ruby
<Ox0dea> adaedra: It's not outside the realm of possibility.
symbol has joined #ruby
synthroid has quit []
araujo has quit [Client Quit]
stardiviner has joined #ruby
lkba has joined #ruby
<mollusk_> I think people would find use in zymp3 but so far I don't think anyone besides me has used it
<Ox0dea> mp{d,v} = <3
<mollusk_> I always have trouble with mpd
<adaedra> instead of if [ -f /usr/bin/xxx ] to check of a binary, it would be better to use which and check for the return value. This way, it works for people who have these binaries at other places, i.e. /usr/local/bin/xxx
Guest50 has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> check of
<adaedra> how do I English
<Ox0dea> Just keep putting one letter in front of another.
Outlastsheep has quit [Ping timeout: 250 seconds]
<mollusk_> adaedra, yeah I didn't know about which then
<mollusk_> I should update zymp3
ponga has joined #ruby
<adaedra> Ox0dea: like this? jkhdscjkewkjfhuue
<ibouvousaime> do you see something wrong here
<ibouvousaime> def welcome(name)
<ibouvousaime> returns "Welcome to Ruby, #{name}"end
<ibouvousaime> welcome("star")
kellabyte_ is now known as kellabyte
<ibouvousaime> I know I made another stupid mistake
<Ox0dea> >> require 'digest/bubblebabble'; Digest.bubblebabble 'justlikethat' # adaedra
<ruboto> Ox0dea # => "xipil-hesol-gurok-nepik-hytuk-memol-goxux" (https://eval.in/455525)
toy has quit [Quit: Leaving...]
<Ox0dea> Or that.
<adaedra> yes, the end should be on a line alone, ibouvousaime
<adaedra> Ox0dea: haha
<ibouvousaime> undefined method `returns' for #<Context:0x10aa1e4>
<adaedra> And it's 'return', not 'returns'
<mollusk_> #{name};end
<adaedra> too slow.
Igorshp has joined #ruby
<adaedra> mollusk_: unterminated string.
<ibouvousaime> oooohhhh
<imperator> Ox0dea, agree (regarding new_ostruct_member behavior)
<adaedra> But try not to abuse ;.
<Ox0dea> ibouvousaime: I don't know that I've ever encountered a syntactical masochist, but here you are.
<mollusk_> puts "Hello #{name}";end
<Ox0dea> imperator: Definitely too late to change it. :<
<Ox0dea> For <3.0, anyhow.
<imperator> trying to figure out a way around it
<adaedra> each thing on its line and each line its thing.
teclator has joined #ruby
<ibouvousaime> I was blind to that error
<ibouvousaime> rofl
<mollusk_> ibouvousaime, my point was, if you don't want to put end of another line you can use a semicolon between end
<imperator> Ox0dea, there's ostruct2 I suppose
<Ox0dea> I was not aware.
<adaedra> mollusk_: you can != you should.
<Ox0dea> imperator: Opposed on principle to monkey-patching #new_ostruct_member?
<adaedra> (and ibouvousaime too)
<imperator> well, this is part of a large code base, not sure what effect that would have
<Ox0dea> I think you'll just have to rename the member, then.
<imperator> of course, i wouldn't be in this mess but for someone reopening Object
balazs has joined #ruby
<mollusk_> adaedra, it does tend to not look good at all
rbennacer has joined #ruby
synthroid has joined #ruby
Taha_The_Hacker has joined #ruby
<mollusk_> but not always
banister has joined #ruby
<imperator> I was like, nah, there's no way these azure resource keys would ever conflict with ruby core method names
<Taha_The_Hacker> Hi
<imperator> then someone went and added a "namespace" method to Object - d'oh!
Taha_The_Hacker has quit [Client Quit]
JDiPierro has joined #ruby
emilkarl has joined #ruby
joncol has quit [Quit: leaving]
RegulationD has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 240 seconds]
<imperator> welp, ostruct2 seems to have its own issues
wprice has joined #ruby
<adaedra> Time to start ostruct3
cdg has joined #ruby
but3k4 has quit [Ping timeout: 240 seconds]
ericjphillips has quit [Quit: Leaving.]
<imperator> "I built an ostruct library and it sank into the swamp."
Ilyes512 has joined #ruby
Igorshp has joined #ruby
anisha has joined #ruby
anisha_ has joined #ruby
shredding has joined #ruby
<momo-reina> Anyone seen the latest Ruby commit? How do you the dereferencing operator? https://t.co/qzw4GnDXCE
64MAD4ZDZ has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
lkba has quit [Remote host closed the connection]
<Ox0dea> momo-reina: It's a "null coalescing" operator.
<Ox0dea> nil.?foo.?bar == nil
jlevine has joined #ruby
<Ox0dea> Instead of an explosion.
chop1n has joined #ruby
tagrudev has quit [Remote host closed the connection]
chop1n is now known as Guest20541
<havenwood> nil.?nil? #=> true
GriffinHeart has joined #ruby
<adaedra> wait
<imperator> that looks horrible
dopie has quit [Ping timeout: 246 seconds]
GriffinHeart has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 260 seconds]
<momo-reina> Ox0dea: you mean instead of checking for nil during ternary expressions?
but3k4 has joined #ruby
sameerynho has quit [Quit: Leaving]
<Ox0dea> momo-reina: Or &&, but yes.
<adaedra> havenwood: I don't understand where the true comes from.
anisha has quit [Read error: Connection reset by peer]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
64MAD4ZDZ has quit [Ping timeout: 255 seconds]
<momo-reina> Ox0dea: thanks
<Ox0dea> imperator: How do you feel about this? https://eval.in/455530
<Ox0dea> momo-reina: Sure thing.
SOLDIERz has quit [Ping timeout: 265 seconds]
<imperator> Ox0dea, hmm....this looks....promising
<Ox0dea> adaedra: `nil` still behaves like `nil` if it responds to the method.
<adaedra> Ox0dea: yeah, but since it's nil, it should stops at the .? ?
<Ox0dea> No?
mistermocha has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<Ox0dea> It's the arguments that don't get evaluated.
<Ox0dea> `nil.?foo(exit)` won't terminate your program.
<Ox0dea> Wait, no.
<Ox0dea> havenwood: `nil.?nil?` is `nil`.
johnny56 has joined #ruby
<havenwood> Ox0dea: aha...
<Ox0dea> Bug?
<Ox0dea> It is, isn't it?
<imperator> damn, i think Delegator is fighting me
anisha_ has quit [Ping timeout: 240 seconds]
<adaedra> Ox0dea: that sounds more logical to me.
freerobby has joined #ruby
astrobun_ has quit [Remote host closed the connection]
mengu has quit []
mistermocha has quit [Remote host closed the connection]
<Ox0dea> I feel like `nil.?to_s` should be "nil".
sunya7a has quit [Quit: leaving]
mistermocha has joined #ruby
<havenwood> Ox0dea: That was my expectation. Hem.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
micw has quit [Quit: Ex-Chat]
idefine has quit [Remote host closed the connection]
absolutejam has quit [Ping timeout: 260 seconds]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<imperator> tried OpenStruct.prepend OpenStructOverride before the call to JSON.parse, too - no joy
andykingking has quit [Quit: Leaving.]
ferr has quit [Quit: WeeChat 1.3]
bigmac_ has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
beauby has quit [Ping timeout: 246 seconds]
jlevine has quit [Quit: ChatZilla 0.9.92 [Firefox 38.0.1/20150518070114]]
umgrosscol has joined #ruby
idefine has joined #ruby
absolutejam has joined #ruby
<Ox0dea> imperator: Aye, Delegator is managing to insert itself between Foo and OpenStructOverride.
doublemalt_ has joined #ruby
Guest20541 has quit [Quit: Textual IRC Client: www.textualapp.com]
kimegede has quit [Quit: Linkinus - http://linkinus.com]
diegoaguilar has joined #ruby
anisha has joined #ruby
chop1n_ has joined #ruby
<Ox0dea> It doesn't work on recent Rubies, but it's at least theoretically possible to organize the lookup chain however you please.
teclator has quit [Ping timeout: 240 seconds]
chrissonar has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 255 seconds]
karapetyan has quit [Remote host closed the connection]
doublemalt__ has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
zotherstupidguy has joined #ruby
TDJACR has quit [Ping timeout: 240 seconds]
sharkman has joined #ruby
BaroMeter has quit [Remote host closed the connection]
dravine_ has joined #ruby
<mollusk_> installed ruby on another machine, I am getting: undefined method 'tr' for nil:NilClass (NoMethoderror)
Xeago has joined #ruby
dionysus69 has joined #ruby
<canton7> mollusk_, you're calling .tr on something that's nil
<canton7> that's literally all that we can say right now, with the information you've given us
<havenwood> >> nil.tr
<ruboto> havenwood # => undefined method `tr' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/455558)
<mollusk_> canton7, Oh I know why now
<mollusk_> canton7, thanks for getting my brain going
dravine has quit [Ping timeout: 246 seconds]
dravine_ is now known as dravine
<canton7> :P
karapetyan has quit [Ping timeout: 268 seconds]
<Ox0dea> mollusk_: Was it because you don't have any of the package managers installed?
<Ox0dea> Consider using `tar` as a fallback.
* imperator needs to look at Delegator
riotjones has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
<Ox0dea> imperator: It'd be interesting if #inherit were a method.
<Ox0dea> Then `Foo.prepend(Override).inherit(Delegator)` might do the trick.
dopamean_ has joined #ruby
sl33k has joined #ruby
<sl33k> hey guys
<Ox0dea> sl33k: Well, hey there, little lady.
<sl33k> can anyone recommend a fine book to learn ruby? not too beginner focus would be helpful as I have a strong CS and Java background
<jhass> ?books
<ruboto> You can find a list of recommended books at http://ruby-community.com/pages/links
dionysus69 has quit [Read error: Connection reset by peer]
<sl33k> goal is to pick up rails next, but want to have more than solid grasp of ruby as I may give it some of my future scripting task
rodfersou is now known as rodfersou|lunch
<Ox0dea> > more than solid
<sl33k> jhass: which one would you recommend?
<jhass> dunno, didn't read any
dionysus69 has joined #ruby
<adaedra> Ox0dea: he wants to be the Iron Rubyist.
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
macowie has joined #ruby
EmeraldExplorer has joined #ruby
<jhass> isn't IronRuby a thing?
<solars> hey, what gem to use for quick mysql access to dump to csv?
<adaedra> jhass: dead, I'm afraid.
jxl180 has joined #ruby
<adaedra> solars: mysql, mysql2. But I think it's totally achievable with mysql cli.
<solars> yes but I need to do some processing
kp666 has quit [Remote host closed the connection]
<sl33k> jhass: so i'll just scheme through a few till i get comfy then
<jhass> solars: check sequel
troulouliou_div2 has joined #ruby
ksteck has joined #ruby
tkuchiki_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
norc has quit [Ping timeout: 246 seconds]
elektronaut has joined #ruby
TDJACR has joined #ruby
ajb- is now known as ajb
pwnd_nsfw has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
mordocai has joined #ruby
Channel6 has joined #ruby
hfp_work has quit [Ping timeout: 268 seconds]
dfockler has joined #ruby
chipotle has joined #ruby
banister has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
aufi has quit [Quit: Konversation terminated!]
<sl33k> Ox0dea: thanks mate
<sl33k> Ox0dea: no shit with that?
<sl33k> One more thing, I'm stuck to windows at work...so would want a setup on it. Is this possible and sane
kies^ has joined #ruby
<imperator> this seems to suggest you can work around it, but I'm not seeing how: http://devblog.orgsync.com/2013/03/22/decorate-your-ruby-objects-like-a-boss/
<zwdr> yea, that's possible. The official website recommends RubyInstaller afaik
hfp_work has joined #ruby
<jhass> sl33k: ymmv on sane, but http://rubyinstaller.org/
psycho_one has quit [Quit: Leaving]
<zwdr> I use the same setup on my desktop at home, and it works OK
<sl33k> zwdr: you have a windows at home? ewww
<ibouvousaime> I got another question, when you got a method with rev=false and you want to call that method, do you just need toput true as argument or rev=true as argument?
<sl33k> i only use windows at work. cos work and zero choice
<sl33k> :(
<zwdr> sl33k: I like to play video games :s
jobewan has joined #ruby
<sl33k> zwdr: well...
<jhass> ibouvousaime: the former, foo(rev=true) is the same as rev=true; foo(rev)
<zwdr> I mostly dev on my laptop tho, with proper linux
<jhass> ibouvousaime: that is you just assign a local
<ibouvousaime> here is the method def alphabetize (arr, rev=false)
<adaedra> sl33k: if the windows setup is not for you, you can try to setup a Linux VM.
hfp_work has quit [Remote host closed the connection]
<ibouvousaime> so it should be alphabetize (something, true) if I wanted to call it ?
<jhass> ibouvousaime: without the spaces before the ( in both cases, but yes
p0wn3d has joined #ruby
segfalt has joined #ruby
marr has quit [Ping timeout: 264 seconds]
dravine_ has joined #ruby
<sl33k> adaedra: i dont want a full VM (bad experience with those) want something lighter
<sl33k> adaedra: not sure if docket plays in that space?
<jhass> sl33k: boot from a thumb drive? :P
<adaedra> docker?
<adaedra> It would need a vm under windows, afaik
<sl33k> how about cygwin ?
but3k4 has quit [Read error: Connection reset by peer]
<adaedra> meh
<nickjj> sl33k, docker will run in a light weight VM on windows
but3k4 has joined #ruby
<nickjj> it's just abstracted from you with docker-machine
<darix> it is not a VM
balazs has quit [Ping timeout: 265 seconds]
<sl33k> nickjj: ruby -v gives me ruby 2.2 on my windows
dravine has quit [Ping timeout: 256 seconds]
dravine_ is now known as dravine
<sl33k> think i might be good
<sl33k> so to launch the interpeter? ruby command doesnt do it on cygwin
jobewan has quit [Ping timeout: 255 seconds]
<jhass> you mean the repl? irb
<sl33k> typing python gives me the repl though
<havenwood> ?pry sl33k
<ruboto> sl33k, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<nickjj> darix, sure it is
hfp_work has joined #ruby
Igorshp has quit [Remote host closed the connection]
<sl33k> bleh. would just use the first link...
<sl33k> download and install a full setup
<sl33k> thanks guys
sunya7a has joined #ruby
<jhass> ?guys sl33k
<ruboto> sl33k, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<sl33k> thanks folks
<sl33k> ruboto: seen
<jhass> ?justabot
<ruboto> I'm just a bot. You don't need to address me.
<havenwood> ruboto: good mornin'
<jhass> troll
<sl33k> jhass: i didnt see your mention. would have guessed
<havenwood> Probably a good idea to go ahead and get on the good side of our future robotic overlords.
polishdub has joined #ruby
<havenwood> Likely lead by ruboto.
<jhass> yeah yeah, you promised that so many times now
rippa has joined #ruby
karapetyan has joined #ruby
subscope has quit [Quit: Textual IRC Client: www.textualapp.com]
aswen has quit [Quit: WeeChat 1.3]
dopie has joined #ruby
karapetyan has quit [Remote host closed the connection]
decoponyo has joined #ruby
kaleido has joined #ruby
codecop has joined #ruby
devoldmx_ has joined #ruby
bruno-_ has joined #ruby
<mollusk_> Ox0dea, I was passing the wrong thing to which
Hounddog has quit [Remote host closed the connection]
<ibouvousaime> I really dont know what codeacademy wants me to do now it looks like its working http://i.imgur.com/BRNNUHR.png http://i.imgur.com/vL5sU0K.png but they dont accept it
<mollusk_> xbps didn't exist but xbps-install does
rservant_ has joined #ruby
cbetta_ has joined #ruby
jmhmccr_ has joined #ruby
aganov has quit [Quit: Leaving]
<mollusk_> ibouvousaime, oh god, code academy
NaN|2 has joined #ruby
jaygen has joined #ruby
NaN|2 has quit [Client Quit]
<mollusk_> it always made whatever language I was trying to learn, more confusing than it was.
Dreamer3_ has joined #ruby
MVPhelp_ has joined #ruby
perrier_ has joined #ruby
rservant_ is now known as rservant
jobewan has joined #ruby
ELCALOR_ has joined #ruby
momo-reina has quit [Ping timeout: 240 seconds]
ammar has joined #ruby
speaking2ode has joined #ruby
Skelz0r_ has joined #ruby
rtl_ has joined #ruby
shadeslayer_ has joined #ruby
peterhu_ has joined #ruby
benjito has joined #ruby
hostess_ has joined #ruby
lucas_ has joined #ruby
tomaz_b has joined #ruby
y0da has joined #ruby
lucas_ is now known as Guest9865
pdoherty has joined #ruby
funnel_ has joined #ruby
kobain has joined #ruby
verdoc_ has joined #ruby
iamvery_ has joined #ruby
jxl180 has quit [Remote host closed the connection]
twodayslate_ has joined #ruby
rfv_ has joined #ruby
giuseppesolinas has joined #ruby
mollusk_ has quit [Ping timeout: 250 seconds]
epochwolf|2 has joined #ruby
Seich_ has joined #ruby
DanKnox^ has joined #ruby
linc01n_ has joined #ruby
veloutin_ has joined #ruby
ujjain- has joined #ruby
Gnubie_ has joined #ruby
nullwarp_ has joined #ruby
jhass|off has joined #ruby
Derasi has joined #ruby
LBRapid_ has joined #ruby
omninonsense has joined #ruby
Sigma01 has joined #ruby
Ankhers_ has joined #ruby
iooner- has joined #ruby
mgorbach_ has joined #ruby
CustosLimen has joined #ruby
Olipro_ has joined #ruby
gustav__ has quit [Remote host closed the connection]
twe4ked_ has joined #ruby
jimeh_ has joined #ruby
chopin has joined #ruby
gustav_ has joined #ruby
an0ma1y has joined #ruby
benjito has quit [Ping timeout: 272 seconds]
korolyov has joined #ruby
larissa_ has joined #ruby
Billias_ has joined #ruby
teotwaki_ has joined #ruby
<sl33k> thing about learning new language is staying long enough to use it
wldcordeiro has quit [Ping timeout: 264 seconds]
zzak_ has joined #ruby
rideh- has joined #ruby
<TheBrayn> and actually finding practical applications
<sl33k> angularjs is interesting. gives me something new. ruby on rails however is same request-response cycle
but3k4 has quit [*.net *.split]
tkuchiki_ has quit [*.net *.split]
TDJACR has quit [*.net *.split]
shredding has quit [*.net *.split]
cdg has quit [*.net *.split]
emilkarl has quit [*.net *.split]
syath has quit [*.net *.split]
bruno- has quit [*.net *.split]
decoponio has quit [*.net *.split]
twe4ked has quit [*.net *.split]
Sigma00 has quit [*.net *.split]
Ox0dea has quit [*.net *.split]
hostess has quit [*.net *.split]
darkf has quit [*.net *.split]
devoldmx has quit [*.net *.split]
epochwolf has quit [*.net *.split]
blackjid has quit [*.net *.split]
Ankhers has quit [*.net *.split]
jsrn has quit [*.net *.split]
Olipro has quit [*.net *.split]
ggherdov has quit [*.net *.split]
speaking1ode has quit [*.net *.split]
jhass has quit [*.net *.split]
MVPhelp has quit [*.net *.split]
rideh has quit [*.net *.split]
asi_ has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
xxneolithicxx has quit [*.net *.split]
jaygen_ has quit [*.net *.split]
tpendragon has quit [*.net *.split]
Klumben has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
teotwaki has quit [*.net *.split]
jimeh has quit [*.net *.split]
catbusters has quit [*.net *.split]
Billias has quit [*.net *.split]
LBRapid has quit [*.net *.split]
universa1 has quit [*.net *.split]
Bugboy1028 has quit [*.net *.split]
drbrain has quit [*.net *.split]
Nightmare has quit [*.net *.split]
Miron has quit [*.net *.split]
korolyov_ has quit [*.net *.split]
george2 has quit [*.net *.split]
bf4_ has quit [*.net *.split]
Gnubie__ has quit [*.net *.split]
ammar_ has quit [*.net *.split]
verdoc has quit [*.net *.split]
Guest88785 has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
segmond has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
lucas has quit [*.net *.split]
duoi has quit [*.net *.split]
iooner has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
ElSif has quit [*.net *.split]
frankS2 has quit [*.net *.split]
peterhu has quit [*.net *.split]
funnel has quit [*.net *.split]
beagles has quit [*.net *.split]
ricer2 has quit [*.net *.split]
Senjai has quit [*.net *.split]
bluntman has quit [*.net *.split]
CustosLim3n has quit [*.net *.split]
perrier has quit [*.net *.split]
j416 has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
zzak has quit [*.net *.split]
skmp has quit [*.net *.split]
rfv has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
DanKnox[away] has quit [*.net *.split]
waxjar has quit [*.net *.split]
mgorbach has quit [*.net *.split]
an0ma1y- has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
Seich has quit [*.net *.split]
Silex has quit [*.net *.split]
jaxxstorm has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
twodayslate has quit [*.net *.split]
sfr^ has quit [*.net *.split]
linc01n has quit [*.net *.split]
skarn has quit [*.net *.split]
larissa has quit [*.net *.split]
moss has quit [*.net *.split]
jwang has quit [*.net *.split]
ghr has quit [*.net *.split]
rmrrn has quit [*.net *.split]
veloutin has quit [*.net *.split]
ujjain has quit [*.net *.split]
iamvery has quit [*.net *.split]
cbetta has quit [*.net *.split]
nullwarp has quit [*.net *.split]
rtl has quit [*.net *.split]
universaL has joined #ruby
Olipro_ is now known as Olipro
epochwolf|2 is now known as epochwolf
twe4ked_ is now known as twe4ked
jhass|off is now known as jhass
teotwaki_ is now known as teotwaki
Billias_ is now known as Billias
funnel_ is now known as funnel
<sl33k> server generates resonse from templates
mgorbach_ is now known as mgorbach
m_shir has joined #ruby
tkuchiki has joined #ruby
lokulin has quit [Quit: bye!]
Miron has joined #ruby
darkf has joined #ruby
<sl33k> business as usual
<sl33k> at the end of the day backend is boring without EIPs etc
ggherdov_ has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
Channel6 has quit [Ping timeout: 250 seconds]
george2 has joined #ruby
joncol has joined #ruby
jmhmccr_ is now known as jmhmccr
zzak_ is now known as zzak
cbetta_ is now known as cbetta
RegulationD has joined #ruby
centrx has joined #ruby
bryanray has joined #ruby
dfinninger has joined #ruby
gustav_ has quit [Ping timeout: 260 seconds]
<sl33k> hate net splits
sunya7a has quit [Quit: leaving]
<tubbo> sl33k: it's part of why rails is a lot better now than it used to be :P
jaxxstorm has joined #ruby
<sl33k> tubbo: i dont follow
<tubbo> even though most people would disagree with me, rails is a lot more stable and people hear "no" a lot more than they hear "yes" when they ask if it can do something. that's a good thing. it means rails has a place in the world.
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
jwang has joined #ruby
ghr has joined #ruby
Guest7778 has joined #ruby
amitchellbullard has joined #ruby
<tubbo> rails is *really* good at building full stack web applications that serve HTML. it's also pretty damn good at building API-only web applications that serve JSON.
ghr has quit [Client Quit]
sunya7a has joined #ruby
twodayslate_ is now known as twodayslate
Davey has quit [Max SendQ exceeded]
jobewan has quit [Ping timeout: 244 seconds]
romero has quit [Remote host closed the connection]
Davey has joined #ruby
Davey has quit [Changing host]
Davey has joined #ruby
<sl33k> tubbo: hmm...have you used other web stacks? I have. So it would be interesting learning and comparing notes
<centrx> It's also excellent at getting you from railroad station A to railroad station B
towler has quit [Quit: WeeChat 0.3.8]
bluntman has joined #ruby
<sl33k> tubbo: i'm also learning rails cos most of my younger friends prefer it and I cant do projects opensource with them in Java :'(
Guest85414______ has joined #ruby
<tubbo> sl33k: yes, i've built stuff with python and php using various web frameworks.
<tubbo> as well as ruby
duoi has joined #ruby
<tubbo> sl33k: haha, why not? are they too cool for java or something?
<tubbo> you can really stick it to them by using jruby
Klumben has joined #ruby
<sl33k> tubbo: they are silly i guess.
<sl33k> tubbo: but seriously though the wind has blown albeit strongly. ruby and rails cant be ignored
Igorshp has joined #ruby
Bugboy1028 has joined #ruby
<sl33k> so many fun projects within my community in ruby/rails. moved to Sheffield recently. NO Java User group. But I found a ruby one; shrub
<tubbo> sl33k: definitely. if you have a bunch of java/CS experience i would suggest maybe just jumping right in? :()
<tubbo> :)*
towler has joined #ruby
kies^ has quit [Ping timeout: 265 seconds]
Asher has joined #ruby
xxneolithicxx has joined #ruby
ghr has joined #ruby
joncol has quit [Quit: leaving]
<tubbo> like, start the hartl rails tutorial and see how lost you get...if you need to get some references on ruby...but you'd probably be right at home building classes/modules/et. al.
xxneolithicxx has quit [Max SendQ exceeded]
segmond has joined #ruby
caliostro has quit [Quit: Exit-Chat]
<tubbo> typically java devs who get started with ruby make "too many classes" :)
rfv_ is now known as rfv
skmp has joined #ruby
<tubbo> because they don't realize how much ruby actually provides for them (since java didn't)
TDJACR_ has joined #ruby
catbusters has joined #ruby
Igorshp has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
<sl33k> and ruby guys just use too many gems
sfr^ has joined #ruby
Kamilion has quit [Ping timeout: 255 seconds]
<tubbo> hah, well...that's kind-of the big win of ruby right?
skade has joined #ruby
<havenwood> sl33k: no trolling.
ELCALOR_ is now known as ELCALOR
<tubbo> too many gems in my Gemfile (too many gems)
<sl33k> tubbo: i just implement an apache camel solution at work. i wonder what the ruby solution would be.
Igorshp has joined #ruby
<tubbo> sl33k: is that a new cigarette or something?
<sl33k> so matured enterprise languages would always have their place
ggherdov_ is now known as ggherdov
syath has joined #ruby
mark2 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PART #nethunter :PONG :wolfe.freenode.net"]
frankS2 has joined #ruby
xxneolithicxx has joined #ruby
<sl33k> tubbo: well the team that built camel named it after a cigarette so i heard. Its an Enterprise Integration framework
<sl33k> havenwood: i am not
<tubbo> haha cool
<sl33k> tubbo: i should get to my learning...you'll see me around in the next few weeks
<tubbo> my favorite rails tutorial is `rails new` :)
<havenwood> rails new tutorial
<adaedra> rails new bloat
teclator has joined #ruby
<havenwood> adaedra: then `cd bloat` and `rails new bloat`, rinse and repeat
larissa_ is now known as larissa
jsrn has joined #ruby
acke has quit [Remote host closed the connection]
<adaedra> havenwood: can barely do that 3 times on a 1TB drive before you're out of free space.
larissa has left #ruby ["Leaving"]
drbrain has joined #ruby
Igorshp has quit [Ping timeout: 240 seconds]
nhhagen has quit [Ping timeout: 260 seconds]
johnny56 has quit [Quit: WeeChat 1.3]
Nightmare has joined #ruby
dionysus69 has joined #ruby
cdg has joined #ruby
nemo__ has joined #ruby
yardenbar has quit [Ping timeout: 265 seconds]
Outlastsheep has joined #ruby
absolutejam has quit [Ping timeout: 256 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
riotjones has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
b3nt_pin has joined #ruby
nemo__ has quit [Remote host closed the connection]
nemo_ has quit [Ping timeout: 246 seconds]
kaleido has joined #ruby
b3nt_pin is now known as Guest56372
gusTester has left #ruby [#ruby]
waxjar has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
karapetyan has joined #ruby
bf4 has joined #ruby
a2z has joined #ruby
atomical has joined #ruby
karapetyan has quit [Remote host closed the connection]
Ox0dea has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
mary5030 has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
beauby has joined #ruby
nemo_ has joined #ruby
a2z has quit [Client Quit]
SCHAAP137 has quit [Remote host closed the connection]
Cache_Money has joined #ruby
Ankhers_ is now known as Ankhers
<Ox0dea> imperator: In many jurisdictions, gravedigging isn't technically illegal unless one subsequently exhumes a body, so I think you should be good.
A124 has quit [Ping timeout: 268 seconds]
nemo__ has joined #ruby
<imperator> lol
bb010g has joined #ruby
rehat has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Guest56372 is now known as beagles
nemo__ has quit [Remote host closed the connection]
Jardayn has joined #ruby
tkuchiki has joined #ruby
step1step2 has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
<imperator> so it hasn't seen an update in 2 years...
romero has joined #ruby
A124 has joined #ruby
romero is now known as Guest53110
nemo_ has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
ceej has joined #ruby
baroquebobcat has joined #ruby
moss has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
lsmola_ has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
<ceej> morning. I'm trying to improve my ruby code. I came up with a way to recursively turn a flat keyed hash into a nested one. What would be a better more efficient way to do it? https://gist.github.com/800e0cdeea2e361dae25
HoloIRCUser has joined #ruby
Guest53110 has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
johnhamelink has joined #ruby
A124 has quit [Quit: '']
kraljev11 has joined #ruby
A124 has joined #ruby
jpfuentes2 has joined #ruby
slawrence00 has joined #ruby
Silex has joined #ruby
Igorshp has joined #ruby
absolutejam has joined #ruby
<shevy> you make a simple hash more complicated than it was before?
skarn has joined #ruby
step1step2 has joined #ruby
blackjid has joined #ruby
rcvalle has joined #ruby
ericjphillips has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
ricer2 has joined #ruby
kaleido has joined #ruby
abra0 is now known as ABRA0
HoloIRCUser is now known as bitfox
herbst has quit [Remote host closed the connection]
kaleido has quit [Client Quit]
<daxroc> Evening
ldnunes has quit [Quit: Leaving]
<gregf__> shevy: the flat was originally too complex ;)
<gregf__> oops: hash i meant
<daxroc> Anyone know an issue with net:http where it would truncate get requests 16384 chars in length but others of larger would succeed doesn't seem to be any rhyme or reason.
16WAAK2ZI has joined #ruby
Senjai has joined #ruby
symm- has joined #ruby
romero_ has joined #ruby
kraljev11 has quit [Ping timeout: 240 seconds]
<Ox0dea> ceej: I trust this is just for fun?
<daxroc> *plain curl requests doesn't seem to truncate the body
<adaedra> daxroc: you mean that get requests longer than 16384 chars pass?
<Ox0dea> daxroc: Are you on a really old machine?
rwilcox_ has joined #ruby
tpendragon_ has joined #ruby
j416 has joined #ruby
<daxroc> adaedra: no the truncated all seem to be that length
<adaedra> there may be a limit in the HTTP request length.
<daxroc> Ox0dea: no modern vms
absolutejam has quit [Ping timeout: 260 seconds]
<daxroc> adaedra: other requests return larger body contents
<adaedra> body != address
bitfox has quit [Read error: Connection reset by peer]
nanoz has joined #ruby
ldnunes has joined #ruby
<ceej> shevy: I'm just wanting it to be a nested hash. Ox0dea: yes
<Ox0dea> daxroc: Well, that it's a power of 2 is obviously pertinent; I thought perhaps your `sizeof(long)` was really small or something.
<Ox0dea> ceej: Do you know about autovivification?
wprice has quit [Ping timeout: 268 seconds]
wprice has joined #ruby
<ceej> Ox0dea: like using #tap on a hash?
Fredrich010 has joined #ruby
rwilcox has quit [Ping timeout: 265 seconds]
<Ox0dea> ceej: No, not at all.
absolutejam has joined #ruby
<Ox0dea> "Autovivify" means "to spring into existence" in this case.
<adaedra> Wise Ox0dea
johnny56 has joined #ruby
jenrzzz has joined #ruby
<Ankhers> How can I create a function within a class that does not require the use of dot syntax? e.g., my_func(hash) instead of instance.my_func(hash)
<ceej> Ox0dea: ok... just reading up on it
<Ox0dea> ceej: The Ruby example on Wikipedia leaves something to be desired.
adempus has joined #ruby
idefine has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
<Ox0dea> Ankhers: Could you clarify?
<daxroc> Ox0dea: ? Not following
nemo_ has joined #ruby
`based_pdev` has joined #ruby
<Ox0dea> daxroc: Ignore me on this one; I was almost certainly barking in the wrong forest.
SCHAAP137 has joined #ruby
beagles is now known as obviously
obviously is now known as beagles
nanoz] has joined #ruby
wldcordeiro has joined #ruby
beauby has quit [Ping timeout: 272 seconds]
`based_pdev` has quit [Client Quit]
jenrzzz has quit [Ping timeout: 250 seconds]
beagles is now known as obviously
based_pdev_ has quit [Ping timeout: 246 seconds]
obviously is now known as beagles
tubuliferous_ has joined #ruby
beagles is now known as seagulls
rservant_ has joined #ruby
seagulls is now known as beagles
sl33k has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
veloutin_ is now known as veloutin
<Ankhers> http://lpaste.net/143619 (I realize this should be some kind of class hierarchy, but this is what I have to deal with at the moment.)
rservan__ has joined #ruby
devoldmx_ has quit [Remote host closed the connection]
amclain has joined #ruby
nanoz has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
jbw has quit [Quit: ┌∩┐(◣_◢)┌∩┐]
towski_ has joined #ruby
dionysus69 has joined #ruby
ericjphillips has quit [Quit: Leaving.]
<Ox0dea> Ankhers: And which dots are you wanting to remove?
ericjphillips has joined #ruby
rservant has quit [Ping timeout: 272 seconds]
jxs_ has quit [Remote host closed the connection]
<Ankhers> Ox0dea: I'm getting complaints that it can't find the different build_my_class_* functions. I assumed it was because they are instance methods, which would require me to already have an instance of MyClass?
<Ox0dea> >> auto = Hash.new { |h, k| h[k] = Hash.new &h.default_proc }; auto[1][2][3] = 4; auto # ceej
<ruboto> Ox0dea # => {1=>{2=>{3=>4}}} (https://eval.in/455594)
rservant_ has quit [Ping timeout: 250 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
v4n has joined #ruby
<Ox0dea> Ankhers: Yes, that's right. Do you know how to define class methods?
snockerton has joined #ruby
trabulmonkee has joined #ruby
<Ankhers> def self.foo, but I don't really want to do that if I don't have to.
mistermocha has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ericjphillips has quit [Client Quit]
<Ankhers> Because I would need to call MyClass.build_my_class_foo
adempus is now known as Adempus
m_shir has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<Ankhers> I just thought there may be some way to only need to call build_my_class_* without having an instance or making it a class method.
jxs_ has joined #ruby
<Ankhers> Ox0dea: ^^
<Ox0dea> Ankhers: You probably want MyClass to be a module, and then you can `include` it where appropriate to "import" its instance methods.
<Ankhers> Ox0dea: Are they still going to be instance methods or would I be able to call them as a "regular" function.
NeverDie has joined #ruby
<Ankhers> Actually, instance methods in that case may be alright.
<Ox0dea> Ankhers: They would remain instance methods of the module, but they would become class methods where you included them.
<Ox0dea> Sorry, you'll want #extend, not #include.
<Ankhers> Ox0dea: I'll look into that. Thanks.
mistermocha has joined #ruby
<Ankhers> It has been too long since I have done ruby :(
<Ox0dea> Ankhers: For clarity: https://eval.in/455595
16WAAK2ZI has quit [Ping timeout: 240 seconds]
jxs_ has quit [Remote host closed the connection]
<Ankhers> Ox0dea: Thanks.
<Ox0dea> Sure thing.
<shevy> Ankhers so you came back to ruby! \o/
pdoherty has quit [Ping timeout: 252 seconds]
<Ox0dea> Ruby is the Hotel California.
<mehwork> how come this prints :foo instead of 'B': def foo(a: 'A', b: 'B') p b end
andikr has quit [Remote host closed the connection]
<mehwork> I know i should just be doing foo(whatever) and passing the dict in during call time, but still curious
rodfersou|lunch is now known as rodfersou
<workmad3> >> def foo(a: 'A', b: 'B') p b end foo
<ruboto> workmad3 # => /tmp/execpad-ced2521b0f97/source-ced2521b0f97:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/455596)
<workmad3> >> def foo(a: 'A', b: 'B') p b end; foo
Azure|dc has joined #ruby
<ruboto> workmad3 # => "B" ...check link for more (https://eval.in/455597)
<shevy> aha!
<workmad3> mehwork: it does print 'B'
<Ox0dea> mehwork: Method definitions evaluate to the name of the method being defined.
<workmad3> mehwork: but you're not calling it... so maybe you're just seeing the result of defining the method? :)
tjohnson has joined #ruby
<adaedra> Welcome to the Ruby language ♪
<adaedra> Such a lovely place ♪
rwilcox has joined #ruby
<Ox0dea> mehwork: You're defining a method #foo that takes two keyword arguments, and then its body prints the `b` parameter.
Channel6 has joined #ruby
<shevy> perhaps he is drunk!
<Ox0dea> >> foo = def bar; end; foo # mehwork
<ruboto> Ox0dea # => :bar (https://eval.in/455598)
Adempus has left #ruby ["Leaving"]
Azure has quit [Ping timeout: 240 seconds]
<Ox0dea> He can check out any time he likes.
<canton7> but he can never leave....
rwilcox_ has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
mr_r has joined #ruby
<mr_r> At the top level, is the currently open class Object?
<shevy> hotel california sucks
_djbkd has joined #ruby
<adaedra> D:
<jhass> mr_r: yes
<Ox0dea> jhass: Is it not main's singleton class?
benjito_ has joined #ruby
<jhass> Ox0dea: given the definee is Object ...
<shevy> >> self.class
<ruboto> shevy # => Object (https://eval.in/455599)
Peg-leg has quit [Quit: Leaving.]
Xeago has joined #ruby
<mr_r> jhass: So when a constant is looked up, it's looked up in the currently open class, which is Object? Correct?
<jhass> yes
<Ox0dea> >> TOPLEVEL_BINDING.receiver
<ruboto> Ox0dea # => main (https://eval.in/455600)
<rehat> is there a way to conditionally require a gem if it exists on the system?
dionysus69 has quit [Ping timeout: 250 seconds]
<jhass> rehat: only by rescuing LoadError
<mg^^> rehat: begin; require "foo"; rescue LoadError; end
<rehat> jhass: ahh right
<rehat> mg^^: thanks
dionysus69 has joined #ruby
<mg^^> I've done that a few times to provide optional functionality
n008f4g_ has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
araujo has quit [Ping timeout: 260 seconds]
benjito_ has quit [Ping timeout: 265 seconds]
p0wn3d has quit [Ping timeout: 250 seconds]
Guest50 has joined #ruby
senayar has quit []
hadees has quit [Quit: hadees]
Guest50 is now known as dmitch
<Ox0dea> >> $top == __id__; class Object; __id__ == $top; end # mr_r
<ruboto> Ox0dea # => false (https://eval.in/455602)
<mehwork> workmad3: woops, you're right. I thought i called it in the repl, but hadn't
<Ox0dea> It's unlikely to be of any significant relevance at this stage of your learning, but Object is not "the currently open class" at program start.
SylarRuby has joined #ruby
<Ox0dea> Scope and constant/method resolution are different things.
<imperator> I shall never give up, I shall never surrender: https://gist.github.com/djberg96/4ac8719663047e270170
Salve has joined #ruby
vondruch has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dmitch has quit [Client Quit]
<Ox0dea> I half-expected that to work.
dionysus69 has joined #ruby
Guest50 has joined #ruby
XV has joined #ruby
<mr_r> Ox0dea: They're different objects. Main is an instance of Object. They can't have the same ids.
segfalt has quit [Quit: segfalt]
<Ox0dea> mr_r: If we were "inside Object" at program start, `TOPLEVEL_BINDING.receiver` would be Object.
mwlang has joined #ruby
Guest50 has quit [Client Quit]
<mr_r> Ox0dea: We must be inside Object since all method definitions at the top level become private instance methods of Object.
naztharune has joined #ruby
<XV> Anyone know of any gems that work with assembly or of a way to combine assembly with ruby? I know how in C, but I haven't found anything conclusive yet.
dmitch has joined #ruby
<Ox0dea> >> singleton_class.send(:define_method, :foo) { 42 }; Object.foo rescue $! # mr_r
<ruboto> Ox0dea # => #<NoMethodError: undefined method `foo' for Object:Class> (https://eval.in/455603)
<Ox0dea> That really ought to settle the matter.
araujo has joined #ruby
p0wn3d has joined #ruby
maasha has joined #ruby
araujo has quit [Read error: Connection reset by peer]
<maasha> Do anyone know if there is a Ruby gem for parsing text files and generate C++ code ala flex/bison?
SylarRuby has quit []
<Ox0dea> maasha: SWIG goes the other way. :<
<maasha> I need a C++ code generator - and for some stupid reason such are written in C or C++
Xeago has quit [Remote host closed the connection]
<maasha> when makes it difficult and error prone at all levels.
<mr_r> Ox0dea: You're defining a singleton method for main there not for Object. Obviously Object is not going to respond to foo.
tubuliferous_ has quit [Ping timeout: 250 seconds]
<maasha> *which
<Ox0dea> mr_r: But where did I specify `main`?
<mr_r> Ox0dea: singleton_class is the singleton class for main.
Alayde has joined #ruby
<Ox0dea> mr_r: #singleton_class is a method that gives you the receiver's singleton class.
<mr_r> Ox0dea: Yes. And the receiver in this case is self. Aka, main.
<Ox0dea> Bingo!
gustav__ has joined #ruby
<Ox0dea> Thus, we are inside `main`, and not Object, at program start.
<Ox0dea> mr_r: If we were in Object at program start, it would've responded to `foo` just fine back there.
<mr_r> There are two different implicit contexts. We are inside `main` in the sense that all implicit method invocations are executed on main. But all method definitions are defined inside Object, as private instance methods.
bonhoeffer has joined #ruby
pdoherty has joined #ruby
<Ox0dea> mr_r: It is only my intent to disabuse you of the misconception that there is an implicit `class Object; ...; end` wrapped around your program.
eminencehc has joined #ruby
<mr_r> If it wasn't then how are methods being defined in the Object class?
<Ox0dea> That's an implementation detail.
mikecmpbll has quit [Ping timeout: 244 seconds]
<Ox0dea> It could just as well have been `main` at the top of the resolution trees, but that would be kind of silly.
XV has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<mr_r> Ox0dea: And how would you explain constant lookups then? Is there a special case in the context of the top level?
<Ox0dea> mr_r: I'm not sure how you mean.
synthroid has joined #ruby
acke has joined #ruby
tomaz_b has quit [Ping timeout: 252 seconds]
<mr_r> Ox0dea: Constants get looked up in the lexically enclosing scope first, then ancestors.
RobertBirnie has joined #ruby
<Ox0dea> Without explicit use of the scope resolution operator, yes.
Soda has joined #ruby
<Ox0dea> I trust you know that everything on which you can call a method or look up a constant descends from Object?
<jhass> Ox0dea: mr_r we're neither inside main nor inside Object. class changes self and the definee to the same thing. At the toplevel self is main, the definee is Object, thus the toplevel is not equivalent to class Object; ...; end; nor class << main; ...; end
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mr_r> Ox0dea: Yes, and we don't use the scope resolution operator at the top level. So the lexically enclosing scope must be Object since all top level constants are defined there.
<Ox0dea> jhass: "Definee" is new for me.
<jhass> Ox0dea: it's where def places methods
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mr_r> Ox0dea: The default definee is where instance methods get defined.
eminencehc has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
atomical has joined #ruby
idefine has joined #ruby
A124 has quit [Quit: '']
kalusn has quit [Remote host closed the connection]
DEA7TH has quit [Quit: DEA7TH]
ngscheurich has joined #ruby
rbennacer has quit [Remote host closed the connection]
karapetyan has joined #ruby
<mr_r> jhass: Why doesn't Object appear here? https://eval.in/455610
A124 has joined #ruby
psy_ has joined #ruby
<jhass> because you're not actually inside anything
<jhass> I tried to point out that all analogies regarding you're inside something fail
DEA7TH has joined #ruby
<jhass> toplevel is not equivalent to anything like class ???; ...; end; or module ???; ...; end, or even ???_eval { ... }
hadees has joined #ruby
<mr_r> jhass: So ruby does not follow its regular constant lookup algorithm when at the top level. It just looks in Object, right? (As a special case)
<jhass> yes
<jhass> and no
Kamilion has joined #ruby
<jhass> Object is always the last item
<jhass> implicitly
<jhass> nesting is empty? -> Object
symbol has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
<jhass> (Module.nesting + [Object]).find {|namespace| namespace.const_get(constant) } basically
Cache_Money has quit [Ping timeout: 265 seconds]
tvw has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
araujo has joined #ruby
<mr_r> jhass: What about inside a module itself, say M? Module.nesting inside a module is the module itself and a module does not have any superclasses, cause it isnt a class. It just looks in Object?
OS-18137 has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
freerobby has quit [Quit: Leaving.]
<jhass> .nesting is orthogonal to inheritance
<jhass> another thing you shouldn't mix up
mikecmpbll has joined #ruby
dfinninger has quit [Remote host closed the connection]
<jhass> and no, the above applies, it first looks into M and then in Object
freerobby has joined #ruby
steffkes has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
<steffkes> hey there
Pupeno has joined #ruby
<jhass> >> FOO = 1; BAR = 1; module M; FOO = 2; end; [module M; FOO; end, module M; BAR; end]
<ruboto> jhass # => [2, 1] (https://eval.in/455611)
hadees has quit [Quit: hadees]
eminencehc has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
gustav__ has quit []
arthurix_ has quit [Ping timeout: 250 seconds]
<adaedra> Good bye.
<mr_r> jhass: Right. So first in the module itself, then any included modules, then Object.
nemo__ has joined #ruby
c0m0 has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
<jhass> mr_r: it goes to all of .nesting first
<jhass> through
<mr_r> jhass: Yeah of course.
<jhass> so if we refine the above
maletor has joined #ruby
<jhass> (ancestors + Module.nesting + [Object]).find {|namespace| namespace.const_get(constant) } basically
<mr_r> jhass: Shouldn't it be (Module.nesting + ancestors + [Object]) ?
nemo_ has quit [Ping timeout: 260 seconds]
<jhass> I'm not sure, let's find out
<workmad3> ancestors then nesting ;)
<jhass> >> class A; FOO = 1; end; module B; FOO = 2; class C < A; FOO; end; end;
<ruboto> jhass # => 2 (https://eval.in/455612)
<TomyWork> I'm looking for a ruby library that can be used to traverse a git repository as a graph
<workmad3> hmm, weird...
<jhass> no, apparently nesting wins indeed
maletor has quit [Client Quit]
<jhass> TomyWork: looked into rugged yet?
<mr_r> jhass: Yeah.
<TomyWork> not yet
<TomyWork> looks promising
<workmad3> >> class A; FOO = 1; end; module B; FOO = 2; class C < A; FOO; end; end; B::C::Foo
<ruboto> workmad3 # => uninitialized constant B::C::Foo (NameError) ...check link for more (https://eval.in/455613)
<workmad3> >> class A; FOO = 1; end; module B; FOO = 2; class C < A; FOO; end; end; B::C::FOO
<ruboto> workmad3 # => 1 (https://eval.in/455614)
freerobby has quit [Quit: Leaving.]
bryanray has joined #ruby
<workmad3> jhass: ^ that's what I checked :/
ABRA0 is now known as abra0
<jhass> workmad3: well, nesting is empty/not considered there
bojanuana has joined #ruby
<workmad3> jhass: ah, true
<TomyWork> jhass what i need is to list the heads and find the parent for a commit
<jhass> I think rugged should be capable of that
<mr_r> I'm off. Later.
mr_r has left #ruby [#ruby]
<ceej> Ox0dea: sorry my internet net connection died :/
jessemcgilallen has joined #ruby
<Ox0dea> ceej: Unfortunate; did you see my hint about how to create an autovivifying Hash?
codecop has quit [Remote host closed the connection]
<ceej> I did, so I'd just use that so I don't need ||= {}
<Ox0dea> ceej: Oh, the benefits are much more than that.
firstdayonthejob has joined #ruby
<Ox0dea> Do you know how to #reduce?
jxl180 has joined #ruby
<ceej> I haven't used #reduce/inject that much no...
<Ox0dea> Ah, well, autovivification plus reduce(:[]) makes for a very neat solution here.
<pipework> Mmm, reduce
<Ox0dea> ceej: Well, don't peek if you don't want to be spoiled. :P https://eval.in/455622
VeryBewitching has joined #ruby
<Ox0dea> I wish there were a way to not have to explicitly assign to the final key, but assignment isn't a method, and that's really to the good.
ksteck has quit [Quit: Textual IRC Client: www.textualapp.com]
<ceej> Ox0dea: wow, that is a lot better using those methods....
<Ox0dea> Yay, Ruby!
lkba has joined #ruby
<ceej> thank you, I'm going to use these methods a lot more now :)
nemo__ has quit [Remote host closed the connection]
yardenbar has joined #ruby
arthurix_ has joined #ruby
weemsledeux has joined #ruby
<ceej> Ox0dea: what would you recommend as some good online reading to better learn to use these methods day to day?
<shevy> I just found rand($.) in old code
<Ox0dea> shevy: That's dastardly.
JDiPierro has joined #ruby
<Ox0dea> ceej: The only two "fancy" methods there are Hash#default_proc (which is scarcely so useful as it was here), and #reduce, which is covered in just about every corner of the Web. :P
CooloutAC has left #ruby ["Selakem Shalom, PEACE"]
<TomyWork> jhass looks like it does. thanks for the suggestion
<Ox0dea> Really, try not to see it as "magic"; it's all simple building blocks combined to form convenient abstractions.
<pipework> Ox0dea: What are you talking about, willis? I love using default_proc
vigintas has quit [Ping timeout: 260 seconds]
<Ox0dea> pipework: Self-referentially, though?
arthurix has quit [Ping timeout: 264 seconds]
hakunin has joined #ruby
vigintas has joined #ruby
benjito has joined #ruby
<TomyWork> i'm making a project and the only pre-requirement i want is rvm. How do I go about doing that, preferably without telling the user to run a mile of shellcode?
<TomyWork> prerequisite*
agent_white has joined #ruby
<shevy> Ox0dea I also just had a funny other error... when you set an environment variable called CSRC, pointing to a directory, compiling exiv2 from source will fail
<TomyWork> a project with gems and such and they should be fetched when the project is first run
rservan__ has quit [Quit: Leaving...]
iamvery_ has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<shevy> TomyWork have you not just described what bundler is doing?
<TomyWork> bundler manages ruby versions too?
<shevy> you can probably specify some mandatory ruby version
<shevy> I am sure you don't want to control the ruby version that your user has
kidoz has joined #ruby
<shevy> "We will now install ruby 1.8.7"
Igorshp has quit [Remote host closed the connection]
<jxl180> well, does having a .ruby-version file with rvm force a user to have that specific version of ruby, or just a comparable version?
rbennacer has joined #ruby
<pipework> TomyWork: Look into packaging your app up with traveling ruby.
<ceej> Ox0dea: I see how to use #default_proc here http://ruby-doc.org/core-1.9.3/Hash.html#method-i-default_proc-3D, in your pastie though I can't figure out how it's being set... is it just automatically set and recursively calls the Hash.new you defined on ret?
nemo_ has joined #ruby
<pipework> Unless you really want them to have to install a development toolchain.
benjito has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
decoponyo has quit [Quit: Leaving...]
<Ox0dea> ceej: That's right; ret's default_proc specifies that non-existent keys should map to a Hash with ret's default_proc which specifies that...
<steffkes> i'm curious, did a bit of research but i'm still not entirely satisfied with the answers - what you guys & girls use for a json api which is going to be written in ruby? having worked mainly with php in the past, i'm seeing different frameworks like sanatra that look rather small but already things like templating and stuff. on the other hand grape, which seems to be more a one-man show over the years ;)
<ceej> Ox0dea: ah, I see that now looking at this example http://apidock.com/ruby/Hash/default_proc
iamvery has joined #ruby
<TomyWork> shevy well ideally i would like to make sure they're using the ruby version i developed against
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Ping timeout: 265 seconds]
Fredrich010 has quit [Remote host closed the connection]
Pupp3tm4st3r has quit [Remote host closed the connection]
<shevy> yeah, that is why you'd have to specify a version. In normal gems, via .gemspec, this is done via an entry such as: s.required_ruby_version = '>= 2.2.3', I am sure bundler has similar ways, see what jxl180 wrote
<TomyWork> oh well... rvm 2.2 do bundle exec ./myscript.rb isnt so bad after all
mistermocha has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
jxl180 has quit [Remote host closed the connection]
Xiti has joined #ruby
mistermocha has joined #ruby
ekleog has quit [Ping timeout: 250 seconds]
doublemalt_ has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 272 seconds]
DoubleMalt has joined #ruby
rwilcox has quit [Ping timeout: 272 seconds]
tpendragon_ is now known as tpendragon
eminencehc has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
based_pdev_ has joined #ruby
ddv has quit [Ping timeout: 250 seconds]
ekleog has joined #ruby
eminencehc has joined #ruby
Caseh has joined #ruby
<Caseh> Please, I'm looking for a channel for Ruby on Rails
<pipework> Caseh: We have those! #ruby, and #rubyonrails
<pipework> For the latter, you may need to read the topic and follow instructions to be heard.
<Caseh> Thanks!
ddv has joined #ruby
InternetFriend has joined #ruby
bojanuana has quit [Ping timeout: 244 seconds]
maasha has quit [Quit: Page closed]
DoubleMalt has quit [Remote host closed the connection]
<Ox0dea> Damn. I meant to give this to XV who asked about doing Assembly in Ruby: https://eval.in/455629
bricker has joined #ruby
`tim` has joined #ruby
dfinninger has joined #ruby
<Ox0dea> I've gotta skedaddle; somebody kindly hand it off to them if they return.
segfalt has joined #ruby
<steffkes> hm, i guess my question was a bit too generic and we need more specific ones that can be answered with y/n? ;>
<jhass> steffkes: well, JSON API is kind of generic, those can get quite complex or stay really simple
pocketprotector- has joined #ruby
symbol has joined #ruby
<Ox0dea> steffkes: In any case, this question almost always boils down to choosing the HTTP library which most tickles your fancy.
<shevy> tickling his fancy!
jxl180 has joined #ruby
solars has quit [Ping timeout: 256 seconds]
<Ox0dea> Got shellacked whizbangs, you say?
kies^ has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
<steffkes> jhass: i'd like to keep it simple for now ;) getting to know the screwdriver first - if it gets more fancy, and i know what part of the library/framework i quite like or don't like .. it's easier to decide where to go next
symbol has quit [Ping timeout: 265 seconds]
<jhass> well, it was meant as a "tell us what you actually want to do"
rwilcox has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
blackjid has quit [Max SendQ exceeded]
mwlang has quit [Quit: mwlang]
<jhass> and then we can tell what tool we would choose for that job
The_Phoenix has joined #ruby
blackjid has joined #ruby
<TomyWork> gem_make.out
<shevy> php
<TomyWork> nice file name
<jhass> shevy: I can +b shevy!*@*$#php if you wish
<steffkes> jhass: sure :) one endpoint that expects a given json structure (version information) and a few endpoints (max five) to retrieve that information again. we're talking about systems that report their versions and a UI that will retrieve it afterwards. for now, nothing fancy for authorization & stuff - JWT might be used later on.
<shevy> TomyWork fun fact, I am having strainge appearances of gmon.out files
<pipework> Insert joke about banning everyone from that channel being in everyone's best interests.
tigarcia has joined #ruby
<steffkes> nothing fancy as in "probably a static api key" maybe even just one, not one per account or something like that.
<jhass> steffkes: okay, lightweight sounds good for that, sinatra is the most popular on the pretty lightweight side (good learning resources), sequel should get you along for the DB interface
devoldmx has joined #ruby
<steffkes> just want to play around with it. i'd know what i'd do in a language like php - but before i use something random in ruby, i though i'd come here first to ask for advice (:
eminencehc has quit [Remote host closed the connection]
willardg has joined #ruby
dmitch has joined #ruby
<shevy> yeah... things ought to be simple
<pipework> steffkes: Depending on how many endpoints and the complexity, you might just use rack.
eikood has joined #ruby
<steffkes> jhass: kk, was wondering because sinatra already brings all the template stuff with it
<pipework> But sinatra is a nice DSL though.
devoldmx_ has joined #ruby
Pupp3tm4st3r has joined #ruby
<jhass> steffkes: that should impose any overhead if you don't call into it
<jhass> *should not, sigh
<pipework> Negligible overhead at load time, but probably nothing even noticeable after.
chopin has quit [Remote host closed the connection]
eminencehc has joined #ruby
<steffkes> if one is already concerned with runtime-overhead for a (just said) "simple thing" .. not sure :D i thought that it might influence the way it's used. so that you have to _disable_ it if you don't want to have it, something like that :)
<steffkes> just not using it .. sound's good to me
<jhass> sinatra works by returning a string from your handler basically
SCHAAP137 has quit [Quit: Leaving]
<jhass> the templatiing integration simply provides helpers to return a rendered template there
codecop has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
<steffkes> got it. will give it a try. has been a few hours since my last ruby project
<steffkes> ty jhass, pipework
<pipework> steffkes: A few hours? That's like years in software time, which is like decades in real time.
<pipework> Godspeed, steffkes.
baweaver has joined #ruby
<steffkes> that should have been years, obviously :D
<jhass> mh, software time, real time, what kind of time is the hours then?
<TomyWork> is there anything that automatically pulls in dependencies like cmake or libs via apt-get and such??
<TomyWork> -?
<steffkes> a few hours ago was clojure-time .. still a bit puzzled by that
<TomyWork> gem dependencies*
baweaver has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
solars has joined #ruby
nanoz] has quit [Ping timeout: 260 seconds]
<shevy> TomyWork not really, normally; gem is primarily a dependency-manager for gems written in ruby, or for gem-addons (e. g. written in C, and then you can compile the ruby bindings to that C code)
<steffkes> doh, someone just mentioned grape - any thoughts on that? propably even compared to sinatra?
<shevy> it's usually the responsibility of the user to get the required components, such as nokogiri requires some .h files which are often in the devel-package on a linux distribution
<steffkes> well, i just give it a try in one of them :)
leafybas_ has joined #ruby
tigarcia has quit []
tigarcia has joined #ruby
yeticry has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
bryanray has joined #ruby
barhum2013 has joined #ruby
barhum2013 has left #ruby [#ruby]
tigarcia has quit [Client Quit]
tigarcia has joined #ruby
nemo__ has joined #ruby
leafybasil has quit [Ping timeout: 240 seconds]
nemo_ has quit [Ping timeout: 265 seconds]
KensoDev has quit []
leafybas_ has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
benjito_ has joined #ruby
dfockler has quit [Ping timeout: 244 seconds]
nemo__ has quit [Remote host closed the connection]
VeryBewitching has quit [Quit: Konversation terminated!]
mistermocha has quit [Remote host closed the connection]
polishdub_ has joined #ruby
polishdub has quit [Ping timeout: 240 seconds]
choke has joined #ruby
arup_r has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
baweaver has joined #ruby
JJM has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
darkf has quit [Quit: Leaving]
segfalt has quit [Quit: segfalt]
Synthead has joined #ruby
Fredrich010 has joined #ruby
howdoicomputer has joined #ruby
ryotarai has joined #ruby
ledestin has quit [Max SendQ exceeded]
cpruitt has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupp3tm4st3r has quit [Remote host closed the connection]
choke has joined #ruby
The_Phoenix has quit [Ping timeout: 268 seconds]
loc22 has joined #ruby
eminencehc has quit [Remote host closed the connection]
barhum2013 has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
ItSANgo has quit [Quit: Leaving...]
agent_white has quit [Quit: brb]
Ainieco has joined #ruby
<Ainieco> hello
<havenwood> Ainieco: hi
eminencehc has joined #ruby
kadoppe has quit [Ping timeout: 255 seconds]
VeryBewitching has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ainieco> what the point of Mutex#try_lock if it doesn't locks if it's possible? i'd like to lock only if it's possible immediatley otherwise don't lock at all
baweaver has quit [Remote host closed the connection]
kadoppe has joined #ruby
krz has joined #ruby
The_Phoenix has joined #ruby
<jhass> >> m = Mutex.new; m.try_lock; m.locked?
<ruboto> jhass # => true (https://eval.in/455639)
dfinninger has quit [Remote host closed the connection]
<Ainieco> jhass: oh, it actually locks, great
agent_white has joined #ruby
cdg has quit [Remote host closed the connection]
baweaver has joined #ruby
cyle has joined #ruby
The_Phoenix has quit [Client Quit]
acke has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
OS-18137 has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
OS-18137 has joined #ruby
Synthead has quit [Remote host closed the connection]
Galas has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
choke has joined #ruby
jenrzzz has joined #ruby
matp has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
dopie has joined #ruby
romero_ has quit [Quit: leaving]
symbol has joined #ruby
romero has joined #ruby
adac has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
Alayde has quit [Ping timeout: 244 seconds]
yeticry has quit [Ping timeout: 264 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
solars has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
idefine has joined #ruby
polishdub has joined #ruby
idefine_ has joined #ruby
chopin has joined #ruby
polishdub_ has quit [Ping timeout: 256 seconds]
ericjphillips has joined #ruby
`based_pdev` has joined #ruby
arthurix has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
loc22 has quit [Quit: Lingo: www.lingoirc.com]
ericjphillips has quit [Client Quit]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
rails090 has joined #ruby
prestorium has quit [Quit: Leaving]
devoldmx has joined #ruby
macowie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cyle> test
naftilos76 has quit [Quit: Αποχώρησε]
<pipework> failed
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 272 seconds]
<shevy> redo
weaksauce has joined #ruby
brendan- has joined #ruby
brendan- is now known as bmurt
based_pdev_ has quit [Ping timeout: 240 seconds]
devoldmx has quit [Remote host closed the connection]
macowie has joined #ruby
devoldmx_ has quit [Ping timeout: 250 seconds]
arthurix_ has quit [Ping timeout: 255 seconds]
bonhoeffer has joined #ruby
macowie has quit [Client Quit]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
<imperator> rescue
<jhass> retry
Pupeno has quit [Remote host closed the connection]
diegoviola has joined #ruby
matp has joined #ruby
macowie has joined #ruby
diego3 has joined #ruby
yeticry has joined #ruby
diegoviola is now known as Guest33607
<pipework> next
segfalt has joined #ruby
diego3 is now known as diegoviola
jackjackdripper has joined #ruby
skcin7 has joined #ruby
wldcordeiro has quit [Ping timeout: 240 seconds]
<shevy> surrender
SCHAAP137 has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
yfeldblum has joined #ruby
eminencehc has quit [Remote host closed the connection]
jobewan has quit [Ping timeout: 244 seconds]
al2o3-cr has joined #ruby
dikaio has joined #ruby
<TomyWork> jhass is rugged supposed to segfault if i do something wrong?
<TomyWork> or might it be incompatible with the bleeding edge git version i have? :)
dfinninger has joined #ruby
eminencehc has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<jhass> I don't think so
<TomyWork> 2.6.2
<jhass> I generally consider any segfault instead of error message a bug
<jhass> I'm on 2.6.1 and didn't notice any issues
<jhass> it's using libgit2 anyhow
loc22 has joined #ruby
<jhass> so maybe open an issue
<mg^^> Yeah, segfaults are (almost) never intended behavior.
atmosx has joined #ruby
<TomyWork> do_segfault()
<TomyWork> repo = Rugged::Repository.new('testrepo/.git') <-- it's segfaulting here
moeabdol has quit [Ping timeout: 260 seconds]
Guest33607 has quit [Quit: leaving]
tubuliferous_ has joined #ruby
chopin has quit [Remote host closed the connection]
based_pdev_ has joined #ruby
scpike has quit [Ping timeout: 250 seconds]
rdark has quit [Quit: leaving]
scpike has joined #ruby
<shevy> libruby-1.9.1.so.1.9
synthroid has quit []
willardg has joined #ruby
Cyther has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
`based_pdev` has quit [Ping timeout: 250 seconds]
macowie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
naztharune has quit [Quit: [BX] Mike Tyson says BitchX BITES! Do you HEAR what I'm saying?!]
stamina has quit [Ping timeout: 255 seconds]
krz has quit [Ping timeout: 240 seconds]
<TomyWork> how did that get in there
<TomyWork> i'll try #!/usr/bin/env ruby
<TomyWork> thanks shevy, that was the problem
dnomyar has joined #ruby
macowie has joined #ruby
d5sx43 has joined #ruby
nfk|laptop has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
sharkman has quit [Ping timeout: 256 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
marr has joined #ruby
Caseh has quit [Quit: Page closed]
eminencehc has quit [Remote host closed the connection]
d5sx43 has quit [Client Quit]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dnomyar has quit [Quit: leaving]
janelleb has joined #ruby
dmitch has joined #ruby
jxl180 has quit [Quit: ChatZilla 0.9.92 [Firefox 38.0.1/20150518070114]]
dnomyar has joined #ruby
dnomyar has quit [Client Quit]
InternetFriend has joined #ruby
dnomyar has joined #ruby
Fredrich010 has quit [Remote host closed the connection]
<imperator> arup_r, that is fugly
<arup_r> I agree
niemcu has joined #ruby
Fredrich010 has joined #ruby
<shevy> arup_r yeah Ox0dea already disapproved of it :D
opensource_ninja has joined #ruby
bryanray has quit [Ping timeout: 256 seconds]
Fredrich010 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dnomyar has left #ruby [#ruby]
symbol has quit [Ping timeout: 264 seconds]
acke has joined #ruby
<TomyWork> can i pass a non-member function to array.each?
<TomyWork> def traverse ..... refs.each &:traverse doesn't seem to work
<atmosx> hello
diegoviola has quit [Ping timeout: 240 seconds]
diego2 has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard_ has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
<TomyWork> shevy with the general notion or the specific syntax?
diego2 is now known as diegoviola
<ja> TomyWork: Yes
<ja> refs.each &method(:traverse)
leafybasil has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Fredrich010 has joined #ruby
<shevy> TomyWork I think he disliked the syntax
postmodern has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
lifeonmars has joined #ruby
<shevy> the good thing about ruby is that I don't have to use crappy syntax
<TomyWork> ja thanks, but for some reason that makes the local function unable to access its enclosing scope
<TomyWork> shevy what's a better syntax?
stannard has quit [Ping timeout: 240 seconds]
<shevy> the currently existing one for instance!
acke has quit [Ping timeout: 240 seconds]
<TomyWork> what's that?
MrJoshua has joined #ruby
jgt1 has joined #ruby
<TomyWork> u && u.profile && u.profile.thumbnails && u.profiles.thumbnails.large?
<shevy> yes!
<shevy> now I don't write code like this myself
<shevy> but it's better than
<adaedra> that's not really neat
<shevy> if u.try!(:profile).try!(:thumbnails).try!(:large)
<shevy> why does he propose the ! there?
<TomyWork> shevy i thought this safe navigation operator did away with that
<TomyWork> u.?profile.?thumbnails.?large
Fredrich010 has quit [Remote host closed the connection]
<shevy> ack
<shevy> that's even worse!
<adaedra> no
`tim` has joined #ruby
dnomyar has joined #ruby
MrJoshua has quit [Client Quit]
stamina has joined #ruby
<dnomyar> l
<TomyWork> shevy so you disagree with the general notion of having a safe navigation operator and not just the specific syntax?
dnomyar has left #ruby [#ruby]
<jhass> shevyOS doesn't need safe navigation
<shevy> I disagree with ?method
dnomyar has joined #ruby
<TomyWork> it's not really ?method
<TomyWork> it's .?
<adaedra> It's .?
<adaedra> .?ninja'd
<shevy> the . is part of the method name?
<adaedra> no, it's part of the syntax
<adaedra> it's .? in place of .
dnomyar has quit [Quit: leaving]
<shevy> that is absolutely terrible
<ibouvousaime> What are the best ressouces that have helped you guys personnally with ruby and ruby on rails? (Im doing my own reseach too, im just new to it thats why im asking )
codecop has quit [Remote host closed the connection]
<adaedra> shevy: why?
<TomyWork> a.?b is roughly the same as a && a.b
<shevy> adaedra because we generally use . for methods
<adaedra> and?
<shevy> what and?
macowie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> I don't see the problem, so I thought there was a follow up
jgt1 has quit [Ping timeout: 260 seconds]
<TomyWork> shevy so .? is "check if left hand side isnt nil/false and then whatever . does"
<shevy> that is the problem
<adaedra> it's a specialized case of method call
dfockler has joined #ruby
asad_ has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
<asad_> Hi. I want to install the latest version of ruby on ubuntu. How do I go about doing that?
<jhass> TomyWork: only nil
<TomyWork> asad_ http://rvm.io
<TomyWork> jhass only nil? even better
<jhass> asad_: for dev or for production?
<asad_> TomyWork: There's also rbenv. What should I use?
symbol has joined #ruby
<TomyWork> i dont know rbenv
<asad_> jhass: For dev.
dnomyar has joined #ruby
<jhass> there's also chruby and none of that
<jhass> rvm then
<adaedra> asad_: there's also chruby and ruby-install
macowie has joined #ruby
<havenwood> asad_: +1 chruby
al2o3-cr has joined #ruby
baweaver has joined #ruby
<ja> shevy: it looks a bit weird, but is it really that bad, you think?
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ja> TomyWork: weird, hmm…
eminencehc has joined #ruby
bhegel has joined #ruby
<TomyWork> ja odd, i cant access that top scope variable no matter what
<Ankhers> If I have a lazy enum, does asking for its length evaluate it/
Fredrich010 has joined #ruby
<Ankhers> nevermind. Apparently you can't ask for the length.
dnomyar has left #ruby [#ruby]
kies^ has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
<ja> TomyWork: can I see the full source in a gist?
kraljev11 has joined #ruby
<adaedra> ja: shevy doesn't like change.
<asad_> Should I install the main system ruby that's in the ubuntu packages? The problem with that is that it's too old...
pontiki has joined #ruby
dnomyar has joined #ruby
acke has joined #ruby
dnomyar has quit [Client Quit]
<adaedra> asad_: how old?
shinnya has joined #ruby
last_staff has quit [Quit: last_staff]
<asad_> adaedra: 1.9.x
<jhass> asad_: for dev? nah
<adaedra> indeed.
<ceej> in ruby >= 2.2 should I be using strings or symbols as keys in hashes?
<jhass> go with RVM, install it as user not as root
baweaver has quit [Ping timeout: 264 seconds]
<adaedra> ceej: depends on your needs.
<adaedra> but I think general case is symbols.
<TomyWork> ja: a = ''; def b; a; end; b
<asad_> Alright I'll go with RVM then...
<jhass> unless you call #to_sym
<jhass> ceej: in doubt strings actually
<imperator> shevy, you might not have to use it, but you might have to maintain it if someone else wrote it ;)
<jhass> but if all your symbols are literals, symbols are fine
<havenwood> asad_: Are you very familiar with the command line?
DoubleMalt has joined #ruby
<ceej> adaedra: that's my issue, I've been seeing blog posts for both sides lol.... I'm dynamically creating a nested hash
<TomyWork> >> a = ''; def b; a; end; b
<ruboto> TomyWork # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/455659)
<jhass> ceej: so dynamic keys? use strings
<asad_> havenwood: Yup.
<havenwood> asad_: If you're comfortable with dotfiles and env vars etc I'd recommend ruby-install with chruby. If not so much RVM may be easier.
<havenwood> asad_: chruby is ~100 lines of shell and RVM is >10,000 lines of shell.
<atmosx> Kernel.abort("No configuration directory found! Please run 'argosnap -i config'\n") <-- this doesn't add a new line after abort
acke has quit [Remote host closed the connection]
<atmosx> of course I can't put a 'puts ""' after abort, since it doesn't get executed, any ideas on how to add a new line there?
`based_pdev` has joined #ruby
<ceej> jhass: ret = Hash.new { |h, k| h[k] = Hash.new &h.default_proc } or ret = Hash.new { |h, k| h[:"#{key}"] = Hash.new &h.default_proc }
<havenwood> asad_: oops, wrong link
<jhass> atmosx: it does for me, even without the explicit \n
<TomyWork> atmosx add another \n
<jhass> ceej: definitely the former
<TomyWork> jhass i think he wants 2 \n
devoldmx has joined #ruby
asad_ has quit [Quit: Page closed]
ghr has quit [Ping timeout: 244 seconds]
devoldmx_ has joined #ruby
willardg has joined #ruby
davispuh has joined #ruby
<ceej> jhass: so when building up a hash use strings still
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
<adaedra> ceej: it doesn't really care, as long as the keys are hashable.
<jhass> ceej: it's not wrong to use dynamic symbols with 2.2 but it'll still feel odd to most rubyists
prestorium has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
Fredrich010 has quit [Remote host closed the connection]
<atmosx> jhass: it adds 1 I want ... yes
<atmosx> 2
<atmosx> TomyWork: ty
Fredrich010 has joined #ruby
<jhass> especially since most of the time if you have dynamic keys chances are good your keys are actually data
sharkman has joined #ruby
psy_ has quit [Read error: No route to host]
mwlang has joined #ruby
<ceej> so in ruby 2.2 doing this isn't bad ret = Hash.new { |h, k| h[:"#{key}"] = Hash.new &h.default_proc } but most rubyists will be used to it just being strings?
<jhass> and symbols shouldn't be used for data you'll process
based_pdev_ has quit [Ping timeout: 268 seconds]
idefine_ has quit [Remote host closed the connection]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> ceej: it's not a bug. Whether it makes sense depends on the larger context
<Ankhers> How does Ruby's Enumerator::Lazy work? If I `map` over the data inside it, does it just evaluate the thunks and still hold onto that memory even if the enum or value inside the enum is not used later?
<jhass> ceej: most of the time it doesn't IME
tercenya has quit []
<Ankhers> Basically, does GC clean it up in a realtively decent time frame.
p0wn3d has quit [Ping timeout: 272 seconds]
psy_ has joined #ruby
Greg__ has joined #ruby
<TomyWork> ja did you get the code?
<Ankhers> Or does it wait until the entire enum has been read before the GC can clean it up?
Fredrich010 has quit [Remote host closed the connection]
acke has joined #ruby
psy_ has quit [Max SendQ exceeded]
<ceej> jhass: I get it... thank you
psy_ has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
arthurix_ has joined #ruby
Alayde has joined #ruby
dmitch has joined #ruby
diegoviola has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
mordocai has quit [Remote host closed the connection]
dnomyar has joined #ruby
dnomyar has left #ruby [#ruby]
<TomyWork> from a function, can i access variables in enclosing scopes somehow?
dopie has joined #ruby
dnomyar has joined #ruby
<jhass> "function"?
<havenwood> TomyWork: Do you know about instance variables?
Soda has quit [Remote host closed the connection]
<TomyWork> jhass def at file scope
<havenwood> TomyWork: methods
<jhass> that's a method
<jhass> and no
arthurix has quit [Ping timeout: 272 seconds]
<TomyWork> ok, i'll make a class then :)
nfk|laptop has quit [Read error: Connection reset by peer]
kirun has joined #ruby
<jhass> well, could access instance vars defined at the toplevel too, but it would be odd
<havenwood> just clicked for me that's what was being asked
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 268 seconds]
tercenya has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
<TomyWork> pythonisms are being asked :)
trautwei_ has joined #ruby
segfalt has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 256 seconds]
nfk|laptop has joined #ruby
idefine has joined #ruby
Fredrich010 has joined #ruby
dnomyar has left #ruby [#ruby]
rodfersou has quit [Quit: leaving]
lifeonmars has quit [Quit: Page closed]
<imperator> class instance variable?
freerobby has joined #ruby
<TomyWork> or luaisms
trautwein has quit [Ping timeout: 272 seconds]
dnomyar has joined #ruby
<TomyWork> i was looking for the equivalent of a lua upvalue
eminencehc has quit [Remote host closed the connection]
<TomyWork> since that isn't there, i'll go for proper OO instead :)
dnomyar has quit [Quit: leaving]
Salve has quit [Ping timeout: 246 seconds]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 265 seconds]
ldnunes has quit [Quit: Leaving]
Channel6 has quit [Ping timeout: 250 seconds]
dmitch has joined #ruby
trautwein has joined #ruby
bonhoeffer has joined #ruby
trautwei_ has quit [Ping timeout: 252 seconds]
<TomyWork> so now i've got a ruby script that prints all the reachable commits in a git repo
devoldm__ has joined #ruby
devoldmx_ has quit [Ping timeout: 264 seconds]
spuk has joined #ruby
<TomyWork> enough for today, i'm going home
<TomyWork> bye and thanks for the help
_djbkd has joined #ruby
jessemcgilallen has joined #ruby
ramfjord_ has joined #ruby
Sigma01 is now known as Sigma00
devoldm__ has quit [Remote host closed the connection]
relix has joined #ruby
tw1sted has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 256 seconds]
ngscheur1 has joined #ruby
TomyWork has quit [Ping timeout: 260 seconds]
loc22 has quit [Quit: Lingo: www.lingoirc.com]
drocsid has joined #ruby
ngscheurich has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
devoldmx has joined #ruby
Taha_The_Hacker has joined #ruby
tw1sted has joined #ruby
<Taha_The_Hacker> Hi
<drocsid> anybody pretty familiar with using the rye module with sudo to upload files to a remote server?
Coldblackice has joined #ruby
ngscheur1 has quit [Ping timeout: 272 seconds]
acke has quit [Remote host closed the connection]
rehat has quit [Remote host closed the connection]
acke has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
mustmodify has joined #ruby
gains has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
<mustmodify> I realize there are some rails-isms here, but at heart it's a Ruby question. I want to know if you folks think this is an effective place to use tap, or whether I should do it the alternate way proposed, or some third option, possibly involving an instance method? https://gist.github.com/mustmodify/0d379d54f525a0a6fdae
blackmesa has quit [Ping timeout: 253 seconds]
symbol has quit [Ping timeout: 240 seconds]
mustmodify has left #ruby [#ruby]
spuk has quit [Ping timeout: 260 seconds]
<baweaver> It's a User concern
<baweaver> also, find_by
jackjackdripper has quit [Quit: Leaving.]
<baweaver> and why are you using a variable manager_id instead of a symbol?
diegoviola has quit [Quit: WeeChat 1.3]
<baweaver> anyways, definitely a Rails question
<baweaver> look into #RubyOnRails
wharr has quit [Read error: Connection reset by peer]
`based_pdev` has quit [Read error: Connection reset by peer]
`based_pdev` has joined #ruby
wharr has joined #ruby
jackjackdripper has joined #ruby
InternetFriend has quit [Read error: Connection reset by peer]
<arup_r> atmosx: Hi
<arup_r> you there ?
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
mary5030 has quit [Remote host closed the connection]
EdwardIII has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
dnomyar has joined #ruby
yqt has joined #ruby
y0da has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arthurix has joined #ruby
dnomyar has left #ruby [#ruby]
al2o3-cr has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
atomical_ has joined #ruby
jgt1 has joined #ruby
dnomyar has joined #ruby
dnomyar has left #ruby [#ruby]
atomical_ has quit [Client Quit]
EdwardIII has joined #ruby
benjito_ has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
atomical has quit [Ping timeout: 255 seconds]
arthurix_ has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 268 seconds]
jgt1 has quit [Ping timeout: 255 seconds]
Jackneill has quit [Ping timeout: 250 seconds]
bonhoeffer has joined #ruby
<atmosx> arup_r: yes
bruno-_ has quit [Ping timeout: 255 seconds]
<atmosx> hm, if I have hash = {name: 'john', age: 21} ... I can check hash[:name].empty? but how do I check if the hash[:age] entry is filled?
<atmosx> with true/false?
<adaedra> depends what you mean by 'filled'
<adaedra> if the key don't exist when not filled, just hash.key?(:age)
<adaedra> otherwise, you'll have to look at the value you have when 'not filled' (i.e. nil)
anisha has quit [Ping timeout: 252 seconds]
rails090 has quit [Ping timeout: 246 seconds]
bonhoeffer has quit [Read error: Connection reset by peer]
mengu has joined #ruby
zenguy_pc has quit [Read error: No route to host]
bonhoeffer has joined #ruby
<adaedra> (Also, if your name key disappears or its value is nil when "not filled", your method will fail.)
diegoviola has joined #ruby
FernandoBasso has joined #ruby
wldcordeiro has joined #ruby
baweaver has quit [Remote host closed the connection]
Taha_The_Hacker has quit [Quit: Page closed]
`tim` has joined #ruby
benjito has joined #ruby
Greg__ has left #ruby [#ruby]
alcipir has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polishdub_ has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<atmosx> adaedra: ty
pietr0 has joined #ruby
dmitch has joined #ruby
polishdub has quit [Ping timeout: 246 seconds]
ItSANgo has joined #ruby
bkxd has joined #ruby
benjito has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
MrSamuel has quit [Quit: Leaving]
leafybasil has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
bMalum has quit [Quit: bMalum]
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bl00d has joined #ruby
blackmesa has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bl00d has quit [Client Quit]
polishdub_ has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
umgrosscol has quit [Quit: End of Line]
zenguy_pc has joined #ruby
Fredrich010 has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
polishdub has joined #ruby
steffkes has quit [Ping timeout: 250 seconds]
leafybasil has joined #ruby
rwilcox has quit [Ping timeout: 260 seconds]
KensoDev has joined #ruby
rbennacer has quit [Remote host closed the connection]
Ainieco has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
Fredrich010 has joined #ruby
symbol has joined #ruby
Pupeno has joined #ruby
deric_skibotn has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has joined #ruby
tuxero has joined #ruby
ajb has quit [Max SendQ exceeded]
tvw has joined #ruby
kidoz has quit [Ping timeout: 246 seconds]
ajb has joined #ruby
Fredrich010 has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 268 seconds]
sepp2k has quit [Quit: Leaving.]
ajb has quit [Changing host]
ajb has joined #ruby
Pupeno has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.3]
pathrocle has quit []
choke has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
kies^ has joined #ruby
acke_ has joined #ruby
aryaching has joined #ruby
acke_ has quit [Remote host closed the connection]
Fredrich010 has joined #ruby
maletor has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
opensource_ninja has joined #ruby
Pupeno has joined #ruby
acke has quit [Ping timeout: 246 seconds]
jgpawletko has quit [Quit: jgpawletko]
bruno- has joined #ruby
dfinninger has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
steffkes has quit [Ping timeout: 260 seconds]
tigarcia has quit [Remote host closed the connection]
SHyx0rmZ has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 250 seconds]
aryaching has quit [Ping timeout: 272 seconds]
choke has quit [Quit: Textual IRC Client: www.textualapp.com]
zenguy_pc has joined #ruby
d5sx43 has joined #ruby
chipotle has quit [Quit: cheerio]
psy_ has quit [Remote host closed the connection]
d5sx43 has quit [Client Quit]
baweaver has joined #ruby
SHyx0rmZ has joined #ruby
htmldrum has joined #ruby
atmosx has quit [Quit: Lost in trance]
chipotle has joined #ruby
mwlang has quit [Quit: mwlang]
dikaio has quit [Quit: ........]
nfk|laptop has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
ibouvousaime has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
sepp2k has joined #ruby
pontiki has joined #ruby
zenguy_pc has quit [Read error: No route to host]
jenrzzz has joined #ruby
eminencehc has joined #ruby
jgt1 has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
dfinninger has joined #ruby
mary5030 has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
mary5030 has quit [Remote host closed the connection]
diegoviola has joined #ruby
mary5030 has joined #ruby
aryaching has joined #ruby
mary5030_ has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
jenrzzz has quit [Ping timeout: 252 seconds]
jgt1 has quit [Ping timeout: 240 seconds]
mois3x has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030_ has joined #ruby
iateadonut has quit [Quit: Leaving.]
mary5030 has quit [Ping timeout: 240 seconds]
dfockler has quit [Ping timeout: 265 seconds]
s00pcan has quit [Ping timeout: 244 seconds]
imperator has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jessemcgilallen has quit [Quit: jessemcgilallen]
diegoaguilar has joined #ruby
jgt1 has joined #ruby
_djbkd has quit [Remote host closed the connection]
simi has joined #ruby
s00pcan has joined #ruby
Fredrich010 has quit [Remote host closed the connection]
MrJoshua_ has joined #ruby
freerobby has quit [Quit: Leaving.]
bhegel has quit [Quit: bhegel]
Fredrich010 has joined #ruby
benjito_ has joined #ruby
_djbkd has joined #ruby
zenguy_pc has joined #ruby
zrowe007 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
bhegel has joined #ruby
rodfersou has joined #ruby
tigarcia has joined #ruby
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bhegel has quit [Client Quit]
tubuliferous_ has joined #ruby
dikaio has joined #ruby
andykingking has joined #ruby
yfeldblum has joined #ruby
jgpawletko has joined #ruby
Fredrich010 has quit [Ping timeout: 255 seconds]
benjito_ has quit [Ping timeout: 250 seconds]
arup_r has quit [Quit: Leaving]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
jgpawletko has quit [Client Quit]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 260 seconds]
cooperlebrun has joined #ruby
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
bhegel has joined #ruby
bhegel has quit [Client Quit]
willardg has joined #ruby
tigarcia has quit []
tigarcia has joined #ruby
baweaver has joined #ruby
willardg has quit [Read error: Connection reset by peer]
_djbkd has quit [Remote host closed the connection]
FernandoBasso has quit [Ping timeout: 246 seconds]
dfockler has joined #ruby
chipotle has quit [Quit: cheerio]
<zenspider> rawr
ebbflowgo has joined #ruby
<cooperlebrun> why doesn't this work? http://pastebin.com/PNbKNJrj
<ruboto> cooperlebrun, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/2b463239b440d03ff253
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
ebbflowgo has quit [Client Quit]
<cooperlebrun> rubuto aside, trying to take a hash and get an array of keys that had nil values
robbyoconnor has joined #ruby
<cooperlebrun> also, whats a good pastebin alternative that isn't gist? I find gist a bit cumbersome when I don't necessarily want to link to my github
mois3x has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
<weaksauce> i just use gist in a private window
<havenwood> cooperlebrun: You can do an anonymous gist.
<weaksauce> makes it anon
ibouvousaime has joined #ruby
_djbkd has joined #ruby
mois3x has joined #ruby
devoldmx_ has joined #ruby
<weaksauce> cooperlebrun inject puts the result of the last thing in the block inside acc
<havenwood> cooperlebrun: select { |_, v| v.nil? }.keys
riotjon__ has joined #ruby
<Zarthus> gem install gist; cat output.txt | gist -a # :P
ebbflowgo has joined #ruby
<bricker> cooperlebrun: first of all, that's an unnecessary use of inject. Second of all, it's not working because you're using inject incorrectly.
willardg has joined #ruby
howdoicomputer has quit [Ping timeout: 250 seconds]
<drbrain> >> f = {foo: nil, fiz: 0, bar: ''}; f.keys.reject { |k| f[k] }
<ruboto> drbrain # => [:foo] (https://eval.in/455699)
symbol has joined #ruby
ItSANgo has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Remote host closed the connection]
<drbrain> fixed inject:
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
<havenwood> >> {foo: nil, fiz: 0, bar: ''}.select { |_, v| v.nil? }.keys
<ruboto> havenwood # => [:foo] (https://eval.in/455700)
<drbrain> >> f = {foo: nil, fiz: 0, bar: ''}; f .inject([]) { |acc, (k, v)| acc << k if v.nil?; acc }
<ruboto> drbrain # => [:foo] (https://eval.in/455701)
riotjones has quit [Ping timeout: 250 seconds]
Alayde has quit [Ping timeout: 272 seconds]
<drbrain> each_key.reject is probably best since you don't loop twice
<cooperlebrun> hmm, drbrain I thought .inject auto returned whatever the val of acc was?
devoldmx has joined #ruby
<drbrain> cooperlebrun: no, whatever is last (like weaksauce said)
<havenwood> and #each_with_object too:
<havenwood> >> {foo: nil, fiz: 0, bar: ''}.each_with_object([]) { |(k, v), a| a << k if v.nil? }
<ruboto> havenwood # => [:foo] (https://eval.in/455702)
s00pcan has quit [Ping timeout: 240 seconds]
<cooperlebrun> Zarthus: thanks, not only anon, but an easy command line tool. :thumbsup:
devoldmx_ has quit [Ping timeout: 255 seconds]
<Zarthus> \O/
s00pcan has joined #ruby
<cooperlebrun> thanks all
symbol has quit [Quit: WeeChat 1.1]
<cooperlebrun> now to decide which one of these to use :P
willardg has quit [Read error: Connection reset by peer]
WillAmes has joined #ruby
Rickmasta has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
<drbrain> cooperlebrun: I don't like the each_with_object version because you, the user, have to build the result
<drbrain> the others let ruby do that which I find more pleasing to the eye
<drbrain> the others say "I'm going to transform from this to that" much more cleanly to me
kraljev11 has quit [Read error: Connection reset by peer]
kraljev11 has joined #ruby
chris2 has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
nizmow has quit [Quit: ZNC - http://znc.in]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cooperlebrun> I honestly still like the .inject version the most
<cooperlebrun> because thats what it says to me
robbyoconnor has joined #ruby
nizmow has joined #ruby
<cooperlebrun> + doesn't go over it twice, right?
blue_deref has joined #ruby
<bricker> `f.select { |k,v| v.nil? }.keys` is best imo
<drbrain> f.each_key.reject would only iterate once
baweaver has quit [Remote host closed the connection]
<drbrain> but if your Hash only has a dozen or two keys you'll never notice
<drbrain> … any performance issues
<cooperlebrun> true, but this is getting run on potentially 10-100s of thousands of hashes
<weaksauce> how often?
<drbrain> do the simple readable thing, finish your program, then benchmark and profile when you're done
<cooperlebrun> weaksauce: not often, but at the most once a week
<drbrain> you'll find where you should be spending your optimization time instead of using it up guessing in the early stages
robbyoconnor has quit [Client Quit]
<cooperlebrun> drbrain: much sensible, very pragmatic
<weaksauce> once a week on a few hundred thousand entries shouldn't cost too much imo.
<weaksauce> but yeah don't prematurely optimize
<drbrain> also, inject can be used as a base method for implementing all the other enumerables
FernandoBasso has joined #ruby
chipotle has joined #ruby
arthurix_ has joined #ruby
Musashi007 has joined #ruby
<zenspider> ironically, the annoying bot response about pastebin vs gist is false for me. pastebin is measurably faster here than gist
willardg has joined #ruby
arthurix has quit [Ping timeout: 244 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
cooperle1run has joined #ruby
Yzguy has joined #ruby
Taha_The_Hacker has joined #ruby
<zenspider> cooperlebrun: 100s of thousands isn't much
OS-18137 has quit [Ping timeout: 260 seconds]
pontiki has quit [Ping timeout: 272 seconds]
cooperlebrun has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
<Taha_The_Hacker> Hi
mistermocha has quit [Remote host closed the connection]
baweaver has joined #ruby
mistermocha has joined #ruby
OS-18137 has joined #ruby
Bellthoven has joined #ruby
<zenspider> fwiw, I'd use keys.reject or keys.select
CloCkWeRX has joined #ruby
<cooperle1run> zenspider: inject just seems clearer to me ATM, but I'll probably change it before production
Alayde has joined #ruby
Quandl has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
cyle has quit [Ping timeout: 250 seconds]
v4n has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
eminencehc has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
howdoicomputer has joined #ruby
OS-18137 has quit [Quit: Lost terminal]
dopamean_ has quit [Ping timeout: 246 seconds]
mengu has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
Alayde has quit [Ping timeout: 268 seconds]
tvw has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
jessemcgilallen has joined #ruby
OS-18137 has joined #ruby
OS-18137 has left #ruby [#ruby]
devoldmx has joined #ruby
dotrb has joined #ruby
v4n has joined #ruby
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
FernandoBasso has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
niftylettuce has joined #ruby
wldcordeiro has quit [Ping timeout: 250 seconds]
benjito_ has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
_whitelogger has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
iamjarvo_ has quit [Client Quit]
sharkman has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
_blizzy_ has joined #ruby
daffy_duck_2 has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 240 seconds]
saddad has quit [Read error: Connection reset by peer]
cyle has joined #ruby
al2o3-cr has joined #ruby
rodfersou has quit [Quit: leaving]
baroquebobcat has quit [Quit: baroquebobcat]
djbender has quit []
djbender has joined #ruby
symbol has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
freerobby has joined #ruby
symm- has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
tuxero has left #ruby [#ruby]
kraljev11 has quit [Quit: kraljev11]
baweaver has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
daffy_duck has joined #ruby
KnownSyntax_ has quit [Quit: Leaving]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Leaving]
baweaver has joined #ruby
eminencehc has quit [Remote host closed the connection]
<BraddPitt> is rubygems included with ruby distributions?
solocshaw has quit [Ping timeout: 246 seconds]
<bricker> BraddPitt: yes
<BraddPitt> great, thanks
Yzguy has joined #ruby
Musashi007 has quit [Quit: Musashi007]
eminencehc has joined #ruby
finisherr has joined #ruby
Musashi007 has joined #ruby
vigintas has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
stamina has quit [Ping timeout: 260 seconds]
minimalism has joined #ruby
eminencehc has quit [Remote host closed the connection]
ebbflowgo has quit [Quit: ebbflowgo]
mengu has joined #ruby
simi has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
nettoweb has joined #ruby
devoldmx has quit [Remote host closed the connection]
eminencehc has joined #ruby
nettoweb has quit [Client Quit]
mikecmpbll has quit [Quit: nn]
bungoman has joined #ruby
idefine has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has quit [Ping timeout: 240 seconds]
`tim` has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
niemcu has quit [Ping timeout: 255 seconds]
leafybasil has quit [Remote host closed the connection]
XxionxX has joined #ruby
Rickmasta has joined #ruby
willardg has joined #ruby
patdohere has joined #ruby
prestorium has quit [Quit: Leaving]