<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
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]
<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
<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. :<
<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
<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
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…]
<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
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]
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]
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. :-)
<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]"
<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]
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)
<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)
<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…]
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…]
<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?
<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
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
<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]
<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]
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]
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…]
<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
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?
<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]
<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
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
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.
<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]
<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…]
<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…]
<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]