havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
cschnei__ has quit [Ping timeout: 248 seconds]
jrabe has joined #ruby
tvw has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jphase has quit [Ping timeout: 268 seconds]
waveprop has joined #ruby
banisterfiend has joined #ruby
waveprop has quit [Client Quit]
Azure has joined #ruby
Ney has quit [Quit: Textual IRC Client: www.textualapp.com]
Psybur has quit [Ping timeout: 260 seconds]
hopsoft has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Ping timeout: 258 seconds]
dviola has quit [Quit: WeeChat 1.9.1]
sumobob has joined #ruby
sucks has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
xco has quit [Quit: xco]
xco has joined #ruby
xco has quit [Client Quit]
mim1k has quit [Ping timeout: 268 seconds]
xco has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 240 seconds]
waveprop has joined #ruby
karapetyan has quit [Remote host closed the connection]
<waveprop> instance_eval(&config) within call did it
<waveprop> sorry for the noice
<waveprop> s/c/s/
banisterfiend has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Client Quit]
sumobob_ has joined #ruby
sumobob has quit [Ping timeout: 250 seconds]
kus_ubuntui686 has joined #ruby
kus_ubuntui686 has quit [Max SendQ exceeded]
troys is now known as troys_
alveric1 has joined #ruby
chouhoulis has joined #ruby
sumobob_ has quit [Quit: WeeChat 1.7]
fishcooker has quit [Quit: Leaving.]
sumobob has joined #ruby
alveric4 has quit [Ping timeout: 268 seconds]
ivanskie has quit [Quit: Leaving]
friday has quit [Ping timeout: 260 seconds]
tekk has quit [Ping timeout: 255 seconds]
friday has joined #ruby
tekk has joined #ruby
sumobob_ has joined #ruby
hndk has joined #ruby
sumobob has quit [Ping timeout: 250 seconds]
faces has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
enterprisey has joined #ruby
Ayey_ has joined #ruby
knight33 has joined #ruby
Ayey_ has quit [Ping timeout: 268 seconds]
cschneid_ has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
|ifei5good has joined #ruby
tpendragon has quit [Remote host closed the connection]
Guest20101 has quit [Remote host closed the connection]
|ifei5g00d has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
marxarelli is now known as marxarelli|afk
troys_ is now known as troys
cdg has quit [Ping timeout: 250 seconds]
Exagone313 has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 240 seconds]
sagax has quit [Remote host closed the connection]
Exagone313 has joined #ruby
giraffe has joined #ruby
giraffe is now known as Guest32325
cschneid_ has joined #ruby
tpendragon has joined #ruby
guardianx has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
voice_ftp has quit [Quit: Leaving]
govg has quit [Ping timeout: 268 seconds]
jesuitx has joined #ruby
jesuitx has quit [Client Quit]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 258 seconds]
govg has joined #ruby
mson has joined #ruby
govg has quit [Ping timeout: 248 seconds]
bob_f has quit [Ping timeout: 248 seconds]
Ayey_ has joined #ruby
sumobob has joined #ruby
bob_f has joined #ruby
sumobob_ has quit [Ping timeout: 240 seconds]
iooner has quit [Ping timeout: 248 seconds]
Ayey_ has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
iooner has joined #ruby
eb0t_ has quit [Read error: Connection reset by peer]
eb0t has quit [Read error: Connection reset by peer]
Orbixx[m] has left #ruby ["User left"]
haraoka has joined #ruby
hinbody has quit [Ping timeout: 268 seconds]
cschneid_ has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
hinbody has joined #ruby
eb0t has joined #ruby
chouhoulis has quit [Remote host closed the connection]
eb0t_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
cschneid_ has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
the_f0ster has joined #ruby
jphase has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<the_f0ster> if I split my tests to only use spec_helper and rails_helper when necessary, would that speed things up? isnt the cost just one rails initialization ?
sucks has quit [Remote host closed the connection]
David_H_Smith has joined #ruby
<baweaver> Use Guard and Spork
<baweaver> Then that's not really much of an issue
<baweaver> Guard is a test runner that watches for changes and runs the correct test afterwards
<baweaver> like you save person.rb it runs person_spec.rb
<baweaver> Spork keeps Rails loaded in the background
<elomatreb> Isn't that spring (and isn't it enabled by default now)?
<baweaver> ...yes, that
* baweaver wonders where he got spork from
sucks has joined #ruby
<elomatreb> You need to run the test command from the bin/ directory, those have the proper code for spring preloading inserted
<elomatreb> Doesn't speed up the individual tests, but the boot time before the tests start is almost completely eliminated on all but the first test run
cschneid_ has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
cschneid_ has quit [Ping timeout: 250 seconds]
Ayey_ has joined #ruby
kculpis has joined #ruby
orbyt_ has joined #ruby
Toggi3 has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 268 seconds]
tcopeland has joined #ruby
ramfjord has joined #ruby
Ayey_ has quit [Ping timeout: 240 seconds]
Toggi3 has joined #ruby
the_f0ster has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hopsoft has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
jphase has joined #ruby
sumobob has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
kies has quit [Ping timeout: 250 seconds]
xall has joined #ruby
mjolnird has joined #ruby
jrafanie has joined #ruby
enterprisey has quit [Ping timeout: 268 seconds]
jrafanie_ has joined #ruby
xall has quit [Ping timeout: 248 seconds]
jrafanie has quit [Ping timeout: 268 seconds]
jphase has quit [Ping timeout: 260 seconds]
|ifei5g00d has joined #ruby
Devalo has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
troys is now known as troys_
gizmore has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
gizmore|2 has quit [Ping timeout: 250 seconds]
Ayey_ has joined #ruby
charliesome has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
Ayey_ has quit [Ping timeout: 248 seconds]
d^sh has joined #ruby
hackeron_ has joined #ruby
hackeron has quit [Read error: Connection reset by peer]
hackeron has joined #ruby
hackeron_ has quit [Ping timeout: 250 seconds]
nofxx has quit [Remote host closed the connection]
lucz has quit [Remote host closed the connection]
nofxx has joined #ruby
haylon has quit [Changing host]
haylon has joined #ruby
biox_ has quit [Quit: brb servers are ded]
ResidentBiscuit has joined #ruby
sucks has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
sucks has joined #ruby
sucks has quit [Remote host closed the connection]
Ayey_ has joined #ruby
uZiel has joined #ruby
sagax has joined #ruby
Ayey_ has quit [Ping timeout: 250 seconds]
the_f0ster has joined #ruby
cschneid_ has joined #ruby
electrostat has quit [Quit: uwotm8]
PaulCapestany has quit [Read error: Connection reset by peer]
electrostat has joined #ruby
cschneid_ has quit [Ping timeout: 250 seconds]
PaulCape_ has joined #ruby
nofxx has quit [Remote host closed the connection]
electrostat_ has joined #ruby
nofxx has joined #ruby
electrostat has quit [Read error: Connection reset by peer]
electrostat_ is now known as electrostat
quobo has quit [Quit: Connection closed for inactivity]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Remote host closed the connection]
the_f0ster has quit [Ping timeout: 268 seconds]
ResidentBiscuit has joined #ruby
cschneid_ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 250 seconds]
cschneid_ has quit [Ping timeout: 250 seconds]
howdoi has joined #ruby
Toggi3 has quit [Ping timeout: 240 seconds]
hndk has quit [Remote host closed the connection]
jphase has joined #ruby
vee__ has quit [Ping timeout: 268 seconds]
Toggi3 has joined #ruby
zanoni has quit [Ping timeout: 268 seconds]
jphase has quit [Ping timeout: 240 seconds]
lucz has joined #ruby
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
jphase has joined #ruby
cschneid_ has joined #ruby
lucz has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
ogres has quit [Quit: Connection closed for inactivity]
vee__ has joined #ruby
cschneid_ has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
sucks has joined #ruby
jphase has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
lks128 has quit [Remote host closed the connection]
gix has quit [Ping timeout: 248 seconds]
gix has joined #ruby
uneeb has joined #ruby
uptime has left #ruby [#ruby]
uneeb has quit [Read error: Connection reset by peer]
xall has joined #ruby
kies has joined #ruby
the_f0ster has joined #ruby
nofxx has joined #ruby
the_f0ster has quit [Ping timeout: 250 seconds]
vee__ has quit [Ping timeout: 248 seconds]
JsilverT has joined #ruby
fullstack has quit [Ping timeout: 258 seconds]
Dimik has joined #ruby
ramfjord has joined #ruby
Rodya_ has joined #ruby
AnoHito has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 250 seconds]
<csmrfx> Do you add Gemfile.lock in your repo? Or .gitignore it?
ur5us has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<Radar> csmrfx: depends. What kind of repo is it?
ozcanesen has joined #ruby
<Radar> In a gem you wouldn't commit it but in other codebases you'd normally commit it. That is because you want to make sure that everyone is using the same dependenie.s
<Radar> dependencies*
vee__ has joined #ruby
<csmrfx> Radar so its just a game engine project that I'm going to open source and put up on github
<csmrfx> I guess the problem is I don't understand what Gemfile.lock is
fullstack has joined #ruby
<Radar> csmrfx: When you run `bundle install` it resolves all your gems' dependencies (and their dependencies) and LOCKS them down to just those exact versions. Next time you run `bundle install` it will install those exact versions.
<Radar> csmrfx: You _don't_ want this in a gem because in a gem you'll have a `gemspec` which tells RubyGems which versions to install... and the gems installed by the gemspec's dependencies _might_ be different from what's in your `Gemfile.lock`
michael1 has joined #ruby
fullstack has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
iamarun has joined #ruby
xall has quit [Ping timeout: 250 seconds]
sumobob has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
sumobob has quit [Client Quit]
cschneid_ has joined #ruby
AnoHito has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 252 seconds]
ozcanesen has quit [Quit: ozcanesen]
ramfjord has joined #ruby
guardianx has quit [Remote host closed the connection]
k3rn31 has joined #ruby
sucks has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: Leaving]
jphase has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
cschneid_ has joined #ruby
anisha has joined #ruby
Azure has quit [Quit: Oops.]
cschneid_ has quit [Ping timeout: 252 seconds]
jphase has quit [Ping timeout: 248 seconds]
the_f0ster has joined #ruby
rabajaj has joined #ruby
michael1 has quit [Ping timeout: 268 seconds]
jphase has joined #ruby
the_f0ster has quit [Ping timeout: 240 seconds]
<dminuoso> apeiros: Mmm. I gave this some good thought, and Im starting to agree with you.
<dminuoso> It's just too weird to have floating point represent monetary values.
<RickHull> what's a good example?
<RickHull> >> 0.1 + 0.2
<ruby[bot]> RickHull: # => 0.30000000000000004 (https://eval.in/895099)
<dminuoso> And is that a good way to represent how much money you have?
<RickHull> no, that's a simple example of floating point imprecision relative to decimal intuition
<dminuoso> Either you have 30 seconds, or you have 0.3000000000000204010273582489 cents.
<dminuoso> *cents
<dminuoso> nevermind then
jphase has quit [Ping timeout: 240 seconds]
xall has joined #ruby
<RickHull> i'm just saying, 0.1 + 0.2 is a good example of one float pitfall. it doesn't quite explain the pitfall of using floats for currency
<RickHull> if there were a similar simple example, that would be a good thing
<RickHull> but I'll take a complex one -- I am convinced it is a pitfall
cschneid_ has joined #ruby
<RickHull> your sense that double precision should be plenty for money -- this is compelling
<RickHull> so what's a good example to refute?
jphase has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
jameser has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
Technodrome has joined #ruby
cdg has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
troys_ is now known as troys
mson has quit [Quit: Connection closed for inactivity]
cdg has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
csmrfx is now known as c-c
uZiel has quit [Ping timeout: 268 seconds]
dinoangelov has joined #ruby
shoogz has quit [Quit: shoogz out]
uZiel has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
wewlad has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
kculpis has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
<wewlad> I'm having a brainfart. I'm working my way down for a code golf challenge, and I need to move the contents of my method inside of a loop. Any advice? https://pastebin.com/sAQFqTWy
<ruby[bot]> wewlad: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a5b2bc022554d03a719da0c23de126b8
<ruby[bot]> wewlad: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<wewlad> Thanks, robit
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
jphase has quit [Ping timeout: 268 seconds]
<wewlad> Anyway, I want to take the contents of `romanize` and use that directly in the lower loop. How can I do that?
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> the contents of romanize?
cdg has joined #ruby
<RickHull> you are calling romanize already in the lower loop
<RickHull> what more do you want?
<RickHull> do you want an array of romanized args?
shoogz has joined #ruby
<RickHull> ARGV.map { |a| romanize a }
<wewlad> I want the contents of romanize in the lower loop. The objective is to print a list of romanized numbers on new lines
<RickHull> romanize is a method / function
<RickHull> it has no inherent contents except the definition
<RickHull> do you want the result of calling romanize on a particular arg?
<RickHull> probably you want `puts ARGV.map { |a| romanize(a) }`
<RickHull> but this is roughly equivalent to what you have
<wewlad> I don't understand. I'm saying that I want to lower the overall character count by adding the functionality of `romanize` to the ARGV loop.
<wewlad> It's for a code golf thing. Let me prep a pseudocode example
<RickHull> ok
<RickHull> ARGV.map { |a| D.map { |ltr, val| ltr.to_s * num.to_i.divmod(val).first } }
cdg has quit [Ping timeout: 246 seconds]
<RickHull> oh, .join in there
<wewlad> Something roughly equivilent to this: https://gist.github.com/anonymous/d5505ee79d0e99ef956219b7c31774aa
<RickHull> ARGV.map { |a| D.map { |ltr, val| ltr.to_s * num.to_i.divmod(val).first }.join }
biberu has joined #ruby
fishcooker has joined #ruby
<RickHull> oops
<RickHull> ARGV.map { |a| D.map { |ltr, val| ltr.to_s * a.to_i.divmod(val).first }.join }
<wewlad> That doesn't appear to work
<RickHull> it depends on what D has
mozzarella has joined #ruby
<wewlad> Oh, it looks like I didn't copy that in the first gist
<wewlad> That will turn given args into roman numerals
<RickHull> same answer
<RickHull> just make sure D is defined
<wewlad> But it doesn't work
Sparky has joined #ruby
<RickHull> ok, I haven't tested it
<Sparky> Hello everyone
<RickHull> but you should be able to figure it out
<wewlad> I'm just asking how to extract the roman function into the lower loop
<RickHull> that's what I showed
<wewlad> I am unable to figure it out, that's why I'm asking
<wewlad> But your example didn't work
<RickHull> it's very close, if you are correct that it doesn't work
<RickHull> in what way is it not working?
<Sparky> I am learning ruby right now and I was wondering... How can I spot a string inside of a string? Is it when I see "" inside of "" ?
<wewlad> It prints a vastly wrong answer with (seemingly) no connection to the correct answer
<RickHull> Sparky: check String#substr
sent-hil has joined #ruby
<RickHull> wewlad: try it with ARGV = ["1"]
<RickHull> and give actual vs expected results
<Sparky> RickHull: What's that?
<RickHull> substr = substring
<RickHull> aka a string inside a string
<wewlad> 1 outputs "I", which is correct. However, 10 outputs "XIXVVIVIVIIIIIIIIII"
cschneid_ has joined #ruby
<RickHull> oh, I see, I simplified out some part of that
<RickHull> anyways, you should be able to see the general technique
<RickHull> don't oversimplify like I did
<RickHull> the multiple assignment is doing reduction over the map
alfiemax has joined #ruby
<RickHull> I missed that
<RickHull> see where I use .first? I am skipping the multiple assignment there; I oversimplified
<RickHull> you will need two statements / expressions inside the D.map block
<RickHull> as in the romanize method
Rodya_ has quit [Remote host closed the connection]
<wewlad> I think I see what you mean. Thank you!
zapata has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
aufi has joined #ruby
eckhardt has joined #ruby
the_f0ster has joined #ruby
jarnalyrkar has joined #ruby
<Sparky> I think I'm starting to get this ruby thing, at least basic strings and variables- neat!
jarnalyrkar has quit [Client Quit]
jarnalyrkar has joined #ruby
ta has quit [Remote host closed the connection]
jphase has joined #ruby
uZiel has quit [Ping timeout: 250 seconds]
<RickHull> alright! generally a string is just a flat list of chars/bytes/codepoints
<Sparky> The things that I put in the quotations, right?
<RickHull> while embedded quotes can be annoying, you don't generally see this problem in source code very much
<RickHull> >> ["a string", 'a string "with double quotes"']
<ruby[bot]> RickHull: # => ["a string", "a string \"with double quotes\""] (https://eval.in/895131)
<RickHull> >> %q{you can use "double quotes" and 'single quotes' inside percent-q}
<ruby[bot]> RickHull: # => "you can use \"double quotes\" and 'single quotes' inside percent-q" (https://eval.in/895132)
the_f0ster has quit [Ping timeout: 264 seconds]
<RickHull> >> "a string 'with single quotes'"
<ruby[bot]> RickHull: # => "a string 'with single quotes'" (https://eval.in/895133)
<Sparky> I have no idea what's going on, did I mention that I've only been studying for a day?
mikecmpbll has quit [Quit: inabit. zz.]
jphase has quit [Ping timeout: 240 seconds]
<RickHull> >> sparky = 'new'; "here is a #{sparky} example of string interpolation"
<ruby[bot]> RickHull: # => "here is a new example of string interpolation" (https://eval.in/895135)
alfiemax has quit [Read error: Connection reset by peer]
<Sparky> A new example of a string interpolation?
<Sparky> OH!
alfiemax has joined #ruby
<Sparky> hah, right you set a variable
<Sparky> I get that
<RickHull> the first example, I show a simple string delimited with double quotes, and then a similar string delimited similarly, but with double quotes embedded
reber has joined #ruby
<RickHull> if you use 'single quotes' to delimit the string, you are allowed to use naked "double quotes" within
<RickHull> likewise if you use "double quotes" to delimit the string, you can use naked 'single quotes' within
Rodya_ has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
<RickHull> if you need both "double quotes" and 'single quotes' then you can use %q{} to delimit the string
<RickHull> or you can just escape them "like \"this\""
<Sparky> This is what I'm working on, I believe maybe what you are explaining is slightly over my head at this point https://learnrubythehardway.org/book/ex6.html
alfiemax has joined #ruby
ahrs has quit [Remote host closed the connection]
<RickHull> it's all good, I have to leave soon, you are on the path!
jphase has joined #ruby
ahrs has joined #ruby
<Sparky> I'm picking up and understanding most of what is going on int he code that I have been using, I've even been able to modify it to do other things. Really simple things, but I think I have a basic understanding of what is being taught
<RickHull> make sure you are using irb or pry
<RickHull> are you familiar with irb?
<Sparky> Right!
ramfjord has joined #ruby
<Sparky> So when I go into my linux terminal, I can type "irb"
<Sparky> and then I get a.. ruby shell
zapata has joined #ruby
<Sparky> I think its a shell, right?
<RickHull> yes, a REPL
<RickHull> Read Eval Print Loop
<c-c> Ideas on how to create a print-method that prints the name of the particular instace that calls it?
<RickHull> it accepts an expression, prints the result
<Sparky> So basically I can do irb, and do real time- uhh coding?
<RickHull> c-c: see #caller
<RickHull> Sparky: yup
Rodya_ has quit [Ping timeout: 252 seconds]
<RickHull> >> like_what = 'this'; "rather like #{like_what}"
<ruby[bot]> RickHull: # => "rather like this" (https://eval.in/895142)
<RickHull> >> %w{here is an expression that is represented as an array}
<ruby[bot]> RickHull: # => ["here", "is", "an", "expression", "that", "is", "represented", "as", "an", "array"] (https://eval.in/895143)
<Sparky> Woah
<RickHull> try the same thing in irb :)
<c-c> Yes, I tried #caller
<c-c> >> def prt s; p "#{caller}: " + s.to_s; end; prt "foo"
<ruby[bot]> c-c: # => "[\"/tmp/execpad-118043d7f45e/source-118043d7f45e:2:in `<main>'\"]: foo" ...check link for more (https://eval.in/895144)
<Sparky> >> %w{here is also an expression represented as an array}
<Sparky> ><
<c-c> its strange
<RickHull> c-c: it looks ok -- i think it has an array representation
ramfjord has quit [Ping timeout: 250 seconds]
<RickHull> Sparky: try it irb :)
fishcooker has quit [Quit: Leaving.]
<Sparky> Got it!
<RickHull> also c-c : things like caller and such can behave differently in a REPL like irb
quobo has joined #ruby
<RickHull> gotta run, g'night
<c-c> I want to know what the instance is. ID and class. Kernel#caller returns a call stack, with ruby filenames.
RickHull has quit [Quit: Page closed]
<c-c> I can get the ID and class of the instance that calls the printing method, by passing it in as argument: prt mstr, self
<c-c> but wouldn't mind if the prt -method could just deduce that
ramfjord has joined #ruby
<dminuoso> c-c: look into binding-of-caller
<dminuoso> Arguably the most useful native extension in existence, making me wonder why this has not went into Ruby.
jphase has quit [Ping timeout: 268 seconds]
gix has quit [Quit: Client exiting]
uZiel has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
Ayey_ has joined #ruby
cschneid_ has joined #ruby
<waveprop> hm. in Rack, when i set @request['some_var'] = {'some' => 'data'} then @request['some_var'] is nil when i try to read it further down the middleware stack
mim1k has quit [Ping timeout: 246 seconds]
wewlad has quit [Quit: Page closed]
BTRE has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
conta has joined #ruby
ramfjord has joined #ruby
<Sparky> Can someone eli5 what is going on in this? I got the code to work, but I really don't understand what is happening.
ramfjord has quit [Ping timeout: 240 seconds]
scatterp has quit [Ping timeout: 240 seconds]
scatterp has joined #ruby
kristofferR has joined #ruby
<baweaver> you put name tags in the string, and % knows just the thing for 'em: A hash!
<baweaver> So we shove those values right on in there and voila! String!
<baweaver> It's a throwback to ol' man C and sprintf before we had nice things like interpolation
troys has quit [Quit: Bye]
BTRE has joined #ruby
<baweaver> That said, it does definitely have its uses for fixed width columns and formatted rows
<baweaver> Though I've used that maybe all of 5 times in some 7-8 years of Ruby so your mileage may vary.
<baweaver> unless you could code golf
<baweaver> then I've abused the heck out of that poor thing
jphase has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
ta has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Rodya_ has joined #ruby
fullstack has joined #ruby
r3QuiEm_cL has joined #ruby
Rodya_ has quit [Ping timeout: 252 seconds]
JsilverT has quit [Ping timeout: 240 seconds]
funghi has joined #ruby
<funghi> hello i want to ask a question, but this is also include rails activerecord
<tobiasvl> funghi: ask away, but might be better suited for #rubyonrails
r3QuiEm_cL has quit [Client Quit]
funghi has left #ruby [#ruby]
jphase has quit [Ping timeout: 268 seconds]
kryptoz has joined #ruby
claudiuinberlin has joined #ruby
r3QuiEm_cL has joined #ruby
r3QuiEm_cL has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
paranoicsan has joined #ruby
r3QuiEm_cL has joined #ruby
Sparky has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
anisha has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jphase has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
jphase has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
andikr has joined #ruby
hinbody has quit [Ping timeout: 248 seconds]
Sammichmaker has quit [Quit: Leaving]
InfinityFye has joined #ruby
hinbody has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
vondruch has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 258 seconds]
gix has joined #ruby
jphase has quit [Ping timeout: 250 seconds]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has quit [Client Quit]
hurricanehrndz has quit [Quit: Goodbye]
r3QuiEm_cL has joined #ruby
gix has joined #ruby
Silthias has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has joined #ruby
jphase has joined #ruby
VladGh_ has joined #ruby
mark_66 has joined #ruby
uZiel has joined #ruby
Silthias2 has joined #ruby
Silthias1 has quit [Ping timeout: 246 seconds]
VladGh has quit [Ping timeout: 250 seconds]
Silthias has quit [Ping timeout: 240 seconds]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r3QuiEm_cL has joined #ruby
hurricanehrndz has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
Nitza has joined #ruby
sent-hil has quit [Quit: Connection closed for inactivity]
connor_goodwolf has quit [Ping timeout: 240 seconds]
zautomata has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 246 seconds]
Dimik has quit [Ping timeout: 268 seconds]
Burgestrand has joined #ruby
Nitza has quit [Quit: Mutter: www.mutterirc.com]
alex`` has joined #ruby
claudiuinberlin has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
stan has quit [Read error: Connection reset by peer]
stan has joined #ruby
Ayey_ has left #ruby [#ruby]
jphase has joined #ruby
cschneid_ has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
alfiemax has quit [Remote host closed the connection]
jphase has joined #ruby
alfiemax has joined #ruby
zautomata has joined #ruby
anisha has joined #ruby
xco has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
dminuoso has quit [Ping timeout: 248 seconds]
raatiniemi has quit [Read error: Connection reset by peer]
darkness has joined #ruby
raatiniemi has joined #ruby
Beams has joined #ruby
dinoangelov has quit [Quit: (null)]
jphase has quit [Ping timeout: 268 seconds]
alex`` has quit [*.net *.split]
r3QuiEm_cL has quit [*.net *.split]
quobo has quit [*.net *.split]
GodFather has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
pfg has quit [*.net *.split]
itmerc[m] has quit [*.net *.split]
aagdbl[m] has quit [*.net *.split]
Giphy[m] has quit [*.net *.split]
ephemera_ has quit [*.net *.split]
avdi has quit [*.net *.split]
vayan has quit [*.net *.split]
craysiii has quit [*.net *.split]
jxf has quit [*.net *.split]
colstrom has quit [*.net *.split]
Meow-J has quit [*.net *.split]
doublyx has quit [*.net *.split]
creat has quit [*.net *.split]
clamstar has quit [*.net *.split]
aspiers has quit [*.net *.split]
z3uS has quit [*.net *.split]
charles81_ has quit [*.net *.split]
Yonk has quit [*.net *.split]
jidar has quit [*.net *.split]
schaary has quit [*.net *.split]
Guest67616 has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
oblak has quit [*.net *.split]
A124 has quit [*.net *.split]
skmp has quit [*.net *.split]
ReinH has quit [*.net *.split]
seanh has quit [*.net *.split]
pilne has quit [*.net *.split]
ozzloy has quit [*.net *.split]
j416 has quit [*.net *.split]
Nicmavr has quit [*.net *.split]
ShekharReddy has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
biox has quit [*.net *.split]
[reed] has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
ectos has quit [*.net *.split]
cyberRodent has quit [*.net *.split]
cschneid has quit [*.net *.split]
Flabbergazta has quit [*.net *.split]
twe4ked has quit [*.net *.split]
sunrunner20 has quit [*.net *.split]
bogdanteleaga has quit [*.net *.split]
havenwood has quit [*.net *.split]
esObe has quit [*.net *.split]
JoshL has quit [*.net *.split]
danieli has quit [*.net *.split]
fyrril has quit [*.net *.split]
ircmaxell has quit [*.net *.split]
emerson has quit [*.net *.split]
andersh has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
jokke has quit [*.net *.split]
Radar has quit [*.net *.split]
ghormoon has quit [*.net *.split]
Fenhl has quit [*.net *.split]
NikolausK has quit [*.net *.split]
Ober has quit [*.net *.split]
jhass has quit [*.net *.split]
adambeynon has quit [*.net *.split]
aarongodin has quit [*.net *.split]
solidsnack has quit [*.net *.split]
bcavileer has quit [*.net *.split]
knowtheory has quit [*.net *.split]
hayden___ has quit [*.net *.split]
cardoni has quit [*.net *.split]
dmnd has quit [*.net *.split]
Diabolik has quit [*.net *.split]
mroth has quit [*.net *.split]
jimeh has quit [*.net *.split]
danzilio has quit [*.net *.split]
machty has quit [*.net *.split]
yo61 has quit [*.net *.split]
jhill has quit [*.net *.split]
swgillespie has quit [*.net *.split]
pwillard has quit [*.net *.split]
A124 has joined #ruby
darkness has quit [Client Quit]
jhill has joined #ruby
Meow-J has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
Nitza has joined #ruby
conta has quit [Ping timeout: 248 seconds]
dminuoso has joined #ruby
sonne has quit [Ping timeout: 260 seconds]
turt2live has quit [Ping timeout: 246 seconds]
dinfuehr has quit [Ping timeout: 260 seconds]
zalipuha[m] has quit [Ping timeout: 240 seconds]
Matt[m]2 has quit [Ping timeout: 246 seconds]
M107262[m] has quit [Ping timeout: 246 seconds]
gokul_mr[m] has quit [Ping timeout: 255 seconds]
aviraldg has quit [Ping timeout: 250 seconds]
jonjits[m] has quit [Ping timeout: 248 seconds]
yana[m] has quit [Ping timeout: 241 seconds]
Tagami[m] has quit [Ping timeout: 264 seconds]
velu_aon[m] has quit [Ping timeout: 255 seconds]
KevinMGranger has quit [Ping timeout: 255 seconds]
dman[m] has quit [Ping timeout: 240 seconds]
astronavt[m] has quit [Ping timeout: 240 seconds]
watzon has quit [Ping timeout: 250 seconds]
haylon has quit [Ping timeout: 250 seconds]
torarne has quit [Ping timeout: 264 seconds]
kua[m] has quit [Ping timeout: 255 seconds]
lasenna[m] has quit [Ping timeout: 255 seconds]
dinfuehr has joined #ruby
Hanma[m] has quit [Ping timeout: 276 seconds]
bokayio has joined #ruby
dtcristo has quit [Ping timeout: 264 seconds]
colstrom has joined #ruby
ircmaxell has joined #ruby
Fenhl has joined #ruby
pilne has joined #ruby
aspiers has joined #ruby
Yonk has joined #ruby
Guest67616 has joined #ruby
esObe has joined #ruby
daemonwrangler has joined #ruby
[reed] has joined #ruby
Nicmavr has joined #ruby
jmhmccr has joined #ruby
j416 has joined #ruby
JoshL has joined #ruby
vayan has joined #ruby
cyberRodent has joined #ruby
Radar has joined #ruby
jidar has joined #ruby
ectos has joined #ruby
biox has joined #ruby
clamstar has joined #ruby
ReinH has joined #ruby
mikeiniowa has joined #ruby
cschneid has joined #ruby
jxf has joined #ruby
bogdanteleaga has joined #ruby
r3QuiEm_cL has joined #ruby
andersh has joined #ruby
SegFaultAX has joined #ruby
fyrril has joined #ruby
sonOfRa has joined #ruby
schaary has joined #ruby
Ober has joined #ruby
alex`` has joined #ruby
NikolausK has joined #ruby
danieli has joined #ruby
ephemera_ has joined #ruby
seanh has joined #ruby
skmp has joined #ruby
Flabbergazta has joined #ruby
GodFather has joined #ruby
z3uS has joined #ruby
charles81_ has joined #ruby
emerson has joined #ruby
ShekharReddy has joined #ruby
creat has joined #ruby
havenwood has joined #ruby
sunrunner20 has joined #ruby
oblak has joined #ruby
ghormoon has joined #ruby
quobo has joined #ruby
craysiii has joined #ruby
jokke has joined #ruby
doublyx has joined #ruby
avdi has joined #ruby
jhass has joined #ruby
pfg has joined #ruby
ozzloy has joined #ruby
twe4ked has joined #ruby
adambeynon has joined #ruby
yo61 has joined #ruby
Diabolik has joined #ruby
dmnd has joined #ruby
mroth has joined #ruby
pwillard has joined #ruby
solidsnack has joined #ruby
bcavileer has joined #ruby
hayden___ has joined #ruby
aarongodin has joined #ruby
machty has joined #ruby
danzilio has joined #ruby
jimeh has joined #ruby
swgillespie has joined #ruby
cardoni has joined #ruby
knowtheory has joined #ruby
Nitza has quit [Client Quit]
sonne has joined #ruby
Diabolik has quit [Max SendQ exceeded]
yo61 has quit [Max SendQ exceeded]
creat has quit [Max SendQ exceeded]
swgillespie has quit [Max SendQ exceeded]
quobo has quit [Max SendQ exceeded]
machty has quit [Max SendQ exceeded]
ghormoon has quit [Max SendQ exceeded]
pwillard has quit [Max SendQ exceeded]
jxf has quit [Max SendQ exceeded]
clamstar has quit [Max SendQ exceeded]
sunrunner20 has quit [Max SendQ exceeded]
danieli has quit [Max SendQ exceeded]
ShekharReddy has quit [Max SendQ exceeded]
ghormoon has joined #ruby
danieli has joined #ruby
danieli has joined #ruby
quobo has joined #ruby
jxf has joined #ruby
swgillespie has joined #ruby
Diabolik has joined #ruby
pwillard has joined #ruby
ShekharReddy has joined #ruby
yo61 has joined #ruby
naquad has quit [Ping timeout: 260 seconds]
machty has joined #ruby
naquad has joined #ruby
creat has joined #ruby
ahrs has quit [Ping timeout: 260 seconds]
clamstar has joined #ruby
Pisuke has joined #ruby
sunrunner20 has joined #ruby
MyMind has quit [Ping timeout: 268 seconds]
rhyselsmore has joined #ruby
ahrs has joined #ruby
mjolnird has quit [Quit: Leaving]
ramfjord has joined #ruby
Serpent7776 has joined #ruby
Tagami[m] has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
scatterp has quit [Read error: Connection reset by peer]
hackeron_ has joined #ruby
scatterp has joined #ruby
mjolnird has joined #ruby
stamina has joined #ruby
hackeron has quit [Ping timeout: 248 seconds]
Rodya_ has joined #ruby
ferr has joined #ruby
ferr has left #ruby [#ruby]
mikecmpbll has joined #ruby
mim1k has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
FahmeF has quit [Read error: Connection reset by peer]
FahmeF has joined #ruby
Toggi3 has quit [Ping timeout: 240 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ruby
cgfbee has quit [Excess Flood]
GodFather has quit [Quit: Ex-Chat]
adlerdias has joined #ruby
GodFather has joined #ruby
apeiros has quit [Remote host closed the connection]
davic has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
davic has joined #ruby
aviraldg has joined #ruby
jonjits[m] has joined #ruby
dtcristo has joined #ruby
lasenna[m] has joined #ruby
M107262[m] has joined #ruby
yana[m] has joined #ruby
Hanma[m] has joined #ruby
torarne has joined #ruby
astronavt[m] has joined #ruby
watzon has joined #ruby
Giphy[m] has joined #ruby
velu_aon[m] has joined #ruby
haylon has joined #ruby
turt2live has joined #ruby
dman[m] has joined #ruby
KevinMGranger has joined #ruby
kua[m] has joined #ruby
aagdbl[m] has joined #ruby
Matt[m]2 has joined #ruby
itmerc[m] has joined #ruby
gokul_mr[m] has joined #ruby
zalipuha[m] has joined #ruby
jashmatthews has joined #ruby
jashmatthews has quit [Remote host closed the connection]
cgfbee has joined #ruby
faces has joined #ruby
jashmatthews has joined #ruby
jameser has quit [Ping timeout: 258 seconds]
adlerdias has left #ruby [#ruby]
ldnunes has joined #ruby
jphase has joined #ruby
jashmatthews has quit [Ping timeout: 246 seconds]
jameser has joined #ruby
FahmeF_ has joined #ruby
FahmeF has quit [Ping timeout: 240 seconds]
rahul_bajaj has joined #ruby
apeiros has quit []
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rabajaj has quit [Ping timeout: 268 seconds]
jphase has quit [Ping timeout: 252 seconds]
conta has joined #ruby
tvw has joined #ruby
jashmatthews has joined #ruby
haraoka has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahul_bajaj has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
rahul_bajaj has joined #ruby
banisterfiend has joined #ruby
cschneid_ has joined #ruby
dminuoso has quit [Changing host]
dminuoso has joined #ruby
konsolebox has joined #ruby
workmad3 has joined #ruby
ramfjord has joined #ruby
Burgestrand has quit [Quit: Closing time!]
cdg has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
cschneid_ has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
jaruga has joined #ruby
rahul_bajaj has quit [Ping timeout: 258 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has quit [Ping timeout: 250 seconds]
zanoni has joined #ruby
jphase has quit [Ping timeout: 268 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
charliesome has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
kryptoz has quit [Remote host closed the connection]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
teej has quit [Quit: Connection closed for inactivity]
Toggi3 has joined #ruby
rgr has joined #ruby
oetjenj has joined #ruby
jashmatthews has quit [Remote host closed the connection]
oetjenj has quit [Client Quit]
jashmatthews has joined #ruby
banisterfiend has joined #ruby
scatterp has quit []
Hexafox[I] has joined #ruby
jashmatthews has quit [Ping timeout: 260 seconds]
paranoicsan has quit [Quit: paranoicsan]
Toggi3 has quit [Ping timeout: 268 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkoller has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
banisterfiend has joined #ruby
jashmatthews has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
oetjenj has joined #ruby
rahul_bajaj has joined #ruby
<Hexafox[I]> Is using Capistrano to copy a single ruby file to a server and start it overkill?
raynold has quit [Quit: Connection closed for inactivity]
oded has joined #ruby
paranoicsan has joined #ruby
hfp_work has quit [Quit: bye]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
hfp_work has joined #ruby
iamarun has quit [Remote host closed the connection]
jameser has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Remote host closed the connection]
alfiemax has joined #ruby
deathwisdave has joined #ruby
xall has quit [Read error: Connection reset by peer]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
znz_jp has quit [Remote host closed the connection]
the_f0ster has joined #ruby
vondruch_ has joined #ruby
jashmatthews has quit [Remote host closed the connection]
jrafanie has joined #ruby
znz_jp has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
jrafanie has quit [Client Quit]
r3QuiEm_cL has joined #ruby
the_f0ster has quit [Ping timeout: 250 seconds]
xco has quit [Ping timeout: 264 seconds]
xco has joined #ruby
guacamole has joined #ruby
c0mrad3 has joined #ruby
guacamole has quit [Ping timeout: 240 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
naprimer has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
ldnunes has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
Toggi3 has joined #ruby
r3QuiEm_cL has joined #ruby
oetjenj has quit [Ping timeout: 240 seconds]
anisha has quit [Read error: Connection reset by peer]
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
Toggi3 has quit [Ping timeout: 268 seconds]
anisha has joined #ruby
minimalism has quit [Quit: minimalism]
ldnunes has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgr has quit [Quit: rgr]
truenito has joined #ruby
milardov_ has joined #ruby
alfiemax_ has joined #ruby
alex`` has quit [Ping timeout: 252 seconds]
fishcooker has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 260 seconds]
jashmatthews has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
Rodya_ has joined #ruby
rgr has joined #ruby
jashmatthews has quit [Ping timeout: 252 seconds]
hopsoft has quit [Quit: Textual IRC Client: www.textualapp.com]
vondruch_ has joined #ruby
hopsoft has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
Rodya_ has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
roamingdog has joined #ruby
hopsoft has quit [Client Quit]
mostlybadfly has joined #ruby
alfiemax_ has quit [Ping timeout: 250 seconds]
hopsoft has joined #ruby
xco has quit [Read error: Connection reset by peer]
anisha has quit [Ping timeout: 250 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
rgr has quit [Quit: rgr]
hopsoft has quit [Client Quit]
hopsoft has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
xco has quit [Client Quit]
anisha has joined #ruby
deathwisdave has quit [Ping timeout: 250 seconds]
jameser has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardov_ has quit [Remote host closed the connection]
shinnya has joined #ruby
dn` has quit [Quit: dn`]
vondruch has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
dn` has joined #ruby
mjolnird has quit [Quit: Leaving]
conta has quit [Quit: conta]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 246 seconds]
guille-moe has joined #ruby
ur5us has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
ramfjord has joined #ruby
hightower2 has joined #ruby
mjolnird has joined #ruby
conta has joined #ruby
jameser has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
[[thufir]] has joined #ruby
FahmeF_ has quit [Ping timeout: 248 seconds]
roamingdog has quit []
anisha has quit [Ping timeout: 260 seconds]
charliesome has quit [Ping timeout: 248 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Toggi3 has joined #ruby
jashmatthews has joined #ruby
banisterfiend has joined #ruby
jameser has joined #ruby
JsilverT has joined #ruby
anisha has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
stamina has quit [Quit: WeeChat 1.9.1]
cschneid_ has joined #ruby
Toggi3 has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
charliesome has joined #ruby
GodFather_ has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
GodFather_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
anisha has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
Rodya_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
truenito has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 252 seconds]
papanik has joined #ruby
charliesome has joined #ruby
bmurt has joined #ruby
hopsoft has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John___ has joined #ruby
jashmatthews has quit [Quit: Leaving...]
tcopeland has quit [Quit: tcopeland]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
fishcooker has quit [Quit: Leaving.]
the_f0ster has joined #ruby
yCrazyEdd has quit [Remote host closed the connection]
darkmorph has joined #ruby
the_f0ster has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
kryptoz has joined #ruby
Bish has joined #ruby
<Bish> LyndsySimon: hows live with sequel
<Bish> life*
<LyndsySimon> Bish: I've not touched it, other than to read the docs. I don't write Ruby outside of work, as a rule.
guille-moe has quit [Ping timeout: 240 seconds]
<LyndsySimon> I did make some significant progress on my CSV gem, thouhg.
alnewkirk has joined #ruby
guille-moe has joined #ruby
sepp2k has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Toggi3 has joined #ruby
JsilverT has quit [Ping timeout: 248 seconds]
alan_w has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
vondruch has joined #ruby
swills has joined #ruby
Toggi3 has quit [Ping timeout: 250 seconds]
jrafanie has joined #ruby
kryptoz has quit [Remote host closed the connection]
DLSteve has joined #ruby
kryptoz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 250 seconds]
naprimer has joined #ruby
Rodya_ has joined #ruby
fishcooker has joined #ruby
bauruine has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
_whitelogger has quit [Ping timeout: 250 seconds]
_whitelogger has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
mson has joined #ruby
kryptoz has quit [Remote host closed the connection]
Toledo has joined #ruby
Toledo is now known as croberts
Vaanir has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Toggi3 has joined #ruby
tcopeland has joined #ruby
guille-moe has quit [Ping timeout: 268 seconds]
alfiemax has joined #ruby
milardovich has quit [Remote host closed the connection]
the_f0ster has joined #ruby
oleo has joined #ruby
ta has quit [Remote host closed the connection]
milardovich has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
rippa has joined #ruby
faces has quit [Ping timeout: 252 seconds]
the_f0ster has quit [Ping timeout: 250 seconds]
kryptoz has joined #ruby
hightower2 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 268 seconds]
<Bish> LyndsySimon: why as a rule?
uZiel has quit [Ping timeout: 268 seconds]
the_f0ster has joined #ruby
synthroid has joined #ruby
Rodya_ has joined #ruby
Guest17098 has joined #ruby
kryptoz has quit [Remote host closed the connection]
Rapture has joined #ruby
the_f0ster has quit [Ping timeout: 246 seconds]
FahmeF has joined #ruby
<LyndsySimon> Bish: because I'm honestly not a huge fan of Ruby, like I said. I am a fan of writing stuff I like, though, and this CSV gem is one of those things. Hence, I'm writing Ruby in my personal time even though it's not my preferred language and not something I would normally work in without a financial reason.
FrostCandy has joined #ruby
alfiemax has quit [Remote host closed the connection]
cr3 has joined #ruby
oded has quit [Quit: Konversation terminated!]
alfiemax has joined #ruby
orbyt_ has joined #ruby
banisterfiend has joined #ruby
polishdub has joined #ruby
alfiemax_ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
hopsoft has joined #ruby
Guest17098 has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
_aeris_ has quit [*.net *.split]
kryptoz has joined #ruby
dviola has joined #ruby
eclm has joined #ruby
kryptoz has quit [Read error: Connection reset by peer]
kryptoz has joined #ruby
lucz has joined #ruby
alan_w has quit [Ping timeout: 268 seconds]
paranoicsan has quit [Quit: paranoicsan]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clemens3 has joined #ruby
_aeris_ has joined #ruby
nowhereman has joined #ruby
alex`` has joined #ruby
<Bish> LyndsySimon: whats wrong with ruby
dionysus69 has joined #ruby
<LyndsySimon> Bish: Nothing is *wrong* with Ruby
<Bish> it's just boxes sending messages to each other, with block-proc syntax
<LyndsySimon> At least, not that I know of.
<LyndsySimon> It just doesn't fit the way I think about problems as well as many other languages. Personal preference is all.
<Bish> it's fukin slow, other than that, i cannot think of something bad
<LyndsySimon> If I had to wrap my complaints into a single statement, I'd say: Ruby encourages developers to create things that behave in unexpected and difficult-to-debug ways.
<havenwood> Ruby, you'll shoot your eye out!
lobloblobster has quit [Quit: Connection closed for inactivity]
<LyndsySimon> Metaprogramming, for instance. It's a pain in the ass in Python, and as a result while it's available it's something that isn't done much unless it's really the best solution. It's super-easy in Clojure, and as a result at least when you run in to it, it's more obvious what's happening and easier to debug.
eclm has quit [Ping timeout: 268 seconds]
<Bish> weird, i had the feeling that happens less to me in ruby
<LyndsySimon> Ruby takes a more middle path. It's approachable for less-experienced developers, but it has a much steeper learning curve and it's not always obvious when you're dealing with something you don't fully understand.
<Bish> ven with metaprogramming
<Bish> i choose the oddest programming style for my current project
<Bish> and it works
<Bish> i dont get that strip
<Bish> why is that kid screaming class << self
<havenwood> the infant has learned Ruby
<havenwood> yield!
apeiros_ has joined #ruby
<LyndsySimon> ... because it doesn't conform to the class syntax used elsewhere, and because classes in Ruby don't have metaclasses in the same way that other languages do ...
<Bish> well, yeah ruby does it correctly
<Bish> what a bummer
<havenwood> LyndsySimon: Smalltalk had some good ideas.
cschneid_ has joined #ruby
milardovich has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
nicesignal has quit [Remote host closed the connection]
<LyndsySimon> havenwood: I don't think it's a bad idea, and I don't think Ruby is a bad language. I just prefer a different way of dealing with it :)
<LyndsySimon> Bish: "Correct", in this case, is subjective.
nicesignal has joined #ruby
<LyndsySimon> Bish: It's more flexible without question. I just see the point of this sort of language to be to reduce the depth at which I have to think about things when I'm writing code. For me, Python does that much more effectively than Ruby
<LyndsySimon> I really miss Python decorators when I'm working in Ruby, much more than I miss blocks in Python.
nofxx has quit [Remote host closed the connection]
alfiemax has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
<havenwood> TL;DR: "Python decorators do in fact provide a certain amount of additional power and elegance over the Python before decorators. However, this power is simply a subset of the available Ruby functionality."
Senecea has joined #ruby
uZiel has joined #ruby
<LyndsySimon> havenwood: Right - that's exactly my complaint with Ruby. It's not that it's lacking features, it's that it has too many features.
<havenwood> I can see reaching for the pattern, but there's nothing missing in Ruby on that front.
alfiemax has quit [Ping timeout: 252 seconds]
<LyndsySimon> Python decided on a pattern, made is easy to use, and eschewed others.
<havenwood> LyndsySimon: Yeah, TIMTOWTDI is something that some folk love and some folk hate.
<LyndsySimon> AFK - going into a meeting.
Rodya_ has quit [Quit: Leaving...]
kryptoz has quit [Remote host closed the connection]
cschneid_ has joined #ruby
<Bish> regarding the fact that abstraction itself might be a human-made construct.. everything is subjective when it comes to programming
<Bish> but if you mean with "metaclasses like ruby" that classes itself are objects, i think that is very correct
<Bish> and not like in javascript/c++ where you kinda like lose the information what something was at compiletime, or more information that is
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
deathwisdave has joined #ruby
[Butch] has joined #ruby
<deathwisdave> hello
iamarun has joined #ruby
anisha has joined #ruby
jrafanie has joined #ruby
alfiemax has joined #ruby
synthroid has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
apparition has joined #ruby
synthroid has joined #ruby
troys has joined #ruby
Technodrome has joined #ruby
eclm has joined #ruby
lucz has quit [Remote host closed the connection]
milardovich has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kculpis has joined #ruby
rahul_bajaj has quit [Quit: Leaving]
dinfuehr has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
dinfuehr has joined #ruby
clemens3 has quit [Quit: WeeChat 1.0.1]
nowhereman has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Remote host closed the connection]
thinkpad has quit [Ping timeout: 240 seconds]
milardov_ has joined #ruby
aufi has quit [Quit: Leaving]
anisha has quit [Ping timeout: 250 seconds]
milardovich has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
raatiniemi has quit [Read error: Connection reset by peer]
raatiniemi has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
connor_goodwolf has joined #ruby
apeiros_ has joined #ruby
eroux has joined #ruby
guille-moe has joined #ruby
the_f0ster has joined #ruby
<deathwisdave> hello
mson has quit [Quit: Connection closed for inactivity]
<havenwood> deathwisdave: hi
anisha has joined #ruby
eroux has quit [Ping timeout: 240 seconds]
mochiyoda_ has quit [Ping timeout: 260 seconds]
mochiyoda_ has joined #ruby
lucz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FahmeF_ has joined #ruby
FahmeF has quit [Ping timeout: 268 seconds]
lucz has quit [Remote host closed the connection]
fishcooker has quit [Quit: Leaving.]
lucz has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
cvander has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
gix has quit [Quit: Client exiting]
anisha has quit [Ping timeout: 250 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
Technodrome has joined #ruby
guille-moe has joined #ruby
jaruga has quit [Ping timeout: 268 seconds]
gix has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
iamarun has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
anisha has joined #ruby
michael1 has joined #ruby
FahmeF_ has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 258 seconds]
alfiemax_ has joined #ruby
Guest88823 has joined #ruby
Guest88823 has quit [Client Quit]
Serpent7776 has quit [Quit: Leaving]
the_f0ster has quit [Ping timeout: 250 seconds]
the_f0ster has joined #ruby
JsilverT has joined #ruby
lucz has quit [Remote host closed the connection]
<cr3> if I have class Bar < Foo; ALIASES = [1,2,3]; end and a class method in the Foo base class, how should I be accessing ALIASES from the subclass?
exchgr has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
nowhereman has joined #ruby
<havenwood> cr3: What have you tried?
<cr3> havenwood: the problems turns out I need @@ALIASES
<havenwood> cr3: If you gist your attempt it might help reveal your intention.
<havenwood> cr3: I don't turn to class variables like `@@aliases` very often.
<cr3> havenwood: nor do I, that's why I forgot that syntax :)
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exchgr has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
JsilverT has quit [Quit: WeeChat 2.0-dev]
guacamole has quit [Ping timeout: 250 seconds]
Beams has quit [Quit: .]
alfiemax has joined #ruby
andikr has quit [Remote host closed the connection]
orbyt_ has joined #ruby
alfiemax_ has quit [Ping timeout: 260 seconds]
marxarelli has joined #ruby
guacamole has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
nowhereman has joined #ruby
SeepingN has joined #ruby
lucz has joined #ruby
guacamole has quit [Ping timeout: 248 seconds]
guacamol_ has joined #ruby
lucz has quit [Ping timeout: 268 seconds]
Silthias has joined #ruby
<micalexander> Is there a way to list gems created and pushed to rubygems.org?
<micalexander> from the command line
Silthias2 has quit [Ping timeout: 268 seconds]
<havenwood> micalexander: gem list --remote
<micalexander> havenwood: I am only looking for the gems that I created, not everything
ta has quit [Remote host closed the connection]
<havenwood> micalexander: You could use the RubyGems API or write a little fetcher in Ruby.
<micalexander> gotcha ok
<havenwood> micalexander: Gem::SpecFetcher, or whatever it is.
nowhereman has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
uZiel has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Remote host closed the connection]
teej has joined #ruby
CrazyEddy has joined #ruby
fishcooker has joined #ruby
fishcooker has quit [Client Quit]
mim1k has quit [Ping timeout: 264 seconds]
michael1 has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
jrafanie has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
lucz has joined #ruby
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
eckhardt has joined #ruby
ta has joined #ruby
lucz has quit [Ping timeout: 260 seconds]
michael1 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
pwnd_nsfw has joined #ruby
ta has quit [Ping timeout: 250 seconds]
deathwisdave has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
kculpis has quit [Remote host closed the connection]
kculpis has joined #ruby
lucz has joined #ruby
nolakat has joined #ruby
raatiniemi has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
raatiniemi has joined #ruby
raynold has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
lucz has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
nolakat has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nolakat has joined #ruby
lamduh has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
<lamduh> is there a way to skip part of a range/sequence when creating the sequence?
<lamduh> I want to (0...50).map { ('A'..'Z').to_a[rand(26)] }.join
<lamduh> to look something like (0...50).map { ('A'..'Z', 'a'..'z').to_a[rand(26)] }.join
gix has quit [Ping timeout: 248 seconds]
gix has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
alfiemax has joined #ruby
kobina has joined #ruby
Dimik has joined #ruby
apeiros_ has joined #ruby
RickHull has joined #ruby
ogres has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
ta has quit [Ping timeout: 260 seconds]
eckhardt has joined #ruby
ta has joined #ruby
Archrover has quit [Ping timeout: 268 seconds]
ta has quit [Ping timeout: 248 seconds]
kobina has quit [Quit: HydraIRC -> http://www.hydrairc.com <- IRC with a difference]
Archrover has joined #ruby
cdg has quit [Remote host closed the connection]
conta2 has joined #ruby
milardovich has joined #ruby
<mozzarella> lamduh: not sure I understand
hopsoft has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys is now known as troys_
nowhereman has joined #ruby
tvw has quit [Remote host closed the connection]
<lamduh> I just need to get random characters 'a'-'z' and 'A-'Z' but there are random characters between Z and a that are messing things up..i want a hole in my range
<baweaver> >> [*'A'..'Z', *'a'..'z'].sample(50)
<ruby[bot]> baweaver: # => ["W", "y", "m", "A", "j", "l", "K", "F", "P", "R", "f", "t", "M", "b", "G", "N", "d", "x", "o", "r", ...check link for more (https://eval.in/895761)
milardov_ has quit [Ping timeout: 260 seconds]
<baweaver> Though I think that can only get each char once
conta2 has quit [Ping timeout: 240 seconds]
<baweaver> anyways, you can map it for similar effect
<baweaver> >> set = [*'A'..'Z', *'a'..'z']; 10.times.map { set.sample }.join(', ')
<ruby[bot]> baweaver: # => "p, d, q, R, N, o, Z, V, u, U" (https://eval.in/895763)
ur5us has joined #ruby
<RickHull> baweaver: pls no splat ;)
ur5us has quit [Remote host closed the connection]
<baweaver> shorthand is fair game in ze REPL
<jhass> Array.new(10) { set.sample } ;P
<jhass> splat assigned to a constant is fine IMO
<baweaver> jhass: good call
orbyt_ has joined #ruby
<baweaver> also welcome back
<jhass> ty
<apeiros_> o/ jhass
lucz has joined #ruby
<mochiyoda_> splat is bad now?
pork13 has joined #ruby
milardovich has quit [Remote host closed the connection]
ta has joined #ruby
<jhass> to create another array it's kinda inefficient compared to say a.to_a.concat(b), so don't do it in a loop
<RickHull> mochiyoda_: nah, just a joke -- we were benching various array and hash creation / mutation
<jhass> but as part of program setup it should be fine
<RickHull> and when constructing an array or set from multiple ranges, i think splat is maybe more natural
<RickHull> than range.to_a
<lamduh> ruby so fancy
workmad3 has quit [Ping timeout: 240 seconds]
Archrover has quit [Ping timeout: 240 seconds]
<mochiyoda_> ahh got you. cheers.
lucz has quit [Ping timeout: 260 seconds]
Senecea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pork13> Hello all... I'm having a little trouble with the jdbc/mysql gem, trying to execute a prepared_statement. I have a ? in my where clause, but whether I quote it or not I get a SQL syntax error.
<mochiyoda_> RickHull: I'd splat that myself out of habit
chmurifree has quit [Ping timeout: 250 seconds]
<lamduh> Well your examples gave me a good wayt to do it (0...50).map { [*'A'..'Z', *'a'..'z'].to_a[rand(52)] }.join
<lamduh> Really quick though...what does the * before the range mean?
<RickHull> it means, put them like ['A', 'B' .. ]
<pork13> %q{SELECT id, blahblah from `table` WHERE id = ?}
<RickHull> like *args where args is an array. foo(arg1, arg2, arg3)
<lamduh> That is what I would have expected as the default...what is the actual default
<jhass> does mysql have server side bind params yet or is it still all client side? well with jdbc it probably is client side anyway
Freshnuts has joined #ruby
<jhass> lamduh: the default is to just put it there as is, so in this case an array of two range objects
ta has quit [Ping timeout: 250 seconds]
<pork13> then I run execute_query(myVar) I get: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'myValue' at line 1
Archrover has joined #ruby
kculpis has quit [Remote host closed the connection]
[[thufir]] has quit [Ping timeout: 248 seconds]
babykosh has joined #ruby
<jhass> pork13: what's the real thing behind myValue?
kculpis has joined #ruby
<pork13> It's a String
<jhass> I promise as long as it's not a password copy pasting it to us will tell us nothing :P
<pork13> Fair enough... I'm just trying to keep it short, but I'll keep it real.. one sec!
chmurifree has joined #ruby
<RickHull> keep it real, short
<RickHull> the error in your SQL syntax is within myVar almost certainly
babykosh has quit [Client Quit]
<ruby[bot]> pork13: we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/862c424899b0053ee8278a707a370d06
<ruby[bot]> pork13: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
<lamduh> cool thanks
<pork13> I like this robot.:D
truenito has joined #ruby
Sparky has joined #ruby
<Sparky> Hello!
<RickHull> pork13: i'm guessing it's the ? -- don't you need to do the param substituion or whatever?
<havenwood> Sparky: hi
<jhass> so this is more of an JDBC question than a ruby one I guess :D And I'm sure the answer is because jdbc sucks :P
<pork13> Yeah.. I'm here because when I do this with JDBC in java, it works :( Was hoping you might have some light to shed on the jdbc/mysql gem's particular implementation...
<pork13> Hm, good call @jhass I'll try it
<Sparky> Do I have to gets.chomp.to_i for numbers? I can't just gets.chomp?
<pork13> Actually... The syntax error getting reported has the substituted value in it, so I think that stmtSelect.execute_query(hostname) is indeed handling the subbing.
<RickHull> ok yeah
raatiniemi has quit [Read error: Connection reset by peer]
<RickHull> that would do the substitution
<jhass> but maybe in the wrong way
<jhass> maybe it needs to know it's a string
<RickHull> where is the error happening?
<jhass> or "string value"
<RickHull> is a line of your paste causing the error?
raatiniemi has joined #ruby
govg has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
<pork13> error comes on line 11
<pork13> rSlocid = stmtSelect.execute_query(hostname)
<RickHull> confirm the value of hostname -- maybe it's nil?
<pork13> If I pass 0 args to that call, that's a different problem
<RickHull> passing nil would be a single arg
<pork13> hostname isn't nil; error is:
ta has joined #ruby
<pork13> ...check the manual that corresponds to your MySQL server version for the right syntax to use near 'angelica' at line 1...
<havenwood> Sparky: In Ruby 2.4+ you can provide a keyword argument to #gets so it chomps without another method call.
troys_ is now known as troys
<havenwood> Sparky: gets(chomp: true)
<pork13> You guys are right, this feels like a jdbc problem... and it's a subtle one I'm sure :P
<jhass> huh
<havenwood> Sparky: If you don't #to_i, you'll have a String.
<RickHull> pork13: i think you can prepare the statement first, and then examine it
<RickHull> before executing it
<jhass> let's stare at the query a bit, mysql tends to complain about the stuff after the problem more often than not :D
<RickHull> i.e. stmt.prepare(hostname) #=> String
<Sparky> havenwood: Cool! Thanks, I'll play with it and see what different things do, I guess that's the process of learning afterall
<jhass> can you try without the ` in the query?
<havenwood> Sparky: You don't need to chomp to #to_i though.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pork13> You've gotta be kidding me. That worked @jhass. Backticks are my new enemy.
<jhass> maybe they were the wrong kind, you're on OSX? :D
<pork13> I sure am!
<Sparky> havenwood: Can you Show me an example? Any time I hit # it blocks out the rest of the line for comment
ta has quit [Ping timeout: 260 seconds]
<jhass> then that'll be it
<pork13> There's more than one kind? OMG.
<jhass> sure, Unicode got you covered!
<havenwood> Sparky: #method_name is just a notation to say the thing after the # is a method
<pork13> I had no idea. #TIL
<pork13> Thanks for the save
<havenwood> Sparky: In irb or pry try: gets.to_i
<havenwood> Sparky: Compare with: gets
<lamduh> Why can you use map on a range e.g. (1..50).map {}. I dont see map as a memeber function onth e Range class? http://ruby-doc.org/core-2.2.0/Range.html
<havenwood> lamduh: Range mixes in Enumerable, which provides #map based on the Range#each implementation.
michael1 has quit [Ping timeout: 250 seconds]
<Sparky> havenwood: So gets gives the get/n and gets.to_i gives just the get without /n
<lamduh> Ah I see the included modules thing. Ive never used ruby before but my QA is trying to learn it so she can write your selenium tests and I am trying to explain to her why the method we came up above works
<havenwood> Sparky: There's another difference
<RickHull> Sparky: it's that to_i ignores the newline
<havenwood> Sparky: (Look for quotes on both return values.)
<Sparky> OH! gets puts it in a string?
<RickHull> yes
<RickHull> get-s -- s for string
<RickHull> gets puts it in a string and puts gets it in a string ;)
Technodrome has joined #ruby
<RickHull> >> "123\n\n\n".to_i
<ruby[bot]> RickHull: # => 123 (https://eval.in/895777)
ta has joined #ruby
<RickHull> >> ["123\n\n\n".chomp, "123\n\n\n".strip, "123\n\n\n".to_i]
<ruby[bot]> RickHull: # => ["123\n\n", "123", 123] (https://eval.in/895784)
AndBobsYourUncle has joined #ruby
<apeiros_> gets = get string, puts = put string
lagweezle has joined #ruby
Archrover has quit [Ping timeout: 248 seconds]
milardov_ has joined #ruby
truenito has quit [Ping timeout: 268 seconds]
Freshnuts has quit [Quit: Leaving]
<zanoni> Maybe I can get some help, been trying to print out some directories and files, specifically in the format that I need. This is the best code I have, and almost would work if I could filter Dir.entries https://gist.github.com/stuartambient/89a4fecee1a1873fb233cadc5e3472cc
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
michael1 has joined #ruby
Archrover has joined #ruby
<RickHull> zanoni: fix your indentation, and it looks like you're missing an `end`
dionysus69 has quit [Ping timeout: 240 seconds]
<Papierkorb> Changing the filename in the gist to end in `.cr` will also enable highlighting
<RickHull> oh, maybe not
<RickHull> the poor indentation makes it hard to read
milardovich has quit [Ping timeout: 250 seconds]
<RickHull> the `end` corresponding to `if` should be at the same level, and the body of the conditional should be indented further
<zanoni> i changed it but, I could do better on idents and styles
<RickHull> two spaces per indent level is the convention
<Papierkorb> zanoni: You misunderstood #reject. You just put a condition in there, like what you have *after* the if. Then you #each over what the #reject returns, which now doesn't contain anymore what you just threw out
<apeiros_> RickHull: cr like crystal? :D
<zanoni> i know about the 2 spaces, but always get confused about when it doesn't apply in a block
<Papierkorb> apeiros_: Dang, wrong channel lawl
ta has quit [Ping timeout: 240 seconds]
minimalism has joined #ruby
<Papierkorb> Well, the highlighting rules aren't that different...
<apeiros_> oh, right, sorry RickHull - that was @ Papierkorb
apeiros_ is now known as apeiros
<RickHull> i'm offended
<apeiros> rightly so!
<apeiros> want to duel?
<RickHull> 1v1 corewars?
<apeiros> 1v1 starcraft2
jrafanie_ has joined #ruby
<zanoni> Papierkorb: you saying drop the reject?
<zanoni> or add an each
<apeiros> I should add stone paper scissors to rubybot
<Papierkorb> zanoni: Not at all. The whole thing should end up looking like this: `Dir.entries(dir).reject{|x| x =~ /your regex/}.each{|x| p x}`
<apeiros> inline duel for the channel :)
<apeiros> and/or battleships (is that the english name?)
michael1 has quit [Ping timeout: 240 seconds]
<Sparky> I could totally almost program rock paper scissors in ruby right now
<apeiros> Sparky: go for it :)
jrafanie has quit [Ping timeout: 260 seconds]
ta has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> And then we'll have a golf course.
<zanoni> Papierkorb, nope that leaves me back with the dots
<Sparky> apeiros: I don't know how to give if/then arguments yet
<zanoni> No, the reject and regex is working, but i need a condition on the entries for reject entries that are not acutally files
<apeiros> Sparky: if/then doesn't take arguments. it only contains an expression
<Papierkorb> zanoni: Oh those you wanna get rid of, now I understand. Two solutions: Either use a `Dir["#{path}/*"]`, or: `Dir.entries(path).reject{|x| [ ".", ".." ].include? x}`
<apeiros> if some_expression then …code… end
ap4y has joined #ruby
<Papierkorb> zanoni: If you want to get rid of *all* leading-dot entries, just do `.reject{|x| x.start_with? '.'}`
<apeiros> e.g. if your_choice == "scissors" and their_choice == "rock" then puts "you lost!" end
<Sparky> I'm sure the book I'm following will get me to that point eventually :P
<Sparky> Why == and not = ?
<apeiros> It'd be a terrible book if not ;-)
<apeiros> = is assignment
<apeiros> == is comparison
<Sparky> So I can do 3 + 5 == 10 and get a false?
<apeiros> and === is very different kind of comparison (used in case/when)
<zanoni> no , i 've gotten rid of dot files, but still get entries that are not files
<apeiros> >> 3 + 5 == 10
<ruby[bot]> apeiros: # => false (https://eval.in/895790)
<apeiros> Sparky: ^ it would almost seem so ;-)
ta has quit [Ping timeout: 268 seconds]
<apeiros> Papierkorb: grep_v(/\A\./) ^^
<Papierkorb> regex *meh*
lamduh has quit [Quit: Leaving]
<apeiros> less typing, yay!
banisterfiend has joined #ruby
claudiuinberlin has joined #ruby
<zanoni> i do like the start_with? , cleaner then regex
blackwind_123 has quit [Quit: Copywight 2016 Elmer Fudd. All wights wesewved.]
ta has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
ta has quit [Ping timeout: 240 seconds]
<RickHull> next, def spaceship ?
<jhass> lizard, spock
olblak has quit [Remote host closed the connection]
<zanoni> Papierkorb, it is !x.start_with?'.' Which is all good, but still in the same place , not being able to drop the entries that are devoid of file. Like /app/assets/views/views.rb I only want to see views since that actually contains the file
nofxx has joined #ruby
<Papierkorb> `Dir["app/assets/views/**/*.{erb,haml,slim,md}"]` ?
michael1 has joined #ruby
AndBobsYourUncle has joined #ruby
safetypin has joined #ruby
ur5us has joined #ruby
sagax has joined #ruby
biberu has quit []
lagweezle is now known as lagweezle_away
KeyJoo has joined #ruby
Coldblackice has joined #ruby
michael1 has quit [Ping timeout: 258 seconds]
the_f0ster has quit [Ping timeout: 246 seconds]
<Sparky> Uh-oh hey, if I want to put a #{} inside of a q%{} how do I do that?
<RickHull> i think %Q{}
<RickHull> note that %[] and %() are valid as well
<Papierkorb> Sparky: You can also escape the #
<Papierkorb> >> "Foo: \#{bar}"
truenito has joined #ruby
<Sparky> escape with \ ?
milardov_ has quit [Ping timeout: 240 seconds]
<Papierkorb> >> "Foo: \#{bar}"
<ruby[bot]> Papierkorb: # => "Foo: \#{bar}" (https://eval.in/895796)
lagweezle_away is now known as lagweezle
<RickHull> >> format(%q{here is an integer %i}, 5)
<ruby[bot]> RickHull: # => "here is an integer 5" (https://eval.in/895799)
<baweaver> >> "#\{}" # < watch the birdie
<ruby[bot]> baweaver: # => "\#{}" (https://eval.in/895800)
uZiel has quit [Ping timeout: 240 seconds]
<RickHull> >> %q(here is a string %s) % 'foo'
<ruby[bot]> RickHull: # => "here is a string foo" (https://eval.in/895801)
lucz has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
guacamol_ has quit [Ping timeout: 260 seconds]
<eam> >> % #{% % } #{ % %} %
<ruby[bot]> eam: # => "%" (https://eval.in/895802)
truenito has quit [Ping timeout: 240 seconds]
<RickHull> >> format %q[here is the bill: $%0.2f], 9000
<ruby[bot]> RickHull: # => "here is the bill: $9000.00" (https://eval.in/895804)
sepp2k has quit [Quit: Leaving.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<RickHull> >> format "the #{'pie'} cost $0.2f", Math::PI
<ruby[bot]> RickHull: # => "the pie cost $0.2f" (https://eval.in/895806)
<RickHull> doh, anyways
<Sparky> Can someone look at my code and give me a push in the right direction?
Psybur has quit [Read error: Connection reset by peer]
<ruby[bot]> Sparky: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f0d92022b4395a318d7c556c92b75ca2
<ruby[bot]> Sparky: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Sparky> Thanks rubybot
lucz has quit [Ping timeout: 268 seconds]
<adaedra> What kind of push do you want?
<Sparky> A small nudge, give me a topic to google
<llua> does someone know why this .irbrc doesn't print the ansi escape sequences correctly in my prompt on freebsd but does on linux? http://sprunge.us/QVeN
<eam> well the giraffe is ridiculously underpriced, for one
<adaedra> Do you have a problem with it Sparky ?
Psybur has joined #ruby
<Sparky> I need a way to associate the price of the thing with the name... I think that's what I need?
<RickHull> also, 1.23 is an IEEE float and it does not represent monetary amounts very well
lagweezle is now known as lagweezle_away
<RickHull> it's better to represent monetary amounts as integers of the indivisible unit -- e.g. pennies
<eam> Sparky: associating names with values is generally done with a Hash
<RickHull> you can format them as money where needed, e.g. def dollars(pennies); "$0.2f" % pennies / 100r; end
<eam> mapping any object to another object
<RickHull> ah crap, messed up the format string again
<Sparky> Is this what I'm looking for then? https://docs.ruby-lang.org/en/2.0.0/Hash.html
<adaedra> woah, calm down with the time machine
ta has joined #ruby
<adaedra> we're at 2.4.2 now
<eam> Sparky: likely, yes
alfiemax has quit [Remote host closed the connection]
<RickHull> >> def dollars(pennies); format "$%0.2f", pennies / 100r; end; dollars(2399)
<ruby[bot]> RickHull: # => "$23.99" (https://eval.in/895810)
ta has quit [Remote host closed the connection]
ta has joined #ruby
<RickHull> there are Money and Decimal classes IIRC that work as well or better
anisha has quit [Quit: This computer has gone to sleep]
the_f0ster has joined #ruby
<eam> sprintf formatting with %0.2f will represent as a float at some point though
<RickHull> yeah -- you would not use the string representation for further computation
<RickHull> just for presentation
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> but what if there's a display error? :)
cdg has joined #ruby
Senecea has joined #ruby
conta has joined #ruby
hanmac has joined #ruby
alfiemax has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
marr has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
vee__ has quit [Ping timeout: 250 seconds]
<Sparky> Sooo.. like this? price = { "beach ball" => 12.99, "tennis ball" => 4.99, "giraffe" => 93.86 }
<RickHull> yep, it's a good start
<RickHull> you can also consider symbols for keys: { beach_ball: 12.99, ... }
<RickHull> :beach_ball vs "beach ball"
<RickHull> symbols are better for internal identifiers, and strings are better for representing outside info like user input
marr has joined #ruby
<Sparky> Would beach_ball get called for the get.chomp for beach ball?
<RickHull> very generally speaking
<RickHull> if "beach ball" comes from #gets -- then it is outside info / user input
Senecea has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> and a string is appropriate
<c-c> So I have this class that represents game interface -process. I have currently solved the refresh at intervals in the following way. Can you suggest how to improve/comments on this? https://gist.github.com/csmr/87eae0fa218efba43f9fc661b270ceb4
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> it seems reasonable. it shouldn't be necessary to call #to_f on Time.now
<RickHull> and what's up with drawing_bool vs _drawing_bool ?
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cr3 has quit [Ping timeout: 268 seconds]
<RickHull> oh, just kidding, you do need .to_f
lagweezle_away is now known as lagweezle
<c-c> RickHull: yes
<c-c> Otherwise it somehow ends up being time as milliseconds on even fraction (12.0, 12.0, ..etc for the remaining frames for this sec.., 13.0, 13.0, ... 14.0, 14.0...)
Toggi3 has quit [Ping timeout: 250 seconds]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
gizmore has joined #ruby
<c-c> not sure if 'on even fraction' is proper english though :)
<elomatreb> This seems like a bad idea for UI refreshing, normally you'll want to use proper threads and sleep for as much time as possible. What you seem to be doing here is busy-waiting
<c-c> threads are not ruby, nor are they linux
<RickHull> ?
<c-c> elomatreb: one needs to use processes for concurrency
<Sparky> Oh poop, I tried doing the hash thing and got- ery good, you have chosen beach ball, that will be {"beach ball"=>12.99}
<elomatreb> no...?
<RickHull> both ruby and linux have threads
<RickHull> ruby also has fibers, which are like cooperative rather than preemptive threads
<c-c> Have you guys done a lot of concurrent multi-core programming with threads?
<RickHull> ruby threads are green threads, so single core
<RickHull> unless using jruby (or rbx?)
<c-c> yes
<c-c> also, for linux, the concurrency model is processes
nofxx has quit [Read error: Connection reset by peer]
<elomatreb> Not "a lot", but it's not a complicated thing you're trying to do. If you want your UI to refresh every N ms you just sleep N ms
<elomatreb> Absolutely false. Open htop, press "H", see all the threads your applications are using
alfiemax has quit [Remote host closed the connection]
nofxx has joined #ruby
<c-c> elomatreb: tell me, on the left in htop, whats the colum "PID" signify? :)
<headius> RickHull: MRI has native threads but they're locked to only allow one running Ruby code at once
<headius> green threads are different
<c-c> elomatreb: is it the thread id, or the process id? (rhetoric)
<eam> c-c: you should be tracking the time since your last refresh, then add your refresh_time, subtract now() and sleep for that long
<RickHull> ah, thanks -- when did that happen?
selim has quit [Ping timeout: 240 seconds]
<eam> ideally, if this is a game, you can poll the vsync
<elomatreb> c-c: Every linux process can have any amount of threads
<RickHull> or was "green threads" just a misnomer for a long time?
vee__ has joined #ruby
<c-c> elomatreb: well, process based concurrency just makes sense
<elomatreb> You do you
<c-c> in my humble opinion, threads make things complicated and difficult to partition
<RickHull> c-c: the point is, there is a choice. you were implying there is no choice
selim has joined #ruby
<c-c> also, I like the option of having the ui, the server and the logic/engine on different machines altogether - process based concurrency gives me this easily
<c-c> RickHull: well, afaics, threads are not an attractive option
<eam> right now you don't have concurrency at all
StarSeed0000 has joined #ruby
Technodrome has joined #ruby
<c-c> eam I have 3 process concurrency
<RickHull> c-c: nothing wrong with multiprocess, go for it :)
<eam> I mean, in the code you're sharing
<c-c> but will have to clean this up before I wont shame myself for putting it up on github :*)
sepp2k has joined #ruby
<RickHull> what is your plan for IPC?
<c-c> RickHull: I implemented named pipes already
<RickHull> oh, i remember that, i think :)
<eam> you don't need threads for a simple game btw
rhyselsmore has joined #ruby
<c-c> its also clean, can be replaced with sockets if multiplayer-server-solution, and uses kernel for super fast throughput
<eam> I'm not sure what that means
<c-c> it means 3 different scenarios, so vague
<RickHull> when you go to multi-machine, will sockets have the same semantics as named pipes? authentication?
<c-c> lets just say named pipes keep IPC as fast as possible without sharing memory directly
<c-c> RickHull: not exactly. Named pipes are bit simpler. But afaics the outcome is it won't be painful for example to use tcp sockets for multiplayer server <-> client.
<c-c> anyway I want to simulate the weather and state of a planet, so it might need all the cores possible
<RickHull> if you are concerned about squeezing every drop of performance, ruby might not be the best choice
<c-c> - this is the dream, anyway, probably 2 man years worth of work left, minimum.
<RickHull> have you looked at e.g. Crystal ?
<c-c> RickHull: ok I thought about that too
raatiniemi has quit [Read error: Connection reset by peer]
<RickHull> jruby / truffle might be worth a look
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<c-c> RickHull: thats *another* reason I use process based conc, and named pipes. The plan is - use crystal or rust for the state server eventually, once a POC exists.
<headius> RickHull: Ruby 1.9 switched to native threads with a lock
<headius> like 2007 or 8
<c-c> - If need be. I have used things like nmatrix gem for computation intensive with ruby, and its pretty nice.
<RickHull> part of me is still stuck in the 1.8 mindset :)
raatiniemi has joined #ruby
<headius> also jruby and truffle are separate projects now btw
<c-c> I started this on jruby
<c-c> but threads give me headache
<c-c> hehe pesterd headius years ago about it like half dozen times
<Sparky> I feel like I am missing something very simple, preventing this to work the way I want it to https://gist.github.com/anonymous/54fc9582c10b69496058d4b29e9937d2
<RickHull> Sparky: purchase is not used
<RickHull> price is a data structure, not a scalar
<RickHull> it rarely makes sense to stick a data structure inside a string
<c-c> price[:giraffe] ?
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
<nofxx> Hash#default ... jez, you'll never know everything =P
<nofxx> before rdoc I was "is this guy thinking this is JS?"
<Sparky> RickHull: I was going to use purchase later after I get this sorted
Psybur has quit [Ping timeout: 252 seconds]
<RickHull> to get a single price (i.e. a scalar) out of the data structure, you should address it with a key
<RickHull> price[some_key] returns some value
<c-c> elomatreb: btw, was going to add that the reason there is the test for refreshtime and not just sleep is grabbing the input. I'm not sure how its going to be exactly, but the refresh rate for view is going to be 24-48 fps, but I want the input be grabbed minimum 50 times a sec, ideally at least 100
<RickHull> in your case, the value would be 0 if some_key does not exist
zautomata has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
<c-c> Most people can tell if theres ~20 ms or more of delay. Less than 10 ms is hard to tell even for many musicians.
<eam> c-c: why not just poll on input, with a timeout of the delta until the next display cycle?
<RickHull> i like the idea of sleep_time = interval - computation_time
<c-c> eam: so how it works now is 100 times a second it ui_gran_input (should be grab_input). It also calls ui_refresh, which tests if its time to start view refresh.
<eam> yeah, but why have that interval?
<eam> you can poll on input and respond to it immediately
<c-c> Hm, I probably don't understand how "poll on input" might work. It now tests with 0 ms timeout select if theres input or not.
<eam> you're writing a single threaded state machine, so you want to gather up all the things that can trigger an event (network, keyboard, etc) and sleep for up to the refresh cycle waiting for them to perform i/o
<c-c> so currently its ie. non-locking
<eam> instead of a non-blocking select, you block select for up to the refresh interval delta
vifino has quit [Ping timeout: 240 seconds]
<eam> and then if select returns an event, you re-calculate the delta and sleep waiting for events for that new delta
<c-c> I see
<c-c> interesting
<eam> this means you respond to any input instantly and you never loop unless you either 1) have an input event or 2) the refresh interval is reached and you need a repaint
Rangerst has joined #ruby
<c-c> yes, I thought this way as attempting to "do as much nothing/sleep as possible most of the time" so times of heavy load would (theoretically) not be a problem
<eam> the main thing is now you have 0.01s added latency
alnewkirk has quit [Read error: Connection reset by peer]
<RickHull> sleeping instead of working while there is work to be done doesn't seem to have a benefit
Rangerst has quit [Client Quit]
<eam> and the lower you shrink that interval, the higher the idle cost becomes
<eam> there's also the added twist that on a system with a low Hz, this might not even sleep at all
<c-c> yeah. In reality I have no idea where the bottleneck is going to be, in terms of the UI/view/input
<eam> because timers aren't perfectly granular
vifino has joined #ruby
<eam> granted, it's been a while since 100Hz was common, now we have tickless linux
<RickHull> also, regarding Time.now -- see this alternative: https://github.com/seattlerb/minitest/blob/master/lib/minitest.rb#L846
<RickHull> Time.now can go backwards
<c-c> ok at least the output of Process.clock_gettime looks desirable
charliesome has joined #ruby
<eam> yeah, you wnat monotonic time sources
<eam> but then you can't support OSX
<eam> since in their infinite wisdom, OSX neglected to implement clock_gettime
<RickHull> there must be some alternative, no?
<eam> it's gross
<c-c> ok, thats not totally bad, but it would be great to have as much cross plat as posso
alnewkirk has joined #ruby
<c-c> - although f.ex. windows 10 support for named pipes is probably 0
<adaedra> iirc, there's an equivalent
ldnunes has quit [Quit: Leaving]
lucz has joined #ruby
<c-c> adaedra: for gettime?
<eam> it's some mach specific junk
<adaedra> for named pipes
<RickHull> it looks like clock_get_time can be used with reasonable confidence
<RickHull> but I have no idea what that means practically from ruby
<c-c> adaedra: yes, I was looking at a gem that might provide named pipes for windows
nolakat has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<c-c> not sure if its 2.3 proof, but I'd really like to have as much core/plain ruby and osx on board as posso
<adaedra> s/fr-fr/en-us/
mson has joined #ruby
<c-c> adaedra: yes, windows 7 does have, but I haven't had a chance to look at win10 support for named pipes (that I remember)
<adaedra> why would they have removed them?
<RickHull> MS is fanatical about backwards compat, so I would expect they remain
<c-c> adaedra: win10 is in many ways different from win7
<adaedra> They seem to exist since 2k, so I'd expect them to be well anchored now
lucz has quit [Ping timeout: 248 seconds]
<adaedra> The underlying calls that worked before are expected to still work tho
alfiemax has joined #ruby
mniip has quit [Ping timeout: 600 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucz has joined #ruby
alnewkirk has quit [Ping timeout: 250 seconds]
nolakat has joined #ruby
galtgendo has joined #ruby
nolakat has quit [Client Quit]
<c-c> Yes, named pipes should be available. Not sure if they work as fast, as the implementation might not be via kernel (dma, whatever/however).
synthroid has quit []
<RickHull> if you will be using sockets at some point, I would stop worrying about hypothetical performance issues
<adaedra> I'd say if you're using Ruby, you're not at this performance difference
<RickHull> perhaps you want the "standard" IPC for windows rather than chasing "named pipes"
<c-c> the latency is the key here, as the messages should remain rather small
<adaedra> That's for UWP, c-c
<adaedra> I guess this doesn't apply to you
<galtgendo> first thing: I know very little of ruby; given that: how should I go about adding a generic :encode_with method to a list of classes to prevent yaml dump going recursively out of stack ?
<c-c> I wish I knew whats a UWP on windows
<RickHull> galtgendo: please paste an example of the problem you're having
<RickHull> e.g. show the code, the input, the execution, and the error
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<adaedra> c-c: If only search engines were a thing. :)
<c-c> but windows is priority 4 after linux, osx and - android
<RickHull> galtgendo: I haven't had this problem with yaml before
<c-c> Thanks for all the input channel, I appreciate it 8)
alfiemax has quit [Remote host closed the connection]
charliesome has joined #ruby
brucebag has quit [Quit: brucebag nipped out]
<c-c> hehe is there even an android ruby, probably no more
Toggi3 has joined #ruby
<RickHull> c-c: i would make sure you have a prototype, a spike, that shows a working project on linux, with the proper refresh and perf characteristics
troys is now known as troys_
<RickHull> it's good to keep multiplatform in mind, but extremely ambitious
<c-c> yes, I keep it in mind while barely making progress on linux
<c-c> ;)
brucebag has joined #ruby
brucebag has quit [Changing host]
brucebag has joined #ruby
lucz has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
lucz has joined #ruby
<galtgendo> RickHull: it's somewhat hard to paste, it's a little (not mine) project, that loads a marshal dump file (with some of the classes having their own definitions, other just turned into classes via const_set(name, Class.new)), then dumps it into yaml, then can go back after yaml is edited; the problem is that sometimes accept goes into target.respond_to?(:encode_with) == false branch which ends up with dump_ivars getting called recursively
<galtgendo> orry, typing speed low)
<RickHull> can you link to some code?
jenrzzz has quit [Ping timeout: 240 seconds]
FrostCandy has quit []
<adaedra> try to produce a minimal example. it can even help you pin down your problem.
<galtgendo> Ricwell, it's pretty much https://github.com/Solistra/rvpacker
<RickHull> which file / method ?
<galtgendo> RickHull:
<galtgendo> RickHull: somewhat; hang on, it will be a bit long winded
<galtgendo> there's a block in RGSS.rb calling process(Object, *x) on a long list, where process is that thing that ends up with const_set(name, Class.new)
zautomata has joined #ruby
<RickHull> at the risk of being uncharitable, this is low quality code that appears to be doing a lot of unnecessary stuff
<baweaver> Oh man! RGSS!
<RickHull> i wouldn't want to debug it, especially lacking strong ruby skills
<baweaver> RPG Maker XP / MV eh?
<baweaver> It's basically an odd offshoot of 1.9.2
<baweaver> Nostalgia abounds
<galtgendo> well, mostly used for VX Ace, but XP/VX too, not MV - that's js
* baweaver reads back up on the problem
<RickHull> galtgendo: to try to answer your original question, it is pretty easy to add a specific method signature to many classes
<baweaver> Ah yeah
jenrzzz_ has quit [Ping timeout: 240 seconds]
<RickHull> klasses.each { |k| def k.encode_with; nil; end } # something like that
<RickHull> assuming it's a class method
Toggi3 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
<RickHull> and all you need is k.respond_to? :encode_with
<baweaver> Typically the RM forums are the best source for specific questions on that. Few years back Solistra was fairly active and would answer questions
<RickHull> >> [String.respond_to?(:encode_with), eval('def String.encode_with; nil; end'), String.respond_to?(:encode_with)]
<ruby[bot]> RickHull: # => [false, :encode_with, true] (https://eval.in/895821)
<c-c> is RM == Role Master?
<RickHull> galtgendo: you can set up klasses = [String, Array, Foo, Bar, Baz]
<c-c> ah, its Rpg Maker again
raatiniemi has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
<galtgendo> RickHull: it goes like this: call to visit_Object, call to dump_ivars, call to accept, from target.respond_to?(:encode_with) == false branch call to send (which is effectively a call to visit_Object for the file in question) (again, low typing speed - now I need to read your comments)
<baweaver> RPG Maker
vee__ has quit [Ping timeout: 250 seconds]
raatiniemi has joined #ruby
Toggi3 has joined #ruby
<galtgendo> RickHull: but won't a nil method prevent a proper dump (that is one where a round trip is possible) ?
reber has quit [Remote host closed the connection]
<RickHull> if you need instance methods, it's trickier. and I wouldn't be surprised if the workaround for this stack/recursion bug causes more problems down the line
<RickHull> galtgendo: uh, probably? my suggestion is TOTAL_HAX
dgsntro has joined #ruby
<RickHull> and frankly I would like to retract it and back slowly away from the tarpit ;)
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<galtgendo> RickHull: do you have any idea how a trivial *working* encode_with method would look like ?
<RickHull> none
<RickHull> just curious, I looked for tests for this project...
<galtgendo> ..please, don't
zautomata has quit [Quit: WeeChat 1.7]
<RickHull> heh -- I would suggest not wasting your time on this particular project
<baweaver> It's basically impossible to "test" without a crap-ton of assumptions and unit test stubs
<galtgendo> anyway, in such case do you know a place with some simple psych usage samples ?
VladGh_ has quit [Ping timeout: 268 seconds]
<baweaver> That said this is some of the better RM code I've seen
<RickHull> i would just use 'yaml' i forget why psych and syck and all the other yaml impls exist
<baweaver> yes RickHull, better, fancy that XD
<galtgendo> or rather some complex usage, but well commented ones
<baweaver> I can take a look into this more later tonight or this weekend maybe.
milardovich has joined #ruby
<baweaver> Ah, it wants Ruby 1.9.3
<baweaver> see the README at the bottom
vee__ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<galtgendo> baweaver: not quite: VX Ace is ruby 1.9.3, but that thing still seems to work with 2.2
<baweaver> Mmm. I've been out of the game of toying with this for a while
<baweaver> Really since RMXP years ago.
<galtgendo> not sure about 2.4, as I've recently read that there where some marshal format changes
GodFather has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<galtgendo> RickHull: btw., what did you mean by "just use 'yaml'" ? some gem ? is there any other way of dumping to yaml file besides psych ?
<RickHull> you are probably tied by the project -- and it doesn't really matter
<RickHull> i think in ruby 2.0 the name of the lib is just yaml
<RickHull> it may still be the psych code under the hood -- i'm just not sure if there psych-specific quirks to be aware of
<dminuoso> I blame baweaver.
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Because baweaver also starts with "b". like blaming.
<baweaver> what is who blaming when why?
<RickHull> >> require 'yaml'; 'baweaver'.to_yaml
<ruby[bot]> RickHull: # => "--- baweaver\n...\n" (https://eval.in/895827)
jarnalyrkar has quit [Read error: Connection reset by peer]
<RickHull> >> require 'yaml'; YAML.to_yaml
<ruby[bot]> RickHull: # => "--- !ruby/module 'Psych'\n" (https://eval.in/895828)
<RickHull> boosh
<baweaver> >> require 'json'; JSON.to_json
<ruby[bot]> baweaver: # => "\"JSON\"" (https://eval.in/895829)
quobo has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 268 seconds]
<RickHull> as far as testing goes -- it should be pretty easy to come up with a structure to dump and load via Marshal and Psych
<RickHull> or start with some binary structure from RPG Maker
<galtgendo> ...to_yaml is for psych (if I understand the docs correctly) and it's an obsolete method on top of that
<RickHull> so the "no tests" thing is not really excusable
<baweaver> They don't really believe in tests in that area, I had that argument years ago
<RickHull> color me surprised when they are blowing the stack with a recursive loop
<RickHull> anyway, if you are determined to use this project, then debugging this issue will be a good dive into the deep end
<RickHull> can you come with a small example that will trigger the error?
<RickHull> you might want to file an issue if you can't fix it yourself or work around it
<baweaver> Aha, it was git, but same idea - https://forums.rpgmakerweb.com/index.php?threads/aversion-to-git.34472/
<baweaver> Took a while to get them off pastebin on things
polishdub has quit [Quit: leaving]
<dminuoso> baweaver: Does one need a reason to blame others?
<RickHull> and if it's no longer actively developed, then subtract more points from "should i use this project?"
hopsoft has joined #ruby
<dminuoso> Mundane people seem to do it without one on the streets all the time.
<dminuoso> Why cant I?
lucz has quit [Remote host closed the connection]
<galtgendo> also 'require 'yaml'' is an alias for 'require 'psych''
<baweaver> There's a significant chance this is the only project which does this
<baweaver> Considering Solistra was one of the better OSS types around
fishcooker has joined #ruby
<galtgendo> RickHull: well, technically, VXAce is no longer developed, as MV is js
<RickHull> what I mean is: if you can come with a small example that blows the stack, and you file an issue, will it get fixed?
<RickHull> if not, then you're on your own and you will git gud at ruby
AndBobsYourUncle has joined #ruby
alfiemax has quit [Remote host closed the connection]
the_f0ster has quit [Ping timeout: 260 seconds]
Gadgetoid has quit [Read error: Connection reset by peer]
<RickHull> your best bet is to come up with that small example that triggers the bug
<RickHull> file the issue
<RickHull> and if the project can't fix it, then maybe you or someone else can. having the example is a huge 1st step
InfinityFye has quit [Quit: Leaving]
GodFather has quit [Read error: Connection reset by peer]
the_f0ster has joined #ruby
GodFather has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<galtgendo> RickHull: ...TBH, I'm close to certain, that this 'project' *is* dead
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> so the main question is, how much time do you want to spend debugging it?
Technodrome has joined #ruby
<RickHull> definitely see if you can get baweaver to assist :)
<RickHull> and in the meantime, try to come up with a minimal example / test case
<RickHull> like some dump file in yaml or marshal format
tvw has joined #ruby
tcopeland has quit [Quit: tcopeland]
<RickHull> it's possible you were on the right track -- of needing to define the encode_with method (properly?) for classes / objects that are missing it
nolakat has joined #ruby
<RickHull> but... the whole enterprise smells of self-created problems in a very complicated approach to what seems outwardly simple
jphase has quit [Remote host closed the connection]
ruby[bot] has quit [Remote host closed the connection]
Gadgetoid has joined #ruby
ruby[bot] has joined #ruby
sagax has quit [Ping timeout: 240 seconds]
nolakat has quit [Client Quit]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
eb0t has quit [Read error: Connection reset by peer]
eb0t_ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
jphase has joined #ruby
eb0t has joined #ruby
thinkpad has joined #ruby
eb0t_ has joined #ruby
safetypin has quit [Ping timeout: 250 seconds]
nymous has joined #ruby
steph_ has joined #ruby
<nymous> hey folks, i need an advice
<elomatreb> One advice, coming right up
banisterfiend has joined #ruby
jphase has quit [Ping timeout: 250 seconds]
<nymous> what is the best way to run user code with mine dsl?
<nymous> i mean something like Rakefile
milardov_ has joined #ruby
<RickHull> I don't quite follow...
<elomatreb> A common way is having the user require a module/class of your code in the user file, and having them write the DSL in a block
jphase has joined #ruby
mim1k has joined #ruby
<nymous> i'm writing a small gem for collecting system/app metrics (externel, non-ruby)
<nymous> it's a dsl with some execution code
jenrzzz_ has quit [Ping timeout: 248 seconds]
<RickHull> can you give an example (use a paste site) of how it works currently, and/or how you would like it to work?
jenrzzz has joined #ruby
milardovich has quit [Ping timeout: 250 seconds]
<nymous> it fully works, but currently is included into module Salus with just load
k3rn31 has quit [Ping timeout: 260 seconds]
<RickHull> for a standalone script, you would want something like require 'salus' at the top
<nymous> sorry, didn't wrote any docs yet
<nymous> i want a user to write something like that and just run it with my cli util
<elomatreb> RickHull: I think they want something like Rakefiles, where you don't have to do require "rake" either
Toggi3 has quit [Ping timeout: 240 seconds]
<nymous> or write his own code requiring gem etc
<RickHull> you don't need to make it a gem
mim1k has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<elomatreb> I would look at how Rake does it, the naive way would just be to eval the file in an appropriate context but that seems fragile
eclm has quit [Ping timeout: 264 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> ok, so salus is itself a gem. it can include a bin/salus that is like `rake`
<nymous> i'm already looking at rake's code, but it's way too complex for my project
pork13 has quit [Quit: Connection closed for inactivity]
<nymous> yeah, i'm currently writing that bin/salus
dinfuehr has quit [Ping timeout: 248 seconds]
<nymous> btw, do you like the name? "health" is too stupid imo, other words doesn't come up for this task
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> easier than that is to just have: require 'salus' at the top, and execute with `ruby path/to/script.rb` is that really so awful?
duderonomy has joined #ruby
<RickHull> otherwise, I would guess elomatreb is right and you would have to eval the script contents
<nymous> i think it can be used both ways
dinfuehr has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
<nymous> or you just include it in your script, or you use cli and tell it to run yours
<RickHull> i'm not a fan of .rb files which don't require what they use at the top
Coldbla9 has joined #ruby
<RickHull> and I prefer ruby as the executable to bespoke runners
<RickHull> but I'm kind of grumpy like that ;)
Coldblackice has quit [Ping timeout: 240 seconds]
<nymous> oh, if you mean gist, extension is just to say to github it's a ruby code
jphase has joined #ruby
<RickHull> it sure looks like ruby code ;)
<raynold> ahh it's a wonderful day
<RickHull> i think it's a negative win to put ruby code into a non-.rb file and omit the require statements and rely on a bespoke runner
<nymous> the motivation behind this gem is that i'm tired to rewrite code like this for every new check I need: https://github.com/vv-sm/Zabbix-Bind9-Statistics-Collection/blob/master/bind-stats.py
<RickHull> versus just putting the proper require statement and using `ruby` as the runner
<elomatreb> Skimming through the Rake sourcecode it seems it uses Kernel#load in a context where the DSL methods are defined
<nymous> notice the caching, args parsing etc
<raynold> llua is crap
<elomatreb> Mh, those nested ifs are a delight
<RickHull> raynold: who's asking?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<raynold> Lua the language is awesome
<_aeris_> hello #ruby
<RickHull> nymous: I still suggest that your DSL will work fine with `require 'salus'` and using ruby as the runner
<baweaver> Someone's over the moon for Lua eh?
<_aeris_> small question : why with debian ruby, gem are search on 2.3.0/extensions/x86_64-linux/2.3.0, but rbenv looks for 2.3.0/extensions/x86_64-linux/2.3.0*-static* ?
<RickHull> is that a problem? you can make your own runner later if you really want to
<nymous> so, stupid way is just to load?
<elomatreb> In a context where the DSL methods are available, yes
<raynold> Llua the chatter is a troll
jphase has quit [Ping timeout: 246 seconds]
<elomatreb> nymous: From your code: `name, user, nice, csystem, idle, iowait, irq, softirq = l.split(/\s+/)` -- Oo
<nymous> RickHull: i just want to make some more magic for a user, like maintaining state files
<baweaver> raynold the chatter is a troll too, or do they have something Ruby to say?
<nymous> if his asking to though
milardov_ has quit [Remote host closed the connection]
<RickHull> nymous: i don't quite follow -- what format for your state files?
<raynold> Stop trolling baweaver
<nymous> elomatreb: it's just a quick example
troys_ is now known as troys
<elomatreb> :)
<llua> raynold: if you disable that auto-message, i'll unban you.
<nymous> RickHull: well, you know, some metrics are just gauges, but others, like cpu jiffies in unix are counters. so if you have to calculate load % of a cpu, you have to know a value from previous run, and know how far in time it was. i my example that info is saved to a yaml
<RickHull> sure
<nymous> *in my
<raynold> What auto message?
<RickHull> my only point is that you don't need a custom runner to execute a DSL script, if you just put the require statement at the top
<llua> 'ahh it's a wonderful day'
fishcooker has quit [Quit: Leaving.]
<RickHull> i think it's a negative win to omit require statements
<nymous> you see, in that case this little bits of code would mandatory for a user
<nymous> *would be
<elomatreb> RickHull: I have to agree with nymous here, it sounds like a runner could be nice
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb> You could still have a shebang and the require in the files if you want to, since requiring an already required file does nothing
<RickHull> I don't disagree -- but I'm not sure what justifies the effort
<nymous> gem also supports running in a daemon mode, without any state files
<RickHull> is it so you can say `salus do_the_thing` like a rake task?
<RickHull> versus `ruby do.rb the_thing` ?
<baweaver> raynold: well you're more than welcome to talk about Ruby, but let's leave the attacks out of it
shinnya has joined #ruby
<RickHull> or `./do.rb the_thing`
<raynold> llua: that's not an auto message
<nymous> well, idk, i think i can implement several approaches, unfortunately i don't have time to try them all
<raynold> baweaver: you should follow your own advice and leave me out of it
jphase has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> raynold: everything you have talked about so far is off topic
<nymous> if you can suggest a better way of implementing the thing, i don't mind to implement your approach
<raynold> RickHull: youre being selective. Im responding to baweaverv who's offtopic.
<RickHull> my approach is simply the standard default. write your script as an .rb file
<nymous> i have to separate 4 stages i have: loading previous state, collecting things, rendering (sending) things, saving current state
<RickHull> put the require 'salus' at the top
<RickHull> and execute it
orbyt_ has joined #ruby
ledestin has joined #ruby
<nymous> i don't think that implementing first and last each time is a fun thing to do
<RickHull> your script itself can parse args if need be
<elomatreb> It's only a matter of interface, you decide which one you find more aesthetically pleasing. For perspective, the approach with the runner and no require is fairly common, I can think of e.g. Rakefiles, Gemfiles, Guardfile...
<RickHull> elomatreb: i think omitting the require does not justify the runner in these cases
<RickHull> e.g. `bundle` does tons of stuff
<nymous> yeah, i was thinking of a dir with bunch of *.salus or whatever
DTZUZO has joined #ruby
<elomatreb> RickHull: From the sound of it this project here does quite a bit as well
<RickHull> yep -- if that's the case, where the runner is already necessary, and it feels like a big win to omit a require statement, then sure, eval/load it :)
<nymous> one thing that also bothers me is that renderers code should be pretty reusable
jphase has quit [Ping timeout: 252 seconds]
<nymous> so writing it in each script would be annoying
<RickHull> i would put the common functionality in a lib -- so it's just a call from a script
<nymous> i can't write renderers for every system, it should be up to a user
<baweaver> raynold: So what have you done in Ruby lately?
<nymous> graphite, zabbix, collectd, whatever
<elomatreb> Another benefit of a runner binary is that you can probably package it for OS distribution more easily
<elomatreb> I.e. associate man pages and the like
Puffball has quit [Remote host closed the connection]
<nymous> yeah, i really like things like fpm
Technodrome has joined #ruby
jphase has joined #ruby
<nymous> damn, i'm a little bit confused
moei has quit [Quit: Leaving...]
nolakat has joined #ruby
minimalism has quit [Quit: minimalism]
<nymous> my first idea was a runner which is doing something like salus collect -f md_array
<nymous> optionally with trying something like Salusfile in the current directory
jphase_ has joined #ruby
duderonomy has quit [Ping timeout: 268 seconds]
<nymous> you can put it in your crontab and you have a simple collector right away
jphase has quit [Ping timeout: 250 seconds]
<RickHull> eh, where does crontab find the current dir? that can get hairy
<nymous> but i'm actually confused where to put renderers code, as they should be pretty reusable between checks
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
jphase_ has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
jphase has joined #ruby
steph_ has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 248 seconds]
steph_ has joined #ruby
<KeyJoo> nymous: Andrey, do you have access to telegramm-chats? You are welcome to https://t.me/rubyschool (Russian community)
<nymous> yeah, i have telegram
jphase has quit [Ping timeout: 250 seconds]