havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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
gusrub has quit []
<zenspider> jk
al2o3-cr has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
<al2o3-cr> zenspider: apologies
<zenspider> accepted
<al2o3-cr> :)
Guest83 has quit [Client Quit]
kkiero has left #ruby [#ruby]
lxsameer has quit [Quit: WeeChat 1.9]
AAA has joined #ruby
brent__ has quit [Ping timeout: 248 seconds]
<quuxman> apparently I needed to add no_primary_key to every model that didn't have an id column
Guest83 has joined #ruby
runescape07rsps has joined #ruby
hotpancakes has quit [Remote host closed the connection]
infernix has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
rohitpaulk has joined #ruby
rkellermeyer has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
milardov_ has joined #ruby
Hunter1 has quit []
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 268 seconds]
<al2o3-cr> quuxman: is this a rails ting?
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Guest83 has joined #ruby
rkellermeyer has joined #ruby
<al2o3-cr> >> %)RAILS IS AMAZING).gsub /\G/, ?*
<ruby[bot]> al2o3-cr: # => "*R*A*I*L*S* *I*S* *A*M*A*Z*I*N*G*" (https://eval.in/833686)
<al2o3-cr> NOT
phinxy has joined #ruby
<phinxy> What is line 2. doing? http://ideone.com/jjQxJx
dstrunk has joined #ruby
<al2o3-cr> phinxy: what do you think it's doing?
cagomez has quit [Ping timeout: 260 seconds]
<phinxy> DX is a dictionary where they key E is set to 1, W is set to -1 etc,
<phinxy> but E is defines as 4..
<phinxy> so.. DX[4] = 1 ?
hotpancakes has joined #ruby
<phinxy> This is my first encounter with Ruby
bruno- has quit [Ping timeout: 240 seconds]
<al2o3-cr> phinxy: are you coming from python?
infernix has joined #ruby
<al2o3-cr> anyway
<al2o3-cr> that is a Hash
<al2o3-cr> with key/value pairs just like dict
<quuxman> al2o3-cr: I'm using Sequel
<al2o3-cr> you've got 3 hashes
hotpancakes has quit [Remote host closed the connection]
<al2o3-cr> phinxy: you can't index hashes, just like you cant index a dict
<al2o3-cr> array/list can be indexed
<al2o3-cr> quuxman: my bad :(
orgasm has quit [Ping timeout: 258 seconds]
jdawgaz has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
<al2o3-cr> phinxy: so basically you've got 4 constants and 3 hashes
<al2o3-cr> with consequent 4 key/value pairs
<al2o3-cr> phinxy: DX[E] = 1 ?
<phinxy> The fact that E is 4 does not matter?
<phinxy> It is used as a C #define?
rkellermeyer has quit [Ping timeout: 276 seconds]
<al2o3-cr> phinxy: of course
hotpancakes has joined #ruby
<al2o3-cr> so, you answered your own question
Sammichmaker has quit [Read error: Connection reset by peer]
rundor has quit [Remote host closed the connection]
AAA has quit [Ping timeout: 268 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
<al2o3-cr> phinxy: ruby hashes work exactly like a python dictionary works
hotpancakes has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> same if you do this in perl, lua etc...
ansraliant has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
moei has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
tau has joined #ruby
jdawgaz has joined #ruby
centrx has joined #ruby
brent__ has quit [Ping timeout: 268 seconds]
jdawgaz has quit [Client Quit]
bkxd has joined #ruby
bkxd_ has joined #ruby
umaaji has joined #ruby
rohitpaulk has joined #ruby
hutch34 has joined #ruby
<al2o3-cr> phinxy:
<phinxy> al2o3-cr,
<al2o3-cr> consider this
<al2o3-cr> >> A,B,C=1,2,3; f={A: B, B: A, C: B}
<ruby[bot]> al2o3-cr: # => {:A=>2, :B=>1, :C=>2} (https://eval.in/833689)
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 268 seconds]
<al2o3-cr> now, consider this
<phinxy> The 'A' is just a key and the dict does not know it came from 'A' object?
<al2o3-cr> >> A,B,C=1,2,3; f={A => B, B => A, C => B}
<ruby[bot]> al2o3-cr: # => {1=>2, 2=>1, 3=>2} (https://eval.in/833690)
ReinH has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
tau has quit [Read error: Connection reset by peer]
<phinxy> Oh!
<phinxy> now the key is set
orgasm has joined #ruby
<ReinH> Oh, when did #ruby-lang merge with #ruby?
sarmiena_ has quit [Quit: sarmiena_]
<centrx> Last year sometime
<ReinH> Neat.
hotpancakes has joined #ruby
bruno- has joined #ruby
<al2o3-cr> that's a pretty bad example tbh but ...
patarr has joined #ruby
gj has joined #ruby
tau has joined #ruby
grymmjack has quit [Ping timeout: 255 seconds]
gj is now known as grymmjack
hutch34 has joined #ruby
<al2o3-cr> phinxy: you know what a symbol is?
ecuanaso has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
phinxy has quit [Ping timeout: 255 seconds]
jirido_ has left #ruby [#ruby]
rundor has joined #ruby
centrx has quit []
enterprisey has joined #ruby
Azure has quit [Quit: Oops.]
_Bin4ry has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Remote host closed the connection]
mniip has quit [Read error: Connection reset by peer]
mniip has joined #ruby
__Yiota has joined #ruby
Guest83 has joined #ruby
<matthewd> al2o3-cr: Exactly not the same if you do this in Perl, FWIW
kculpis has joined #ruby
Azure has joined #ruby
kculpis has quit [Max SendQ exceeded]
hotpancakes has joined #ruby
jdawgaz has joined #ruby
<al2o3-cr> matthewd: bullshit
Guest83 has quit [Client Quit]
gizmore|2 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
Guest83 has joined #ruby
joelwallis has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
smulverine has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
<al2o3-cr> matthewd: and wtf that prove?
<al2o3-cr> that it interpolates
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phinxy has joined #ruby
naprimer has quit [Ping timeout: 240 seconds]
<runescape07rsps> whats UP
<matthewd> "of course" and "exactly the same" need some reasonably strong understanding of how the syntaxes differ
astrobunny has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
<al2o3-cr> matthewd: pretty sure i understand how syntaxes differ
rundor has joined #ruby
tacoboy has joined #ruby
rundor has quit [Remote host closed the connection]
bronson has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> al2o3-cr: Sure. But that distinction may not be apparent to someone who's new, so let's not imply they're missing something obvious.
AAA has joined #ruby
lacuna has joined #ruby
<al2o3-cr> i'll just fuck off then
al2o3-cr has quit [Quit: WeeChat 1.9]
hotpancakes has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
milardov_ has quit [Remote host closed the connection]
rundor has joined #ruby
mim1k has joined #ruby
d^sh has quit [Ping timeout: 268 seconds]
astrobunny has joined #ruby
milardovich has joined #ruby
d^sh has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
apparition has joined #ruby
joelwallis has quit []
PorcoRex has joined #ruby
herbmillerjr has joined #ruby
<PorcoRex> Evening Ruby.
gothicsouth has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patarr has joined #ruby
facest has joined #ruby
cdg has joined #ruby
blznblzn2 has joined #ruby
statelesscode_ has joined #ruby
zzak_ has joined #ruby
adambeynon_ has joined #ruby
kculpis has joined #ruby
gwilkes_ has joined #ruby
sonOfRa_ has joined #ruby
chrisseaton_ has joined #ruby
avdi_ has joined #ruby
cstrahan_ has joined #ruby
bove_ has joined #ruby
danzilio_ has joined #ruby
t-richards_ has joined #ruby
bcavileer_ has joined #ruby
yosafbridge` has joined #ruby
kireevco_ has joined #ruby
boxrick1_ has joined #ruby
pmarreck_ has joined #ruby
discopatrick_ has joined #ruby
jottr has joined #ruby
LyndsySimon_ has joined #ruby
jaequery has joined #ruby
patarr has quit [Ping timeout: 248 seconds]
cyclonis_ has joined #ruby
jzigmund_ has joined #ruby
chloe____ has joined #ruby
MasterNayru has joined #ruby
<jaequery> hi guys, anyone happen to have a recommendation on a good book for a young kid (highschooler) wanting to become a web developer?
alex``` has joined #ruby
patarr has joined #ruby
devyn_ has joined #ruby
moei has quit [Ping timeout: 240 seconds]
<jaequery> im not sure what would be a book appropriate for a high school kid
RushPL has joined #ruby
moei has joined #ruby
kies has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
k1ltzman has joined #ruby
<PorcoRex> jaequery, do you have any background in development? And in web development?
matthewd_ has joined #ruby
Scientz has joined #ruby
szulak_ has joined #ruby
apeiros_ has joined #ruby
gnoss_ has joined #ruby
zachary1- has joined #ruby
dysfigur- has joined #ruby
cjk101010_ has joined #ruby
justinmrkva_ has joined #ruby
Archrove- has joined #ruby
timmow_ has joined #ruby
<jaequery> well, i been developing for over 13 years
<jaequery> :)
Tagami[m]1 has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
<jaequery> but i dont know how to pick a good book for kids these days hehe
zack6849 has quit [*.net *.split]
alex`` has quit [*.net *.split]
Tagami[m] has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
t-richards has quit [*.net *.split]
discopatrick has quit [*.net *.split]
boxrick1 has quit [*.net *.split]
kireevco has quit [*.net *.split]
nertzy has quit [*.net *.split]
armyriad has quit [*.net *.split]
Guest73807 has quit [*.net *.split]
willymox has quit [*.net *.split]
gnoss has quit [*.net *.split]
jzigmund has quit [*.net *.split]
chloe__ has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
gwilkes has quit [*.net *.split]
faces has quit [*.net *.split]
zzak has quit [*.net *.split]
dysfigured has quit [*.net *.split]
crayfishx_ has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
timmow has quit [*.net *.split]
devyn has quit [*.net *.split]
MasterNayru_ has quit [*.net *.split]
cyclonis has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
mistym has quit [*.net *.split]
kash has quit [*.net *.split]
sindork has quit [*.net *.split]
qsx has quit [*.net *.split]
statelesscode has quit [*.net *.split]
Archrover has quit [*.net *.split]
gremax has quit [*.net *.split]
octomancer has quit [*.net *.split]
avdi has quit [*.net *.split]
troter__________ has quit [*.net *.split]
bcavileer has quit [*.net *.split]
cstrahan has quit [*.net *.split]
pmarreck has quit [*.net *.split]
matthewd has quit [*.net *.split]
kiltzman has quit [*.net *.split]
Scient has quit [*.net *.split]
apeiros has quit [*.net *.split]
Caius has quit [*.net *.split]
szulak has quit [*.net *.split]
vedu has quit [*.net *.split]
adambeynon has quit [*.net *.split]
zachary12 has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
LyndsySimon has quit [*.net *.split]
danzilio has quit [*.net *.split]
bove has quit [*.net *.split]
Rush_ has quit [*.net *.split]
justinmrkva has quit [*.net *.split]
gwilkes_ is now known as gwilkes
sonOfRa_ is now known as sonOfRa
statelesscode_ is now known as statelesscode
Scientz is now known as Scient
gnoss_ is now known as gnoss
matthewd_ is now known as matthewd
t-richards_ is now known as t-richards
justinmrkva_ is now known as justinmrkva
zzak_ is now known as zzak
kireevco_ is now known as kireevco
boxrick1_ is now known as boxrick1
adambeynon_ is now known as adambeynon
pmarreck_ is now known as pmarreck
chrisseaton_ is now known as chrisseaton
troter__________ has joined #ruby
armyriad has joined #ruby
discopatrick_ is now known as discopatrick
sindork_ has joined #ruby
bcavileer_ is now known as bcavileer
bove_ is now known as bove
avdi_ is now known as avdi
danzilio_ is now known as danzilio
zack6849 has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
patarr has quit [Ping timeout: 260 seconds]
cstrahan_ is now known as cstrahan
vedu has joined #ruby
LyndsySimon_ is now known as LyndsySimon
baweaver_away is now known as baweaver
<PorcoRex> This garbage collector is pretty extreme...
octomancer has joined #ruby
rundor has quit [Remote host closed the connection]
alamar has joined #ruby
alamar is now known as Guest67830
<PorcoRex> jaequery, I assume you're looking for a Rails reference for webdev?
TheBrayn has joined #ruby
<PorcoRex> Maybe they can give you a better assesment in their channel.
willymox has joined #ruby
ricer2 has quit [Ping timeout: 260 seconds]
runescape07rsps has quit [Quit: Leaving]
bokayio has quit [Ping timeout: 240 seconds]
kash has joined #ruby
runescape07rsps has joined #ruby
runescape07rsps has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 260 seconds]
ignarps has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
crayfishx has joined #ruby
charliesome has joined #ruby
<jaequery> @porcorex: yea, but no response
<jaequery> is the irc channel dead these days? i haven't been on here in like 2 years
<PorcoRex> I'm not sure.
<jaequery> seems relatively too quiet
bokayio has joined #ruby
<PorcoRex> Not unlike this one.
gremax has joined #ruby
nertzy has joined #ruby
Caius has joined #ruby
mistym has joined #ruby
<PorcoRex> Anyways, what level are you looking for? Basic?
Caius has quit [Changing host]
Caius has joined #ruby
mistym has joined #ruby
mistym has quit [Changing host]
ignarps has joined #ruby
apeiros has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
qsx has joined #ruby
dysfigur- is now known as dysfigured
willardg has joined #ruby
willardg has left #ruby [#ruby]
willardg has joined #ruby
<willardg> Good evening!
<PorcoRex> willardg, hey.
orgasm has quit [Ping timeout: 258 seconds]
ElFerna has joined #ruby
<jaequery> basic, yes
<jaequery> he knows basic HTML/CSS
orgasm has joined #ruby
<PorcoRex> jaequery, paid or free?
<jaequery> paid is fine
<PorcoRex> jaequery, well, you can buy this, but you can also read it online for free. I think it's a good starting point for Rails: https://www.railstutorial.org/book
rundor has joined #ruby
jackjackdripper has joined #ruby
<PorcoRex> Or at least it was way back when I originally read it.
jackjackdripper has quit [Client Quit]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
shiranuidong has quit [Remote host closed the connection]
jackjackdripper has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
shiranuidong has joined #ruby
jackjackdripper has joined #ruby
bogdanteleaga has quit [Ping timeout: 276 seconds]
jackjackdripper has quit [Client Quit]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
daed has quit [Ping timeout: 240 seconds]
Bhootrk_ has joined #ruby
z64 has quit [Ping timeout: 260 seconds]
bogdanteleaga has joined #ruby
z64 has joined #ruby
adam12 is now known as adam
ascarter has joined #ruby
adam is now known as Guest62357
seitensei has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
duracrisis has quit [Ping timeout: 276 seconds]
jdawgaz has joined #ruby
hotpanca_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
roamingdog has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
ascarter has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
ascarter_ has joined #ruby
cdg has quit [Remote host closed the connection]
jdawgaz has quit [Client Quit]
cdg has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
orgasm has quit [Ping timeout: 258 seconds]
jdawgaz has joined #ruby
bogdanteleaga has quit [Ping timeout: 255 seconds]
daed has joined #ruby
rundor has quit [Remote host closed the connection]
z64 has quit [Ping timeout: 255 seconds]
HoierM has quit [Ping timeout: 240 seconds]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
duracrisis has joined #ruby
AAA has quit [Ping timeout: 260 seconds]
rundor has quit [Remote host closed the connection]
jnollette has quit [Ping timeout: 240 seconds]
bogdanteleaga has joined #ruby
dyyylan has quit [Ping timeout: 260 seconds]
seitensei has joined #ruby
rundor has joined #ruby
dyyylan has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
ansraliant has quit [Quit: Konversation terminated!]
dennisvennink has quit [Read error: Connection reset by peer]
rundor has quit [Remote host closed the connection]
z64 has joined #ruby
rundor has joined #ruby
dennisvennink has joined #ruby
rundor has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpanca_ has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
willardg has quit [Quit: Textual IRC Client: www.textualapp.com]
biox has quit [Ping timeout: 255 seconds]
orgasm has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emers2n has joined #ruby
biox has joined #ruby
jnollette has joined #ruby
jottr has joined #ruby
<emers2n> Hey yall
<PorcoRex> Hey.
phinxy has quit [Read error: Connection reset by peer]
<emers2n> I have a function in ruby which will return all the combinations of a string. For example "dog" => returns "god", "odg", "ogd", "dgo", "gdo"
<emers2n> My question is how the function can be modified to also return all n-1 letter combos (2 letter combos in this case)?
<ruby[bot]> emers2n: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
jottr has quit [Ping timeout: 260 seconds]
cdg has quit [Remote host closed the connection]
TheBloke has quit [Ping timeout: 260 seconds]
<PorcoRex> So all n combinations and all n - 1 combinations, but no n - 2 ones?
<PorcoRex> etc?
<emers2n> No, I'd like n-2, n-3, etc.
<havenwood> >> 'dogs'.chars.combination(3).map(&:join)
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> >> 'dogs'.chars.combination(2).map(&:join)
<ruby[bot]> havenwood: # => ["do", "dg", "ds", "og", "os", "gs"] (https://eval.in/833729)
<emers2n> Awesome
<PorcoRex> Yeah, you probably will want to iterate from length to 1 and build that array, then join it.
<emers2n> Yep, thank you very much havenwood and PorocoRexx. Much appreciated.
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
<emers2n> Eh sorry spoke to soon
tfitts has quit [Quit: Connection closed for inactivity]
<emers2n> >> 'dog'.chars.combination(3).map(&:join)
<emers2n> would hopefully return "god", "odg", "gdo"
<PorcoRex> Try permutation instead of combination.
hotpancakes has joined #ruby
iMadper has quit [Ping timeout: 240 seconds]
iMadper has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
<emers2n> Thank you kindly, you're right PorocoRexx
<PorcoRex> No problem.
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
enterprisey has quit [Remote host closed the connection]
Bhootrk_ has quit [Ping timeout: 255 seconds]
hotpancakes has quit [Ping timeout: 260 seconds]
Bhootrk_ has joined #ruby
eckhardt has joined #ruby
Silthias1 has joined #ruby
duderonomy has joined #ruby
high_fiver has joined #ruby
PorcoRex has quit [Quit: Leaving]
bronson has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
gix has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 255 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
gix has joined #ruby
kies has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
milardovich has joined #ruby
high_fiver has quit [Ping timeout: 268 seconds]
astrobunny has joined #ruby
jdawgaz has joined #ruby
astrobun_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
astrobunny has quit [Ping timeout: 276 seconds]
elcontrastador has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
br0d1n has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 246 seconds]
emers2n has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
roamingdog has quit [Client Quit]
jottr has joined #ruby
__Yiota has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
ElFerna has joined #ruby
bkxd_ has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardov_ has joined #ruby
swills has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 268 seconds]
ascarter_ has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndrewVee has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 260 seconds]
dennisvennink has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has quit [Ping timeout: 248 seconds]
TvL2386_ has joined #ruby
jdawgaz has joined #ruby
hotpancakes has joined #ruby
Guest83 has joined #ruby
TvL2386 has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardov_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
tacoboy has quit [Read error: Connection reset by peer]
swills has joined #ruby
swills has joined #ruby
swills has quit [Changing host]
benlieb has joined #ruby
swills has joined #ruby
swills has joined #ruby
swills has quit [Changing host]
rohitpaulk has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
mjolnird has quit [Ping timeout: 246 seconds]
patrontechnosoft has joined #ruby
rohitpaulk has quit [Ping timeout: 248 seconds]
<zenspider> jaequery: if they're new to actually coding, back up and do chris pine's how to program book first
<zenspider> let them pick their own pace w/ it. pretty self directed
mim1k has joined #ruby
cjk101010_ is now known as cjk101010
<zenspider> >> (1..3).map { |n| "dog".chars.permutation(n).map(&:join) }.flatten
<ruby[bot]> zenspider: # => ["d", "o", "g", "do", "dg", "od", "og", "gd", "go", "dog", "dgo", "odg", "ogd", "gdo", "god"] (https://eval.in/833766)
<zenspider> I always mess those up
mim1k has quit [Ping timeout: 240 seconds]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
hotpancakes has quit [Remote host closed the connection]
brent__ has joined #ruby
sarmiena_ has joined #ruby
swills has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.9]
brent__ has quit [Ping timeout: 255 seconds]
swills has joined #ruby
swills has joined #ruby
patarr has joined #ruby
Rodya_ has joined #ruby
mjolnird has joined #ruby
smulverine has quit [Remote host closed the connection]
jottr has joined #ruby
Silthias has joined #ruby
aupadhye has joined #ruby
swills has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 246 seconds]
hightower2 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
Bock has joined #ruby
oleo has quit [Quit: irc client terminated!]
jackjackdripper has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meinside has quit [Quit: Connection closed for inactivity]
Silthias has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gothicsouth has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
enterprisey has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
uZiel has joined #ruby
BSAlb has joined #ruby
jaequery has quit [Quit: Connection closed for inactivity]
tau has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
BSaboia has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
orgasm has quit [Ping timeout: 258 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jaruga has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
bronson has joined #ruby
anisha has joined #ruby
orgasm has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
astrobun_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
benlieb has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
benlieb has quit [Client Quit]
charliesome has joined #ruby
astrobunny has joined #ruby
anisha has quit [Ping timeout: 255 seconds]
jaruga has quit [Quit: jaruga]
hotpancakes has joined #ruby
jnollette has quit [Read error: Connection reset by peer]
jnollette has joined #ruby
orgasm has quit [Remote host closed the connection]
<morfin> can i somehow build miniruby with debug symbols?
<morfin> i want to trace down segfault
jottr has joined #ruby
<morfin> objspace_xmalloc was able to cause memory leak?
<morfin> seems like i have same issue as some guy had way before this started crashing
Silthias has joined #ruby
<morfin> but he had memory leak in objspace_xmalloc in gc.c
patrontechnosoft has quit [Remote host closed the connection]
alex``` has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 268 seconds]
Silthias has quit [Read error: No route to host]
Guest83 has joined #ruby
<morfin> i guess it's parser calling ruby_xmalloc2 which calls objspace_xmalloc
Guest83 has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
Mortomes|Work has joined #ruby
renchan_ has joined #ruby
TomyWork has joined #ruby
rohitpaulk has joined #ruby
renchan_ has quit [Ping timeout: 240 seconds]
BSab has joined #ruby
jphase has quit [Remote host closed the connection]
renchan has joined #ruby
amclain has quit [Quit: Leaving]
rohitpaulk has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
BSaboia has joined #ruby
BSAlb has quit [Ping timeout: 260 seconds]
TomyWork has quit [Remote host closed the connection]
BSAlb has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
BSab has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
TomyWork has joined #ruby
BSaboia has quit [Ping timeout: 260 seconds]
ddffg has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
coenraad has quit [Ping timeout: 240 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee_ has quit [Ping timeout: 268 seconds]
Silthias has joined #ruby
ricer2 has joined #ruby
djbkd has joined #ruby
ClarkeZhu_ has joined #ruby
<ClarkeZhu_> hello
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<morfin> anybody is familiar wiht Ruby internals?
<morfin> if i understand correctly some parsing code autogenerated from parse.y
aupadhye has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
<dminuoso> morfin: Yes.
<dminuoso> morfin: parse.y containts both the lexer and the bison code, that bison transforms into a LR(1) parser.
smulverine has joined #ruby
<morfin> that's what i get - i think parser somewhere allocate wrong number of bytes and that cause memory corruption
<dminuoso> morfin: Im just seeing a stack trace. Why is execution halted?
<morfin> because it does not execute after malloc_printerr
<morfin> it call abort()
astrobun_ has joined #ruby
ski7777 has quit [Remote host closed the connection]
<morfin> this is where i fall
sarmiena_ has quit [Quit: sarmiena_]
<dminuoso> morfin: Let me rephrase.
<dminuoso> Did you get a SIGSEGV?
astrobu__ has joined #ruby
<morfin> no
Silthias1 has joined #ruby
<morfin> SIGABRT
<dminuoso> morfin: Do you have a ruby testcase for this?
ski7777 has joined #ruby
<morfin> hmm there is a problem
astrob___ has joined #ruby
<dminuoso> morfin: This should not happen, it's doubtful there is a bug in the parser for many reasons.
<morfin> but where then?
Silthias has quit [Ping timeout: 248 seconds]
astrobunny has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
<morfin> basically it fails when i build ruby 2.3.4(miniruby crash)
<morfin> dminuoso, look
<morfin> local_tbl_gen call buf = ALLOC_N(ID, cnt + 1);
<dminuoso> morfin: A SIGABRT is a strong indication some unrelated part over/underflowed a buffer.
<dminuoso> morfin: You miss the point.
<morfin> wait a second
<morfin> thats what i got /tmp/ruby-build.20170718110227.24026/ruby-2.3.0/lib/fileutils.rb:1747: [BUG] Segmentation fault at 0xfffffffffffffff9
astrobun_ has quit [Ping timeout: 258 seconds]
mark_66 has joined #ruby
<dminuoso> morfin: I thought your processes was SIGABRT'ed
astrobu__ has quit [Ping timeout: 240 seconds]
<morfin> make -f enc.mk V="0" \
<morfin> -n enc there is last thing i see before crash
<morfin> RUBY="./miniruby -I./lib -I. -I.ext/common " MINIRUBY="./miniruby -I./lib -I. -I.ext/common " \
<morfin> when make -n
<dminuoso> morfin: So let's start all over again. miniruby is crashing right?
hotpancakes has joined #ruby
<morfin> yes
<morfin> but it use same code as Ruby as i see
<dminuoso> morfin: Please gist the full and complete output of the stacktrce.
<dminuoso> Well, everything actually
jottr has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
<ClarkeZhu_> hi anyone can speak Chinase?
<dminuoso> morfin: But the parser is the one part in Ruby that has trivial code. Bison is unlikely to be buggy, and the semantic actions are just trivial node building operations that are not buggy.
<morfin> well, i see there is huge tree
<dminuoso> morfin: Just gist the entire output from the moment things go wrong.
ClarkeZhu_ has quit [Quit: Page closed]
ur5us has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 240 seconds]
rahult has joined #ruby
<morfin> that's what i see when run make
<morfin> i am sure something is wrong with that local_tbl_gen
mim1k has joined #ruby
<dminuoso> morfin: Mmm, it does seem like malloc metadata got corrupted.
<morfin> that's what i say
hotpancakes has quit [Ping timeout: 246 seconds]
<dminuoso> morfin: No way to tell how that happened without running asan or valgrind.
<dminuoso> The error is not in the stack trace.
<morfin> but it started exploding after upgrading to newer GCC
<dminuoso> morfin: Newer GCC versions apply more aggressive optimizations, that can suddenly trigger different UB behavior
<morfin> oh
Silthias1 has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
<dminuoso> Just hope it's not an aliasing bug, because those are near impossible to track down even with instrumentation. :-)
<morfin> )
<morfin> basically i see there is memory being allocated then copied
<morfin> then loop goes
<morfin> i want to check one thing
<morfin> dminuoso, i found out it crash exactly on this line: buf = ALLOC_N(ID, cnt + 1);
<dminuoso> morfin: Again, the error is somewhere else.
<morfin> why you think so?
<dminuoso> morfin: By the time that line of code is reached, the damage has already been done. Which is why you need valgrind.
jaruga has joined #ruby
<dminuoso> morfin: Because the crash happens deep inside malloc.
<morfin> hmm
kculpis has quit [Ping timeout: 248 seconds]
<dminuoso> morfin: when you do a malloc(1) in C you get a pointer. However, in reality you get more than 1 accessible byte.
<morfin> well, i know you can write outside of allocated memory
<morfin> until the moment
<dminuoso> morfin: Well, outside that allocated memory malloc keeps internal metadata.
<morfin> crap i see now
<morfin> there is chunks
<dminuoso> morfin: And if some process overwrites that metadata, it will blow up the next time you call free or malloc.
<dminuoso> morfin: Which is why you need instrumentation like asan or valgrind to find the spot where a program tries to access "invalid memory"
enterprisey has quit [Remote host closed the connection]
<morfin> how do i track down command
<morfin> to run
mikolaj9 has joined #ruby
<morfin> make -n give some incorrect command
<dminuoso> morfin: either compile miniruby with -fsanitize-address or run with valgrind. you will need to disable optimizations in both cases.
<dminuoso> Err -fsanitize=address
<morfin> that's why i need exact command
<dminuoso> morfin: Google.
andikr has joined #ruby
bigkevmcd has joined #ruby
rundor has joined #ruby
<morfin> nice
<morfin> with other command i got segfault at 0x00000000000000
<mikolaj9> what is mini ruby?
<dminuoso> morfin: You need to compile miniruby with that.
<dminuoso> mikolaj9: Ruby uses Ruby in order to compile itself.
<morfin> i already ran with valgrind
aufi has joined #ruby
<morfin> there was tonns of complains about gc
vali has joined #ruby
<dminuoso> mikolaj9: So in order to bootstrap, Ruby first compiles a miniature version of itself called Miniruby, which is then used for the rest of the build process.
<mikolaj9> miniruby != mruby || mrubyc
<mikolaj9> ?
nicoulaj46 has quit [Quit: nicoulaj46]
<dminuoso> mikolaj9: Right.
<dminuoso> mikolaj9: miniruby is just an internal thing during the build process.
nicoulaj has joined #ruby
<mikolaj9> aha, ok
<morfin> dminuoso, just 70346 erros)
<dminuoso> morfin: That's quite normal for small bugs.
<morfin> there is lots of not critical things
<morfin> ==451== Address 0x6aacfe8 is 8 bytes inside a block of size 272 free'd
rundor has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
<morfin> not sure such things are safe
xall has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
blznblzn2 has quit [Ping timeout: 255 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<livcd> There was this article that Ruby is used differently in Japan than in West but it was not very specific about how. Does anyone know more ?
bronson has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
<morfin> ==451== Invalid read of size 8 again in local_id_gen
<morfin> but before there is bunch of different calls
mikecmpbll has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
<mikolaj9> dminuoso can I show a microcode from ruby or mruby?
<mikolaj9> for example i woul like to get program in fuby and show microcode (meybe store it in file)
<mikolaj9> and run it with ruby code (vm in ruby?)
<mikolaj9> it is simple?
vali has quit [Ping timeout: 276 seconds]
vali has joined #ruby
valentin has joined #ruby
vali has quit [Remote host closed the connection]
valentin has quit [Remote host closed the connection]
<morfin> not sure where could be a reason for that?
bkxd has joined #ruby
leah2 has quit [Ping timeout: 240 seconds]
bkxd_ has joined #ruby
<mikolaj9> please look at mrubyc this project is interesting but very complicated
<mikolaj9> I would like to undestand how using microcode.
<dminuoso> mikolaj9: No, the VMs are incompatible from another.
<mikolaj9> next i thing embeding microcode to small device like as arduino
<mikolaj9> mrubyc read a mruby microcode
<morfin> dminuoso, can it be optimized out code like this: "if (p < heap_pages_lomem || p > heap_pages_himem) return FALSE;"?
<mikolaj9> and translate to small program
<mikolaj9> meybe for didactic , using it but to ruby code
<dminuoso> mikolaj9: Technically optimizations can create false positives (though they are rare)
<dminuoso> Be sure to compile with -O0 to rule that out.
<morfin> wrong guy
<dminuoso> morfin: Indeed.
<morfin> i suspect optimizer can optimize out something
<morfin> because there is many records related to GC
<dminuoso> morfin: Well optimizations create false negatives for sure.
<mikolaj9> dminuoso: this will be only for didactic, undestand how run vm in ruby
<mikolaj9> or in lua or perl ;-)
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
<mikolaj9> dminuoso: Can You help me?
<dminuoso> morfin: Basically what valgrind does, is take the assembly output from our compiler and together with debug symbols and the original source code disassemble, insert instrumentation, reassembly and run on the CPU. So it does not care how aggressively optimized the code is.
<dminuoso> The fact that it can in rare cases produce false positives is because of a performance optimization.
InfinityFye has joined #ruby
lpapp has joined #ruby
<lpapp> hi, what is the ruby version of this? python3 -u -c 'for i in range(20):print("HAPPY NEW YEAR!!!","/o\\"[::1-2*(i%2)],end="\r\n"[i==19])or sum(range(int(1e7)))'
<dminuoso> (And valgrind does this on-the-fly, so it's basically a JIT compiler)
<dminuoso> Or a JIT recompiler if you want. :P
<dminuoso> lpapp: Describe in words what that does.
<lpapp> ah, you cannot run it.
<dminuoso> lpapp: I can, but that's besides the point.
<lpapp> it changes HAPPY NEW YEAR!!! \o/ and HAPPY NEW YEAR!!! /o\ a couple of times (20).
<lpapp> on the same line on the console.
<lpapp> if you understand perl better: perl -MTime::HiRes=sleep -we '$|++; my @x = ("\\", "o", "/"); for (1..20) { print "HAPPY NEW YEAR!!! ", @x,"\r"; sleep 0.2; @x = reverse @x; }; print "\n";' :-)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> lpapp: No I want you to technically describe what your goal is.
<lpapp> 09:06 < lpapp> it changes HAPPY NEW YEAR!!! \o/ and HAPPY NEW YEAR!!! /o\ a couple of times (20).
<lpapp> 09:06 < lpapp> on the same line on the console.
<morfin> dminuoso, with -O0 build
<morfin> s
<dminuoso> morfin: Then those reports are valid.
<dminuoso> morfin: Probably most boil down to just 2-3 bugs.
<dminuoso> Or maybe even 1.
antgel has joined #ruby
<morfin> :(
<morfin> i really suspect it's 1984
ddffg has quit [Quit: Leaving]
<dminuoso> morfin: Can you try and reproduce with 2.3.4?
<havenwood> lpapp: ruby -e 'animation = %w[\o/ /o\\].cycle; 20.times { print "lpapp #{animation.next}\r"; sleep 1 }'
<morfin> yes
matled has quit [Remote host closed the connection]
jottr has joined #ruby
<dminuoso> havenwood: Can you also give me a sed script to replace my antd components with their material-ui react component equivalents?
hutch34 has joined #ruby
<mikolaj9> I'm looking for peaple who knows how bytecode working on mruby or ruby
* havenwood mutters something about rehydrating the dom and backs away slowly
<dminuoso> O_o
<lpapp> havenwood: oops, I used a different approach print + \r
<dminuoso> Well. I do have hydration going on.. so you're quite close!
smulverine has quit [Remote host closed the connection]
<dminuoso> Though its redux that gets hydrated ;o
<lpapp> havenwood: oh, you used the same thing, very nice.
<dminuoso> morfin: btw be sure to explicitly run miniruby in 2.3 with valgrind too (it's possible that code changes hide the UB and not cause a crash)
<lpapp> havenwood: thank you
<dminuoso> mikolaj9: What questions do you have?
<morfin> same result )
jottr has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
<dminuoso> morfin: File a bug report I'd say.
rohitpaulk has joined #ruby
<mikolaj9> dminuoso: Very simple ;-) how storing all bytecode and run it
hotpancakes has joined #ruby
astrob___ has quit [Remote host closed the connection]
<morfin> i think there was one already
<dminuoso> &ri RubyVM::InstructionSequence
<dminuoso> morfin: ^- that is the current interface to run bytecode explicitly
<mikolaj9> for example 'puts 2+3.0' convert to bytecode and how run it in ruby
<dminuoso> load_from_binary should be of particular interest to you.
ltem has joined #ruby
<dminuoso> mikolaj9: Look at the documentation I showed you.
<dminuoso> You basically construct an ISeq object, and then you can serialize it with to_binary
<dminuoso> You can either explicitly compile code, or from a file
anisha has joined #ruby
<dminuoso> >> RubyVM::InstructionSequece.compile('puts 2+3.0').to_binary
<ruby[bot]> dminuoso: # => uninitialized constant RubyVM::InstructionSequece ...check link for more (https://eval.in/833800)
<mikolaj9> dminuoso: he he documentation is very complicated
<dminuoso> >> RubyVM::InstructionSequence.compile('puts 2+3.0').to_binary
<ruby[bot]> dminuoso: # => "YARB\x02\x00\x00\x00\x03\x00\x00\x00\xA8\x01\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x0 ...check link for more (https://eval.in/833801)
<dminuoso> mikolaj9: If that is too complicated for you, perhaps you shouldn't be doing this at all.
<mikolaj9> dminuoso: ok, and how read binary and run it? can You show me?
<dminuoso> mikolaj9: Look at the documentation.
astrobunny has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
<mikolaj9> where is documentation about bytecode?
<dminuoso> mikolaj9: Use the source, luke.
cam27 has quit [Quit: cam27]
<mikolaj9> dminuoso: how run dissasem (p = proc { num = 1 + 2 }
<mikolaj9> puts RubyVM::InstructionSequence.disasm(p)
<mikolaj9> )
dionysus69 has joined #ruby
<mikolaj9> dminuoso: he he, this is not answer. I can send to You what i create in C. Can You help me ?
<dminuoso> No.
matled has joined #ruby
<mikolaj9> ok. thx
cagomez has joined #ruby
<Bish> can i somehow change ruby default .to_s format for date iso8601?
hotpancakes has quit [Ping timeout: 246 seconds]
ferr has joined #ruby
<Bish> would it be dangerous?
aufi has quit [Quit: Leaving]
aufi has joined #ruby
<dminuoso> Bish: You mean so that the default output format for Date#to_s is iso8601?
<Bish> yiss
<morfin> nice
<dminuoso> I would say any code that relies on the specific format deserves to break.
<morfin> 2.4.0 do not compile as well
<dminuoso> morfin: Test against 2.4.1, not 2.4.0
<morfin> ok
<dminuoso> morfin: Sometimes there are changes in the newest version, that have not been backported to older rubys yet.
postmodern_ has joined #ruby
mikolaj9 has quit [Ping timeout: 258 seconds]
<Bish> so i just monkeypatch Date#to_s to iso8601?
cagomez has quit [Ping timeout: 276 seconds]
postmodern has quit [Ping timeout: 255 seconds]
lpapp has left #ruby [#ruby]
<dminuoso> Bish: here's the thing.. Date#to_s already prints the date in iso8601 format..
astrobun_ has joined #ruby
<dminuoso> >> puts Time.now.to_date.to_s
<ruby[bot]> dminuoso: # => undefined method `to_date' for 2017-07-18 08:32:59 +0000:Time ...check link for more (https://eval.in/833808)
<Bish> i mean Time then i guess
<morfin> GCC 7.1 is disaster
<dminuoso> Bish: irb(main):002:0> Time.now.to_s => "2017-07-18 10:33:15 +0200"
<dminuoso> morfin: Not necessarily.
xerx has quit [Ping timeout: 260 seconds]
<dminuoso> morfin: There were lots of changes in the optimizers, it's a lot more aggressive.
<Bish> ? if i monkeypatch time the whole class disappears
<dminuoso> Though valgrind would have uncovered those bugs still, my guess is miniruby is rarely run with valgrind.. :-)
astrobunny has quit [Ping timeout: 240 seconds]
<dminuoso> Bish: No, why would it?
<Bish> oh, i created one in my namespace
<dminuoso> Bish: No you didn't.
<Bish> wel, yes?
<dminuoso> >> class Time; end; puts Time.now
<ruby[bot]> dminuoso: # => 2017-07-18 08:37:13 +0000 ...check link for more (https://eval.in/833809)
<dminuoso> Bish: See?
<dminuoso> mikecmpbll: Interesting!
<Bish> well, i did module xyz;class Time..; and didnt notice
<dminuoso> Bish: Ahh.
<dminuoso> Bish: Well you shouldn't be reopening Time anyway.
<dminuoso> Just create a module, and prepend it into Time. :P
<dminuoso> Perhaps using refinements
djbkd has quit [Remote host closed the connection]
<dminuoso> Bish: The thing that confuses me is why you think you need this anyway?
<dminuoso> Bish: It outputs iso8601 for me all across. Is it possible you have some quirky locale?
<Bish> actually i dont mean to_s, i mean to_json
<Bish> my webapp communicates with my ruby app
<Bish> for all dates i have iso8601, which worked great so far
lxsameer has joined #ruby
<Bish> BUT: i have json fields in my database
<Bish> and ruby tends to shove its on format in there
<Bish> so in the end, it doesnt even matter
<Bish> so in the end, my webapp gets ruby date format, whatever that is called
<Bish> damn the json guys for not adding a date type
hahuang65 has joined #ruby
Beams has joined #ruby
<dminuoso> sigh..
<morfin> finally
<morfin> at least 1 working version )
<dminuoso> Bish: so before I poke more, please make up your mind _what_ you are trying to change.
<dminuoso> First it was Date#to_s, then it was Time#to_s, now it's Time#to_json..
<dminuoso> I'm not convinced you know what you want.
hahuang65 has quit [Ping timeout: 240 seconds]
<dminuoso> >> Time.now.to_json
<ruby[bot]> dminuoso: # => undefined method `to_json' for 2017-07-18 08:46:15 +0000:Time ...check link for more (https://eval.in/833810)
<dminuoso> >> require 'json'; Time.now.to_json
<ruby[bot]> dminuoso: # => "\"2017-07-18 08:46:21 +0000\"" (https://eval.in/833812)
<dminuoso> Still ISO 8601.
<dminuoso> Now Im convined you dont know what you want.
xerx has joined #ruby
aufi has quit [Quit: Leaving]
aufi has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
milardovich has joined #ruby
stoffus has joined #ruby
kkiero has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
<morfin> dminuoso, how usually fight with that negative optimizations?
kkiero has left #ruby [#ruby]
<morfin> *fighting
aupadhye has joined #ruby
<dminuoso> morfin: What is a negative optimization?
<morfin> like one broke my malloc metadata
<Bish> dminuoso: ? thats not iso8601
workmad3 has joined #ruby
<Bish> thats weirdy ruby syntax
<dminuoso> Mmm
<dminuoso> Ohh yeah.
<dminuoso> Bish: The default format is rfc2822 I think
<morfin> can be something like 20170718T135521+0000
<dminuoso> Or.. no. That is different too
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
brent__ has joined #ruby
sarbs has quit [Ping timeout: 260 seconds]
<TheBrayn> Sometimes during the installation of a gem native extensions are built, is there a way to specify additional options like parallel jobs?
brent__ has quit [Ping timeout: 260 seconds]
sarbs has joined #ruby
patarr has joined #ruby
s1kx has quit [Ping timeout: 255 seconds]
vee_ has joined #ruby
belmoussaoui has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
coenraad has joined #ruby
belmoussaoui has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #ruby
romankapitonov has joined #ruby
<morfin> so isthere ways to fight such optimizations?
<morfin> volatile?
vali has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
<zenspider> TheBrayn: It depends on the gem ... `gem help install` for more (generic) info
hotpancakes has joined #ruby
<matthewd> morfin: C optimizations rely on undefined behaviour. "Fight" them by not writing code that uses undefined behaviour.
ur5us has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
marr has joined #ruby
Serpent7776 has joined #ruby
<Bish> dminuoso: as i said, ruby weirdoformat
<dminuoso> morfin: Optimizations don't break code. Using undefined behavior does.
<dminuoso> morfin: What happens if you compile with an older version of GCC and valgrind?
<dminuoso> Or alternatively recompile miniruby with -fno-strict-aliasing
jaruga has quit [Quit: jaruga]
hotpancakes has quit [Ping timeout: 276 seconds]
astrobun_ has quit [Remote host closed the connection]
djbkd has joined #ruby
hahuang65 has joined #ruby
<morfin> so you say there was an UB
<morfin> i suspected that
<morfin> it was silentrly working before
cseder has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
<dminuoso> morfin: Accessing invalid memory is UB.
<dminuoso> morfin: The fact that it was working fine before means nothing. It just happened that GCC hid the bug.
<dminuoso> morfin: Check my previous recommendations. Especially the last one should be interesting
gregf_ has quit [Ping timeout: 260 seconds]
<morfin> i know it's UB
mfaeh has joined #ruby
<morfin> interesting that clang was working nice with that
<morfin> too
pwned has joined #ruby
tvw has joined #ruby
rohitpaulk has joined #ruby
patarr has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
<arahael> morfin: Why couldn't it? "working nice" is is perfectly valid UB.
mim1k has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
patarr has quit [Ping timeout: 240 seconds]
leah2 has joined #ruby
xall has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 246 seconds]
gregf_ has joined #ruby
jottr has joined #ruby
encounter_ekamba has joined #ruby
xall has joined #ruby
xall has quit [Client Quit]
mim1k has joined #ruby
<dminuoso> morfin: And did you run it through valgrind?
<dminuoso> With a clang-built miniruby
jottr has quit [Ping timeout: 255 seconds]
<arahael> .bu7
vali has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 255 seconds]
* dminuoso stabs arahael with an obsolete set of FIXINCLUDES
vali has joined #ruby
coenraad has quit [Ping timeout: 248 seconds]
<arahael> dminuoso: What?
<dminuoso> That's what I thought
BSAlb has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
x0f has quit [Ping timeout: 246 seconds]
Silthias has quit [Quit: Leaving.]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 258 seconds]
x0f has joined #ruby
Francy has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
hutch34 has joined #ruby
Francy has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
rgtk has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 260 seconds]
nanoz has joined #ruby
umaaji has quit [Quit: Leaving...]
Ishido has joined #ruby
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
psychicist__ has quit [Quit: Lost terminal]
synget has joined #ruby
ShekharReddy has joined #ruby
mim1k has joined #ruby
jottr has joined #ruby
sarbs has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 258 seconds]
sarbs has joined #ruby
tvw has quit [Ping timeout: 248 seconds]
synget has quit [Ping timeout: 260 seconds]
renchan has quit [Ping timeout: 255 seconds]
renchan has joined #ruby
tvw has joined #ruby
psychicist__ has joined #ruby
psychicist__ has quit [Client Quit]
psychicist__ has joined #ruby
hotpancakes has joined #ruby
Guest83 has joined #ruby
ldnunes has joined #ruby
nanoz has quit [Ping timeout: 255 seconds]
ldnunes has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
Silthias has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
kkiero has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
leah2_ has joined #ruby
ldnunes has joined #ruby
postmodern_ has quit [Quit: Leaving]
charliesome has joined #ruby
jameser has joined #ruby
swills has joined #ruby
mfaeh has quit [Remote host closed the connection]
belmoussaoui has quit [Remote host closed the connection]
mfaeh has joined #ruby
leah2 has quit [Quit: WeeChat 1.9]
leah2_ is now known as leah2
brent__ has joined #ruby
belmoussaoui has joined #ruby
rgtk has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui has quit [Remote host closed the connection]
jameser has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
belmoussaoui has joined #ruby
brent__ has quit [Ping timeout: 260 seconds]
voxxit has joined #ruby
MarkBilk__ has quit [Read error: Connection reset by peer]
<morfin> dminuoso, i can try)
cagomez has quit [Ping timeout: 246 seconds]
mfaeh has quit [Remote host closed the connection]
sepp2k has joined #ruby
mfaeh has joined #ruby
aufi has joined #ruby
jottr has joined #ruby
naprimer has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
InfinityFye has quit [Quit: Leaving]
belmoussaoui has joined #ruby
ElFerna has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 240 seconds]
im0nde has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sylario has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
kkiero_ has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
mfaeh has quit [Remote host closed the connection]
splitshot has joined #ruby
mfaeh has joined #ruby
InfinityFye has joined #ruby
kkiero has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
yeticry_ has joined #ruby
high_fiver has joined #ruby
hotpancakes has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
encounter_ekamba has quit [Quit: Textual IRC Client: www.textualapp.com]
belmoussaoui has joined #ruby
ecuanaso has joined #ruby
lacuna has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
hutch34 has joined #ruby
jameser has joined #ruby
rgtk has quit [Ping timeout: 255 seconds]
tacoboy has joined #ruby
im0nde has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
pabloz has joined #ruby
ledestin has joined #ruby
andikr has quit [Remote host closed the connection]
pabloz has left #ruby [#ruby]
<morfin> dminuoso
<morfin> i was so wrong
<morfin> it compiled with GCC 4.9 from ports
ledestin has quit [Ping timeout: 240 seconds]
splitshot is now known as take5
kkiero_ is now known as kkiero
belmoussaoui has quit [Read error: Connection reset by peer]
doublemalt_ has joined #ruby
phinxy has joined #ruby
rgtk has joined #ruby
shadeslayer has joined #ruby
belmoussaoui has joined #ruby
aupadhye has quit [Remote host closed the connection]
bruno- has joined #ruby
Tempesta has joined #ruby
aupadhye has joined #ruby
aupadhye is now known as aupadhye|brb
jaruga has joined #ruby
rohitpaulk has joined #ruby
ElFerna has joined #ruby
dionysus69 has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
high_fiver has quit [Ping timeout: 260 seconds]
doublemalt_ has quit [Ping timeout: 240 seconds]
apparition47 has joined #ruby
doublemalt_ has joined #ruby
DLSteve has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
tau has joined #ruby
rgtk has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
jphase has quit []
Shimmy_ has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Quit: dionysus69]
dasher00 has joined #ruby
bronson has joined #ruby
rohitpaulk has joined #ruby
im0nde has joined #ruby
take5 has quit [Remote host closed the connection]
<morfin> dminuoso, yes i checked .comment
ElFerna has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<morfin> it says GCC 4.9.4 from ports
chouhoulis has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
<morfin> he-he with clang 3.8(pretty old) works
chouhoulis has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
hotpancakes has joined #ruby
rohitpaulk has quit [Ping timeout: 248 seconds]
kkiero has quit [Ping timeout: 255 seconds]
psychicist__ has quit [Quit: Lost terminal]
hightower2 has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
hotpancakes has joined #ruby
jameser has quit [Client Quit]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
jameser has joined #ruby
mim1k has joined #ruby
mfaeh has quit [Remote host closed the connection]
jameser has quit [Client Quit]
mfaeh has joined #ruby
rohitpaulk has joined #ruby
jdawgaz has joined #ruby
polishdub has joined #ruby
Rapture has joined #ruby
jameser has joined #ruby
Teemo has joined #ruby
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye|brb is now known as aupadhye
jdawgaz has joined #ruby
oleo has joined #ruby
hotpancakes has quit [Remote host closed the connection]
theunraveler has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
high_fiver has joined #ruby
ltem has quit [Quit: Leaving]
ElFerna has quit [Ping timeout: 240 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
ElFerna has joined #ruby
rfoust has joined #ruby
kculpis has joined #ruby
shiranuidong has quit [Remote host closed the connection]
jphase has joined #ruby
AxelAlex has joined #ruby
chouhoulis has quit [Remote host closed the connection]
take5 has joined #ruby
chouhoulis has joined #ruby
shiranuidong has joined #ruby
chouhoulis has quit [Remote host closed the connection]
shiranuidong has quit [Remote host closed the connection]
brent__ has joined #ruby
impermanence has joined #ruby
im0nde has quit [Quit: im0nde]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<impermanence> I know that in the core and stdlib methods an exclamation mark after a method name means it's a mutator...but I'm looking at some code online and the author has put an exclamation point after a method they wrote and it isn't a mutator. Is there some significance to this exclamation point?
<impermanence> def run!
<impermanence> while true
<impermanence> puts 'whatever'
<impermanence> end
<impermanence> end
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has quit [Ping timeout: 248 seconds]
<Papierkorb> impermanence: Nothing to do with mutations, the bang just indicates that this method may do something unexpected, and advises the user to look up in the docs.
Nightmare has quit [Excess Flood]
yokel has quit [Quit: Lost terminal]
<impermanence> oh, you mean in general?
<Papierkorb> yes
<impermanence> huh. contrary...
yokel has joined #ruby
<impermanence> k, cool :)
<impermanence> afk for ten minutes
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Nightmare has joined #ruby
__Yiota has joined #ruby
impermanence has joined #ruby
j0bk has quit [Ping timeout: 255 seconds]
im0nde has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
rgtk has quit [Ping timeout: 260 seconds]
impermanence has quit [Client Quit]
j0bk has joined #ruby
jameser has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
impermanence has joined #ruby
konsolebox has quit [Max SendQ exceeded]
ElFerna has quit [Ping timeout: 255 seconds]
danguita has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
lacuna has joined #ruby
ElFerna has joined #ruby
jottr has quit [Quit: WeeChat 1.9]
rippa has joined #ruby
high_fiver has quit [Ping timeout: 255 seconds]
Silthias1 has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
coenraad has joined #ruby
rundor has joined #ruby
jackjackdripper has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Teemo has left #ruby [#ruby]
ElFerna has quit [Ping timeout: 268 seconds]
bkxd_ has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 255 seconds]
mfaeh has quit [Remote host closed the connection]
InfinityFye has quit [Quit: Leaving]
bkxd has joined #ruby
bkxd_ has joined #ruby
millerti has joined #ruby
mfaeh has joined #ruby
insane_tesla has joined #ruby
<insane_tesla> Hi
<insane_tesla> Omg... Where can I find support for 1.8.7
patarr has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
insane_tesla is now known as Orxata_
Guest83 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
synthroid has quit [Remote host closed the connection]
konsolebox has joined #ruby
bkxd_ has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
mfaeh has quit [Remote host closed the connection]
mfaeh has joined #ruby
mark_66 has quit [Remote host closed the connection]
ar1a has quit [Ping timeout: 248 seconds]
synthroid has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> Orxata_: 2006 called, they want their interpreter back
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ski7777 has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
ar1a has joined #ruby
Serpent7776 has quit [Quit: Leaving]
apparition47 has quit [Quit: Bye]
Shimmy_ has quit [Quit: Leaving]
ski7777 has joined #ruby
<leah2> Orxata_: what do you need?
enterprisey has joined #ruby
<morfin> interesting
nowhere_man has joined #ruby
<morfin> miniruby do not explode with clang 3.8
<morfin> i gotta valgrinbd it
mikecmpbll has joined #ruby
<morfin> dminuoso
<morfin> ==31343== ERROR SUMMARY: 1685 errors from 29 contexts (suppressed: 0 from 0)
<morfin> same problems
Guest83 has joined #ruby
<morfin> wrong read of 8 bytes
ski7777 has quit [Read error: Connection reset by peer]
<morfin> Use of uninitialised value of size 8 etc etc
<morfin> lots OF UB
chouhoulis has joined #ruby
cagomez has joined #ruby
coenraad has quit [Ping timeout: 268 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
rfoust has joined #ruby
rgtk has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Silthias has joined #ruby
cagomez has joined #ruby
__Yiota is now known as Floos
hotpancakes has joined #ruby
ski7777 has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
ski4x7 has joined #ruby
Silthias1 has joined #ruby
ElFerna has joined #ruby
brent__ has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
coenraad has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
ShekharReddy has quit []
ski4x7 has quit [Ping timeout: 248 seconds]
rohitpaulk has joined #ruby
Silthias has joined #ruby
doublemalt_ has quit [Ping timeout: 255 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
jdawgaz has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Client Quit]
high_fiver has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sk_ has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
<sk_> Can someone help me with this github application -> https://github.com/jmopr/job-hunter
<sk_> I was able to run bundle install on Linux but now I do not know what to do. My output -> https://paste.ubuntu.com/25036134/
Rodya_ has joined #ruby
high_fiver has quit [Ping timeout: 240 seconds]
pecan has quit [Ping timeout: 240 seconds]
ski7777 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
bruno- has joined #ruby
amclain has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
ski7777 has joined #ruby
dviola has joined #ruby
aufi has quit [Quit: Leaving]
cdg has joined #ruby
Guest83 has joined #ruby
ahrs has quit [Remote host closed the connection]
Francy has quit [Quit: Leaving]
<mkaito> sk_: looks like a bug in capybara. they need to `require 'timeout'`, most likely.
<mkaito> either that, or there's a conflict somewhere
Guest83 has quit [Client Quit]
ski7777 has quit [Remote host closed the connection]
<mkaito> something is providing 'timeout' that does not provide Timeout::Error.
ski7777 has joined #ruby
ahrs has joined #ruby
cdg_ has joined #ruby
jaruga has quit [Quit: jaruga]
mim1k has quit [Ping timeout: 255 seconds]
<cagomez> if I group Foo's by name, what's a good variable name for it? 'foos_grouped_by_name'?
cdg has quit [Ping timeout: 260 seconds]
ski7777 has quit [Ping timeout: 268 seconds]
AxelAlex has quit [Ping timeout: 260 seconds]
sgen has quit [Quit: Leaving]
ski7777 has joined #ruby
<take5> cagomez, without anymore context, I might go with "foos_by_name"
coenraad has quit [Ping timeout: 240 seconds]
mfaeh has quit []
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
ldnunes has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
kyle__ has joined #ruby
<kyle__> If you're on an older box, is there a way to install gems with whatever the latest version will work is?
gothicsouth has joined #ruby
<kyle__> ie: gem install rubocop on an older centos server complains that rake require ruby version 1.9.3, instead of just grabbing the latest this ancient ruby can use
<cagomez> I need to check if my Foo objects, each with an array of Bars, have a certain bar id. I'll be building a hash with keys `myhash[[foo.name, bar.id]]` with values set to True. Should I just use a set?
<mkaito> kyle__: you can install specific versions of a gem, but you'll need to see which one will work yourself.
<cagomez> looks like set implementations are based on a hash with values set to true? https://www.ruby-forum.com/topic/98113
gusrub has joined #ruby
ldnunes has joined #ruby
<sk_> I am not on an older linux os. I am able to install the gems but for some reason it still gives me that output?
pecan has joined #ruby
<kyle__> sk_: Do you have multiple versions of ruby installed? IIRC each one will have it's own 'gem' script, and its own set of gems.
pmden has joined #ruby
pmden has quit [Changing host]
pmden has joined #ruby
<sk_> No I do not
<kyle__> On most distros 'gem' is a symlink to whatever is the system default, and gem1.8 gem1.9 gem2.0 etc are the ones for specific versions.
<kyle__> Humm.
<kyle__> I dunno then.
pmden has left #ruby [#ruby]
<sk_> let me see one guy yesterday said he was able to figure it out but left no instructions
ascarter has joined #ruby
ansraliant has joined #ruby
<sk_> He said -> Locally, when I run Delayed::Job.enqueue TestJob.new, it is automatically deleted by delayed job, and not executed (DELETE FROM "delayed_jobs" ...)
<sk_> But when I run this type of job via #delay DelayableTasks.new.delay.tmp and AFTERWARDS run Delayed::Job.enqueue TestJob.new, it runs fine.
<sk_> there was a dependency needed in the job that was failing autoload in dev that dependency is loaded in the first job
duderonomy has joined #ruby
mwlang has joined #ruby
<sk_> Were any of you guys able to get it to run on your OS? If any of you were able to figure it out on those I would rather do that.
<cagomez> if I add objects to a Set, are copies of the objects added to the set? What happens if I add objects to a Set and mutate them outside? Will calling `member?` not find the object in the set?
br0d1n has joined #ruby
<cagomez> or will mutating the object outside the Set also mutate the object inside the Set?
<sk_> I am not sure cagomez
<sk_> I do not own the code I am simply trying to figure out how to run it and use it
synthroid has quit [Remote host closed the connection]
<_moep_> hello
<_moep_> when I tried to run in my redmine dir: bundle install and it fetch everything. when I do bundle exec gem install unicorn I get this error: https://paste.debian.net/hidden/cc65ed70/
Ishido has quit [Ping timeout: 276 seconds]
ColeHub has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
Ishido has joined #ruby
<mwlang> _moep_: review contents of unicorn-5.3.0/gem_make.out to see what specifically failed
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<mwlang> on second thought, re-reading the error chain, if I had to guess, you’re using bundle exec and the unicorn gem isn’t listed there.
<mwlang> “there” meaning the project’s Gemfile
dionysus69 has joined #ruby
kyle__ has left #ruby ["WeeChat 1.6"]
<_moep_> mwlang: unicorn is listed in the gem.local file
<mwlang> _moep_: what’s the output of: bundle list | grep unicorn
<_moep_> could not found in sources
<_moep_> Could not find unicorn-5.3.0 in any of the sources
<mwlang> _moep_: yet, “bundle install” worked previously?
kies has quit [Ping timeout: 260 seconds]
<_moep_> yes
TvL2386_ is now known as TvL2386
<_moep_> ok now unicorn is listed
chouhoul_ has joined #ruby
<_moep_> so I dont have to do bundle exec gem install unicorn right?
milardovich has quit [Remote host closed the connection]
benlieb has joined #ruby
ElFerna has quit [Ping timeout: 255 seconds]
chouhou__ has joined #ruby
AxelAlex has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
tvon has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
chouhoul_ has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
<mwlang> _moep_: no. bundle install does it for you
milardovich has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
lacuna has joined #ruby
nofxx has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
jdawgaz has joined #ruby
gusrub has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
<_moep_> mwlang: ah ok thx
tau has quit [Remote host closed the connection]
renchan has quit [Read error: Connection reset by peer]
Guest83 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
cpruitt has joined #ruby
Beams has quit [Quit: .]
sha-7 has joined #ruby
<sha-7> Is there a way I can automatically log all the errors that get raised?
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Rodya_ has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
ahrs has quit [Remote host closed the connection]
hahuang65 has joined #ruby
ski4x7 has joined #ruby
<kspencer> I'm trying to conditionally either return a given string if it doesn't have a newline, or return only the string upto the first \n then cut the rest, but currently its just clearing out the line, I currently have 'some string'.lines[0].chomp!, but that kinda kills the line when it doesn't have a newline,so I'm trying to figure a really easy to do that
synthroid has joined #ruby
<kspencer> use case being commit messages
ski7777 has quit [Ping timeout: 248 seconds]
ski4x7 has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ahrs has joined #ruby
hotpancakes has joined #ruby
pkmoore has joined #ruby
wilbert has joined #ruby
<al2o3-cr> sha-7: you could take a look at tracepoint
ascarter has joined #ruby
jdawgaz has joined #ruby
sarmiena_ has joined #ruby
<apeiros> kspencer: chomp if you want the return value, chomp! is only for when you want to mutate in-place.
<apeiros> many core bang! methods return nil if nothing changed.
sgen has joined #ruby
sepp2k has quit [Quit: Leaving.]
milardovich has joined #ruby
<kspencer> I see, I'll a change of that out then
kies has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
Orxata_ has quit [Ping timeout: 268 seconds]
Orxata_ has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
cagomez has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Orxata_ has quit [Quit: leaving]
high_fiver has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
rohitpaulk has joined #ruby
bronson has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
TomyLobo has joined #ruby
Aromn has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
hotpanca_ has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
chmurifree has joined #ruby
rundor has joined #ruby
deep-book-gk_ has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
rundor has joined #ruby
deep-book-gk_ has left #ruby [#ruby]
rundor has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jackjackdripper has joined #ruby
nebiros has joined #ruby
benlieb_ has joined #ruby
SeepingN has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb_ is now known as benlieb
ferr has quit [Quit: WeeChat 1.9]
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
ElFerna has joined #ruby
minimalism has quit [Quit: minimalism]
Ishido has quit [Ping timeout: 255 seconds]
benlieb has quit [Ping timeout: 255 seconds]
guymanndude has joined #ruby
<guymanndude> hi, is there a way to both dump with YAML.dump && append to the same file, in one line?
<guymanndude> basically, I'm trying to get this down to a oneliner:
<guymanndude> content = YAML.dump(yml) content << "stuff"
postmodern has joined #ruby
belmoussaoui has quit [Read error: Connection reset by peer]
<Papierkorb> `content << yml.to_yaml`
vuoto has joined #ruby
Ishido has joined #ruby
benlieb has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Ishido has quit [Client Quit]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
Dimik has joined #ruby
<guymanndude> Papierkorb: thanks, however that would still necessitate doing two lines to write to my content variable
<guymanndude> is there a way to do this in a oneliner? both dump the YAML to content, as well as a string?
vuoto has quit [Remote host closed the connection]
<havenwood> guymanndude: content = yml.to_yaml << 'stuff'
<havenwood> guymanndude: But oneliners are overrated.
ElFerna has quit [Ping timeout: 260 seconds]
<havenwood> guymanndude: It's nicer to interpolate.
<havenwood> It saves a string allocation.
<guymanndude> havenwood: thanks! and I agree, but I am trying to appease rubocop...
<havenwood> guymanndude: content = "#{yml.to_yaml}stuff"
<havenwood> guymanndude: What angers the lings about that ^.
ltem has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
gusrub has quit [Remote host closed the connection]
<havenwood> guymanndude: Oh, you mean file or method or class length lints?
<guymanndude> havenwood: yeah kindof, apparently my "Assignment Branch Condition size for main is too high"
<havenwood> You might consider extracting methods.
cagomez has quit [Ping timeout: 240 seconds]
<havenwood> for main? is this top level?
<guymanndude> I have, this is the last place I can possibly optimize
<guymanndude> to get a perfect score :)
<havenwood> hahaha
<havenwood> guymanndude: Give an interpolation a go.
<guymanndude> thanks, I'll that
<guymanndude> try**
benlieb has quit [Quit: benlieb]
camilasan has quit [Remote host closed the connection]
mrgrieves has joined #ruby
Bock has quit [Ping timeout: 255 seconds]
<guymanndude> havenwood: from 16.4/15 complexity to 16.31/15 ...
<havenwood> guymanndude: inching towards perfection
Guest62357 is now known as adam12
camilasan has joined #ruby
<guymanndude> haha yeah. I think this is the point I step back for a sanity check...code looked cleaner before this
<guymanndude> two lines are fine
<havenwood> guymanndude: time for acceptable complexity to be 17? ;-)
<guymanndude> I can live with 16.4 :)
Aromn has quit [Quit: Aromn]
<havenwood> guymanndude: Funny thing is the app I'm working on at the moment has it set to 17.
<havenwood> Metrics/PerceivedComplexity: Max: 17
watersoul has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sha-7 has left #ruby [#ruby]
jdawgaz has joined #ruby
high_fiver has quit [Quit: Leaving]
jdawgaz has quit [Client Quit]
<morfin> ok, i think i should look where is problem in that code
<morfin> because "it works" but GCC 7.1 just made a problem more obvious
<guymanndude> havenwood: naughty naughty
im0nde has quit [Quit: im0nde]
cagomez has joined #ruby
__Yiota has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
Floos has quit [Ping timeout: 248 seconds]
watersoul has joined #ruby
antgel has quit [Ping timeout: 255 seconds]
johnny56_ has joined #ruby
romankapitonov has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
mechanicles has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
gothicsouth has joined #ruby
Guest8129 has quit [Quit: Lost terminal]
mtkd has joined #ruby
pkmoore has quit [Ping timeout: 255 seconds]
wilbert has quit [Ping timeout: 240 seconds]
pkmoore has joined #ruby
wilbert has joined #ruby
jdawgaz has joined #ruby
swills has quit [Remote host closed the connection]
dmtd has joined #ruby
cagomez has quit [Remote host closed the connection]
psychicist__ has joined #ruby
cagomez has joined #ruby
benlieb has joined #ruby
belmoussaoui has joined #ruby
dasher00 has quit [Ping timeout: 255 seconds]
cagomez has quit [Ping timeout: 258 seconds]
pb122 has quit [Ping timeout: 240 seconds]
Guest83 has joined #ruby
sepp2k has joined #ruby
mechanicles has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Ping timeout: 248 seconds]
dasher00 has joined #ruby
Renich has joined #ruby
theunrav_ has joined #ruby
theunraveler has quit [Ping timeout: 258 seconds]
dasher00 has quit [Client Quit]
cagomez has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has joined #ruby
skweek has joined #ruby
<cagomez> how do I do a .find().group_by {} ? I get an error `NoMethodError: undefined method `call' for {:foo => "bar"}:Hash`
AxelAlex has quit [Quit: AxelAlex]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
swills has joined #ruby
ta_ has quit [Remote host closed the connection]
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest83 has joined #ruby
spiette has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
koldbrutality has joined #ruby
gusrub has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<havenwood> cagomez: Show the real line of code?
<havenwood> I suspect `.()` version of `.call`.
<havenwood> >> -> n { n }.(42)
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> >> -> n { n }.(42)
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> 42
<havenwood> ?cookie ruby[bot]
<ruby[bot]> ruby[bot]: here's your cookie: 🍪
ElFerna has joined #ruby
jud has quit [Quit: Leaving]
gusrub has quit [Remote host closed the connection]
t-recx has joined #ruby
cam27 has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
<noizex> is there a way to exclude some gem if one group is present?
hahuang65 has joined #ruby
<noizex> like, I have :development and :remote_debugging and I'd like to skip one gem in :development group if :remote_debugging is not disabled
ElFerna has quit [Read error: Connection reset by peer]
belmoussaoui has quit [Ping timeout: 258 seconds]
benlieb has quit [Quit: benlieb]
belmoussaoui has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cagomez has joined #ruby
tvon has quit [Remote host closed the connection]
belmoussaoui has quit [Ping timeout: 248 seconds]
belmoussaoui has joined #ruby
Dimik has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
_sfiguser has joined #ruby
cagomez has quit [Ping timeout: 268 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
lxsameer has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest83 has joined #ruby
Rapture has joined #ruby
ElFerna has joined #ruby
iceden|2 has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 248 seconds]
spider-mario has quit [Ping timeout: 240 seconds]
Jayson_Virissimo has joined #ruby
workmad3 has joined #ruby
milardovich has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
doublemalt_ has joined #ruby
nadir has joined #ruby
koldbrutality has quit [Ping timeout: 246 seconds]
iceden|2 has joined #ruby
benlieb has joined #ruby
cagomez has joined #ruby
HoierM has joined #ruby
xerx has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 255 seconds]
kash has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
emilkarl has quit [Quit: emilkarl]
ElFerna has joined #ruby
Nicmavr has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
Nicmavr is now known as Guest89630
Rodya_ has quit [Ping timeout: 240 seconds]
rundor has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
rundor has quit [Remote host closed the connection]
jdawgaz has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
Guest89630 has quit [Changing host]
Guest89630 has joined #ruby
Guest89630 is now known as Kestrel-029
rundor has joined #ruby
<Fire-Dragon-DoL> hello, anyone with experience using net/imap can confirm that when fetching messages, the returned strings are always US-ASCII (which needs to be parsed later on)?
rundor has quit [Ping timeout: 255 seconds]
ptx0 has joined #ruby
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
mtkd has joined #ruby
jdawgaz has quit [Client Quit]
<canton7> Fire-Dragon-DoL, rfc3508 section 1.2 does indeed suggest that
jdawgaz has joined #ruby
<Fire-Dragon-DoL> canton7: thanks, I agree. I hope I'm not opening a can of worms :P
belmoussaoui has quit [Quit: belmoussaoui]
ascarte__ has joined #ruby
gusrub has joined #ruby
jtd has quit [Remote host closed the connection]
synthroid has quit []
Mon_Ouie has quit [Ping timeout: 255 seconds]
belmoussaoui_ has joined #ruby
rundor has joined #ruby
millerti has joined #ruby
pwnd_nsfw has joined #ruby
ascarte__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
pwned has quit [Ping timeout: 255 seconds]
ascarter_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
ldnunes has quit [Quit: Leaving]
gusrub has quit [Remote host closed the connection]
quobo has joined #ruby
hutch34 has joined #ruby
Renich has quit [Quit: Renich]
hotpanca_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnollette has quit [Ping timeout: 240 seconds]
tau has quit [Remote host closed the connection]
enterprisey has quit [Read error: Connection reset by peer]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
hotpancakes has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
ansraliant has quit [Ping timeout: 260 seconds]
tvon has joined #ruby
ElFerna has quit [Ping timeout: 268 seconds]
rundor has quit [Remote host closed the connection]
ta_ has joined #ruby
jnollette has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyclonis_ has quit [Quit: leaving]
gizmore|2 is now known as gizmore
Rodya_ has joined #ruby
jdawgaz has joined #ruby
alex`` has joined #ruby
tvon_ has joined #ruby
tvon has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby
tau has joined #ruby
jdawgaz has quit [Client Quit]
sk_ has quit [Ping timeout: 260 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
doublemalt_ has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
wilbert has quit [Ping timeout: 268 seconds]
pkmoore has quit [Ping timeout: 268 seconds]
theunrav_ has quit []
hotpancakes has joined #ruby
rundor has joined #ruby
hotpanca_ has joined #ruby
Asher has quit [Quit: Leaving.]
guymanndude has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
rundor has quit [Remote host closed the connection]
BTRE has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
ElFerna has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
take5 has quit [Remote host closed the connection]
kobain has joined #ruby
bronson has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BSaboia has joined #ruby
s2013 has joined #ruby
rundor has joined #ruby
<s2013> im trying to format a an array of hash.. something like [ {"name": "john", "city": "la"}, {"name": "mike", "city": "ny"}] into lets say [{"full_name": "john", "from": "la"}, {"full_name": "mike", "from": "ny"}]
<s2013> i can use map for that simple
TomyLobo has quit [Ping timeout: 255 seconds]
<s2013> but what im confused about is that if lets say there was a field called age, but it wasnt available in every hash, how would i make sure that only age appears in the hash where there is age
<s2013> if that makes sense
<s2013> so {"name": "john", "city": "la"}, {"name": "mike", "city": "ny", "age": 20}] into lets say [{"full_name": "john", "from": "la", "age": 20}, {"full_name": "mike", "from": "ny"}]
<s2013> i can go through and remove all nil, etc but still
bronson has quit [Ping timeout: 260 seconds]
rundor has quit [Remote host closed the connection]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
cagomez has quit [Remote host closed the connection]
ltem has quit [Quit: Leaving]
dmtd has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
<havenwood> >> changes = {"name"=>"full_name", "city"=>"from"}; people.map { |person| person.map { |k, v| [changes[k] || k, v] }.to_h } # s2013
<ruby[bot]> havenwood: # => undefined local variable or method `people' for main:Object (NameError) ...check link for more (https://eval.in/834172)
<havenwood> #=> [{"full_name"=>"john", "from"=>"la"}, {"full_name"=>"mike", "from"=>"ny", "age"=>20}]
skweek has quit [Ping timeout: 260 seconds]
<s2013> yeah i have something similar to that
<s2013> thanks!
<havenwood> fetch is nicer than #[] with ||
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<havenwood> changes.fetch(k, k)
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
rundor has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Rodya_ has joined #ruby
rundor has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 248 seconds]
chouhou__ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 248 seconds]
ElFerna has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lyubo1 has quit [Ping timeout: 260 seconds]
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
Rodya_ has joined #ruby
cagomez has quit [Remote host closed the connection]
Jayson_Virissimo has quit []
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
belmoussaoui_ has quit [Quit: belmoussaoui_]
dstrunk has joined #ruby
Guest83 has joined #ruby
hahuang65 has joined #ruby
rohitpaulk has joined #ruby
sleepee has joined #ruby
Lyubo1 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
hotpancakes has joined #ruby
ascarter has joined #ruby
ascarter_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
hkdsun has quit [Ping timeout: 276 seconds]
mwlang has quit [Quit: mwlang]
hkdsun has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
AAA has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9]
benlieb has quit [Client Quit]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
mim1k has joined #ruby
brian_penguin has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
impermanence has joined #ruby
gusrub has quit []
ElFerna has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
impermanence has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
ta_ has joined #ruby
milardovich has joined #ruby
cam27 has quit [Quit: cam27]
Miah_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<patarr> Hi. I'm using a gem that 'require's a file that installs a Sidekiq middleware for me, and provides no facility of disabling it.
<patarr> How can I monkey patch this out?
Guest83 has joined #ruby
knechtrootrecht has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
<Radar> patarr: it would help if you mentioned which gem
knechtrootrecht has left #ruby [#ruby]
Guest83 has quit [Client Quit]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
rohitpaulk has left #ruby [#ruby]
AAA has quit [Ping timeout: 240 seconds]
landon_ has joined #ruby
cseder has left #ruby ["Textual IRC Client: www.textualapp.com"]
polishdub has quit [Quit: leaving]
sepp2k has quit [Read error: Connection reset by peer]
someuser has joined #ruby
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest83 has joined #ruby
rahult has joined #ruby
t-recx has quit [Quit: t-recx]
alveric4 has joined #ruby
Guest83 has quit [Read error: Connection reset by peer]
cdg has joined #ruby
alveric3 has quit [Ping timeout: 248 seconds]
cdg_ has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 240 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
patarr_ has joined #ruby
patarr has quit [Ping timeout: 248 seconds]
phinxy has quit [Read error: Connection reset by peer]
patarr_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
marr has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 240 seconds]
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
sylario has quit [Quit: Connection closed for inactivity]
heinrich5991 has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
dstrunk has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
belmoussaoui_ has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
gothicsouth has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
landon_ has quit [Quit: Leaving]