baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
AzureStigma has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has joined #ruby
jeanlinux has joined #ruby
_djbkd has joined #ruby
johnmccabe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
teclator has quit [Ping timeout: 265 seconds]
jeanlinux has quit [Ping timeout: 244 seconds]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
threh has quit [Ping timeout: 250 seconds]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 255 seconds]
last_staff has quit [Quit: last_staff]
postmodern has quit [Ping timeout: 272 seconds]
johnmilton has joined #ruby
ur5us has quit [Remote host closed the connection]
historypeats has quit [Quit: Connection closed for inactivity]
minimalism has quit [Quit: minimalism]
arescorpio has joined #ruby
weemsledeux has joined #ruby
g1nc has quit [Read error: Connection reset by peer]
wrkrcoop has left #ruby [#ruby]
jphase has joined #ruby
minimalism has joined #ruby
duderonomy has quit [Ping timeout: 272 seconds]
nitric has quit [Quit: sleep]
jphase has quit [Ping timeout: 272 seconds]
RedNifre has joined #ruby
postmodern has joined #ruby
RedNifre_ has quit [Ping timeout: 244 seconds]
Regulati_ has quit [Remote host closed the connection]
gfvcastro has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has joined #ruby
JeanCarloMachado has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
jphase has joined #ruby
Rickmasta has joined #ruby
blackmes1 has quit [Ping timeout: 248 seconds]
_djbkd has quit [Quit: My people need me...]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Sashimi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eljimmy has quit [Quit: This computer has gone to sleep]
jackjackdripper1 has quit [Quit: Leaving.]
mistermocha has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
pavshn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
fullofca_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
a7d7p has quit [Quit: a7d7p]
ngscheur1 has joined #ruby
fullofca_ has joined #ruby
Pumukel has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
akira616` has quit [Ping timeout: 255 seconds]
jonyijoe has joined #ruby
ur5us has joined #ruby
jphase has quit [Ping timeout: 250 seconds]
GodFather has quit [Ping timeout: 244 seconds]
a7d7p has joined #ruby
fullofca_ has quit [Ping timeout: 244 seconds]
jonyijoe has quit [Ping timeout: 255 seconds]
ur5us has quit [Ping timeout: 240 seconds]
rafadc has joined #ruby
duderonomy has joined #ruby
P1ro is now known as P1ro__
P1ro__ is now known as P1ro
maletor has quit [Ping timeout: 265 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
Technodrome has quit [Remote host closed the connection]
Jardayn_two has joined #ruby
Coldblackice has joined #ruby
Joufflu has joined #ruby
Jardayn has quit [Ping timeout: 244 seconds]
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
tekacs has quit [Quit: Disappearing... *poof*]
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
patteh_ has quit [Read error: Connection reset by peer]
patteh has joined #ruby
kies has joined #ruby
biox has left #ruby ["WeeChat 1.4"]
nando293921 has joined #ruby
tekacs has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
fullofcaffeine has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
vdamewood has joined #ruby
tekacs has quit [Quit: Disappearing... *poof*]
rafadc has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 248 seconds]
minimalism has quit [Quit: minimalism]
gfvcastro has joined #ruby
tekacs has joined #ruby
minimalism has joined #ruby
wombawomba has quit [Ping timeout: 248 seconds]
gfvcastro has quit [Client Quit]
gfvcastro has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
a7d7p has quit [Quit: a7d7p]
harfangk has joined #ruby
vdamewood has quit [Ping timeout: 265 seconds]
mistermocha has quit [Ping timeout: 248 seconds]
axsuul has joined #ruby
axsuul has quit [Client Quit]
thetrav has quit [Remote host closed the connection]
newbie1 has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
pawnbox has quit [Remote host closed the connection]
akira616` has joined #ruby
LoneHerm_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 248 seconds]
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 265 seconds]
jphase has quit [Remote host closed the connection]
rprimus has quit [Remote host closed the connection]
jphase has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
<Majost> Is there something like mechanize which also has a javascript parser?
<bougyman> I thought mechanize supported that?
<bougyman> or, and extension does
* bougyman googles
<bougyman> though I tried it with little success before.
<bougyman> oh no not that one.
jphase has quit [Ping timeout: 248 seconds]
<Majost> yeah, this looks fairly out of date too
<bougyman> when I need to scrape or automate hairy websites, I use watir
<bougyman> phantomjs, that's the one I tried before.
<Majost> Doesn't watir need a real browser though?
<bougyman> yes and no.
<bougyman> but the kicker is, I want that, when i'm doing a site so complex that just makes it easy-peasy
<bougyman> and I throw a headless vnc up running a browser instance for automating it.
<bougyman> basically kick off the watir script with a supervisor in a vnc.
pawnbox has quit [Ping timeout: 244 seconds]
<bougyman> and since it's a vnc, you control the exact size of everything.
<bougyman> it's the only way I was able to script a good, say: Mafia Wars bot.
<Majost> Hopefully I wont need that much.
<bougyman> cause I used x-tools to use the mouse on some of the flash shit they threw in the mix to fuck up automated bots.
<bougyman> the xtest lib shit is fucking great.
<bougyman> that's what would drive the mouse and keyboard when necessary
<Majost> yeah, I am just trying to get a oauth token from amazon (not aws) and they recently added some javascript bot detection crap which broke me.
<Majost> heh
<Majost> I haven't really dug into it, but I think its just a javascript set cookie.
<Majost> Thanks!
maletor has joined #ruby
<Majost> I will take a look at phantomjs first. =)
maletor has quit [Ping timeout: 244 seconds]
monoprotic has quit [Ping timeout: 265 seconds]
roflmyeggo has joined #ruby
oz has quit [Ping timeout: 248 seconds]
oz has joined #ruby
blackmes1 has joined #ruby
spectrum has quit [Read error: Connection reset by peer]
P1ro_ has quit [Remote host closed the connection]
roflmyeggo has quit [Ping timeout: 250 seconds]
blackmes1 has quit [Ping timeout: 265 seconds]
gfvcastro has joined #ruby
[k- has quit [Remote host closed the connection]
wombawomba has joined #ruby
gfvcastro has quit [Client Quit]
Jardayn_two has quit [Read error: Connection reset by peer]
perry has left #ruby ["undefined"]
braincrash has quit [Ping timeout: 276 seconds]
wombawomba has quit [Ping timeout: 248 seconds]
akira616` has quit [Ping timeout: 255 seconds]
dviola has quit [Quit: WeeChat 1.5]
braincrash has joined #ruby
nankyokusei has joined #ruby
ruby-lang931 has joined #ruby
<ruby-lang931> hi, could someone please help..? I am trying to run time_ago_in_words in a vanilla ruby script
<ruby-lang931> but no matter what gem I install or what I require can't seem to get the function to be in scope
ramfjord_ has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 255 seconds]
peterc has joined #ruby
NetSage has joined #ruby
rubirc has quit [Ping timeout: 276 seconds]
peterc has quit [Read error: Connection reset by peer]
rubirc has joined #ruby
tdy has joined #ruby
eizua has joined #ruby
mozzarella has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
spectrum has joined #ruby
maletor has joined #ruby
<ruby-lang931> nvm, got it
mozzarella has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
tekacs has quit [Quit: Disappearing... *poof*]
maletor has quit [Ping timeout: 244 seconds]
rubirc has quit [Ping timeout: 265 seconds]
johnmilton has quit [Ping timeout: 244 seconds]
tekacs has joined #ruby
ruby-lang931 has quit [Ping timeout: 240 seconds]
k3rn31 has joined #ruby
braincrash has joined #ruby
wombawomba has joined #ruby
eljimmy has joined #ruby
wombawomba has quit [Ping timeout: 244 seconds]
eljimmy has quit [Client Quit]
ngscheur1 has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
monoprotic has joined #ruby
monoprotic has joined #ruby
monoprotic has quit [Changing host]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
fullofca_ has joined #ruby
blackmes1 has joined #ruby
Pumukel has quit [Ping timeout: 248 seconds]
[k- has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rafadc has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
eljimmy has joined #ruby
hk238 has joined #ruby
sonikspin has joined #ruby
d0nn1e has quit [Ping timeout: 240 seconds]
rafadc has quit [Ping timeout: 264 seconds]
weemsledeux has joined #ruby
P1ro has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 250 seconds]
wombawomba has joined #ruby
d0nn1e has joined #ruby
ngscheur1 has joined #ruby
wombawomba has quit [Ping timeout: 264 seconds]
redpants has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
P1ro has joined #ruby
vqrs has quit [Ping timeout: 276 seconds]
ngscheur1 has quit [Ping timeout: 255 seconds]
vqrs has joined #ruby
gix has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
LoneHerm_ has quit [Ping timeout: 276 seconds]
ec\ has quit [Quit: Lost terminal]
<hays_> i have a gem i'd like to modify/inherit. specifically https://github.com/fernandoluizao/rmodbus/blob/master/lib/rmodbus/server.rb#L24 I want @holding registers to be an array-like object that when accessed triggers some other action.. is there a way to glom onto this without changing the gem?
wombawomba has joined #ruby
symm- has quit [Ping timeout: 255 seconds]
Cohedrin has joined #ruby
Hyuk has joined #ruby
wombawomba has quit [Ping timeout: 255 seconds]
poikon has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
poikon has joined #ruby
nadir_ has joined #ruby
beawesomeinstead has quit [Ping timeout: 265 seconds]
beawesomeinstead has joined #ruby
arescorpio has quit [Quit: Leaving.]
nadir has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
nadir_ is now known as nadir
shakes has quit [Quit: Leaving]
ReK2 has quit [Quit: Konversation terminated!]
pawnbox has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 250 seconds]
maletor has quit [Ping timeout: 240 seconds]
Immune_ is now known as immune
ec\ has joined #ruby
thejamespinto has quit [Remote host closed the connection]
NetSage has quit [Read error: Connection reset by peer]
kanobt61 has quit [Read error: Connection reset by peer]
\13k_ has joined #ruby
kanobt61 has joined #ruby
redpants has quit [Ping timeout: 248 seconds]
roflmyeggo has joined #ruby
pwnd_nsfw` has joined #ruby
gizmore has joined #ruby
devbug has joined #ruby
devbug has quit [Remote host closed the connection]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
\13k_ has quit [Changing host]
\13k_ has joined #ruby
agent_white has quit [Quit: agent_white]
blackmes1 has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
segy has quit [Quit: ZNC - http://znc.in]
blackmes1 has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
Sammichmaker has joined #ruby
pawnbox has joined #ruby
nankyokusei has joined #ruby
vuoto has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
agent_white has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
snakehsu has quit [Quit: ZNC - http://znc.in]
gener1c has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
wombawomba has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
thejamespinto has joined #ruby
jonyijoe has joined #ruby
wombawomba has quit [Ping timeout: 250 seconds]
jonyijoe has quit [Ping timeout: 276 seconds]
segy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubirc has joined #ruby
Vile` has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
segy has quit [Ping timeout: 265 seconds]
Mekkis has joined #ruby
k3rn31 has joined #ruby
maletor has quit [Ping timeout: 272 seconds]
fullofcaffeine has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
lightheaded has joined #ruby
sonikspin has quit [Ping timeout: 244 seconds]
fullofca_ has quit [Ping timeout: 255 seconds]
segy has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
dionysus69 has joined #ruby
roflmyeggo has quit [Ping timeout: 265 seconds]
pwnd_nsfw` has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
passbe has quit [Read error: Connection reset by peer]
passbe has joined #ruby
wombawomba has joined #ruby
blackmes1 has joined #ruby
eizua has quit [Quit: Leaving]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
rafadc has joined #ruby
LoneHermit has joined #ruby
wombawomba has quit [Ping timeout: 272 seconds]
ARCADIVS has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
lightheaded has quit [Ping timeout: 248 seconds]
craigp has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
rafadc has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
jenrzzz has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
craigp has quit [Ping timeout: 255 seconds]
fullofcaffeine has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
Vile` has joined #ruby
amclain has quit [Quit: Leaving]
fullofcaffeine has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
cyphase has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
Joufflu has quit [Quit: Leaving]
wombawomba has joined #ruby
spider-mario has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
agit0 has quit [Quit: zzzZZZ….]
wombawomba has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
MuffinPimp has quit [Quit: ZNC - http://znc.in]
maletor has quit [Ping timeout: 250 seconds]
elastix has joined #ruby
pawnbox has joined #ruby
Wolland has joined #ruby
hotpancakes has joined #ruby
tmtwd has quit [Ping timeout: 248 seconds]
minimalism has quit [Quit: minimalism]
pawnbox has quit [Ping timeout: 244 seconds]
NetSage has joined #ruby
thetrav has joined #ruby
Sashimi has joined #ruby
<thetrav> http://pastebin.com/L2fiPSsU <- each returns a en enumeration of timestamps (Time.utc(blah))
<ruby[bot]> thetrav: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/6db82eed90e85229c70195f26fde8ce1
<ruby[bot]> thetrav: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<thetrav> sorry for pastebin
<thetrav> thanks ruby bot
<thetrav> so my problem though
<thetrav> that function returns me an enumeration of timestamps
NetSage has quit [Remote host closed the connection]
<thetrav> I would have expected it to return me an enumeration doubly chunked
<thetrav> years and months
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gener1c has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
<thetrav> derp
NetSage has joined #ruby
<apeiros> thetrav: I think line 2 should be "return enum_for(:chunked) …" not :each
<thetrav> enum_for(:each) shoudl read enum_for(:chunked)
<thetrav> yes thanks
elastix has quit [Quit: elastix]
<thetrav> I just noticed it
<thetrav> while I'm here
<thetrav> is that syntax still a thing?
<apeiros> and line 5 should have another .each (timestamps.each)
<thetrav> like, if I didn't have that line, would it still return an enum?
<apeiros> no it would not. it'd raise the moment `yield` is invoked
<thetrav> ok, so why the each on timestamps?
<thetrav> isn't it already an enum of timestamps at that point?
<thetrav> that I want to further chunk down to months?
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> timestamps isn't an enum, it's an array
<thetrav> ok, so calling chunk on it will be executed eagerly, wheras if I call .each.chunk it'll happen lazily?
k3rn31 has quit [Quit: Computer has gone to sleep.]
<apeiros> no. none of this is lazily
<thetrav> hang about? why is it an array? I thought enumerable.chunk returned a pair of value + enumeration
gener1c has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
<apeiros> you're confusing *return* and *yield*. those two things are different.
<thetrav> arg, getting my enum long words wrong there
<thetrav> ok, but
<thetrav> I made the first few fixes you suggested
<thetrav> it all looks like it works to me
<thetrav> chunked.first == [1999, #<Enumerator: #<Enumerator::Generator:0x0055cc3f889530>:each>]
<thetrav> so now I'm wondering what I'm not understanding
Vivekananda has quit [Ping timeout: 264 seconds]
<apeiros> if that's what you wanted, then it's fine. it's just not what you said you wanted.
<apeiros> and given that you're using return and yield interchangeably, I guess you just didn't express correctly what you wanted.
agit0 has joined #ruby
<thetrav> as you say I probably don't understand it properly. I'd really like to correct that
<apeiros> ary.each do |yielded_value| … end
wombawomba has joined #ruby
<apeiros> returned_value = ary.each do … end
<thetrav> right
<thetrav> I think I get that. I am probably confused about what happens when it gets nested a few times
<apeiros> and the return value of your method is `each.chunk(&:year)`
<apeiros> which btw. can be shortened to just `chunk(&:year)`
<thetrav> o_O
<thetrav> hmm, so what implies the "each" ?
<apeiros> it's kind of a pleonasm there.
<apeiros> chunk already will use .each internally.
<thetrav> ok I think I'm lost... so we're saying I start with an enum of timestamps named each
<apeiros> then I'd say no wonder you're confused if you use such names
<thetrav> so I don't have an enum of timestamps named each?
<apeiros> "an enum" - do you mean an array?
wombawomba has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 264 seconds]
<apeiros> or rather: on which class is that `def chunked` defined?
qakar has joined #ruby
<thetrav> def chunked is defined on my own class Days, which also defines each
<thetrav> which yields a timestamp for each midnight within a date range
nankyokusei has joined #ruby
<thetrav> sorry I'm trying to post the thing to gist but github website keeps giving me errors
nando293921 has quit [Ping timeout: 240 seconds]
<thetrav> it has been freaking out about my browser cookies for ages
<apeiros> o0
<apeiros> use a different browser?
<apeiros> or are you in china or another firewalled country?
<thetrav> there we go
anisha has joined #ruby
qakar has quit [Ping timeout: 255 seconds]
<thetrav> nah it's definitely a problem with chrome
<thetrav> FFox worked
<thetrav> (a problem with my chrome instance's state I mean)
<apeiros> ok. if you define `each`, then you absolutely should `include Enumerable`
<thetrav> I read an article that told me not to
<thetrav> although that was maybe not the point
hotpancakes has quit [Ping timeout: 250 seconds]
<apeiros> `current_timestamp = @first_timestamp - 30 * 60` looks suspicious
<thetrav> yes, it is
<thetrav> it's not the problem though, please disregard it for the moment
<thetrav> it's a red herring
<thetrav> what I'm trying to understand, is how the enumerable concept works
<thetrav> what I thought
<thetrav> is that the each function, results in an enumerator
<apeiros> Enumerator != Enumerable
nankyokusei has quit [Ping timeout: 244 seconds]
<apeiros> but Enumerator instances are Enumerable
\13k has quit [Disconnected by services]
\13k has joined #ruby
<thetrav> yep, ok
<thetrav> I'm making an enumerator that can enumerate over days right?
<apeiros> what the article says is correct with regards to that it works if you just properly define .each and then call all your Enumerable "needs" on the returned enumerator instead of directly on the instance.
<apeiros> yes
<thetrav> so if I want to transform that enumerator
<thetrav> into something that enumerates over a pair of year -> days
<thetrav> then enumerator.chunk(&:year)
<thetrav> each is what I called my enumerator
<apeiros> now it depends on what precisely you mean by "transform". do you want a new Enumerator as return value?
<thetrav> so that bit is right? or wrong?
<thetrav> yes
<apeiros> or do you just want something which is Enumerable as return value?
<thetrav> ok
<apeiros> or do you want a method which yields values?
<thetrav> so I'll need to more deeply understand the difference between the two
<apeiros> where the last one can be combined with the first or second.
<thetrav> I think that an Enumerator satisfies my needs
<thetrav> is it the smallest thing in that list of options you proposed
<thetrav> ?
<thetrav> I specifically want to end up with something that I can later continue to transform
<apeiros> not necessarily.
<apeiros> common pattern is to start with something which yields.
<apeiros> and then add that `return enum_for(__method__) unless block_given?` line to create an Enumerator in case no block is given.
<thetrav> ok, so that's what I've got for each
<thetrav> and I was hoping to continue that with chunked
ropeney has quit [Quit: Leaving]
<thetrav> (horrible names by the way, my apologies, naming is hard)
<apeiros> it is indeed.
<thetrav> but back onto the each.chunk(&:years)
pragmaticus has joined #ruby
<apeiros> (naming is indeed hard, I mean, not the names are indeed horrible)
<apeiros> if you've not included Enumerable, then that's correct.
<thetrav> that gets me an enumeration that can enumerate over the year, and an enumeration of days within that year
<apeiros> partially correct.
<thetrav> trick there, is that I want that inner enumeration to also be chunked
<thetrav> ooh partially
<thetrav> what am I missing
<apeiros> it gets you an enumerator which lets you iterate over year + array of dates tuples
<apeiros> the array of dates is not an enumerator
<apeiros> wait
<thetrav> really?
<apeiros> I got that wrong. .chunk(&:years) does not return an Enumerator at all.
<apeiros> meh
<apeiros> let me get a coffee :D
<apeiros> ok, first statement was correct. I misremembered.
<apeiros> "it gets you an enumerator which lets you iterate over year + array of dates tuples"
<apeiros> this one was correct. and I guess I should get me some breakfast to avoid confusing myself :D
<apeiros> >> [Date.today].chunk(&:year).class
<ruby[bot]> apeiros: # => uninitialized constant Date ...check link for more (https://eval.in/643826)
<apeiros> bleh
<apeiros> >> [Time.today].chunk(&:year).class
<ruby[bot]> apeiros: # => undefined method `today' for Time:Class (NoMethodError) ...check link for more (https://eval.in/643827)
<apeiros> >> [Time.now].chunk(&:year).class
<ruby[bot]> apeiros: # => Enumerator (https://eval.in/643828)
<thetrav> yeah so the type signature confused me
<apeiros> >> [[Time.now].chunk(&:year).first.class, [Time.now].chunk(&:year).first[0].class, [Time.now].chunk(&:year).first[1].class]
<ruby[bot]> apeiros: # => [Array, Fixnum, Array] (https://eval.in/643829)
<thetrav> I executed [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5].chunk { |n| n.even? }.first in the irb just now
<thetrav> you are right
<thetrav> I get an enum of pairs of elem and array
<thetrav> array happens to be enumerable
<thetrav> the problem for me though
<thetrav> is that I've got a large list here
<thetrav> if I chunk it by year, then chunk it by month
<thetrav> that's going to iterate more than it should need to
<apeiros> don't use chunk then.
<thetrav> seems like it
<apeiros> it's reasonably easy to implement what you want without chunk. it might even be easier than with.
<thetrav> i was hoping I could make use of ruby magic
cyphase has quit [Ping timeout: 248 seconds]
<thetrav> a friend told me chunk was the answer
<apeiros> it's probably what I'd have said too. but sometimes looking closer at a problem reveals that the initial answer isn't the best.
tristanp has quit [Remote host closed the connection]
rafadc has joined #ruby
<apeiros> oh
<apeiros> I reeeeally should get coffee.
<apeiros> chunk works. but don't nest it. think about how you chunk.
<apeiros> you said it yourself, you want to chunk by year *and* month. you can do that in one go.
<thetrav> true
dn` has quit [Quit: dn`]
<pragmaticus> whats the best gui for ruby, with cross operationsystem support?
<thetrav> html5?
<pragmaticus> not an option.
<apeiros> pragmaticus: not using either myself, but I'd look at qt, tk and shoes
<pragmaticus> apeiro, never heard about shoes, gonna take a look
grh has joined #ruby
maletor has joined #ruby
blackgoat has joined #ruby
ta_ has quit [Remote host closed the connection]
<pragmaticus> does tk support 'native' themes?
cyphase has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
kitikonti has joined #ruby
rafadc has quit [Ping timeout: 265 seconds]
vuoto has joined #ruby
NetSage has quit [Remote host closed the connection]
<apeiros> no idea
firstdayonthejob has joined #ruby
maletor has quit [Ping timeout: 244 seconds]
blackgoat has quit [Ping timeout: 244 seconds]
<pragmaticus> well, i love ruby for simple task, but client wants a gui.
vuoto_ has joined #ruby
vuoto has quit [Read error: Connection reset by peer]
<pragmaticus> maybe, ruby is the wrong choice?
wombawomba has joined #ruby
NetSage has joined #ruby
<apeiros> possible. alternatively: maybe cross-platform is the wrong requirement?
<pragmaticus> i would agree, but i cant tell them :)
<apeiros> heh
wombawomba has quit [Ping timeout: 248 seconds]
<pragmaticus> apeiros, i appreciate your input, have to leave now, bye.
<apeiros> oh, one variant which might work well: jruby + one of the java UI libs
<pragmaticus> java? evil, brrrrrrr. :)
<apeiros> at least I'd assume that java has some of the most mature libs wrt cross platform
<pragmaticus> i get sick, just thinking about java, sry.
<apeiros> though my general experience with cross platform UIs is that they're horrible on all platforms.
thejamespinto has quit []
sameerynho has joined #ruby
pragmaticus has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 244 seconds]
Jackneill has joined #ruby
Pumukel has joined #ruby
dionysus69 has joined #ruby
claudiuinberlin has joined #ruby
sarkis has joined #ruby
conta has joined #ruby
Pumukel has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
cyphase has quit [Ping timeout: 250 seconds]
<bhaak> I had a quite good experience with wxwidgets when it was still called wxwindows (so waaay back).
sarkis has quit [Ping timeout: 255 seconds]
blackmes1 has joined #ruby
dreamyspell has joined #ruby
charliesome has joined #ruby
agit0 has quit [Ping timeout: 272 seconds]
dreamyspell has quit [Client Quit]
cyphase has joined #ruby
dreamyspell has joined #ruby
blackmes1 has quit [Ping timeout: 255 seconds]
jtzero has quit [Ping timeout: 240 seconds]
chkm8 has joined #ruby
weemsledeux has joined #ruby
[k- has quit [Ping timeout: 248 seconds]
[k- has joined #ruby
hotpancakes has joined #ruby
ropeney has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
wombawomba has joined #ruby
Sashimi_ has joined #ruby
Sashimi has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cyphase has quit [Ping timeout: 272 seconds]
wombawomba has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
cyphase has joined #ruby
marr has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
blackwind_123 has joined #ruby
dreamyspell has quit [Quit: Leaving]
maletor has joined #ruby
ta_ has joined #ruby
bsrd has joined #ruby
vuoto_ has quit [Quit: Lost terminal]
bsrd has quit [Client Quit]
vuoto has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 272 seconds]
blackmes1 has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
ta__ has joined #ruby
insanedreamer has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
olistik has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Ping timeout: 244 seconds]
Darmani has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 255 seconds]
ctp has joined #ruby
rafadc has joined #ruby
gingray has joined #ruby
jonadab has quit [Ping timeout: 250 seconds]
jonadab has joined #ruby
Guest93791 has quit [Ping timeout: 250 seconds]
Ariadeno has joined #ruby
Ariadeno is now known as Guest68096
wombawomba has joined #ruby
pavshn has joined #ruby
insanedreamer has quit [Ping timeout: 248 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
tomphp has joined #ruby
nankyokusei has joined #ruby
wombawomba has quit [Ping timeout: 265 seconds]
lightheaded has joined #ruby
olistik has quit [Remote host closed the connection]
lightheaded has quit [Read error: Connection reset by peer]
cibs has quit [Ping timeout: 268 seconds]
craigp has joined #ruby
jazzonmym11nd has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Client Quit]
cibs has joined #ruby
anisha has joined #ruby
lightheaded has joined #ruby
lightheaded has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
ta__ has quit [Ping timeout: 255 seconds]
Pumukel has joined #ruby
mistermocha has joined #ruby
sonikspin has joined #ruby
nankyokusei has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
Cohedrin has quit [Client Quit]
bkxd has joined #ruby
mikecmpbll has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
pfl_ has quit [Quit: leaving]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
pandaant has joined #ruby
pragmaticus has joined #ruby
Robtop__ has joined #ruby
gingray has quit [Ping timeout: 265 seconds]
jonyijoe has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sonikspin has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
bsrd has joined #ruby
sonikspin has joined #ruby
jonyijoe has quit [Ping timeout: 248 seconds]
qakar has joined #ruby
wombawomba has joined #ruby
bkxd has quit [Quit: leaving]
pandaant has quit [Ping timeout: 272 seconds]
pandaant has joined #ruby
elenatanasoiu has joined #ruby
wombawomba has quit [Ping timeout: 265 seconds]
blackmes1 has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
tomphp has joined #ruby
elastix has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
maletor has quit [Ping timeout: 276 seconds]
Pupeno has quit [Remote host closed the connection]
pawnbox has joined #ruby
hotpancakes has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
zeroDi has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
eizua has joined #ruby
Pupeno has quit [Remote host closed the connection]
sonikspin has quit [Read error: No route to host]
olistik has joined #ruby
pwnd_nsfw has joined #ruby
pavshn has quit [Quit: Textual IRC Client: www.textualapp.com]
Eiam has quit [Ping timeout: 244 seconds]
pavshn has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
thetrav has quit [Remote host closed the connection]
wombawomba has joined #ruby
elastix has quit [Quit: elastix]
olistik has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
elenatanasoiu has quit [Ping timeout: 272 seconds]
wombawomba has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
code_ has quit [Quit: BNC - Hosted by EpicKitty]
pwnd_nsfw has joined #ruby
\13k_ has quit [Ping timeout: 265 seconds]
mistermocha has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Ping timeout: 255 seconds]
rafadc has quit [Ping timeout: 250 seconds]
Vingador has joined #ruby
Vingador has quit [Remote host closed the connection]
stamina has joined #ruby
code_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
Ishido has joined #ruby
maletor has joined #ruby
grh has quit [Ping timeout: 264 seconds]
wombawomba has joined #ruby
maletor has quit [Ping timeout: 264 seconds]
wombawomba has quit [Ping timeout: 255 seconds]
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Coldblackice has quit [Ping timeout: 244 seconds]
claudiuinberlin has quit [Remote host closed the connection]
bsrd has quit [Quit: WeeChat 1.5]
pavshn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
JeanCarloMachado has joined #ruby
ta_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pavshn has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0mrad3 has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
jazzonmym11nd has joined #ruby
hotpancakes has joined #ruby
gnufied has joined #ruby
nankyokusei has joined #ruby
wombawomba has joined #ruby
qakar has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
wombawomba has quit [Ping timeout: 244 seconds]
hanmac has quit [Ping timeout: 248 seconds]
stamina has quit [Quit: WeeChat 1.5]
anisha has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
turgu1 has joined #ruby
turgu1 has quit [Client Quit]
stamina has joined #ruby
maletor has joined #ruby
Wolland has quit [Remote host closed the connection]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
Wolland has joined #ruby
duncannz has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 248 seconds]
kitikonti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Ping timeout: 264 seconds]
rafadc has joined #ruby
chkm8 has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
rafadc has quit [Ping timeout: 244 seconds]
JakFrist has joined #ruby
shinnya has joined #ruby
olistik has joined #ruby
gfvcastro has joined #ruby
wombawomba has joined #ruby
last_staff has quit [Quit: last_staff]
rippa has joined #ruby
wombawomba has quit [Ping timeout: 265 seconds]
pavshn has quit [Ping timeout: 272 seconds]
pavshn has joined #ruby
jazzonmym11nd has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olistik has quit [Remote host closed the connection]
JeanCarloMachado has quit [Quit: Lost terminal]
claudiuinberlin has joined #ruby
ta_ has joined #ruby
sdothum has joined #ruby
aidalgol has quit [Quit: zZzZzZZzz]
sevenfourk has quit [Quit: Connection closed for inactivity]
ta_ has quit [Ping timeout: 272 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
rprimus has joined #ruby
wombawomba has joined #ruby
symm- has joined #ruby
jonyijoe has joined #ruby
wombawomba has quit [Ping timeout: 265 seconds]
Xiti has quit [Quit: Xiti]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
stamina has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
maletor has joined #ruby
gnufied has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
gilfoyle has joined #ruby
<gilfoyle> what's the best rspec tutorial?
<gilfoyle> (Thumbs up if it doesn't require rails knowledge)
Jackneill has quit [Ping timeout: 250 seconds]
maletor has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Client Quit]
qakar has joined #ruby
ta_ has joined #ruby
qakar has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby
gilfoyle has quit [Ping timeout: 264 seconds]
wombawomba has joined #ruby
pokalyis has joined #ruby
olistik has joined #ruby
Jackneill has joined #ruby
<Papierkorb> gilfoyle: I found the better specs guide pretty helpful: http://betterspecs.org/
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
wombawomba has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
olistik has quit [Ping timeout: 248 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
redpants has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
uxp has quit [Read error: Connection reset by peer]
uxp has joined #ruby
despai has joined #ruby
jazzonmym11nd has joined #ruby
nankyokusei has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
despai has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
craigp has joined #ruby
pandaant has quit [Remote host closed the connection]
habitullence has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 240 seconds]
habitullence has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
craigp has quit [Ping timeout: 244 seconds]
hutch34 has joined #ruby
jazzonmym11nd has quit [Ping timeout: 255 seconds]
lkk has joined #ruby
dviola has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
marr has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitikonti has joined #ruby
Xiti has joined #ruby
blackwind_123 has quit [Ping timeout: 248 seconds]
lkk has left #ruby ["WeeChat 0.4.2"]
craigp has joined #ruby
vqrs has quit [Ping timeout: 264 seconds]
cyclonis has joined #ruby
wombawomba has joined #ruby
maletor has joined #ruby
vqrs has joined #ruby
AzureStigma has joined #ruby
ebraga has joined #ruby
wombawomba has quit [Ping timeout: 276 seconds]
maletor has quit [Ping timeout: 265 seconds]
redpants has quit [Ping timeout: 250 seconds]
JeanCarloMachado has joined #ruby
A124 has quit [Quit: '']
A124 has joined #ruby
davic has quit []
redpants has joined #ruby
GodFather has joined #ruby
davic has joined #ruby
rafadc has joined #ruby
<lupine> yeah, 'tis pretty good
rafadc has quit [Ping timeout: 260 seconds]
jose_leeto has joined #ruby
charliesome has joined #ruby
jonyijoe has quit []
CloCkWeRX has quit [Quit: Leaving.]
siaw23 has joined #ruby
nankyokusei has joined #ruby
hotpancakes has joined #ruby
<siaw23> hi. in my remove method i want to display the string when the condition is false. https://gist.github.com/siaw23/9b487cc2e28339aa6783e6ec9b60a4ec#file-test-rb-L30 how do i do this?
<count> hey :)
<count> I'm having some problem using bundler install --deployment .. I'm getting the gems in vendor/cache, but not unpacked in vendor/bundler, as I would like to deploy them ... what do I do?
<count> bundle install --path $RPM_BUILD_DIR/%{name}/vendor/bundle/ --deployment --binstubs $RPM_BUILD_DIR/%{name}/vendor/bin/ --without test
<count> env -u BUNDLE_BIN_PATH -u RUBYOPT -u GEM_HOME -u GEM_PATH -u RPM_BUILD_DIR BUNDLE_GEMFILE=Gemfile.centos6
<apeiros> count: didn't you ask that yesterday and got a solution? o0
<count> apeiros: nope, didn't get a solution
nankyokusei has quit [Client Quit]
<count> apeiros: docs didn't help, and I'm tossing all of the vendor/ folder before calling already
bsrd has joined #ruby
<hays_> anyone know of a good writeup on doing multiple inheritance in ruby? google brings up some stuff, but none seems particularly authoritative
hays_ is now known as hays
<apeiros> siaw23: seems you did that already, so what's your question?
<apeiros> hays: ruby doesn't have multiple inheritance.
<hays> apeiros: right, it uses modules somehow
<siaw23> apeiros: the message is not showing when i delibrately try to remove something from the list that doesn’t exist
<apeiros> hays: ruby's inheritance is linear. you can have something approximating multiple inheritance through modules.
bsrd has quit [Client Quit]
<apeiros> siaw23: try adding parens for puts. puts("…")
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<hays> apeiros: yeah, i've been reading about modules a bit, but not sure i understand fully the scoping rules
<apeiros> siaw23: note that IMO you should put IO elsewhere, not into the remove method.
<siaw23> apeiros: why that?
<apeiros> hays: if you have specific questions, just ask.
jose_leeto has quit [Quit: Leaving.]
<siaw23> apeiros: works btw. but why do i put IO elsewhere?
<count> apeiros: sooo, I'm still headscratching about bundler *shrug*
<apeiros> siaw23: separation of concerns.
<hays> apeiros: i have a very specific question actually.. almost too specific
<siaw23> apeiros: right
VladGh has quit [Remote host closed the connection]
<apeiros> count: sorry, I've little to do with the deployment, I only know bundlers basics myself :-/
ebraga has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
JeanCarloMachado has quit [Ping timeout: 264 seconds]
VladGh has joined #ruby
hotpanca_ has joined #ruby
<count> apeiros: ah, worth asking either way :)
<hays> apeiros: check out this ine in github. I am trying to figure out a way to extend this to essentially hook into the holding_registers array by replacing it with another object that performs actions when it is accessed
<count> apeiros: I'll probably end up reading the sourcecode
<hays> apeiros: the structure of the code is very much using modules--i'm just having trouble understanding what @holding_registers is and how to override/replace it
trampi has joined #ruby
ropeney has quit [Remote host closed the connection]
sonikspin has joined #ruby
<hays> ideally i want to do this in a way that I don't have to change the underlying code, because its a gem
<count> hays: it's an instance variable and there's an attr_accessor for it :)
<apeiros> hays: that code makes partially no sense.
<count> hays: what's the problem you are trying to solve?
Bellthoven has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
<hays> count: right now this server lets you write/read values to this array, and I want to implement a read-only functionality
<apeiros> line 22-25 - those ivars are never used (they belong to ModBus::Server, the module instance, and only to that object)
<count> hays: .. you could replace the default attr_accessor with functions that implement it, with a hook
mistermocha has quit [Ping timeout: 248 seconds]
<hays> on a per register (array element) basis
<apeiros> line 21, those attr_accessors do *not* provide access to those ivars in line 22-25.
<hays> apeiros: so I think this is mixed in with other stuff.. the code is confusing to me also
hotpancakes has quit [Ping timeout: 255 seconds]
<count> hays: your holding_registers= would just need to be custom
<apeiros> hays: I'd have to see how it's used. but my guess is that parts of that code are superfluous.
<hays> count: so how would I "replace" it by extending this code without actually modifying this source file
<hays> apeiros: hmm.
hotpanca_ has quit [Ping timeout: 248 seconds]
<count> hays: you own module should include said module and just provide its own holding_registers= method itself
<count> apeiros: right?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hays> https://github.com/fernandoluizao/rmodbus/blob/master/lib/rmodbus/tcp_server.rb So in this file, which contains an class definition where one actually uses it, you can see its derived from GServer and then has Server as a mixin
<count> apeiros: I'm ignoring all of the annoying fuzz in the code hays posted ;) it's .. bogus
ropeney has joined #ruby
<hays> the "fuzz" is confusing me a bit--a quick walkthrough would really help
<apeiros> count: no. attr_accessor will work for that.
<apeiros> count: but the including party has to ensure the @vars are initialized
<count> apeiros: well he basically wants attr_reader only, with a custom writer
<apeiros> hays: and re ^, I don't see where ModBus::TCPServer initializes the ivars
trampi has quit [Remote host closed the connection]
<hays> apeiros: is :coils (for example) connected to @coils ?
<apeiros> attr_accessor :coils is connected to @coils
<apeiros> :coils on its own is not.
<hays> ok i think what you do is you initialize it in use
<apeiros> count: ah, ok. may have overread a thing or two.
<apeiros> hm, is GServer the stdlib GServer?
<count> apeiros: he wants full read access for @holding_registers and selective write access for elements of it, if I understood him correctly.
<hays> apeiros: yep
<hays> count: yep...
<count> apeiros: i've literally overread everything else ;)
<apeiros> hays: oh dear, yes, I see it in the comments.
<apeiros> that looks horribly brittle :D
<count> uh-huh
<hays> yeah its not the best from a design perspective, and the documentation set is minimal
<hays> however it actually works really well so there's that
<apeiros> but yeah, that means https://github.com/fernandoluizao/rmodbus/blob/master/lib/rmodbus/server.rb#L22-L25 is superfluous and can be deleted.
<hays> ah good point
<hays> so how do I actually mix that in? where I replace attr_accessor :holding_registers with my own
<hays> e.g. I know I can just edit the code, but I want to leave the code intact
<hays> is there a way to derive from TCPServer in such a way that I replace these accessor functions?
<apeiros> hays: inherit from ModBus::TCPServer and define your custom setter there.
<apeiros> alternatively instantiate it and redefine the method on that single instance.
<apeiros> >> x = Array.new; def x.push(value); super(value); super(value); end; x.push(1); x
<ruby[bot]> apeiros: # => [1, 1] (https://eval.in/643947)
marr has joined #ruby
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elenatanasoiu has joined #ruby
Morrolan has quit [Quit: Goodbye]
sameerynho has quit [Quit: WeeChat 1.5]
Morrolan has joined #ruby
maletor has joined #ruby
elenatanasoiu has quit [Ping timeout: 248 seconds]
ta_ has quit [Ping timeout: 265 seconds]
<apeiros> you don't own the ModBus namespace, so I wouldn't use that namespace. but other than that, yes.
ta_ has joined #ruby
siaw23 has quit [Quit: siaw23]
<hays> test_override.rb:5:in `<class:MyTCPServer>': undefined method `attr_accessible' for Bananas::MyTCPServer:Class (NoMethodError)
GodFather has quit [Ping timeout: 244 seconds]
<apeiros> oh, didn't notice line 6 in your code. why's it in there?
anisha has joined #ruby
<apeiros> if you meant to write attr_accessor - that's already done by ModBus::Server.
cjbischof_ has joined #ruby
maletor has quit [Ping timeout: 264 seconds]
antgel has joined #ruby
<apeiros> hays: that's specifically for AR models
<apeiros> given that you used that, I guess your write_attribute is also wrong.
<apeiros> I assumed that matched other parts of the ModBus lib. in the SO article, it's also an AR model method.
blackmes1 has joined #ruby
<hays> ok. yes alright
negatifze has joined #ruby
<apeiros> as already said, no need for attr_*, ModBus::Server does that already.
<apeiros> and also as just said: write_attribute most certainly is not what you want.
<hays> is it the return value from holding_registers= that gets set into @holding_registers?
<apeiros> o0
<apeiros> no
<apeiros> you have to write code to set @holding_registers.
<hays> ah, ok
jazzonmym11nd has joined #ruby
redpants has quit [Ping timeout: 265 seconds]
<hays> last question is there a way to be generic about that? e.g. I want to write this code once and then apply it to many variables, not just @holding_registers
redpants has joined #ruby
<apeiros> "last question" - no promises you can't keep ;-p
<apeiros> sure. that's metaprogramming for you.
<hays> haha :) perhaps. I guess the ideal scenario would be to have my own version of :attr_writer
<apeiros> &ri Module#define_method, Module#class_eval hays
<apeiros> sure. attr_writer is just: def attr_writer(*names); names.each do |name| class_eval %{def #{name}=(value); @#{name} = value; end} end end
<apeiros> might be missing an "end" or have other mistakes. but should suffice to give you the general idea.
ovidiuBOSS has joined #ruby
<ovidiuBOSS> sall
ovidiuBOSS has quit [Client Quit]
jazzonmym11nd has quit [Ping timeout: 244 seconds]
j0bk has joined #ruby
cybertron has joined #ruby
Bellthoven has quit []
<hays> apeiros: ok that's some serious magic. what does the % do?
<apeiros> >> %{I'm a string}
<ruby[bot]> apeiros: # => "I'm a string" (https://eval.in/643949)
centrx has joined #ruby
<centrx> > -1 * 0.0
gingray has joined #ruby
<centrx> >> -1 * 0.0
<ruby[bot]> centrx: # => -0.0 (https://eval.in/643950)
<apeiros> >> -0.0 # works too
<ruby[bot]> apeiros: # => -0.0 (https://eval.in/643951)
<centrx> Seems like a bug?
<apeiros> it isn't
<apeiros> >> [1/0.0, 1/-0.0]
<ruby[bot]> apeiros: # => [Infinity, -Infinity] (https://eval.in/643952)
Vivekananda has joined #ruby
redpants has quit [Ping timeout: 272 seconds]
olistik has joined #ruby
Burgestrand has joined #ruby
<hays> apeiros: hmm the class can't seem to see the function gate_keeper https://bpaste.net/show/a065b47d275e
Pumukel has quit [Remote host closed the connection]
<hays> line 18
bsrd has joined #ruby
<apeiros> that's correct. because it's defined as an instance method of Bananas. and the class MyTCPServer is not an instance of Bananas.
gilfoyle has joined #ruby
<hays> even though its in the module Bananas?
<hays> i think this is a scoping rule i'm not clear on
gilfoyle is now known as Guest38188
<apeiros> being nested in Bananas doesn't make it an instance of Bananas.
elenatanasoiu has joined #ruby
solocshaw has joined #ruby
<hays> does include Bananas create an instance of Bananas?
<hays> i usually think if instances as created with .new
<apeiros> including a module into a class makes *instances* of that class instances of said module. but not the class itself.
olistik has quit [Ping timeout: 265 seconds]
<apeiros> that's why including a module into a class makes all instance methods of the module available to instances of the class.
<apeiros> why don't you define gate_keeper as a class method on your server class?
<hays> well i was thinking i might evenually use it for the TCPClient also
NetSage has quit [Quit: Leaving]
<hays> my hunch was not to tie it too closely to the class itself
<apeiros> then put it into its own module and use extend instead of include.
solocshaw has quit [Remote host closed the connection]
Guest38188 has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
ropeney has quit [Remote host closed the connection]
zac has joined #ruby
hotpancakes has joined #ruby
axsuul has joined #ruby
the_drow has joined #ruby
nankyokusei has joined #ruby
<hays> i'll need to cogitate on what you've helped me do here for a while
solocshaw has quit [Remote host closed the connection]
<hays> questions like: why would this be a class method and not an instance method
<apeiros> start with the class method
<apeiros> get that to work
<hays> i must think about
<hays> yeah i have it working https://bpaste.net/show/217e2d51406f now i just need to study why it works
Axl__ has left #ruby [#ruby]
<apeiros> IMO should be Bananas::GateKeeper
<apeiros> keep stuff in one namespace.
hotpancakes has quit [Ping timeout: 250 seconds]
grh has joined #ruby
AzureStigma has joined #ruby
cjbischof_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hays> you mean like this https://bpaste.net/show/0241683f3cb4
nankyokusei has quit [Ping timeout: 272 seconds]
<apeiros> yupp
<apeiros> within module Bananas, you can just `extend GateKeeper`
<hays> thanks. there are too many computer languages floating around in my head
the_drow has quit [Quit: This computer has gone to sleep]
<hays> this is great--i can build from this
GodFather has joined #ruby
hotpancakes has joined #ruby
the_drow has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
ahri_ has joined #ruby
ahri_ is now known as ahri^
shinnya has quit [Ping timeout: 248 seconds]
johnmilton has joined #ruby
solocshaw has joined #ruby
ebraga has joined #ruby
<ahri^> hi, i'm executing a process and outputing the stdout, however there seems to be a control character emitted that clears the screen (i see this when executing the process from bash) - the result for me is that stdout is mostly empty at the end of execution
csk has joined #ruby
tectonic has joined #ruby
jhack_ has joined #ruby
<ahri^> i'm using popen3, and wonder if there's a way to properly handly this situation
<apeiros> what would "properly" entail for you?
jhack_ has quit [Client Quit]
bsrd has quit [Quit: WeeChat 1.5]
hutch34 has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
<ahri^> probably stripping the \f (this is my working theory) before it arrives in my string
hotpancakes has joined #ruby
jazzonmym11nd has joined #ruby
<apeiros> the sequence to clear the screen is probably not \f. look for \e. ansii escape sequences start with that. iirc there's more than 1 to clear the screen.
<apeiros> what stops you from stripping the sequence from the output?
mitt3ns has joined #ruby
agent_white has quit [Disconnected by services]
mitt3ns is now known as agent_white
<ahri^> i just tested with "| tr -d '\f'" appended to the command, and that successfully stops the screen clearing
<ahri^> so that's probably the way to go
hotpancakes has quit [Read error: Connection reset by peer]
<ahri^> according to https://en.wikipedia.org/wiki/Control_character \f, form feed, is 'clear screen'
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
<ahri^> unfortunately, simply adding that pipe is not having the desired effect in ruby :\
<hays> is there a way to decorate a function simply, similar to python?
platzhirsch has joined #ruby
<apeiros> ahri^: what stops you from doing the equivalent in ruby code?
<apeiros> hays: `def foo; …; end` returns :foo
ebraga has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
Wolland has quit []
<ahri^> apeiros: as i was typing i figured it out; i'd have to do more to allow piping in ruby via popen3, i just tested with Rake's 'sh' and it works nicely just sticking the pipe into the command
tmtwd has joined #ruby
maletor has joined #ruby
stamina has joined #ruby
antgel has quit [Ping timeout: 255 seconds]
pavshn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<hays> apeiros: hmm actually for waht we were just talking about, I can use "super value" instead of @#{name}=value
<hays> that way I make sure im not accidentally overriding anything in the underlying implementation
<hays> i think that works...
<apeiros> correct.
Oclair_ has joined #ruby
<apeiros> yes, it's the better choice.
jazzonmym11nd has quit [Ping timeout: 248 seconds]
<hays> plus i get to have a line in my code that is "super value"
weemsledeux has joined #ruby
maletor has quit [Ping timeout: 248 seconds]
Oclair has quit [Ping timeout: 248 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
diprotic has joined #ruby
diprotic has joined #ruby
diprotic has quit [Changing host]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
mikecmpb_ has joined #ruby
monoprotic has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
elenatanasoiu has quit [Ping timeout: 248 seconds]
Axl_ has joined #ruby
miqlas-H has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
mtkd has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hays> oh damnit. haha. this isnt going to work
trampi has joined #ruby
<hays> i can bypass the whole thing because the underlying array i can just directly access
mtkd has joined #ruby
minimalism has joined #ruby
<hays> i need to be returning something that itself also has a gatekeeper per se
Axl_ has left #ruby [#ruby]
rafadc has joined #ruby
<hays> i'll need to extend array
roflmyeggo has joined #ruby
Axl__ has joined #ruby
banisterfiend has joined #ruby
sdothum has joined #ruby
rafadc has quit [Ping timeout: 265 seconds]
Krebsgewehr has quit [Quit: Leaving]
init7 has joined #ruby
<hays> any advice on what functions i'd want to focus on if I wanted to tap into Array's [] and [a:b] functionality
<apeiros> s/functions/methods/
fullofcaffeine has joined #ruby
<apeiros> what should [a:b] mean?
sarkis has joined #ruby
<apeiros> some_array[x] uses Array#[]
<hays> foo[3:4] = [5,6]
<apeiros> that's nice, but not ruby :)
qakar has joined #ruby
swills has quit [Read error: Connection reset by peer]
<hays> doh. foo[3..4]=[5,6]
weemsledeux has joined #ruby
<apeiros> there's foo[3,4] and foo[3..4], both invoke Array#[]
<apeiros> oh, and foo[3,4] = … invokes Array#[]=
swills has joined #ruby
nando293921 has joined #ruby
<hays> so : class SpecialArray < Array ; def #[] { stuff } ; def #[]= { stuff }; ?
fullofca_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
<hays> i mean generally maybe a bad idea to derive from built in classes like that, but even in composition are these the methods?or ar they actually called Array#[]=
<apeiros> mostly. no {} for method bodies in ruby. and you should read up on why rather use has-a than is-a (composition instead of inheritance) for core classes (or generally classes you don't own)
claudiuinberlin has joined #ruby
roflmyeggo has quit [Ping timeout: 264 seconds]
fullofc__ has joined #ruby
elenatanasoiu has joined #ruby
sarkis has quit [Ping timeout: 265 seconds]
fullofcaffeine has quit [Ping timeout: 265 seconds]
qakar has quit [Ping timeout: 272 seconds]
roflmyeggo has joined #ruby
antgel has joined #ruby
Channel6 has joined #ruby
fullofca_ has quit [Ping timeout: 240 seconds]
diprotic has quit [Ping timeout: 250 seconds]
hotpanca_ has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
vqrs has quit [Ping timeout: 248 seconds]
ahri^ has quit [Quit: Page closed]
monoprotic has joined #ruby
monoprotic has joined #ruby
monoprotic has quit [Changing host]
elenatanasoiu has quit [Ping timeout: 260 seconds]
pontiki has joined #ruby
vqrs has joined #ruby
roflmyeggo has quit [Ping timeout: 248 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
xlegoman has joined #ruby
roflmyeggo has joined #ruby
<lupine> tl;dr the runtime is naughty for speed reasons
<lupine> but yeah, composition is god
Axl__ has quit [Quit: axl__]
agent_white has quit [Quit: agent_white]
stamina has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
blackmes1 has joined #ruby
bovis has joined #ruby
<bovis> Can I ask a question here about book recommendations? Or would that be best for another channel?
<pontiki> ask away
a7d7p has joined #ruby
sdothum has joined #ruby
<bovis> I want to learn ruby, html/css, javascript, and a database language like mysql. What books would you recommend for ruby (or any of the others) that fit that goal and can provide me with exercises/projects along the way.
<bovis> Materials that work well together would be great. Or is it the best course to finish one, move to the next...? Still, complimentary books are a nice find.
<pontiki> some notes on learning ruby programming: http://blog.tamouse.org/pages/learning/ i wrote this out since the question gets asked
<pontiki> oh sad
<pontiki> not that link!!
anisha has quit [Quit: Leaving]
<pontiki> forgot to update my aliases...
elenatanasoiu has joined #ruby
anisha has joined #ruby
ropeney has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
<bovis> pontiki: thanks
skweek has joined #ruby
habitullence_ has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
habitullence has quit [Ping timeout: 260 seconds]
habitullence_ is now known as habitullence
<bovis> pontiki: I've seen the Odin project before, and that site makes it seem like I could gain everything I need to know in online tutorials. In hindsight, would you take that avenue or stick to books if you were beginning?
<bovis> pontiki: I haven't fared well with my understanding of concepts after leaving HTML and Ruby courses in Codecademy... I leave feeling like I missed something. Perhaps they pass by topics too quickly.
blackwind_123 has joined #ruby
maletor has joined #ruby
Channel6 has quit [Quit: Leaving]
dionysus70 has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
bsrd has joined #ruby
miqlas-H has joined #ruby
eljimmy has joined #ruby
fullofc__ has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 264 seconds]
maletor has quit [Ping timeout: 265 seconds]
johnmilton has joined #ruby
fullofcaffeine has joined #ruby
tristanp has joined #ruby
<pontiki> i dislike codeacademy and their ilk; however, i'm totally at the opposite end of the learning scale on this so it wouldn't be fair for me to say what works well for others
<Zarthus> they are good if you want the very basics for free
<Zarthus> Most people need more than just the very basics.
<pontiki> it's their style of instruction i don't like
elenatanasoiu has joined #ruby
<Zarthus> isn't it similar to the try ruby course on ruby's site?
<pontiki> yup
<bovis> Zarthus: yes, the instruction doesn't take you far; even in introducing how to make your own classes, for instance, it doesn't go deep into why you should be doing that
monoprotic has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 240 seconds]
<Zarthus> I think the basic approach is more a "get your feet wet to see if you like it" more than anything else
<pontiki> none of those sites teach you the whys
<bovis> I worry about the books being out of date, even if they were printed just 3 or 4 years ago. Is that a valid concern?
<pontiki> most of the books don't either
<pontiki> not necessarily, but it can be
<bovis> I'd like to know the why's
<pontiki> there are books i still point to that were published last in the 70s
<Zarthus> books may be outdated, but even if outdated most professors/teachers are behind the times even more
<pontiki> mainly because they're conceptual, and are teaching things about how to program, not how to write a specific lanuage
<bovis> pontiki: your site seems to delineate between those two camps, the how to program vs. the specific languages
yeticry has joined #ruby
<pontiki> yes
<pontiki> these are two different domains of knowledge, though linked
elenatanasoiu has quit [Ping timeout: 248 seconds]
<bovis> I saw a talk from Metz the other day (video); it was excellent and makes me think that her book would be a good fit
<pontiki> i'm also a huge fan of learning many languages and frameworks, learning from many different approaches
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
<bovis> again, I guess my worry is that her book is older than some of the others
<pontiki> in that case, that is not a worry
<bovis> if I'm getting into ruby, html, js, mysql all at once, I'll be see a lot of different approaches
<bovis> why not?
brendan- has quit [Remote host closed the connection]
<pontiki> she's not teaching specific language syntax, she's teaching an approach to organizing code
tectonic has quit []
<pontiki> you could replace all her ruby code with java, or php, or c++ and her points would be the same
tectonic has joined #ruby
<bovis> would you say that the Olsen, Grimm, or Black books are better for a beginner then? I only know basic syntax; not enough to dive into something that assumes I have a whole language worth of previous knowledge
<pontiki> also, there's a point at which saying "it's old, i'm afraid it won't be applicable" is just something else to keep from jumping in and learning
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bovis> agreed
<pontiki> i think that question "which is better" is avoiding just learning
<pontiki> get the (free) first chapter to justin weiss's book, practicing rails -- it's not about rails, it's about *learning*
roflmyeggo has quit [Remote host closed the connection]
<pontiki> read it, internalize it
elenatanasoiu has joined #ruby
vuoto has quit [Remote host closed the connection]
roflmyeggo has joined #ruby
<pontiki> this is programming, it's a skill, it's a collection of knowledge, it is not about reading books and doing tutorials
<pontiki> best way to learn, imo, is to practice
gingray has quit [Ping timeout: 248 seconds]
<pontiki> and like tennis, you'll never get good at it unless you play with others
weemsledeux has joined #ruby
tectonic has quit []
elenatanasoiu has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
roflmyeggo has quit [Ping timeout: 244 seconds]
<apeiros> pontiki: wait, what? you mean I should stop reading "tennis for dummies"?
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
hutch34 has joined #ruby
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zac has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 265 seconds]
<pontiki> not you, apeiros, you just keep on reading
csk has quit [Quit: ZZZzzz…]
trampi has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
bsrd has quit [Quit: WeeChat 1.5]
firstdayonthejob has joined #ruby
nando293921 has joined #ruby
elenatanasoiu has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
tmtwd has quit [Ping timeout: 276 seconds]
eizua has quit [Quit: Leaving]
statelesscode has joined #ruby
d0nn1e has quit [Ping timeout: 276 seconds]
d0nn1e has joined #ruby
blackmes1 has joined #ruby
redpants has joined #ruby
gfvcastro has quit [Ping timeout: 244 seconds]
claudiuinberlin has quit [Remote host closed the connection]
monoprotic has joined #ruby
monoprotic has quit [Changing host]
monoprotic has joined #ruby
elenatanasoiu has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
lxsameer has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
LoneHermit has quit [Remote host closed the connection]
statelesscode has quit [Quit: statelesscode]
maletor1 has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elenatanasoiu has joined #ruby
AzureStigma has joined #ruby
statelesscode has joined #ruby
AzureStigma has quit [Client Quit]
friday has joined #ruby
Delesy has joined #ruby
maletor1 has quit [Ping timeout: 240 seconds]
mozzarella has quit [Ping timeout: 276 seconds]
<Delesy> Hey guys, hows it going
gilfoyle has joined #ruby
gilfoyle is now known as Guest35258
tectonic has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Delesy> puts "Anybody here?"
<friday> ;_; it's no longer friday that's what's going
lxsameer has quit [Quit: WeeChat 1.5]
<Delesy> saturday is even better
<Delesy> :)
<friday> friday is the promise of saturday to come
<Delesy> oh, nice username../joke
<Delesy> i get it
<friday> :}
zapata has joined #ruby
Channel6 has joined #ruby
claudiuinberlin has joined #ruby
qakar has joined #ruby
SteenJobs has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
platzhir1 has joined #ruby
qakar has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
weemsledeux has quit [Ping timeout: 240 seconds]
rafadc has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 248 seconds]
last_staff has quit [Ping timeout: 244 seconds]
roflmyeggo has joined #ruby
last_staff has joined #ruby
siaw23 has joined #ruby
rafadc has quit [Ping timeout: 276 seconds]
pavshn has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.2 Aria]
JeanCarloMachado has joined #ruby
skweek has joined #ruby
rafadc has joined #ruby
pawnbox has quit [Remote host closed the connection]
qakar has joined #ruby
olistik has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olistik has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
pawnbox has joined #ruby
statelesscode has quit [Quit: statelesscode]
fullofca_ has joined #ruby
blackmes1 has joined #ruby
ropeney has quit [Remote host closed the connection]
AlexRussia_ has quit [Ping timeout: 265 seconds]
statelesscode has joined #ruby
Ishido has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 265 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
Ishido has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 255 seconds]
pavshn has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
sarkis has joined #ruby
pokalyis has joined #ruby
shinnya has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Quit: Lost terminal]
threh has joined #ruby
pawnbox has joined #ruby
csk has joined #ruby
solocshaw has quit [Ping timeout: 248 seconds]
solocshaw has joined #ruby
skweek has joined #ruby
fullofcaffeine has joined #ruby
fullofca_ has quit [Read error: Connection reset by peer]
sdothum has quit [Read error: Connection reset by peer]
roflmyeggo has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
rafadc has quit [Ping timeout: 240 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
platzhir1 has quit [Ping timeout: 265 seconds]
gizless has joined #ruby
gizmore has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofca_ has joined #ruby
Cohedrin has joined #ruby
elenatanasoiu has quit [Ping timeout: 244 seconds]
centrx has quit []
marxarelli has joined #ruby
marxarelli has quit [Client Quit]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Blackpajamas has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
elenatanasoiu has joined #ruby
claudiuinberlin has joined #ruby
dotio is now known as i-
Blackpajamas has quit [Client Quit]
siaw23 has quit [Quit: siaw23]
elenatanasoiu has quit [Client Quit]
mozzarella has joined #ruby
Cohedrin has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
symm- has joined #ruby
Bellthoven has joined #ruby
fullofca_ has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
threh has quit [Ping timeout: 265 seconds]
SteenJobs has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
jazzonmym11nd has joined #ruby
SteenJobs has joined #ruby
hutch34 has joined #ruby
a7d7p has quit [Quit: a7d7p]
firstdayonthejob has quit [Quit: WeeChat 1.5]
Delesy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sarkis has quit [Ping timeout: 240 seconds]
fullofcaffeine has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
newbie1 has joined #ruby
a7d7p has joined #ruby
nankyokusei has joined #ruby
firstdayonthejob has joined #ruby
siaw23 has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
siaw23 has quit [Client Quit]
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
elastix has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
sarkis has joined #ruby
jtzero has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 265 seconds]
montyboy has joined #ruby
SteenJobs has joined #ruby
diprotic has joined #ruby
symm- has quit [Ping timeout: 255 seconds]
pragmaticus has quit [Read error: Connection reset by peer]
monoprotic has quit [Ping timeout: 244 seconds]
rsampaio_ has joined #ruby
diprotic is now known as monoprotic
csk has quit [Quit: ZZZzzz…]
ta_ has quit [Remote host closed the connection]
Delesy has joined #ruby
baweaver is now known as baweaver_away
sarkis has quit [Ping timeout: 248 seconds]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BlkDynmt has quit [Ping timeout: 240 seconds]
rsampaio_ has quit [Ping timeout: 248 seconds]
Delesy has quit [Quit: Going offline, see ya! (www.adiirc.com)]
maletor1 has joined #ruby
agit0 has joined #ruby
montyboy has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
sarkis has joined #ruby
Bellthoven has quit []
montyboy has joined #ruby
maletor1 has quit [Ping timeout: 272 seconds]
axsuul has joined #ruby
symm- has joined #ruby
Delesy has joined #ruby
tmtwd has joined #ruby
grh has quit [Ping timeout: 265 seconds]
tmtwd has quit [Remote host closed the connection]
threh has joined #ruby
a7d7p has quit [Quit: a7d7p]
BlkDynmt has joined #ruby
Delesy has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
benaph has joined #ruby
cyclonis has quit [Ping timeout: 255 seconds]
|ifei5g00d has quit []
tectonic has quit []
Rodya_ has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
Axl_ has joined #ruby
Axl_ has quit [Client Quit]
AlexRussia_ has joined #ruby
conta has joined #ruby
nullfxn has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
LuckyABA has joined #ruby
fullofcaffeine has joined #ruby
blackmes1 has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
wombawomba has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
siaw23 has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
Pupeno has joined #ruby
conta has quit [Ping timeout: 265 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
devil_tux has joined #ruby
<devil_tux> has anyone worked here with CAN protocol?
<devil_tux> I'm rewriting a socketCan to native ruby lib
vuoto has quit [Remote host closed the connection]
rsampaio_ has joined #ruby
<devil_tux> the data for example I get through recv() on binded socket
<devil_tux> \x01\x00\x00\x05\x00\x00\x00\xDE\xAD\xBE\xEF\xCA\x00\x00\x00
<devil_tux> you can see: x05 = no of bytes; and then 3x00 (padding) then the data: DEADBEEFCA
<devil_tux> is there a way to clean this padding bytes
<devil_tux> or to recieve a frame data in text format
<devil_tux> does it have to go into buffer?
<devil_tux> here is the C code: read(s, &frame, sizeof(struct can_frame)); // s is the socket, &frame is pointer to frame struct, sizeof(struct can_frame)) is size(frame)
eljimmy has joined #ruby
diprotic has joined #ruby
diprotic has joined #ruby
diprotic has quit [Changing host]
Channel6 has quit [Quit: Leaving]
<apeiros> devil_tux: that is text. \x00 - \x19 are non-printable characters, hence you will never *see* anything but an escape sequence
<apeiros> as for decoding it:
<apeiros> &ri String#unpack devil_tux
<apeiros> alternatively check out the bit-struct gem: https://github.com/vjoel/bit-struct
monoprotic has quit [Ping timeout: 265 seconds]
cdg has joined #ruby
<devil_tux> apeiros thank you! both links are great resource
<devil_tux> apeiros: have you tried that gem?
<apeiros> no
adrianRor has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
c0mrad3 has quit [Quit: Connection closed for inactivity]
eljimmy has quit [Quit: This computer has gone to sleep]
pwnd_nsfw has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
rsampaio_ has quit [Ping timeout: 255 seconds]
Guest43 is now known as Rufus
cdg has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cdg has joined #ruby
\13k has quit [Disconnected by services]
\13k has joined #ruby
solocshaw has quit [Ping timeout: 265 seconds]
adrianRor has left #ruby [#ruby]
<devil_tux> seems like .unpack is what I need. The "flag" is: A16L
<devil_tux> a bit cleaner
<devil_tux> before: #\x01\x00\x00\x05\x00\x00\x00\xDE\xAD\xBE\xEF\xCA\x00\x00\x00
<devil_tux> now: #\x01\x00\x00\x05\x00\x00\x00\xDE\xAD\xBE\xEF\xCA
<zenspider> unpack is a hell of a powerful tool
rsampaio_ has joined #ruby
mikecmpb_ has quit [Quit: inabit.]
<devil_tux> tho' still not perfect
<zenspider> false dichotomy. nothing is perfect.
<apeiros> devil_tux: if \x05 (4th byte) is the number of bytes, then I doubt your pattern is A16L
Guest35258 has quit [Ping timeout: 240 seconds]
<devil_tux> yes, the 8 is the max no of bytes in one CAN frame
redpants has quit [Ping timeout: 244 seconds]
Bounga has joined #ruby
<devil_tux> its the problem with the sturct
<devil_tux> I havent defined it and recv does not detect a \n, so there it goes
rsampaio_ has quit [Ping timeout: 265 seconds]
<zenspider> devil_tux: why are you writing this?
<devil_tux> zenspider: writing what?
<zenspider> this can bus decoder thingy
<siaw23> i’m trying to use a before block but my example on line 11 is faiiling with undefined local variable or method `player' for #<RSpec::ExampleGroups::Player::Add:0x007f9a2a8e48d0> https://gist.github.com/siaw23/84172d5ee6297cac2964fe62122af249#file-spec-rb-L5
<siaw23> ideas please :)
[k- has quit [Ping timeout: 244 seconds]
<siaw23> how to get the before block to work
<devil_tux> zenspider: there is no native lib for CAN on Ruby, and I'm working on a project tied to it
<zenspider> siaw23: you're defining a local variable "player" in your before block... it's not defined anywhere else. that's what local vars do
<zenspider> you probably want an instance variable
<zenspider> devil_tux: a quick google found me 3 different can bus implementations for ruby...
siaw23 has quit [Read error: Connection reset by peer]
<devil_tux> Oh? May I see them?
<zenspider> yes. you can google too. It's a public resource
<devil_tux> the only one available is ruby_can
<devil_tux> which is not even started
<zenspider> oddly, that one I didn't find :)
gilfoyle has joined #ruby
qakar has quit [Remote host closed the connection]
<zenspider> one uses bitstruct... that's intriguing. I've definitely needed that before.
gilfoyle is now known as Guest56443
<devil_tux> Ok :) it's a public resource and I can't find it, and you don't want to link it?
<devil_tux> great appreciation of communicity
<devil_tux> you are genious
<devil_tux> and generous
JeanCarloMachado has joined #ruby
ruby-lang032 has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
GBrawl has joined #ruby
<ruby-lang032> ping admin
<zenspider> devil_tux: wow. way to bite the hand that feeds you. good job. I googled for: can bus protocol ruby gem
<zenspider> ruby-lang032: what's up?
<havenwood> ruby-lang032: Need help?
dionysus69 has quit [Ping timeout: 265 seconds]
<zenspider> there's a number of admins in here. just speak up (or PM if you need)
pawnbox has quit [Remote host closed the connection]
devil_tux has quit [Quit: leaving]
<pontiki> hi, zenspider
Guest56443 has quit [Ping timeout: 250 seconds]
siaw23 has joined #ruby
<zenspider> pontiki: hey!
nikivi has joined #ruby
bovis has quit [Quit: leaving]
<hays> also is there an obvious replacement for gserver or was it just removed
<ruby-lang032> Hello. I am trying to solve a CTF challenge. http://fuzyll.com/files/csaw2016/elmrik. Can some one please explain what this code is doing
<apeiros> hays: probably io is supposed to be an IO instance
<apeiros> no idea wrt gserver replacement
<hays> it looks like it was kinda a POS. found a note about its removal
pawnbox has joined #ruby
<apeiros> hays: https://redmine.ruby-lang.org/issues/5480 last comment
LoneHerm_ has quit [Remote host closed the connection]
<hays> yep
<hays> unmaintained, badly documented, et
<hays> the plot thickens.. heh
<apeiros> not the point. read the last comment.
zacstewa1t has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
skweek has joined #ruby
hutch34 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
<zenspider> apeiros: host name mismatch. proper url is https://bugs.ruby-lang.org/issues/5480
threh has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
<apeiros> oh? weird. that's what google gave me. and I thought google weighted results wrt TSL
hutch34 has quit [Ping timeout: 265 seconds]
shinnya has quit [Ping timeout: 265 seconds]
\13k_ has joined #ruby
Bounga has quit [Ping timeout: 248 seconds]
<zenspider> I didn't even know that gserver was removed. I should pay more attention
nikivi has quit [Quit: zzz]
last_staff has quit [Quit: going moo moo]
nikivi has joined #ruby
<jazzonmym11nd> apeiros: didn't you get a SSL cert error?
gingray has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
<apeiros> jazzonmym11nd: I guess I did. for anything I don't download stuff or isn't my banking website, I probably ignore them in a reflex.
gilfoyle_ has joined #ruby
montyboy has quit [Quit: montyboy]
Jackneill has quit [Remote host closed the connection]
Coldblackice has joined #ruby
gilfoyle_ has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
Puffball has quit [Remote host closed the connection]
\13k_ has quit [Quit: \13k_]
<GBrawl> what does << do in ruby
<jazzonmym11nd> depends on what the receiver is
<GBrawl> 3 << 5 for example
A124 has quit [Quit: '']
ruby-lang032 has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 248 seconds]
A124 has joined #ruby
blackmes1 has joined #ruby
aidalgol has joined #ruby
pavshn has joined #ruby
djbkd has quit [Quit: Leaving...]
maletor1 has joined #ruby
JeanCarl1Machado has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
qakar has joined #ruby
maletor1 has quit [Ping timeout: 250 seconds]
Puffball has joined #ruby
Klumben has quit [Ping timeout: 250 seconds]
nikivi has quit [Quit: irc]
alem0lars has quit [Ping timeout: 272 seconds]
qakar has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit []
Puffball has quit [Remote host closed the connection]
Anatzum has joined #ruby
<apeiros> GBrawl: how to find out for `x << y` - you do x.class, then `ri ThatClass#<<` in your shell
<GBrawl> ah like that, thanks man
<apeiros> e.g. 3 << 5 --> 3.class => Fixnum --> `ri Fixnum#<<`
<GBrawl> I see I see
<GBrawl> that will help out
nullfxn has quit [Quit: leaving]
elastix has quit [Quit: elastix]
<GBrawl> is it possible to get back the array of an inject function if you have the result?
<jazzonmym11nd> code example please
7YUAB3GR2 has joined #ruby
pawnbox has joined #ruby
<GBrawl> (5..10).inject { |sum, n| sum + n }
<GBrawl> this basic one for example
<pontiki> the array you inject isn't destroyed or changed...
<jazzonmym11nd> well, there's no array in that example.
<pontiki> if you want it, just assign it first
biox has joined #ruby
threh has joined #ruby
<GBrawl> nono, but imagine I just get 45
<pontiki> arr=(5..10).to_a
<GBrawl> and the function inject { |sum, n| sum + n }
<pontiki> arr.inject...
<jazzonmym11nd> just keep a reference to it with a variable of some kind.
<pontiki> kinda like what i just showed them
<GBrawl> I don't have a reference, it's for decoding something
<GBrawl> I only have the result
Rodya_ has joined #ruby
<pontiki> then no
<GBrawl> hmm okay, guess I'll have to find a workaround
<jazzonmym11nd> pontiki: yeah i'm not ignoring what you said, i'm just explaining, relax.
Pupeno has joined #ruby
<jazzonmym11nd> GBrawl: it's easier to understand what you mean if you share the code you're working with.
pawnbox has quit [Ping timeout: 250 seconds]
7YUAB3GR2 has quit [Ping timeout: 240 seconds]
<GBrawl> Well I could, but it's for a competition so that wouldn't be fair :)
<GBrawl> thanks for the help though :)
<pontiki> how do you know it's even an inject?
Rodya_ has quit [Remote host closed the connection]
<GBrawl> we get the encode algorithm
<GBrawl> and an encoded string
<GBrawl> and we have to write the decode algorithm
<pontiki> but not the decoded string?
<GBrawl> No, that's the point of the exercise :)
<GBrawl> but you can of course encode a string yourself and then you have a reference
[k- has joined #ruby
<pontiki> they you can assign the thing you're shovig in the inject
<pontiki> s/they/then/
<GBrawl> how
<GBrawl> ?
<pontiki> sorry, this network connectn is so aweful
Anatzum has quit [Ping timeout: 255 seconds]
<pontiki> test_string="foo"; assert_equal decode(encode(test_string)), test_string;
k_ has joined #ruby
<pontiki> you just don't know what the contest givers used
k_ is now known as \13k_
armyriad has quit [Ping timeout: 265 seconds]
armyriad has joined #ruby
historypeats has joined #ruby
<GBrawl> still not really sure what they mean by "shift"
<GBrawl> like bit shifting to the right?
tristanp has joined #ruby
cevett has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
<GBrawl> I see that's what it is
<zenspider> pontiki: assert_equal(expected, actual)
iooner has quit [Quit: http://www.iooner.me]
gilfoyle has joined #ruby
<pontiki> thanks, i'm always getting them backwards ;(
Wolland has joined #ruby
Oclair_ has quit [Quit: Bye Bye]
gilfoyle is now known as Guest38364
<pontiki> i blame foreced rspecing
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
cevett has joined #ruby
Anatzum has joined #ruby
monoprotic has joined #ruby
Guest38364 has quit [Ping timeout: 265 seconds]
[k- has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 248 seconds]
platzhir1 has joined #ruby
diprotic has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
solocshaw has joined #ruby
banisterfiend has joined #ruby
iooner has joined #ruby
Oclair has joined #ruby
yeticry has quit [Ping timeout: 248 seconds]
i- is now known as ^9
gizmore has joined #ruby
gizless has quit [Ping timeout: 272 seconds]
threh has quit [Ping timeout: 260 seconds]
biox has quit [Quit: brb servers are ded]
Klumben has joined #ruby
biox has joined #ruby
yeticry has joined #ruby
spider-mario has quit [Remote host closed the connection]
vqrs has quit [Ping timeout: 240 seconds]
siaw23 has quit [Quit: siaw23]
GBrawl has quit [Quit: (null)]
vqrs has joined #ruby
biox has quit [Client Quit]
benaph has quit [Quit: Leaving]
threh has joined #ruby
biox has joined #ruby
LoneHerm_ has joined #ruby
flying has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
inra has joined #ruby
biox has quit [Client Quit]
firstdayonthejob has quit [Ping timeout: 272 seconds]
biox has joined #ruby
biox has quit [Client Quit]
ta_ has quit [Ping timeout: 250 seconds]
biox has joined #ruby
qakar has joined #ruby
tectonic has joined #ruby
grh has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
pawnbox has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
qakar has quit [Remote host closed the connection]
nogic has joined #ruby
Sashimi_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 244 seconds]
gilfoyle has joined #ruby
gilfoyle is now known as Guest44521
alem0lars has joined #ruby
SteenJobs has joined #ruby
hutch34 has joined #ruby
Bounga has joined #ruby
qakar has joined #ruby
Guest44521 has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
gingray has quit [Ping timeout: 272 seconds]
nankyokusei has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
nogic has quit [Ping timeout: 264 seconds]
Bounga has quit [Ping timeout: 265 seconds]
Wolland has quit []
ta_ has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
ItSANgo has quit [Ping timeout: 244 seconds]
ItSANgo has joined #ruby
threh has quit [Ping timeout: 250 seconds]
qakar has quit [Ping timeout: 272 seconds]
cdg has quit [Ping timeout: 240 seconds]
ItSANgo has quit [Quit: Leaving...]
d5sx43 has joined #ruby
a7d7p has joined #ruby
marr has quit [Ping timeout: 264 seconds]
kitikonti has quit [Ping timeout: 248 seconds]
\13k_ has quit [Quit: leaving]
\13k_ has joined #ruby
platzhir1 has quit [Ping timeout: 244 seconds]
d5sx43 has quit []
tristanp has quit [Remote host closed the connection]
flying has quit []
maletor1 has joined #ruby
tristanp has joined #ruby
maletor1 has quit [Ping timeout: 240 seconds]
qakar has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
a7d7p has quit [Quit: a7d7p]
tristanp has quit [Remote host closed the connection]
qakar has quit [Ping timeout: 248 seconds]
Channel6 has joined #ruby
tristanp has joined #ruby
grh has quit [Ping timeout: 265 seconds]
jtzero has quit [Ping timeout: 248 seconds]
blackmes1 has quit [Ping timeout: 264 seconds]
wombawomba has quit [Ping timeout: 240 seconds]
gilfoyle has joined #ruby
gilfoyle is now known as Guest4933
ebraga has joined #ruby
tristanp has quit [Remote host closed the connection]
Guest4933 has quit [Ping timeout: 265 seconds]
SteenJobs has quit [Quit: SteenJobs]
tvw has joined #ruby
Bounga has joined #ruby