jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
cdg has quit [Remote host closed the connection]
mistermo_ has quit [Remote host closed the connection]
cdg has joined #ruby
ivanskie has quit [Quit: Going offline, see ya! (www.adiirc.com)]
n008f4g_ has quit [Ping timeout: 252 seconds]
straying has quit [Ping timeout: 250 seconds]
stannard has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
drewo has quit [Ping timeout: 264 seconds]
dn` has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 250 seconds]
dn` has joined #ruby
mistermocha has joined #ruby
mistermo_ has joined #ruby
youch has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Moosashi has joined #ruby
kolpal has joined #ruby
Kero has quit [Ping timeout: 276 seconds]
bhaak has quit [Ping timeout: 260 seconds]
bhaak has joined #ruby
Kero has joined #ruby
RegulationD has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mistermo_ has quit [Ping timeout: 250 seconds]
_stu_ has quit [Quit: _stu_]
RegulationD has quit [Ping timeout: 240 seconds]
rcvalle has quit [Quit: rcvalle]
blackmesa has quit [Ping timeout: 244 seconds]
drewo has joined #ruby
benlieb has quit [Quit: benlieb]
sudoubuntu has joined #ruby
LaT0rtue has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
baweaver has joined #ruby
allcentury has quit [Ping timeout: 268 seconds]
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has joined #ruby
_stu_ has joined #ruby
BlindSight is now known as staticfox
Moosashi has quit [Quit: Moosashi]
<Dimik> i case you guys wondered i fixed that sql "SELECT id FROM table ORDER BY id DESC LIMIT 1"
<Dimik> that kept coming back as array
<Dimik> i did .to_s and then .to_i
<Dimik> that seemed to work i'm happy.
davedev24 has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
<shevy> ruby makes you happy
<shevy> with just a few characters!
Moosashi has joined #ruby
ellistaa has quit [Quit: ellistaa]
kolpal has quit [Quit: INT]
cpup has quit [Ping timeout: 244 seconds]
kolpal has joined #ruby
allcentury has joined #ruby
cpup has joined #ruby
hotpancakes has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
cisco has joined #ruby
CloCkWeRX has joined #ruby
spider-mario has quit [Remote host closed the connection]
snockerton has quit [Ping timeout: 252 seconds]
ramfjord_ has quit [Ping timeout: 244 seconds]
htmldrum_ has quit [Ping timeout: 276 seconds]
Moosashi has quit [Quit: Moosashi]
htmldrum has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
bkxd has joined #ruby
ramfjord has joined #ruby
benlieb has joined #ruby
LaT0rtue has joined #ruby
existensil_ has quit [Quit: WeeChat 0.4.2]
Moosashi has joined #ruby
trinaldi has quit [Quit: bye]
bkxd has quit [Ping timeout: 268 seconds]
daguilaraguilar has quit [Ping timeout: 276 seconds]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
existensil has joined #ruby
drewo has quit [Ping timeout: 276 seconds]
rubie has quit [Remote host closed the connection]
sudoubuntu has joined #ruby
decoponio has quit [Quit: Leaving...]
drewo has joined #ruby
_blizzy_ has joined #ruby
daguilaraguilar has joined #ruby
sneakerhax has quit [Ping timeout: 264 seconds]
SpikeSpiegel is now known as TheGreatGudsby
cpup has quit [Ping timeout: 276 seconds]
cpup has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
growGROW has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 268 seconds]
mistermocha has joined #ruby
growGROW has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
amclain has quit [Quit: Leaving]
shazaum_ has joined #ruby
drewo has quit [Ping timeout: 252 seconds]
growGROW has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sauvin has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hxegon has quit [Quit: BRB]
rubie has joined #ruby
RobertBirnie has joined #ruby
cisco has quit [Quit: Leaving.]
benlieb has joined #ruby
kolpal has quit [Quit: INT]
uglybandersnatch has joined #ruby
systemsgotyou has joined #ruby
LaT0rtue has quit [Ping timeout: 264 seconds]
<systemsgotyou> what are the best ways to put myself in the top 10% of webdevs?
jenrzzz has quit [Ping timeout: 240 seconds]
barajasfab has quit [Quit: Leaving]
<baweaver> systemsgotyou: why 10%?
<Ropeney> systemsgotyou, by not following the 90%
<baweaver> (* ignoring the fact that this is utterly impossible to qualify)
allcentury has quit [Ping timeout: 260 seconds]
aspiers has quit [Ping timeout: 260 seconds]
Azure|dc has quit [Remote host closed the connection]
sp4rrow has joined #ruby
dtzuzu has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
hxegon has joined #ruby
<goodroot> make big contributions to popular open source projects, blog about profound things, ???, profit
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
rubie has quit [Remote host closed the connection]
ellistaa has joined #ruby
<shevy> lol
<shevy> I especially like the ???
freerobby has quit [Quit: Leaving.]
aspiers has joined #ruby
leon_e has joined #ruby
saneax is now known as saneax_AFK
threh has joined #ruby
<brent_> the old underpants gnome business model
freerobby has joined #ruby
elifoster has joined #ruby
rkazak has joined #ruby
nando293921 has joined #ruby
threh has quit [Client Quit]
ellistaa has quit [Quit: ellistaa]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
patrick_star_2 has joined #ruby
dvinciguerra__ has quit [Ping timeout: 260 seconds]
morochena has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yatish27 has joined #ruby
paradisaeidae has joined #ruby
patrick_star has quit [Ping timeout: 248 seconds]
duncannz has joined #ruby
<Radar> systemsgotyou: Work really damn hard to build a cult of personality for 10+ years.
uglybandersnatch has quit [Ping timeout: 252 seconds]
<Radar> systemsgotyou: Over that time, merge your Twitter ego and real ego into the same being.
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
davedev24 has quit []
ellistaa has joined #ruby
bronson has quit [Remote host closed the connection]
sgambino has joined #ruby
benlieb has quit [Quit: benlieb]
jenrzzz has joined #ruby
benlieb has joined #ruby
vdamewood has quit [Quit: Life beckons.]
Moosashi has quit [Quit: Moosashi]
benlieb has quit [Client Quit]
LaT0rtue has joined #ruby
mistermocha has joined #ruby
<baweaver> so be like Radar :P
Moosashi has joined #ruby
<Radar> mhm
<Radar> What could go wrong
RegulationD has joined #ruby
bkxd has joined #ruby
jdawgaz has joined #ruby
youch has quit [Ping timeout: 244 seconds]
sorbo_ has joined #ruby
<baweaver> Manning
Anderson69s has joined #ruby
KensoDev has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 276 seconds]
dikaio has quit [Ping timeout: 244 seconds]
morochena has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
sorbo_ has left #ruby [#ruby]
morochena has joined #ruby
<RickHull> to become in the top 10% of webdevs you only need one simple product: GRO
<RickHull> github repo optimization. from the same people who brought you search engine optimization
mistermocha has joined #ruby
<RickHull> we take starfarms to places linkfarms have never even heard of
saneax_AFK is now known as saneax
shazaum_ has quit [Quit: Leaving]
rbennacer has joined #ruby
ramfjord has joined #ruby
<Radar> baweaver: ha
ellistaa has quit [Quit: ellistaa]
jdawgaz has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
djbkd has quit [Remote host closed the connection]
lkba has joined #ruby
djbkd has joined #ruby
conrfrmn has quit [Quit: WeeChat 0.4.2]
claw has quit [Read error: Connection reset by peer]
lkba_ has quit [Ping timeout: 276 seconds]
th0m_ has quit [Ping timeout: 276 seconds]
Moosashi has quit [Quit: Moosashi]
claw has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
<dopie> exit
dopie has quit [Quit: Lost terminal]
benlieb has joined #ruby
htmldrum_ has quit [Ping timeout: 250 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
ramfjord has quit [Ping timeout: 248 seconds]
Chagel has joined #ruby
chipotle_ has quit [Quit: cheerio]
darkf has quit [Read error: Connection reset by peer]
darkf has joined #ruby
devbug has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sadin has joined #ruby
rubie has joined #ruby
Chagel_ has joined #ruby
ellistaa has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
darkf has quit [Read error: Connection reset by peer]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
smathy is now known as smathy_afk
daguilaraguilar has quit [Ping timeout: 264 seconds]
darkf has joined #ruby
saneax is now known as saneax_AFK
rubie has quit [Ping timeout: 252 seconds]
jdawgaz has joined #ruby
daguilaraguilar has joined #ruby
jdawgaz has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
Dopagod has joined #ruby
pawnbox has joined #ruby
mistermo_ has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
noService has quit [Ping timeout: 246 seconds]
LaT0rtue has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
idletask has quit [Quit: .]
jdawgaz has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
Moosashi has joined #ruby
jdawgaz has quit [Read error: Connection reset by peer]
jkahn has quit [Ping timeout: 268 seconds]
jdawgaz has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
hotpancakes has quit [Remote host closed the connection]
rkazak has quit [Quit: Sleep.....ing....]
jdawgaz has quit [Read error: Connection reset by peer]
nando293921 has quit [Quit: Lost terminal]
fedexo has joined #ruby
Yiota_ has quit [Ping timeout: 260 seconds]
nando293921 has joined #ruby
sarlalian has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
rkazak has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
braincra- has quit [Quit: bye bye]
MrSamuel has joined #ruby
hotpancakes has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
arescorpio has joined #ruby
sgambino has joined #ruby
zast has joined #ruby
jdawgaz has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
MrSamuel has quit [Client Quit]
jkahn has joined #ruby
kam270 has quit [Ping timeout: 276 seconds]
sudoubuntu has joined #ruby
freerobby has quit [Quit: Leaving.]
braincrash has joined #ruby
Chagel has joined #ruby
pawnbox has joined #ruby
spuk has joined #ruby
jdawgaz has quit [Quit: Textual IRC Client: www.textualapp.com]
Chagel_ has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
yqt has quit [Ping timeout: 276 seconds]
ellistaa has quit [Quit: ellistaa]
ellistaa has joined #ruby
RobertBirnie has joined #ruby
Moosashi has quit [Quit: Moosashi]
_stu_ has quit [Quit: _stu_]
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
GnuYawk has joined #ruby
pawnbox has joined #ruby
mistermocha has joined #ruby
quazimodo has joined #ruby
linocisco has joined #ruby
<linocisco> hi all
RobertBirnie has joined #ruby
<linocisco> perl monk, python zealord, ruby what?????
<quazimodo> is a sort of syntax similar to the first example available to us ?
<Radar> linocisco: rockstar, of course
<linocisco> Radar, are you Ryan?
<Radar> Good thanks.
pawnbox has quit [Ping timeout: 244 seconds]
<linocisco> Radar, thanks to see you online
<vith> ah i just found RuboCop, i'll give that a shot instead
<Radar> vith: Rubocop can be just as opinionated :)
<linocisco> how do you all think Ruby Motion? not better than swift2, right?
nanoz has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
last_staff has joined #ruby
<quazimodo> I tried https://gist.github.com/siassaj/618e3230f713fb1fc26d which appears to be ~ok
<vith> Radar: indeed, it has a lot more warnings for me. but at least they all look like things i should actually fix now
jdawgaz has joined #ruby
davedev24 has joined #ruby
<Radar> vith: You can customise it to disable certain things with a .rubocop.yml file at the root of your project.
sarlalian has joined #ruby
<Ox0dea> >> def (special = Object.new).foo; 42; end; special.foo # quazimodo
<ruby[bot]> Ox0dea: # => 42 (https://eval.in/543711)
<Ox0dea> Probably don't do that, though.
bronson has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
<quazimodo> Ox0dea: yeah I'll stick to tap for now
<quazimodo> it would have been nice to do Object.new do def self.whatever... etc
hxegon has quit [Quit: BRB]
<Ox0dea> quazimodo: https://eval.in/543712
howdoi has joined #ruby
<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]
zast has quit [Remote host closed the connection]
Chagel has quit [Ping timeout: 244 seconds]
LaT0rtue has joined #ruby
pawnbox has joined #ruby
bkxd has joined #ruby
jkahn has quit [Ping timeout: 268 seconds]
brent_ has joined #ruby
<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
saneax_AFK is now known as saneax
hotpancakes has quit [Ping timeout: 276 seconds]
<baweaver> [{a: 1, b: 2}, {a: 2, b: 2}].group_by { |h| h[:b] }
<baweaver> >> [{a: 1, b: 2}, {a: 2, b: 2}].group_by { |h| h[:b] }
<ruby[bot]> baweaver: # => {2=>[{:a=>1, :b=>2}, {:a=>2, :b=>2}]} (https://eval.in/543714)
merida has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
<Ox0dea> _strggler: I sink you vant somesink like zis: https://eval.in/543715
<Gooer> /msg nickserv set enforce ON
triangles has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 268 seconds]
rmulligan has joined #ruby
Devalo has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<_strggler> You guys are amazing..
astrobunny has joined #ruby
pawnbox_ has joined #ruby
Es0teric has joined #ruby
fschuindt has joined #ruby
solocshaw has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
LaT0rtue has quit [Ping timeout: 248 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
<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?
brt has quit [Quit: peace]
<_strggler> just use eval? If it is in a sandbox
CloCkWeRX has joined #ruby
<Radar> fschuindt: ask Charlie how he did it: https://eval.in/
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<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]
cpup has quit [Ping timeout: 268 seconds]
cpup has joined #ruby
aganov has joined #ruby
<Ox0dea> mujeres: https://eval.in/543728
<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]
bronson has joined #ruby
astrobunny has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
<Ox0dea> chancy: https://eval.in/543842
<tildes> chancy if for some reason you must call the private method anyway, you can use send, like so: Module.send(:test)
dtzuzu has joined #ruby
<chancy> ah hah, cool
<tildes> (you would need a good reason to do this, I would use it only for debugging and perhaps for tests)
x77686d has quit [Quit: x77686d]
hotpancakes has joined #ruby
darkf has quit [Read error: Connection reset by peer]
mark2 has joined #ruby
darkf has joined #ruby
merida has joined #ruby
bronson has joined #ruby
aufi has joined #ruby
<adaedra> Bonjour
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 246 seconds]
sandstrom has joined #ruby
jaruga has joined #ruby
djellemah has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
djellemah has joined #ruby
rkazak has joined #ruby
madgen_ has quit [Ping timeout: 260 seconds]
drewo has joined #ruby
ellistaa has quit [Quit: ellistaa]
nanoz has joined #ruby
LaT0rtue has quit [Ping timeout: 248 seconds]
ausum_possum has joined #ruby
LoneHermit has joined #ruby
CausaMortis_ is now known as CausaMortis
dtzuzu has quit [Ping timeout: 244 seconds]
uglybandersnatch has joined #ruby
futilegames has joined #ruby
sp4rrow has joined #ruby
bronson has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
codecop has quit [Read error: Connection reset by peer]
pawnbox_ has quit [Remote host closed the connection]
last_staff has joined #ruby
biberu has joined #ruby
binaryplease1 has joined #ruby
edwinvdgraaf has joined #ruby
binaryplease has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
stan has quit [Quit: Leaving]
joonty has joined #ruby
uglybandersnatch has quit [Ping timeout: 252 seconds]
flughafen has quit [Quit: WeeChat 1.3]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ausum_possum has quit [Remote host closed the connection]
pawnbox has joined #ruby
Emmanuel_Chanel has joined #ruby
hotpancakes has joined #ruby
LoneHermit has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
alexherbo2 has joined #ruby
futilegames has quit [Quit: futilegames]
n008f4g_ has joined #ruby
drewo has quit [Ping timeout: 252 seconds]
LaT0rtue has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
hxegon has quit [Quit: BRB]
stan has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
rkoller has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
sadin has quit [Quit: Leaving]
Couch has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Xiti has quit [Read error: Connection reset by peer]
AnoHito has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
AnoHito has joined #ruby
odin__ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
sp4rrow has quit [Read error: Connection reset by peer]
<odin__> Hi, I want to erase the last line from stdout in ruby for a kind of "simon says" game. Any ideas on how to do it?
hays has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
sp4rrow has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
monoprotic has quit [Read error: Connection reset by peer]
KensoDev has quit [Read error: Connection reset by peer]
monoprotic has joined #ruby
monoprotic has quit [Changing host]
monoprotic has joined #ruby
f4cl3y has joined #ruby
psmolen has quit [Ping timeout: 260 seconds]
sarbs has quit [Ping timeout: 276 seconds]
bweston92 has quit [Read error: Connection reset by peer]
zenspider has quit [Ping timeout: 248 seconds]
nuck has quit [Ping timeout: 276 seconds]
merida has quit [Remote host closed the connection]
sauvin has quit [Excess Flood]
hays has joined #ruby
zenspider has joined #ruby
ByronJohnson has quit [Ping timeout: 264 seconds]
merida has joined #ruby
sarbs has joined #ruby
kirillzh has quit [Max SendQ exceeded]
mdw has joined #ruby
psmolen has joined #ruby
dionysus69 has joined #ruby
skislak has joined #ruby
sauvin has joined #ruby
odin__ is now known as malademental
nuck has joined #ruby
mdw_ has joined #ruby
<malademental> Hi, I want to erase the last line from stdout in ruby for a kind of "simon says" game. Any ideas on how to do it?
nuck is now known as Guest42564
neanderslob has quit [Ping timeout: 246 seconds]
htmldrum_ has quit [Ping timeout: 246 seconds]
htmldrum has quit [Ping timeout: 246 seconds]
devbug has quit [Ping timeout: 246 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
ur5us has joined #ruby
mdw has quit [Ping timeout: 264 seconds]
mdw_ has quit [Client Quit]
Guest42564 has quit [Ping timeout: 244 seconds]
mozzarella has quit [Ping timeout: 264 seconds]
crankharder has quit [Ping timeout: 264 seconds]
jt__ has quit [Remote host closed the connection]
crankharder has joined #ruby
mrgrieves has joined #ruby
hays has quit [Ping timeout: 252 seconds]
hays has joined #ruby
NuckingFuts has joined #ruby
mozzarella has joined #ruby
jonee has joined #ruby
binaryplease1 has quit [Quit: WeeChat 1.4]
lyoshajapan has quit [Remote host closed the connection]
binaryplease has joined #ruby
<ljarvis> malademental: print "foo\r"; print "bar"
blackmesa has joined #ruby
M-shine has quit [Ping timeout: 246 seconds]
<ljarvis> probably to flush stdout too
M-mistake has quit [Ping timeout: 246 seconds]
M-Kodo has quit [Ping timeout: 244 seconds]
jonee has quit [Client Quit]
lkba has joined #ruby
binaryplease is now known as binaryplease1
skade has joined #ruby
lyoshajapan has joined #ruby
binaryplease1 is now known as binaryplease2
last_staff has quit [Quit: last_staff]
binaryplease2 is now known as binaryplease3
M-Kodo has joined #ruby
ByronJohnson has joined #ruby
binaryplease3 is now known as binaryplease
M-shine has joined #ruby
lkba has quit [Read error: Connection reset by peer]
Suntzu has joined #ruby
LaT0rtue has quit [Ping timeout: 264 seconds]
neanderslob_ has joined #ruby
last_staff has joined #ruby
hotpancakes has joined #ruby
pandaant has joined #ruby
janmejay has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
<janmejay> when i run thi file without argument it runs successfully but when i give arguments it throwa error
<janmejay> anyone there?
sp4rrow has joined #ruby
<malademental> that works ljarvis , thanks!
malademental has quit [Quit: leaving]
<AlexJakeGreen> ljarvis, >> print "Hello world!"; print "\b"*3
aupadhye has joined #ruby
LaT0rtue has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
<AlexJakeGreen> sorry, malademental
M-mistake has joined #ruby
duncannz has quit [Remote host closed the connection]
ferr has joined #ruby
binaryplease has quit [Quit: WeeChat 1.4]
last_staff has quit [Quit: last_staff]
dgncn has quit [Excess Flood]
binaryplease has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
Gasher has joined #ruby
Gasher has quit [Client Quit]
binaryplease has quit [Client Quit]
dgncn has joined #ruby
janmejay has quit [Quit: Leaving]
Gasher has joined #ruby
binaryplease has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
drewo has joined #ruby
agent_white has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
<AlexJakeGreen> janmejay, it's because 'gets' returns the next line from the current file in ARGF http://ruby-doc.org/core-2.0.0/ARGF.html
araujo has joined #ruby
Gasher has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
auzty has joined #ruby
anisha has joined #ruby
araujo has quit [Max SendQ exceeded]
<AlexJakeGreen> use STDIN.gets.chomp
drewo has quit [Ping timeout: 252 seconds]
boontdustie has quit [Ping timeout: 248 seconds]
ssiris has joined #ruby
boontdustie has joined #ruby
evidex has joined #ruby
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]]?
<apeiros> >> [1,2,3].zip([5,6,7])
<ruby[bot]> apeiros: # => [[1, 5], [2, 6], [3, 7]] (https://eval.in/544103)
User458764 has joined #ruby
<DanielJack> thanks
Chagel has quit [Ping timeout: 246 seconds]
uglybandersnatch has joined #ruby
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.
<que> tobiasvl: and i want to remove "," character that is last here http://paste.ofcode.org/4jyLurVKcetwEFPxYTWjSp
<tobiasvl> >> 'abc'[-1] = ''
<ruby[bot]> tobiasvl: # => "" (https://eval.in/544198)
<tobiasvl> >> a = 'abc'; a[-1] = ''; puts a
<ruby[bot]> tobiasvl: # => ab ...check link for more (https://eval.in/544199)
<tobiasvl> ?
<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]
<oddmunds> >> "abc,\ndef,".sub(/,\z/m,'')
but3k4 has joined #ruby
<apeiros> >> "%04x" % 255 # Gasher
<ruby[bot]> apeiros: # => "00ff" (https://eval.in/544207)
<apeiros> and yes, to_s(16) is another way
<oddmunds> how come my thing didn't output?
<apeiros> //m is only affecting .
<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?
krz has quit [Ping timeout: 264 seconds]
ruby[bot] has joined #ruby
andywojo has joined #ruby
benlovell has joined #ruby
<tobiasvl> Gasher: string = 'a' + string
<tobiasvl> ?
<apeiros> >> str = "foo"; str[0,0] = "x"; str
<ruby[bot]> apeiros: # => "xfoo" (https://eval.in/544215)
<tobiasvl> or that
<Gasher> well, works too tobiasvl
<oddmunds> most idomatic way would be "#{a}#{string}"?
joonty has joined #ruby
<oddmunds> idiomatic
<adaedra> >> a = "foo"; a.insert 0, 'x'; a
<ruby[bot]> adaedra: # => "xfoo" (https://eval.in/544216)
<tobiasvl> TIMTOWTDI
noService has quit [Ping timeout: 246 seconds]
<adaedra> ?
<adaedra> ah
godzillaenlacasa has joined #ruby
<adaedra> well, we have many ways now, time to BENCHMARK
<Gasher> I think insert works best, thanks
mrmortondk has joined #ruby
Gooer has quit [Read error: Connection reset by peer]
th0m_ has joined #ruby
<oddmunds> as long as speed is what you're going for, https://github.com/JuanitoFatas/fast-ruby is pretty interesting
<adaedra> Too bad it's not updated for 2.3
Rickmasta has joined #ruby
<gregf_> *wonders if unshift is the right term.. one would prefer prepend?*
<gregf_> its just string concatenation after all... feels theres better code to think about and write than concatenating strings *weeps and hides*
noService has joined #ruby
<tobiasvl> _why would also weep at this discussion
Vile` has joined #ruby
<oddmunds> hehe
jmorgado has joined #ruby
swills has quit [Ping timeout: 250 seconds]
merida has quit [Remote host closed the connection]
benlovel1 has joined #ruby
hotpancakes has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
AlexRussia has joined #ruby
dtzuzu has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 276 seconds]
roshanavand_ has joined #ruby
<apeiros> gregf_: I think people didn't catch on to your hint :)
<apeiros> >> foo = "foo"; foo.prepend "x"
<ruby[bot]> apeiros: # => "xfoo" (https://eval.in/544230)
<apeiros> only in newer rubies, though. I keep forgetting about it.
hotpancakes has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
benlovell has quit [Client Quit]
benlovell has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
mrgrieve1 has joined #ruby
htmldrum_ has quit [Ping timeout: 248 seconds]
htmldrum has quit [Ping timeout: 248 seconds]
benlovel1 has quit [Ping timeout: 248 seconds]
roshanavand has quit [Read error: Connection reset by peer]
mrgrieves has quit [Ping timeout: 248 seconds]
quazimodo has joined #ruby
moeabdol1 has joined #ruby
roshanavand__ has joined #ruby
Gooer has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
roshanavand_ has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
al2o3-cr has joined #ruby
Guest51402 has joined #ruby
<tobiasvl> oh nice
htmldrum_ has quit [Ping timeout: 268 seconds]
htmldrum has quit [Ping timeout: 268 seconds]
aufi has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
Guest51402 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
al2o3-cr has quit [Ping timeout: 276 seconds]
hotpancakes has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
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?
<schemanic> www.pastebin.com
<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
<apeiros> >> File.fnmatch("*.pdf", "tester.pdf")
<ruby[bot]> apeiros: # => true (https://eval.in/544332)
<apeiros> that's how it is used.
<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> >> def foo; "hello"; end; foo
<ruby[bot]> apeiros: # => "hello" (https://eval.in/544334)
<apeiros> >> (1; 2; 3)
<ruby[bot]> apeiros: # => 3 (https://eval.in/544335)
<manveru> >> def foo; end
<ruby[bot]> manveru: # => :foo (https://eval.in/544336)
rbennacer has joined #ruby
bry4n_ has joined #ruby
dhollinger has quit [Ping timeout: 252 seconds]
jpoole has left #ruby [#ruby]
<djellemah> >> ha = {one: 1, two: 2, tre: 3}; ha.each{|k,v| break v if k == :two}
<ruby[bot]> djellemah: # => 2 (https://eval.in/544337)
skweek has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 244 seconds]
fdfmxs has joined #ruby
<apeiros> that's a rather poor implementation of hash.fetch(key, hash) :-p
cdg has joined #ruby
Spami_ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Spami has quit [Read error: Connection reset by peer]
drewo has quit [Ping timeout: 244 seconds]
graffix has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Gooer has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 264 seconds]
graffix has quit [Client Quit]
Gooer has joined #ruby
freerobby has joined #ruby
rubie has joined #ruby
soc42 has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
benlovell has joined #ruby
BackEndCoder has joined #ruby
haylon has quit [Ping timeout: 250 seconds]
JakFrist has joined #ruby
tlaxkit has joined #ruby
mhenson has quit [Quit: This computer has gone to sleep]
aganov has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
anisha has quit [Quit: This computer has gone to sleep]
cpup has quit [Ping timeout: 276 seconds]
merida has quit [Remote host closed the connection]
axl_ has joined #ruby
cpup has joined #ruby
smathy has joined #ruby
merida has joined #ruby
User458764 has joined #ruby
siaw has quit [Quit: siaw]
dhollinger has joined #ruby
tvon has joined #ruby
idletask has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
andywojo has joined #ruby
merida_ has joined #ruby
jason^ has quit [Quit: WeeChat 1.4]
merida has quit [Read error: Connection reset by peer]
rippa has joined #ruby
mhenson has joined #ruby
andywojo has quit [Ping timeout: 252 seconds]
_stu_ has joined #ruby
<djellemah> apeiros: Sure is. But break has return-like semantics in a block...
graffix has joined #ruby
<djellemah> >> def meth; rv = [1,2].each{|i| break :early; :later }; [rv, :value] end; meth
<ruby[bot]> djellemah: # => [:early, :value] (https://eval.in/544372)
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
andikr has joined #ruby
graffix has left #ruby [#ruby]
<apeiros> djellemah: I know. it's still a poor (re-)implementation of hash.fetch(key, hash)
Xeago has joined #ruby
greynetic has joined #ruby
greynetic has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 244 seconds]
<apeiros> if it didn't have return-like semantics, it'd just be equivalent to `hash`.
greynetic has joined #ruby
Amnez777 has quit [Ping timeout: 246 seconds]
yekta has quit [Quit: yekta]
jottr has joined #ruby
blackmesa has joined #ruby
dhollinger has quit [Ping timeout: 244 seconds]
<Dysp> apeiros: I have another question for you!
al2o3-cr has quit [Ping timeout: 244 seconds]
hotpancakes 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
neohunter has joined #ruby
bweston92 has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
<Dysp> Yes. Sure. Im trying things out :p
<apeiros> ok
marr has quit [Ping timeout: 246 seconds]
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
<Dysp> Ill bookmark it for later, thank you.
drewo has joined #ruby
mhenson has quit [Quit: Leaving]
bronson has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
Aswebb_ has joined #ruby
<Dysp> Okay, apeiros
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dysp> I've put the return in the bottom
freerobby has joined #ruby
greynetic has quit [Quit: Textual IRC Client: www.textualapp.com]
<ghr> String#slice! returns the deleted part of the string
<ghr> so you're ending up with:
<Dysp> Hm.
<ghr> Prawn::Document.generate(".xlsx" + ".pdf")
<Dysp> Exactly.
<Dysp> I've also tried the other way around, with slice!
codecop_ has quit [Remote host closed the connection]
mtkd has joined #ruby
<ghr> You need to do:
<ghr> $excel_name.slice!(".xlsx")
<ghr> Prawn::Document.generate($excel_name + ".pdf") do
drewo has quit [Ping timeout: 252 seconds]
<Dysp> Why can't I do it inside the generate?
jottr has quit [Ping timeout: 244 seconds]
<ghr> because slice! returns the deleted portion of the string
hotpancakes has joined #ruby
<Dysp> Problem is - I need $excel_name to run the calculation I am also doing
chouhoulis has joined #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
mistermo_ has joined #ruby
dgncn has quit [Excess Flood]
<Dysp> I've tried doing like filename = $excel_name.slice...
Ropeney has joined #ruby
<Dysp> But that seems to break the whole thing; I am not quite sure why, though. I guess it slices the $excel_name also.
Marsupermammal has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
<Dysp> I could use basename, however I already have the name loaded in the string.
rubie has quit [Ping timeout: 252 seconds]
<apeiros> >> name = "foo.xlsx"; return_value = name.slice(".xslx"); {name: name, return_value: return_value}
<ruby[bot]> apeiros: # => {:name=>"foo.xlsx", :return_value=>nil} (https://eval.in/544396)
teoric has joined #ruby
<apeiros> >> name = "foo.xlsx"; return_value = name.slice!(".xslx"); {name: name, return_value: return_value}
<ruby[bot]> apeiros: # => {:name=>"foo.xlsx", :return_value=>nil} (https://eval.in/544397)
infra-red has quit []
<apeiros> wait what, did I typo?
<apeiros> oh, I did
sgambino has joined #ruby
<apeiros> >> name = "foo.xlsx"; return_value = name.slice(".xlsx"); {name: name, return_value: return_value}
<ruby[bot]> apeiros: # => {:name=>"foo.xlsx", :return_value=>".xlsx"} (https://eval.in/544398)
nugit has joined #ruby
<apeiros> >> name = "foo.xlsx"; return_value = name.slice!(".xlsx"); {name: name, return_value: return_value}
<ruby[bot]> apeiros: # => {:name=>"foo", :return_value=>".xlsx"} (https://eval.in/544399)
dgncn has joined #ruby
<apeiros> Dysp: compare how the two methods work
barajasfab has joined #ruby
<Dysp> That sure explains why I get what I get.
chouhoulis has quit [Remote host closed the connection]
madgen_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
chouhoulis has joined #ruby
andrewvos has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
mostlybadfly has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
brendan- has joined #ruby
TomyLobo has joined #ruby
Amnez777 has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
drewo has joined #ruby
rkazak has joined #ruby
Devalo has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
valetudo has quit [Ping timeout: 246 seconds]
elifoster has joined #ruby
saneax is now known as saneax_AFK
DoubleMalt has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
evidex has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
maokomioko has joined #ruby
nando293921 has joined #ruby
ensyde_ has joined #ruby
maokomioko has quit [Client Quit]
evidex has joined #ruby
maokomioko has joined #ruby
Xeago has joined #ruby
drewo has quit [Ping timeout: 248 seconds]
teoric has quit [Quit: WeeChat 1.5-dev]
valetudo has joined #ruby
evidex has quit [Client Quit]
andywojo has joined #ruby
evidex has joined #ruby
diegoaguilar has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pelegreno has quit [Read error: Connection reset by peer]
pelegreno has joined #ruby
Amnez777 has joined #ruby
Ropeney has quit [Ping timeout: 248 seconds]
sgambino has joined #ruby
mistermo_ has quit [Remote host closed the connection]
chipotle has joined #ruby
Alina-malina has joined #ruby
bluOxigen_ has joined #ruby
andrewvos has quit [Quit: WeeChat 0.4.2]
cdg_ has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
hotpancakes has joined #ruby
andywojo has quit [Ping timeout: 244 seconds]
hotpancakes has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
bkxd has joined #ruby
x77686d has joined #ruby
mistermo_ has joined #ruby
ivanskie has joined #ruby
scepticulous has quit [Ping timeout: 252 seconds]
xue has joined #ruby
xue has quit [Max SendQ exceeded]
<x77686d> Is it the case that subclass methods can always access superclass fields? (via @some_superclass_var)
evidex has quit [Ping timeout: 250 seconds]
noService has joined #ruby
evidex has joined #ruby
rubie has joined #ruby
<smathy> x77686d, yes.
<x77686d> thx
bkxd has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
Dysp has quit [Quit: Page closed]
GodFodder has quit [Ping timeout: 268 seconds]
panic_ has joined #ruby
maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
siaw has joined #ruby
haylon has joined #ruby
panic_ has quit [Client Quit]
mistermo_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
mistermo_ has joined #ruby
hotpanca_ has joined #ruby
amclain has joined #ruby
pietr0 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
shakes has joined #ruby
chandlerbing has quit [Quit: ZNC - http://znc.in]
Timba-as_ has quit [Quit: Be back later ...]
Couch has quit [Ping timeout: 276 seconds]
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
joconcepts has quit [Client Quit]
joconcepts has joined #ruby
dravine has quit [Ping timeout: 252 seconds]
dravine_ is now known as dravine
al2o3-cr has joined #ruby
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 ;-)
<r1nuz> that would be one simple way yeah
<r1nuz> helps if you already have that path array
bluOxigen_ has quit [Ping timeout: 276 seconds]
jmorgado has quit [Ping timeout: 276 seconds]
Cohedrin has joined #ruby
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
<brent_> would you need to store positions you'e visited, if you've already marked them?
<brent_> couldn't you just check to make sure it's empty or not "x"
shinnya has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
merida has joined #ruby
Spami_ has joined #ruby
<apeiros> that's an option. I prefer to keep things separated.
<r1nuz> you could, i guess that's a matter of memory vs computation resources
mikecmpbll has quit [Ping timeout: 250 seconds]
<r1nuz> the one is more memory intensive (saving all visited fields)
<r1nuz> the other more computation intensive (searching field values in the 2d array)
<r1nuz> or well maybe, depends how you search
LaT0rtue has joined #ruby
LaT0rtue_ has quit [Ping timeout: 240 seconds]
<brent_> Right
<r1nuz> i would probably go with apeiros' suggestion, since you can then also keep the path ordered
<r1nuz> with step 1..n
<r1nuz> (eg, you can easily say, what was step 20)
Gasher has quit [Read error: Connection reset by peer]
tildes_ has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
<PaulePanter> Hi. `ois.sum{|oi| oi["quantity"].to_i}`
<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]
weemsledeux has joined #ruby
varesa has joined #ruby
varesa has quit [Max SendQ exceeded]
barajasfab has joined #ruby
weckl has quit [Quit: Leaving]
thesheff17 has quit [Ping timeout: 248 seconds]
varesa has joined #ruby
bkxd has joined #ruby
<roelof> Is this a good solution : https://gist.github.com/rwobben/c967f46c2a0356b50f4bbf23abe1a1b5 or can I improve more ?
moei has joined #ruby
<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?
roshanavand_ has joined #ruby
<brent_> that would be well used?
User458764 has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<Ox0dea> brent_: Loads of fun and learning in here: https://qiao.github.io/PathFinding.js/visual/
<Ox0dea> The research term is "pathfinding".
tvw has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
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…]
<eam> itaipu: binding.pry
<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…]
<systemsgotyou> (then I pay them back + interest
jottr has quit [Ping timeout: 276 seconds]
rodfersou|lunch is now known as rodfersou
blackmesa has quit [Ping timeout: 252 seconds]
fdfmxs has quit [Remote host closed the connection]
schemanic has quit [Ping timeout: 252 seconds]
uglybandersnatch has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 276 seconds]
boboc has quit []
mrgrieves has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
camilasan has quit [Remote host closed the connection]
tildes_ has joined #ruby
ramfjord has joined #ruby
Suntzu has joined #ruby
camilasan has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 246 seconds]
CloCkWeRX has joined #ruby
baweaver has quit [Remote host closed the connection]
dc2 has joined #ruby
ivanskie has joined #ruby
mark2 has quit [Read error: Connection reset by peer]
<Dimik> pry is awesome
rolha has joined #ruby
<adaedra> indeed.
dc2 has quit [Read error: Connection reset by peer]
Devalo_ has quit [Remote host closed the connection]
_blizzy_ has quit [Quit: Leaving]
dc2 has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
kirillzh has joined #ruby
weeperscreepers has joined #ruby
<ytti> yeah should ship it with ruby standard
sandstrom has quit [Quit: My computer has gone to sleep.]
<ytti> like gem started
<ytti> pry is reason i converted one pythonista to ruby
<ytti> alas i think i've lost that person to golang since
<ytti> started my second golang project (1st one 2 years back) and ugh, it feels idiomatic golang favours long files, long methods
<ytti> lot of files in directory
SCHAAP137 has quit [Remote host closed the connection]
rbennace_ has joined #ruby
<ytti> i dislike how golang and python force filesystem structure to imply package/module structure
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<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]
<TheCubeLord> !help
<ruby[bot]> TheCubeLord: You can find a list of my commands on http://ruby-community.com/ruboto/commands and my factoids on http://ruby-community.com/ruboto/facts
myntcake has quit [Quit: Leaving]
<TheCubeLord> ?coffee TheCubeLord
<ruby[bot]> TheCubeLord: here's a coffee, you seem to need it: ☕
<TheCubeLord> i do actually need it brb
Macaveli has joined #ruby
hxegon is now known as hxegon_AFK
Devalo has quit [Ping timeout: 276 seconds]
hxegon_AFK is now known as hxegon
<TheCubeLord> what language is ruby[bot] programmed in (most likely ruby)
TheGreatGudsby has joined #ruby
mdw has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
Es0teric has joined #ruby
moeabdol2 has quit [Ping timeout: 240 seconds]
Moosashi has joined #ruby
<shevy> PYTHON
<shevy> what kind of question was that TheCubeLord :P
<TheCubeLord> python
<TheCubeLord> 2.7 or 3.4
rbennace_ has quit [Remote host closed the connection]
<tobiasvl> TheCubeLord: ruby obviously
last_staff has joined #ruby
moeabdol2 has joined #ruby
<pizzaops> Anybody familiar with net/ssh?
rbennacer has joined #ruby
shadoi has joined #ruby
<pizzaops> I'm trying to use the request pty error and it just fails (but I have no problem getting a pty via stadnard ssh)
<pizzaops> Exception `Net::SSH::ChannelRequestFailed' at /opt/puppetlabs/puppet/lib/ruby/gems/2.1.0/gems/net-ssh-3.1.0/lib/net/ssh/connection/channel.rb:566 - Net::SSH::ChannelRequestFailed
ramfjord has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
rolha has joined #ruby
<shevy> TheCubeLord I don't like those version splits, languages should always try to make the switch to the latest and greatest if that is possible
<shevy> else you end up like centos
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TheCubeLord> shevy: tell that to #python
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TheCubeLord> ?coffee ruby[bot]
<ruby[bot]> ruby[bot]: here's a coffee, you seem to need it: ☕
MuffinPimp has quit [Quit: ZNC - http://znc.in]
MuffinPimp has joined #ruby
mrgrieves has quit [Ping timeout: 276 seconds]
sgambino has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
_stu_ has quit [Quit: _stu_]
vinleod has joined #ruby
vdamewood has quit [Disconnected by services]
vinleod is now known as vdamewood
blackmesa has quit [Ping timeout: 260 seconds]
siaw has quit [Quit: siaw]
GodFather has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
eichenwald has joined #ruby
MuffinPimp has quit [Quit: ZNC - http://znc.in]
Moosashi has quit [Quit: Moosashi]
MuffinPimp has joined #ruby
jt__ has quit [Remote host closed the connection]
jt__ has joined #ruby
baweaver has joined #ruby
IrishGringo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ssiris has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
pawnbox has quit [Remote host closed the connection]
graffix has joined #ruby
pawnbox has joined #ruby
jt__ has quit [Ping timeout: 244 seconds]
graffix has left #ruby [#ruby]
siaw has quit [Quit: siaw]
skweek has quit [Ping timeout: 248 seconds]
rbennacer has joined #ruby
robbyoconnor has joined #ruby
baweaver has quit [Ping timeout: 268 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
kotk has quit [Quit: Leaving...]
benlieb has quit [Quit: benlieb]
jackjackdripper has joined #ruby
benlieb has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
stannard has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
moeabdol2 has quit [Ping timeout: 248 seconds]
binaryplease has quit [Quit: Goodbye cruel world]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
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, docs here: http://ruby-doc.org/core-2.3.0/Exception.html Shows defaults, `raise "foo"` is good enough for most situations.
TheGreatGudsby has quit [Ping timeout: 260 seconds]
<floatingpoint> yes smathy i've seen this list before
<dualbus> Is there a way around this? %<foo> is the same thing. Both look for symbols. I guess there should be a better way than converting my hash
hxegon_AFK has quit [Quit: BRB]
<floatingpoint> what error class would an error thrown by a commandline program be part of
johnmilton has quit [Remote host closed the connection]
Rickmasta has joined #ruby
<djellemah> floatingpoint: RuntimeError, or a subclass of that
<floatingpoint> why do you say that
<smathy> floatingpoint, depends what the error is.
blackmesa has joined #ruby
KayKayKay has quit [Quit: Mutter: www.mutterirc.com]
itaipu has joined #ruby
KayKayKay has joined #ruby
<shevy> :)
n008f4g_ has joined #ruby
<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.
weeperscreepers has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<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
jenrzzz has joined #ruby
jenrzzz has joined #ruby
<shevy> rescue Errno::EINVAL EOFError SocketError Zlib::BufError Net::ReadTimeout Net::OpenTimeout Errno::ECONNREFUSED Errno::ETIMEDOUT Errno::ENETUNREACH OpenURI::HTTPError
<shevy> all of these showed up!
baweaver has quit [Ping timeout: 244 seconds]
<shevy> over a period of like 6 months or so; all the script does is to check a remote webforum for activity
<shevy> I don't think I'd do that ever again...
baweaver has joined #ruby
<manveru> that looks almost the same as some of our code here that tries to fetch random html pages :P
<manveru> well, just that we have like 10 more
<manveru> temporary networking errors are such a pain
<smathy> None of those are relevant shevy if he's using rsync.
<floatingpoint> yes
<shevy> but does he not connect to something that is remote
<manveru> well, that's true, if you use the rsync executable you won't notice those specifics
<floatingpoint> several of those could be of use
* smathy gives up
<manveru> all you'll get is a non-0 exit code
<floatingpoint> i'm not going that deep in
Rickmasta has quit [Ping timeout: 248 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has joined #ruby
<floatingpoint> my PM doesn't care about this thing being robust, but he does care about raising a generic exception
<manveru> floatingpoint: how do you call rsync?
diegoaguilar has quit [Read error: Connection reset by peer]
<smathy> shevy, his ruby process isn't, no. It's calling `rsync`, exceptions don't bubble up out of sub-processes into ruby.
<manveru> via librsync or via the executable?
<floatingpoint> Open3.capture3(cmd)
<floatingpoint> where cmd = some rsync string
<manveru> then you won't get execeptions
diegoaguilar has joined #ruby
<manveru> *exceptions
<floatingpoint> i raise an exception if stderr has a length > 0
trinaldi has quit [Quit: WeeChat 1.5-dev]
* smathy said this already
<floatingpoint> ez pz
x0f has joined #ruby
<manveru> :)
<manveru> why are we still talking about that :P
<manveru> ok, next
<floatingpoint> no idea
<shevy> problem solved
TheGreatGudsby has joined #ruby
<floatingpoint> for the record, i hate not being able to write robust code because of arbitrary project deadlines
<smathy> Type quicker.
hahuang61 has joined #ruby
<floatingpoint> nope. that'd just mean i'd have to write more shitty code over a shorter time period
<shevy> then he may do more errors
<floatingpoint> that too
<manveru> type smarter
<shevy> type softer!
<manveru> type static.
<floatingpoint> the correct answer is: quit job and go somewhere that thinks longer term
<smathy> The ;) was implied, sorry for not making it clearer.
Rickmasta has joined #ruby
ramfjord has joined #ruby
lyoshajapan has quit [Ping timeout: 244 seconds]
blackgoat has joined #ruby
<floatingpoint> i suppose there's a delicate balance between writing The Most Robust Code Possible and submitting code in a timely manner
<shevy> there are always tradeoffs
<shevy> like those 20 lines exception handling in my code!
<floatingpoint> i just feel dirty when i know i am sending half-baked code out to other devs to use
<floatingpoint> i hate it when people send me shitty code
Don_John has joined #ruby
<manveru> hey, at least you care about stderr and exit status of rsync...
<floatingpoint> well yeah, because it's the right thing to do
<manveru> i mean, there are plenty of projects that'd just use system and ignore it
<manveru> so consider yourself non-half-baked :)
Bounga` has joined #ruby
<floatingpoint> i try to write code that i'd be ok reading / debugging
Suntzu has joined #ruby
TheGreatGudsby has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
lyoshajapan has joined #ruby
<KayKayKay> The reason you think the code is shitty is because you're not good enough to read It
<floatingpoint> shotsfired.gif
<shevy> nah these were not shots
<r1nuz> firesshot.png
<shevy> bad code stays bad
Bounga has quit [Ping timeout: 260 seconds]
<apeiros> !badnick KayKayKay
<baweaver> !troll KayKayKay
<baweaver> dangit
<apeiros> sniped!
KayKayKay was kicked from #ruby by ruby[bot] [nickname is not suitable for this channel, see http://ruby-community.com/pages/user_rules]
<apeiros> thought that guy had been permabanned… well
tubbo has quit [Quit: ZNC - http://znc.in]
<adaedra> In the dump I have, they're partially banned.
TheGreatGudsby has joined #ruby
<apeiros> maybe used !ban instead of !badnick. !badnick bans the nick indefinitely.
bkxd has joined #ruby
<adaedra> In a few moments I'll be able to see what mask is concerned :p
tubbo has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has joined #ruby
zerowaitstate has joined #ruby
lyoshajapan has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
ok has joined #ruby
Moosashi has joined #ruby
hxegon has joined #ruby
ok has quit [Client Quit]
dopie has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
blackgoat has quit [Ping timeout: 268 seconds]
dubek has quit [Changing host]
dubek has joined #ruby
<apeiros> !ban *!*@*119.159.117.176 !T 3d spam
<ruby[bot]> apeiros: Could not process command, usage: !ban nick [channel] [duration] [reason][ "|" secret_reason]
<apeiros> right, that's still on my todo list.
TheGreatGudsby has quit [Ping timeout: 260 seconds]
siaw has joined #ruby
polyidus has joined #ruby
frem has joined #ruby
chipotle has joined #ruby
blackgoat has joined #ruby
CloCkWeRX has joined #ruby
TheGreatGudsby has joined #ruby
darkf has joined #ruby
jmorgado has quit [Ping timeout: 246 seconds]
davedev2_ has quit []
the_drow has quit [Quit: This computer has gone to sleep]
mrgrieves has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arthurix has quit [Quit: Leaving...]
codecop has quit [Remote host closed the connection]
mojo2016 has joined #ruby
mojo2016 is now known as Mojo
sandelius has joined #ruby
jdawgaz has joined #ruby
Mojo is now known as Guest71201
x77686d has quit [Quit: x77686d]
jenrzzz has quit [Ping timeout: 246 seconds]
rolha has quit [Remote host closed the connection]
sdwrage has joined #ruby
rolha has joined #ruby
mistermocha has joined #ruby
Guest71201 has left #ruby [#ruby]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hmm first april is upcoming and people already are in joke mood
qhp_ has joined #ruby
qhp_ has quit [Max SendQ exceeded]
Aswebb_ has joined #ruby
neilhwatson has quit [Quit: leaving]
mrgrieves has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 244 seconds]
mister___ has joined #ruby
jdawgaz has quit [Ping timeout: 248 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has quit [Ping timeout: 250 seconds]
qhp has quit [Ping timeout: 244 seconds]
j5s7 has joined #ruby
mister___ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
patrick-sartent has joined #ruby
j5s7 has quit [Client Quit]
jottr has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
Aswebb_ has quit [Ping timeout: 276 seconds]
Devalo has quit [Remote host closed the connection]
mistermocha has joined #ruby
stunder has joined #ruby
j5s7 has joined #ruby
mistermocha has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j5s7 has quit [Client Quit]
kirillzh has joined #ruby
goodroot has quit [Quit: WeeChat 1.4]
kirillzh has quit [Client Quit]
jottr has quit [Ping timeout: 276 seconds]
Moosashi has quit [Ping timeout: 276 seconds]
sdwrage_ has joined #ruby
x77686d has joined #ruby
sdwrage has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
sudoubuntu has joined #ruby
itaipu has quit [Ping timeout: 244 seconds]
jkahn has joined #ruby
itaipu has joined #ruby
spuk has joined #ruby
drewo has joined #ruby
andywojo has joined #ruby
Moosashi has joined #ruby
rehat has quit [Remote host closed the connection]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
JohnBat26 has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
agit0 has joined #ruby
agit0 has quit [Client Quit]
FooMunki has quit [Quit: FooMunki]
bungoman has quit []
FooMunki has joined #ruby
jottr has joined #ruby
polyidus has quit [Quit: Later]
choke has joined #ruby
dmr8 has quit [Quit: Leaving]
weeperscreepers has quit [Ping timeout: 260 seconds]
rodfersou has quit [Quit: leaving]
hahuang61 has quit [Ping timeout: 276 seconds]
rcvalle has quit [Quit: rcvalle]
polyidus has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
hahuang61 has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
jmorgado has joined #ruby
<dcope> is there an easy way to check if a string contains emoji?
sonOfRa has quit [Quit: Bye!]
sepp2k has quit [Quit: Leaving.]
sonOfRa has joined #ruby
David_H_Smith has quit [Ping timeout: 252 seconds]
David_H_Smith has joined #ruby
Xeago has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
davedev24 has joined #ruby
<tobiasvl> dcope: well, you'll have to check several unicode blocks
<r1nuz> that's why so many unicode parsers fail
<r1nuz> you have to read ahead
<adaedra> there may be a gem capable of giving character categories
<hightower2> Hey, I have a non-interactive ruby process running which got stuck on some syscall. Is there a way I can obtain a ruby backtrace from it?
Xeago has joined #ruby
<adaedra> ^C gives nothing?
drewo has quit [Ping timeout: 260 seconds]
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wilbert has joined #ruby
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has joined #ruby
mistermocha has joined #ruby
russt has quit [Remote host closed the connection]
TheGreatGudsby has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
hahuang61 has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
ldnunes has quit [Quit: Leaving]
mjc_ has quit [Quit: Connection closed for inactivity]
skade has quit [Quit: Computer has gone to sleep.]
russt has joined #ruby
dopie has quit [Quit: Lost terminal]
baweaver has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 244 seconds]
skade has joined #ruby
rbennacer has quit [Remote host closed the connection]
drewo has joined #ruby
skade has quit [Client Quit]
baweaver has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
schemanic has quit [Ping timeout: 246 seconds]
Gasher has joined #ruby
rolha has joined #ruby
Trynemjoel has joined #ruby
skade has joined #ruby
uglybandersnatch has joined #ruby
TheGreatGudsby has joined #ruby
mdw_ has quit [Quit: Sleeping Zzzzz]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Client Quit]
crayon has joined #ruby
<crayon> what is specs.4.8?
Trynemjoel has quit [Ping timeout: 264 seconds]
Synthead has quit [Read error: Connection reset by peer]
<apeiros> I'm continually amazed by what people consider to be an appropriate amount of context
<dcope> tobiasvl: awesome, thank you!
zerowaitstate has quit [Quit: leaving]
<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
<Radar> crayon: go ahead
ramfjord_ has joined #ruby
gheegh has joined #ruby
Devalo has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bronson has joined #ruby
Trynemjoel has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
rigsby has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
weeperscreepers has quit [Ping timeout: 260 seconds]
<riceandbeans> apeiros: which is better?
<apeiros> define "better"
<apeiros> I prefer yard
araujo__ has joined #ruby
<riceandbeans> better being !apeiros.preference
<riceandbeans> just kidding-
Devalo has quit [Ping timeout: 248 seconds]
weeperscreepers has joined #ruby
<riceandbeans> better being more commonly accepted in the community, easier to use, more extensive in coverage
bronson has quit [Ping timeout: 240 seconds]
Timba-as_ has joined #ruby
jottr has quit [Quit: WeeChat 1.4]
<Radar> YARD is more actively developed iirc.
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
s00pcan has quit [Ping timeout: 260 seconds]
davedev24 has quit [Ping timeout: 268 seconds]
myntcake has joined #ruby
araujo_ has quit [Ping timeout: 260 seconds]
<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
<shevy> object.size ... object.some_operation_whose_name_should_make_sense
symm- has quit [Client Quit]
<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
rigsby has quit [Ping timeout: 276 seconds]
DikshitNijjer has joined #ruby
<DikshitNijjer> hello all i am from india
<Radar> !ban DikshitNijjer
DikshitNijjer was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<Radar> Bullshit you are.
baweaver has quit [Remote host closed the connection]
drewo has quit [Ping timeout: 248 seconds]
<cjheath> Annoyed at Hash#map. It should return a Hash. I’m thinking a definition like this (I propose to call it remap():
<cjheath> def remap
<cjheath> inject({}) { |n, (k, v)| n[k] = yield v; n }; end
<cjheath> end
<cjheath> your thoughts?
<apeiros> cjheath: take a look at active support
<apeiros> it already has all the mapping variants for hash iirc
<cjheath> I.e. it returns a new Hash with the same keys, but mapped values
<cjheath> Oooh thanks; what does Activesupport call this one?
Moosashi has quit [Quit: Moosashi]
<apeiros> don't remember
davedev2_ has joined #ruby
ayonkhan has joined #ruby
baweaver has joined #ruby
<Radar> cjheath: transform_values?
drewo has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
Moosashi has joined #ruby
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
nocontrol has quit []
<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"
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
<cjheath> I’m trying to get some stronger FP things in my Ruby; but the inconsistency of the standard library is in the way
znz_jp has quit [Ping timeout: 250 seconds]
ruby-lang964 has joined #ruby
<baweaver> >>by_key=->key{->k,v{ k == key}}; {a: 1}.select(&by_key(:a))
<ruby[bot]> baweaver: # => undefined method `by_key' for main:Object (NoMethodError) ...check link for more (https://eval.in/544577)
x77686d has quit [Quit: x77686d]
polyidus has joined #ruby
<Ox0dea> You wanted `[:a]`.
<baweaver> derp
<baweaver> >>by_key=->key{->k,v{ k == key}}; {a: 1}.select(&by_key[:a])
<ruby[bot]> baweaver: # => {:a=>1} (https://eval.in/544578)
<baweaver> >>by_val=->val{->k,v{v == val}}; {a: 1}.select(&by_val[1])
<ruby[bot]> baweaver: # => {:a=>1} (https://eval.in/544579)
<ruby-lang964> Are there other chat rooms for introduction to programming or ruby?
hahuang61 has quit [Ping timeout: 260 seconds]
<baweaver> you can ask questions here and we can get you to resources if that's what you mean
chipotle has joined #ruby
skweek has joined #ruby
wethu has joined #ruby
TheGreatGudsby has quit [Quit: You're gonna carry that weight...]
_blizzy_ has joined #ruby
mikeiniowa has joined #ruby
Balzrael has quit [Quit: Leaving]
mustmodify_ has joined #ruby
rigsby has joined #ruby
Don_John has joined #ruby
wldcordeiro has quit [Ping timeout: 248 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
_joes_ has joined #ruby
<Ox0dea> This is a really good idea, right? https://eval.in/544582
<mustmodify_> So I'm trying to build a UDP listener and I suspect my code is right but it just isn't working. Anyone have experience with that?
blackmesa has joined #ruby
<apeiros> Ox0dea: please amend for kwargs
<cjheath> mustmodify_: How far are you getting?
<apeiros> and then it'll be the best idea in the world
<Ox0dea> kwargs in the block parameters?
<apeiros> yes
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy> what did Radar say about Ox0dea ... shall I look at the pastie or rather not...
<Radar> It's neat.
<ytti> mustmodify_, here is super simple udp receiver which may or may not help you - https://github.com/NLNOG/ring-sqa/blob/master/lib/ring/sqa/poller/receiver.rb
<Ox0dea> You're neat.
<shevy> lol
_joes_ has quit [Client Quit]
<shevy> I shall look ...
htmldrum has joined #ruby
htmldrum_ has joined #ruby
<mustmodify_> cjheath: I took the example from the docs (which works for me) and split it up into a listener and a sender. And it doesn't work.
<mustmodify_> So apparently when they are in the same code, it works fine. When I split it up, no.
SCHAAP137 has quit [Quit: Leaving]
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
<mustmodify_> To be fair, I don't know what IO.select([udp]) does, so I need to research that.
bry4n_ has quit [Ping timeout: 276 seconds]
tatsuo has joined #ruby
<r1nuz> socket multiplexing bro
<apeiros> it blocks until udp is readable
<cjheath> “man 2 select” will tell you about the operating system paradigm it’s exposing
<mustmodify_> apeiros: oh, good, that's what I want.
x77686d has joined #ruby
<apeiros> and by readable I mean: has actually stuff in the buffer to read (even if that stuff is just EOF)
Aswebb_ has joined #ruby
<mustmodify_> yeah, I took that as your meaning.
ruby-lang964 has quit [Ping timeout: 250 seconds]
<cjheath> Ox0dea: wtf does “proc.parameters” do in this context?
<Ox0dea> ¯\_(ツ)_/¯
<cjheath> I get “ArgumentError: tried to create Proc object without a block"
<mustmodify_> So I run the listener and it sits there looping. Then I run the sender. Nothing.
<Ox0dea> cjheath: Are you on a very old Ruby?
<cjheath> 2.2
<apeiros> cjheath: you didn't have an lvar named proc then, right?
<cjheath> 2.2.2 to be precise
<cjheath> no
<apeiros> which would mean it invoked Kernel#proc
<mustmodify_> Speaking of very old rubies, I was just thinking about how long 1.8.7 was around.
<cjheath> so that’s changed since 2.2.2
<cjheath> ?
<Ox0dea> No.
<apeiros> proc in a method will get you the block passed to the method
<cjheath> hence my wtf
<apeiros> I think that was the case in 1.8.7 too
<Ox0dea> It's a very old feature.
<cjheath> Oh ok. Not seen that - tried it outsiode a method
<apeiros> >> def foo; proc; end; block= foo { |x| x+1 }; block.call(2)
<ruby[bot]> apeiros: # => 3 (https://eval.in/544584)
itaipu has quit [Ping timeout: 244 seconds]
<apeiros> i.e. equivalent to do:
<cjheath> or rather, tried it in a method that had no block passed
<apeiros> >> def foo(&block); block; end; block= foo { |x| x+1 }; block.call(2)
<ruby[bot]> apeiros: # => 3 (https://eval.in/544585)
<cjheath> yes
<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…]
malconis has joined #ruby
malconis has quit [Client Quit]
rolha has quit [Quit: Textual IRC Client: www.textualapp.com]
axl_ has quit [Quit: axl_]
Xeago has quit [Remote host closed the connection]
polyidus has quit [Quit: Later]
quazimodo has joined #ruby
vircung has quit [Remote host closed the connection]
madgen_ has joined #ruby
polyidus has joined #ruby
LHdez has quit [Ping timeout: 248 seconds]
elifoster has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
Es0teric has joined #ruby
Timba-as_ has quit [Quit: Be back later ...]
mistermocha has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
bkxd has joined #ruby
cschneid has quit [Remote host closed the connection]
mistermocha has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 244 seconds]
vdamewood has quit [Quit: Life beckons.]
ytti has quit [*.net *.split]
ecksit has quit []
wldcordeiro has joined #ruby
<cjheath> >>5.times{p ‘x’}
<ruby[bot]> cjheath: # => undefined local variable or method `‘x’' for main:Object (NameError) ...check link for more (https://eval.in/544594)
<cjheath> darn Colloquy adding smart quotes :)
agit0 has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
xlegoman has joined #ruby
ramfjord_ has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
rehat has joined #ruby
djbkd has joined #ruby
<shevy> ack
<shevy> your regular ' seem weird too
biberu has quit []
stunder has quit [Ping timeout: 246 seconds]
skweek has quit [Remote host closed the connection]
polyidus has quit [Quit: Later]
jkahn has quit [Ping timeout: 244 seconds]
mostlybadfly has joined #ruby
polyidus has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
dfockler has joined #ruby
baweaver has quit [Ping timeout: 248 seconds]
stunder has joined #ruby
<cjheath> 3.times{p 'fixed, I hope'}
<cjheath> >> 3.times{p 'fixed, I hope'}
<ruby[bot]> cjheath: # => "fixed, I hope" ...check link for more (https://eval.in/544595)
<cjheath> Hah, noice
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]
mistermocha has joined #ruby
symm- has quit [Ping timeout: 260 seconds]