baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: 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
ramfjord has quit [Ping timeout: 260 seconds]
eclecticjohny has joined #ruby
hooper has quit [Quit: Leaving.]
TomyLobo2 has quit [Ping timeout: 240 seconds]
codephreak has quit []
tdy has joined #ruby
green_hat has joined #ruby
oncall-pokemon has quit [Quit: Connection closed for inactivity]
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 260 seconds]
ol_______ has joined #ruby
ol_______ has quit [Client Quit]
d^sh has joined #ruby
olivi____ has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
username1 has quit [Ping timeout: 260 seconds]
ncz667 has joined #ruby
pawnbox has joined #ruby
djbkd has joined #ruby
griffindy has joined #ruby
bkxd has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ElDoggo has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
esObe_ has joined #ruby
antru has joined #ruby
hxegon is now known as hxegon_afk
despai has quit [Quit: This computer has gone to sleep]
FoolsGambit has joined #ruby
hahuang61 has joined #ruby
raul782 has quit [Remote host closed the connection]
ncz667 has quit [Quit: WeeChat 1.4]
brent__ has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
ramfjord_ has quit [Ping timeout: 240 seconds]
nOwz has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
dar123 has joined #ruby
djbkd has quit [Quit: My people need me...]
gloscombe_ has quit [Quit: gloscombe_]
blackmesa has joined #ruby
FoolsGambit has quit [Quit: Going offline, see ya! (www.adiirc.com)]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
krt6 has joined #ruby
hutch34 has joined #ruby
raul782 has joined #ruby
alibby2 has quit [Read error: No route to host]
alibby has joined #ruby
marr has quit [Ping timeout: 240 seconds]
jeffreylevesque has joined #ruby
nOwz has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
augcesar has quit [Quit: Connection closed for inactivity]
lightheaded has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
JoshS has joined #ruby
xzhao has quit [Remote host closed the connection]
juggler has joined #ruby
jeffreylevesque has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
dar123 has quit [Quit: Textual IRC Client: www.textualapp.com]
green_hat has quit [Remote host closed the connection]
raspado has quit [Remote host closed the connection]
jgnagy has joined #ruby
edliss has joined #ruby
jgnagy has quit [Ping timeout: 240 seconds]
krt6 has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
eclecticjohny has joined #ruby
esObe_ has quit [Remote host closed the connection]
edliss has quit [Ping timeout: 260 seconds]
green_hat has joined #ruby
AndBobsYourUncle has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 260 seconds]
tdy has quit [Read error: Connection reset by peer]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has joined #ruby
marxarelli is now known as marxarelli|afk
juggler has quit [Remote host closed the connection]
maattdd has joined #ruby
cdg has quit [Remote host closed the connection]
marxarelli|afk is now known as marxarelli
cdg has joined #ruby
jshjsh has joined #ruby
jshjsh has quit [Max SendQ exceeded]
JoshS has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dopamean_ has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
jhack_ has quit [Quit: Leaving]
Rodya_ has quit [Ping timeout: 260 seconds]
newalexandria has joined #ruby
hfp_work has quit [Quit: bye]
cschneid_ has quit [Ping timeout: 246 seconds]
dlitvak has quit [Quit: Connection closed for inactivity]
hfp_work has joined #ruby
pawnbox has joined #ruby
BackEndCoder has quit [Excess Flood]
Azure|dc is now known as Azure
newalexandria has quit [Quit: Mutter: www.mutterirc.com]
BackEndCoder has joined #ruby
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
rkazak_ has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
jshjsh has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jgnagy has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
habitullence_ has joined #ruby
pilne has quit [Quit: Quitting!]
habitullence has quit [Ping timeout: 240 seconds]
habitullence_ is now known as habitullence
bmurt has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
rfoust has quit [Remote host closed the connection]
Myk267 has joined #ruby
rfoust has joined #ruby
nullobject has quit [Quit: WeeChat 1.7]
AKPWD has quit [Quit: じゃね。]
DaniG2k has joined #ruby
hutch34 has joined #ruby
d^sh has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
d^sh has joined #ruby
AKPWD has joined #ruby
hahuang61 has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
roflmyeggo has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
rgtk has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
spicerack has joined #ruby
jenrzzz has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
green_hat has quit []
newalexandria has joined #ruby
maattdd has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
astrobunny has joined #ruby
bkxd has joined #ruby
newalexandria has quit [Client Quit]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sleetdrop has joined #ruby
dx7 has joined #ruby
boog has joined #ruby
marxarelli is now known as marxarelli|afk
davic has joined #ruby
AKPWD has quit [Quit: じゃね。]
AKPWD has joined #ruby
nug has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
nug- has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
lightheaded has joined #ruby
libastral has quit [Ping timeout: 246 seconds]
Channel6 has quit [Quit: Leaving]
lightheaded has quit [Ping timeout: 258 seconds]
libastral has joined #ruby
DaniG2k has quit [Quit: leaving]
duderonomy has quit [Ping timeout: 246 seconds]
j416 has quit [Ping timeout: 264 seconds]
j416 has joined #ruby
lzto has quit [Remote host closed the connection]
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
cschneid_ has joined #ruby
davidt_ has quit []
waltair has quit [Quit: Textual IRC Client: www.textualapp.com]
DoubleMalt has quit [Ping timeout: 264 seconds]
HoierM_ has quit [Ping timeout: 260 seconds]
j416 has quit [Ping timeout: 268 seconds]
dx7 has quit [Remote host closed the connection]
j416 has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
web_nanners has quit [Ping timeout: 240 seconds]
webnanners has joined #ruby
DoubleMalt has joined #ruby
renatosilva has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
grant has joined #ruby
pawnbox has joined #ruby
cfec0b8d has joined #ruby
Rodya_ has joined #ruby
renatosilva has quit [Quit: http://renatosilva.net]
pawnbox has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
dopamean_ has joined #ruby
dopamean_ has quit [Client Quit]
Guest90636 is now known as Asher
hutch34 has quit [Ping timeout: 260 seconds]
rhyselsmore has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
username has joined #ruby
armyriad has joined #ruby
boog has quit [Remote host closed the connection]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nug- is now known as nug
username has quit [Ping timeout: 258 seconds]
boog has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
nikivi- has quit [Quit: ZNC 1.6.4 - http://znc.in]
hahuang61 has joined #ruby
gix has quit [Ping timeout: 246 seconds]
gix has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eclecticjohny has joined #ruby
eclecticjohny has quit [Client Quit]
Rodya_ has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
jeyraof^mbpr has joined #ruby
astrobunny has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.7]
astrobunny has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
jeyraof^mbpr has quit [Client Quit]
astrobun_ has joined #ruby
NightMonkey has quit [Ping timeout: 268 seconds]
nOwz has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
NightMonkey has joined #ruby
hutch34 has joined #ruby
EV3RYDAYPR0GRESS has quit [Read error: Connection reset by peer]
EV3RYDAYPR0GRESS has joined #ruby
nOwz has quit [Ping timeout: 264 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
hutch34 has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
patarr has joined #ruby
anisha has joined #ruby
lightheaded has joined #ruby
amclain has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 260 seconds]
lightheaded has quit [Ping timeout: 258 seconds]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
cibs has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
cibs has joined #ruby
username has joined #ruby
bocaneri has joined #ruby
dionysus69 has joined #ruby
AndBobsYourUncle has joined #ruby
cschneid_ has quit [Remote host closed the connection]
boog has quit []
djbkd has joined #ruby
AndBobsYourUncle has quit [Client Quit]
jaequery has joined #ruby
ElDoggo has joined #ruby
zach has quit [Quit: leaving]
sleetdrop has joined #ruby
ElDoggo has quit [Ping timeout: 268 seconds]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
skweek has quit [Remote host closed the connection]
aupadhye has joined #ruby
hxegon_afk is now known as hxegon
pawnbox has joined #ruby
brent__ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
username has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
squ has joined #ruby
pawnbox has joined #ruby
lightheaded has joined #ruby
Rodya_ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
roflmyeggo has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
hutch34 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Robtop__ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
SuperLag has quit [Quit: Lost terminal]
renchan has joined #ruby
rhyselsmore has quit [Read error: Connection reset by peer]
SuperLag has joined #ruby
ElDoggo has joined #ruby
pwnd_nsfw` has joined #ruby
davic has quit [Quit: Connection closed for inactivity]
Robtop__ has quit [Ping timeout: 246 seconds]
harfangk has joined #ruby
ElDoggo has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
catenthusiast has joined #ruby
raul782 has quit [Remote host closed the connection]
skweek has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
skweek has quit [Remote host closed the connection]
johnny56 has joined #ruby
hahuang61 has joined #ruby
saneax-_-|AFK is now known as saneax
onkelhotte has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
pulkit4tech has joined #ruby
rhyselsmore has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
onkelhotte has quit [Ping timeout: 260 seconds]
kristofferR has quit [Read error: Connection reset by peer]
kristofferR has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
Rodya_ has joined #ruby
Ebok has joined #ruby
muelleme has joined #ruby
raul782 has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Ping timeout: 260 seconds]
nOwz has joined #ruby
d0nn1e has joined #ruby
nOwz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
elifoster has quit [Quit: zzzzz]
patarr has joined #ruby
_whitelogger has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
djbkd_ has joined #ruby
djbkd_ has quit [Client Quit]
zapata has quit [Ping timeout: 240 seconds]
iamse7en has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<iamse7en> anyone have a second to help me? i'm stumped on what combos of .map/.select/etc to get the desired result here. https://gist.github.com/anonymous/480bf9f18e98fd12020a196ff4dad7ca
skweek has quit [Remote host closed the connection]
<dminuoso> iamse7en: If you think in terms of immutable objects it may become simpler.
<iamse7en> how do you mean?
<dminuoso> iamse7en: Copy the whole thing and mutate it.
<dminuoso> or you dont even have to mutate it
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
andikr has joined #ruby
dionysus69 has joined #ruby
<dminuoso> iamse7en: hash.map(&:itself).tap { |h| h["scores"].select { |k, v| k == "group_id" && v == 1 } }
<dminuoso> or you can do:
Burgestrand has joined #ruby
<dminuoso> hash.dup.tap { |h| h["scores"].select { |k, v| k == "group_id" && v == 1 } }
Ebok has quit [Quit: Leaving]
<iamse7en> thank you kindly
<dminuoso> oh wait
<dminuoso> that select should be
<dminuoso> iamse7en: that needs to be a mutation, but I wont spoonfeed you the rest.
<iamse7en> not sure what you mean by mutation
<iamse7en> is that because scores is an array of hashes
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> well do you know what .tap does?
bougyman has quit [Ping timeout: 264 seconds]
<iamse7en> i was just looking it up because i haven't used it before
<dminuoso> iamse7en: it just yields the receiver into the block
<dminuoso> its kind of silly in most applications, since simply storing the object in a variable and using the variable accomplishes the same thing
lightheaded has quit [Ping timeout: 258 seconds]
cschneid_ has joined #ruby
neuraload has joined #ruby
zapata has joined #ruby
ta_ has quit [Remote host closed the connection]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
bougyman has joined #ruby
bougyman has joined #ruby
teclator has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
igniting has joined #ruby
conta has joined #ruby
neuraload has quit [Quit: Leaving]
<iamse7en> dminuoso appreciate the help, but still struggling, may want to be spoonfed if you don't mind
<iamse7en> this code basically copies the original hash. trying to mutate it to remove undesired hashes
xall has joined #ruby
<dminuoso> iamse7en: hash.dup.tap { |h| h["scores"] = ["scores"].select { |k, v| k == "group_id" && v == 1 } }
<dminuoso> ah well
<dminuoso> typo in there
<dminuoso> but thats like a riddle for oyu
cb has quit [Read error: Connection reset by peer]
lightheaded has joined #ruby
<iamse7en> i must be blind. don't see the typo even though i know it's not giving me the desired result
<iamse7en> putting it into english. we're duplicating the hash, only yielding the receiver into a block, using some criteria that the hash of scores will be equal too the hash of scores filtered (select) by the conditions that key and value are group_id and 1.
<iamse7en> it looks fine ot me but returns an empty scores array
Clarity has joined #ruby
gusrub has quit [Remote host closed the connection]
<dminuoso> iamse7en: Ill let you stick with the riddle.
<iamse7en> yikes
cb has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> iamse7en: look at what it's selecting from.
<dminuoso> iamse7en: maybe add some "puts" statements
skweek has joined #ruby
<dminuoso> if "scores" is an empty array, it means that the predicate to select is always false
muelleme has quit [Ping timeout: 246 seconds]
<iamse7en> it's selecting on just a string called ['scores'] which it shouldn't right
<dminuoso> right.
<dminuoso> iamse7en: ["scores"] is just an array, I wasnt fetching something from the hash but supplying a raw array instead
<dminuoso> it should say h["scores"] instead.
pwnd_nsfw has joined #ruby
<iamse7en> i tried that but it still doesn't
<dminuoso> but really, dont use tap it makes code unreadable
<dminuoso> copy the thing
<dminuoso> and mutate it
<iamse7en> well i have a whole array of these "users" that i'm going to iterate over to modify the scores array in each one. i don't know what you mean by copy and mutate it?
kassav_ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
kassav_ has quit [Read error: No route to host]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
toretore has joined #ruby
nofxxxx has joined #ruby
vondruch has joined #ruby
tomphp has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
jaruga________ has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
aswen has joined #ruby
pwnd_nsfw` has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pwnd_nsfw has quit [Ping timeout: 264 seconds]
xen0fon has joined #ruby
jamesaxl has joined #ruby
GazethSonica has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> iamse7en: that makes more sense https://www.irccloud.com/pastebin/Z5jNaKp0/all_the_users.rb
<ruby[bot]> manveru: as I told you already, please use https://gist.github.com
xen0fon has quit [Quit: xen0fon]
<iamse7en> manveru: oh shit, yeah that's awesome.
<iamse7en> never knew about merge
<iamse7en> this is great. thank you so much
<manveru> no problem :)
yqt has joined #ruby
uncertainty has joined #ruby
aganov has joined #ruby
squ has quit [Ping timeout: 245 seconds]
mark_66 has joined #ruby
<GazethSonica> Guys, beginner question: i % 2 == 0 displays the odd numbers, but i would expect even numbers since those dont have remainders. Could someone help clarify where my reasoning is wrong?
<apeiros> GazethSonica: that expression itself doesn't display anything, it only evaluates to true/false
<apeiros> so what's displayed depends on the code around that expression
<iamse7en> manveru: i forgot i needed one more criteria. the scores hash now also brings in 'league'. but when i try users.map{|u| u.merge('scores' => user['scores'].select{|h| h['league'] == 'all' && h['group_id'] == 1 })} all the scores arrays are empty. yet i know every user has a hash that matches those criteria. can't i put two of those conditions in there?
<GazethSonica> oh yea i left out the puts command. Oh wait, it returns if i is dividable by 2?
<GazethSonica> that would explain it!
<apeiros> yes, it evaluates to true for even numbers
Robtop__ has joined #ruby
<GazethSonica> that makes a lot more sense now, thanks apeiros
<apeiros> yw
<manveru> iamse7en: in theory that works, but i assume your hash is different
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<iamse7en> manveru: this is what it looks like exactly. first user and the beginning of the 2nd user https://gist.github.com/austinarchibald/2522af6e9c1b063c2802cfae4d700f35
<iamse7en> want to bring all info only filter scores array to include that one hash that has both league == all and group_id == 1
<iamse7en> just like that first one did only with this one other criteria
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
<iamse7en> users.first['scores'].select{|s| s['group_id'] == 1 && s['league'] == 'all' } returns the hash i'm hoping for. but i guess within the merge method, it's confused about it
hahuang61 has joined #ruby
<manveru> it works for me...
ishigoya has quit [Quit: ttfn]
<ruby[bot]> manveru: as I told you already, please use https://gist.github.com
<manveru> anw, gotta go, cu later :)
<iamse7en> manveru: that works for me too. but the other way did not :D thanks again!
hahuang61 has quit [Ping timeout: 268 seconds]
fivmo has joined #ruby
juggler has joined #ruby
xall has quit [Ping timeout: 246 seconds]
iamse7en has quit [Quit: I'm out like a black kid in a spelling bee.]
skweek has quit [Remote host closed the connection]
lenwood has joined #ruby
skweek has joined #ruby
gloscombe has joined #ruby
gloscombe is now known as gloscombe_
astrobunny has quit [Remote host closed the connection]
ta_ has joined #ruby
nertzy has quit [Ping timeout: 240 seconds]
flying has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
nOwz has joined #ruby
nOwz has quit [Ping timeout: 258 seconds]
lel has quit [Ping timeout: 240 seconds]
lel has joined #ruby
rhyselsmore has joined #ruby
patarr has joined #ruby
skweek has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
koala___ has joined #ruby
koala___ has left #ruby [#ruby]
stan has joined #ruby
koala___ has joined #ruby
howdoi has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
juggler has quit [Read error: No route to host]
catenthusiast has quit [Quit: Textual IRC Client: www.textualapp.com]
Silthias has quit [Ping timeout: 260 seconds]
koala___ has quit [Ping timeout: 246 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
upvjjo has joined #ruby
tomphp has joined #ruby
Radar has quit [Ping timeout: 260 seconds]
mzo has joined #ruby
Radar has joined #ruby
Radar is now known as Guest49333
tris has quit [Ping timeout: 256 seconds]
teclator has quit [Remote host closed the connection]
guacamole has quit [Ping timeout: 260 seconds]
boshhead has quit [Ping timeout: 260 seconds]
boshhead has joined #ruby
tris has joined #ruby
guacamole has joined #ruby
rgr has joined #ruby
Pumukel has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elaptics has joined #ruby
gnufied has joined #ruby
marr has joined #ruby
Pumukel has quit [Remote host closed the connection]
spicerack has joined #ruby
pandaant has joined #ruby
<Garo_> for some reason if I do {"foo":"bar"}.to_yaml I get a result where ":foo" is prefixed with a colon, which I'd rather not. any idea how to avoid this?
<manveru> Garo_: {"foo" => "bar"}.to_yaml
<Garo_> manveru: ah. thanks. guess I have to re-read ruby syntax on defining hashes
<manveru> >> {"foo": "bar"}
<ruby[bot]> manveru: # => {:foo=>"bar"} (https://eval.in/756099)
<manveru> >> :"foo"
<ruby[bot]> manveru: # => :foo (https://eval.in/756100)
Chagel has quit [Ping timeout: 240 seconds]
<Garo_> thank you for reminding this =)
EvilJStoker has quit [Quit: EvilJStoker is gone :(]
JStoker has quit [Quit: JStoker is gone :(]
<dminuoso> >> class S; def to_sym; return :foo; end; { (S.new): "foo" }
<ruby[bot]> dminuoso: # => /tmp/execpad-3bd5634c622d/source-3bd5634c622d:2: syntax error, unexpected ':', expecting => ...check link for more (https://eval.in/756101)
<dminuoso> this should be a thing
blackmesa has joined #ruby
<dminuoso> What do you folks think?
xenops has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
teclator has joined #ruby
JStoker has joined #ruby
EvilJStoker has joined #ruby
workmad3 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
hutch34 has joined #ruby
graft has quit [Ping timeout: 256 seconds]
xen0fon has joined #ruby
xen0fon has quit [Client Quit]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gloscombe_ has quit [Quit: gloscombe_]
graft has joined #ruby
Lord_of_Life has quit [Excess Flood]
cibs has quit [Ping timeout: 256 seconds]
<Bish> >> require 'date'; [Date.today.next_month]
<Bish> >> require 'date'; [Date.today.next_month]
<ruby[bot]> Bish: # => [#<Date: 2017-04-17 ((2457861j,0s,0n),+0s,2299161j)>] (https://eval.in/756105)
<Bish> >> require 'date'; [Date.today.last_month]
<ruby[bot]> Bish: # => undefined method `last_month' for #<Date: 2017-03-17 ((2457830j,0s,0n),+0s,2299161j)> (NoMethodError ...check link for more (https://eval.in/756106)
<Bish> why :(
hutch34 has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
<dminuoso> Bish: Because Ruby is future-oriented.
<dminuoso> It's a feature.
<jancsi> hi guys! can I use "gem install" in a way to install multiple gems with a specific version for all?
<jancsi> something like "gem install gem1-1.0 gem2-1.2 gem3-3.2" ?
<jancsi> I doesnt seem to work.
<dminuoso> jancsi: are you perhaps looking for Bundle/gemspec ?
Lord_of_Life has joined #ruby
<jancsi> dminuoso, other solutions maybe?
lxsameer has joined #ruby
<Bish> dminuoso: heh
<dminuoso> jancsi: Use bundle.
<dminuoso> jancsi: The moment you have the need to "use specific versions" it means it's a project constraint for some reason.
<dminuoso> Use bundler.
<dminuoso> (or gemspec if you are making a gem)
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jancsi> okay thanks!
M67 has joined #ruby
astrobunny has joined #ruby
rgr has quit [Quit: Leaving]
uncertainty has quit [Ping timeout: 256 seconds]
M67 has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Ping timeout: 246 seconds]
biberu has joined #ruby
rgr has joined #ruby
rgr has quit [Client Quit]
rgr has joined #ruby
rgr has quit [Client Quit]
<manveru> jancsi: gem install gem1 --version 1.0
ebbflowgo has joined #ruby
ebbflowgo has quit [Client Quit]
zeroDi has joined #ruby
esObe_ has joined #ruby
zeroDi has quit [Read error: Connection reset by peer]
aufi has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
nOwz has joined #ruby
xen0fon has joined #ruby
FoolsGambit has joined #ruby
ElDoggo has joined #ruby
zeroDi has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
Pumukel has joined #ruby
ElDoggo has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
quazimodo has joined #ruby
biberu has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
aswen has quit [Quit: WeeChat 1.5]
rgr has joined #ruby
pawnbox has quit [Read error: No route to host]
patarr has joined #ruby
pawnbox has joined #ruby
username has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
username has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
Rodya_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
BackEndCoder has quit [Excess Flood]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
BackEndCoder has joined #ruby
Rodya_ has quit [Ping timeout: 256 seconds]
ferr1 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
Guest49333 is now known as Radar
Radar has quit [Changing host]
Radar has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby
lightheaded has quit [Ping timeout: 260 seconds]
sst has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
blackmesa has joined #ruby
sst has quit [Quit: | Danil - http://nil.tomsk.ru/ |]
<mzo> ruby friends
<mzo> i hope everyone is having a awesome day ^__^
<mzo> or for those of u in the americas, i hope u will have a awesome day
cfec0b8d has joined #ruby
teddysmoker has joined #ruby
stan has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
FoolsGambit has quit [Quit: Going offline, see ya! (www.adiirc.com)]
maattdd has joined #ruby
ldnunes has joined #ruby
lenwood has quit [Ping timeout: 268 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
alibby has quit [Read error: No route to host]
alibby1 has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
xen0fon has quit [Quit: xen0fon]
HoierM_ has joined #ruby
_2easy has quit [Quit: Lost terminal]
hutch34 has joined #ruby
Rodya_ has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
davic has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jameser has joined #ruby
inersha has joined #ruby
<inersha> I'm using a gem that has a long name for one of it's methods, and I'd like to make an alias of it so that it's shorter. e.g. `alias short reallylongmethodname`. What's the best way to do this? Should I just Monkey-patch the class of the gem I'm using at the top of my script?
ishigoya has joined #ruby
Burgestrand has quit [Quit: Closing time!]
<inersha> Like:
<inersha> class Class
<inersha> alias short longggggggggggg
<inersha> end
dlitvak has joined #ruby
<inersha> I'm guessing putting the alias in the actual code for the gem is a bad idea.
nOwz has joined #ruby
<toretore> def short; long; end
<bkxd> what is the best way to maintain a project todo list?
<tobiasvl> bkxd: that's broad. is the project on github? if so, just github issues?
<jancsi> Guys. I've got a REST API implemented in Ruby. It uses Unicron and Sinatra. Is it possible to configure them to only allow connections from HTTPS ? I d
<bkxd> tobiasvl: no it's not on github, its a personal project. but it is version controlled by git
<jancsi> Or is it required to place an nginx in front of it?
cschneid_ has joined #ruby
<TheBrayn> jancsi: using nginx for ssl termination is a good idea
mrbobbytables has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
mrbobbytables has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
saneax is now known as saneax-_-|AFK
hahuang61 has joined #ruby
ElDoggo has joined #ruby
uncertainty has joined #ruby
inersha has quit [Quit: leaving]
ElDoggo has quit [Ping timeout: 246 seconds]
hahuang61 has quit [Ping timeout: 264 seconds]
brent__ has joined #ruby
TheWhip has joined #ruby
denniszelada has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
<jdelStro1her> Heya
<mzo> hi jdelStro1her
hutch34 has joined #ruby
Pumukel has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
<jdelStro1her> My ruby app launches one or more daemon processes via popen3. I'd like to ensure the child processes are cleaned up once my app exits. I'm currently doing that by adding an "at_exit { Process.kill('KILL', wait_thr.pid) }" each time a daemon process launches - is there a better way?
Rodya_ has joined #ruby
Pumukel has joined #ruby
denniszelada has left #ruby [#ruby]
sleetdrop has quit [Quit: Computer has gone to sleep.]
uncertainty has quit [Ping timeout: 260 seconds]
<jdelStro1her> It seems less that ideal, particularly as sometimes the child process shuts down before the rest of my app exits, so the at_exit hook would be redundant for that particular child
pawnbox has joined #ruby
<jdelStro1her> (Also - should I be concerned that the presence of an at_exit hook here appears to prevent the Foobar instance from being garbage collected? https://gist.github.com/jdelStrother/b3df27a823eeaf42d657e0bdbf0f9059 )
<toretore> in your main process shutdown procedure, 1) send the appropriate signal (probably not KILL..), then 2) wait for them to finish
hutch34 has quit [Ping timeout: 258 seconds]
kristofferR has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<toretore> you probably shouldn't have at_exit inside an instance method
Rodya_ has quit [Ping timeout: 246 seconds]
griffindy has joined #ruby
despai has joined #ruby
<GazethSonica> guys whats your favourite cheatsheet for ruby? Iǘe been failing to find one i like
<bougyman> GazethSonica: my brain.
FoolsGambit has joined #ruby
<GazethSonica> @bougyman I dont know how to brain :(
bkxd has quit [Ping timeout: 240 seconds]
ramortegui has joined #ruby
<jdelStro1her> toretore: Hmm, ok. It's a rails app - do you happen to know if there's a conventional way of defining a shutdown procedure for it?
<jdelStro1her> Or shall I just add a class-level at_exit hook?
blackmesa has joined #ruby
uncertainty has joined #ruby
cdg has joined #ruby
<toretore> jdelStro1her: what processes are you launching?
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jdelStro1her> toretore: 'exiftool -stay_open'
<toretore> from where?
nikivi has joined #ruby
<jdelStro1her> From some library code that's lazily loaded when I receive an uploaded image
<toretore> whose purpose is to read the exif data from the uploaded image?
GodFather has joined #ruby
<jdelStro1her> It's actually to strip the exif orientation tags out of the image
kilk has joined #ruby
<toretore> why aren't you executing this synchronously, waiting for the process to finish?
chouhoulis has joined #ruby
kilk is now known as aassdd
<jdelStro1her> toretore: because it takes around 250ms to launch exiftool from scratch. If you launch it once with stay_open, you can leave it running and process the images in ~ 5ms
sniffer has quit [Remote host closed the connection]
<toretore> but it's also an order of magnitude more complicated to deal with
<jdelStro1her> Totally.
<jdelStro1her> But nearly 2 orders of magnitude faster
<toretore> you should consider not launching at all from inside rails, and run a batch process separately
upvjjo has quit [Ping timeout: 260 seconds]
<toretore> if you need to get the result synchronously from the rails app, use some form of ipc
<toretore> or even http
aassdd has quit [Quit: leaving]
ddss has joined #ruby
sniffer has joined #ruby
ddss has quit [Client Quit]
Clarity has quit [Remote host closed the connection]
mitt3ns has joined #ruby
ebbflowgo has joined #ruby
uncertainty has quit [Ping timeout: 264 seconds]
TheWhip has quit [Remote host closed the connection]
Rodya_ has joined #ruby
tildes has quit [Remote host closed the connection]
GooseYArd has joined #ruby
FoolsGambit has quit [Quit: Going offline, see ya! (www.adiirc.com)]
ddss has joined #ruby
hogetaro has quit [Ping timeout: 260 seconds]
br0d1n has joined #ruby
uncertainty has joined #ruby
<ddss> ruby
baked__beans has joined #ruby
ddss has quit [Quit: leaving]
aass has joined #ruby
DLSteve_ has joined #ruby
aass is now known as ddss
ddss has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
spicerack has quit [Read error: Connection reset by peer]
raphaelmro has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
hogetaro has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
hutch34 has joined #ruby
Fin1te has joined #ruby
sepp2k has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
lenwood has joined #ruby
cdg_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
<centrx> Yes sir, we have entered the channel. No activity yet.
harfangk has joined #ruby
despai has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
despai has quit [Remote host closed the connection]
agent_white has quit [Disconnected by services]
bkxd has joined #ruby
minimalism has joined #ruby
blackmesa has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
invalidusrname has joined #ruby
<centrx> Status: All systems operating within normal parameters.
<GazethSonica> Take me to your leaaaaaderrrrrr *waves tantacle*
<mzo> hi
<mzo> im so scared
<mzo> is it possible to get a programming job without a degree
<GazethSonica> yes
<mzo> ok im dropping out of university
renchan has quit [Quit: Leaving...]
<GazethSonica> from what i heared experience weighs quite heavily. So do make sure you get involved with projects
matled has quit [Remote host closed the connection]
<mzo> im a wreck
matled has joined #ruby
<GazethSonica> what happened?
<mzo> idk im dropping out of university and buying a train ticket to toronto and i will just see what happens
hutch34 has joined #ruby
<centrx> Why do you do this?
<mzo> idk
<GazethSonica> its okay if you dont wanna tell us, it sounds like youŕe having a hard time
aupadhye has quit [Quit: Leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
<mzo> GazethSonica: yeah you could say that
eclecticjohny has joined #ruby
<mzo> i'm throwing away a scholarship and possibly my CS degree, but as long as i'll still be able to find work i don't care
uncertainty has quit [Ping timeout: 258 seconds]
pandaant has quit [Remote host closed the connection]
bmurt has joined #ruby
<GazethSonica> I dunno what country youŕe from but in the netherlands employers are slamming the pavements for developpers.
<GazethSonica> Iḿ guessing other countries may be similar in terms of job market
<hxegon> mzo: I am one of those, so yeah it's possible
jameser has joined #ruby
jameser has quit [Client Quit]
<hxegon> mzo: being able to sell yourself, and being able to utilize your network of friends becomes like 3x more important when you are starting out, but it's for sure doable
<centrx> Actual tech skills, and ability to communicate, much more important than degree. Degree worthless without the actual competence
<hxegon> ^
Derperperd has joined #ruby
cdg_ has quit [Remote host closed the connection]
lmc has joined #ruby
cdg has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
GooseYArd has left #ruby [#ruby]
tenderlove has joined #ruby
hahuang61 has joined #ruby
workmad3 has joined #ruby
DoubleMalt has joined #ruby
ta_ has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
TheWhip has joined #ruby
nicoulaj has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
patarr has joined #ruby
<hxegon> Don't be afraid to do freelance work, even if you feel unqualified. If you feel you're competent, then there is no reason you can't make a couple grand making a basic portfolio page for some friend of a friend, or some rando you met at a bar.
blackmesa has joined #ruby
lightheaded has joined #ruby
mitt3ns is now known as agent_white
<agent_white> Mornin' folks
Fin1te has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 268 seconds]
Rodya__ has joined #ruby
<GazethSonica> hi white
Rodya_ has quit [Ping timeout: 246 seconds]
lmc has quit [Quit: Leaving...]
despai has joined #ruby
ferr1 has quit [Quit: WeeChat 1.7]
cdg has joined #ruby
cschneid_ has joined #ruby
drewolson has joined #ruby
<drewolson> hey all, i've got a beginner graphql-ruby question
kenichi_ is now known as kenichi
<drewolson> my simple, first query works if i don't explicitly wrap it in `query { ... }`
<drewolson> but if i do, i get an error that says "Field 'query' doesn't exist on type 'Query'"
<Bish> is there an interchange format, that does not suck?
<drewolson> my understanding is that the query wrapper was not required, but allowed
<Bish> xml, bitch please, json, does not even have a date type
<centrx> You can use data types in JSON
iamayam has quit [Ping timeout: 260 seconds]
<centrx> CSV
<Bish> centrx: yeah, if i wrap them somehow in them
<Bish> centrx: wut? csv?
<centrx> I know it's not the same, also no datatypes
<Bish> yeah well, which one is actually good!?
anisha has quit [Quit: Leaving]
<Bish> is like everyone writing their own, that are not insane?
<Bish> i stumbled upon protobuf of google, which looks promising, but way to complicated
mzo has quit [Quit: :*]
spicerack has joined #ruby
<centrx> They're probably using XML
<centrx> Many uses of data transfer don't need specification of data type, so CSV or JSON work, whether or not that qualifies as an "interchange format"
<Bish> poor fools
<centrx> (jk)
<Bish> stopped reading at IFF
<Bish> EA*
drewolson has left #ruby [#ruby]
<Bish> well, there should be something, like seriously
renchan has joined #ruby
<centrx> There's XML, or HTML, it's a simple straightforward way to do it
<centrx> each field an element
<centrx> But what's the use case? Really, most of the time, the receiver expects certain data to be sent. You don't need anything more than CSV
lenwood has quit [Ping timeout: 240 seconds]
synthroi_ has joined #ruby
iamayam has joined #ruby
sniffer has quit [Ping timeout: 245 seconds]
ldnunes has quit [Quit: Leaving]
uncertainty has joined #ruby
<zipper> Is there a way to make jekyll ignore `{{ }}` ?
<zipper> I can't syntax highlight my jinja 2 templates
lizard2010 has joined #ruby
lizard2010 has quit [Client Quit]
shinnya has joined #ruby
JoshS has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
danst__ has quit [Remote host closed the connection]
jshjsh has quit [Ping timeout: 268 seconds]
uncertainty has quit [Ping timeout: 256 seconds]
shamrock has joined #ruby
Pumukel has joined #ruby
pawnbox has quit [Remote host closed the connection]
iamayam has quit [Ping timeout: 276 seconds]
patarr_ has joined #ruby
pawnbox has joined #ruby
rgr has quit [Ping timeout: 256 seconds]
raphaelmro has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
teclator has quit [Read error: Connection reset by peer]
uncertainty has joined #ruby
iamayam has joined #ruby
vcavallo has quit [Remote host closed the connection]
<manveru> Bish: if you need dates and custom classes and stuff, there's YAML
ben___ has quit []
<Bish> i felt yaml is for config files,, not for sending per network
<manveru> you can send anything over the network...
<manveru> except for coffee, that'd be a revolution
<elomatreb> YAML is almost as complicated as XML though, it's not a guaranteed-safe subset like JSON
<manveru> yeah, but try to agree on a time standard in JSON, you always need to document anything that's not a float/array/hash/string
naprimer_3 has joined #ruby
uncertainty has quit [Ping timeout: 260 seconds]
<manveru> that's why there are so many supersets of JSON
ben___ has joined #ruby
ElDoggo has joined #ruby
<elomatreb> Time should be doable by just saying ISO8601, but I agree it gets hairy when you start with durations and stuff
<manveru> YAML is just one that's supported in most languages, has a pretty unambiguous spec, and doesn't hurt to look at
dx7 has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> >> require 'yaml'; y = Time.now.to_yaml; [y, YAML.load(y)]
<ruby[bot]> manveru: # => ["--- 2017-03-17 15:23:29.055996961 +00:00\n...\n", 2017-03-17 15:23:29 +0000] (https://eval.in/756310)
naprimer_2 has quit [Ping timeout: 246 seconds]
igniting has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
mostlybadfly has joined #ruby
brent__ has joined #ruby
be_______ has joined #ruby
xen0fon has joined #ruby
roadrunneratwast has joined #ruby
rkazak has joined #ruby
lxsameer has joined #ruby
antoniobeyah has joined #ruby
ben___ has quit [Ping timeout: 246 seconds]
<GazethSonica> im out guys, very great weekend!
<GazethSonica> *have a
GazethSonica has quit [Quit: Leaving]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
synthroi_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
amclain has joined #ruby
DoubleMalt has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Remote host closed the connection]
qpykxs has joined #ruby
nowhere_man has joined #ruby
synthroid has joined #ruby
Fin1te has joined #ruby
skalfyfan has joined #ruby
username1 has joined #ruby
invalidusrname has quit [Quit: Textual IRC Client: www.textualapp.com]
roadrunneratwast has left #ruby [#ruby]
jancsi has quit [Ping timeout: 260 seconds]
dopamean_ has joined #ruby
kinduff has joined #ruby
[Butch] has joined #ruby
kinduff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teclator has joined #ruby
TvL2386 has quit [Remote host closed the connection]
jaruga________ has quit [Quit: jaruga________]
TheWhip has quit [Remote host closed the connection]
amargherio has joined #ruby
esObe__ has joined #ruby
aupadhye has joined #ruby
Guest9835 is now known as silverdust
silverdust has quit [Changing host]
silverdust has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
esObe__ has quit []
alamar has quit [Ping timeout: 256 seconds]
esObe_ has joined #ruby
mark_66 has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
raspado has joined #ruby
pawnbox has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
mzo has joined #ruby
TheWhip has joined #ruby
jaruga________ has joined #ruby
polishdub has joined #ruby
nickjj has joined #ruby
raul782 has joined #ruby
blackwind_123 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
Arpanet69 has joined #ruby
lenwood has joined #ruby
DARPA has joined #ruby
patarr_ has quit [Ping timeout: 260 seconds]
sneakerhax has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 246 seconds]
patarr has joined #ruby
alamar has joined #ruby
synthroi_ has joined #ruby
alamar is now known as Guest260
synthro__ has joined #ruby
hahuang61 has joined #ruby
synthroid has quit [Ping timeout: 256 seconds]
synthroi_ has quit [Ping timeout: 240 seconds]
nOwz has quit [Ping timeout: 258 seconds]
manjaro-kde5 has joined #ruby
Pumukel has quit [Remote host closed the connection]
rippa has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang61 has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 268 seconds]
lenwood has quit [Ping timeout: 256 seconds]
manjaro-kde5 has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
Pumukel has joined #ruby
teddysmoker has quit [Quit: Konversation terminated!]
TomyWork has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
hxegon has quit [Quit: leaving]
rkazak has quit [Quit: Sleep.....ing....]
teddysmoker has joined #ruby
workmad3_ has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
GodFather has quit [Client Quit]
GodFather_ has joined #ruby
synthro__ has quit [Ping timeout: 256 seconds]
GodFather__ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
[Butch] has quit [Quit: I'm out . . .]
sepp2k has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
<Doow> Is there a prettier way to do this in ruby? https://gist.github.com/anonymous/8f671a61178494c345e0e8ec6c7b1f0f
GodFather_ has quit [Ping timeout: 240 seconds]
<havenwood> Doow: send(*ARGV)
<Doow> havenwood, thanks =D
cfec0b8d has quit [Ping timeout: 268 seconds]
Derperperd has quit [Max SendQ exceeded]
Derperperd has joined #ruby
hahuang61 has joined #ruby
hutch34 has joined #ruby
xen0fon has quit [Quit: xen0fon]
Rodya__ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
xzhao has joined #ruby
renchan has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 246 seconds]
flying has quit []
renchan has joined #ruby
renchan has quit [Remote host closed the connection]
pulkit4tech has quit [Quit: Connection closed for inactivity]
andikr has quit [Remote host closed the connection]
enterprisey has joined #ruby
AndBobsYourUncle has joined #ruby
kinduff has joined #ruby
fivmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
__Yiota has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 258 seconds]
cFire has quit [Disconnected by services]
baked__beans has quit [Ping timeout: 268 seconds]
patarr has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
bkxd has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Rodya_ has joined #ruby
szulak_ has joined #ruby
jamesaxl has joined #ruby
enterprisey has quit [Remote host closed the connection]
igniting has joined #ruby
SeepingN has joined #ruby
aufi has quit [Quit: Leaving]
Doow has quit [Quit: Leaving]
baked__beans has joined #ruby
chouhoulis has joined #ruby
synthroi_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Pumukel has joined #ruby
synthroid has quit [Ping timeout: 268 seconds]
skweek has joined #ruby
muelleme has joined #ruby
gusrub has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
xen0fon has joined #ruby
despai has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
despai has quit [Client Quit]
kinduff has quit [Quit: brb]
gusrub has joined #ruby
_djbkd has joined #ruby
renatosilva has joined #ruby
skalfyfan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skalfyfan has joined #ruby
hooper has joined #ruby
rgtk has joined #ruby
cfec0b8d has joined #ruby
t-recx has joined #ruby
br0d1n has quit [Quit: Leaving]
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord_ has joined #ruby
enterprisey has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
cibs has quit [Ping timeout: 258 seconds]
ramfjord_ has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qpykxs has quit [Remote host closed the connection]
amargherio has quit [Quit: WeeChat 1.6]
JoshS has quit [Quit: Leaving]
bocaneri has quit [Read error: Connection reset by peer]
nOwz has joined #ruby
tvw has quit []
blackmesa has joined #ruby
cdg has quit [Remote host closed the connection]
montanonic has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzxc- has quit [Quit: ZNC 1.6.4 - http://znc.in]
nOwz has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kirun has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
kinduff has joined #ruby
gloscombe_ has joined #ruby
Arpanet69 has quit [Ping timeout: 268 seconds]
DARPA has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
kinduff has quit [Quit: <3]
hutch34 has quit [Ping timeout: 260 seconds]
esObe_ has quit [Remote host closed the connection]
renchan has joined #ruby
Ishido has joined #ruby
DARPA has joined #ruby
Arpanet69 has joined #ruby
hutch34 has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
IRCFrEAK has joined #ruby
IRCFrEAK has quit [K-Lined]
patarr has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
IRCFrEAK has joined #ruby
dionysus69 has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
IRCFrEAK has quit [K-Lined]
SeepingN has joined #ruby
workmad3_ has quit [Ping timeout: 260 seconds]
pytuger has quit [Quit: Leaving.]
IRCFrEAK has joined #ruby
aspiers has quit [Ping timeout: 264 seconds]
IRCFrEAK has quit [K-Lined]
DARPA has quit [Read error: Connection reset by peer]
Arpanet69 has quit [Read error: Connection reset by peer]
aswen has joined #ruby
aspiers has joined #ruby
IRCFrEAK has joined #ruby
Cohedrin has joined #ruby
IRCFrEAK has quit [K-Lined]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
IRCFrEAK has joined #ruby
bmurt has joined #ruby
IRCFrEAK has quit [K-Lined]
bkxd has quit [Ping timeout: 240 seconds]
spicerack has joined #ruby
IRCFrEAK has joined #ruby
chouhoulis has quit [Remote host closed the connection]
IRCFrEAK has quit [K-Lined]
chouhoulis has joined #ruby
blackmesa has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
synthroi_ has quit []
username1 has quit [Ping timeout: 260 seconds]
blackpajamas has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 240 seconds]
TomyLobo2 has joined #ruby
Pumukel has joined #ruby
nertzy has joined #ruby
sepp2k has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
zzxc has joined #ruby
raul782 has quit [Remote host closed the connection]
ramfjord has joined #ruby
Fin1te has quit [Quit: Later, tater.]
Pumukel has quit [Ping timeout: 240 seconds]
szulak_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pulkit4tech has joined #ruby
tvw has joined #ruby
Derperperd has quit [Ping timeout: 264 seconds]
dopamean_ has quit [Quit: 1]
Rodya_ has joined #ruby
mzo has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 264 seconds]
sniffer has joined #ruby
chouhoulis has joined #ruby
Rodya_ has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 240 seconds]
username1 has joined #ruby
IRCFrEAK has joined #ruby
muelleme has quit [Ping timeout: 246 seconds]
maattdd has quit [Ping timeout: 260 seconds]
passion8 has joined #ruby
IRCFrEAK has quit [K-Lined]
<passion8> hello
jaruga________ has quit [Quit: jaruga________]
bkxd has joined #ruby
passion8 has quit [Client Quit]
Paari has joined #ruby
<Paari> hello
cdg has joined #ruby
AKifer__ has joined #ruby
<havenwood> hi
<Paari> puts “hello” if its_ruby_channel?
jokke has quit [Read error: Connection reset by peer]
elifoster has joined #ruby
raul782 has joined #ruby
jokke has joined #ruby
blackmesa has joined #ruby
Paari has quit [Quit: Paari]
<hxegon> >> is_ruby_channel = true; "hello" if is_ruby_channel
<ruby[bot]> hxegon: # => "hello" (https://eval.in/756458)
ramfjord_ has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
lenwood has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
aswen has quit [Quit: WeeChat 1.5]
balazs has quit [Remote host closed the connection]
IRCFrEAK has joined #ruby
ahrs has quit [Remote host closed the connection]
AKifer__ has quit [Quit: Page closed]
ahrs has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.5]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
ta_ has joined #ruby
IRCFrEAK has quit [K-Lined]
ramfjord_ has quit [Ping timeout: 260 seconds]
blackwind_123 has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
LyndsySimon has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 240 seconds]
IRCFrEAK has joined #ruby
IRCFrEAK has quit [K-Lined]
skalfyfan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IRCFrEAK has joined #ruby
IRCFrEAK has left #ruby [#ruby]
hutch34 has joined #ruby
IRCFrEAK has joined #ruby
IRCFrEAK has quit [K-Lined]
lenwood has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
IRCFrEAK has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
IRCFrEAK has quit [K-Lined]
enterprisey has quit [Remote host closed the connection]
IRCFrEAK has joined #ruby
Derperperd has joined #ruby
agent_white has joined #ruby
<Renich> help out with this, please. I have two csv files. They have a common column. Also, they have multiple to one relations. I need to parse them and generate a third file; joined
Jackneill has joined #ruby
IRCFrEAK has quit [K-Lined]
chouhoulis has joined #ruby
Jackneill has quit [Max SendQ exceeded]
Myk267 has quit [Quit: Myk267]
<Renich> I have that. But it takes ages
blackmesa has joined #ruby
Jackneill has joined #ruby
<Renich> Also, I want to write a 3rd csv file, but just getting into that
<Renich> will use CSV.generate
lightheaded has quit [Read error: No route to host]
<Renich> errr... CSV.open
lightheaded has joined #ruby
<allisio> Renich: I don't know what your data looks like, but you should be able to use a Hash to make the lookups O(1) instead of O(n).
<Renich> allisio: great. How?
IRCFrEAK has joined #ruby
IRCFrEAK has quit [K-Lined]
<allisio> Renich: `names.each_with_object({}) { |n, h| h[n[:RFC]] = 1 }` or some such.
<Renich> allisio: thanks for the example
ta_ has quit [Ping timeout: 256 seconds]
lzto has joined #ruby
habitullence has quit [Quit: habitullence]
alanquillin has joined #ruby
Rodya_ has joined #ruby
<allisio> Renich: Sure. Do you see how to make use of it?
<Renich> allisio: can't seem to be able to find the docs on each_with_object
<allisio> &ri #each_with_object
<Renich> thanks
IRCFrEAK has joined #ruby
zzxc has quit [Quit: ZNC 1.6.4 - http://znc.in]
IRCFrEAK has quit [Excess Flood]
dionysus69 has quit [Ping timeout: 240 seconds]
MyMind has joined #ruby
ta_ has joined #ruby
preyalone has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
jaruga________ has joined #ruby
Sembei has quit [Ping timeout: 260 seconds]
givemeparttt2000 has joined #ruby
baked__beans has quit [Ping timeout: 264 seconds]
givemeparttt2000 has quit [K-Lined]
raul782 has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 240 seconds]
givemeparttt2000 has joined #ruby
d0nn1e has joined #ruby
milardovich has joined #ruby
givemeparttt2000 has quit [K-Lined]
jaruga________ has quit [Quit: jaruga________]
montanonic has quit [Ping timeout: 240 seconds]
centrx has quit []
muelleme has joined #ruby
despai has joined #ruby
quiller has quit [Ping timeout: 264 seconds]
givemeparttt2000 has joined #ruby
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
givemeparttt2000 has quit [K-Lined]
bocaneri has joined #ruby
xen0fon has quit [Quit: xen0fon]
ramortegui has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
lamer14897856317 has joined #ruby
raphaelmro has quit [Ping timeout: 260 seconds]
lamer14897856317 has quit [K-Lined]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<allisio> Renich: It occurs to me that what you really want is #group_by.
username2 has joined #ruby
jamesaxl has quit [Quit: Leaving]
renchan has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
IRCFrEAK has joined #ruby
szulak has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
IRCFrEAK has quit [K-Lined]
ElDoggo has quit []
blackmesa has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: bbl]
despai has joined #ruby
minimalism has quit [Ping timeout: 240 seconds]
nyuszika7h has quit [Read error: Connection reset by peer]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
bmurt has joined #ruby
_djbkd has joined #ruby
minimalism has joined #ruby
nyuszika7h has joined #ruby
Immune has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 256 seconds]
yqt has quit [Ping timeout: 246 seconds]
chrisseaton has left #ruby [#ruby]
Rodya_ has quit [Ping timeout: 246 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
hutch34 has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
montanonic has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
cpruitt has quit [Quit: cpruitt]
tenderlove has quit [Quit: Leaving...]
raul782 has joined #ruby
mjuszczak has quit []
bkxd has quit [Ping timeout: 240 seconds]
matthewd has quit [Quit: ZNC - http://znc.in]
saneax-_-|AFK is now known as saneax
bkxd has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
IRCFrEAK has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
ule has quit [Quit: leaving]
IRCFrEAK has quit [K-Lined]
mjuszczak has joined #ruby
raul782 has joined #ruby
IRCFrEAK has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
renatosilva has quit [Quit: http://renatosilva.net]
IRCFrEAK has quit [K-Lined]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
matthewd has joined #ruby
bkxd has joined #ruby
kirun has quit [Ping timeout: 240 seconds]
IRCFrEAK has joined #ruby
Mon_Ouie has joined #ruby
raul782 has quit [Remote host closed the connection]
despai has joined #ruby
rhyselsmore has joined #ruby
IRCFrEAK has quit [K-Lined]
mzo has joined #ruby
Pumukel has joined #ruby
griffindy has joined #ruby
Myk267 has joined #ruby
__Yiota has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 268 seconds]
matthewd_ has joined #ruby
matthewd has quit [Ping timeout: 264 seconds]
matthewd_ is now known as matthewd
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
cschneid_ has quit [Remote host closed the connection]
__main__ has quit [Read error: Connection reset by peer]
jhack has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
__main__ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
minimalism has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
IRCFrEAK has joined #ruby
raspado has quit [Remote host closed the connection]
cibs has joined #ruby
IRCFrEAK has quit [Excess Flood]
bkxd has quit [Ping timeout: 260 seconds]
cfec0b8d has quit [Quit: Leaving.]
skweek has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
_djbkd has quit [Quit: My people need me...]
gnufied has quit [Ping timeout: 246 seconds]
oetjenj has joined #ruby
daemonwrangler has joined #ruby
t-recx has quit [Quit: t-recx]
polishdub has quit [Quit: Leaving]
gnufied has joined #ruby
GodFather__ has quit [Quit: Ex-Chat]
GodFather__ has joined #ruby
sepp2k has quit [Quit: Leaving.]
IRCFrEAK has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
hxegon is now known as hxegon_afk
grant has joined #ruby
mjuszczak has quit []
milardovich has quit [Ping timeout: 264 seconds]
pilne has joined #ruby
IRCFrEAK has quit [Remote host closed the connection]
yeticry_ has quit [Quit: leaving]
raul782 has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
gnufied has quit [Ping timeout: 246 seconds]
hutch34 has joined #ruby
milardovich has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
dx7 has quit [Ping timeout: 240 seconds]
bman013 has joined #ruby
spicerack has joined #ruby
cdg has quit [Remote host closed the connection]
biberu has quit []
yeticry has joined #ruby