nando293921 has quit [Read error: Connection reset by peer]
davee_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
nando293921 has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
vith has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 248 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
floatingpoint has joined #ruby
<vith>
is there any good preset for reek to raise the signal to noise ratio? or another "idiom" linter, if you can call it that?
<vith>
i'm new to ruby so i'd appreciate these kinds of hints but the defaults seem really noisy and i don't want to spend a lot of time configuring tooling
Moosashi has joined #ruby
noService has joined #ruby
gix has joined #ruby
djbkd has joined #ruby
LaT0rtue has joined #ruby
bkxd has joined #ruby
esclavodeltikita has joined #ruby
daguilaraguilar has quit [Ping timeout: 264 seconds]
<Radar>
vith: what's the output that you're seeing now from that?
madgen_ has quit [Ping timeout: 276 seconds]
valetudo has quit [Ping timeout: 260 seconds]
sneakerhax has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
noService has quit [Ping timeout: 246 seconds]
morochena has quit [Quit: Leaving...]
madgen_ has joined #ruby
Spami has quit [Remote host closed the connection]
noService has joined #ruby
<vith>
TooManyInstanceVariables for classes with 5 or more; NestedIterators, TooManyStatements, UncommunicativeVariableName for basically the doc examples of using optparse
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Dopagod has quit [Quit: WeeChat 0.4.2]
bkxd has quit [Ping timeout: 244 seconds]
<RickHull>
vith: i like Reek, but if it's noisy today and you don't see a noise problem, you could just not use it as a valid workaround
<Ox0dea>
Er, that's missing an `if block_given?`, but you get the idea.
Devalo has joined #ruby
RegulationD has joined #ruby
hk238 has joined #ruby
<Ox0dea>
That Object.new doesn't use its block does seem like a missed trick.
Moosashi has quit [Quit: Moosashi]
LaT0rtue has quit [Ping timeout: 248 seconds]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
chipotle has quit [Quit: cheerio]
Devalo has quit [Ping timeout: 276 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
blackgoat has quit [Ping timeout: 260 seconds]
jdawgaz has quit [Read error: Connection reset by peer]
<quazimodo>
Ox0dea: Interesting monkey patch :P
CloCkWeRX has joined #ruby
hxegon has joined #ruby
<quazimodo>
would be nice if ruby came with that hu
pawnbox has joined #ruby
<quazimodo>
javascript made me cognizant of the usefulness of eigenclasses
ramfjord has joined #ruby
<Ox0dea>
What, before Ruby did?
<quazimodo>
well, constructs that are similar in function to eigenclasses
<quazimodo>
Ox0dea: yeah but only because *i* didn't use the functionality in ruby but i ended up using things that appeared mechanically similar to me in JS
<quazimodo>
then it made sense where/how to use them in ruby
jenrzzz has joined #ruby
<quazimodo>
you like them?
<Ox0dea>
Is there a useful distinction between "eigenclass" and "singleton class"?
TomyLobo has quit [Ping timeout: 268 seconds]
<quazimodo>
no idea?
<quazimodo>
are they different things at all?
<Ox0dea>
I don't think so, but then why say "eigenclass"?
brent_ has quit [Quit: Connection closed for inactivity]
<Ox0dea>
"Class methods" are just singleton methods; you've been using "eigenclasses" in Ruby from the first.
<quazimodo>
Ox0dea: yeah i discovered that when i looked at what class << self means
jackjackdripper has quit [Quit: Leaving.]
<quazimodo>
but I wasn't aware of that distinction before. I didn't know it was done that way on classes in ruby implementations
<quazimodo>
though, of course it makes perfect sense
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<Ox0dea>
Yep, Ruby's object hierarchy and method resolution plan are both remarkably simple for all their power.
<Ox0dea>
The crucial observation is to realize that classes are just instances of the Class class.
esclavodeltikita has quit [Read error: Connection reset by peer]
<quazimodo>
is eigenclass or singleton class the stardand word used in comp sci?
<quazimodo>
Ox0dea: yeah that was a head trip that I had when I first started learning a couple years ago
<Ox0dea>
Everybody's got their favorite. :/
<quazimodo>
but, it does make sense
<Ox0dea>
You'll also see "metaclass".
jdawgaz has joined #ruby
<quazimodo>
Ox0dea: i like eigenclass just because I studied mechanical/mechatronic engineering
<quazimodo>
we had several eigen-things
<Ox0dea>
It's certainly the fanciest, and probably the most technically correct.
<Ox0dea>
But that you can't instantiate singleton classes makes that name quite fitting as well.
jdawgaz has quit [Client Quit]
<quazimodo>
sure
davedev24 has quit []
zenergi has joined #ruby
sorbo_ has joined #ruby
b2zeldafreak has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has joined #ruby
RobertBirnie has joined #ruby
<quazimodo>
shmancy
<quazimodo>
i like ruby
<quazimodo>
but i don't like metaprogramming using strings
<Ox0dea>
You'd hate Tcl.
mujeres has joined #ruby
hotpancakes has quit [Remote host closed the connection]
RobertBirnie has quit [Client Quit]
Gooer has joined #ruby
rubie has joined #ruby
chipotle has quit [Quit: cheerio]
<quazimodo>
i've heard words about it
jackjackdripper has joined #ruby
pawnbox has quit [Remote host closed the connection]
<mujeres>
eh, does ruby have any kind of reflection or metaobject protocol?
<Ox0dea>
mujeres: Ruby makes it pretty easy to do everything that might fit under those umbrellas except modifying a class's ancestor chain.
<Ox0dea>
You have to get your hands dirty to do that.
bkxd has quit [Ping timeout: 250 seconds]
hightower2 has joined #ruby
<mujeres>
but it's still possible then?
<mujeres>
what I mean to ask is if ruby is part of it's own environment (ugh I don't really know how to phrase this)
<mujeres>
like smalltalk and lisp (on which I've heard it's inspired)
<Ox0dea>
Yes, those are direct ancestors, but Ruby isn't homoiconic.
<Ox0dea>
It's an "easy" language, not a simple one.
bluOxigen has joined #ruby
<mujeres>
hackable?
<Ox0dea>
Just shy of infinitely.
RobertBirnie has joined #ruby
<mujeres>
that's good
RobertBirnie has quit [Client Quit]
ReK2 has quit [Remote host closed the connection]
hotpancakes has joined #ruby
_strggler has joined #ruby
sarlalian has quit [Ping timeout: 264 seconds]
jkahn has joined #ruby
b2zeldafreak has quit [Quit: Leaving]
<_strggler>
If I have a Hash where some of the keys are :brand, and I want to reduce it into a hash with single instances of a each brand, with the accumulated values... How do I start?
<_strggler>
Some sort of Hash.reduce
CloCkWeRX has quit [Ping timeout: 260 seconds]
<Ox0dea>
_strggler: You'll have to clarify; a Hash can't have duplicate keys.
<_strggler>
Array of hashes. That result from json parse
<fschuindt>
I want to provide a API service to evaluate Ruby code. Receives code as string and returns the code's console output also as string. Doing it in a safe way of course, like virtual environments. Any tip to start with?
<fschuindt>
Radar: this is exactly what I'm looking for. I'm currently using the Hacker Earth. Does the same but provides an API. Now I'm trying to implement this part myself.
<fschuindt>
Ox0dea: ty!
<Ox0dea>
fschuindt: Sure thing. I'm pretty sure that's what jhass uses for https://carc.in/
sarlalian has joined #ruby
jkahn has quit [Remote host closed the connection]
<mujeres>
wow ruby is more malleable than I thought
<fschuindt>
Great
<mujeres>
there goes my good night sleep
<Ox0dea>
fschuindt: There's also seccomp if you want finer-grained control over the whitelist, and you might consider looking into systemd-nspawn as well.
<Ox0dea>
The latter takes some configuring, but then you can essentially spin up little one-off "containers" whenever you wish.
Chagel has joined #ruby
<fschuindt>
Ox0dea: Cool, that's definitely lot of study for me now. I really appreciate, thank you.
RobertBirnie has joined #ruby
<Ox0dea>
Happy to help.
yfeldblum has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
Inside has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 268 seconds]
baweaver has quit [Remote host closed the connection]
sq271 has quit [Ping timeout: 260 seconds]
krz has joined #ruby
RobertBirnie has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
lopin has joined #ruby
chouhoulis has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
minimalism has quit [Quit: minimalism]
last_staff has quit [Quit: last_staff]
Chagel_ has joined #ruby
Asher has quit [Quit: Leaving.]
RobertBirnie has quit [Ping timeout: 240 seconds]
<mujeres>
continuations are a thing in ruby?
Chagel has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
joonty has joined #ruby
RobertBirnie has joined #ruby
<mujeres>
oh they are
Cohedrin has joined #ruby
User458764 has joined #ruby
<Ox0dea>
The actual Continuation library is deprecated, but suspending and resuming a computation is certainly still a thing.
<mujeres>
well there's more to continuations isn't there?
<mujeres>
(at least theoretically :9)
<systemsgotyou>
what use are hash tables in web dev when you can use a DBase?
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
rubie has quit [Remote host closed the connection]
<Ox0dea>
That infinite loop closes over some state and can be jumped into from wherever.
arescorpio has quit [Quit: Leaving.]
<mujeres>
hmmm!
<mujeres>
magic
Devalo has joined #ruby
rubie has joined #ruby
xsdfdfsa has joined #ruby
tildes has joined #ruby
solocshaw has quit [Ping timeout: 248 seconds]
sorbo_ has quit [Remote host closed the connection]
<xsdfdfsa>
c
<mujeres>
Ox0dea: wait... that << operator
<mujeres>
kind of looks like monadic stuff........
rmulligan has quit [Ping timeout: 268 seconds]
araujo has quit [Ping timeout: 268 seconds]
<mujeres>
d-does that exist in ruby?
<Ox0dea>
Well, it's just a regular-ol' method here, but monads can be implemented in any Turing-complete language.
<mujeres>
..oh
rubie has quit [Ping timeout: 252 seconds]
<mujeres>
I was looking at the docs and saw that ios << object, so I thought 'monads!' :P
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mujeres>
I guess OO gives a feel for monads
<mujeres>
(after all monads are implemented in a type system resembling OOP)
Suntzu has joined #ruby
<Ox0dea>
`<<` is colloquially referred to as the "shovel" operator; it tends to get used wherever that verb makes sense. :)
<Ox0dea>
It's #push for Array, #yield for Enumerator::Yielder, and #write for IO and its descendants.
<mujeres>
like context in perl huh?
<Ox0dea>
Just method aliasing, really.
<_strggler>
systemsgotyou: I'm with you. json is blech..
rmulligan has joined #ruby
Renich has joined #ruby
<Ox0dea>
mujeres: Oh! Do you like Haskell's list comprehensions?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mujeres>
well yeah
merida has quit [Read error: Connection reset by peer]
rmulligan has quit [Ping timeout: 248 seconds]
<mujeres>
ruby has that too?
merida has joined #ruby
<mujeres>
doesn't surprise me
RobertBirnie has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
<Ox0dea>
No, not quite, but you can hack it in. :)
<mujeres>
cool. Metaprogramming it's what it's all about
<mujeres>
mmmmm there's map
bronson has quit [Remote host closed the connection]
<Ox0dea>
Ruby is Smalltalk + Lisp + an explosion at the syntax factory.
RobertBirnie has joined #ruby
<mujeres>
I'm starting to notice, yeah
doublemalt__ has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
<mujeres>
now, I'm just starting out. And I already found a bunch of advanced books on ruby
<mujeres>
I need one for a beginner though
hotpancakes has quit [Ping timeout: 244 seconds]
<mujeres>
(one that goes straight to the point plz, not why's)
<Ropeney>
well grounded rubyist
<Ox0dea>
^
rodfersou has joined #ruby
<mujeres>
I'll take your word
Devalo has quit [Remote host closed the connection]
dling` has quit [Ping timeout: 248 seconds]
elifoster has quit [Ping timeout: 240 seconds]
dling has quit [Ping timeout: 250 seconds]
yatish27 has quit [Remote host closed the connection]
LaT0rtue has joined #ruby
ur5us has quit [Remote host closed the connection]
<shevy>
I'll take your ranch!
lele has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
<mujeres>
b-bully, my lunch!
hotpancakes has joined #ruby
brt has joined #ruby
bronson has quit [Remote host closed the connection]
lele has joined #ruby
<mujeres>
is it always interpreted? or is there a sort of VM that runs a compiled bytecode?
lkba has quit [Ping timeout: 244 seconds]
<Ox0dea>
It's always the latter.
<Ox0dea>
For MRI, at any rate.
Es0teric has joined #ruby
ur5us has joined #ruby
bronson has joined #ruby
dling has joined #ruby
dling` has joined #ruby
<mujeres>
MRI?
hotpancakes has quit [Ping timeout: 244 seconds]
<Ox0dea>
The Ruby interpreter you're using.
<Ox0dea>
But there are several other ones.
baweaver has joined #ruby
andikr has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
nanoz has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 240 seconds]
CausaMortis has joined #ruby
Renich has quit [Quit: leaving]
Citoplasma has joined #ruby
<mujeres>
well I should sleep
<mujeres>
thanks guys
kirillzh has joined #ruby
mujeres has quit [Quit: Zzz]
baweaver has quit [Ping timeout: 268 seconds]
fschuindt has quit [Quit: WeeChat 1.3]
<_strggler>
I knew that guy when I last toyed with programming. "well grounded rubyist"
djbkd has quit [Quit: My people need me...]
Citoplasma has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
<_strggler>
'well rounded rubyist' is if you've eaten like I have since those days
benlieb has quit [Quit: benlieb]
lsmola has joined #ruby
lyoshajapan has joined #ruby
bkxd has joined #ruby
_strggler has quit [Quit: Page closed]
silentpost has quit [Ping timeout: 252 seconds]
agit0 has quit [Quit: zzzZZZ….]
leon_ee has joined #ruby
htmldrum_ has quit [Ping timeout: 248 seconds]
htmldrum has quit [Ping timeout: 248 seconds]
leon_e has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 276 seconds]
dtzuzu has quit [Ping timeout: 244 seconds]
LaT0rtue has quit [Ping timeout: 264 seconds]
chancy has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
scepticulous has joined #ruby
<chancy>
Could any harm come from defining a module method named #test - ?
leon_ee has quit [Quit: Konversation terminated!]
<chancy>
I want to have MyModule.test ... but I discovered that there's a private builtin #test, and there's also a Kernel#test
djbkd has joined #ruby
mfaeh has joined #ruby
noServic1 has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 244 seconds]
leon_e has joined #ruby
<shevy>
chancy nah as long as they reside in different namespaces
DoubleMalt has joined #ruby
vondruch has joined #ruby
<Ox0dea>
chancy: Those're the same method, mind.
noService has quit [Ping timeout: 246 seconds]
<chancy>
Ah hah, interesting.
valetudo has joined #ruby
<chancy>
Not sure about the Module private #test method, though: I realized there's an issue when doing TDD: when I expected to use MyModule.test, instead of getting 'method not found', i got 'attempting to access private method'
<Ox0dea>
Invoking it as `MyModule.test` certainly won't conflict, and nor will bare `test` as long as `self` is MyModule.
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea>
chancy: Ah, that means you defined it as an instance method.
<chancy>
That 'private method error' tipped me off
Timba-as_ has joined #ruby
<chancy>
hmm!
astrobunny has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
<chancy>
yep, defined like `def self.test`
joonty has quit [Ping timeout: 276 seconds]
astrobunny has joined #ruby
<chancy>
Or actually, scratch that ...
<chancy>
not defined at all --- called from my test as `MyModule.test`
Don_John has quit [Read error: Connection reset by peer]
<Ox0dea>
You'll probably want to define it, then. :P
<chancy>
But it's saying it is defined, just private.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chancy>
I think going with a diff name like `MyModule.check` is the safest
blackgoat has joined #ruby
<Ox0dea>
That private method error means you don't actually have a `MyModule.test` method.
hotpancakes has joined #ruby
LaT0rtue has joined #ruby
merida has quit [Remote host closed the connection]
<chancy>
really? Oh, this is interesting: yep, the error message actually says both: "private method `test' called for SmallModule:Module (NoMethodError)"
<chancy>
what in the world
<Ox0dea>
Post code?
merida has joined #ruby
linocisco has quit [Quit: Leaving]
<chancy>
Sure.
kam270 has joined #ruby
<Ox0dea>
`SmallModule.test` doesn't exist, so it's going up the ancestor chain and invoking Object#test (from Kernel); it's private, so you can't invoke it with an explicit receiver.
<chancy>
interesting...
astrobunny has quit [Ping timeout: 244 seconds]
<chancy>
yep, here's what i get for check: "undefined method `check' for SmallModule:Module (NoMethodError)"
valetudo has quit [Ping timeout: 276 seconds]
djellemah_ has joined #ruby
<chancy>
Sorry, i can't post code ATM, but i get the odd error with one line: module M; end; M.test
<Ox0dea>
You should get the private method error.
<chancy>
ok, i guess this is making sense, the more i think about it
hotpancakes has quit [Ping timeout: 244 seconds]
<chancy>
it IS still a NoMethodError ... it's just the description that says 'private'
<chancy>
thanks!
lyoshajapan has joined #ruby
<Ox0dea>
Right, that's Ruby letting you know that there is actually a method there, but you're not meant to call it that way. :P
<Ox0dea>
Familiar with #puts?
<chancy>
yep
<Ox0dea>
Well, it's the same deal.
<chancy>
very interesting
<Ox0dea>
>> 'foo'.puts rescue $!
<ruby[bot]>
Ox0dea: # => #<NoMethodError: private method `puts' called for "foo":String> (https://eval.in/543820)
<chancy>
very interesting
<chancy>
>> module M; end; M.puts
<ruby[bot]>
chancy: # => private method `puts' called for M:Module (NoMethodError) ...check link for more (https://eval.in/543822)
CausaMortis_ has joined #ruby
AlexJakeGreen has joined #ruby
agit0 has joined #ruby
cjheath has quit [Quit: cjheath]
<Ox0dea>
In `foo.bar`, `foo` is an "explicit receiver", on which private methods can't be invoked directly.
cjheath has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
merida has quit [Ping timeout: 250 seconds]
bronson has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
CausaMortis has quit [Ping timeout: 248 seconds]
djbkd has quit [Remote host closed the connection]
neanderslob_ has quit [Remote host closed the connection]
avenj has quit [Ping timeout: 268 seconds]
alem0lars has quit [Ping timeout: 268 seconds]
SegFaultAX has quit [Ping timeout: 268 seconds]
Klumben has quit [Ping timeout: 268 seconds]
aupadhye has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 246 seconds]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
futilegames has joined #ruby
chancy has quit [Read error: Connection reset by peer]
SegFaultAX has joined #ruby
n008f4g_ has quit [Ping timeout: 268 seconds]
lopin has quit []
alem0lars has joined #ruby
sepp2k has joined #ruby
Klumben has joined #ruby
workmad3 has joined #ruby
Karix has joined #ruby
Karix has quit [Remote host closed the connection]
marcoecc has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
auzty has quit [Quit: Leaving]
hotpancakes has joined #ruby
lxsameer has joined #ruby
fexilal has joined #ruby
troulouliou_div2 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hays has quit [Read error: Connection reset by peer]
Spami has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
the_drow has joined #ruby
hays has joined #ruby
futilegames has quit [Ping timeout: 264 seconds]
Gasher has joined #ruby
madgen_ has joined #ruby
M-shine has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
TinkerTyper has quit [Ping timeout: 268 seconds]
hays has quit [Read error: Connection reset by peer]
skislak has quit [Remote host closed the connection]
sp4rrow has quit [Read error: Connection reset by peer]
sp4rrow has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Gasher has quit [Ping timeout: 276 seconds]
Gasher has joined #ruby
ByronJohnson has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 260 seconds]
ByronJohnson has joined #ruby
Moosashi has joined #ruby
TinkerTyper has joined #ruby
hays has joined #ruby
M-shine has joined #ruby
kies has joined #ruby
stannard has joined #ruby
lyoshajapan has quit [Ping timeout: 264 seconds]
zeroDivisible has joined #ruby
Snowy has joined #ruby
stannard has quit [Ping timeout: 248 seconds]
ssiris has quit [Quit: End of Line]
mfaeh has quit [Remote host closed the connection]
marr has joined #ruby
dtzuzu has joined #ruby
astrobunny has quit [Remote host closed the connection]
baweaver has joined #ruby
zadrot_ebaniy has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
davidblko has joined #ruby
mrgrieves has quit [Read error: Connection reset by peer]
mrgrieves has joined #ruby
jmorgado has joined #ruby
RobertBirnie has joined #ruby
araujo has joined #ruby
noway has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
LaT0rtue has quit [Ping timeout: 240 seconds]
alxgsv has joined #ruby
pawnbox has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 276 seconds]
last_staff has joined #ruby
pawnbox has joined #ruby
<atmosx>
Hello, I'm playing with ruby threads. I have a code that does what I do, but it's not dynamic enough. I need to stop generating new threads when 'something happens' (e.g. I get an http req == '404') https://gist.github.com/atmosx/9afd96911515fc60ee4e ... but I'm not sure how to go about this. I'm thinking about a "loop do [...] break ... [...] end" but even that isn't clear enough in my mind and doesn't seem clear/good as a solution. I don't like using
<atmosx>
break for anything.
<atmosx>
any ideas/thoughts welcome
hotpancakes has joined #ruby
dtzuzu has quit [Ping timeout: 276 seconds]
mfaeh has joined #ruby
chipotle has joined #ruby
brt has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
hotpancakes has quit [Ping timeout: 276 seconds]
mrgrieves has quit [Ping timeout: 244 seconds]
<n1colas>
o/
bronson has quit [Remote host closed the connection]
bkxd has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
madgen_ has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
htmldrum_ has quit [Ping timeout: 268 seconds]
htmldrum has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
mrgrieves has joined #ruby
RobertBirnie has quit [Ping timeout: 248 seconds]
dtzuzu has joined #ruby
hotpancakes has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
RobertBirnie has joined #ruby
blackmesa has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
wethu has joined #ruby
<DanielJack>
How do I get [1,2,3] + [5,6,7] = [[1,5], [2, 6], [3, 7]]?
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
madgen_ has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Remote host closed the connection]
weeperscreepers has joined #ruby
pawnbox has joined #ruby
FooMunki has joined #ruby
LaT0rtue has joined #ruby
andywojo has quit [Quit: Lost terminal]
chipotle has quit [Quit: cheerio]
<weeperscreepers>
using serverspec, I defined some custom resource to describe a particular type of file and some of it's attributes (it exists, type of content, etc) but now I'm having an issue, which is, in production, before any of the commands I need to run can be successfully executed, I need to perform some authentication with kerberos. I know how to do this part, my question is - what's the cleanest / correct-m
<weeperscreepers>
ost way of plugging the authentication before any command in my custom resource type is run?
dvinciguerra__ has joined #ruby
the_drow has joined #ruby
drewo has joined #ruby
dtzuzu has quit [Ping timeout: 250 seconds]
pdimqh has joined #ruby
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agit0 has quit [Quit: zzzZZZ….]
agit0 has joined #ruby
tvw has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
drewo has quit [Ping timeout: 260 seconds]
mrgrieves has quit [Read error: No route to host]
mdw has joined #ruby
n008f4g_ has joined #ruby
big|bad|wolf has joined #ruby
andikr has quit [Remote host closed the connection]
ytti has joined #ruby
mrgrieves has joined #ruby
mdw has quit [Client Quit]
FooMunki has quit [Quit: FooMunki]
skade has joined #ruby
trinaldi has joined #ruby
hotpancakes has joined #ruby
avenj has joined #ruby
sandstrom has joined #ruby
madgen_ has quit [Ping timeout: 246 seconds]
madgen_ has joined #ruby
benlovell has joined #ruby
weckl has joined #ruby
freerobby has joined #ruby
big|bad|wolf has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 268 seconds]
dtzuzu has joined #ruby
RobertBirnie has joined #ruby
Moosashi has quit [Quit: Moosashi]
bronson has joined #ruby
Apocalypse has quit [Ping timeout: 264 seconds]
DarkBushido has quit [Ping timeout: 248 seconds]
benlovell has quit [Ping timeout: 248 seconds]
TomyLobo has joined #ruby
uglybandersnatch has quit [Ping timeout: 252 seconds]
jmorgado has quit [Quit: Leaving]
bronson has quit [Ping timeout: 264 seconds]
ghormoon has left #ruby ["Leaving"]
johnmilton has joined #ruby
hahuang61 has joined #ruby
TheGreatGudsby has quit [Quit: You're gonna carry that weight...]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
al2o3-cr has quit [Ping timeout: 248 seconds]
DarkBushido has joined #ruby
DarkBushido has joined #ruby
que has joined #ruby
uglybandersnatch has joined #ruby
<que>
how can i replace one character in multiline string that i wont delete others ?
<que>
one last character *
hiyosi has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
Apocalypse has joined #ruby
<tobiasvl>
que: what do you mean by "one last character"? the last character in the string?
<que>
i want to remove last character in string, and it is multiline.
madgen_ has quit [Ping timeout: 240 seconds]
<djellemah>
atmosx: Thread#value will give back the last value in the thread block, or re-raise any exception. That might help structure your code.
<Gasher>
hello. is there a way to make integers display in hexadecimal instead of decimal in Ruby? even if I wrote something like "num=ff" it just returns 255 and the only way for me to even see hexadecimals is "num.to_s(16)"
sdothum has joined #ruby
FooMunki has joined #ruby
<que>
tobiasvl: so simple thx man
but3k4 has joined #ruby
but3k4 has quit [Client Quit]
<tobiasvl>
que: if you only want to do it if it's a comma you'll have to add checks, and maybe regex is a way to deal with more complicated cases, but there's nothing special about multiline strings at least
<que>
yeah
noServic1 has quit [Ping timeout: 246 seconds]
xsdfdfsa has quit [Read error: Connection reset by peer]
<apeiros>
if you don't have . in your regex, //m is pointless
drewo has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
<oddmunds>
ah, thanks. i thought it meant that it saw the whole multiline string as one, instead of many individual strings.
<apeiros>
and ruby[bot] requires you to be registered in order to use several of its commands
<oddmunds>
makes sense
<oddmunds>
anyway, que, tobiasvl, the regex above (with or without /m) removes a trailing comma if there is one
uglybandersnatch has quit [Ping timeout: 248 seconds]
<apeiros>
no, regexen always affect the whole string. but . will not match newlines without the m-flag
<oddmunds>
i understand
leon_e has quit [Quit: Konversation terminated!]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
drewo has quit [Ping timeout: 268 seconds]
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
woodruffw has joined #ruby
joonty has quit [Ping timeout: 246 seconds]
<adaedra>
"regexen"
<adaedra>
apeiros: bot down
<tobiasvl>
bot is kill
<apeiros>
hmmm
<apeiros>
experimentation time
n008f4g_ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
ldnunes has joined #ruby
noService has joined #ruby
baweaver has quit [Ping timeout: 248 seconds]
<Gasher>
I thought String would inherit from Array in Ruby, but that's not the case apparently... can I do an "unshift" on a String in an easier way than converting it to an array and then back to a string?
pawnbox has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
Yiota_ has joined #ruby
darkxploit has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
noService has quit [Ping timeout: 246 seconds]
gregf has quit [Quit: WeeChat 1.4]
aupadhye has joined #ruby
Macaveli has joined #ruby
krz has joined #ruby
<gregf_>
apeiros: heh
sudoubuntu has joined #ruby
<gregf_>
nor did i *runs*
y0da has joined #ruby
<apeiros>
gregf_: lol, really? :D
but3k4 has quit [Ping timeout: 246 seconds]
andywojo has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
godzillaenlacasa has quit [Quit: Peace Out Peeps!]
gregf has joined #ruby
Rickmasta has joined #ruby
kam270 has quit [Ping timeout: 244 seconds]
al2o3-cr1 has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
al2o3-cr is now known as Guest5939
al2o3-cr1 is now known as al2o3-cr
Guest5939 has quit [Read error: Connection reset by peer]
y0da has quit [Ping timeout: 276 seconds]
CloCkWeRX has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
darkxploit has quit [Quit: Leaving]
pawnbox has joined #ruby
htmldrum_ has quit [Ping timeout: 264 seconds]
htmldrum has quit [Ping timeout: 264 seconds]
Vile` has quit [Ping timeout: 268 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
Gooer has quit [Quit: Leaving]
User458764 has joined #ruby
sinanislekdemir has joined #ruby
Gooer has joined #ruby
myntcake has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
madgen_ has joined #ruby
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
malconis has joined #ruby
graffix has joined #ruby
blandflakes has joined #ruby
kam270 has quit [Max SendQ exceeded]
unl0ckd has joined #ruby
kam270 has joined #ruby
ChiefAlexander has joined #ruby
ChiefAlexander has quit [Client Quit]
Xeago has joined #ruby
last_staff has quit [Remote host closed the connection]
kam270 has quit [Max SendQ exceeded]
infra-red has joined #ruby
GodFather has joined #ruby
kam270 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
ChiefAlexander has joined #ruby
andywojo has joined #ruby
LaT0rtue has quit [Remote host closed the connection]
LaT0rtue has joined #ruby
sgambino has joined #ruby
dtzuzu has joined #ruby
fexilal has quit [Remote host closed the connection]
andywojo has quit [Ping timeout: 248 seconds]
jdawgaz has joined #ruby
hotpancakes has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
jdawgaz has quit [Read error: Connection reset by peer]
joonty has quit [Ping timeout: 260 seconds]
jdawgaz has joined #ruby
pdimqh has quit [Remote host closed the connection]
jottr has joined #ruby
graffix has left #ruby [#ruby]
merida has joined #ruby
mhenson has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
decoponio has joined #ruby
valetudo has joined #ruby
<mhenson>
how can I get rbenv-vars working with rake tasks? Currently got rbenv-vars working in multiple environments (dev, test, staging, prod) and it works perfectly fine with Spring for tests. When I attempt to run a rake task, the ENV hash is empty. Any ideas on what I am missing?
bronson has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
joonty has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 244 seconds]
soc42 has joined #ruby
neilhwatson has joined #ruby
allcentury has quit [Quit: WeeChat 1.2]
freerobby has quit [Quit: Leaving.]
hotpancakes has joined #ruby
joconcepts has quit [Quit: good bye]
joconcepts has joined #ruby
mfaeh has quit []
kobain has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
swills has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
que has quit [Quit: Page closed]
platzhirsch has left #ruby [#ruby]
ChiefAlexander has quit [Remote host closed the connection]
blackms has quit [Ping timeout: 264 seconds]
hxegon has joined #ruby
apes has quit [Ping timeout: 276 seconds]
GodFodder has joined #ruby
GodFodder has quit [Max SendQ exceeded]
apes has joined #ruby
GodFodder has joined #ruby
millerti has joined #ruby
Ropeney has joined #ruby
yekta has joined #ruby
ChiefAlexander has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dede has joined #ruby
<yekta>
Hello, if I have begin; file = File.open(filepath); file.close; rescue; raise SomeError; end, will that leave a possibility for file objects that weren’t closed lingering in memory and never being garbage collected?
<apeiros>
yekta: since you presumably do something between open and close - yes.
uglybandersnatch has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
if you can, use open with a block. if you can't, put the close in an ensure.
solars has quit [Quit: WeeChat 0.4.2]
<yekta>
I know how to use an open block in python but not in Ruby, I’ll look that up
<yekta>
The thing is, file.close inside the ensure was raising the error in the first place, if the file path/url doesn’t exist. I was trying to avoid that with a 404
RegulationD has joined #ruby
jschoolcraft has joined #ruby
<apeiros>
yekta: block form has an example in the docs.
<yekta>
yeah I see it now, thanks
uglybandersnatch has quit [Ping timeout: 244 seconds]
blackms has joined #ruby
Balzrael has joined #ruby
Bounga has joined #ruby
baweaver has joined #ruby
hotpancakes has joined #ruby
lxsameer has quit [Quit: Leaving]
anisha has quit [Ping timeout: 276 seconds]
SShrike has joined #ruby
whippythellama has joined #ruby
andywojo has joined #ruby
SShrike has quit [Client Quit]
baweaver has quit [Ping timeout: 248 seconds]
sinanislekdemir has quit [Read error: Connection reset by peer]
bungoman has joined #ruby
davedev24 has joined #ruby
lxsameer has joined #ruby
ixti has joined #ruby
swills has quit [Ping timeout: 268 seconds]
lxsameer has quit [Remote host closed the connection]
andywojo has quit [Ping timeout: 260 seconds]
schemanic has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
lxsameer has quit [Remote host closed the connection]
lkba has joined #ruby
<schemanic>
Is there a way to use an ambiguous identifier when getting a value out of a hash?
<apeiros>
schemanic: I don't follow - care to elaborate?
<Gasher>
hi everyone. I'm writing to a file with r+ permissions, but it just appends what I want to write instead of wiping the file and writing the thing
<Gasher>
how to make it wipe the file and then write what I want to write?
dhollinger has joined #ruby
haylon has joined #ruby
<eam>
Gasher: you can use File#truncate, or open it with mode O_TRUNC
<apeiros>
Gasher: use w+ instead of r+. see IO.new for all modes.
<schemanic>
apeiros - I have a 4 'level' hash. I want to get a specific 4th level descendant without having to iterate over 3rd level decendants
<Gasher>
apeiros, thing is, I want to read from it, wipe it and write to it again
<schemanic>
whats the pastebin of choice here?
<eam>
Gasher: w+ is read/write
<schemanic>
sd
<Gasher>
eam, and it also overwrites the file
<apeiros>
schemanic: hash access is not iterating. you mean nested hash, right?
<eam>
Gasher: correct. the w/r/a stuff is from libc's f* family of functions and is a somewhat clumsy represenatation of what the system does
<schemanic>
apeiros yes
anisha has joined #ruby
<eam>
Gasher: I tend to avoid it and use the actual open flags instead
<havenwood>
schemanic: gist.github.com
<schemanic>
I want to be able to say hash[1][2][any of 3][specific 4]
<apeiros>
schemanic: no can do. you'd have to implement that as a custom class. for that you'll have to iterate over 3rd level indeed.
<schemanic>
damnit
<schemanic>
CSS does stuff like that
<schemanic>
I know its apples/oranges
<havenwood>
schemanic: Does CSS work for what you're doing? Maybe use that?
<schemanic>
havenwood - just stomping my foot. Thanks
<apeiros>
schemanic: then implement a class which can be queried like css.
<schemanic>
no no no. All I'm doing is expressing emotional content. I'm grateful for and accept your advice.
blackmesa has joined #ruby
<Gasher>
it looks like truncate did the thing, thanks
lyoshajapan has joined #ruby
Dysp has joined #ruby
<shevy>
schemanic css is quite nice especially when you dabble into some of the toolkits like ruby-gnome2... I'd wish all the styling would consistently be css rather than weird rcfiles (resource files)... not sure how much gtk3 improved on that but it makes me want to use css
<havenwood>
schemanic: Should the [specific 4] return four values? Or is that something else?
<Dysp>
Hey! I have a simple question. https://gist.github.com/anonymous/1419c67c73795b69f9ac Why am I getting a "false" when checking for '*.pdf', when there clearly is a pdf in the folder? Also, if I change the name without the asterix, it returns true.
<Dysp>
I'm guessing that I don't understand the proper use of asterixes.
<havenwood>
schemanic: If it's multiple values you're returning there's Hash#values_at for that part.
<schemanic>
havenwood - no. [specific 4] is a key that I know, but I don't know which parent it has and I don't want to iterate over the keys at level 3
<apeiros>
Dysp: Array#include? does not do any glob expansion
<havenwood>
schemanic: Ah, gotcha.
<Dysp>
Glob expansion? :P
<apeiros>
*.pdf is a glob expression
<apeiros>
but you have an array of strings, and that tests for ==, and you don't have a string "*.pdf" in your array.
davee_ has quit [Ping timeout: 276 seconds]
<Dysp>
That is true.
aufi has joined #ruby
<apeiros>
you can use .any? with File.fnmatch
davidblko has quit [Remote host closed the connection]
lyoshajapan has quit [Ping timeout: 244 seconds]
<Dysp>
I've tried fnmatch, but didnt do any better with that. Ill have another go at it
<apeiros>
well, you can gist your fnmatch code and we can tell you what you did wrong.
<Dysp>
True story :P
floatingpoint has joined #ruby
<Dysp>
File.fnmatch('*.pdf', './')
<Dysp>
Would that be correct? It's not, though :p
<apeiros>
that will test whether './' (the string, not the directory) matches the "*.pdf" glob, so no
<manveru>
any idea when Gem.available? was removed?
<apeiros>
hence I said "use any? with File.fnmatch"
bkxd has joined #ruby
<Dysp>
I guess my question then is.. How do I search a directory to see if it contains files of a certain extension?
<apeiros>
a) use use Dir.glob right away, or b) you use your current code with Dir.entries, and test the array of strings with .any? and File.fnmatch.
madgen_ has quit [Ping timeout: 244 seconds]
<Dysp>
I guess the "glob" method (is that correct?) is what I was searching for all along
blackjid has quit [Max SendQ exceeded]
<Dysp>
Thank you very much. Ill return if I can't get it to work
<schemanic>
Hey
<shevy>
he may never be back now :(
<schemanic>
I'm working on someone else's code and I'm seeing a variable as the last line of a method before 'end' - this is a return statement without the keyword yes?
<shevy>
schemanic yea
<schemanic>
Thanks. I wasn't sure
blackjid has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
<apeiros>
schemanic: all expressions in ruby evaluate to the last expression within it. methods too.
RegulationD has quit [Remote host closed the connection]
drewo has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
<apeiros>
uuugh, you do know that $vars are globals, yes?
cpup has quit [Ping timeout: 240 seconds]
<apeiros>
also, if you name your files *.rb in gist, we get highlighted code.
marxarelli has joined #ruby
<Dysp>
I thought I did. Okay, wait.
<apeiros>
and last but not least "does not work" is not a problem description (unless you intend to pay me by the hour - then I'll happily spend as much time as it takes to figure out what you could possibly mean by it)
<ja>
Danish variable names, fuck yeah!
<Dysp>
:D
<apeiros>
you can just update the existing gist
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Dysp>
It has been done without a user. Im at work.
cpup has joined #ruby
<Dysp>
Well, that global variabal was the only way that it would pass into the function.
<apeiros>
iirc as long as you keep the session open you can still edit
<rik>
is there a padrino irc channel?
<rik>
or did they move entirely over to gitter?
<Dysp>
I tried with @, but didn't seem to work.
<apeiros>
methods don't care how you pass values to them. so no, that's not a reason to use globals.
zast has joined #ruby
pandaant has quit [Remote host closed the connection]
Alina-malina has joined #ruby
Amnez777 has joined #ruby
CausaMortis has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 240 seconds]
<Dysp>
Hm. But before I defined a var outside a function and it didn't pass into it.
<Dysp>
When I changed it to global or whatevs, then it worked.
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
you'll have to be more specific. but I can already tell you that that's not how scoping works.
<Dysp>
I'm sure it doesn't. I'm learning here.
rigsby has joined #ruby
<apeiros>
sure, and if I get a proper description of what doesn't work, I'll help you learn. until then - nothing I can/want to do
pawnbox has quit [Remote host closed the connection]
joconcepts has quit [Quit: good bye]
th0m_ has quit [Remote host closed the connection]
joconcepts has joined #ruby
but3k4 has quit [Ping timeout: 252 seconds]
shakes has quit [Client Quit]
joconcepts has quit [Client Quit]
bkxd has joined #ruby
Dimik has joined #ruby
joconcepts has joined #ruby
but3k4 has joined #ruby
User458764 has joined #ruby
al2o3-cr has joined #ruby
mrgrieve1 has quit [Ping timeout: 248 seconds]
joconcepts has quit [Client Quit]
xue has joined #ruby
xue has quit [Max SendQ exceeded]
d0nn1e has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 248 seconds]
ferr has quit [Quit: WeeChat 1.4]
RobertBirnie has joined #ruby
xue has joined #ruby
xue has quit [Max SendQ exceeded]
d0nn1e has joined #ruby
blackmesa has joined #ruby
xue has joined #ruby
LaT0rtue_ has joined #ruby
xue has quit [Max SendQ exceeded]
bkxd has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LaT0rtue has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
thoraxe has joined #ruby
<thoraxe>
hmm... trying to use middleman+asciidoc(tor) and having a hell of a time figuring out how to customize the template/generated output for stuff (titles/headings, specifically)
baweaver has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
andywojo has joined #ruby
cpup has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 276 seconds]
cpup has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 268 seconds]
araujo has quit [Ping timeout: 248 seconds]
merida_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
rigsby has quit [Ping timeout: 264 seconds]
ccc999 has joined #ruby
dikaio has joined #ruby
drewo has joined #ruby
ccc999 has quit [Client Quit]
bronson has joined #ruby
<brent_>
had a question regarding opinions to solve a maze problem
rcvalle has joined #ruby
dhollinger has joined #ruby
ta_ is now known as tonniaagesen
tonniaagesen is now known as ta_
RegulationD has joined #ruby
<brent_>
the program gets a file as an input which has a maze, and then you must get through the maze, this is an example of what the input an d output should look like http://hastebin.com/banahicigi.mel
tildes_ has joined #ruby
joconcepts has joined #ruby
pandaant has quit [Remote host closed the connection]
<brent_>
my initial thoughts was to make a multi-dimensional array w/ the lines and then write some logic to find the Starting spot and then make a move to an empty spot in the array
Snowy has quit [Quit: ragequit]
al2o3-cr has quit [Ping timeout: 248 seconds]
dravine_ has joined #ruby
<brent_>
wondering if that makes sense, or if there is a better way i should look into
<r1nuz>
the most simple solution is 'touching a wall' on either the left side or the right side
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 260 seconds]
weeperscreepers has quit [Ping timeout: 252 seconds]
but3k4 has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 240 seconds]
but3k4 has joined #ruby
cschneid has joined #ruby
symm- has joined #ruby
Rickmasta has joined #ruby
hotpancakes has joined #ruby
<brent_>
r1nuz, basically have it it always move along a wall, and change it's direction based on where the corner wall is located
<r1nuz>
yeah, just always imagine having your left wall out touching the wall
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<r1nuz>
so when you hit a wall, move right so that your left hand touches that wall
<r1nuz>
just start walking left until you hit a wall and follow that algo
f4cl3y has quit [Ping timeout: 264 seconds]
dravine has quit [Ping timeout: 244 seconds]
<r1nuz>
and whenever there is no wall to your left, move left to go around corners
<brent_>
does breaking the lines into a multi dimensional array make sense? lines = File.readlines(file); maze = []; lines.each {|l| maze << [l]
but3k4 has quit [Ping timeout: 244 seconds]
dravine has joined #ruby
<r1nuz>
i'm quite new to ruby, but usually a 2d array makes sense for this kind of thing yes
<brent_>
cool. i'll give it a shot w/ that logic
<apeiros>
brent_: I'd create a Maze class which contains a 2d array as you say to represent the maze itself, and an array of coordinates for your path and a couple of methods for navigating
jaruga has quit [Quit: jaruga]
Spami_ has quit [Ping timeout: 276 seconds]
<brent_>
apeiros: like after breaking it into a 2d array, find all the empty spaces and add them to an array?
roshanavand__ has quit [Ping timeout: 244 seconds]
rodfersou is now known as rodfersou|lunch
<brent_>
is that waht you mean by and array of coordinates for your path?
bronson has quit [Remote host closed the connection]
<apeiros>
no
<apeiros>
I mean for you to draw those "X", you must keep track of where you move in your maze solving algorithm
<apeiros>
and that movement I'd store in an array of coordinates
snockerton has joined #ruby
<r1nuz>
brent_ note btw that this only works if all the walls are connected (no wall 'islands')
Cohedrin has joined #ruby
<brent_>
r1nuz
<apeiros>
r1nuz: I think you can detect wall islands
<r1nuz>
yeah you probably can with some extra logic
Cohedrin has quit [Max SendQ exceeded]
<apeiros>
test whether you've visited a coordinate already ;-)
<PaulePanter>
Is there a better way, to deal with (a few) instances where `oi["quantity"]` is nil?
skweek has joined #ruby
<apeiros>
given that you use .sum, I assume you're in rails, PaulePanter?
<PaulePanter>
Oh, indeed.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<apeiros>
ruby 2.3 or older?
hotpancakes has quit [Remote host closed the connection]
<PaulePanter>
apeiros: Older. 2.1.
<apeiros>
you should specify that. standard assumption is newest.
elifoster has quit [Ping timeout: 244 seconds]
<PaulePanter>
Sorry, I forgot that.
<apeiros>
`ois.sum{|oi| oi["quantity"].try(:to_i) || 0}` then
<apeiros>
assuming ois is actually an ARRelation, then I'd suggest to add a proper where clause, though.
snockerton has quit [Quit: Leaving.]
marr has joined #ruby
<PaulePanter>
apeiros: Thanks. In this case, `try()` shouldn’t be needed, as `to_i` is defined on `nil` in Rails, right?
ensyde_ has quit [Quit: Leaving]
<apeiros>
oh, right. that's true. and it'll give zero anyway.
<PaulePanter>
How would you do it in Ruby 2.3? ois.sum{|oi| oi["quantity"]&.(:to_i) || 0} ?
<apeiros>
so… you don't actually need to change your code at all
skweek has quit [Ping timeout: 276 seconds]
<apeiros>
I think I'd just keep it as your original code. in all rubies.
<PaulePanter>
apeiros: Sorry for the misunderstanding. I know the code is correct, but wondered if I could get rid of the `to_i` to each element.
wldcordeiro has quit [Quit: WeeChat 1.3]
renier has joined #ruby
<apeiros>
ah, quantity is already an integer and only there to handle nil? I see.
sgambino has joined #ruby
<apeiros>
well, then the only improvement I see is excluding those records beforehand - e.g. as said via a proper where clause.
<PaulePanter>
ois is a Hash.
<shevy>
aptly named
<PaulePanter>
Sorry, I think that was wrong.
<PaulePanter>
I think I leave it as is.
SCHAAP137 has joined #ruby
rippa has joined #ruby
* PaulePanter
tries to be more understandable next time.
mikecmpbll has joined #ruby
<smathy>
( oi["quantity"] || 0 ).to_i
freerobby has quit [Quit: Leaving.]
ljames has joined #ruby
<apeiros>
smathy: given that nil.to_i is 0, I think that's unnecessary
ramfjord has joined #ruby
<apeiros>
I didn't think of it either on my first response :)
Gasher has joined #ruby
roelof has joined #ruby
djbkd has joined #ruby
<smathy>
Agreed, not sure what the original question was after then.
<roelof>
Can I change this : puts "Take one down and pass it around, no more bottles of beer on the wall." so with all numbers above the zero . no more is changed in that number ?
workmad3_ has joined #ruby
<smathy>
roelof, yes.
marr123 has joined #ruby
vale_tudo has joined #ruby
<smathy>
roelof, but the idea of the Learn to Program exercises is for you to work out how to do them yourself.
marr123 is now known as marr
marr has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Devalo_ has joined #ruby
_stu__ has joined #ruby
moeabdol2 has joined #ruby
<roelof>
smathy: oke, I wonder if I can do a if then in the puts
elaptics is now known as elaptics`away
<roelof>
I will teturn to the lesson
Keltia_ has joined #ruby
axl__ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
andywojo_ has joined #ruby
helpa-bot has joined #ruby
Marsjan has joined #ruby
misterm__ has joined #ruby
haylon_ has joined #ruby
boboc has joined #ruby
<roelof>
smathy: It seems that I have to use a if then clause with multiple puts
err_ok_ has joined #ruby
ItSANgo has joined #ruby
<smathy>
roelof, if you want to put up some code in a gist or something and ask specific questions we'll be happy to help.
jord_ has joined #ruby
_kfpratt has joined #ruby
yeticry has quit [Ping timeout: 276 seconds]
benlieb has quit [Quit: benlieb]
matt_d_ has joined #ruby
hahuang61 has joined #ruby
itaipu has joined #ruby
bratchle1 has joined #ruby
giraffe- has joined #ruby
DEac-_ has joined #ruby
bjmllr_ has joined #ruby
DarkBushido_ has joined #ruby
llua` has joined #ruby
julieeharshaw has joined #ruby
danjack has joined #ruby
yokel_ has joined #ruby
D9 has joined #ruby
unsymbol_ has joined #ruby
yeticry has joined #ruby
twistedpixels_ has joined #ruby
saltsa_ has joined #ruby
tvl has joined #ruby
sorah__ has joined #ruby
avenj_ has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
axl_ has quit [Ping timeout: 268 seconds]
helpa has quit [Ping timeout: 268 seconds]
teotwaki has quit [Ping timeout: 268 seconds]
Seich has quit [Ping timeout: 268 seconds]
tekacs has quit [Ping timeout: 268 seconds]
chrisseaton has quit [Ping timeout: 268 seconds]
twe4ked has quit [Ping timeout: 268 seconds]
matt_d has quit [Ping timeout: 268 seconds]
ramblinpeck has quit [Ping timeout: 268 seconds]
jxf has quit [Ping timeout: 268 seconds]
nyandoge has quit [Ping timeout: 268 seconds]
caw has quit [Ping timeout: 268 seconds]
catbusters has quit [Ping timeout: 268 seconds]
avenj has quit [Ping timeout: 268 seconds]
amitchellbullard has quit [Ping timeout: 268 seconds]
trampi has quit [Ping timeout: 268 seconds]
mrsolo has quit [Ping timeout: 268 seconds]
ctrlrsf has quit [Ping timeout: 268 seconds]
bove has quit [Ping timeout: 268 seconds]
gaf_ has quit [Ping timeout: 268 seconds]
deeprave has quit [Ping timeout: 268 seconds]
AdamMeghji has quit [Ping timeout: 268 seconds]
jimeh has quit [Ping timeout: 268 seconds]
optimaleatscout has quit [Ping timeout: 268 seconds]
cardoni has quit [Ping timeout: 268 seconds]
akitada has quit [Ping timeout: 268 seconds]
rflot has quit [Ping timeout: 268 seconds]
angiebadillo has quit [Ping timeout: 268 seconds]
pmarreck has quit [Ping timeout: 268 seconds]
mroth has quit [Ping timeout: 268 seconds]
_stu_ has quit [Ping timeout: 268 seconds]
davedev24 has quit [Ping timeout: 268 seconds]
bratchley has quit [Ping timeout: 268 seconds]
D9- has quit [Ping timeout: 268 seconds]
ceej has quit [Ping timeout: 268 seconds]
epochwolf has quit [Ping timeout: 268 seconds]
kireevco has quit [Ping timeout: 268 seconds]
Liam` has quit [Ping timeout: 268 seconds]
yokel has quit [Ping timeout: 268 seconds]
Rasi has quit [Ping timeout: 268 seconds]
julie_harshaw has quit [Ping timeout: 268 seconds]
danjack_ has quit [Ping timeout: 268 seconds]
incomprehensibly has quit [Ping timeout: 268 seconds]
bjmllr has quit [Ping timeout: 268 seconds]
coffeejunk has quit [Ping timeout: 268 seconds]
boxrick1 has quit [Ping timeout: 268 seconds]
vcoinminer has quit [Ping timeout: 268 seconds]
sorah_ has quit [Ping timeout: 268 seconds]
dikaio has quit [Ping timeout: 268 seconds]
andywojo has quit [Ping timeout: 268 seconds]
valetudo has quit [Ping timeout: 268 seconds]
Devalo has quit [Ping timeout: 268 seconds]
barajasfab has quit [Ping timeout: 268 seconds]
blackjid has quit [Ping timeout: 268 seconds]
moeabdol1 has quit [Ping timeout: 268 seconds]
Apocalypse has quit [Ping timeout: 268 seconds]
DarkBushido has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
mistermocha has quit [Ping timeout: 268 seconds]
patrick_star_2 has quit [Ping timeout: 268 seconds]
kfpratt has quit [Ping timeout: 268 seconds]
theRealAlexz has quit [Ping timeout: 268 seconds]
saltsa has quit [Ping timeout: 268 seconds]
hanmac has quit [Ping timeout: 268 seconds]
greister has quit [Ping timeout: 268 seconds]
tommd has quit [Ping timeout: 268 seconds]
Caelum has quit [Ping timeout: 268 seconds]
tobiasvl has quit [Ping timeout: 268 seconds]
armyriad has quit [Ping timeout: 268 seconds]
nchambers has quit [Ping timeout: 268 seconds]
cschneid_ has quit [Ping timeout: 268 seconds]
JoL1hAHN has quit [Ping timeout: 268 seconds]
colegatron has quit [Ping timeout: 268 seconds]
marsjaninzmarsa has quit [Ping timeout: 268 seconds]
Didac has quit [Ping timeout: 268 seconds]
varesa has quit [Ping timeout: 268 seconds]
shiver has quit [Ping timeout: 268 seconds]
giraffe has quit [Ping timeout: 268 seconds]
rvchangue has quit [Ping timeout: 268 seconds]
DEac- has quit [Ping timeout: 268 seconds]
daxroc has quit [Ping timeout: 268 seconds]
ELCALOR has quit [Ping timeout: 268 seconds]
manveru has quit [Ping timeout: 268 seconds]
ddfreyne_ has quit [Ping timeout: 268 seconds]
saneax_AFK has quit [Ping timeout: 268 seconds]
DanKnox has quit [Ping timeout: 268 seconds]
Phanes has quit [Ping timeout: 268 seconds]
ddv has quit [Ping timeout: 268 seconds]
llua has quit [Ping timeout: 268 seconds]
twistedpixels has quit [Ping timeout: 268 seconds]
alxndr has quit [Ping timeout: 268 seconds]
Steve_Jo1 has quit [Ping timeout: 268 seconds]
err_ok has quit [Ping timeout: 268 seconds]
Keltia has quit [Ping timeout: 268 seconds]
demophoon has quit [Ping timeout: 268 seconds]
DanKnox has joined #ruby
demophoon has joined #ruby
cschneid_ has joined #ruby
davedev2_ has joined #ruby
jord has quit [Ping timeout: 268 seconds]
epochwolf|2 has joined #ruby
Apocalyp- has joined #ruby
ELCALOR_ has joined #ruby
dikaio_ has joined #ruby
Steve_Jobs has joined #ruby
unsymbol has quit [Ping timeout: 250 seconds]
ItSANg___ has quit [Ping timeout: 250 seconds]
haylon has quit [Ping timeout: 250 seconds]
_stu__ is now known as _stu_
rvchangue_ has joined #ruby
epochwolf|2 has joined #ruby
Apocalyp- has joined #ruby
Marsjan is now known as marsjaninzmarsa
axl__ is now known as axl_
epochwolf|2 has quit [Changing host]
Apocalyp- has quit [Changing host]
tvl is now known as tobiasvl
platzhirsch1 has joined #ruby
ddv has joined #ruby
theRealAlexz has joined #ruby
theRealAlexz has quit [Changing host]
theRealAlexz has joined #ruby
colegatron has joined #ruby
tekacs has joined #ruby
coffeejunk has joined #ruby
rvchangue_ is now known as rvchangue
ceej has joined #ruby
teotwaki has joined #ruby
yokel_ is now known as yokel
epochwolf|2 is now known as epochwolf
giraffe- is now known as giraffe
ELCALOR_ has quit [Changing host]
ELCALOR_ has joined #ruby
greister has joined #ruby
patrick_star_2 has joined #ruby
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
Apocalyp- is now known as Apocalypse
err_ok_ is now known as err_ok
Rasi has joined #ruby
twe4ked has joined #ruby
armyriad has joined #ruby
ddfreyne_ has joined #ruby
gaf_ has joined #ruby
nchambers has joined #ruby
Seich has joined #ruby
JoL1hAHN has joined #ruby
jord_ is now known as jord
shiver has joined #ruby
shiver has joined #ruby
shiver has quit [Changing host]
Liam` has joined #ruby
Caelum_ has joined #ruby
ctrlrsf has joined #ruby
moei has quit [Ping timeout: 246 seconds]
rigsby has joined #ruby
jcp has quit [Ping timeout: 248 seconds]
daemonwrangler has quit [Ping timeout: 248 seconds]
<itaipu>
I'm struggling with something like perl -d , to try to debug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818260, I'm not a ruby expert, as you can see, but anyone can guide me to debug, since simple googling 'ruby debugger' is really shit
elifoster has joined #ruby
but3k4 has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
<eam>
itaipu: try using pry
edwinvdgraaf has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
Didac has joined #ruby
Rickmasta has joined #ruby
<Ox0dea>
roelof: Whoops! "1 bottles of beer" is ungrammatical.
alxndr has joined #ruby
sneakerhax has joined #ruby
<roelof>
Ox0dea: oke, I will try to find a solution for that one
washt has joined #ruby
<eam>
roelof: consider 99.downto(1) { |bottles| }
AlexJakeGreen has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
catbusters has joined #ruby
Caelum_ is now known as Caelum
saneax_AFK has joined #ruby
angiebadillo has joined #ruby
rflot has joined #ruby
madgen_ has quit [Ping timeout: 260 seconds]
deeprave has joined #ruby
mroth has joined #ruby
saneax_AFK is now known as saneax
blackjid has joined #ruby
nyandoge has joined #ruby
chrisseaton has joined #ruby
jxf has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
cardoni has joined #ruby
ramblinpeck has joined #ruby
manveru has joined #ruby
daxroc has joined #ruby
caw has joined #ruby
jimeh has joined #ruby
vcoinminer has joined #ruby
baweaver has quit [Ping timeout: 276 seconds]
itaipu has quit [Ping timeout: 244 seconds]
boxrick1 has joined #ruby
jt__ has joined #ruby
siaw has quit [Quit: siaw]
<smathy>
roelof, but generally, yes, that's a good approach. You've not repeated the parts of the string that are common to all cases.
akitada has joined #ruby
mrsolo has joined #ruby
bove has joined #ruby
daemonwrangler has joined #ruby
incomprehensibly has joined #ruby
<smathy>
roelof, consider moving your decrement up above the conditional, then you don't have to repeat the -1 stuff.
jcp has joined #ruby
gheegh has joined #ruby
pmarreck has joined #ruby
<brent_>
if you don't do eam's downto, i would to bottle -=1 earlier so you don't have to keep doing #{bottles -1}
kireevco has joined #ruby
<brent_>
smathy beat me to it
roshanavand has joined #ruby
thesheff17 has joined #ruby
choke has joined #ruby
sadin has joined #ruby
<smathy>
:) I kicked myself after saying it too, should have just pointed to the repeated `bottle - 1` and let him work it out. So easy to forget how much fun it is to work that stuff out for yourself when you're starting off.
amitchellbullard has joined #ruby
AdamMeghji has joined #ruby
siaw has joined #ruby
<Ox0dea>
roelof: Consider using a helper method to extract out all the "complexity" around the number of bottles.
<Ox0dea>
Your solution contains 14 occurrences of "bottles"; I got mine down to 7. :P
<eam>
bottle_msg_for(bottle_count)
optimaleatscout has joined #ruby
RegulationD has joined #ruby
<Ox0dea>
^ And you could use that to handle 0 and 1 specially all in one place.
<brent_>
Ox0dea did you see my maze problem? http://hastebin.com/banahicigi.mel agree best way is to break the lines into a 2d array and then create logic for it to move along the wall?
<Ox0dea>
brent_: It's the easiest approach, but there's all sorts of room for optimization.
x77686d has quit [Quit: x77686d]
User458764 has joined #ruby
itaipu has joined #ruby
User458764 has quit [Max SendQ exceeded]
<brent_>
is there an algorithm that i should maybe look into learning?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BSaboia has quit [Ping timeout: 252 seconds]
roshanavand has quit [Ping timeout: 246 seconds]
<Ox0dea>
In general, you want some fitness function for choosing which direction seems best to go in, and the ability to backtrack in case that doesn't play out.
skweek has joined #ruby
Caelum has quit [Quit: WeeChat 1.3]
<brent_>
i'll take a look
<roelof>
how can I take this part out of x bottles of bear on the wall. x bottles of bear ?
<itaipu>
eam: how do I set a break point, I'm running the script but it runs til the exception, I would like to set the bp in that line
<roelof>
maybe a helper function /
baweaver has joined #ruby
spider-mario has joined #ruby
roshanavand_ has quit [Quit: This computer has gone to sleep]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<smathy>
roelof, well the "of beer" is common, but the "x bottle(s)" and where x is either a number or the string "no more" definitely screams out one or two helper methods.
platzhirsch1 has left #ruby [#ruby]
jottr has joined #ruby
<roelof>
Oke, I was thinking of a helper function that checks if bottles are 1 or not
merida has quit [Read error: Connection reset by peer]
<Ox0dea>
roelof: I guess your learning material hasn't addressed it, but there's a nifty syntax for simple conditionals: `condition ? if_true : if_false`.
<smathy>
roelof, yep, good direction.
<eam>
itaipu: if you're familiar with perl -d, it's like $DB::single = 1
sadin has quit [Quit: Leaving]
<smathy>
With or without the ternary, you can still have a helper that builds "bottle" or "bottles"
Caelum has joined #ruby
<gheegh>
hey all, having a stupid little problem wtih ruby, Amazon's EMR, and my files stored on S3. The JSON files as pushed by Ruby don't have \n on them.. that means that the mapper merges them all together, and they are not pareable by the ruby mapper (invalid JSON). Without completely changing infrastructure, anyone have any suggestions? It's kinda a ruby question.. :-)
RegulationD has joined #ruby
kentnl has quit [Remote host closed the connection]
<gheegh>
i'm trying to avoid having ot change languages out of Ruby.. :-)
bronson has joined #ruby
kent\n has joined #ruby
kent\n has joined #ruby
<systemsgotyou>
might be a long shot - but does anyone know of a program or maybe a lender site that could lend me $200/month for me to learn/code with the intention of getting a job within 6 months
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti>
i greatly feel that i can freely decide what is module/package and how the files are organized inside that
<apeiros>
I find consistent mapping of modules/classes to files helpful
washt has quit [Ping timeout: 244 seconds]
<apeiros>
especially in large projects
Gooer has quit [Read error: Connection reset by peer]
<smathy>
...so does autoload.
pikajude has quit [Quit: Quit]
rbennacer has quit [Ping timeout: 240 seconds]
blackjid has quit [Max SendQ exceeded]
dmr8 has joined #ruby
skweek has joined #ruby
blackjid has joined #ruby
<shevy>
autoload all the things
<ytti>
apeiros, for corp stuff, i love to do "module company;class X....;end:End" without adding identation
<ytti>
apeiros, to get own namespace
troulouliou_div2 has quit [Ping timeout: 276 seconds]
drewo has quit [Ping timeout: 244 seconds]
<ytti>
apeiros, and being able to do taht in separate gems
gregf has quit [Quit: WeeChat 1.4]
<ytti>
apeiros, in python/golang i can't do that
<shevy>
hah I am guilty of that too
<ytti>
apeiros, so forcing namespace == directory, to me, is too restrictive
freerobby has joined #ruby
<shevy>
do you follow one class per .rb file ytti?
dede has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
Es0teric has joined #ruby
drewo has joined #ruby
<apeiros>
ytti: I don't see how having to put Company::X into a file company/x.rb stops you from writing your code as "module Company;class X....;end;end"
tildes_ has quit [Remote host closed the connection]
<roelof>
one thing I could not find . How can I do puts " #{bottles} and after the the call to count and then the rest of the sentence ?
<shevy>
huh
nertzy2 has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
llua` is now known as llua
llua has quit [Changing host]
llua has joined #ruby
<shevy>
is half of that sentence missing :)
<ytti>
apeiros, no it does not, i'm saying you can't do that reasonably in python or golang
ramfjord has joined #ruby
SCHAAP137 has joined #ruby
<apeiros>
I think I miss your link to directory structure then.
schemanic has joined #ruby
pikajude has joined #ruby
pikajude has joined #ruby
millerti has joined #ruby
skade has joined #ruby
IrishGringo has joined #ruby
B1n4r10 has joined #ruby
lannonbr has quit [Quit: WeeChat 1.0.1]
lannonbr has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
davee_ has joined #ruby
bkxd has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
codecop has joined #ruby
jrafanie has joined #ruby
n008f4g_ has joined #ruby
unl0ckd has quit [Quit: Bye!]
zast has quit [Remote host closed the connection]
araujo has joined #ruby
RobertBirnie has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
troulouliou_div2 has joined #ruby
baweaver has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
sandelius has joined #ruby
hxegon is now known as hxegon_AFK
andikr has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
baweaver has joined #ruby
Gasher has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
roelof has quit [Quit: Page closed]
Macaveli has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
cdg_ has quit [Remote host closed the connection]
itaipu has quit [Ping timeout: 268 seconds]
elifoster has quit [Ping timeout: 244 seconds]
evidex has quit [Remote host closed the connection]
Macaveli has quit [Client Quit]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
rigsby has quit [Ping timeout: 240 seconds]
Aswebb_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
rmulligan has joined #ruby
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x77686d has joined #ruby
jottr has joined #ruby
edwinvdgraaf has joined #ruby
baweaver has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 276 seconds]
grizlo42 has joined #ruby
grizlo42 has left #ruby [#ruby]
swills has joined #ruby
hxegon_AFK has quit [Quit: BRB]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
vdamewood has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
TheCubeLord has joined #ruby
dc2 has quit [Ping timeout: 268 seconds]
mnrmnaugh is now known as ipoochairs
prestorium has joined #ruby
nocontrol has joined #ruby
kotk has joined #ruby
Devalo has joined #ruby
b|ackwolf has joined #ruby
kotk has quit [Client Quit]
kotk has joined #ruby
<shevy>
hanmac do you like C++ or C more, including ruby bindings for them?
gheegh has quit [Ping timeout: 248 seconds]
madgen_ has joined #ruby
hxegon has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
cdg has joined #ruby
gregf has joined #ruby
<hanmac>
shevy C++ code is more nice, but ruby cant bind C++ directly so i do cheat in my bindings
Cohedrin_ has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
stannard has quit [Remote host closed the connection]
binaryplease has joined #ruby
mdw_ has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
andywojo_ has quit [Ping timeout: 252 seconds]
mdw has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
prestorium has quit [Quit: Leaving]
mostlybadfly has joined #ruby
choke has joined #ruby
weeperscreepers has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
jottr has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
hxegon is now known as hxegon_AFK
Devalo has joined #ruby
bronson has joined #ruby
hxegon_AFK is now known as hxegon
sdwrage has joined #ruby
the_drow has joined #ruby
drewo has quit [Ping timeout: 252 seconds]
Suntzu has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 244 seconds]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
hxegon is now known as hxegon_AFK
cisco has joined #ruby
<shevy>
hanmac hmm
cisco has quit [Max SendQ exceeded]
eichenwald has quit [Quit: eichenwald]
symm- has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
jmorgado has joined #ruby
nanoz has quit [Quit: <3]
<floatingpoint>
how can i determine which exception type I should raise? for example, if I run a commandline program and it returns output in stderr, i need to raise an exception. which one though?
KayKayKay has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
<shevy>
depends on how specific you want to be
<shevy>
e. g. you can write your own exception types
<djellemah>
floatingpoint: just raise "your message here" is fine, unless you need to rescue by class
<shevy>
the general one would be "raise Exception", which is the same as just "raise" I think. Missing files should raise LoadError; all of this has implications if you want to rescue a specific exception too
<smathy>
No, don't raise Exception.
<dualbus>
I just noticed that: puts "%{foo}s" % {'foo'=>'bar'}
<floatingpoint>
yeah, i thought "exception" was god enough, but my boss thinks it's Very Bad
<dualbus>
gives key{foo} not found
<dualbus>
because %{foo} is looking for the :foo symbol
<smathy>
floatingpoint, and just in case this is what you're asking, exceptions aren't some system-level thing, ie. they don't cross process boundaries.
<shevy>
what error upcoming can you see floatingpoint
<djellemah>
floatingpoint: all the other standard exception classes already have well-defined meanings. RuntimeError is the base class for your errors.
<floatingpoint>
shevy well, the underslying program is rsync
<floatingpoint>
so hundreds of things can go wrong
<shevy>
damn
<shevy>
so networking errors
<shevy>
these suck
<floatingpoint>
maybe
<floatingpoint>
could be something else though
<floatingpoint>
rsync breaks in strange an magical ways
<smathy>
floatingpoint, right, and so you'll be calling it with `system` or something, and that will have a return value, not an exception.
<shevy>
let me show you the errors I catch in one class there floatingpoint
<Papierkorb>
crayon: the gem database or something
<apeiros>
crayon: part of the url?
<r1nuz>
apeiros what is the solution to my problems?
<apeiros>
r1nuz: 42, obviously
<r1nuz>
thx
<r1nuz>
see, context is overrated
Trynemjoel has joined #ruby
<crayon>
was it updated recently or something
<crayon>
why would that be getting pushed into my jenkins dirs
<apeiros>
the file? that's probably in the headers. and afair it's always updated.
<crayon>
/.gem/specs/rubygems.org%80/specs.4.8
ivanskie has joined #ruby
<crayon>
odd placement, no?
<Dimik>
hey
<Papierkorb>
crayon: is there an issue with that file?
stannard has joined #ruby
<adaedra>
crayon: that's a database rubygems caches when doing requests to registry. It looks totally normal here.
<Radar>
The file is a gzip'd list of all the gems on RubyGems. It's what RubyGems and/or Bundler downloads in order to do dependency resolution.
wilbert has quit [Ping timeout: 248 seconds]
<Dimik>
how can i do this a,b = db.execute "SELECT id,name from TABLE" and f,b.each{|row|puts row}
<Dimik>
f,b = a,b sorry
<Radar>
Dimik: look at the Sequel gem.
babblebre has joined #ruby
skade has joined #ruby
goodroot has joined #ruby
<crayon>
whats the sha256 of the official version?
<Dimik>
i got the gem
araujo_ has joined #ruby
<Ox0dea>
crayon: 994f7b...
<crayon>
btw, thank you Radar, adaedra, and Papierkorb
<crayon>
do you have the full sha256?
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
Spami_ has quit [Read error: Connection reset by peer]
Don_John has quit [Ping timeout: 268 seconds]
gregf has quit [Quit: WeeChat 1.4]
<crayon>
how can i load this file in marshal and decode?
stannard has quit [Ping timeout: 248 seconds]
<adaedra>
What are you trying to do?
<crayon>
investigate something
<Radar>
Marshal.load File.read("specs.4.8") after you've unzipped it
araujo has quit [Ping timeout: 248 seconds]
<Radar>
crayon: Being vague is not going to get you much help here.,
hiyosi has joined #ruby
Trynemjoel has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
Spami_ has joined #ruby
<crayon>
sorry
wldcordeiro has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
ChiefAlexander has quit [Quit: Leaving...]
<adaedra>
It's getting late, good night
sp4rrow has joined #ruby
<Radar>
The SHA256 I have here is 9072ae2bcbb2bfd2100676d7deb214b89704537e8ed8971aac2d11096d649eed.
<Radar>
But this file changes whenever a new gem is added.
<apeiros>
won't that be perpetually changing as the file is updated all the time?
<Radar>
or gem version
<Radar>
apeiros: yes
hotpancakes has quit [Remote host closed the connection]
agit0 has joined #ruby
<Radar>
IMO it's very silly for RubyGems to be serving this file every single time. It should do an incremental update based on the time that you last fetched the file.
<Radar>
But I am not a RubyGem dev so my opinion doesn't matter :D
<riceandbeans>
is rdoc the main/preferred auto documentation generator?
<apeiros>
I wondered about that too. base file which changes in set intervals (e.g. weekly) + delta file. but I don't know how practical that is.
weeperscreepers has joined #ruby
<crayon>
Radar, can i PM
<apeiros>
riceandbeans: rdoc and yard are the most popular
<shevy>
I want something new and 1000x better than both!
spuk has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
<myntcake>
I have a question
<myntcake>
has anyone read the whole Ruby documentation?
<myntcake>
do most programmers read it entirely?
<shevy>
you mean stdlib and core classes?
<apeiros>
somebody probably has
<Radar>
myntcake: Yes that person is Ox0dea.
<shevy>
lol
symm- has quit [Quit: Leaving...]
<Radar>
Ox0dea knows all the trivial classes and methods.
mostlybadfly has quit [Quit: Connection closed for inactivity]
<myntcake>
Radar: is that a bot? haha
s00pcan has joined #ruby
hotpancakes has joined #ruby
<Radar>
He writes Ruby that would make Perl programmers vomit.
<shevy>
myntcake I read documentation for the main classes... some other addons, but other than that, I have never read everything. I never finished the pickaxe appendix either
<myntcake>
shevy: ok, that's a relief haha
<riceandbeans>
my friend learned ruby by memorizing the stdlib and core
<Radar>
myntcake: I found the Koans more helpful thank reading pages and pages of docs
nohitall has left #ruby [#ruby]
<riceandbeans>
he couldn't write much, but if I asked him if there was something related to x, y, or z he could rattle it off and I could use it
<myntcake>
I've started a ruby teaching program called launch school and it keeps making me read ruby documentation
<myntcake>
so i was wondering if i must read the whole thing to be good at it haha
<apeiros>
oh teh horror
symm- has joined #ruby
<riceandbeans>
you have to use it and practice it to be good at it
uglybandersnatch has quit [Ping timeout: 244 seconds]
<myntcake>
riceandbeans: yeah i'm following their curriculum
Azure has joined #ruby
<riceandbeans>
also, you have to not do anything I ever talk about to be good at it
<Radar>
myntcake: I generally only read the methods that I need at the time.
<shevy>
I try to "think" in ruby when I see something unknown
<apeiros>
myntcake: it's a good idea to study the full core docs once. not necessarily reading the full documentation of all methods, but getting an overview which classes exist and what methods.
<myntcake>
well, the thing is like... every Ruby page is huge... and I understand like half of that
<apeiros>
if you don't know what's there, you don't know how to solve problems in a nice way.
<myntcake>
apeiros: yeah I agree
patrick-sartent has quit [Quit: .]
<r1nuz>
ain't no wheel like a reinvented wheel though
<apeiros>
stdlib I'd at least gloss over the classes
<myntcake>
what exactly is stdlib stdout stderr and all that?
<shevy>
myntcake yeah the documentation is not ruby's strongest part but when you "think" in ruby, it becomes very simple and logical (for like... 98% of the time)
<apeiros>
stdlib is the standard library and unrelated to stdin/stdout/stderr
<myntcake>
shevy: haha, yeah i realized most classes and methods are very similar to spoken english ^^
<myntcake>
apeiros: oh ok
<apeiros>
the latter three are the three common IOs every *nix process has at start.
<apeiros>
core = the part which is loaded in ruby at start
<apeiros>
stdlib = the part which is installed along with ruby (usually - some distros suck and split it up), but needs to be explicitly required
symm- has joined #ruby
<myntcake>
ok
<myntcake>
i'm dealing with file creating in Ruby, and it came up
<cjheath>
Radar: Right, thanks. Craziness that Ruby got this so wrong
s00pcan has quit [Ping timeout: 264 seconds]
<Radar>
cjheath: patches welcome
<cjheath>
non est possible. Plus ca change, plus c’est le meme chose.
<cjheath>
I.e. you’d break the Ruby world
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cjheath>
That transforms the keys, but transform_values is the thing I meant
s00pcan has joined #ruby
<cjheath>
oh sorry, was looking at transform_keys
davedev24 has quit [Ping timeout: 268 seconds]
<apeiros>
hm, transform_values and _keys only map keys/values, not the pairs.
<apeiros>
I thought it had one for pairs too. but can't find it.
vircung has quit [Quit: Oppa, oppa]
<cjheath>
Don’t want pairs.
vircung has joined #ruby
PaulCapestany has quit [Quit: .]
<apeiros>
ah I see, your implementation only maps the values either.
mikeiniowa has quit [Remote host closed the connection]
vircung has quit [Client Quit]
vircung has joined #ruby
<baweaver>
cjheath: DreamInCode?
PaulCapestany has joined #ruby
ipoochairs is now known as mnrmnaugh
PaulCapestany has quit [Client Quit]
<baweaver>
name looks familiar
<cjheath>
baweaver: Why did you mention DreamInCode? First I’ve heard of that.
quazimodo has joined #ruby
<baweaver>
Someone else has a similar actual name to yours that goes to that site
<Radar>
cjheath: I meant a patch to add transform_values to Ruby itself so that you don't need the AS dep
ecksit has joined #ruby
d10n-work has joined #ruby
PaulCapestany has joined #ruby
<shevy>
cjheath I think .map on hash should logically modify both keys and values at the same time, but you can always find alternative explanations; perhaps one would also have to add .map_keys and .map_values
Moosashi has quit [Ping timeout: 268 seconds]
<shevy>
method names with "transform" in it scare me, they remind me of scary transformers :\
<cjheath>
My complaint is that the methods that iterate over Arrays should work on Hash, passing just the value to the block; and returning a Hash of the same keys where the Array method returned an Array
<Ox0dea>
Hash#select and #reject are the only ones that behave "appropriately"; it's definitely a wart, by my lights.
<apeiros>
yeah, sort/sort_by/map should IMO return a Hash
jmorgado has quit [Remote host closed the connection]
Moosashi has joined #ruby
<apeiros>
though I'd expect Hash#map to yield pairs
workmad3_ is now known as workmad3
<shevy>
:D
<apeiros>
not just the value
dfinninger has joined #ruby
vircung has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<cjheath>
I’d expect Hash#select to yield just the value. Good that it returns a new Hash though
<cjheath>
the hash contains the value, stored under the key; the same way an Array stores values under an index
<cjheath>
so anything in Array that yields the index should yield the key in Hash
vircung has joined #ruby
sdwrage_ has quit [Quit: Leaving]
<cjheath>
and anything that yields the value in Array should yield the value in Hash
<apeiros>
I actually wouldn't mind having an index yielded in Enumerable#select/#reject etc.
<cjheath>
one way or the other; Ruby has some bits each way
weeperscreepers has quit [Quit: .]
hahuang61 has joined #ruby
<cjheath>
select_with_key
<apeiros>
well, it used to be consistent in that earlier rubies' Hash#select, #reject returned arrays too
<cjheath>
or yet; detect the block arity and yield just the value, or the value and the key
<apeiros>
ew, no.
<apeiros>
please not.
<cjheath>
:)
polyidus has quit [Quit: Later]
<cjheath>
it’s just curried
<shevy>
wow
<shevy>
"<cjheath> or yet; detect the block arity and yield just the value, or the value and the key"
<shevy>
like programming... so many "or" and "and"
<mustmodify_>
So why would I want recvfrom_nonblock + IO.select instead of just udp.recvfrom ?
quazimodo has quit [Read error: Connection reset by peer]
<cjheath>
shite. and people think testing arity is a bad idea… but they accept this sort of crap?
<cjheath>
I mean, Ruby is less… arbitrary than Perl, but not much
<Ox0dea>
cjheath: We were all having a laugh?
dhollinger has quit [Quit: WeeChat 1.4]
<Ox0dea>
Modulo you, I guess.
<cjheath>
I don’t meam what you proposed, but the fact that proc has different modes like this
Moosashi_ has joined #ruby
<apeiros>
cjheath: I guess you don't know the different variants of super yet then? :)
<apeiros>
i.e. super vs super() vs super(&nil)
<Ox0dea>
Well, every method already takes an implicit block; why shouldn't you be able to get hold of it "implicitly" as well?
Aswebb_ has quit [Ping timeout: 260 seconds]
<cjheath>
so many methods do different unrelated things. I mean. I love Ruby, used it sine 2001, but it seems to get stranger the more use it
<Ox0dea>
It's symmetrical once you know what's going on.
RegulationD has quit [Remote host closed the connection]
zenlot has joined #ruby
<cjheath>
Yeah, I think I know about implicit blocks… just not access to them via proc
madgen_ has quit [Ping timeout: 244 seconds]
Moosashi has quit [Ping timeout: 244 seconds]
Moosashi_ is now known as Moosashi
<cjheath>
I’ve wrutten a lot of Ruby in the last decade and a half… but there are many idioms that you get by reading code more than by writing
LHdez has joined #ruby
Devalo has joined #ruby
<Ox0dea>
Also, water is wet.
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenlot6 has quit [Ping timeout: 276 seconds]
<cjheath>
0xdea: Did you see __why’s (ab)use of “class Foo < method_call…” in Camping?
<apeiros>
not always
<cjheath>
just to weird people out
haylon_ has quit [Quit: WeeChat 1.4]
<apeiros>
IMO no abuse. there's neat things you can do with it.
<Ox0dea>
cjheath: I don't know if that's where I first encountered it, but I pretty quickly caught on that you put full-on expressions just about anywhere.
<apeiros>
also a rare thing but pretty nice: you can subclass Module :)
<cjheath>
Yep, and I’ve done them.
<cjheath>
but not in code I want others to read :)
<cjheath>
you can pass a block to a superclass too; I’ve even used that
<cjheath>
“class Foo < method { …}; def’s…; end"
<Ox0dea>
You can subclass "from" any expression as long as it evaluates to a Class.
<hightower2>
adaedra, can't ctrl+c it, it's a non-interactive process without a controlling terminal, so I can't ctrl+c it or kill it in a way that would print the stderr anywhere
<mustmodify_>
Ah ha! I have it working. But it seems like I need to supply the sender's port as well as my own... which ... seems ... not right?
Timba-as_ has quit [Quit: Be back later ...]
Aviio has joined #ruby
Timba-as_ has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
<mustmodify_>
ah, never mind. Extraneous code.
pawnbox has quit [Ping timeout: 264 seconds]
<cjheath>
mustmodify_: You need to listen on a port. You don’t have to bind to a specific IP address, but (unless promiscuous) you need a to send to and receive from a port
y2mq37 has joined #ruby
uglybandersnatch has joined #ruby
decoponio has quit [Quit: Leaving...]
<ytti>
promiscuous means that there is no DMAC filter on interafce
<ytti>
nothing to do wiht L3
chipotle has quit [Quit: cheerio]
<mustmodify_>
cjheath: right
<mustmodify_>
cjheath: there's no 'listen' option, though. Seems like, at least in this class, it's bind or nothing.
<mustmodify_>
which is fine for my use-case.
<cjheath>
listen() in the TCP api doesn’t listen - it sets the queue size for accept
dome22xl has joined #ruby
<mustmodify_>
I'm doing UDP
<cjheath>
I wasn’t referring to that (misnamed) function
<cjheath>
I just mean you need to grab packets sent to a specific port
trinaldi has joined #ruby
<cjheath>
ytti: What is it called when you receive packets sent to any port then? I thought that was part of promiscuous mode (which as you point out, is to receive packets sent to other ppl’s IP addresses)
hightower2 has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
hightower2 has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agit0 has joined #ruby
Xeago has joined #ruby
mistermocha has quit [Remote host closed the connection]
gheegh has quit [Ping timeout: 260 seconds]
choke has joined #ruby
ramfjord has joined #ruby
rikkipitt has joined #ruby
mistermocha has joined #ruby
rikkipitt has quit [Remote host closed the connection]
davee_ has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 248 seconds]
baweaver has joined #ruby
<shevy>
cjheath hah indeed
mistermocha has quit [Remote host closed the connection]
<shevy>
cjheath before I would see it like this http://shevegen.square7.ch/screenshot.png - notice that hightower2's ' appear normal. now, your ' also appear normal \o/
<cjheath>
shevy: Set your reader to UTF-8
mistermocha has joined #ruby
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
Vile` has joined #ruby
djbkd has joined #ruby
jkahn has joined #ruby
<shevy>
even the bot failed!
dtzuzu has quit [Ping timeout: 240 seconds]
rmulligan has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
symm- has quit [Quit: Leaving...]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
stunder has quit [Ping timeout: 264 seconds]
tatsuo has quit [Remote host closed the connection]
kam270 has quit [Ping timeout: 250 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
uglybandersnatch has joined #ruby
RegulationD has joined #ruby
bronson has joined #ruby
spider-mario has quit [Remote host closed the connection]
madgen_ has quit [Ping timeout: 268 seconds]
hotpancakes has joined #ruby
rmulligan has quit [Remote host closed the connection]
rmulligan has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 246 seconds]
choke has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
cjheath has quit [Quit: cjheath]
troynt has joined #ruby
ivanskie has joined #ruby
torandu has quit [Ping timeout: 244 seconds]
ivanskie has quit [Client Quit]
chipotle has joined #ruby
kam270 has joined #ruby
NET||abuse has quit [Remote host closed the connection]
NET||abu- has joined #ruby
torandu has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
stunder has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
dome22xl has quit [Read error: Connection reset by peer]
NET||abu- is now known as NET||abuse
goodroot has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
mistermocha has quit [Remote host closed the connection]
ramfjord has joined #ruby
rubie has quit [Remote host closed the connection]
mistermocha has joined #ruby
hahuang61 has joined #ruby
stunder has quit [Ping timeout: 248 seconds]
mistermocha has quit [Read error: Connection reset by peer]