havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
<scientes> Process.daemon
<scientes> oh sweet
bhaak has joined #ruby
<scientes> works
DarthGandalf has joined #ruby
<scientes> now i have CI!
<scientes> on push to my server
lucasb has quit [Quit: Connection closed for inactivity]
Swyper has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 246 seconds]
bambanx has joined #ruby
faces has joined #ruby
cozachk has joined #ruby
akem has joined #ruby
skryking_ has joined #ruby
Brian-W-Gray has joined #ruby
ur5us_ has joined #ruby
daniel__ has joined #ruby
kaleido has joined #ruby
BrianWGray has quit [Read error: Connection reset by peer]
facest has quit [Read error: Connection reset by peer]
zachk has quit [Read error: Connection reset by peer]
daniel____ has quit [Remote host closed the connection]
skryking has quit [Remote host closed the connection]
akem__ has quit [Remote host closed the connection]
ur5us has quit [Read error: Connection reset by peer]
kaleido_ has quit [Quit: out]
mikeiniowa has quit [Ping timeout: 245 seconds]
tarptaeya has quit [Quit: ZNC 1.7.2 - https://znc.in]
Milos has quit [Remote host closed the connection]
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
mochiyoda has quit [Remote host closed the connection]
akosednar has quit [Ping timeout: 245 seconds]
zenspider has quit [Ping timeout: 245 seconds]
zenspider has joined #ruby
mochiyoda has joined #ruby
tarptaeya has joined #ruby
Spitfire has quit [Ping timeout: 255 seconds]
\tau has quit [Ping timeout: 246 seconds]
Tharbakim has quit [Ping timeout: 255 seconds]
doodlebug has quit [Ping timeout: 246 seconds]
akosednar has joined #ruby
akosednar has quit [Changing host]
akosednar has joined #ruby
Milos has joined #ruby
Spitfire has joined #ruby
Spitfire has quit [Changing host]
Spitfire has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
doodlebug has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Fernando-Basso has quit [Remote host closed the connection]
xall has joined #ruby
<IGnorAND> how does one go about testing a APIAdapter?
<IGnorAND> Do you just test the api command, and then all possible values for all possible params?
pupsikov has joined #ruby
<scientes> IGnorAND, "all possible", thats impossible
<scientes> thats n!
<IGnorAND> scientes: all possible 'classes' of input
<scientes> yes
<scientes> that sounds about right
<IGnorAND> but also the combination of?
<scientes> test anything you want to work
<scientes> its quite simple
GodFather has joined #ruby
x0f has quit [Ping timeout: 252 seconds]
x0f has joined #ruby
barg has quit [Ping timeout: 246 seconds]
GodFather has quit [Ping timeout: 255 seconds]
DTZUZO has quit [Ping timeout: 246 seconds]
<IGnorAND> I have a param PageSize. Minimum value is 10, and maximum value is 100. Default Value: 20. So I test for <10, x>=10 && x<=100, >100 and non integers?
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby
pupsikov has quit [Quit: Textual IRC Client: www.textualapp.com]
llua has quit [Quit: <Rudolph> shell code is what greycat reads to kids when he tucks them in]
llua has joined #ruby
<IGnorAND> I wonder if ruby programmers also adhere to the 'fail fast' principle. Maybe I should thrown an exception at the initializer
fluxAeon has joined #ruby
GodFather has joined #ruby
nwradio878887987 has quit [Ping timeout: 268 seconds]
mr_rich102 has quit [Read error: Connection reset by peer]
mr_rich101 has joined #ruby
UnknownSoldier has joined #ruby
jottr has joined #ruby
ljarvis has quit [Ping timeout: 246 seconds]
GodFather has quit [Remote host closed the connection]
<xall> I'm trying to sum a hash with another hash but I'm not getting it quite right: https://pastebin.com/2YyEdHNZ. Is it possible to do it like this?
jameser has joined #ruby
<adam12> xall: What are you trying to achieve, exactly? ie. what are you expecting as output
ljarvis has joined #ruby
<adam12> xall: I think this is what you're looking for? {"win"=>1, "draw"=>0, "loss"=>0}.merge({"win"=>3, "draw"=>1, "loss"=>0}) { |key, oldval, newval| newval + oldval }
<adam12> &>> {"win"=>1, "draw"=>0, "loss"=>0}.merge({"win"=>3, "draw"=>1, "loss"=>0}) { |key, oldval, newval| newval + oldval }
<rubydoc> # => {"win"=>4, "draw"=>1, "loss"=>0} (https://carc.in/#/r/6pfb)
<xall> In that case, I expect 3 as output. I want to sum the results with the actual point values
<adam12> xall: What's the math used to get 3? I'm not following.
jottr has quit [Ping timeout: 245 seconds]
<havenwood> xall: How does 4 wins and a draw equal 3?
<xall> sorry - so results is the actual data and result_values is how much each point is worth, so win=1 is worth 3 points
jottr has joined #ruby
mangold has joined #ruby
<havenwood> &>> [{win: 1, draw: 0, loss: 0}, {win: 3, draw: 1, loss: 0}].sum { |win:, draw:, loss:| win - loss }
<rubydoc> # => 4 (https://carc.in/#/r/6pfc)
<adam12> havenwood: Nice solution :)
<xall> (result_values says that win is worth 3, draw is worth 1)
<havenwood> &>> [{win: 1, draw: 0, loss: 0}, {win: 3, draw: 1, loss: 0}].sum { |win:, draw:, loss:| win * 3 - loss }
<rubydoc> # => 12 (https://carc.in/#/r/6pfd)
jottr has quit [Ping timeout: 250 seconds]
<havenwood> xall: Can you use Symbol instead of String keys? :)
<havenwood> Symbols make nice keys.
<adam12> &>> {"win"=>1, "draw"=>0, "loss"=>0}.reduce(0) { |m, (k, v)| m + ({"win"=>3, "draw"=>1, "loss"=>0}.fetch(k) * v) }
<rubydoc> # => 3 (https://carc.in/#/r/6pfe)
<adam12> Because I'm lazy.
<adam12> Breaking it up from a oneliner will make it clearer but maybe havenwood has an idea with destructuring keyed symbols.
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
<xall> I'm using strings because it's part of an exercise where you have to parse given lines like `Allegoric Alaskans;Blithering Badgers;win`
<xall> thanks for the help
dviola has quit [Quit: WeeChat 2.4]
<havenwood> &>> score_values = {"win"=>3, "draw"=>1, "loss"=>-2}; [{"win"=>1, "draw"=>0, "loss"=>0}, {"win"=>3, "draw"=>1, "loss"=>0}].sum { |h| h.merge(score_values) { |_, score, value| score * value }.values.sum }
<rubydoc> # => 13 (https://carc.in/#/r/6pff)
UnknownSoldier is now known as \tau
sylario has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
mondz has quit [Ping timeout: 250 seconds]
troulouliou_dev has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
cozachk has quit [Read error: Connection reset by peer]
ellcs1 has quit [Ping timeout: 252 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brool has joined #ruby
Autolycus has joined #ruby
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has quit [Quit: bye bye]
Swyper has joined #ruby
jenrzzz has joined #ruby
braincrash has joined #ruby
Arahael has quit [Remote host closed the connection]
Autolycus has quit []
yield has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
yield has quit [Client Quit]
<xco> i want to make some steps to create my first ruby gem. but need some thougts. is it a good idea for a gem to make an api call to some other service? are there gems like that already
<xco> the gem i want to make will require an API secret key which if you’er using rails you’d put the key in your initializers folder but i’m not sure if this is a good idea
maxdoubt has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Swyper has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
tdy has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
DTZUZO has joined #ruby
jenrzzz has joined #ruby
maxdoubt has quit [Quit: maxdoubt]
maxdoubt has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
brool has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
xall has quit [Ping timeout: 246 seconds]
maxdoubt has quit [Quit: maxdoubt]
Wolland has quit [Quit: Mutter: www.mutterirc.com]
<havenwood> xco: it's a fine idea for a gem to make an API call. there are lots of gems that wrap APIs or make API calls for various reasons.
Wolland has joined #ruby
DmitryBochkarev has joined #ruby
<xco> havenwood: thanks for the response. reason i asked was i thought if i created a gem like that it’d be “odd” since i haven’t personally used a gem that makes an API call
ramfjord has quit [Ping timeout: 255 seconds]
<havenwood> xco: gems involving secret keys often are initialized with the key. another pattern is to assign an environment variable.
xall has joined #ruby
<xco> yeah and ENV variable would work too, good idea i’ll keep that option in my thoughts
code_zombie has quit [Read error: Connection reset by peer]
<havenwood> xco: the company I work for, for example, has a square_connect gem that is an SDK for Square APIs
<havenwood> xco: it's pretty common for a company to have a gem that wraps their APIs
<xco> yeah prolly a private gem right? i’m yet to see a public OS gem that makes use of keys like that
<havenwood> yes, you don't have to publish a gem
<havenwood> you can have it be private
<havenwood> xco: lots of gems do use API keys
bambanx has quit [Quit: Leaving]
xall has quit [Read error: Connection reset by peer]
<havenwood> xco: here are some examples
<xco> oooo awesome! this will give me an idea how to implement my api key part
<havenwood> 's
<havenwood> AWS's ^
xall has joined #ruby
<xco> thanks ;)
<havenwood> np
xall has quit [Read error: Connection reset by peer]
xall has joined #ruby
DmitryBochkarev has quit [Ping timeout: 255 seconds]
kapil____ has joined #ruby
\tau has quit [Quit: wild horses.]
xco has quit [Quit: xco]
xall has quit [Read error: Connection reset by peer]
imadper has joined #ruby
xall has joined #ruby
Wolland has quit [Quit: Mutter: www.mutterirc.com]
xco has joined #ruby
xall has quit [Ping timeout: 246 seconds]
xco has quit [Client Quit]
xall has joined #ruby
Wolland has joined #ruby
xco has joined #ruby
Wolland has quit [Client Quit]
xall has quit [Read error: Connection reset by peer]
Arahael has joined #ruby
Arahael has quit [Client Quit]
Arahael has joined #ruby
xco has quit [Quit: xco]
xall has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
ferr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
<xall> `"foo;bar".split(?;)` -- first time encountering this syntax but I can't find it in google. It's not a regex (b/c no enclosing //), right?
<xall> (the ?)
ferr has quit [Read error: Connection reset by peer]
sidx64 has joined #ruby
conta has joined #ruby
ferr has joined #ruby
hays has quit [Read error: Connection reset by peer]
<havenwood> xall: it's a character literal (it just creates a single character string)
<havenwood> &>> ?x.class
<rubydoc> # => String (https://carc.in/#/r/6pfi)
<havenwood> &>> ?x == 'x'
<rubydoc> # => true (https://carc.in/#/r/6pfj)
hays has joined #ruby
<xall> havenwood: Thanks. Surely I've seen that before but evidently not enough
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DmitryBochkarev has joined #ruby
Dbugger has joined #ruby
Inline has quit [Quit: Leaving]
hays has quit [Ping timeout: 246 seconds]
hays has joined #ruby
ferr has quit [Read error: Connection reset by peer]
sidx64 has joined #ruby
duderonomy has joined #ruby
jottr has joined #ruby
ferr has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
beilabs_ has quit [Ping timeout: 245 seconds]
sleetdrop has joined #ruby
beilabs_ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
sauvin has joined #ruby
teclator_ has joined #ruby
teclator_ is now known as teclator_gc
Tuor has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ferr has quit [Read error: Connection reset by peer]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ferr has joined #ruby
sidx64 has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
ferr has quit [Ping timeout: 246 seconds]
teclator_gc has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
schleppel has joined #ruby
duderonomy has quit [Client Quit]
Nicmavr has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
aupadhye has joined #ruby
andikr has joined #ruby
Nicmavr has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Swyper has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
HendrikPeter has joined #ruby
jenrzzz has joined #ruby
jottr has joined #ruby
amfdsrt^ has quit [Read error: Connection reset by peer]
clemens3_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
HendrikPeter has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
daniel__ has quit [Quit: Leaving]
daniel____ has joined #ruby
mhlei has quit [Remote host closed the connection]
mhlei has joined #ruby
szulak has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 246 seconds]
waheedi has joined #ruby
nowhereman has joined #ruby
powerbit has joined #ruby
ferr has joined #ruby
TomyWork has joined #ruby
ferr has quit [Client Quit]
xall_ has joined #ruby
xall_ has quit [Client Quit]
mangold has joined #ruby
xall has quit [Ping timeout: 255 seconds]
HendrikPeter has joined #ruby
HendrikPeter has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
lxsameer has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
DmitryBochkarev_ has joined #ruby
DmitryBochkarev has quit [Ping timeout: 245 seconds]
tvl has joined #ruby
tvl is now known as tobiasvl
<Tuor> havenwood: thx for all your explanation. I went trew it again. I think I understand the idea, but I still don't understand what symbols exactly are and how they work.
marz_d`ghostman has joined #ruby
<marz_d`ghostman> In rails, it doesn't seem that running rails credentials:edit and saving it doesn't seem to be included when dockerizing it.
<marz_d`ghostman> How do I find the file so I can save it along in docker?
ur5us_ has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
schleppel has quit [Ping timeout: 245 seconds]
sylario has joined #ruby
marmotini_ has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
marmotini has joined #ruby
schleppel has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
cisco has joined #ruby
cisco is now known as Guest95744
t0xik has quit [Quit: Connection closed for inactivity]
alem0lars has joined #ruby
Ai9zO5AP has joined #ruby
ferr has joined #ruby
jenrzzz has joined #ruby
amfabaiste has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
troulouliou_dev has quit [Quit: Leaving]
jottr has joined #ruby
ur5us has quit []
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
Tuor has quit [Ping timeout: 245 seconds]
am0123 has joined #ruby
kyrylo has joined #ruby
Tuor has joined #ruby
Tuor has quit [Changing host]
Tuor has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest95744 has quit [Quit: leaving]
marmotini_ has joined #ruby
dar123 has joined #ruby
marmotini has quit [Ping timeout: 255 seconds]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
Tuor has quit [Ping timeout: 245 seconds]
sidx64 has joined #ruby
wolfshappen has quit [Ping timeout: 250 seconds]
wolfshappen_ has joined #ruby
mangold has joined #ruby
am0123 has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 252 seconds]
hightower2 has quit [Changing host]
hightower2 has joined #ruby
marz_d`ghostman has quit [Ping timeout: 256 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
doodlebug has quit [Quit: -a- Connection Timed Out]
doodlebug has joined #ruby
conta has joined #ruby
teclator_ has joined #ruby
Tuor has joined #ruby
Tuor has quit [Changing host]
Tuor has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
xco has joined #ruby
sidx64 has joined #ruby
marmotini has joined #ruby
AJA4350 has joined #ruby
jenrzzz has joined #ruby
marmotini_ has quit [Ping timeout: 250 seconds]
meinside has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 268 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 246 seconds]
am0123 has joined #ruby
marmotini has joined #ruby
teclator_ is now known as teclator_gc
marmotini_ has quit [Ping timeout: 246 seconds]
jinie has joined #ruby
am0123 has quit [Ping timeout: 245 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
dviola has joined #ruby
kyrylo has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
kyrylo has quit [Ping timeout: 246 seconds]
hightower2 has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby
kyrylo has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
ljarvis has quit [Ping timeout: 246 seconds]
conta has joined #ruby
kyrylo has joined #ruby
mondz has joined #ruby
kyrylo has quit [Ping timeout: 244 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 255 seconds]
AJA4351 is now known as AJA4350
kyrylo has joined #ruby
ljarvis has joined #ruby
hightower2 has joined #ruby
kyrylo has quit [Ping timeout: 250 seconds]
jonjitsu has quit [Ping timeout: 250 seconds]
neovalis[m] has quit [Ping timeout: 250 seconds]
supergeek[m] has quit [Ping timeout: 250 seconds]
Turnikov[m] has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
turt2live has quit [Ping timeout: 268 seconds]
bastilian has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
irdr_ has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 255 seconds]
dinfuehr has joined #ruby
irdr has joined #ruby
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 250 seconds]
alem0lars_ has joined #ruby
marmotini has joined #ruby
alem0lars has quit [Ping timeout: 268 seconds]
mangold has quit [Quit: This computer has gone to sleep]
alem0lars has joined #ruby
alem0lars_ has quit [Read error: Connection reset by peer]
marmotini_ has quit [Ping timeout: 268 seconds]
kyrylo has joined #ruby
marmotini_ has joined #ruby
marmotini has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
mondz has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
mangold has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
<Tuor> A symbol is an object which can be converted to a string or integer and is immutable. Is this all to know or are there other special things about symbols?
vondruch has quit [Ping timeout: 255 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fredolinhares has joined #ruby
<phaul> :xxx is not allocated as an object but when first encountered put in the symbol table of the interpreter. It's never freed, invisible to garbage collection. It's a unique thing in the program, and object_id would match up even across programs
<phaul> therefore don't create symbolsdynamically, otherwise you leak memory
<phaul> that also means that while 'xxx'; 'xxx' allocated and grabage collects 2 times, :xxx ; :xxx would not do any of that
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
<Tuor> Ah ok. So when to use them? What it the purpose or why not just using strings?
<phaul> use them for unique values, that represent a thing in your program. :monday, :tuesday, :to_s, to_h, :+ etc.
<phaul> use string for text
<phaul> there is no :mondaytuesday, but there would be 'monday' + 'tuesday'
<Tuor> OK. makes sense.
pupsikov has joined #ruby
lucasb has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
nowhereman has joined #ruby
mondz has joined #ruby
AJA4350 has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
nowhereman has quit [Ping timeout: 250 seconds]
<IGnorAND> https://gist.github.com/nuheluxulu/13de64b734ace5835ed4a121625776d9 WHy does it look like my response variable isn't getting set?
conta has quit [Ping timeout: 244 seconds]
<jhass> to me it looks like the spec code you shared is not the same as the one that produced the output you shared
<jhass> if it were it would say "expected: 7" and "got: 0", not vice versa
<jhass> so make sure you saved your file?
Tuor has quit [Quit: Konversation terminated!]
<jhass> then regardless of that, note that code outside of it, describe, context, before and after blocks is run first and once
<jhass> the spec code is not run sequentially as it's written into the file
<jhass> so api_response will be the same value for both of your it blocks
Tuor has joined #ruby
<jhass> oh wait, I got confused, you made the same typo in both of your it blocks
<jhass> so nvm regarding the wrong output
<jhass> it's just the second thing I mentioned
<jhass> you want to move your local variables inside your it blocks, or introduce more context blocks if you expect multiple specs with the same output and then use before blocks or let declarations inside
Rapture has joined #ruby
polishdub has joined #ruby
<IGnorAND> jhass: aah, I made different contexts for the cases
Iarfen has joined #ruby
<IGnorAND> parsing xml is harder than I thought, even with nokogiri
segy has quit [Read error: Connection reset by peer]
conta has joined #ruby
xco has quit [Quit: xco]
DmitryBochkarev_ has quit [Ping timeout: 255 seconds]
dennis2 has joined #ruby
fluxAeon_ has joined #ruby
maxdoubt has joined #ruby
maxdoubt has quit [Client Quit]
segy has joined #ruby
<phaul> IGnorAND: I made some rewording of your code, I think this is more the rspec way : https://gist.github.com/phaul/ae0fcb5af62deb6de3bbdedfe9ee2b9e (I did not try to fix any issues you are having)
moei has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
<IGnorAND> phaul: much appreciated, I changed the spec to reflect it with the issue fixed :)
<phaul> np
daed has quit [Remote host closed the connection]
Dbugger has quit [Remote host closed the connection]
Drowze has quit [Quit: Page closed]
jobewan has joined #ruby
jobewan has quit [Read error: Connection reset by peer]
ellcs has quit [Ping timeout: 255 seconds]
dviola has quit [Quit: WeeChat 2.4]
jobewan has joined #ruby
<IGnorAND> phaul: I'd like to be more like the guy in this talk: He seems to make a distinction between subject, result and then do asserts on the result. I think I'm still miles away from that now though :)
jobewan has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
ellcs has joined #ruby
marmotini_ has quit [Ping timeout: 240 seconds]
blaguvest has joined #ruby
GodFather has joined #ruby
jobewan has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
maryo has joined #ruby
sphenxes has joined #ruby
jenrzzz has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
kyrylo has joined #ruby
clemens3_ has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
asio has quit [Ping timeout: 250 seconds]
<dennis2> thanks for the link to the talk, I'm learning to enhance my specs aswell :)
Inline has joined #ruby
renich has joined #ruby
asio has joined #ruby
conta has quit [Quit: conta]
cisco has joined #ruby
Swyper has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
DmitryBochkarev_ has joined #ruby
<IGnorAND> @dennis2 the problem becomes trying to do it :)
mondz has quit [Ping timeout: 264 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
ferr has quit [Quit: WeeChat 2.4]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
andikr has quit [Remote host closed the connection]
UnknownSoldier has joined #ruby
UnknownSoldier is now known as \tau
BTRE has quit [Remote host closed the connection]
aupadhye has joined #ruby
Iarfen has quit [Remote host closed the connection]
BTRE has joined #ruby
paraxial85 has quit [Quit: The Lounge - https://thelounge.chat]
paraxial has joined #ruby
SeepingN has joined #ruby
rippa has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 264 seconds]
AJA4351 is now known as AJA4350
alem0lars has quit [Remote host closed the connection]
alem0lars has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
<ryouba> hi!
<ryouba> i'm trying to use Matrix for the first time
<ryouba> but it's confusing!
<ryouba> can somebody explain what is happening in https://gist.github.com/sixtyfive/040af73c64da2b2151f5fd1ca316ea2a ?
<ryouba> i.e. why the second command gives an Exception?
<IGnorAND> cool, looks like algebra :)
<phaul> I guess it doesn't have an inverse.
<ryouba> hhhh
<ryouba> yeah
<ryouba> and i know zilch about algebra :(
<IGnorAND> I can't even find Matrix in my ruby
<ryouba> phaul: i've tried to find just *one* other Matrix that works with #inverse
<ryouba> IGnorAND: require 'matrix' ... but i'm on 2.6.1!
<phaul> determinant shouldn't be 0 iirc
<ryouba> phaul: even [[1,1],[1,1]] doesn't work ... no zeroes in there
<IGnorAND> ryouba: inv works here
<ryouba> (that's [[row1],[row2]], right?)
<ryouba> IGnorAND: with any of the examples i gave?
<phaul> ryouba: both your examples are not invertible.
<ryouba> :(
<ryouba> ah! cool!
<ryouba> too bad there's no #invertible?
mondz has joined #ruby
mondz has quit [Remote host closed the connection]
<ryouba> IGnorAND: that's the example from the class docs. that one's working for me, too.
<phaul> ryouba: is there a #determinant ?
<IGnorAND> ryouba: so which are you trying?
<phaul> if so #invertible? == ! #determinant.zero?
<phaul> and being square and such
<ryouba> phaul: [[1,2],[3,4]] is invertible
mondz has joined #ruby
Iarfen has joined #ruby
<ryouba> phaul: yes, they have #determinant and also the short form #det
<IGnorAND> I see a singular?
GodFather has quit [Remote host closed the connection]
<IGnorAND> A square matrix that is not invertible is called singular or degenerate.
<IGnorAND> Matrix[[1, 1], [1, 1]].singular?
<ryouba> aha
<ryouba> lol, degenerate is a weird name
<IGnorAND> how come you people have such 'easy' problems :P
<IGnorAND> I must be programming wrong
<ryouba> and you guys would agree that the simple inverse of a matrix (such as we've been doing now) is a different thing from taking the moore-penrose "pseudoinverse" (https://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_inverse), right?
<ryouba> IGnorAND: my gf is in neuroscience
<IGnorAND> ryouba: ask your gf :P
<ryouba> well she's busy helping herself while i'm trying to find way to help her
<ryouba> :P
* IGnorAND just looked up matrix and inverse on wikipedia and die a .methods on the object to see what would fit :)
<ryouba> a*
<IGnorAND> ryouba: it says its a generalization of the inverse matrix. So I guess x is a, but a is not x
<ryouba> m-hm
<IGnorAND> ryouba: maybe this helps: https://github.com/SciRuby/nmatrix/commit/f3950b11b8189903f1d70c8012f1bd15e153cca4 - guess you need nmatrix
<ryouba> oooooooooooh cooooooooooooooooool
<ryouba> SciRuby
* ryouba gets the gem
<ryouba> this is aaaaaaaaaaaaaawesome!!! the thing actually reads Matlab .mat files!
mondz has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
<IGnorAND> ryouba: have fun :)
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
Swyper has joined #ruby
alem0lars has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
xco has joined #ruby
mondz has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
ellcs1 has joined #ruby
<ryouba> IGnorAND: having fun compiling fortran libraries needed for that #pinv ...
<IGnorAND> ryouba: hey, at least you have a roadmap of what to do now :)
gix has joined #ruby
<IGnorAND> I'm still struggling on figiring out if I write my code correctly by decoupling stuff or if I am overly complicating stuff :)
<ryouba> i'm so psyched because now i can implement the algorithm from my gf's prof's paper in Ruby instead of having to use Matlab, IGnorAND
<IGnorAND> ryouba: but shouldn't she have already done it in matlab?
<ryouba> if your code has more than 200 lines i would say go and learn what you need to know to be able to decouple it. your future you will thank you.
<ryouba> IGnorAND: yes, she has. but it's giving bogus results. and i'm trying to help but my head keeps threating to explode because matlab is so godforsakenly stupid.
<ryouba> threatening*
wallace_mu has joined #ruby
<IGnorAND> ryouba: I'm trying to follow sandi metz with her 100 lines per class, 5 lines per method, 4 params per method, 1 instance variables per view, 2 class names per controller action
<ryouba> oh i've never heard of her ... *googles*
tdy has joined #ruby
<ryouba> they sound like nice approximate numbers
<ryouba> what's your problem with that method?
<ryouba> are you following it too religiously?
krawchyk has joined #ruby
nowhereman has joined #ruby
<IGnorAND> ryouba: no method issues. more like am I doing this right in terms of classes :)
<IGnorAND> I want to make a library to call stuff from namecheap: https://www.namecheap.com/support/api/methods/domains/get-list.aspx
<IGnorAND> so I made a command class with a subclass for every api call.
<ryouba> IGnorAND: in case you ever want to play with nmatrix, too, heed https://stackoverflow.com/questions/18828730/lapack-linking-error-recompile-with-fpic and compile LAPACK with -fPIC
<IGnorAND> now I need a response class with a subclass for every type of response
<IGnorAND> @ryouba I havent touched calculus or algebra in > 10 years
<ryouba> IGnorAND: by method i meant sandi metz's method(ology)
<ryouba> well you never know
<IGnorAND> @ryouba how old are you if I may ask?
<ryouba> i'm trying to do this and i just *barely* got my A-levels in math back then
<ryouba> 36
<IGnorAND> same age :)
<ryouba> oh :)
Swyper has quit [Remote host closed the connection]
* havenwood tugs on his grey beard with tired eyes
hightower2 has quit [Ping timeout: 255 seconds]
Swyper has joined #ruby
<IGnorAND> anyway, since I have a cmd and a response for every method in the api, I think I should name the classes cmd_method_name and rsp_method_name or method_name_rsp and method_name_cmd
<ryouba> anyways, one thing i've learned about myself when it comes to designing larger scripts (i.e. large enough to require classes): coming up with a class structure beforehand never works. i have to make the bare minimum functionality work and introduce classes as needed, then take a step back and see if what i did makes sense, then re-design from an eagle's eye perspective on paper, then remodel/refactor as needed.
<IGnorAND> havenwood: well, you ussually have good answers for my questions, so you must be like gandalf :)
<ryouba> havenwood: but unlike us, you have gained wisdom
<IGnorAND> ryouba: I'd like to rubber duck program with you sometime. I think I keep trying to design first, and then crash
prestorium has quit [Ping timeout: 245 seconds]
<IGnorAND> ryouba: sandi metz also explains you cannot design beforehand, just get it to work, make your tests green, and as you continue look up code smells and refactor
<IGnorAND> https://github.com/Havenwood that beard isn't grey!
AJA4351 has joined #ruby
<ryouba> hey the duck's supposed to sit ON your screen, not inside of it ;)
* ryouba also has never gotten into TDD and might not be a good source of information for that reason alone
<IGnorAND> ryouba: my english is bad :P
<IGnorAND> ryouba: so we make mistakes together :)
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
houhoulis has joined #ruby
nowhereman has quit [Ping timeout: 268 seconds]
nowhereman has joined #ruby
cisco has quit [Ping timeout: 252 seconds]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krawchyk_ has joined #ruby
krawchyk has quit [Ping timeout: 268 seconds]
jobewan has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
shansen has quit [Remote host closed the connection]
fanta7531 has joined #ruby
pupsikov has joined #ruby
nowhereman has quit [Ping timeout: 252 seconds]
maryo has quit [Quit: Leaving]
am0123 has joined #ruby
jobewan has quit [Quit: jobewan]
cd has quit [Quit: cd]
orbyt_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
jcarl43 has joined #ruby
cd has joined #ruby
Nicmavr has joined #ruby
duderonomy has joined #ruby
jenrzzz has joined #ruby
fredolinhares has quit [Quit: WeeChat 1.9.1]
duderonomy has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
nowhereman has joined #ruby
Tuor has quit [Quit: Konversation terminated!]
SeepingN has quit [Ping timeout: 268 seconds]
<IGnorAND> Would you do a raise 'domain name too long' unless @domain_name <=70 for https://www.namecheap.com/support/api/methods/domains/get-info.aspx
am0123 has quit [Ping timeout: 264 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 252 seconds]
AJA4351 is now known as AJA4350
nowhereman has quit [Ping timeout: 252 seconds]
lunarkitty7 has joined #ruby
jottr has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
krawchyk_ has quit [Quit: krawchyk_]
duderonomy has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ogurk has quit [Remote host closed the connection]
<baweaver> IGnorAND: The thing to remember about Metz's rules are that they're not a hard and fast law
<baweaver> They were designed to give constraints to people who wanted them as an arbitrary guideline of what to pursue
<baweaver> Artificially refactoring your code to hit those numbers may be counter-intuitive
am0123 has joined #ruby
waheedi has quit [Quit: waheedi]
<IGnorAND> @baweaver law would be a string word. I'd think of guidelines
<baweaver> Yeah, that's what I'd keep in mind in general :)
<baweaver> They're good guidelines in general
<baweaver> just some folks take them very religiously and get carried away.
<IGnorAND> but I have weird questions coming from static typed langues
<baweaver> Have you read her book, Practical Object Oriented Design in Ruby?
<IGnorAND> @baweaver I'm somewhere with a bycicle with spare parts, I think about halfway through
<baweaver> It's a pretty good book
<IGnorAND> I'm trying to initialize all my classes with a hash
<baweaver> Typically I recommend it and Eloquent Ruby
<IGnorAND> trying to do the post_initialize_hook for subclasses
<IGnorAND> but I'm writing rails, or at least I think I was, but I somehow got all the way too plain ruby
bokwoon has joined #ruby
<IGnorAND> Russ Olsen?
bokwoon has quit [Quit: WeeChat 2.5-dev]
bokwoon has joined #ruby
tdy has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
teclator_gc has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
DmitryBochkarev_ has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
bokwoon has quit [Quit: WeeChat 2.5-dev]
bokwoon has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bokwoon has quit [Client Quit]
bokwoon has joined #ruby
mkroman has quit [Quit: Reconnecting]
kapil____ has quit [Quit: Connection closed for inactivity]
mkroman has joined #ruby
bokwoon has quit [Client Quit]
bokwoon has joined #ruby
bokwoon has quit [Client Quit]
doodleb77 has joined #ruby
doodlebug has quit [Ping timeout: 245 seconds]
maryo has joined #ruby
maryo has quit [Client Quit]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
theunraveler has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
theunraveler has quit [Client Quit]
polishdub has quit [Remote host closed the connection]
mondz has quit [Quit: ERC (IRC client for Emacs 26.1)]
mondz has joined #ruby
Dbugger has joined #ruby
jenrzzz has joined #ruby
Azure has joined #ruby
kyrylo has joined #ruby
orbyt_ has joined #ruby
doodleb77 has quit [Read error: Connection reset by peer]
ramfjord_ has joined #ruby
orbyt_ has quit [Client Quit]
ramfjord has quit [Ping timeout: 252 seconds]
doodleb53 has joined #ruby
AJA4351 has joined #ruby
krawchyk has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
orbyt_ has joined #ruby
doodleb53 has quit [Read error: Connection reset by peer]
dar123 has joined #ruby
doodlebug has joined #ruby
Swyper has quit [Remote host closed the connection]
n13z has quit [Remote host closed the connection]
ramfjord_ has quit [Ping timeout: 250 seconds]
am0123 has quit [Ping timeout: 252 seconds]
nowhereman has joined #ruby
SeepingN has joined #ruby
sphenxes has quit [Quit: Leaving]
polishdub has joined #ruby
orbyt_ has quit [Remote host closed the connection]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
dsmythe has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 252 seconds]
dsmythe has joined #ruby
xco has quit [Quit: xco]
zachk has joined #ruby
ellcs1 has quit [Ping timeout: 264 seconds]
ellcs1 has joined #ruby
scientes has quit [Read error: Connection reset by peer]
Mia has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
fredolinhares has joined #ruby
am0123 has joined #ruby
dennis2 has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
am0123 has quit [Ping timeout: 250 seconds]
am0123 has joined #ruby
i1nfusion has quit [Remote host closed the connection]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i1nfusion has joined #ruby
orbyt_ has quit [Ping timeout: 240 seconds]
maryo has joined #ruby
Swyper has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Remote host closed the connection]
schleppel has quit [Quit: Konversation terminated!]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 240 seconds]
fanta7531 has quit [Quit: fanta7531]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
orbyt_ has joined #ruby
am0123 has quit [Ping timeout: 250 seconds]
themsay has joined #ruby
Dbugger has quit [Ping timeout: 268 seconds]
noizex has quit [Remote host closed the connection]
duderonomy has joined #ruby
noizex has joined #ruby
jcalla has quit [Remote host closed the connection]
ur5us has joined #ruby
stan has quit [Remote host closed the connection]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
Fernando-Basso has joined #ruby
ldnunes has quit [Quit: Leaving]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
jinie has joined #ruby
stan has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\tau has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
hightower2 has joined #ruby
pupsikov has joined #ruby
ellcs1 has quit [Ping timeout: 264 seconds]
wallace_mu has left #ruby [#ruby]
gigetoo has quit [Ping timeout: 268 seconds]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
Emmanuel_Chanel has joined #ruby
barg has joined #ruby
<barg> how would a program like vnc send data to and fro, the mouse coordinates from client to server, and the screen from server to client? would it use a refresh every like half a second so the client does a POST with coordinates and gets the screen sent back. Or would it use websockets?
d10n-work has joined #ruby
ellcs1 has joined #ruby
SCHAPiE has quit [Quit: ZNC - https://znc.in]
<barg> thanks. I want to write a simple program not like VNC, but you'd have two users, each user is presented with two textboxes. One textbox , the user types into. The other textbox, will display what the other user has typed. How would one go about doing that?
<barg> like, in terms of sending data, what protocol would you suggest?
tarptaeya has left #ruby ["Leaving..."]
dsmythe has quit [Remote host closed the connection]
<jhass> in a browser websocket makes sense
dsmythe has joined #ruby
SCHAPiE has joined #ruby
<barg> ok, what about if not in a browser?
<IGnorAND> barg: there is something called sockets. I think rails does this with cable or something
<barg> yeah rails actioncable uses websockets. But what about if not in a browser?
<IGnorAND> don't think it matters
<IGnorAND> a socket is a socket
<jhass> a socket is a socket but not a websocket
<jhass> websocket is protocol on top of http
<IGnorAND> require 'socket'
<jhass> a plain socket is either TCP or UDP
Iarfen has quit [Remote host closed the connection]
<barg> hmm, I hadn't thought about connecting to a railis server without using a web browser
<jhass> you really don't need rails here
<jhass> the next question you need to answer here is whether you want to work peer to peer or peer to server to peer
orbyt_ has quit [Ping timeout: 250 seconds]
<jhass> do you have two clients connecting to a server or two clients connecting to each other
<havenwood> another question is whether it's Ruby on both ends?
dsmythe_ has joined #ruby
dsmythe_ has quit [Remote host closed the connection]
fluxAeon_ has quit [Quit: Textual IRC Client: www.textualapp.com]
JawJack has joined #ruby
dsmythe has quit [Ping timeout: 252 seconds]
<IGnorAND> I have a person has_many :organizations, through: :employments and organization has_many :employees, through: :employments. This results in Organization.first.employees.first being a person. It seems to make more sense to call Organization.first.employments.first and add functions such as wages etc there. My naming is screwed I think
<havenwood> barg: it might be "fun" to use DRb (distributed Ruby) from the stdlib
jenrzzz has quit [Ping timeout: 252 seconds]
dar123 has joined #ruby
orbyt_ has joined #ruby
Swyper has quit [Remote host closed the connection]
dar123 has quit [Ping timeout: 252 seconds]
Swyper has joined #ruby
orbyt_ has quit [Ping timeout: 252 seconds]
<barg> jhass: yeah i've been considering both possibilities, maybe one version they connect directly, and another versoin there is a server in between
krawchyk has quit [Quit: krawchyk]
<barg> havenwood: yeah would be ruby on both ends
<jhass> for client to client you need to pick one of them to be the server and the other connect to it
<barg> yeah i know
<havenwood> barg: that reminds me of sudo_pair: https://github.com/square/sudo_pair#sudo_pair
<havenwood> barg: here's a ten-year-old example of a simple TCP server/client chat: https://gist.github.com/sirupsen/628372/cc5c76efd77afec4b45abfee8139fc93f40c7111
ellcs1 has quit [Ping timeout: 240 seconds]
dsmythe has joined #ruby
Calinou has quit [Ping timeout: 245 seconds]
JawJack has quit [Quit: Leaving...]
lxsameer has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
<barg> thanks
dsmythe has quit [Ping timeout: 264 seconds]
fredolinhares has quit [Quit: WeeChat 1.9.1]
sylario has quit [Quit: Connection closed for inactivity]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
jhass has quit [Ping timeout: 252 seconds]
Swyper has joined #ruby
wolfshappen_ has quit [Quit: Waffs have technical problems too]
doodlebug has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
themsay has quit [Quit: Quit]
Calinou has joined #ruby
also_uplime has joined #ruby
jhass has joined #ruby
fluxAeon has quit [Ping timeout: 250 seconds]
segy has quit [Quit: ZNC - http://znc.in]
mondz has quit [Ping timeout: 252 seconds]
doodleb81 has joined #ruby
mondz has joined #ruby
doodlebug has quit [Ping timeout: 250 seconds]
dsmythe has joined #ruby
mondz has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
segy has joined #ruby
doodleb81 has quit [Read error: Connection reset by peer]
polishdub has quit [Remote host closed the connection]
garyserj has joined #ruby
dar123 has joined #ruby
Calinou has quit [Quit: No Ping reply in 180 seconds.]
doodlebug has joined #ruby
Calinou has joined #ruby
barg has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [*.net *.split]
amfabaiste has quit [*.net *.split]
mhlei has quit [*.net *.split]
imadper has quit [*.net *.split]
x0f has quit [*.net *.split]
priodev has quit [*.net *.split]
aspiers has quit [*.net *.split]
graft has quit [*.net *.split]
larissa has quit [*.net *.split]
LenPayne has quit [*.net *.split]
cuplime has quit [*.net *.split]
Bish has quit [*.net *.split]
reaVer has quit [*.net *.split]
Koshian has quit [*.net *.split]
jmosco has quit [*.net *.split]
alnk has quit [*.net *.split]
dar123 has quit [Ping timeout: 264 seconds]
mondz has joined #ruby
amfabaiste has joined #ruby
Emmanuel_Chanel has joined #ruby
mhlei has joined #ruby
imadper has joined #ruby
priodev has joined #ruby
aspiers has joined #ruby
cuplime has joined #ruby
jmosco has joined #ruby
larissa has joined #ruby
LenPayne has joined #ruby
graft has joined #ruby
x0f has joined #ruby
alnk has joined #ruby
Bish has joined #ruby
reaVer has joined #ruby
Koshian has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
bambanx has joined #ruby
rafadc has joined #ruby
troulouliou_div2 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
mondz has quit [Ping timeout: 264 seconds]
<IGnorAND> how do I force ruby to divide but give me a double instead of an integer
Swyper has quit [Remote host closed the connection]
<IGnorAND> all I see is .to_f
jenrzzz has joined #ruby
Swyper has joined #ruby
brool has joined #ruby
<SeepingN> * 1.0
DmitryBochkarev_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #ruby
wolfshappen has joined #ruby