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/
marahin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ascarter has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
marahin has left #ruby [#ruby]
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
duncannz has joined #ruby
nomadic has joined #ruby
baweaver has joined #ruby
jackcom has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
maloik has joined #ruby
mrd_ has joined #ruby
<jackcom> puts 1.method("next") lua: example.rb:1: syntax error near '1.' <——what’s wrong?
<jhass> jackcom: are you trolling us?
<jackcom> why? jhass
<jhass> "lua"?
<jaxxstorm> -
<jaxxstorm> -_-
<jackcom> i just are asking abou lua.
<jhass> you're in #ruby
<jackcom> oh
<Everlost> +1 point for jackcom
<Everlost> you rock man
<Everlost> change nothing
<jackcom> i m confused because i wake up early. heh
<jhass> also why is your file named .rb when it's supposed to be lua?
<jackcom> i study lua before learing ruby heh
<jackcom> :)
<Everlost> It's fine. let's just put it all on ruby, because we need someone to be responsible for things that don't work.
<jackcom> jhass:
akem has quit [Remote host closed the connection]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akem has joined #ruby
EllisTAA has joined #ruby
mattwildig has quit [Remote host closed the connection]
maloik has quit [Ping timeout: 246 seconds]
_seanc_ has joined #ruby
platzhirsch has left #ruby [#ruby]
nofxx has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
Ox0dea has joined #ruby
nofxx has joined #ruby
<Ox0dea> jackcom: Could you post some Ruby code you've written recently?
<jackcom> Ox0dea: :(
<Ox0dea> Is that a no?
<jackcom> i just read tutorial
yes`r has quit [Quit: WeeChat 1.3]
babblebre has quit [Quit: Connection closed for inactivity]
<jackcom> Ox0dea:
<Ox0dea> jackcom: So RubyMonk doesn't even get you set up with a local interpreter and REPL?
krajos has joined #ruby
jetpackjoe has joined #ruby
<jackcom> yeah but i want excute script by myself
<jackcom> Ox0dea:
SenpaiSilver has quit [Quit: Leaving]
<jackcom> on the terminal
<Ox0dea> So do that?
MarkRenton has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<jackcom> yes
<jackcom> Ox0dea:
<Ox0dea> jackcom: Which is your native language, if you don't mind my asking?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jackcom> my native language is english
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jackcom> but i don’t educate english from school. because family have no money
<jbrhbr> if i have `s = "a b"`, is there a shorter way to grab the first two characters of that using regex than `$s =~ /^(..)/; value = $1` ?
<jbrhbr> like s.match(/(..)/).try(:something) perhaps
<jbrhbr> i mean s not $s but you get my point
<jackcom> Ox0dea:
<jhass> jbrhbr: s[0, 2] or s[0..1]
krajos has quit [Client Quit]
<Ox0dea> >> 'a b'[/../] # jbrhbr
<ruboto> Ox0dea # => "a " (https://eval.in/474759)
<jbrhbr> that regex is arbitrary to make my q easier to type out
<Ox0dea> jbrhbr: I knew that. :)
<jbrhbr> sorry for the ambiguity
warkon has joined #ruby
MarkRenton has joined #ruby
pawnbox has joined #ruby
<jbrhbr> Ox0dea: that's perfect, thanks
<Ox0dea> >> 'abc123'[/(\d+)/, 1] # jbrhbr
<ruboto> Ox0dea # => "123" (https://eval.in/474760)
<Ox0dea> For if you do actually want a capture group.
Xeago has joined #ruby
howdoicomputer has quit [Ping timeout: 272 seconds]
<jbrhbr> i was just trying to avoid the 'result = $1' assignment line, essentially
<warkon> can i upgrade from ruby 1.9.3 to 2.2.3 without any complications or are there backwards compatibility issues?
SenpaiSilver has joined #ruby
MarkRenton has left #ruby [#ruby]
<jhass> warkon: a few fairly minor ones, best just try and run your testsuite
Everlost has quit [Quit: leaving]
<warkon> jhass: what's #1 likely thing to break? encoding?
bryanray has joined #ruby
<jhass> probably not even but it's among the candidates
krajos has joined #ruby
boxofrox has quit [Ping timeout: 265 seconds]
<Radar> warkon: It's easier than the 1.8 to 1.9 upgrade :)
<jhass> String#chars, String#codepoints etc don't return Enumerator's anymore but Arrays. but each_* still return Enumerator's even and the API between Array and Enumerator is actually quite compatible
cdg has joined #ruby
dmcp_ has quit [Ping timeout: 252 seconds]
dmcp_ has joined #ruby
ismaelga has quit [Remote host closed the connection]
<krajos> Hey Everyone! I'm very new to ruby and I'm trying to find a way to get this to work. I'm making a simple program that takes an array and finds if two numbers in that array sum to 0...then returns the positions of those two numbers. So far I have a way to figure out if two numbers sum to 0, but I don't know how to find their positions! This is my code: arr.uniq.combination(2).detect { |a, b| a + b == 0 }
TPBallbag has joined #ruby
<krajos> can someone please help me out (for like the 10th time today :) )
pawnbox has quit [Ping timeout: 265 seconds]
moeabdol1 has quit [Read error: Connection reset by peer]
<bougyman> krajos: you're mangling the positions with uniq
_blizzy_ has joined #ruby
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman> you'd have to find the index_of of eash after the fact. against the original array, to get a position.
<warkon> ugh... this app is running rails 3.2..... *awesome*
<bougyman> haha, we have one on rails 2.3.2
<krajos> hmm, so I would do that after the fact?
moeabdol1 has joined #ruby
<bougyman> be happy you're in this century.
<warkon> run the test suite? ya, let's see if that's a thing in this app... :)
<krajos> #msg
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Radar> :D
dmcp_ has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 260 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 246 seconds]
<shevy> bougyman hah, that almost aligns with the ruby version ... 2.2.3 ... 2.3.2
<Radar> warkon: 3 -> 4 upgrade was much easier than 2 -> 3 upgrade
<Radar> http://ryanbigg.com/2010/11/the-rails-3-upgrade/ Here's 8,000 words I wrote about the 2 -> 3 upgrade
ismaelga has joined #ruby
<jackcom> method is object too?
bryanray has joined #ruby
krajos has quit [Quit: Leaving]
eminencehc has quit [Quit: Leaving...]
<Ox0dea> jackcom: What makes you ask?
<jhass> jackcom: debatable, while you can get an object describing/referencing a method, I wouldn't say they are objects themselves
_stu_ has quit [Quit: _stu_]
<jackcom> :(
<Ox0dea> >> [(def foo; end).class, method(:foo)] # jackcom
<ruboto> Ox0dea # => [Symbol, #<Method: Object#foo>] (https://eval.in/474761)
<Ox0dea> That probably doesn't help you much, but it's a nice distillation of the thing.
<jackcom> ok thanks
s2013 has joined #ruby
_seanc_ has quit [Ping timeout: 276 seconds]
user083 has quit [Quit: leaving]
user083 has joined #ruby
havenwood has quit [Remote host closed the connection]
user083 has quit [Client Quit]
scripore has joined #ruby
Gnut has quit [Ping timeout: 252 seconds]
user083 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
s2013 has quit [Read error: Connection reset by peer]
boxofrox has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
scripore has quit [Client Quit]
an0ma1y has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
scripore has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 276 seconds]
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
TPBallbag is now known as bum_spot
ismaelga has quit [Remote host closed the connection]
<Ox0dea> VeryBewitching: Is "superficial" the best English has in the way of an adjectival form of "surface"?
scripore has joined #ruby
<Ox0dea> "Surfacial" and "surfacile" are not things, but maybe should be.
<VeryBewitching> Ox0dea: You always put my brain in a strange place, hold on, thinkin'
<Ox0dea> <3
asas has quit [Ping timeout: 252 seconds]
<blubjr> surface can be an adjective
bum_spot is now known as HighRoller
jessemcgilallen has quit [Quit: jessemcgilallen]
dopie has quit [Quit: This computer has gone to sleep]
HighRoller is now known as TPBallbag
m3_del has quit [Remote host closed the connection]
dopie has joined #ruby
dopie has quit [Client Quit]
<VeryBewitching> As an noun-as-an-adjective
cdg has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
dopamean_ has quit [Ping timeout: 250 seconds]
<Ox0dea> blubjr: Sure, I suppose I should've specified that I'm really looking for the adverbial form.
<VeryBewitching> Surface -> External
<Ox0dea> "I know <academic language> at the surface level." Is there no word with which to replace everything after the closing chevron?
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ornerymoose has joined #ruby
<Ox0dea> "Superficially" works, but "super" != "sur" in my lexicon.
<VeryBewitching> Patently is another word my brain came up with.
<jbrhbr> surface is a verb too
<VeryBewitching> Ox0dea: As everything, it's going to depend on context.
<Ox0dea> VeryBewitching: I've provided the precise context in which this search began. :P
<VeryBewitching> The surface of an object would be it's external methods and properties
cdg has quit [Ping timeout: 240 seconds]
<VeryBewitching> Patently describes something that is plainly visible.
<Ox0dea> I'm looking for the word meaning "at the surface level".
<VeryBewitching> Oh...
kies has joined #ruby
RegulationD has quit [Read error: No route to host]
<Ox0dea> I guess that's "superficial", but it squicks for some reason.
<jbrhbr> is this for naming a function?
RegulationD has joined #ruby
<jbrhbr> or for conversation. "ostensible" fits if it's the latter
<Ox0dea> "Ostensible" is closer to "apparent" than "superficial".
millerti has joined #ruby
<jbrhbr> all near synonyms though
<Ox0dea> Precision matters.
* jhass points out that there's ##English or something
<warkon> erg... these gems are so outdated several don't compile against 2.2.3... looks like we're gonna be running 2.1.7 :-D
<blubjr> its etymologically the same i think, the sur is probably from french which i think is from latin super anyway
<VeryBewitching> Ox0dea: Buoyantly
<VeryBewitching> "Not submerged"
jessemcgilallen has joined #ruby
an0ma1y has joined #ruby
ismaelga has joined #ruby
jessemcgilallen has quit [Client Quit]
<VeryBewitching> jhass: Agreed.
<Ox0dea> blubjr: Yeah, I suppose I'll stick with "superficial(ly)", but I think this is a wart.
<VeryBewitching> Ox0dea: You can PM me such questions in the future to think through so we're not flooding the channel with word art.
EllisTAA has quit [Quit: ellistaa]
<jbrhbr> it was entertaining to me at least. :p
EllisTAA has joined #ruby
<Ox0dea> VeryBewitching: Socrates would not approve.
_seanc_ has joined #ruby
<VeryBewitching> Outwardly is also another word.
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<VeryBewitching> Ox0dea: Luckily Socrates is dead, so I won't have to take his drunk-dialed disapproving phone call. :D
themadcanudist has joined #ruby
ismaelga has quit [Remote host closed the connection]
<jbrhbr> hehe
dorei has quit []
maloik has joined #ruby
zacstewart has joined #ruby
gatman has joined #ruby
_seanc_ has quit [Ping timeout: 265 seconds]
poguez_ has joined #ruby
gatman has quit [Client Quit]
bb010g has quit [Quit: Connection closed for inactivity]
snockerton has quit [Quit: Leaving.]
<VeryBewitching> Oh, Ox0dea, your sentence "I know <acedemic language> casually." Sorry jhass, last response to that :D
bryanray has joined #ruby
pawnbox has joined #ruby
_seanc_ has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
themadcanudist has quit [Quit: Leaving.]
axsuul has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
ascarter has joined #ruby
kies has quit [Ping timeout: 240 seconds]
cwong_on_irc has quit [Quit: Leaving.]
klingeldraht has quit [Read error: No route to host]
<Ox0dea> VeryBewitching: http://i.imgur.com/0lNJ8wN.png
<Ox0dea> I am inclined to think that could not've been an accident.
<VeryBewitching> mm, fixed width font fun :D
moeabdol1 has quit [Read error: Connection reset by peer]
<Ox0dea> It's great for building new neuroses.
pawnbox has quit [Ping timeout: 250 seconds]
dikaio has joined #ruby
<jackcom> if i study monk, then i can do ruby very well?
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
RegulationD has quit [Remote host closed the connection]
<Ox0dea> I gave you that link three days ago.
zacstewart has quit [Remote host closed the connection]
<jackcom> what you mean? Ox0dea ?
zacstewart has joined #ruby
MarkRenton has joined #ruby
tulak has quit [Remote host closed the connection]
MarkRenton has left #ruby [#ruby]
<Ox0dea> jackcom: "Three" was the longest (and arguably most complex) word in that sentence; is that the one that confused you?
themadcanudist has joined #ruby
themadcanudist has left #ruby [#ruby]
havenwood has joined #ruby
havenwood has joined #ruby
<jackcom> i like monk because the site is automation site
<jackcom> Ox0dea:
<jhass> Ox0dea: I don't know, link is kind of complicated too. And domain specific even!
dravine has quit [Ping timeout: 264 seconds]
<Ox0dea> jhass: I suspect you'd have a much easier time defining "link" than "three".
<VeryBewitching> Ox0dea, jhass: I think the most complicated word in that sentence is "ago"; it requires explaining time.
diegoaguilar has quit [Ping timeout: 246 seconds]
dravine has joined #ruby
marr has quit []
diegoaguilar_ has joined #ruby
cryo28 has left #ruby [#ruby]
myztic has quit [Ping timeout: 250 seconds]
<Ox0dea> jackcom: You are advised to take the initiative of setting up a local development environment.
<Ox0dea> You're not going to be writing any programs on RubyMonk; you're going to be regurgitating factoids for "points", which is hardly a proper way to learn anything.
<jackcom> i use ‘ruby hello.ruby’ Ox0dea by local environment
crunk_bear has joined #ruby
<Ox0dea> jackcom: Where did you learn to use .ruby as the extension for Ruby files?
cryo28 has joined #ruby
tubuliferous_ has joined #ruby
<jackcom> Ox0dea: i did it by myself
<Ox0dea> Impressive.
Jardayn has quit [Quit: Leaving]
<jackcom> python hello.py
DurstBurger has joined #ruby
<jackcom> ruby hello.py
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
<jackcom> ruby hello.rb
axl_ has quit [Quit: axl_]
<jackcom> lua hello.lua
<baweaver> jackcom: enough of that
RobertBirnie has quit [Ping timeout: 240 seconds]
<jackcom> ok
cryo28 has quit [Client Quit]
dopamean_ has joined #ruby
moeabdol1 has joined #ruby
brendan- has quit [Ping timeout: 250 seconds]
teclator has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
<Radar> jackcom: You should really pick one language (Ruby, obviously) and focus on that :)
dopamean_ has quit [Ping timeout: 244 seconds]
<jackcom> Radar: only one language?
<jbrhbr> until you need another one, at least.
mary5030 has joined #ruby
sulky has quit [Ping timeout: 264 seconds]
<jackcom> you eat only bread except jam and milk? Radar
<jbrhbr> anyone have experience with Nokogiri? i'm having issues selecting an element with the class "-cx-PRIVATE-ProfilePage__biography" and i'm wondering if that private stuff is some convention that's blocking me
<jbrhbr> jackcom: i think his point was that, since you're at a place where naming files and stuff is new to you, you would learn stuff more efficiently if you focused your efforts on the fluency of one language, since those concepts would then be largely transferrable in other cases should you need to branch out more in the future
sulky has joined #ruby
<havenwood> jackcom: That's all well and good unless you're choking trying to drink your bread and having trouble spreading your jam on your milk.
dopamean_ has joined #ruby
jairo has joined #ruby
<havenwood> jackcom: (You've recently shown us examples of trying to run Ruby code with Lua and Python code with Ruby.)
allcentury has quit [Ping timeout: 240 seconds]
<jhass> jbrhbr: show what you tried? ideally some small self contained example that reproduces your problem
<Radar> Well, I don't need to say anything because jbrhbr and havenwood have covered it really well.
<jackcom> in the past, i try to learn ruby, but i failed. so i study other laguage like pytho, c, c++. this make me to understand ruby more now
podman has quit [Quit: Connection closed for inactivity]
nettoweb has joined #ruby
mattyohe has quit [Quit: Connection closed for inactivity]
ismaelga has joined #ruby
<jbrhbr> jhass: point taken
<jbrhbr> i'll gist something in a few minutes with all of my darts if i can't figure it out, thanks
moeabdol1 has quit [Read error: Connection reset by peer]
jetpackjoe has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> jackcom bread + jam + milk OR wine + chocolate cream + raw eggs ... you can do any combinations
moeabdol1 has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
<jackcom> oh great shevy that is i wanted.
<jackcom> :)
<shevy> ...
<Ox0dea> shevy: jackcom wanted you to tell him that he's going about this the right way, and you did so.
diegoaguilar_ has quit [Quit: Leaving]
<jbrhbr> jhass: to whet your appetite, this selector is failing to find the element for me, although I found a couple of SO posts using it for this use case: dom.xpath('//div[starts_with(@class, "-cx-PRIVATE")]')
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
yoongkang has joined #ruby
<jackcom> Ox0dea: anyway, how about my speaking english skill?
<shevy> Ox0dea all hope is lost with jackcom - let's be honest, we know this already, you know this too
<Ox0dea> Yes, I do, but then why this masquerade?
<jbrhbr> there's probably some other issue tho— ignore me for a bit
<shevy> even help vampires want attention!
<shevy> a cuddle here, a hug there
jairo has left #ruby ["Leaving"]
* VeryBewitching will not be cuddling any of you.
Yzguy has joined #ruby
<shevy> :(
<jbrhbr> ain't nothin wrong with a cuddle
<Ox0dea> ♫ All you need is love. ♫
<Yzguy> ^^^^
<Yzguy> hahah
blackmesa has joined #ruby
<VeryBewitching> I will *thank* you if you help me, but cuddling requires some romancing on your part.
<Ox0dea> shevy: "Help vampire" really isn't the term for this person, though. I think they're interesting from a psychoanalytical perspective, but I've not been able to pinpoint exactly how.
<Ox0dea> I think they're probably a goldfish.
NeverDie has joined #ruby
<shevy> lol
<Ox0dea> jackcom: Glurp glip gloop?
<jackcom> what you mean? Ox0dea
<Ox0dea> Glip glurp!
<shevy> he not speak fish
<Ox0dea> Gloop glip glip. :<
yoongkang has quit [Ping timeout: 265 seconds]
<jackcom> can i stop asking to me. i m tired
<baweaver> Ok ok, you've had your fun, let's keep it on topic
jetpackjoe has joined #ruby
jetpackjoe has quit [Max SendQ exceeded]
goodcodeguy has joined #ruby
tenderlove has quit [Quit: Leaving...]
EllisTAA has quit [Quit: ellistaa]
<jackcom> can i see youtube music?
<jbrhbr> with enough acid
<baweaver> enough
<Ox0dea> jbrhbr: Or just synesthesia?
<jbrhbr> true :p
antoniobeyah has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
bb010g has joined #ruby
<craysiii> i came back at a very weird time
<baweaver> jackcom: let's keep it on topic
<jackcom> ok but it is my cusron
wnd has quit [Excess Flood]
gambl0re has quit [Ping timeout: 265 seconds]
<jackcom> cousin
wnd has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
baweaver has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
kies has joined #ruby
markfletcher has joined #ruby
markfletcher has left #ruby [#ruby]
warkon has quit [Ping timeout: 246 seconds]
<blubjr> b
<blubjr> oops
baweaver has quit [Ping timeout: 272 seconds]
craysiii has quit [Quit: Leaving.]
pawnbox has joined #ruby
amclain has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
babblebre has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
zacstewart has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
arooni has quit [Ping timeout: 246 seconds]
ismaelga has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 255 seconds]
crunk_bear has joined #ruby
aibot has quit [Ping timeout: 250 seconds]
EllisTAA has joined #ruby
tubuliferous_ has joined #ruby
kstuart has quit [Quit: WeeChat 1.3]
mary5030 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<EllisTAA> i want to open a file, scan till i find a specific line and then write to the file, but fromm what i’ve read you can’t do this, but i feel like that can’t be right … can someone tell me how to do this?
<EllisTAA> err maybe a+
aibot has joined #ruby
<jbrhbr> is there a gem that defines an rfc-compliant email regex?
<jbrhbr> i think i found one
RegulationD has joined #ruby
<Ox0dea> ellistaa: That is, alas, correct.
<jbrhbr> Authlogic::Regex.email — any haters?
dopamean_ has joined #ruby
<jbrhbr> nevermind, just looked at the source. there's no way this thing is rfc compliant
<Ox0dea> ellistaa: There are no filesystems in widespread use that support arbitrary appends.
<EllisTAA> Ox0dea: so i can’t just append in the middle of the file?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> ellistaa: That's right; you have to write the entire file. :<
<EllisTAA> bah
<EllisTAA> ok
<shevy> hmm
<jbrhbr> yea i'm familiar with that
<jbrhbr> but it's Perl :)
<jbrhbr> i could just copy it but it woulda been nice if it was contained in a small gem
<Ox0dea> You want to bring on a dependency for a regular expression...?
<bnagy> it's probably not valid anymore anyway
<jbrhbr> for that regex? sure
<bnagy> and .. regex for email checking. Just Say No.
<Ox0dea> ^
<jbrhbr> it's not for validation
<jbrhbr> i need to parse email addresses out of arbitrary text
<jbrhbr> i could use some ghetto thing, as most would, but if there was a module, that would be more DRY
RegulationD has quit [Ping timeout: 260 seconds]
<bnagy> scan \W.*@.*\W :>
<jbrhbr> :p
<bnagy> seriously though that is honestly what I'd do IRL
<bnagy> and then post process
<jbrhbr> yeah
tvw has quit [Ping timeout: 252 seconds]
Mojo_Nixon has joined #ruby
<VeryBewitching> I use: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
moeabdol1 has quit [Read error: Connection reset by peer]
shevy has quit [Ping timeout: 252 seconds]
<bnagy> have fun with that
<VeryBewitching> There's no point in parsing an email address if the address itself is in an invalid format.
<bnagy> lookaheads. A+. That's where the perf is at.
moeabdol1 has joined #ruby
<jbrhbr> no lookaheads there
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby
dexteryy has joined #ruby
<bnagy> no? derp.
<jbrhbr> ?: is just no capture
<jbrhbr> not sure why the first group isn't marked the same tho :)
<jbrhbr> or the 2nd
stannard has joined #ruby
<jbrhbr> either way, i'll just use something similar
asas has joined #ruby
<bnagy> if you're pulling out from arb text you'll need to change the anchors though, right?
adriancb has joined #ruby
<jbrhbr> yes
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Ping timeout: 255 seconds]
rdavila has joined #ruby
dmcp_ has joined #ruby
asas is now known as Dimik
stannard has quit [Ping timeout: 272 seconds]
moeabdol1 has quit [Read error: Connection reset by peer]
moeabdol1 has joined #ruby
JazzyVariable227 has joined #ruby
ledestin has joined #ruby
mrd_ has quit [Ping timeout: 272 seconds]
dmcp_ has quit [Ping timeout: 265 seconds]
shevy has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol1 has quit [Read error: Connection reset by peer]
moeabdol1 has joined #ruby
<jhass> jbrhbr: sorry, power went out and my bouncer eats a couple of minutes when I suddenly disconnect, so if you showed anything...
rubie has quit [Remote host closed the connection]
dexteryy has quit [Ping timeout: 246 seconds]
akem has quit [Quit: Bye]
Ox0dea has quit [Quit: WeeChat 1.4-dev]
<jbrhbr> jhass: heh, np. i figured it out :)
<jbrhbr> it was user error of course
<jbrhbr> thanks
_seanc_ has joined #ruby
aeontech has joined #ruby
dopie has joined #ruby
tref has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IrishGringo has joined #ruby
yoongkang has joined #ruby
maikowblue has quit [Quit: .]
bryanray has joined #ruby
adriancb has quit []
EllisTAA has quit [Quit: ellistaa]
aeontech has quit [Client Quit]
cwong_on_irc has joined #ruby
yoongkang has quit [Ping timeout: 255 seconds]
moeabdol1 has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 265 seconds]
moeabdol1 has joined #ruby
dopie has quit [Ping timeout: 272 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
mattwildig has quit [Remote host closed the connection]
zacstewart has joined #ruby
maloik has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
baweaver has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maloik has quit [Ping timeout: 264 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
baweaver has quit [Ping timeout: 272 seconds]
dimasg has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
shakes has joined #ruby
kies has quit [Ping timeout: 240 seconds]
brendan- has joined #ruby
crunk_bear has joined #ruby
crunk_bear has quit [Max SendQ exceeded]
cdg has quit [Remote host closed the connection]
JazzyVariable227 has quit [Remote host closed the connection]
ascarter has joined #ruby
shakes has quit [Client Quit]
dimasg has quit [Ping timeout: 250 seconds]
shakes has joined #ruby
RobertBirnie has joined #ruby
jbrhbr has quit [Quit: Leaving.]
antoniobeyah has quit [Quit: antoniobeyah]
solocshaw has joined #ruby
shakes has quit [Client Quit]
shakes has joined #ruby
shakes has quit [Client Quit]
shakes has joined #ruby
uri has joined #ruby
saddad has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tulak has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
shakes has quit [Quit: Leaving]
frem has quit [Quit: Connection closed for inactivity]
tulak has quit [Ping timeout: 240 seconds]
shakes has joined #ruby
rdavila has joined #ruby
zacstewart has quit [Remote host closed the connection]
tref has quit [Quit: tref]
antoniobeyah has joined #ruby
saddad has quit [Ping timeout: 264 seconds]
afaris has quit [Quit: Textual IRC Client: www.textualapp.com]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
dlitvak has quit [Remote host closed the connection]
rubie has joined #ruby
arescorpio has joined #ruby
goodcodeguy has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
rubie has quit [Ping timeout: 265 seconds]
gamov has joined #ruby
blackmesa has joined #ruby
gambl0re has joined #ruby
baweaver has joined #ruby
akira__ has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
Guest40201 has quit [Ping timeout: 265 seconds]
shadoi has joined #ruby
_blizzy_ has quit [Quit: Leaving]
EllisTAA has joined #ruby
towski_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
saddad has joined #ruby
<jackcom> i don’t know what is ‘jnject’ and why there is a ‘(0)’?
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jackcom> inject
vdamewood has quit [Quit: Life beckons.]
shakes has quit [Quit: Leaving]
<jackcom> i don’t know what is ‘inject’ and why there is a ‘(0)’?
karapetyan has quit [Ping timeout: 244 seconds]
<blubjr> inject is fold
<al2o3-cr> come again?
<jackcom> fold?
<jackcom> i don’t know blubjr
EllisTAA has quit [Quit: ellistaa]
roshanavand has joined #ruby
freerobby has quit [Quit: Leaving.]
<blubjr> me neither
<jackcom> lol
<jackcom> :(
allcentury has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
akosednar has joined #ruby
mistermocha has joined #ruby
<jackcom> lambdas is important in ruby?
<jhass> kinda
<jackcom> ?
EllisTAA has joined #ruby
<jackcom> what meaning?
<jackcom> jhass:
<jhass> you can go a long way without them, but you'll run across code using or demanding to use them soon enough
roshanavand has quit [Ping timeout: 272 seconds]
linuxboytoo has quit [Remote host closed the connection]
_seanc_ has quit [Ping timeout: 264 seconds]
waka has quit [Remote host closed the connection]
<jackcom> ok jhass
<jackcom> :)
babblebre has quit [Quit: Connection closed for inactivity]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 250 seconds]
braincra- has quit [Quit: bye bye]
EllisTAA has quit [Client Quit]
bryanray has joined #ruby
RobertBirnie has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sanjayu has joined #ruby
ReK2 has quit [Remote host closed the connection]
djbkd has joined #ruby
axsuul has quit [Remote host closed the connection]
axsuul has joined #ruby
uri has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
_seanc_ has joined #ruby
rubie has joined #ruby
braincrash has joined #ruby
pawnbox has joined #ruby
roshanavand has joined #ruby
ngscheurich has joined #ruby
mattwildig has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
arup_r has joined #ruby
moeabdol1 has quit [Ping timeout: 260 seconds]
uri has joined #ruby
mistermocha has joined #ruby
dlitvak has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
antoniobeyah has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
Axy has quit [Read error: Connection reset by peer]
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
bigmac_ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
shadoi has quit [Quit: Leaving.]
bluOxigen has joined #ruby
linuxboytoo has joined #ruby
bluOxigen has left #ruby [#ruby]
maloik has joined #ruby
yoongkang has joined #ruby
iateadonut has joined #ruby
_seanc_ has quit [Quit: _seanc_]
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
maloik has quit [Ping timeout: 240 seconds]
maletor has quit [Client Quit]
aeontech has joined #ruby
framling has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mistermocha has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
sankaber has joined #ruby
yoongkang has quit [Ping timeout: 272 seconds]
kp666 has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
arescorpio has quit [Ping timeout: 255 seconds]
patdohere has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
<blubjr> >> x = 1; def f; case 2; when 1; x = 2; when 2; x end end; f
<ruboto> blubjr # => nil (https://eval.in/474805)
<blubjr> can someone explain whats going on there
_seanc_ has joined #ruby
jhn has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Coraline> Looks like case doesn't return?
patdohere has quit [Ping timeout: 244 seconds]
<Coraline> >> case 2; when 1; puts "WAT"; when 2; puts "OK"; end
<ruboto> Coraline # => OK ...check link for more (https://eval.in/474809)
<Coraline> Program Output
<Coraline> OK
<Coraline> nil
<al2o3-cr> nil there because printing to stdout and not returning
<dtordable> question
<al2o3-cr> and x is outside of method f
ElSif has quit [Read error: Connection reset by peer]
<dtordable> what's the difference between RVM and rbenv?
<Coraline> Oh this is interesting blubjr
<Coraline> >> case 2; when 1; 1; when 2; 2; end
<ruboto> Coraline # => 2 (https://eval.in/474815)
aeontech has quit [Quit: aeontech]
<Coraline> x is out of scope
gix has quit [Ping timeout: 272 seconds]
<Coraline> >> x = 1; def f; case 2; when 1; 1; when 2; x; end; end; f
rakm has joined #ruby
<ruboto> Coraline # => undefined local variable or method `x' for main:Object (NameError) ...check link for more (https://eval.in/474816)
pawnbox has joined #ruby
rakm has quit [Client Quit]
<jhass> blubjr: local variables are allocated (defined) at the parser stage, so when Ruby sees a var = exp anywhere. They're initialized with nil until the assignment is actually executed. So when it's never executed, you get nil back
<jhass> >> x = 1 if false; x
<ruboto> jhass # => nil (https://eval.in/474817)
<Coraline> Thanks jhass
mistermocha has quit [Read error: Connection reset by peer]
<Coraline> I need sleep apparently
haxrbyte has joined #ruby
gix has joined #ruby
<dtordable> Coraline: I don't sleep
haxrbyte has quit [Remote host closed the connection]
<jhass> dtordable: one sucks more than the other ;P
haxrbyte has joined #ruby
<dtordable> jhass: FreeBSD sticks on r2, some time ago it was r19 and so
antoniobeyah has joined #ruby
haxrbyte has left #ruby [#ruby]
mooe has quit [Quit: Connection closed for inactivity]
<jhass> I don't follow
pawnbox has quit [Ping timeout: 276 seconds]
<blubjr> so in the b definition, its assuming a is a new local ?
<droptone> Question: I need to check if 2 out of 3 variables are .empty?
<jhass> blubjr: given the code has a = anything, a exists in the scope. It's initialized with nil and has that value until an assignment is actually executed
<jhass> droptone: [a, b, c].count(&:empty?) == 2
<droptone> Brilliant, thank you jhass.
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
mistermocha has joined #ruby
<blubjr> oh i get it
roshanavand has joined #ruby
<blubjr> so you cant use a writer from within the class ?
maloik has joined #ruby
<jhass> blubjr: you can, local variable assignment just wins over method call, so you need to trick ruby into calling the method. You can do so with self.a = 2
<blubjr> and having the assignment there, unexecuted, is creating a local, causing the later reader call to use the local rather than the reader
<jhass> yes
<blubjr> right ok
<blubjr> thank you
bb010g has quit [Quit: Connection closed for inactivity]
bb010g has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<bigmac_> i have a large hash, i thought i could clear up ram by deleting half of the keys/values... but i still see ram is consumed
<Radar> Delete more of the hash.
<Radar> Problem solved.
<Radar> Where do I send the invoice?
maloik has quit [Ping timeout: 260 seconds]
<jackcom> i think that Lambadas concept is not difficult.
<Coraline> Hashes amirite?
Yzguy has quit [Quit: Cya]
uri has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Coraline> Lambada?
<Coraline> The forbidden dance?
<jackcom> yes Coraline
<droptone> Hashes, how do they work?
kobain has quit [Ping timeout: 276 seconds]
<droptone> Hashes and magnets.
<Radar> I remember when someone tried doing the Lambada at a RubyConf.
<Radar> Blood. So much blood.
<jhass> droptone: like internally or...?
<Radar> So it's now banned.
<droptone> jhass: I'm kidding
<jhass> ah, I'm getting sleepy, totally overlooked some context, sorry
<droptone> All good, and FYI, that condition for determining how many were empty worked perfectly, thank you.
<droptone> how many vars*
<Coraline> Sleepy mods tonight
<Coraline> We should all go to bed and let the trolls take over
<droptone> lol
<jhass> Coraline: but what if... we actually are the trolls?
arup_r has quit [Remote host closed the connection]
<droptone> My head just exploded.
<Coraline> jhass: I would have to change my nick a lot I think
Coraline is now known as ihatecoraline
ihatecoraline is now known as coralineisabully
coralineisabully is now known as Coraline
<jhass> hehe
dfinninger has joined #ruby
<blubjr> does case introduce a new scope
<jhass> no
<jhass> I think only blocks, class, module and method definitions do?
<Coraline> >> def f; x = 1; case 2; when 1; x = 2; when 2; x; end; end; f
<ruboto> Coraline # => 1 (https://eval.in/474825)
ledestin has joined #ruby
<Coraline> Gnight kids
<blubjr> good night
kp666 has joined #ruby
<jhass> mmh, that's interesting
<droptone> Night dad!
tulak has joined #ruby
<Coraline> Dad? Really?
<droptone> 00:09 < Coraline> Gnight kids
<jhass> >> case 1; when 1; x = :x; end; x
<ruboto> jhass # => :x (https://eval.in/474826)
mattwildig has quit [Remote host closed the connection]
<blubjr> coraline is a girls name
UtkarshRay has quit [Remote host closed the connection]
<droptone> It is? Ok.
<droptone> Night mom!
<jhass> blubjr: well, idk, probably an edge case. wouldn't be too surprised if it's different on MRI 1.8, JRuby or Rubinius actually
mistermocha has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
tulak has quit [Ping timeout: 240 seconds]
<dtordable> jruby....
antoniobeyah has quit [Quit: antoniobeyah]
dlitvak has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> blubjr: actually thinking about it, the assignment probably affects which kind of AST node is created afterwards, so the first a gets a Call AST node while the latter gets a local variable read AST node
mistermocha has joined #ruby
<jhass> >> case 2; when 2; a; end; when 1; a = 1; end;
<ruboto> jhass # => /tmp/execpad-b86a0e93385d/source-b86a0e93385d:2: syntax error, unexpected keyword_when, expecting ke ...check link for more (https://eval.in/474827)
<jhass> eh
<jhass> >> case 2; when 2; a; when 1; a = 1; end;
<ruboto> jhass # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/474828)
davedev24 has quit [Remote host closed the connection]
haxrbyte has quit [Client Quit]
<jhass> yup, that would support that theory
arup_r has joined #ruby
<blubjr> ok i get it
<blubjr> thats a little gross
dlitvak has quit [Ping timeout: 264 seconds]
dfinninger has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
rubie has joined #ruby
zacstewart has joined #ruby
mary5030 has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
kp666 has quit [Read error: Connection reset by peer]
darkf has joined #ruby
djbkd has joined #ruby
pawnbox has joined #ruby
saddad has quit [Ping timeout: 255 seconds]
mistermocha has quit [Read error: Connection reset by peer]
_seanc_ has quit [Quit: _seanc_]
antoniobeyah has joined #ruby
dfinninger has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
<bigmac_> hash.clear . . . the ram is still consumed
<bigmac_> hash.size=0
mrd_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
ornerymoose has joined #ruby
yfeldblum has joined #ruby
<blubjr> does ruby have anything like lisp's return-from
blackmesa has joined #ruby
mary5030 has joined #ruby
d0nn1e has quit [Ping timeout: 272 seconds]
mallu has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mallu> Can you please tell me how I can get this working? https://gist.github.com/anonymous/928c51bc43d9194eb725
d0nn1e has joined #ruby
xcesariox has joined #ruby
ur5us_ has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 276 seconds]
<mallu> anyone?
djbkd has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
jerware has joined #ruby
<jerware> hi
<jerware> gem install --no-ri --no-rdoc treetop --version ">= 1.6.3" ## <---- Hangs
<jerware> I'm on centos 7.1
kp666 has joined #ruby
roshanavand has joined #ruby
<blubjr> works for me on osx
ElSif has joined #ruby
iateadonut has quit [Quit: Leaving.]
iateadonut has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
<GriffinHeart> Hey guys facing an weird issue, I have a simple regular expression that depends on '@' mark, but it seems there's multiple types of '@' marks like @ and @
<GriffinHeart> is there a way to match them all? or convert from one to another?
<blubjr> mallu: do you understand why your version doesnt work
<mallu> blubjr: yes I do
CloCkWeRX has left #ruby [#ruby]
<mallu> blubjr: I am assuming I need prime_factors.each do
<jerware> why does gem install hang ?
Mon_Ouie has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
<blubjr> mallu: thats one way, or you could use a series of ifs. you can use += to append to the end of a string
quarters has quit [Ping timeout: 246 seconds]
<blubjr> jerware: how long did you wait before you decided it was hanging
djbkd has quit [Remote host closed the connection]
<mallu> blubjr: "you can use += to append to the end of a string" How do you do that in this case?
antoniobeyah has quit [Quit: antoniobeyah]
<blubjr> >> s = ''; if 2.even?; s += 'two'; end; s
<ruboto> blubjr # => "two" (https://eval.in/474847)
<blubjr> does that give you an idea
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
pawnbox has quit [Remote host closed the connection]
<bigmac_> 100000.times{|x| buff[x]=x}
<bigmac_> buff.size=>100000
<bigmac_> buff.clear
djbkd has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
<bigmac_> i still see irb is consuming lots of ram
<bigmac_> until i exit the irb console
allcentury has joined #ruby
<jerware> blubjr: over 10 mins
rubie has quit [Remote host closed the connection]
favadi has joined #ruby
<blubjr> jerware: no idea then, sorry
tildes has joined #ruby
favadi has quit [Max SendQ exceeded]
Mojo_Nixon has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has quit [Remote host closed the connection]
mallu has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aeontech has joined #ruby
Oli` has quit [Ping timeout: 246 seconds]
THERAFLU has joined #ruby
dlitvak has joined #ruby
<THERAFLU> tracert -h 100 216.81.59.173
<THERAFLU> Tracing route to FIN [216.81.59.173]
<THERAFLU> over a maximum of 100 hops:
<THERAFLU> 1 <1 ms <1 ms <1 ms -snip- 2 26 ms 52 ms 28 ms -snip- 3 14 ms 33 ms 49 ms -snip- 4 18 ms 22 ms 22 ms -snip- 5 19 ms 23 ms 22 ms -snip- 6 27 ms 30 ms 30 ms -snip- 7 31 ms 31 ms 34 ms -snip- 8 26 ms 27 ms 30 ms 75.149.231.30 9 46 ms 66 ms 66 ms xe-1-2-0.atl11.ip4.tinet.net [89.149.181.117]
allcentury has quit [Ping timeout: 272 seconds]
<THERAFLU> 10 * 49 ms 49 ms epik-networks-gw.ip4.tinet.net [77.67.69.158]
<THERAFLU> 11 61 ms 59 ms 63 ms po0-3.dsr2.atl.epikip.net [216.81.59.2]
<THERAFLU> 12 * * * Request timed out.
<THERAFLU> 13 101 ms 118 ms 102 ms Episode.IV [206.214.251.1]
<Radar> !mute THERAFLU
<Radar> Shhhhhhhhhh
zacstewart has quit [Ping timeout: 240 seconds]
THERAFLU has left #ruby [#ruby]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<blubjr> hi radar
jerware has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
djbkd has quit [Read error: Connection reset by peer]
<Radar> blubjr: hi.
jerware has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
djbkd has joined #ruby
sfg has joined #ruby
<driftig> Heh.
skade has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
<sfg> helllo
IrishGringo has quit [Ping timeout: 252 seconds]
Asher1 has joined #ruby
scripore has joined #ruby
dhjondoh has joined #ruby
Asher has quit [Disconnected by services]
Asher1 is now known as Asher
digneety has joined #ruby
mistermocha has joined #ruby
SOLDIERz has joined #ruby
karapetyan has joined #ruby
sfg has quit [Quit: Page closed]
al2o3-cr has quit [Ping timeout: 250 seconds]
djbkd has quit [Read error: Connection reset by peer]
codecop has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ta has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
maloik has joined #ruby
karapetyan has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
djbkd has joined #ruby
maloik has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
kies has joined #ruby
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has quit [Remote host closed the connection]
pyon is now known as pyon-tinuation
mistermocha has quit [Read error: Connection reset by peer]
haraoka has joined #ruby
DoubleMalt has joined #ruby
nofxx has quit [Remote host closed the connection]
tagrudev has joined #ruby
_djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
aganov has joined #ruby
mistermocha has joined #ruby
CloCkWeRX has joined #ruby
pawnbox has quit [Remote host closed the connection]
sarkis_ has quit [Ping timeout: 244 seconds]
jbrhbr has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
davedev2_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
BlackCoyote has joined #ruby
Pupp3tm4st3r has joined #ruby
CloCkWeRX has joined #ruby
SweetSoulBro has joined #ruby
<SweetSoulBro> Hey
Averna has joined #ruby
<blubjr> hi sweetsoulbro
<SweetSoulBro> I have a question for you fine gentlemen
<SweetSoulBro> So I'm trying to get my rubybot to use the /me command.
<SweetSoulBro> But it keeps giving me the 1 for 2 error
User458764 has joined #ruby
sarkis_ has joined #ruby
<SweetSoulBro> and when I tried to set the 1 to nil
<SweetSoulBro> It gives me undefined method
<jackcom> module can have class too in addition to method?
maloik has joined #ruby
davedev24 has joined #ruby
<SweetSoulBro> ANy help?
<SweetSoulBro> or do you need to see my code?
<mozzarella> 1 for 2?
axsuul has quit [Ping timeout: 272 seconds]
<SweetSoulBro> Yeah
<SweetSoulBro> so the bot responds to commands such as !(Do something)
<SweetSoulBro> But
<SweetSoulBro> It /always/ returns the name of the person who said it
<SweetSoulBro> I just want it to return a set string
<SweetSoulBro> so lets say I said
<SweetSoulBro> 1d2
<SweetSoulBro> It would say
<SweetSoulBro> [01:55:30] <SpiderBot> SweetSoulBro, 1d2: 2 [1d2=2]
pawnbox has joined #ruby
<mozzarella> and what do you want it to say?
* SweetSoulBro does a thing
<SweetSoulBro> er
_djbkd has quit [Remote host closed the connection]
<SweetSoulBro> /me does a thing
<blubjr> girls exist too
<SweetSoulBro> I want it to execute the /me command.
sarkis_ has quit [Ping timeout: 240 seconds]
davedev2_ has quit [Ping timeout: 272 seconds]
<SweetSoulBro> or hell
<SweetSoulBro> just print text without the name of the person who said it
bruce_lee has joined #ruby
maloik has quit [Ping timeout: 244 seconds]
haraoka has quit [Ping timeout: 264 seconds]
tildes has quit [Ping timeout: 272 seconds]
<mozzarella> I don't see why it would send the naem of the user, unless that's what you put in your code…
<mozzarella> or maybe you're incorrectly parsing the message?
Xeago has joined #ruby
norc has joined #ruby
<jackcom> module can hold class and function?
<SweetSoulBro> mozzarella: I...maybe doing that
<SweetSoulBro> I don't know
baby_me has joined #ruby
<baby_me> hello
<SweetSoulBro> This is a modification of BONES
ngscheurich has quit [Ping timeout: 240 seconds]
<baby_me> anyone here?
<jackcom> hello :)
<norc> jackcom: modules can hold constants and functions
<norc> constants can point to classes.
<baby_me> hello
<jackcom> and class?
<norc> baby_me: Howdy.
troys has joined #ruby
<jackcom> thanks norc
<jackcom> you are kind :)
sarkis_ has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
<SweetSoulBro> I suppose I will post the code
rubie has joined #ruby
<SweetSoulBro> You guys don't like pastebin
<SweetSoulBro> what should I use instead?
scripore has quit [Quit: This computer has gone to sleep]
baby_me has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
iateadonut has quit [Ping timeout: 272 seconds]
<norc> SweetSoulBro: gist is the preferred method
<norc> pastie is fine too
Xeago has quit [Ping timeout: 264 seconds]
<SweetSoulBro> ma.
<SweetSoulBro> Bam*
<nso95> Someone could write a bot script to automatically repaste the gist of a pasted pastebin, perhaps
roshanavand has joined #ruby
<norc> SweetSoulBro: Let's just assume you didn't paste that. Let's assume you actually spent your time creating a test case.
<SweetSoulBro> Wat.
<SweetSoulBro> ok.
kies has quit [Ping timeout: 272 seconds]
<norc> SweetSoulBro: And that you pasted your small test case instead. ;-)
<SweetSoulBro> ?
arup_r has quit [Ping timeout: 260 seconds]
arup___ has joined #ruby
<SweetSoulBro> I'm unsure what test case you want, the one that spits out the text with the person who created it's name
<SweetSoulBro> or the one that crashes.
<SweetSoulBro> Actually
<SweetSoulBro> Hold on
sarkis_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
vire has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
Squatsbot has joined #ruby
<SweetSoulBro> 1d2
<Squatsbot> SweetSoulBro, 1d2: 2 [1d2=2]
<SweetSoulBro> See.
davedev24 has quit []
roshanavand has quit [Ping timeout: 240 seconds]
caliostro has joined #ruby
caliostro_ has joined #ruby
<caliostro_> hi there!
timonv has quit [Ping timeout: 260 seconds]
<SweetSoulBro> beep
<Squatsbot> SweetSoulBro, Beep!
Squatsbot has quit [Remote host closed the connection]
<SweetSoulBro> That's what I mean by it prints the name first
tulak has joined #ruby
<apeiros> nso95: ruboto does that on your first pastebin and informs you to use gist
<nso95> apeiros: I did not know that. Cool!
mattwildig has joined #ruby
<jackcom> i will start intermediate course of monk.
lxsameer has joined #ruby
mistermo_ has joined #ruby
<SweetSoulBro> Oooh
<SweetSoulBro> Wait
<SweetSoulBro> I think I figgured it out
sarkis_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
arup___ has quit [Remote host closed the connection]
anisha has joined #ruby
tulak has quit [Ping timeout: 272 seconds]
mattwildig has quit [Ping timeout: 252 seconds]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sarkis_ has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
pawnbox has quit [Remote host closed the connection]
roshanavand has joined #ruby
kies has joined #ruby
troys has quit [Quit: Bye]
sarkis_ has joined #ruby
pawnbox has joined #ruby
demonlove has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
vire has quit [Ping timeout: 264 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
armyriad has joined #ruby
SweetSoulBro has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
solenoids has quit [Ping timeout: 265 seconds]
myztic has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
sarkis_ has quit [Ping timeout: 264 seconds]
pawnbox_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nso95- has joined #ruby
nso95- has joined #ruby
User458764 has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
pawnbox_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
al2o3-cr has joined #ruby
lubekpl has joined #ruby
sarkis_ has joined #ruby
dimasg has joined #ruby
Averna has quit [Ping timeout: 240 seconds]
haraoka has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
demonlove has quit [Remote host closed the connection]
will_wielder has joined #ruby
howdoicomputer has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
will_wielder has left #ruby [#ruby]
mistermo_ has quit [Ping timeout: 240 seconds]
sarkis_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
andikr has joined #ruby
vire has joined #ruby
pawnbox has joined #ruby
solenoids has joined #ruby
mistermocha has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
dimasg has quit [Ping timeout: 272 seconds]
TomPeed has joined #ruby
pawnbox has quit [Remote host closed the connection]
sarkis_ has joined #ruby
stan has joined #ruby
maletor has joined #ruby
ayonkhan has joined #ruby
Xeago has joined #ruby
<kiki_lamb> Tryna remember how to enumerate only those instance methods explicitly defined in a class (not those inherited from ancestors), can someone remind me?
roshanavand has joined #ruby
sarkis_ has quit [Ping timeout: 255 seconds]
<shevy> your word enumerate confuses me there
<shevy> otherwise I think it should be .instance_methods(false)
antoniobeyah has joined #ruby
pawnbox has joined #ruby
TomPeed has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
s00pcan has quit [Remote host closed the connection]
sarkis_ has joined #ruby
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
Oog has joined #ruby
jbrhbr has quit [Quit: Leaving.]
maloik has joined #ruby
ta has joined #ruby
dlitvak has joined #ruby
sarkis_ has quit [Ping timeout: 272 seconds]
TomyWork has joined #ruby
BTRE has quit [Ping timeout: 264 seconds]
nofxx has quit [Remote host closed the connection]
mices has joined #ruby
<mices> how do i read the docs for a gem please
nofxx has joined #ruby
atmosx has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> I always try to go the webpage way
dlitvak has quit [Ping timeout: 276 seconds]
lurch_ has joined #ruby
<shevy> for local docu, ri should work; rdoc should (have) generated static html pages
baweaver has quit [Remote host closed the connection]
sarkis_ has joined #ruby
<mices> so use my browsers open file menu?
pawnbox has quit [Remote host closed the connection]
<mices> i ran ri and it asked the method i wanted to look up i typed awesome_nested_set and it said nothing found
futilegames has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
aufi has joined #ruby
allcentury has joined #ruby
<shevy> let's see...
ta_ has joined #ruby
sarkis_ has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
<shevy> mices hmm not sure about the default way; I went to cache/ dir, extracted the .gem, entered the directory, then ran "rdoc"
<shevy> now I can view a local html file at /Programs/Ruby/Current/lib/ruby/gems/2.2.0/cache/awesome_nested_set-3.0.2/rdoc/README_md.html
futilegames has quit [Client Quit]
maloik has quit [Ping timeout: 260 seconds]
maloik has joined #ruby
BTRE has joined #ruby
ta has quit [Ping timeout: 244 seconds]
agit0 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
allcentury has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
blackmesa has joined #ruby
lokulin has quit [Changing host]
lokulin has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
sarkis_ has joined #ruby
SCHAAP137 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
Bugboy1028 has quit [Ping timeout: 246 seconds]
bougyman has quit [Ping timeout: 252 seconds]
roshanavand has quit [Remote host closed the connection]
bougyman has joined #ruby
pawnbox has quit [Remote host closed the connection]
sarkis_ has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
Bugboy1028 has joined #ruby
c0m0 has joined #ruby
lubarch has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
TomPeed has joined #ruby
BTRE has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
sarkis_ has joined #ruby
roshanavand has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
BlackCoyote has quit [Remote host closed the connection]
kies has quit [Ping timeout: 255 seconds]
TomPeed has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
dikaio has joined #ruby
antoniobeyah has joined #ruby
demonlove has joined #ruby
GriffinHeart has joined #ruby
sarkis_ has quit [Ping timeout: 264 seconds]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
lubekpl has joined #ruby
axsuul has joined #ruby
Mia has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 265 seconds]
sarkis_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
BTRE has joined #ruby
pawnbox has joined #ruby
subscope has joined #ruby
Hounddog has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
demonlove has quit [Remote host closed the connection]
sarkis_ has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
howdoicomputer has quit [Ping timeout: 272 seconds]
Dimik has quit [Ping timeout: 252 seconds]
sarkis_ has joined #ruby
karapetyan has joined #ruby
howdoi has joined #ruby
StonerWizard has joined #ruby
<StonerWizard> yo
adac has joined #ruby
marr has joined #ruby
gustav_ has joined #ruby
Ishant has joined #ruby
<Ishant> hello every body
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ishant> can any one explain me some code of search.rb filter?
tubuliferous_ has quit [Ping timeout: 240 seconds]
<Ishant> please help me some one
sarkis_ has quit [Ping timeout: 272 seconds]
nso95- has quit [Remote host closed the connection]
gamov has quit [Quit: gamov]
Xeago has joined #ruby
DoubleMalt has joined #ruby
skcin7 has joined #ruby
JuanitoFatas has joined #ruby
subscope has joined #ruby
gamov has joined #ruby
lenwood has joined #ruby
karapetyan has quit []
antgel has joined #ruby
<adaedra> Hello
antgel has quit [Client Quit]
antgel has joined #ruby
<bigmac_> james Lawrence?
<bigmac_> james1:
blaxter has joined #ruby
<adaedra> mices: rubydoc.info has all the gem docs
howdoicomputer has joined #ruby
sarkis_ has joined #ruby
elaptics`away is now known as elaptics
StonerWizard has quit [Ping timeout: 272 seconds]
kimegede has joined #ruby
ismaelga has joined #ruby
e7d has joined #ruby
gamov has quit [Ping timeout: 252 seconds]
bersimoes has joined #ruby
sarkis_ has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
ismaelga has quit [Read error: Connection reset by peer]
ismaelga has joined #ruby
ta_ has quit [Remote host closed the connection]
ta has joined #ruby
<norc> I suddenly find myself using the Foo = Class.new(Bar) pattern more often every day.
<norc> This is a good thing right?
<Ishant> hello
<al2o3-cr> is it me your looking for?
<Ishant> yes norc
<Ishant> can you help me please?
<adaedra> We're help to ask, but we need a question for that.
<adaedra> er.
<adaedra> We're here to help*
baweaver has joined #ruby
<adaedra> Maybe I should try this "coffee" everybody keeps talking about, I seem to need it.
howdoicomputer has quit [Ping timeout: 240 seconds]
sarkis_ has joined #ruby
pawnbox has joined #ruby
tomaz_b has joined #ruby
Xeago has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
StonerWizard has joined #ruby
<StonerWizard> hello everyone
Gnut has joined #ruby
<adaedra> Hi StonerWizard
<Ishant> can you explain
<Ishant> if @field.length > 1 badbotsinput = event[@field[1]] @badbots_token_array.each do |badbotsvalue| badbotsvalue ||= nil if badbotsvalue.nil? raise "#{self.class.name}: Null value in badbots_token_array in dictionary file #{@path}" end
<norc> gist that please.
JazzyVariable227 has joined #ruby
<adaedra> ?gist Ishant
<ruboto> Ishant, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
dikaio has quit [Quit: ........]
jbrhbr has joined #ruby
<adaedra> and precise what part of the code you don't understand, maybe with a little context (gem used, ...)
<norc> Ah well. At least this pattern is much cleaner for defining Exceptions. :-)
<adaedra> StonerWizard: please don't pm people without aknowledgement.
Xeago has joined #ruby
<adaedra> acknowledgment*
pawnbox has quit [Remote host closed the connection]
<StonerWizard> ok, didn't know that
allcentury has joined #ruby
<Ishant> did you get it?
<adaedra> Ishant: a little bit of patience!
<StonerWizard> which IDE do you guys use for ruby?
<adaedra> StonerWizard: for smalltalk, there's #ruby-offtopic, way better than pm-ing people randomly.
baweaver has quit [Ping timeout: 272 seconds]
sarkis_ has quit [Ping timeout: 240 seconds]
<Ishant> actually i have a search.rb filter
<Ishant> i have to put it there
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<StonerWizard> ok good to know
<adaedra> ok, so what it is you don't understand, Ishant
subscope has joined #ruby
JazzyVariable227 has quit [Client Quit]
<Ishant> i have not much knowledge of ruby
roshanavand has quit [Remote host closed the connection]
<Ishant> so it is not easy to me what is going on there exactly
<adaedra> Everything in the snippet you pasted?
<Ishant> no a part of the code
<adaedra> which part?
zacstewart has joined #ruby
tulak has joined #ruby
<Ishant> don't get you
<adaedra> which part of the code you linked to us do you not understand?
allcentury has quit [Ping timeout: 252 seconds]
mattwildig has joined #ruby
avril14th has quit [Remote host closed the connection]
<shevy> Ishant come on man
<Ishant> ok i am sending you anothor
tulak_ has joined #ruby
Spami has joined #ruby
tulak has quit [Read error: Connection reset by peer]
tomaz_b has quit [Quit: Leaving]
dmolina has joined #ruby
Spami has quit [Client Quit]
sarkis_ has joined #ruby
houhoulis has joined #ruby
<Ishant> please explain it
<adaedra> you just sent more code
DexterLB has quit [Quit: So long and thanks for all the fish]
<Ishant> yes it is complete code
<Ishant> i did not get how it works
bigkevmcd has joined #ruby
<Ishant> please explain me briefly
<adaedra> The whole thing?
zacstewart has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
<adaedra> Ishant: and don't pm people without prior agreement, please.
<adaedra> we're all here to help you
<Ishant> ok
<Ishant> sorry
mattwildig has quit [Ping timeout: 272 seconds]
varunwachaspati_ has joined #ruby
<adaedra> What is causing you trouble in your code, Ishant?
JuanitoFatas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ishant> as i told you
<Ishant> i don't know
maletor has quit [Quit: Computer has gone to sleep.]
<adaedra> You don't understand anything?
<Ishant> ruby so it is difficult
<Ishant> to understand
bersimoes has quit [Ping timeout: 240 seconds]
<Ishant> yes
<adaedra> Well, it takes some practice
sarkis_ has quit [Ping timeout: 246 seconds]
<adaedra> I'll go back at your first snippet, because I'm not going through a 250+ lines chunk
<Ishant> ok
<Ishant> please explain me each line
bersimoes has joined #ruby
<adaedra> Even the first one is troubling you? `if @field.length > 1`?
<Ishant> yes
<adaedra> Do you know ruby basics?
<Ishant> yes
<adaedra> Because there's nothing very complicated in this one
<Ishant> is it a condition which says that if lenght is greater than 1
<Ishant> then condition is true
<Ishant> ?
Shapeshifter has quit [Quit: leaving]
<adaedra> then length of @field, yes
<adaedra> the*
<Ishant> why we are using @field
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
<Ishant> not field
<adaedra> It's an instance variable
<adaedra> You know what an instance variable is?
<Ishant> yes
sarkis_ has joined #ruby
<adaedra> So we're clear on line 1?
<Ishant> it will read the field value at run time
<Ishant> right?
lubekpl has joined #ruby
Pumukel has joined #ruby
<adaedra> It will test the value of @field, yes
GriffinHeart has joined #ruby
f4cl3y has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
gavit has quit [Ping timeout: 255 seconds]
nfk|laptop has joined #ruby
tomphp has joined #ruby
gavit has joined #ruby
elaptics is now known as elaptics`away
houhoulis has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
Xeago has quit [Remote host closed the connection]
sarkis_ has quit [Ping timeout: 244 seconds]
<Ishant> yes
<Ishant> i got it
blackmesa has joined #ruby
roshanavand has joined #ruby
<adaedra> Ok, read the next lines and tell what next you don't understand. Analyze it like you did for the previous line.
f4cl3y has quit [Client Quit]
Axy has joined #ruby
f4cl3y has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
Sembei has joined #ruby
DoubleMalt has joined #ruby
<Ishant> badbotsinput = event[@field[1]]
ismael_ has joined #ruby
<adaedra> ok, what do you say about that
ismaelga has quit [Read error: Connection reset by peer]
howdoicomputer has joined #ruby
<Ishant> bad bot will take an input as event for field 1
<Ishant> right?
Xeago has joined #ruby
sarkis_ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
colli5ion has joined #ruby
<adaedra> no
<TTilus> might, might not, but it is not happening on that line
Gnut has quit [Ping timeout: 246 seconds]
<Ishant> so what will be there?
<TTilus> Ishant: tell me what "badbotsinput" is
<Ishant> it is a list of tokens
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
dionysus69 has quit [Quit: dionysus69]
shinnya has joined #ruby
<TTilus> it might have a value, which is
<TTilus> but it itself isn't
<TTilus> it is a local variable
<TTilus> local variable named "badbotsinput" is assigned a value which is a result of evaluating expression "event[@field[1]]"
<Ishant> yes it will store the output of event[@field[1]]
sarkis_ has quit [Ping timeout: 250 seconds]
<Ishant> right
<TTilus> now, what "event is"?
<Ishant> how event[@field[1]] will work?
<TTilus> and yes, badbotsinput kinda "will store the output of event[@field[1]]"
<TTilus> let's start with what event is
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ishant> searching the token from the list is the event i think
pawnbox has joined #ruby
jbrhbr has quit [Quit: Leaving.]
bersimoes has quit [Read error: Connection reset by peer]
<TTilus> you are jumping ahead too fast, slow down
<Ishant> ohk sorry
<TTilus> what is "event" there in the assignment rhs expression "event[@field[1]]"
pawnbox has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
<Ishant> i have sent the link of whole code As i am not able to understand the code so can't say
GriffinHeart has joined #ruby
<TTilus> and im trying to help you learn how to read that code
sarkis_ has joined #ruby
rdark has joined #ruby
<Ishant> ok
<adaedra> TTilus: i'm not sure there is understanding of the whole code context; hence determining what precise variables has for a role will be a difficult task, I guess.
<TTilus> if you don't know the answer to my questions, you may very well answer "dunno" :D
Couch has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 265 seconds]
bersimoes has joined #ruby
<TTilus> adaedra: apparently, just trying to teach (a bit of) fishing instead of fishing for himi
<TTilus> s/himi/him/
yfeldblum has joined #ruby
<adaedra> Happy fishing then.
<TTilus> Ishant: i take that you don't know how "event" in "event[@field[1]]" reads?
<Ishant> yes
<TTilus> it is either a local variable or a method call
varesa has joined #ruby
troulouliou_div2 has joined #ruby
<TTilus> independent of that, it evaluates to a value
sarkis_ has quit [Ping timeout: 240 seconds]
<TTilus> that value is an object (as everything in ruby is an object)
Couch has joined #ruby
nettoweb has joined #ruby
<Ishant> ok
<TTilus> a method named "[]" of that object is then called with a single parameter
<TTilus> value of that parameter comes from evaluating the expression "@field[1]"
pawnbox has joined #ruby
bigmac_ has quit [Quit: Leaving]
roshanavand has joined #ruby
<TTilus> there "@field" is an instance variable
Bellthoven has joined #ruby
<Ishant> ok now i get it
platzhirsch has joined #ruby
<agent_white> So... http://stackoverflow.com/a/24665413/5461126 -- I've never even heard of a "fixed template string" before. But this looks really neat. My google-fu is failing me on where to look to learn more about this! Any search suggestions appreciated.
<TTilus> foo[bar] in ruby is just syntactic sugar for foo.[](bar)
shredding has joined #ruby
<Ishant> ok
<TTilus> i.e. calling method "[]" on "foo" with argument "bar"
howdoicomputer has quit [Ping timeout: 272 seconds]
Oog has quit []
<TTilus> "[]" in core ruby and standard libraries is by convention a lookup method
sarkis_ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<Ishant> ok
<TTilus> so assuming ruby conventions event[@field[1]] reads: take element 1 of @field and use that element as name/index to take an element from event
lubarch has quit [Quit: leaving]
<TTilus> (where event might be a method call which returns a value from where the lookup is performed)
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
rodfersou has joined #ruby
<TTilus> agent_white: that's called string interpolation in ruby
tomphp has quit [Client Quit]
<Ishant> i have a question
<TTilus> agent_white: sorry, string format
<agent_white> TTilus: Seriously?
<agent_white> Ah!
<agent_white> I have never heard of it... it looks neat. Thank you :)
<Ishant> how can i search user agent from any file
user083 has quit [Read error: Connection reset by peer]
<TTilus> really handy
skade has quit [Read error: Connection reset by peer]
user083 has joined #ruby
sarkis_ has quit [Ping timeout: 244 seconds]
erbesharat has joined #ruby
<Ishant> where it is present
<Ishant> ?
<TTilus> Ishant: `grep -rin "user agent" files/"
<TTilus> Ishant: are you talking about browser user agent string?
<Ishant> can i use this in ruby code?
<Ishant> i have my file in logstash
tomphp has joined #ruby
futilegames has joined #ruby
<Ishant> in logstash there is a yaml file
Axy has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
<norc> Ishant: If you want to learn Ruby I really recommend you take a book of your chosing...
<Ishant> i have to write a ruby code to search user agent from there
<norc> Ishant: Then start with a book.
pawnbox has joined #ruby
<Ishant> can you please send me a small code how can i search it
<Ishant> please
dviola has joined #ruby
baweaver has joined #ruby
bersimoes has quit [Read error: Connection reset by peer]
rubie has joined #ruby
Peg-leg has joined #ruby
<norc> Ishant: I am going to give you the best advise, probably the only that will really help you:
<ljarvis> Ishant: no, nobody should write this for you
<norc> Start with a Ruby book.
<TTilus> Ishant: we are willing to help you do your job, but not doing your job for you
<norc> Or hire someone to teach you. But a book is probably cheaper.
<Ishant> ok
<norc> Now, if you want, we can give you good advise on decent books and learning material.
<Ishant> thank you
<TTilus> Ishant: if you absolutely need somebody to do the job for you, just hire one
<norc> It's not that we don't want to help, but teaching or doing your job is not what we do. :-)
sarkis_ has joined #ruby
<TTilus> Ishant: using ruby to simply search a pile of text files feels totally overkill, why not just grep?
<Ishant> i just want to know how to read the user agent from anywhere
<Ishant> but i need to read
<Ishant> first
<Ishant> as you mentioned
<norc> Ishant: As admirable as that is, that is your issue. We can only point you towards the tools.
<norc> You have to do the work yourself.
axsuul has quit [Ping timeout: 272 seconds]
Gi0 has quit [Remote host closed the connection]
colli5ion has quit [Remote host closed the connection]
bersimoes has joined #ruby
<agent_white> Home-cooked meals are more satisfying than fast food :)
<adaedra> Anytime.
rubie has quit [Ping timeout: 265 seconds]
monthy has joined #ruby
<TTilus> Ishant: we might be able to point out shortcuts (what to focus on) if you tell a little more background of the task at hand, e.g. what files (type, format, size, count, ...), what is "user agent" (browser ua string?), what do you need that information for, etc.
baweaver has quit [Ping timeout: 272 seconds]
A124 has joined #ruby
sarkis_ has quit [Ping timeout: 255 seconds]
User458764 has joined #ruby
<Ishant> i have some yaml files for which we have created a search.rb filter
<gregf_> Ishant: when you say you need to search for a string in a file(s), you can use the shell for it. i'm not sure you would only need to use ruby for it. but if you feel you enjoy ruby, then, theres nothing wrong in that ;)
<Ishant> in this filter i have to read the user agent from the file
<Ishant> that is all
poguez_ has quit [Quit: Connection closed for inactivity]
<gregf_> Ishant: what is 'user agent'? is it a string? or do you need to get the output from a http client? :|
kp666 has quit [Ping timeout: 272 seconds]
<Ishant> yes it is s string
<gregf_> s/get the output/parse the response/
<gregf_> Ishant: so you can use grep, no?
StonerWizard has quit [Quit: Leaving]
<Ishant> i can not use that in ruby i think
GriffinHeart has quit [Remote host closed the connection]
Sherushe has joined #ruby
<gregf_> Ishant: the web has so much on it. try and read on ``(backticks) or %x
<gregf_> or system
pawnbox has quit [Remote host closed the connection]
<TTilus> gregf_: backticking out to grep would prolly be totally pointless since you can just grep directly from shell
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
sarkis_ has joined #ruby
<shevy> Ishant all the methods are available; you only have to read stuff. You have .scan() you have .grep() you have everything!
Mia has quit [Read error: Connection reset by peer]
<agent_white> Ishant: Random note, but if you're the "Ishant_" in #ubuntu, changing permissions of a RO filesystem is not a good idea.
haraoka has quit [Ping timeout: 255 seconds]
doddok has left #ruby [#ruby]
<gregf_> >> def foo; %w|foo bar baz quux useragent|; end; p foo.grep(/^user/).map(&:upcase)
<ruboto> gregf_ # => ["USERAGENT"] ...check link for more (https://eval.in/474979)
<norc> Q.Q
<gregf_> >> def foo; %w|foo bar baz quux useragent|; end; p foo.scan(/^user/).map(&:upcase)
<ruboto> gregf_ # => undefined method `scan' for ["foo", "bar", "baz", "quux", "useragent"]:Array (NoMethodError) ...check link for more (https://eval.in/474980)
<gregf_> >> def foo; %w|foo bar baz quux useragent|; end; p foo.join.scan(/^user/).map(&:upcase)
<ruboto> gregf_ # => [] ...check link for more (https://eval.in/474981)
tulak_ has quit [Remote host closed the connection]
<gregf_> Ishant: if you dont try anything you wont be confident in your abilities :|
Bellthoven has quit []
gustav_ has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 1.3]
htmldrum has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sarkis_ has quit [Ping timeout: 265 seconds]
GriffinHeart has joined #ruby
<TTilus> Ishant: you prolly need YAML.load_file('file.yml') and lookup/traversal methods of Array/Hash
GriffinHeart has quit [Remote host closed the connection]
arup_r has joined #ruby
<gregf_> Ishant: as TTilus has said, (sorry i missed the yaml bit), load the file and you get a ruby Datastruct. you just iterate over it?
djellemah has joined #ruby
blackmesa has joined #ruby
dlitvak has joined #ruby
lenwood has quit [Ping timeout: 252 seconds]
futilegames has quit [Quit: futilegames]
senayar_ has joined #ruby
senayar has quit [Read error: No route to host]
Hounddog has quit [Ping timeout: 272 seconds]
sarkis_ has joined #ruby
pawnbox has joined #ruby
Hounddog has joined #ruby
gregf_ has quit [Read error: Connection reset by peer]
gustav_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Hounddog has quit [Excess Flood]
nfk|laptop has quit [Ping timeout: 246 seconds]
Hounddog has joined #ruby
subscope has joined #ruby
gregf_ has joined #ruby
bersimoes has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
sarkis_ has quit [Ping timeout: 255 seconds]
weckl has joined #ruby
pawnbox has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 246 seconds]
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
User458764 has joined #ruby
ldnunes has joined #ruby
dmolina has quit [Read error: Connection reset by peer]
dmolina1 has joined #ruby
bersimoes has joined #ruby
trautwein has joined #ruby
<gregf_> Ishant: i just tried this. se, its hardly 2 lines of code :/ https://gist.github.com/anonymous/97b826594f40ae228f2a
<Ishant> thank you
sarkis_ has joined #ruby
<Ishant> i am going to check it
lxsameer has quit [Quit: Leaving]
<Ishant> and will let you know
Hounddog has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
<shevy> so javascript not only kills ruby
<shevy> it also kills php
<gregf_> shevy: PHP can kill anything except fb
<gregf_> but... it aint that bad... i'm exaggerating :|
sdothum has joined #ruby
<shevy> TIOBE declares that php is still more popular than javascript
doddok has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> oh cool
<ytti> ruby gained
<ytti> i wonder why
doddok has left #ruby [#ruby]
alzig has joined #ruby
<alzig> r
Hounddog has joined #ruby
<ytti> still far from its haydays
<shevy> ytti I think rubygems are going strong
BadBlock has quit [Quit: :(){ :|:& };:]
sarkis_ has quit [Ping timeout: 276 seconds]
aspiers has quit [Ping timeout: 252 seconds]
sdoda has joined #ruby
<shevy> for some weird reason, ruby seems to be popular in india
monthy has quit [Remote host closed the connection]
Hounddog has quit [Excess Flood]
bersimoes has quit [Remote host closed the connection]
banister has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Hounddog has joined #ruby
<ytti> india is all about doing much results with short time
DoubleMalt has quit [Ping timeout: 240 seconds]
TPBallbag has joined #ruby
<shevy> hehe
<ytti> really we hear lot about the terrible outsourcing projects
<ytti> and sure enough there are tons of incompetent people there, obviously, it's large country
maloik_ has joined #ruby
<ytti> but also, at least in networking side, when you visit CSCO or JNPR, majority of the peeps are indians or pakistanis
<ytti> really few caucasians writing code, in my experience
stan has quit [Quit: Leaving]
pawnbox has joined #ruby
sarkis_ has joined #ruby
stan has joined #ruby
<shevy> http://goo.gl/WSRuAJ is better, I added javascript... I think those stats, even with the errors, seem to be vaguely correct from a look-and-feel ...
<shevy> python gained, php declined a bit ... actually, it dropped quite a bit much the last some months... javascript is slowly gaining a bit... ruby dropped to a low in 2010 or so, and since then climbs a tiny tiny tiny wee bit ... perl on the other hand is in steady, slow decline
stan has quit [Remote host closed the connection]
<shevy> ytti yeah, europe is so big but there are not enough programmers!
<gregf_> Perl6 is going to be released this christmas
<blubjr> perl 6 looks cool as hell
maloik has quit [Ping timeout: 272 seconds]
<gregf_> so its only the start ;). Perl6 could be the new Ruby 3 *hides*
Hounddog has quit [Ping timeout: 272 seconds]
<gregf_> blubjr: whoever said hell was cool ;)
pawnbox has quit [Remote host closed the connection]
<agent_white> What about perl11? Looks like there's that one single guy hacking away at _why's language.
<blubjr> o_o
<agent_white> (potion)
<agent_white> erm
<agent_white> nevermind, that was his username.
<agent_white> ignore me
Oli` has joined #ruby
mistermocha has joined #ruby
Hounddog has joined #ruby
<agent_white> erm...(mumbles)
monthy has joined #ruby
libre-free has joined #ruby
libre-free has left #ruby [#ruby]
sarkis_ has quit [Ping timeout: 255 seconds]
roshanavand has joined #ruby
Hounddog has quit [Excess Flood]
dhjondoh has quit [Remote host closed the connection]
<driftig> You're on drugs.
mistermocha has quit [Ping timeout: 244 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
sarkis_ has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
leat has quit [Quit: leat]
sdoda has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarkis_ has quit [Ping timeout: 260 seconds]
<shevy> :D
arup_r has quit []
pjaspers_ has joined #ruby
<driftig> Probably crack-cocaine.
arup_r has joined #ruby
dhjondoh has joined #ruby
Hounddog has joined #ruby
maloik_ has quit [Ping timeout: 272 seconds]
sarkis_ has joined #ruby
Mon_Ouie has joined #ruby
Hounddog has quit [Excess Flood]
jackcom has quit [Quit: jackcom]
RobertBirnie has joined #ruby
pawnbox has joined #ruby
sarkis_ has quit [Ping timeout: 252 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
RobertBirnie has quit [Client Quit]
zacstewart has joined #ruby
Hounddog has joined #ruby
roshanavand has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
sdoda has joined #ruby
Ox0dea has joined #ruby
nofxxx has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: parting / quiting]
trautwein has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
Hounddog has quit [Ping timeout: 272 seconds]
nofxx has quit [Ping timeout: 255 seconds]
nso95 has quit [Quit: nso95]
Rickmasta has joined #ruby
monthy has quit [Killed (Sigyn (Spam is off topic on freenode.))]
damireh has joined #ruby
gustav__ has joined #ruby
gustav_ has quit [Read error: Connection reset by peer]
trautwein has joined #ruby
skmp_ is now known as skmp
maloik has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
Hounddog has joined #ruby
damireh has quit [Client Quit]
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
<agent_white> Nah just was blessed with 64kB RAM :)
sdoda has quit [Ping timeout: 240 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
Xeago has quit [Remote host closed the connection]
stamina has joined #ruby
banister has joined #ruby
dawkirst has joined #ruby
scripore has joined #ruby
<driftig> I want 32GB RAM on my next Macbook Pro, but OS X would probably use 10GB just to run.
sarkis_ has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has quit [Ping timeout: 240 seconds]
<gregf_> 64kb *cries*
maloik has quit [Ping timeout: 260 seconds]
Tempesta has quit [Quit: AdiIRC is updating to v2.0 Beta Build (2015/11/23) 32 Bit]
maloik has joined #ruby
Hounddog has joined #ruby
lenwood has joined #ruby
Tempesta has joined #ruby
sarkis_ has quit [Ping timeout: 246 seconds]
elaptics`away is now known as elaptics
yoongkang has joined #ruby
red_horned_rihno has joined #ruby
roshanavand has joined #ruby
CloCkWeRX has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
antoniobeyah has joined #ruby
<shevy> hmm I have 8 gig here... what are you going to do with 32 driftig
<adaedra> driftig: I run OS X with 4GB of RAM.
User458764 has joined #ruby
sdoda has joined #ruby
sarkis_ has joined #ruby
<driftig> shevy: Virtual machines.
jackcom has joined #ruby
Hounddog has joined #ruby
maloik has quit [Ping timeout: 240 seconds]
<driftig> adaedra: Macbook Air?
<adaedra> An older MacBook Pro
<driftig> adaedra: Must be pretty old.
roshanavand has quit [Ping timeout: 240 seconds]
<adaedra> 2010.
CloCkWeRX has quit [Ping timeout: 246 seconds]
<shevy> ancient!
<driftig> Time flies when you're having technology.
<driftig> Ten years from now 64GB RAM would be standard.
maloik has joined #ruby
<driftig> OS X memory management is awful. It's probably the only thing that Linux gets mildly right.
sarkis_ has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> that's right - supercomputers run linux http://www.top500.org/statistics/details/osfam/1
<driftig> I'd rather run a BSD given a supercomputer.
<driftig> Does FreeBSD have address space layout randomization yet?
Hounddog has quit [Ping timeout: 272 seconds]
Sherushe has quit [Quit: Quitte]
tvw has joined #ruby
red_horned_rihno has quit [Quit: Leaving]
<adaedra> Last time I read about it they were on it.
<alzig> rustoS best for the supercomputer
<driftig> adaedra: Last time I spoke to someone, there's only HardenedBSD, which is a set of patches, similar to grsecurity.
<driftig> But mainline FreeBSD has no ASLR implementation.
sepp2k has joined #ruby
f3ttX] has joined #ruby
dawkirst has quit [Quit: Leaving...]
Mon_Ouie has quit [Ping timeout: 255 seconds]
<driftig> I never really understood as to why. Then again, NetBSD does.
blackmesa has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
sarkis_ has joined #ruby
decoponio has joined #ruby
tubuliferous_ has joined #ruby
sdoda has quit [Ping timeout: 246 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> Because no one coded it yet?
Hounddog has joined #ruby
<driftig> adaedra: Again, Oliver and Shawn made attempts; not sure why it never got merged.
maloik has quit [Ping timeout: 264 seconds]
Azure has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
sarkis_ has quit [Ping timeout: 264 seconds]
Ishant has quit [Quit: Page closed]
Hounddog has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
roshanavand has joined #ruby
pawnbox has joined #ruby
<driftig> Ha, I thought this was #ruby-offtopic. Sorry.
Hounddog has joined #ruby
<adaedra> There's no Ruby discussion currently, it's not such a problem.
<adaedra> But yeah, we will move there.
stannard has joined #ruby
sarkis_ has joined #ruby
dviola has quit [Quit: WeeChat 1.3]
maloik has joined #ruby
banister has joined #ruby
pawnbox has quit [Remote host closed the connection]
<shevy> nobody talks about ruby anymore :(
<adaedra> Everybody moved to node, shevy.
<adaedra> Get with the times.
subscope has joined #ruby
TPBallbag has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
<agent_white> shevy: Don't worry :) I'm helping a buddy learn Ruby. And he hated it and said Python was better. I got all excited :D
<agent_white> But he started reading the Poignant Guide today and is all giddy.
<agent_white> I'm so mad >:|
<agent_white> ;)
<shevy> damn javascript
<shevy> the poignant guide, that's also a relict from the ancient past ... :\
stannard has quit [Ping timeout: 244 seconds]
<agent_white> Doesn't take away any soul from it :)
<agent_white> You're not reading how to code, you're reading how exciting it is.
skade has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
sarkis_ has quit [Ping timeout: 272 seconds]
trautwein has quit [Quit: Textual IRC Client: www.textualapp.com]
<driftig> I found Poignant mildly irritating.
<blubjr> i thought it was reeeeally stupid
skade has quit [Client Quit]
Xeago has joined #ruby
pawnbox has joined #ruby
<norc> Is there some elegant pattern that allows me to use Struct but passing a Hash to the constructor?
<driftig> I liked Pickaxe.
<norc> Ox0dea: imgur is no good behind our corporate firewall :)
maloik has quit [Ping timeout: 272 seconds]
<Ox0dea> norc: Why?
<adaedra> Ox0dea.gif
<Ox0dea> adaedra: I'm a PPM.
<adaedra> D:
<norc> Ox0dea: Ever since we got this new firewall they enabled everything from ebay to facebook, but blocked imgur and stackoverflow.
<Ox0dea> norc: I meant the Struct/Hash bit.
trautwein has joined #ruby
<norc> Ox0dea: Ah.
<Ox0dea> `Struct.new *some_hash.keys`, no?
baweaver has joined #ruby
<norc> Ox0dea: I want to construct that Struct with a Hash.
arup_r has quit [Remote host closed the connection]
<adaedra> If the hash is in the right order, MyStruct.new *hash.values
<norc> I mean ignoring that that particular code could lead to some unexpected behavior
<Ox0dea> I can't say I follow...
sankaber has joined #ruby
sarkis_ has joined #ruby
shredding has quit [Ping timeout: 240 seconds]
<shevy> norc so you are webchatster out of necessity, not by choice!
<agent_white> I loved the Poignant guide :) It was fun with code snippets.
banister has quit [Read error: Connection reset by peer]
<norc> adaedra: Mhmm.
arup_r has joined #ruby
<shevy> the poignant guide was a good comic
<Ox0dea> norc: Are you perhaps looking for OpenStruct?
TomPeed has joined #ruby
<driftig> Someone has a slight obsession with Ox0dea. https://gist.github.com/baweaver
<agent_white> shevy: Exactly :D
pawnbox has quit [Remote host closed the connection]
<adaedra> norc: to be sure, you want to be able to do `Struct.new(:a, :b).new(a: 1, b: 2)`?
elaptics is now known as elaptics`away
<norc> Ox0dea: Oh yes. :)
<Ox0dea> driftig: More pertinently, somebody has the intentistinal fortitude to decrypt my code.
<Ox0dea> What even is that word...?
* Ox0dea goes to get more coffee.
<Ox0dea> > intentistinal
<norc> Ox0dea: Though struct has the attributes enforced...
<norc> meh
<norc> adaedra: Yeah
pawnbox has joined #ruby
<norc> I mean Ox0dea's suggestion to use OpenStruct would work in a pinch, but I would like something more defensive (ideally predefining the possible attributes like Struct)
emilkarl has joined #ruby
<norc> I mean I can just cook something myself easily, was just wondering whether there was some class or common pattern I overlooked
<adaedra> It's not really a good solution to the problem imo.
<adaedra> mh.
<Ox0dea> norc: How is it you're interested in the Hash's values for this purpose?
baweaver has quit [Ping timeout: 246 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
<Ox0dea> Sorry, I missed the clarification back there.
<norc> Ox0dea: Im cooking some really non standard model for my rails app. Since Im lazy I use tons of simple_form which makes a lot of assumptions about your model.
<Ox0dea> Yes, I see now.
<adaedra> You could do MyStruct.new(*hash.slice(MyStruct.members).values) to solve the order problem, but again, that wouldn't work if you're missing a key (and need a Hash#slice)
sarkis_ has quit [Ping timeout: 240 seconds]
<norc> I have to construct it partially at times.
elaptics`away is now known as elaptics
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maloik has joined #ruby
subscope has joined #ruby
<Ox0dea> >> Struct.new(:a).method(:new).parameters # norc
<ruboto> Ox0dea # => [[:rest]] (https://eval.in/475028)
<Ox0dea> That does not bode well. :<
nwhirschfeld has quit [Ping timeout: 276 seconds]
<adaedra> def MyStruct.from_hash(hash); new self.members.map { |a| hash[a] }; end
zacstewart has joined #ruby
<adaedra> mh, lacks a splat.
millerti has joined #ruby
<Ox0dea> Needs more Hash#to_proc as well. :P
<norc> adaedra: Oh that was simpler than I would have solved it. That is elegant enough thanks. :)
<adaedra> I didn't look into Hash#to_proc yet, but help yourself.
<adaedra> norc: not tested though. May need refinements.
<Ox0dea> adaedra: That'd just be `map &hash` in 2.3.
roshanavand has joined #ruby
<norc> Ox0dea: Considering how often I actually do this that is a godsend.
<adaedra> Ox0dea: nice. So I get that Hash#to_proc returns a proc that does key -> value?
dtordable has quit [Read error: Connection reset by peer]
trautwein has quit [Quit: Textual IRC Client: www.textualapp.com]
<norc> Ox0dea: It really seems like there is tons of really neat features in our christmas present.
<norc> &. is the best by far though
<adaedra> X-mas can't come fast enough.
<Ox0dea> Just so, on all counts.
<shevy> one month to xmas
<Ox0dea> norc: I sure would like Perl 6's `.=` operator, though.
sankaber has quit [Remote host closed the connection]
<norc> Ox0dea: I don't perl around. What does it do?
<Ox0dea> I say `foo = foo.bar` pretty frequently, even though I know I oughtn't.
<adaedra> oh.
<Ox0dea> norc: That'd just be `foo .= bar` in P6.
<adaedra> and &.=, too ?
<Ox0dea> adaedra: Why do you hate the things I love?
sankaber has joined #ruby
Pupp3tm4st3r has joined #ruby
<adaedra> Ox0dea: who said anything about hate?
sarkis_ has joined #ruby
<Ox0dea> I was being facetious. `&.=` would be a logical-enough follow-on, but it's hideous.
tvw has quit []
<adaedra> The operator or the principle?
zacstewart has quit [Ping timeout: 246 seconds]
<Ox0dea> Both, I suppose; wouldn't a failed `&.=` set the receiver to `nil`?
<norc> Ox0dea: Yeah. These things are actually what gives Perl it's reputation. Giving you all the tools to do things you really shouldn't for sake of design or code readability.
moeabdol1 has joined #ruby
<adaedra> I'd expect it do the same as foo = foo.bar if foo
<Ox0dea> norc: I'm glad Ruby has hitherto largely avoided such a reputation, despite deserving it almost as much.
gustav__ has quit [Remote host closed the connection]
Kelzier has joined #ruby
<Ox0dea> adaedra: I suspect very few people have ever written such a line.
bryanray has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<norc> Ox0dea: The thing I actually miss in Ruby is operator()
TvL2386 has joined #ruby
<Ox0dea> From C++?
<adaedra> you mean #call ?
<norc> Yeah.
<norc> adaedra: Yup.
<Ox0dea> We have #call...
<adaedra> What would your thing do ruby doesn't already?
<norc> It's just syntactic sugar
<adaedra> Like a lot of Ruby
leat has joined #ruby
<Ox0dea> norc: We have ~30 operators that we're allowed to redefine as we please; I can't say I see what's missing.
sarkis_ has quit [Ping timeout: 255 seconds]
skade has joined #ruby
<norc> Ox0dea: For a second I was actually wondering "wait, he didnt mean -31 did he?" :-
<norc> :-/
<Ox0dea> Guac.
<shevy> well
<shevy> function() in javascript, function() in ruby
<adaedra> wat
<shevy> we dont have def() !!!
<Ox0dea> We don't have first-class methods.
<shevy> WE ARE DOOMED
<adaedra> no u
Alostar has joined #ruby
nwhirschfeld has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Alostar has quit [Client Quit]
sarkis_ has joined #ruby
adac has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
Rollabunna has joined #ruby
sarkis_ has quit [Ping timeout: 240 seconds]
<norc> Ox0dea: Well. Sort of.
<Ox0dea> norc: Hm?
<norc> Ox0dea: Method?
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea> norc: That's pretty second-class by my definition.
araujo has quit [Read error: Connection timed out]
<Ox0dea> That we pass "methods" around as Symbols speaks volumes.
tomaz_b has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
prestorium has joined #ruby
<norc> Ox0dea: Screw this. Including ActiveModel::Model into a Struct completely fucks up the class.
roshanavand has joined #ruby
<Ox0dea> Yay, metaprogramming!
araujo has joined #ruby
<adaedra> > expecting Active* to do neatly.
<norc> Okay but that makes sense.
sarkis_ has joined #ruby
<agent_white> s/meta/mega/ !!
<norc> But fine, Ill just use pure ActiveModel::Model.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
a1r8rake has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
sarkis_ has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
tomaz_b has quit [Quit: Leaving]
sonikspin has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
subscope has joined #ruby
tulak has joined #ruby
chridal has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
gustav_ has joined #ruby
ornerymoose has joined #ruby
zequix has joined #ruby
sarkis_ has joined #ruby
<dlitvak> o/
<blubjr> hi dlitvak
maloik has quit [Read error: Connection reset by peer]
Schmidt has quit [Ping timeout: 260 seconds]
<dlitvak> anyone been in SA,TX this week? I'm watching most of the talks on youtube, it was pretty amazing
ornerymoose has quit [Client Quit]
sonikspin has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
sarkis_ has quit [Ping timeout: 252 seconds]
skade has joined #ruby
erbesharat has quit [Ping timeout: 252 seconds]
NeverDie has joined #ruby
maloik has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
d0lph1n98 has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
tulak has quit [Remote host closed the connection]
avril14th has joined #ruby
<Ox0dea> dlitvak: I've had to cherry-pick; what're some good ones I might've missed?
CloCkWeRX has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
sarkis_ has joined #ruby
<adaedra> dlitvak: can you stop this?
<dlitvak> adaedra: ok... :(
<adaedra> Put them all in a gist or whatever and link them all at once, please.
<jackcom> i don’t know when i can complete ruby?
<Ox0dea> jackcom: Right now.
<dlitvak> that's all of them though
<jackcom> i m not good now
bersimoes has joined #ruby
<jackcom> so i must rest
<Ox0dea> jackcom: Fuck that! You're great!
<shevy> lol
<Ox0dea> ^_^
<jackcom> bye
<Ox0dea> No, study from behind your eyelids.
<driftig> What is "complete ruby" exactly?
<shevy> dlitvak can you recommend a single one to watch? I don't think I have time to watch all
<jackcom> i have to rest now
<jackcom> bye
<jackcom> :(
jackcom has quit [Quit: jackcom]
<dlitvak> shevy: what do you like the most? actual ruby stuff? management stuff? concurrency stuff? cloud stuff?
<dlitvak> testing stuff?
exadeci has quit [Quit: Connection closed for inactivity]
<Ox0dea> dlitvak: There were talks on butt stuff at RubyConf 2015...?
<dlitvak> Ox0dea: no idea! :P
<Ox0dea> But you just said?
<Ox0dea> Oh, never mind. Stupid cloud-to-butt WeeChat script.
<Ox0dea> I don't even know why I had that installed.
roshanavand has quit [Ping timeout: 240 seconds]
<dlitvak> lol
<dlitvak> xD
<Ray`> I have that for chrome
synthroid has joined #ruby
<dlitvak> cool cloud stuff => https://www.youtube.com/watch?v=_O1MGHcsQCI
<shevy> dlitvak whatever is worth to watch; ideally ruby, or something that is really good. don't think I have a lot of interest in "cloud"... tricks are always useful to me
<Ray`> changes "the cloud" into "my butt"
<Ray`> best headline I saw so far was "healthcare slowly inches into my butt"
axsuul has joined #ruby
<adaedra> Ox0dea: don't be a cloud.
<shevy> haha
<shevy> PeeChatting in the cloud, way to go Ox0dea!
<dlitvak> shevy: i posted a bunch of links here, for the ones i found the most interesting
sarkis_ has quit [Ping timeout: 240 seconds]
<dlitvak> but this link has all the videos
<ytti> /last ytti 3
<adaedra> nope.
skade has quit [Quit: Computer has gone to sleep.]
<ytti> who gave me extra space
<ytti> rude
<shevy> adaedra
<adaedra> shevy
<shevy> he is a padder
<adaedra> She's a killer queen ♫
<shevy> ytti are you saying that we can induce indent onto your IRC client? :D
<shevy> that would be so cool
d0lph1n98 has quit [Quit: leaving]
moeabdol1 has quit [Quit: WeeChat 1.3]
rubie has joined #ruby
znz_jp has joined #ruby
skade has joined #ruby
alexherbo2 has joined #ruby
CloCkWeRX has joined #ruby
axsuul has quit [Ping timeout: 276 seconds]
tulak has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Hounddog_ has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
sarkis_ has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
dorei has joined #ruby
BadBlock has joined #ruby
mattwildig has joined #ruby
shredding has joined #ruby
sarkis_ has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: joonty]
pawnbox has quit [Remote host closed the connection]
blackmesa has joined #ruby
mattwildig has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
ornerymoose has joined #ruby
sarkis_ has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
ornerymoose has quit [Ping timeout: 240 seconds]
ornerymoose has joined #ruby
varunwachaspati_ has quit [Quit: Connection closed for inactivity]
skweek has quit [Ping timeout: 246 seconds]
sarkis_ has quit [Ping timeout: 255 seconds]
tomaz_b has joined #ruby
nofxxx has joined #ruby
makaveli0227TL has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
gusTester has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
goodcodeguy has joined #ruby
solars has joined #ruby
sarkis_ has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
Rollabunna has quit [Remote host closed the connection]
dravine_ has joined #ruby
Rollabunna has joined #ruby
dmcp_ has joined #ruby
dravine has quit [Ping timeout: 260 seconds]
dravine_ is now known as dravine
dstarh has joined #ruby
sarkis_ has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
stannard has joined #ruby
sandstrom has joined #ruby
Rollabunna has quit [Ping timeout: 250 seconds]
yes`r has joined #ruby
freerobby has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
diegoaguilar has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
bersimoes has quit [Remote host closed the connection]
<sandstrom> I sometimes put modules inside my classes, to separate concerns. When they grow larger I sometimes move it to a separate file. Is this a bad pattern/practice? (Since in general I tend to use only modules for namespacing) Example: `module Earth; class Cat; end; end;` [earth/cat.rb] and then `module Earth; module Cat::Sounds; end; end;` [earth/cat/sounds.rb]
roshanavand has joined #ruby
tvw has joined #ruby
<sandstrom> (it feels 'okay' when the Sounds module is inside the cat class *and* file, but less so when it's outside)
bersimoes has joined #ruby
<adaedra> ?crosspost sandstrom
<ruboto> sandstrom, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
Hounddog_ has quit [Ping timeout: 272 seconds]
<sandstrom> sorry adaedra!
<norc> sandstrom: That depends. Since you obviously asked in #rubyonrails the answer would be different there.
sarkis_ has joined #ruby
<adaedra> Otherwise, it does not seems too bad
TPBallbag has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
<sandstrom> (I was actually curious about the nuances from rails vs. the broader ruby community)
skade has joined #ruby
<norc> sandstrom: Generally it's good. But when you get into Rails this can get messy because of Rails autoloading magic.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
f4cl3y has quit [Quit: Leaving]
roshanavand has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
<sandstrom> norc Okay, thanks. So philosophically it's sounds (but may cause issues with rails autoloading; will check the answer in their channel for that)
f4cl3y has joined #ruby
Ilyes512 has joined #ruby
<shevy> sandstrom I usually follow the "one class per file" approach
bersimoes has quit [Ping timeout: 260 seconds]
iateadonut has joined #ruby
f4cl3y has quit [Client Quit]
damireh has joined #ruby
jerware has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sarkis_ has quit [Ping timeout: 264 seconds]
dmcp_ has quit [Read error: Connection reset by peer]
shinenelson has quit [Quit: Connection closed for inactivity]
f4cl3y has joined #ruby
mmitchell has joined #ruby
iateadonut has quit [Client Quit]
stannard has quit [Remote host closed the connection]
sgambino has joined #ruby
Kabaka has quit [Ping timeout: 244 seconds]
* avril14th too
TvL2386 has quit [Remote host closed the connection]
<mmitchell> anyone know if it's possible to have GEM_HOME point to a jar file of the gem home? This is for a jruby app.
gerard0 has joined #ruby
Hounddog has joined #ruby
zotherstupidguy has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
sarkis_ has joined #ruby
iateadonut has quit [Client Quit]
weckl has quit [Ping timeout: 246 seconds]
weckl has joined #ruby
weckl has quit [Client Quit]
weckl_ has joined #ruby
weckl_ has quit [Read error: Connection reset by peer]
weckl has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
trautwein has joined #ruby
sarkis_ has quit [Ping timeout: 246 seconds]
CloCkWeRX has left #ruby [#ruby]
mrd_ has quit [Ping timeout: 252 seconds]
damireh has quit [Quit: Textual IRC Client: www.textualapp.com]
codecop has quit [Remote host closed the connection]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
roshanavand has joined #ruby
sarkis_ has joined #ruby
davedev24 has joined #ruby
yoongkang has quit [Remote host closed the connection]
subscope has joined #ruby
<darix> mmitchell: #jruby might be better for you
<mmitchell> ah yes, i just discovered that, thanks darix!
roshanavand has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
IrishGringo has joined #ruby
shinenelson has joined #ruby
sarkis_ has quit [Ping timeout: 240 seconds]
akem has joined #ruby
bersimoes has joined #ruby
baweaver has joined #ruby
tomaz_b has quit [Quit: Leaving]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bersimoes has quit [Remote host closed the connection]
pawnbox has joined #ruby
subscope has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
azul has joined #ruby
sarkis_ has joined #ruby
_blizzy_ has quit [Quit: Leaving]
subscope has quit [Client Quit]
bersimoes has joined #ruby
subscope has joined #ruby
baweaver has quit [Ping timeout: 272 seconds]
subscope has quit [Client Quit]
sarkis_ has quit [Ping timeout: 240 seconds]
subscope has joined #ruby
s00pcan has joined #ruby
superlou has joined #ruby
zacstewa_ has joined #ruby
k3asd` has joined #ruby
zacstew__ has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
gustav_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
sarkis_ has joined #ruby
zacstewa_ has quit [Ping timeout: 244 seconds]
gambl0re has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
SleepySensei has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<shevy> anyone has a fancy standalone rack app that is doing something useful?
sarkis_ has quit [Ping timeout: 240 seconds]
<Ox0dea> shevy: ruby-writes-fizzbuzz was a Rack app.
<havenwood> shevy: Fibonacci as a service.
<shevy> hmm
<havenwood> Ox0dea: ah, nice
bersimoes has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
jordanm has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
blackmesa has joined #ruby
s00pcan has quit [Quit: Lost terminal]
B1n4r10 has joined #ruby
gustav_ has joined #ruby
s00pcan has joined #ruby
goodcodeguy has joined #ruby
* havenwood tries to resist the urge to add the first char of a test to ruby-writes-fizzbuzz
bersimoes has joined #ruby
The_Phoenix has joined #ruby
trautwein has quit [Quit: Textual IRC Client: www.textualapp.com]
trautwein has joined #ruby
<Ox0dea> havenwood: I let it die. I didn't even realize it stopped at 420, but somebody pointed it out and I figured it was a better stopping point than most.
<havenwood> Ox0dea: ;D
cwong_on_irc has quit [Quit: Leaving.]
sarkis_ has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
dhjondoh has quit [Quit: dhjondoh]
_stu_ has joined #ruby
sanjayu has quit [Ping timeout: 250 seconds]
babblebre has joined #ruby
sarkis_ has quit [Ping timeout: 246 seconds]
shredding has quit [Ping timeout: 255 seconds]
yes`r has quit [Ping timeout: 240 seconds]
dfinninger has joined #ruby
lguardiola has quit [Remote host closed the connection]
jas02 has joined #ruby
sarkis_ has joined #ruby
lguardiola has joined #ruby
atomical has joined #ruby
mattwildig has joined #ruby
Rollabunna has joined #ruby
stannard has joined #ruby
roshanavand has joined #ruby
grill has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
tethra_ is now known as tethra
tethra has quit [Changing host]
tethra has joined #ruby
stannard has quit [Ping timeout: 250 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
<shevy> damn
<shevy> does WEBrick::Daemon.start fire an exit! event?
imperator has joined #ruby
millerti has joined #ruby
RobertBirnie has joined #ruby
tulak has quit [Remote host closed the connection]
<shevy> yeah it does :(
<shevy> this sucks if I want to use it via a REPL right?
millerti has quit [Max SendQ exceeded]
aganov has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
uri has joined #ruby
DoubleMalt has joined #ruby
it_tard has joined #ruby
mary5030 has joined #ruby
nfk|laptop has quit [Ping timeout: 264 seconds]
mattarse has quit [Ping timeout: 264 seconds]
linuxboytoo has quit [Remote host closed the connection]
polishdub has joined #ruby
Tempesta has quit [Quit: See ya!]
linuxboytoo has joined #ruby
linuxboytoo has quit [Read error: Connection reset by peer]
stannard has joined #ruby
dopamean_ has quit [Ping timeout: 264 seconds]
stannard has quit [Remote host closed the connection]
linuxboytoo has joined #ruby
diegoaguilar has quit [Ping timeout: 252 seconds]
stannard has joined #ruby
frem has joined #ruby
diegoaguilar has joined #ruby
SleepySensei has quit [Read error: Connection reset by peer]
rdavila has joined #ruby
dopie has joined #ruby
it_tard is now known as nfk|laptop
soloone has quit [Read error: Connection reset by peer]
dopie has quit [Client Quit]
RobertBirnie has quit [Read error: Connection reset by peer]
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
RobertBirnie has joined #ruby
agent_white has quit [Quit: brb]
DoubleMalt has quit [Remote host closed the connection]
dravine has quit [Quit: dravine]
roshanavand has joined #ruby
yoongkang has joined #ruby
weckl has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
synthroid has quit [Remote host closed the connection]
bersimoes has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
roshanavand has joined #ruby
synthroid has joined #ruby
dfinninger has quit [Remote host closed the connection]
bersimoes has joined #ruby
bersimoes has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
yoongkang has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
chouhoulis has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
weckl has joined #ruby
ghormoon has quit [Ping timeout: 255 seconds]
anisha has quit [Quit: Leaving]
dopamean_ has joined #ruby
ghormoon has joined #ruby
rodfersou is now known as rodfersou|lunch
RegulationD has joined #ruby
<ja> wat! you can define a method ending in `=` which takes no arguments?!
<ja> .help
<ja> !help
<ja> !eval bot halp ;_;
<ja> > def foo=; :D end; foo = ()
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> It's >>
hackeron_ has joined #ruby
<ja> ah, thanks
<ja> >> def foo=; p :D end; foo = ()
<ruboto> ja # => nil (https://eval.in/475133)
<ja> >> def foo=; p :D end; foo=()
<ruboto> ja # => nil (https://eval.in/475134)
<ja> oh. rite.
<ja> >> def foo=; :D end; foo = ()
<ruboto> ja # => nil (https://eval.in/475135)
<ja> WAT
bkxd has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ja> oh yeah, there's a special case implicit return going on with methods ending in `=`…
_seanc_ has joined #ruby
dhollinger has joined #ruby
hackeron has quit [Ping timeout: 276 seconds]
ghormoon has quit [Max SendQ exceeded]
roshanavand has joined #ruby
ghormoon has joined #ruby
<ja> aww, I had hoped `def password!=; end` was valid Ruby. :<
ghormoon has quit [Max SendQ exceeded]
ghormoon has joined #ruby
<apeiros> I think the only multi-non-alphanumeric-at-end method name are [] and []=
mary5030 has joined #ruby
Ox0dea has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Ox0dea> >> def foo= x; x * 2; end; [foo=(21), self.foo=(21), send(:foo=, 21)] # ja
<ruboto> Ox0dea # => [21, 21, 42] (https://eval.in/475137)
bersimoes has joined #ruby
<Ox0dea> That should clarify the (regrettable) limitations of '=' methods.
bkxd has quit [Ping timeout: 240 seconds]
norc has quit [Ping timeout: 246 seconds]
<apeiros> ja: but you can still define them
kies has joined #ruby
<Ox0dea> >> ObjectSpace.each_object(Class).flat_map(&:instance_methods).uniq.grep /\W\W$/ # apeiros
<ruboto> Ox0dea # => [:===, :=~, :!~, :<=>, :==, :!=, :-@, :**, :+@, :>=, :<=, :[], :[]=, :>>, :<<] (https://eval.in/475138)
DoubleMalt has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
<apeiros> hm, I wanted to say I didn't consider methods which don't contain any alphanumerics, but [] and []= also fall in that category :-S
<apeiros> >> o = Object.new; o.define_singleton_method(:password!=) { |x| @pw = "hahaaa! #{x}" }; o.public_send(:password!=, "success"); @pw
<ruboto> apeiros # => /tmp/execpad-c8daf6ab3165/source-c8daf6ab3165:2: syntax error, unexpected ')' ...check link for more (https://eval.in/475139)
<Ox0dea> ?
<apeiros> >> o = Object.new; o.define_singleton_method(:"password!=") { |x| @pw = "hahaaa! #{x}" }; o.public_send(:"password!=", "success"); o.instance_variable_get(:@pw)
<ruboto> apeiros # => "hahaaa! success" (https://eval.in/475140)
<apeiros> ja: ^
<apeiros> Ox0dea: put differently: you're right. there's more :)
zacstew__ has quit [Remote host closed the connection]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> ja: iirc nokogiri (or maybe just hpricot?) defines a couple of methods like that, to implement css selectors and stuff
nfk|laptop has quit [Quit: yawn]
mary5030 has joined #ruby
spaceman_ has joined #ruby
gustav_ has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 265 seconds]
pandaant has joined #ruby
kimegede has quit [Quit: Leaving...]
subscope has joined #ruby
<ja> Ox0dea: Great example, thanks!
chouhoulis has quit [Remote host closed the connection]
<Ox0dea> ja: Happy to help. :)
Rollabunna has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Rollabunna has joined #ruby
<ja> apeiros: Hah! I'm tempted to use it… ^_^ But I better go with just `confirmed_password=` or something.
<apeiros> ja: indeed, that'd probably be wiser :)
<ja> apeiros: o, cool! I miss hpricot… and _why :<
arup_r has joined #ruby
<ja> hi araujo
bersimoes has quit [Remote host closed the connection]
<ja> and arup_r, mostly
<arup_r> hey ja
subscope has quit [Client Quit]
Rollabunna has quit [Read error: No route to host]
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
zacstewart has joined #ruby
makaveli0227TL has quit [Remote host closed the connection]
moeabdol has joined #ruby
roshanavand has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
scrote has joined #ruby
<scrote> hi
<ja> oh hi there, scrote
<ja> how're your rubies?
B1n4r10 has quit [Ping timeout: 240 seconds]
<scrote> Hi have have two instances of CentOS 7.1 and gem install works on one which is installed in a virtualbox VM, but it hangs on other (being on the bare metal). How do two exact copies of software yield different results?
ruby-lang789 has joined #ruby
<Coraline> As you know, computers.
<havenwood> scrote: What's the gem? C extension?
<scrote> treetop
yes`r has joined #ruby
axl_ has joined #ruby
podman has joined #ruby
diegoaguilar has quit [Ping timeout: 252 seconds]
<havenwood> scrote: What's the error message when it fails?
cornerma1 has joined #ruby
diegoaguilar has joined #ruby
zequix has quit [Remote host closed the connection]
<scrote> havenwood: no error message it just hangs.
DoubleMalt has quit [Ping timeout: 240 seconds]
<scrote> are there any ports I have to forward on a firewall?
jaequery has joined #ruby
marcoecc has quit [Ping timeout: 250 seconds]
<momomomomo> scrote: Is your bare metal on OVH by any chance?
<momomomomo> is it in a docker container?
<scrote> also -V gives no feedback but I'm also using options --no-pi --op-rdoc --version ">=1.6.3" with -V too
<scrote> what's OVH ?
<momomomomo> where is your 'bare metal'
<scrote> in a server closet
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
<momomomomo> scrote: is 443 open if fetching from https?
aufi has joined #ruby
<scrote> yes
rubie has joined #ruby
User458764 has joined #ruby
<momomomomo> scrote: are you already configured for https with git?
mattwildig has quit []
<momomomomo> basically: either open 22 for where you want to fetch from, or open 443 and configure for https
<scrote> ok
<scrote> what is 22 for?
luksaur has joined #ruby
pawnbox has quit [Remote host closed the connection]
luksaur has left #ruby [#ruby]
<scrote> How do I configure gem itself to use https? Where's the config file?
dfinninger has joined #ruby
<scrote> I know what ssh is. How is that releveant to gems?
subscope has joined #ruby
<momomomomo> scrote: gems typically fetch from git
<scrote> are you saying to use ssh for git or for gems?
<scrote> ok
_stu_ has quit [Quit: _stu_]
<momomomomo> git typically uses 9418 (unauthenticated), 22, or 443 depending on how it's configured
<scrote> ok thanks
subscope has quit [Client Quit]
Pupp3tm4st3r has quit [Remote host closed the connection]
aspiers has joined #ruby
<scrote> so where is the ruby config file to set it to 443?
<scrote> or the name of it? I'll run a find command
Fredrich010 has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
lenwood has joined #ruby
Macaveli has joined #ruby
jas02 has quit [Quit: jas02]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
null_ref has joined #ruby
DoubleMalt has joined #ruby
rubie has quit [Remote host closed the connection]
marcoecc has joined #ruby
DoubleMalt has quit [Max SendQ exceeded]
DoubleMalt has joined #ruby
yoongkang has joined #ruby
emilkarl has quit [Quit: emilkarl]
psy_ has joined #ruby
Oli`` has joined #ruby
ruby-lang789 has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
Oli`` is now known as Guest33236
weemsledeux has joined #ruby
Oli` has quit [Ping timeout: 246 seconds]
marcoecc has quit [Read error: Connection reset by peer]
dkphenom has joined #ruby
marcoecc has joined #ruby
Gnut has joined #ruby
tubuliferous_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
yoongkang has quit [Ping timeout: 244 seconds]
rdavila has joined #ruby
rodfersou|lunch is now known as rodfersou
rubie has joined #ruby
_blizzy_ has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aufi has quit [Quit: Konversation terminated!]
tubuliferous_ has quit [Ping timeout: 264 seconds]
alem0lars has quit [Max SendQ exceeded]
iateadonut has joined #ruby
govg has joined #ruby
nofxx has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
baweaver has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
neonalpine has joined #ruby
nofxxx has quit [Ping timeout: 255 seconds]
Cantaberry has joined #ruby
Xeago has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
m3_del has joined #ruby
bersimoes has joined #ruby
Kelzier has quit []
Kabaka has joined #ruby
dopie has joined #ruby
SOLDIERz has quit [Ping timeout: 244 seconds]
synthroid has quit [Remote host closed the connection]
grotewold has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
DarkBushido_ has quit [Quit: freenode]
dimasg has joined #ruby
bersimoes has quit [Ping timeout: 260 seconds]
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
nso95 has joined #ruby
cwong_on_irc has joined #ruby
rdavila has joined #ruby
tubuliferous_ has joined #ruby
nso95 has quit [Client Quit]
DarkBushido has joined #ruby
cwong_on_irc has quit [Client Quit]
rubie has quit [Remote host closed the connection]
DurstBurger has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 276 seconds]
DoubleMalt has joined #ruby
htmldrum has joined #ruby
_seanc_ has quit [Quit: _seanc_]
sarkis_ has quit [Ping timeout: 240 seconds]
TPBallbag has quit [Read error: Connection reset by peer]
SCHAAP137 has quit [Remote host closed the connection]
cwong_on_irc has joined #ruby
_stu_ has joined #ruby
sarkis_ has joined #ruby
noodle has quit [Ping timeout: 272 seconds]
TPBallbag has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
rubie has joined #ruby
djbkd has joined #ruby
nso95 has joined #ruby
solars has quit [Ping timeout: 265 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
Jardayn has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
_seanc_ has joined #ruby
nso95 has quit [Client Quit]
allcentury has joined #ruby
ehth77 has joined #ruby
maloik has quit [Ping timeout: 252 seconds]
_blizzy_ has quit [Ping timeout: 272 seconds]
noodle has joined #ruby
dfinninger has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
baweaver has quit [Remote host closed the connection]
lenwood has quit [Ping timeout: 252 seconds]
genpaku has quit [Ping timeout: 255 seconds]
yokel has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
genpaku has joined #ruby
yokel has joined #ruby
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
dmcp_ has joined #ruby
dmcp_ has quit [Client Quit]
dmcp_ has joined #ruby
malcolmva has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
cdg has joined #ruby
ehth77 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
dmcp_ has quit [Read error: Connection reset by peer]
mattarse has joined #ruby
towski_ has joined #ruby
dmcp_ has joined #ruby
Mon_Ouie has joined #ruby
symm- has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
djstorm has joined #ruby
agit0 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
DurstBurger has joined #ruby
vnk has joined #ruby
<vnk> can someone explain me .any? method?
<canton7> what about it don't you understand?
<adaedra> &ri Enumerable#any?
synthroid has joined #ruby
dmcp_ has quit [Ping timeout: 240 seconds]
lurch_ has quit [Quit: lurch_]
andikr has quit [Remote host closed the connection]
norc has joined #ruby
RobertBirnie has joined #ruby
<vnk> canton7: array.combination(2).any? { |a, b| a + b == n } what it does actually? first with combination(2) find all combinations with 2 elements from array and then we pass it with .any? to block and any? will return true if any of those combinations is equal to n? right?
<canton7> yes
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
<norc> vnk: Well, == is called for whatever a + b is created with n as its argument.
<norc> Point being, equality can differ from what you might expect for some classes
joonty has quit [Quit: joonty]
<vnk> norc: got it :) basicly we pass 2 arguments in this method. array and n.
<vnk> what is name of this =~ in ruby? I see it at regular expression and want to google it to check out how it works extactly but I dont know what is its name lol :)
nofxx has quit [Remote host closed the connection]
<norc> vnk: Firstly it is just an operator.
nofxx has joined #ruby
<vnk> norc: yeah, I thought so.
<norc> vnk: So when you do "foo@
<norc> >> "foo" =~ /f/
<ruboto> norc # => 0 (https://eval.in/475193)
<norc> It really just calls an instance method of String.
f4cl3y has quit [Remote host closed the connection]
<norc> If you didnt know, you could simply do something like this:
<norc> >> "".method(:=~).owner
<ruboto> norc # => String (https://eval.in/475194)
<norc> And then you would look up in the documentation for String.
Oog has joined #ruby
vire has quit [Ping timeout: 252 seconds]
<norc> However, it's not just for regular expressions
amclain has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
griffindy has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<vnk> norc: so basicly its mostly used when we need instance of string to test and dont touch? for example we wouldnt use =~ when we wanted to actually change string
yeshacker has joined #ruby
<norc> vnk: It is meant to implement Pattern Match semantics.
yes`r has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Ping timeout: 255 seconds]
caliostro has quit [Quit: Exit-Chat]
caliostro_ has quit [Quit: Exit-Chat]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has joined #ruby
<norc> vnk: But yeah, String#=~ does not modify the string.
<vnk> norc: cool.. its little tricky to understund but I will keep reading about it and I guess it will clear to me soon. tnx
aspiers_ has joined #ruby
<norc> vnk: Just think of it to be similar to ==
<norc> Test whether A follows the pattern B.
[Butch] has joined #ruby
<Papierkorb> Is there a number type in ruby suitable for handling money values, including those with a 'point'?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> Or does everyone use an Integer
mjuszczak has joined #ruby
<norc> Papierkorb: There is a rather popular money gem to make this painless.
<Papierkorb> norc: thanks
agent_white has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Quit: WeeChat 1.3]
TomPeed has joined #ruby
<norc> Papierkorb: Or if you don't want to use an external dependency, most currencies can easily be handled by just fixiating on cent values and using plain Integer.
<norc> The rest is just presentation.
SCHAAP137 has joined #ruby
aspiers has quit [Ping timeout: 276 seconds]
RegulationD has quit [Remote host closed the connection]
Hounddog has quit [Remote host closed the connection]
nso95- has joined #ruby
nso95- has joined #ruby
lubekpl has joined #ruby
senayar_ has quit []
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
towski_ has quit [Remote host closed the connection]
radgeRayden has joined #ruby
blackmesa has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nso95- has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
ismael_ has quit [Remote host closed the connection]
agent_white has joined #ruby
agent_white has quit [Changing host]
agent_white has joined #ruby
drbrain has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
momomomomo has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
rubie has quit [Remote host closed the connection]
drbrain has joined #ruby
DoubleMalt has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
weckl has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c0m0 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
dmolina1 has quit [Ping timeout: 255 seconds]
jpfuentes2 has joined #ruby
Rollabunna has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scrote has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tomphp has joined #ruby
bigkevmcd has joined #ruby
blaxter has quit [Quit: foo]
dfinninger has joined #ruby
gusTester has quit [Read error: Connection reset by peer]
gusTester1 has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
jbrhbr has joined #ruby
griffindy has joined #ruby
baweaver has joined #ruby
skcin7 has joined #ruby
towski_ has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
rubie has joined #ruby
mrtomme has joined #ruby
baweaver has quit [Ping timeout: 272 seconds]
ismaelga has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flapz has joined #ruby
<flapz> moin.
ngscheurich has joined #ruby
<flapz> How can in find the source repo gem is pulling a package from?
aryaching has quit [Ping timeout: 246 seconds]
yeshacker has quit [Ping timeout: 246 seconds]
<adaedra> Look up the gem on rubygems.org
fantazo has joined #ruby
<adaedra> You should have the code repository in the links, either as "Homepage" or "Source code"
<flapz> or wireshark it. I thought gem had a flag or switch
<adaedra> Ah, you mean just getting the .gem file?
<flapz> sure. I suppose that should have the info I need.
<jbrhbr> seems surprising if there is no verbose flag that shows this
<flapz> well if it hangs, -V shows nothing
<jbrhbr> ah
momomomomo has quit [Quit: momomomomo]
<adaedra> flapz: try gem fetch
<flapz> the point is to see what ports I need to open. of if that's even the issue.
<flapz> ok
<norc> flapz: netstat and strace could be helpful tools on your endeavour.
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> strace probably being the best since that will give you the best hint at where it hangs
<adaedra> I don't get what you want
<flapz> All that just to see where a package is coming from?
howdoicomputer has joined #ruby
<norc> flapz: What is your exact issue?
<adaedra> Gems are downloaded form rubygems.org, I believe.
_seanc_ has quit [Ping timeout: 272 seconds]
<adaedra> (time to go, unfortunately.)
<flapz> does it not use git too?
<norc> flapz: It can, but you are not giving us context, code or your issue.
<flapz> gem install treetop # Where is it pulling treetop from?
grotewold has joined #ruby
<norc> flapz: Seriously, if you are not giving us context and you are certain that it is a network issue, wireshark it.
grotewold has quit [Max SendQ exceeded]
DoubleMalt has quit [Remote host closed the connection]
<imperator> rubygems doesn't use git, bundler does
<[spoiler]> flapz: it doesn't use git to download the gems
<imperator> (or can)
<[spoiler]> bundler can use gems, but it doesn't have to
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[spoiler]> ^
<norc> From what I know the gems lie on AWS storage somewhere.
grotewold has joined #ruby
<[spoiler]> doesn't has to*
renderfu_ has joined #ruby
<[spoiler]> gem install pulls them from http(s)
<[spoiler]> s/pulls them from/uses/
The_Phoenix has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
<[spoiler]> flapz: what is the error you get?
flapz has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
skade has joined #ruby
<norc> Ah well he left.
<[spoiler]> Seems it was a network error! :P
<norc> Honestly should have never feed the XY problem here.
<[spoiler]> A slowly creeping network error
<norc> Either way - gems are delivered from rubygems/Amazon CDN.
B1n4r10 has joined #ruby
<[spoiler]> aye
tubuliferous_ has quit [Ping timeout: 246 seconds]
Peg-leg has quit [Quit: Leaving.]
griffindy has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_seanc_ has joined #ruby
<norc> drbrain: Hey, are you around already?
JoshL has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
tomphp has joined #ruby
yoongkang has joined #ruby
ismaelga has quit [Remote host closed the connection]
bersimoes has joined #ruby
neonalpine has quit [Remote host closed the connection]
griffindy has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
yoongkang has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<norc> Does Ruby provide some mechanism to reference the arguments on the local table?
yeshacker has joined #ruby
<norc> Before I start fiddling around
bersimoes has quit [Ping timeout: 260 seconds]
m3_del has quit [Remote host closed the connection]
<[spoiler]> what's a local table
<jbrhbr> like the current local scope, i assume
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
skade has joined #ruby
<jbrhbr> locals() in python
baweaver has joined #ruby
JoshL has joined #ruby
<norc> [spoiler]: It's the area in the VM where your arguments are.
<[spoiler]> there is `local_variables`
<norc> Yeah already looked at it, that will not help if locals have been defined already
platzhirsch has left #ruby [#ruby]
<[spoiler]> norc: you mean method arguments?
baweaver has quit [Remote host closed the connection]
Ilyes512 has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
<norc> [spoiler]: Yeah.
<norc> well
<[spoiler]> Well, if you have `def meth(*args)` you have them in an array called `args`
<norc> I know.
<norc> Just want something generic like JavaScript arguments.
Pumukel has quit [Ping timeout: 272 seconds]
Ilyes512 has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> But I think I found a way to obtain them on my own
<chrisseaton> Can I get a reference to Ruby's main object, from within a method defined somewhere else?
troulouliou_div2 has quit [Remote host closed the connection]
<[spoiler]> That is generic, though
<norc> chrisseaton: TOPLEVEL_BINDING.eval('self')
<chrisseaton> norc: hmm.. efficient... thanks though that'll do!
<norc> There may be better ways that I'm not aware not.
<chrisseaton> I guess I might just define TOP_LEVEL_SELF = self, even though it pollutes the namespace
nettoweb has joined #ruby
<norc> chrisseaton: Why do you need the main object?
dfinninger has quit [Remote host closed the connection]
imperator has left #ruby ["Leaving"]
ascarter has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoicomputer has quit [Ping timeout: 265 seconds]
<[spoiler]> chrisseaton: not that I am aware of, you generally don't need it either
neonalpine has joined #ruby
<chrisseaton> nor, [spoiler]: yeah I'm doing some Ruby implementation experiments - this is implementation internal code - I'm not going to subject any junior developers to this, don't worry
RegulationD has joined #ruby
<[spoiler]> chrisseaton: if you want to define a globally available method, you can define it on Kernel or Object
<[spoiler]> >> self.class
<ruboto> [spoiler] # => Object (https://eval.in/475215)
<[spoiler]> >> self.class.include? Kernel
<ruboto> [spoiler] # => true (https://eval.in/475216)
ngscheurich has quit [Ping timeout: 250 seconds]
m3_del has joined #ruby
<chrisseaton> >> def foo; end; Object.methods.include? :foo
<ruboto> chrisseaton # => false (https://eval.in/475217)
<norc> [spoiler]: Incidentally that is what he was suggesting anyway.
<chrisseaton> >> def foo; end; Object.class.methods.include? :foo
<ruboto> chrisseaton # => false (https://eval.in/475218)
<norc> chrisseaton: Nope. Wrong.
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dimasg has quit [Ping timeout: 272 seconds]
<norc> chrisseaton: methods just checks whether it responds to. You have to use instance_methods to see where it is defined.
codecop has joined #ruby
<chrisseaton> >> def foo; end; Object.method(:foo)
<ruboto> chrisseaton # => #<Method: Class(Object)#foo> (https://eval.in/475219)
<chrisseaton> that'll work I guess - thanks
<norc> def foo; end
<norc> >> def foo; end; Object.private_instance_methods(false).include?(:foo)
<ruboto> norc # => true (https://eval.in/475220)
Zackio has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 252 seconds]
howdoicomputer has joined #ruby
IrishGringo has quit [Ping timeout: 264 seconds]
m3_del has quit [Remote host closed the connection]
last_staff has joined #ruby
govg has quit [Ping timeout: 276 seconds]
arup_r has quit []
Zackio has joined #ruby
TomyWork has quit [Ping timeout: 260 seconds]
dmolina has joined #ruby
stannard_ has joined #ruby
howdoicomputer has quit [Ping timeout: 252 seconds]
dmolina has quit [Client Quit]
User458764 has joined #ruby
<[spoiler]> norc: I don't think there's a way to do what you wanna do from Ruby, though. There might be a way in C (at least with the mruby API, but I'm sure there's a way with the MRI API, too)
<norc> [spoiler]: I think I have a way to get it with Fiddler
<norc> Testing at the moment
dfinninger has joined #ruby
stannard has quit [Ping timeout: 255 seconds]
pandaant has quit [Remote host closed the connection]
<[spoiler]> norc: let me know if you come up with something, I'm curious now, too
roshanavand has quit [Remote host closed the connection]
dravine has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
roshanavand has joined #ruby
nofxx has quit [Remote host closed the connection]
neonalpine has quit [Remote host closed the connection]
nofxx has joined #ruby
yqt has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Quit: WeeChat 1.3]
baweaver has joined #ruby
skweek has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
davedev2_ has joined #ruby
skade has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
lemur has joined #ruby
Gnut has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
skade has quit [Client Quit]
davedev24 has quit [Ping timeout: 272 seconds]
Gnut has joined #ruby
skade has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 250 seconds]
hmnhf has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
allcentury has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cwong_on_irc has quit [Remote host closed the connection]
fedexo has joined #ruby
bigkevmcd has joined #ruby
cyb3rspy has quit [Ping timeout: 240 seconds]
neonalpine has joined #ruby
tildes has joined #ruby
nofxxx has joined #ruby
baweaver has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
<norc> [spoiler]: Okay while trying to map out how to get the argc I figured out the solution. It is really simple actually. :)
pawnbox_ has joined #ruby
<norc> Kernel#__method__ is all you need.
reaVer has quit [Remote host closed the connection]
<[spoiler]> argc or argv?
<norc> argc.
nofxx has quit [Ping timeout: 252 seconds]
<[spoiler]> that returns the current method, though
<drbrain> norc: local_variable_get and local_variable_set are coming in 2.3, IIRC
<norc> So basically method(__method__).parameters gives them to you
howdoicomputer has joined #ruby
<drbrain> or are they there now?
JosephSmith has joined #ruby
<JosephSmith> why doesn't ascii go up your ass?
<[spoiler]> it gives you the list of parameters a function accepts, not the one it received when it was called, no?
<norc> Hi by the way. ;-)
<drbrain> yeah
reaVer has joined #ruby
<[spoiler]> JosephSmith: because only dick goes there :)
<JosephSmith> you're a faggot
<JosephSmith> !ops faggot alert
<ruboto> fflush, jhass, seanstickle, apeiros, zzak, Radar, Mon_Ouie, banisterfiend, Havenn, sevenseacat, miah, workmad3, drbrain, Coraline, slyphon, zenspider, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
pawnbox has quit [Ping timeout: 252 seconds]
<[spoiler]> f/
<havenwood> !mute JosephSmith
JosephSmith has left #ruby [#ruby]
iateadonut has quit [Quit: Leaving.]
diegoaguilar has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
<drbrain> norc: there's also #local_variables
shock_one has joined #ruby
<drbrain> but to extract them you need to use eval for currently released rubies
<norc> drbrain: Huh, local_variable_get has been around since 2.1 :)
<drbrain> oh, it's on binding, that's right
<norc> Also local_variables is no good after locals have been defined.
bersimoes has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<drbrain> oh, I get it, I didn't read enough scrollback
<norc> All good
_blizzy_ has quit [Quit: Leaving]
<adaedra> Thanks, havenwood.
pyon-tinuation is now known as hamilto-nyan
spaceman__ has joined #ruby
spaceman_ has quit []
napcae_ has joined #ruby
vdamewood has joined #ruby
<[spoiler]> norc: but `method(__callee__).parameters` will return something like `[ [:req, :arg1], [:opt, :arg2] ]` not the number of arguments a function received, no?
<[spoiler]> erm __method__ not __callee__
<[spoiler]> although I think they do the same thing
djbkd has quit [Read error: Connection reset by peer]
<[spoiler]> >> def f(a, b, *c); method(__callee__).parameters; end; f(1,2,3)
<ruboto> [spoiler] # => [[:req, :a], [:req, :b], [:rest, :c]] (https://eval.in/475230)
diegoaguilar has joined #ruby
<norc> [spoiler]: Based on the implementation they do not.
yoongkang has joined #ruby
<norc> Im thinking this may have to do with lambdas
<norc> (and procs)
kimegede has joined #ruby
<[spoiler]> Weird, because a Method object doesn't contain any "call time" information AFAIK
spider-mario has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
bersimoes has quit [Ping timeout: 260 seconds]
<norc> >> def f(a); b = binding; Hash[method(__method__).parameters.map { |(_,a)| [a, b.local_variable_get(a)] }]; end; f(1)
<ruboto> norc # => {:a=>1} (https://eval.in/475231)
<norc> Sweet.
kimegede has quit [Client Quit]
diegoaguilar has joined #ruby
zeroDivisible has joined #ruby
<Soulcutter> that's neat :)
diegoaguilar has quit [Max SendQ exceeded]
pawnbox_ has quit [Ping timeout: 264 seconds]
<[spoiler]> #stillprefers *spat
<[spoiler]> splat
baweaver has joined #ruby
skade has joined #ruby
pawnbox has joined #ruby
diegoaguilar has joined #ruby
reaVer has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 260 seconds]
<norc> [spoiler]: what do you mean?
towski__ has joined #ruby
towski_ has quit [Ping timeout: 272 seconds]
solars has joined #ruby
Ilyes512_ has joined #ruby
Ilyes512 has quit [Ping timeout: 260 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 272 seconds]
cyb3rspy has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ngscheurich has joined #ruby
reaVer has joined #ruby
Xeago has joined #ruby
grotewold has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ngscheurich has quit [Ping timeout: 264 seconds]
<baweaver> driftig: more like Ox0dea posts things and I make a gist explaining them right afterwards. It's a game we're both in on.
<norc> Sounds legit.
Mr_Pancake has joined #ruby
roshanavand has quit [Remote host closed the connection]
aspiers_ has quit [Ping timeout: 246 seconds]
reaVer has quit [Remote host closed the connection]
<jbrhbr> norc: if you have a function f(a, b) and an array A=[1,2], you can call f(*A) and it will bind 1 to 'a' and 2 to 'b' by "splatting" A
<[spoiler]> norc: I meant that using def `f(*a)` is nicer than all that
<norc> Ah.
<norc> [spoiler]: Well the idea came up when I was byebug'ing into some methods and was wondering how they were called
postmodern has joined #ruby
jackjackdripper has joined #ruby
<baweaver> besides, how did you find that? Are you obsessed with me driftig? :P
<[spoiler]> ah
<droptone> Afternoon, fellow Ruby enthusiasts!
mjuszczak has quit []
<norc> >> def f(**a); b = binding; Hash[method(__method__).parameters.map { |(_,a)| [a, b.local_variable_get(a)] }]; end; f(a: 1, b: 10)
<ruboto> norc # => {:a=>{:a=>1, :b=>10}} (https://eval.in/475232)
mjuszczak has joined #ruby
<norc> Okay this is interesting.
hxegon has joined #ruby
<norc> It just works. :)
shinnya has joined #ruby
<[spoiler]> >> def f(a) p a; end; f(a: 1, b: 2)
<ruboto> [spoiler] # => {:a=>1, :b=>2} ...check link for more (https://eval.in/475233)
<[spoiler]> what is wrong with that
<norc> Though I'm really wondering how this would behave with named params in 1.9
skade has quit [Quit: Computer has gone to sleep.]
roshanav_ has joined #ruby
<norc> err 2.0
reaVer has joined #ruby
<norc> Which of course does not work because there is no local_variable_get. Sad panda.
<[spoiler]> >> def f(a, b) p a; end; f(*{a: 1, b: 2}) # or this (should return a: 1)
nofxxx has quit [Ping timeout: 244 seconds]
<ruboto> [spoiler] # => [:a, 1] ...check link for more (https://eval.in/475238)
<[spoiler]> erm or not
<hanmac> ping shevy
tulak has joined #ruby
<[spoiler]> I expected just `1`
<norc> [spoiler]: As I said, I was looking for a completely generic way with no assumptions about how the params are structured.
<[spoiler]> ah
roshanav_ has quit [Remote host closed the connection]
<norc> The only thing I dislike how convoluted my Hash construction is.
<[spoiler]> then your thing should work, I suppose (you would eval the symbol prior to local_variable_get, tho)
<norc> huh?
<[spoiler]> >> def f(**a); b = binding; Hash[method(__method__).parameters.map { |(_,a)| [a, b.eval(a.to_s)] }]; end; f(a: 1, b: 10)
<ruboto> [spoiler] # => {:a=>{:a=>1, :b=>10}} (https://eval.in/475240)
Oog has quit [Read error: Connection reset by peer]
reaVer has quit [Remote host closed the connection]
ngscheurich has joined #ruby
joonty has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
arup_r has joined #ruby
Rollabunna has joined #ruby
<norc> [spoiler]: Oh by prior you mean 2.0 and before?
jobewan has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
<[spoiler]> yeah, before local_variable_get was implemented
<norc> 20>> def f(**a); b = binding; Hash[method(__method__).parameters.map { |(_,a)| [a, b.eval(a.to_s)] }]; end; f(a: 1, b: 10)
<ruboto> norc # => {:a=>{:a=>1, :b=>10}} (https://eval.in/475241)
<norc> 20>> def f(a: 1, c: nil); b = binding; Hash[method(__method__).parameters.map { |(_,a)| [a, b.eval(a.to_s)] }]; end; f(a: 1, c: 10)
<ruboto> norc # => {:a=>1, :c=>10} (https://eval.in/475242)
<norc> 19>> def f(a: 1, c: nil); b = binding; Hash[method(__method__).parameters.map { |(_,a)| [a, b.eval(a.to_s)] }]; end; f(a: 1, c: 10)
<ruboto> norc # => /tmp/execpad-dcc0f19bcbbd/source-dcc0f19bcbbd:2: syntax error, unexpected tLABEL, expecting ')' ...check link for more (https://eval.in/475243)
<[spoiler]> This looks like such a mess! LOL
<norc> Oh silly.
skweek has quit [Ping timeout: 272 seconds]
<norc> Yeah. So how do I do this Hash construction more elegantly?
_seanc_ has quit [Ping timeout: 260 seconds]
<[spoiler]> not sure.
<[spoiler]> also you can skip using binding, probably
<norc> How? Im inside a block
<[spoiler]> 20>> def f(**a); Hash[method(__method__).parameters.map { |(_,sym)| [sym, eval(sym.to_s)] }]; end; f(a: 1, b: 10)
<ruboto> [spoiler] # => {:a=>{:a=>1, :b=>10}} (https://eval.in/475244)
Spami has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
<[spoiler]> rename the param for the block
<norc> I mean in Ruby 2.3 there is an elegant way to construct the Hash
<[spoiler]> there is?
Rollabunna has quit [Ping timeout: 272 seconds]
<norc> Or wait no there is not.
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<[spoiler]> also you could call to_h on the array
<[spoiler]> instead of wrapping it in Hash[]
<[spoiler]> something like...
<[spoiler]> def f(**a); method(__method__).parameters.map { |(_,sym)| [sym, eval(sym.to_s)] }.to_h; end; f(a: 1, b: 10)
<jbrhbr> what was the problem again with def f(**args); args; end ?
<guardian> hello what's the idiomatic way to do the following: knowing result = @cache.get(foo) <-- return result if result is not nil
<guardian> please
<[spoiler]> jbrhbr: there isn't a problem, the idea was to debug how a method was being called without making assumptions about the arguments
<jbrhbr> ahh i see
<hanmac> hey you guys, why are you using method(__method__).parameters and maybe not something like local_variables?
<norc> guardian: return result unless result.nil?
<guardian> looks better than if end indeed
<[spoiler]> hanmac: because local_variables contains all local variables
<norc> (or just test with result directly, I just prefer to explicitly test for nil? for readability)
<jbrhbr> you could wrap the method in another method using the **construct and print your debug info
<jbrhbr> then you don't have to modify the method or assume anything about it
<[spoiler]> jbrhbr: indeed! it was just golfing, though
<jbrhbr> ok :)
<norc> jbrhbr: No. The excercise came from byebugging into the middle of an existing function.
<[spoiler]> ooh
dopie has quit [Ping timeout: 272 seconds]
<norc> I mean byebug most likely has all the tools available to do this on its own
beauby has joined #ruby
baweaver has joined #ruby
<norc> But that really wasn't the point. ;-)
tildes has quit [Read error: Connection reset by peer]
<norc> hanmac: Because if you are in the middle there may have been local variables added
dkphenom has quit [Ping timeout: 250 seconds]
reaVer has joined #ruby
<jbrhbr> works for me. i'm just asking stuff out of curiosity since i'm new to ruby
<norc> jbrhbr: I'm doing all these things for the same reason.
<norc> Curiosity and relatively low knowedge about Ruby.
<jbrhbr> heh nice :)
f3ttX] has quit [Remote host closed the connection]
<guardian> now I have another noob question: there's that gem I'm modifying. How can I tell irb to require that local gem, and also make sure all require() calls resolve locally? So far I'm using load() to load files I modified and that looks dirty
<norc> guardian: Are you using bundler?
<[spoiler]> guardian: you can use require_local?
<[spoiler]> or require '/full/path/
<[spoiler]> guardian: also, checkout pry
<[spoiler]> ?pry
<ruboto> 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
<hanmac> ha i found "Dora the Explorer" made as Action Movie XD https://www.youtube.com/watch?v=TnpTcrtsN3U
naftilos76 has joined #ruby
<guardian> well I'm doing require './lib/foo.rb' but foo.rb itself uses require 'bar' and it doesn't load the local './lib/bar.rb'
<adaedra> maybe you want require_relative, even if I'm not sure it's still good to use in recent ruby
<norc> guardian: Then your lib/foo.rb needs fixing.
<adaedra> hanmac: that's way offtopic.
<norc> guardian: require_relative is your fiend.
<norc> And it seems adaedra beat me to it... :(
<[spoiler]> hanmac: LOL
<[spoiler]> adaedra: yes require_relative, not local, sorry about that guardian lol
linuxboytoo has quit [Remote host closed the connection]
<adaedra> sorry, norc, I'll try to be slower next time.
<norc> :-)
<guardian> I don't think the gem needs fixing
<guardian> it's not a gem of mine
linuxboytoo has joined #ruby
<guardian> it's just that the gem is made of several files, I modified some, all I want is an irb repl to play with my changes
kirun has joined #ruby
baweaver has quit [Ping timeout: 272 seconds]
linuxboytoo has quit [Read error: Connection reset by peer]
<[spoiler]> guardian: you might want to use bundler and pry and let that handle the loading instead
<adaedra> you want to load your gem from pry?
linuxboytoo has joined #ruby
<adaedra> there's a bundle command, or you can just try `pry -Ilib`
c0ncealed has quit [Ping timeout: 240 seconds]
<guardian> I have the source for a gem, the gem is not installed
<guardian> I want to edit the implementation, and play with my changes in a repl
<adaedra> so yeah, what you're looking for is -I.
<[spoiler]> bundler + pry will blow your mind
<guardian> that gem in question, is split among several files, just like all gems. So the main file uses "require 'subpart/foo'" etc
<[spoiler]> omg it rhymes even!
<[spoiler]> no it doesn't nvm
<guardian> why do I need bundler?
<adaedra> sorry, [spoiler]
cwong_on_irc has joined #ruby
<adaedra> guardian: irb -Ilib
blackmesa has joined #ruby
A124 has quit [Quit: '']
<adaedra> bundler would have done it for you
<guardian> ah right -Ilib is the answer
<guardian> by issuing which bundler command?
<adaedra> Don't remember. :x
<[spoiler]> guardian: you could use bundler and tell it where a gem source is
<adaedra> ah, `bundle console`
diegoaguilar has quit [Ping timeout: 272 seconds]
diegoaguilar_ has joined #ruby
<[spoiler]> in gem file: `gem 'blah blah', path: '/path/to/your/gem'
<[spoiler]> oh didn't know about bundle console!
<guardian> ah yeah that sounds bizarre to write a gem file just to test local files in a repl :)
<[spoiler]> that is handy
<guardian> thanks for the help, appreciated
<adaedra> [spoiler]: I don't think that's what guardian is looking for.
<[spoiler]> oh
solars has quit [Ping timeout: 244 seconds]
<adaedra> you'd be right if you wanted to test the gem from another gem/project.
hmnhf has quit [Quit: Konversation terminated!]
<adaedra> guardian: but yeah, look up on bundler and pry.
<norc> guardian: Honestly bundler is really useful even for these things since it lets you set up requirements very easily.
axl_ has quit [Quit: axl_]
<norc> Versions of gems you are using etc.
saran has joined #ruby
bersimoes has joined #ruby
nofxxx has joined #ruby
darkf has quit [Quit: Leaving]
<saran> Hi. Anyone knows a good book about Ruby?
<adaedra> There's
<adaedra> ?links
[Butch] has joined #ruby
<adaedra> But iirc, it's not totally up-to-date
<saran> Ok, thx
<adaedra> (apeiros?)
<saran> ?
lenwood has joined #ruby
<apeiros> adaedra: yepp, that's what I meant in our previous exchange with "remove me as an obstacle" :)
<[spoiler]> saran: that's the dude who maintains the site
<apeiros> it's actually the dude who deploys the site.
<[spoiler]> oh
<[spoiler]> :D
<apeiros> it's open source. everybody can maintain it.
allcentury has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 250 seconds]
<apeiros> and adaedra did. but I'm *far* behind with deploy.
<[spoiler]> Oh right
blackmesa has quit [Ping timeout: 240 seconds]
<saran> ;)
<[spoiler]> apeiros: hit that deploy button!
<[spoiler]> no wait don't hit it
<[spoiler]> press it gently
skweek has joined #ruby
<[spoiler]> just in case
neonalpine has quit []
<saran> Okay, thx :)
blackmesa has joined #ruby
gatman has joined #ruby
yoongkang has joined #ruby
yfeldblum has joined #ruby
Gi0 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 276 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
ldnunes has quit [Quit: Leaving]
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
yoongkang has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
asas has joined #ruby
roshanavand has joined #ruby
bersimoes has quit [Remote host closed the connection]
nofxxx has quit [Remote host closed the connection]
nofxxx has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vnk has quit [Read error: Connection reset by peer]
bersimoes has joined #ruby
symm- has quit [Quit: Leaving...]
roshanavand has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
diegoaguilar_ has quit [Remote host closed the connection]
lurch_ has joined #ruby
c0ncealed has joined #ruby
axsuul has joined #ruby
VeryBewitching has joined #ruby
<VeryBewitching> G'day folks.
shadoi has joined #ruby
lurch_ has quit [Client Quit]
momomomomo has joined #ruby
yoongkang has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
<apeiros> elo VeryBewitching
roshanavand has joined #ruby
stannard_ has quit [Remote host closed the connection]
jbrhbr has quit [Quit: Leaving.]
skweek has quit [Ping timeout: 240 seconds]
koba has joined #ruby
vasilakisfil has joined #ruby
valetudo has quit [Remote host closed the connection]
<vasilakisfil> when defining some methods on a class, when should I make them class methods and when instance methods, given that I don't need a state?
<jhass> if you don't need state (and thus instances), don't make a class
DurstBurger has quit [Ping timeout: 260 seconds]
<jhass> make a module with only `module_function`s or singleton methods (`def self.`)
ismaelga has joined #ruby
koba has quit [Remote host closed the connection]
rdavila has joined #ruby
Xeago has joined #ruby
ur5us has joined #ruby
troulouliou_div2 has joined #ruby
agit0 has joined #ruby
_blizzy_ has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
elaptics is now known as elaptics`away
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
howdoicomputer has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
grotewold has joined #ruby
grotewold has quit [Max SendQ exceeded]
grotewold has joined #ruby
rodfersou has quit [Quit: leaving]
baweaver has quit [Ping timeout: 252 seconds]
waxjar has joined #ruby
evandrojr has quit [Ping timeout: 252 seconds]
rawheadon has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
<vasilakisfil> but then I don't have private methods
<vasilakisfil> no I have, my bad
waxjar has quit [Remote host closed the connection]
reaVer has quit [Remote host closed the connection]
bkxd has joined #ruby
chouhoul_ has joined #ruby
dopamean_ has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
aeontech has quit [Quit: aeontech]
reaVer has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
kimegede has joined #ruby
tvw has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
codecop has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
dopamean_ has joined #ruby
skade has joined #ruby
SleepySensei has joined #ruby
solenoids has quit [Ping timeout: 264 seconds]
arup_r has quit []
gatman has quit [Remote host closed the connection]
aeontech has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 272 seconds]
constantinexvi_ has quit [Quit: Exiting]
constantinexvi has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<Radar> > "Please help me with this code"
<Radar> > <talks about code rather than actually showing code>
<Radar> vasilakisfil: see a problem?
<vasilakisfil> I am talking generally
<Radar> General talk comes from real code, typically.
mrd_ has joined #ruby
<vasilakisfil> like best practices etc
axsuul has quit [Ping timeout: 255 seconds]
<Radar> It really boils down to what the methods do.
<vasilakisfil> I think it comes from experience
<vasilakisfil> I mean there are many ways you can do the same thing, at least in ruby
<Radar> The descriptions you've given so far are not adequate enough to provide a concrete answer.
roshanavand has quit [Remote host closed the connection]
<vasilakisfil> but experience usually helps you
ngscheurich has quit [Read error: Connection reset by peer]
<vasilakisfil> of course in combination with your current context/problem you want to solve
<Radar> I have 10 years experience doing Ruby and I don't have an answer for you.
failshell has joined #ruby
|ifei5g00d has quit []
xet7 has joined #ruby
|ifei5g00d has joined #ruby
solocshaw has joined #ruby
Coldblackice has joined #ruby
fantazo has quit [Quit: Verlassend]
TomPeed has joined #ruby
reaVer has quit [Remote host closed the connection]
gambl0re has joined #ruby
roshanavand has joined #ruby
tulak has quit [Remote host closed the connection]
synthroid has quit []
<shevy> hehe
replay has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
solenoids has joined #ruby
reaVer has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<[spoiler]> Tempted to turn off join/part messages because the log is a mess right now
<Radar> [spoiler]: do it
<Radar> Then it will look like http://logs.ryanbigg.com/ruby
_seanc_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<shevy> vasilakisfil class methods are nice when you don't need to have (or return and work) an object; the whole activerecord stack makes heavy use of that -> see there for an example, and it directly compares to .new so you actually have both http://guides.rubyonrails.org/active_record_basics.html#create
<[spoiler]> Radar: but then I will do monologues. I have a reputation for it on a few RP channels, where I'd continue to talk with myself
solocshaw has quit [Ping timeout: 240 seconds]
yoongkang has quit [Remote host closed the connection]
chouhoulis has joined #ruby
solocshaw has joined #ruby
<[spoiler]> vasilakisfil: Why do you need private methods on a module's singleton class anyway?
<[spoiler]> it defeats the purpose of a module method
jmdade has joined #ruby
<[spoiler]> since you generally want to call them "publicly"
<vasilakisfil> I was thinking in the context of class methods, like a helper method but not available in the public api
myztic has quit [Ping timeout: 265 seconds]
<[spoiler]> Sounds to me like you need a private instance method?
<Radar> yay for theoretical discussions which of course will end with clear understanding on behalf of all parties
duncannz has quit [Quit: Leaving]
<[spoiler]> Lol ^
<adaedra> [spoiler]: some clients have a smart hiding of join/part, showing only relevant ones.
<[spoiler]> adaedra: does weechat?
axsuul has joined #ruby
<adaedra> yes
<[spoiler]> omg what is it
<adaedra> derp.
<jhass> [spoiler]: I recommend 15 minutes for the delay
duncannz has joined #ruby
<norc> [spoiler]: Well, the question is not whether one needs *private* methods on a singleton class of a module, but whether one needs methods on a singleton class of a module at all.
karapetyan has joined #ruby
<[spoiler]> jhass, adaedra: omg thanks! :D
<norc> private just doesn't expose them to the outside, thus limiting visibility to your interface
DoubleMalt has quit [Read error: Connection reset by peer]
speakingcode has quit [Quit: Lost terminal]
<shevy> they can just use .send :)
DoubleMalt has joined #ruby
howdoicomputer has joined #ruby
<[spoiler]> All your dirty laundry can be seen in Ruby
<norc> shevy: visibility has nothing to do with making it impossible
<[spoiler]> It's worse than the NSA
momomomomo has quit [Quit: momomomomo]
skade has quit [Quit: Computer has gone to sleep.]
<norc> shevy: For example in C++ it is very common to only make those members of a class public that you actually want to be accessible from the outside. You can still work around that if you really want to.
bb010g has quit [Quit: Connection closed for inactivity]
<norc> If you make things public, people will use it. If its private, you probably shouldn't use it because it's not part of the interface, may contain implementation details and be subject to change.
decoponio has quit [Quit: Leaving...]
sandstrom has joined #ruby
skade has joined #ruby
<[spoiler]> ^
naftilos76 has quit [Ping timeout: 260 seconds]
superlou has quit [Quit: Leaving]
scripore has joined #ruby
<[spoiler]> but it was more of a joke; there's still no reason to make a module singleton method be private, since it shouldn't (in a sane world) mutate any state, so it should be safe to call it. If you really want it private, it probably should be an instance method, though
gatman has joined #ruby
diegoaguilar has joined #ruby
kimegede has quit [Quit: Leaving...]
djcp has quit [Ping timeout: 260 seconds]
fxkr has joined #ruby
DurstBurger has joined #ruby
<fxkr> hi! im not a ruby dev. i have this package (vagrant-libvirt) and i want to build a gem. "bundle package" will only tell me one missing dependency at a time. how do i get it to tell me all missing dependencies so that i can "gem install" them in one go?
<shevy> norc I approve that C++ adopted ruby's way of working around it :)
<adaedra> fxkr: no need, just run `bundle install`
<norc> [spoiler]: Still. Let's say you have a Math::prime function. Now that may be implemented with some algorithm with parts or the entirety being encapsulated in a private method.
<fxkr> adaedra: no, i want a gem, so that i can feed that to fpm to build me an RPM. but anyway, "bundle install" has the same problem.
<adaedra> It should install them all at once.
<fxkr> it doesnt.
<fxkr> Updating files in vendor/cache
<fxkr> Could not find unf-0.1.4.gem for installation
<norc> Because it is implementation details you don't want a user to know about. You just want them to use your interface.
<adaedra> But if you want the dependency list, it's in the `Gemfile` file
<fxkr> install that, get the next one: Could not find domain_name-0.5.25.gem for installation
<adaedra> that's weird
<fxkr> that sums up my experience with ruby and dependencies :( (sorry for being bitter. its been a long day.)
<adaedra> does it complains about a lack of `source`, maybe?
<adaedra> It's not supposed to be like that
<[spoiler]> norc: I agree that it might be implementation dependant, but there's no way to hide it. If people wanna shot themselves in the leg, they can and they will no matter how hard you try to hide it from them. This way they'll spend more time figuring out how to shoot themselves rather than move on onto the proper solution
<[spoiler]> i meant no reason, not no way
<norc> [spoiler]: Indeed. It's not about securing but discouraging. :)
<norc> If anything but to save you from the headache of clueless people wandering about your bug tracker because *you* changed internal methods.
<fxkr> adaedra: nope. entire output is: "Resolving dependencies...", n times "Using xyz...", "Updating files in vendor/cache"
<shevy> fxkr wheee you are also a fpm hipster! I still did not get to work on it but it's on my (always growing) todo list
baweaver has joined #ruby
<Radar> fxkr: 'bundle install' doesn't fix the issues?
<fxkr> Radar: no.
stannard has joined #ruby
<Radar> Oh, you said that earlier I just saw.
jbrhbr has joined #ruby
<Radar> ?gist fxkr the command + full error message you're getting please
<ruboto> fxkr, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
bersimoes has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
shock_one has quit [Remote host closed the connection]
babblebre has quit [Quit: Connection closed for inactivity]
<Radar> Interesting. I've not seen that error before.
k3asd` has joined #ruby
gatman has quit [Remote host closed the connection]
<Radar> I don't know, sorry.
<fxkr> shevy: ;) fpm is a real time-saver. especially since every distro and language has to invent at least one package manager.
<adaedra> fxkr: can you show the Gemfile?
<jhass> fxkr: try running bundle cache or rm -rf vendor/cache
bersimoes has joined #ruby
<adaedra> everything looks file in here.
<shevy> fxkr yeah, total chaos, they hate compatibility
<fxkr> adaedra: removing vendor/cache helped for "bundle install" but not for "bundle package".
<shevy> adaedra looks file indeed
<adaedra> fxkr: that was jhass's suggestion
seorc has joined #ruby
<jhass> idk, I don't really use bundle package but the few times I ran it to try, I had no issues with it
seorc has quit [Client Quit]
Rollabunna has quit [Ping timeout: 244 seconds]
<shevy> the gem exists https://rubygems.org/gems/domain_name \o/
<fxkr> yes, they all do. i can make progress if i "gem install" them one by one.
<shevy> :)
Xeago has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<driftig> baweaver: Yes.
<shevy> long live the oldschool ways
<driftig> Amen.
lenwood has quit [Ping timeout: 252 seconds]
<[spoiler]> fxkr: did you try `bundle package --all`?
<driftig> Those of us who knew the pop pop ret game before every wankster in the world owned a 486 with AOL.
<fxkr> [spoiler]: no, but i did now, and it doesnt help. output ends with "Could not find ... for installation" too.
<[spoiler]> god damn it
Ropeney has joined #ruby
<shevy> driftig I assume you used to play games in the old days but are not exactly happy with the games in the modern era too!
hahuang61 has joined #ruby
shock_one has joined #ruby
Xeago has joined #ruby
lemur has joined #ruby
<driftig> shevy: Back when Windows 95 was a hit song.
reaVer has quit [Remote host closed the connection]
gatman has joined #ruby
baweaver has quit [Remote host closed the connection]
<[spoiler]> i feel like too many modern games don't rely on the story, but rely too heavily on graphics and gameplay
<jbrhbr> long live final fantasy 1!
_blizzy_ has quit [Quit: Leaving]
reaVer has joined #ruby
shock_one has quit [Ping timeout: 272 seconds]
<[spoiler]> I never played any of the FF games, but I read the stories of a lot of them on FF (one user turns the stories into... stories on fanfiction.net) and it's a pretty good read
<[spoiler]> I haven't read them in some time, though
znz_jp has quit [Ping timeout: 246 seconds]
lemur has quit [Ping timeout: 272 seconds]
babblebre has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
<jhass> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
gatman has quit []
k3asd` has quit [Read error: Connection reset by peer]
gatman has joined #ruby
DEac-_ has quit [Quit: leaving]
framling has quit [Read error: Connection reset by peer]
DEac- has joined #ruby
nomadic has quit [Ping timeout: 250 seconds]
nomadic has joined #ruby
lubekpl has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Ping timeout: 250 seconds]
kaspergrubbe has joined #ruby
htmldrum has joined #ruby
failshell has quit [Remote host closed the connection]
<[spoiler]> Night, all!
tulak has joined #ruby
blackmesa has joined #ruby
yoongkang has joined #ruby
s00pcan has quit [Ping timeout: 272 seconds]
s00pcan has joined #ruby
jpiche has quit [Quit: WeeChat 0.4.2]
yoongkang has quit [Ping timeout: 244 seconds]
norc has quit [Ping timeout: 246 seconds]
leat has quit [Ping timeout: 276 seconds]
[Butch] has quit [Quit: I'm out . . .]
B1n4r10 has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 240 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saran has left #ruby [#ruby]
baweaver has joined #ruby
s00pcan has joined #ruby
EvilDMP has joined #ruby
prestorium has quit [Quit: Leaving]
<EvilDMP> hello, if jekyll is failing to notice that changes have been made to the site files (i.e it is failing to trigger a rebuild) what's the likely problem
<EvilDMP> ?
<EvilDMP> I thought I'd fixed this the other week...
<jhass> ask #jekyll ?
Freijo has quit [Ping timeout: 272 seconds]
Fraeon has joined #ruby
ta has joined #ruby
havenwood has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
St1gma has quit [Ping timeout: 240 seconds]
dmcp_ has joined #ruby
<EvilDMP> jhass: I think it might be a more general Ruby issue; I had a command not found: jekyll so did a gem install jekyll; now this
havenwood has joined #ruby
otherj has joined #ruby
maloik has joined #ruby
<jhass> I guess jekyll needs some dependency for it that has gone missing as well?
otherj has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
ta has joined #ruby
dviola has joined #ruby
uri has quit [Ping timeout: 240 seconds]
otherj has joined #ruby
dopamean_ has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
bersimoes has quit [Read error: Connection reset by peer]
dmcp_ has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
havenwood has quit [Changing host]
havenwood has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axsuul_ has joined #ruby
polishdub has quit [Quit: Leaving]
tomphp has joined #ruby
dopamean_ has joined #ruby
Gnut has quit [Ping timeout: 255 seconds]
xcesariox has joined #ruby
poguez_ has joined #ruby
pawnbox has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
axsuul has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
fedexo has joined #ruby
momomomomo has joined #ruby
skade has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
vasilakisfil has quit [Remote host closed the connection]
gusTester1 has quit [Quit: Leaving.]
vasilakisfil has joined #ruby
shock_one has joined #ruby
Kyuujitsu has joined #ruby
Azure has joined #ruby
otherj has quit [Quit: .]
shock_one has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
htmldrum has quit [Read error: Connection reset by peer]
htmldrum has joined #ruby
_seanc_ has quit [Quit: _seanc_]
I has joined #ruby
Xeago has quit [Remote host closed the connection]
I is now known as Guest52138
dopamean_ has quit [Quit: leaving]
SCHAAP137 has quit [Quit: Leaving]
Kyuujitsu has quit [Quit: Changing server]
barhum2013 has joined #ruby
stannard has quit [Remote host closed the connection]
<jericon> I have two dates. I want to iterate on the range from olddate to newdate. But instead of doing it on a day by day basis (like you would get if you did (olddate..newdate), I want to iterate only on %Y%m (YYYYMM). Is there any way to do this?
gatman_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
spider-mario has quit [Remote host closed the connection]
skade has quit [Ping timeout: 276 seconds]
rclements has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
ekleog has quit [Ping timeout: 250 seconds]
antoniobeyah has joined #ruby
<jhass> mh, .step(30) but that'll drift
antoniobeyah has quit [Client Quit]
<adaedra> If you've a Date, you can use << 1 iirc
Ilyes512_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> >> require 'date'; Date.today << 1
<ruboto> adaedra # => #<Date: 2015-10-24 ((2457320j,0s,0n),+0s,2299161j)> (https://eval.in/475314)
<jhass> ah right, there was something like that
<jhass> >> 1
<ruboto> jhass # => 1 (https://eval.in/475315)
<jhass> eh
gatman has quit [Ping timeout: 240 seconds]
<adaedra> Ah, >> 1 to go the right way.
Spami has joined #ruby
<adaedra> >> Time.now >> 1
<ruboto> adaedra # => undefined method `>>' for 2015-11-24 23:07:59 +0000:Time (NoMethodError) ...check link for more (https://eval.in/475316)
antoniobeyah has joined #ruby
<adaedra> So yeah, works only on Date apparently.
ekleog has joined #ruby
Trynemjoel has joined #ruby
tmtwd has joined #ruby
<jericon> context: I'm writing a script to manage monthly partitions in MySQL. Partitions are named YYYYMM. so I need to have a range (oldest partition to keep, newest partition to have) and then evaluate each. If a partition on the table is older than the oldest, it gets dropped. If it's in the range and doesn't exist, it gets created
<jhass> >> require "date"; range = Date.today..(Date.today + 180); enum = Enumerator.new {|y| s = range.begin; while s <= range.end; y << s; s >>= 1; end; }; enum.to_a
<ruboto> jhass # => [#<Date: 2015-11-24 ((2457351j,0s,0n),+0s,2299161j)>, #<Date: 2015-12-24 ((2457381j,0s,0n),+0s,22991 ...check link for more (https://eval.in/475317)
<jericon> That might work. Then I can use strftime to get it into the right format
<jhass> yup
<jericon> Thanks.
<jhass> wrap it into a nice method
Jackneill has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
Arafangion has left #ruby ["WeeChat 0.3.8"]
hahuang61 has quit [Ping timeout: 272 seconds]
craysiii has joined #ruby
centrx has joined #ruby
last_staff has quit [Quit: last_staff]
centrx has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
centrx has joined #ruby
mjuszczak has quit []
InvGhost has joined #ruby
dorei has quit []
marr has quit [Ping timeout: 264 seconds]
vasilakisfil has quit [Remote host closed the connection]
vasilakisfil has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
tomphp has joined #ruby
znz_jp has joined #ruby
marr has joined #ruby
ismaelga has quit [Remote host closed the connection]
_seanc_ has joined #ruby
axsuul_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
kirun has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 260 seconds]
mmitchel_ has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
ruby-lang456 has joined #ruby
hxegon has quit [Read error: Connection reset by peer]
hxegon has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
moeabdol has quit [Read error: Connection reset by peer]
zeroDivisible has joined #ruby
Azure has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
Oatmeal has quit [Ping timeout: 240 seconds]
sanjayu has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
brt has joined #ruby
dmcp_ has joined #ruby
moeabdol has joined #ruby
dmcp_ has quit [Client Quit]
B1n4r10 has joined #ruby
rodfersou has joined #ruby
ruby-lang456 has quit [Quit: Page closed]
nofxxx has quit [Ping timeout: 264 seconds]
ruby-lang835 has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang835 has quit [Client Quit]
vasilakisfil has quit [Remote host closed the connection]
vasilakisfil has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
Rollabunna has joined #ruby
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Juanchito has quit [Quit: Connection closed for inactivity]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Oatmeal has joined #ruby
nofxxx has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
duncannz has quit [Remote host closed the connection]
badon has joined #ruby
dfinninger has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: Lost terminal]
CloCkWeRX has joined #ruby
KensoDev has joined #ruby
Guest52138 has quit [Quit: This computer has gone to sleep]
m_abdelfattah has joined #ruby
axsuul has joined #ruby
maloik has quit [Ping timeout: 244 seconds]
brt has quit [Quit: peace]
shadoi has quit [Quit: Leaving.]
nateberkopec has joined #ruby
Guest33236 has quit [Quit: Leaving]