havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
uprabe has quit [Quit: Disconnected]
jrabe has joined #ruby
BloopMonsterOMG has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
beefjoe has joined #ruby
alfiemax has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
BloopMonsterOMG has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
daed has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
garyserj has quit [Ping timeout: 256 seconds]
garyserj has joined #ruby
postmodern has joined #ruby
pabs has quit [Ping timeout: 276 seconds]
wilbert has joined #ruby
cliq has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
beefjoe has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 260 seconds]
pabs has joined #ruby
emilford has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
Azure|dc has quit [Read error: Connection reset by peer]
Azure has joined #ruby
residentbiscuit has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
residentbiscuit has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
icarus has joined #ruby
rfoust has joined #ruby
tdy has quit [Ping timeout: 256 seconds]
GodFather has quit [Remote host closed the connection]
herbmillerjr has joined #ruby
agent_white has quit [Quit: leaving]
lytol has joined #ruby
alfiemax has joined #ruby
Yzguy has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
jamesaxl has quit [Quit: WeeChat 2.1]
alfiemax has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
t0xik has joined #ruby
lele has quit [Ping timeout: 256 seconds]
apeiros has quit [Ping timeout: 276 seconds]
wilbert_ has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
lele has joined #ruby
alfiemax has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
wilbert_ has quit [Ping timeout: 240 seconds]
wilbert_ has joined #ruby
jameser has joined #ruby
rheddry is now known as levifig
wilbert_ has quit [Quit: wilbert_]
wilbert has joined #ruby
tdy has joined #ruby
emilford has joined #ruby
alfiemax has joined #ruby
c0ncealed1 has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 265 seconds]
c0ncealed1 has joined #ruby
BloopMonster has quit [Ping timeout: 244 seconds]
amar has joined #ruby
nicht has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
amar has quit [Ping timeout: 265 seconds]
mjolnird has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
eelster has joined #ruby
wilbert has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
gnufied has quit [Ping timeout: 248 seconds]
cyberg has quit [Quit: Leaving]
alfiemax has joined #ruby
wilbert has joined #ruby
ogres has joined #ruby
mjolnird has joined #ruby
kmurphy4 has joined #ruby
wilbert has quit [Ping timeout: 265 seconds]
BloopMonsterOMG has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
alfiemax_ has quit [Remote host closed the connection]
n13z has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
alfiemax_ has joined #ruby
millz has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
BloopMonsterOMG has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
AJA4350 has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.1]
jamiejackson has quit [Remote host closed the connection]
alex`` has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
BloopMonsterOMG has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
Nicmavr has joined #ruby
Nicmavr is now known as Guest32469
gix- has joined #ruby
gix has quit [Disconnected by services]
BloopMonsterOMG has quit [Ping timeout: 248 seconds]
claw has quit [Ping timeout: 256 seconds]
emilford has quit [Ping timeout: 260 seconds]
alfiemax_ has quit [Remote host closed the connection]
emilford has joined #ruby
alfiemax has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
emilford has joined #ruby
ldepandis has joined #ruby
weaksauce has quit [Ping timeout: 260 seconds]
claw has joined #ruby
d_kam has quit [Ping timeout: 260 seconds]
d_kam has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
claw has quit [Ping timeout: 245 seconds]
eckhardt has joined #ruby
segy has joined #ruby
mtkd has joined #ruby
claw has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
emilford has joined #ruby
amar_ has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
massamba has quit [Quit: massamba]
emilford has joined #ruby
jameser has quit [Read error: Connection reset by peer]
jameser_ has joined #ruby
amar_ has quit [Ping timeout: 268 seconds]
reber has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
ciscam has quit [Ping timeout: 265 seconds]
ciscam has joined #ruby
alfiemax has quit [Remote host closed the connection]
kmurphy4 has quit [Quit: kmurphy4]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber__ has joined #ruby
reber has quit [Ping timeout: 256 seconds]
n13z has joined #ruby
cadillac_ has quit [Ping timeout: 265 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jud has quit [Ping timeout: 265 seconds]
wilbert has joined #ruby
rfoust has quit [Ping timeout: 256 seconds]
KeyJoo has joined #ruby
aufi has joined #ruby
mlkkk has quit [Remote host closed the connection]
gil_ has quit [Ping timeout: 248 seconds]
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
anisha__ has joined #ruby
anisha_ has joined #ruby
anisha__ has quit [Ping timeout: 268 seconds]
mlkkk has joined #ruby
aupadhye has joined #ruby
Autolycus has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
mlkkk has quit [Read error: Connection reset by peer]
mlkkk has joined #ruby
icarus has quit [Quit: leaving]
byte00 has joined #ruby
apeiros has joined #ruby
phenom has quit [Ping timeout: 256 seconds]
alex`` has quit [Ping timeout: 265 seconds]
gigetoo has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
galeido has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
suukim has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
wilbert has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
kliq has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
amar has joined #ruby
amar has quit [Ping timeout: 256 seconds]
amar has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
kapil___ has joined #ruby
amar has quit [Ping timeout: 248 seconds]
phate408 has joined #ruby
phate408 has quit [Remote host closed the connection]
yohji has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
vondruch has quit [Ping timeout: 244 seconds]
mlkkk has quit [Ping timeout: 276 seconds]
Asher has quit [Read error: No route to host]
Asher has joined #ruby
dinfuehr has joined #ruby
amar has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
kliq has quit [Ping timeout: 268 seconds]
amar has quit [Ping timeout: 260 seconds]
za1b1tsu has joined #ruby
armando has quit [Ping timeout: 240 seconds]
byte00 has quit [Read error: Connection reset by peer]
byte00 has joined #ruby
amar has joined #ruby
drale2k_ has joined #ruby
aufi has quit [Ping timeout: 256 seconds]
mlkkk has joined #ruby
BloopMonsterOMG has joined #ruby
mlkkk has quit [Read error: Connection reset by peer]
mlkkk has joined #ruby
armando has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
BloopMonsterOMG has quit [Ping timeout: 265 seconds]
ogres has quit [Quit: Connection closed for inactivity]
mlkkk has quit [Ping timeout: 260 seconds]
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
ta_ has joined #ruby
clemens3 has joined #ruby
amar has quit [Ping timeout: 248 seconds]
stnly has joined #ruby
alfiemax has joined #ruby
parzydeu1 has quit [Ping timeout: 248 seconds]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Ping timeout: 276 seconds]
ellcs has joined #ruby
alfiemax has quit [Remote host closed the connection]
mtkd has quit []
\void has quit [Quit: So long, and thanks for all the fish.]
jameser_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
RougeR has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
dionysus69 has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
mlkkk has joined #ruby
Beams has joined #ruby
mlehrer has joined #ruby
aufi has joined #ruby
amar has joined #ruby
drale2k_ has joined #ruby
sysvalve has joined #ruby
meinside has joined #ruby
NL3limin4t0r has joined #ruby
amar has quit [Ping timeout: 248 seconds]
guille-moe has joined #ruby
biberu has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Nick-S has joined #ruby
karapetyan has joined #ruby
jottr has joined #ruby
dhollin3 has joined #ruby
tdy has quit [Ping timeout: 265 seconds]
dhollinger has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
mlkkk has quit [Ping timeout: 276 seconds]
desperek has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Autolycus has quit [Quit: Connection closed for inactivity]
Pavel_ has joined #ruby
jottr has joined #ruby
plexigras has joined #ruby
dr3w_ has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Read error: Connection reset by peer]
n13z has quit [Remote host closed the connection]
untitaker_ is now known as untitaker
Pavel_ has quit [Quit: Page closed]
sameerynho has joined #ruby
sylario has joined #ruby
venmx has joined #ruby
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 256 seconds]
aufi has quit [Ping timeout: 260 seconds]
unsymbol has joined #ruby
n13z has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
jottr has joined #ruby
karapetyan has quit [Remote host closed the connection]
apeiros has joined #ruby
quobo has joined #ruby
Zladivliba has joined #ruby
<Zladivliba> hello everyone !
<apeiros> hi Zladivliba
tdy has joined #ruby
<Zladivliba> I'm not a Ruby programmer and i'm trying to debug a problem, any help appreciated
<Zladivliba> (i'm trying to import wordpress comments)
<Zladivliba> into Jekryll
<Zladivliba> And i'm getting this exception : Liquid Exception: (..._comments/82582-2017-11-29-gdpr.md): did not find expected key while parsing a block mapping at line 2 column 1 in /_layouts/post.html
<apeiros> hm, I don't know jekyll nor liquid, and it seems to me that without knowing them it's a bit difficult to interpret this error
KeyJoo has quit [Remote host closed the connection]
alfiemax has joined #ruby
<ccooke> The only places Liquid is called are lines 25 and 30.
tdy has quit [Ping timeout: 248 seconds]
<bhaak> but isn't that a yaml error? IIRC jekyll uses yaml for setting meta data (e.g. the title of the generated html). in that case 82582-2017-11-29-gdpr.md would have some syntax error in the yaml part
<Zladivliba> ccooke: good point
<Zladivliba> bhaak: it's good point - the initial problem i was having was that when the comments are imported some of them contains semi-columns, which breaks Liquid syntax, so I removed them with python script
mlkkk has joined #ruby
<Zladivliba> now i'm not sure what the error is about : not mapping what ? the article ? or what else...
<Zladivliba> i'm using this tool to import comments : https://github.com/sumdog/jekyll-oldcomments/blob/master/bin/wp_comments2jekyll
Lyfe_ has joined #ruby
Keltia_ has joined #ruby
mlkkk has quit [Ping timeout: 268 seconds]
WhereIsMySpoon__ has joined #ruby
rprimus_ has joined #ruby
jsrtr_ has joined #ruby
ferr__ has joined #ruby
nyuszika7h has quit [Disconnected by services]
andikr has joined #ruby
arand_ has joined #ruby
alnewkir1 has joined #ruby
sriehl_ has joined #ruby
nyuszika7h_ has joined #ruby
csaunders_ has joined #ruby
kenichi_ has joined #ruby
agit0 has joined #ruby
Zarthus_ has joined #ruby
pmodin has joined #ruby
WebDawgII has joined #ruby
dan64 has joined #ruby
llua` has joined #ruby
hurricanehrndz_ has joined #ruby
go|dfish has quit [*.net *.split]
WhereIsMySpoon_ has quit [*.net *.split]
_aeris_ has quit [*.net *.split]
ferr has quit [*.net *.split]
spider-mario has quit [*.net *.split]
Exagone313 has quit [*.net *.split]
hurricanehrndz has quit [*.net *.split]
Zarthus has quit [*.net *.split]
jsrtr has quit [*.net *.split]
sriehl has quit [*.net *.split]
arand has quit [*.net *.split]
modin has quit [*.net *.split]
Lyubo1 has quit [*.net *.split]
WebDawg has quit [*.net *.split]
Lyfe has quit [*.net *.split]
rprimus has quit [*.net *.split]
headius has quit [*.net *.split]
dan64- has quit [*.net *.split]
alnewkirk has quit [*.net *.split]
csaunders has quit [*.net *.split]
kenichi has quit [*.net *.split]
mluts has quit [*.net *.split]
helpa has quit [*.net *.split]
llua has quit [*.net *.split]
Keltia has quit [*.net *.split]
Zarthus_ is now known as Zarthus
pmodin is now known as modin
rprimus_ is now known as rprimus
headius has joined #ruby
Exagone314 has joined #ruby
_aeris_ has joined #ruby
Exagone314 is now known as Exagone313
c0ncealed1 has quit [Ping timeout: 256 seconds]
zleap has quit [Ping timeout: 260 seconds]
sudorobo has quit [Ping timeout: 260 seconds]
ciscam has quit [Ping timeout: 240 seconds]
c0ncealed1 has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
arekushi has quit [Read error: Connection reset by peer]
zleap has joined #ruby
ciscam has joined #ruby
mtkd has joined #ruby
sudorobo has joined #ruby
sudorobo has joined #ruby
mluts has joined #ruby
go|dfish has joined #ruby
spider-mario has joined #ruby
Zladivliba has quit []
vondruch has joined #ruby
alfiemax has quit [Remote host closed the connection]
GodFather has joined #ruby
alfiemax has joined #ruby
postmodern has quit [Quit: Leaving]
arekushi has joined #ruby
tvw has joined #ruby
cyberg has joined #ruby
alfiemax has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
howdoi has joined #ruby
d_kam has quit [Quit: Lingo: www.lingoirc.com]
eelster has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
apparition47 has joined #ruby
anisha__ has joined #ruby
Azure has joined #ruby
anisha_ has quit [Ping timeout: 245 seconds]
chmurifree has joined #ruby
BloopMonsterOMG has joined #ruby
Cthulu201 has joined #ruby
alfiemax has joined #ruby
BloopMonsterOMG has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
mtkd has quit []
mtkd has joined #ruby
parzydeu1 has joined #ruby
<ellcs> did anyone check `sorbet` so far?
alfiemax has joined #ruby
stalactit has joined #ruby
aufi has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
GodFather has quit [Ping timeout: 260 seconds]
kmurphy4 has joined #ruby
Cavallari has joined #ruby
ldnunes has joined #ruby
jamesaxl has joined #ruby
alfiemax has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
Zaab1t has joined #ruby
jottr has joined #ruby
<stalactit> is it possible to get a list of which private constants exist?
<stalactit> it seems like there's no way to discover them after a call to private_constant
mlkkk has joined #ruby
roshanavand has joined #ruby
kapil___ has joined #ruby
llua` is now known as llua
ta_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
parzydeu1 has quit [Quit: WeeChat 2.1]
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
test00789 has joined #ruby
<test00789> hi
<apeiros> stalactit: does indeed seem like there's no way :-/
<apeiros> hi test00789
itachiu has joined #ruby
<itachiu> hi
amar has joined #ruby
amar has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
mlkkk has quit [Ping timeout: 240 seconds]
test00789 has quit [Client Quit]
apparition47 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
itachiu has left #ruby [#ruby]
shadeslayer_ is now known as shadeslayer
donofrio has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
rikai has quit [Ping timeout: 276 seconds]
Burgestrand has joined #ruby
jcalla has quit [Ping timeout: 256 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
shinnya has joined #ruby
apparition47 has joined #ruby
<stalactit> apeiros: ah that's annoying :\ time to patch and recompile i guess
GodFather has joined #ruby
kliq has joined #ruby
gnufied has joined #ruby
mlkkk has joined #ruby
King_of_Ireland has joined #ruby
<apeiros> stalactit: you making a PR for Module#private_constants ? that'd be nice…
<apeiros> or Module#constants(include_private: false)
leitz has joined #ruby
<leitz> Is there a way to pass CSV a different colum seperator? I see references about it but not how to do it.
<leitz> Oop, found it. Coffee kicking in.
<apeiros> various class methods accept that option too iirc
<leitz> Cool. Trying to get more Ruby-ish.
bmurt has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<leitz> Working on my birthdaypresent.
synthroid has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
mlkkk has quit [Remote host closed the connection]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
karapetyan has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
kmurphy4 has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 276 seconds]
chmurifree has quit [Excess Flood]
chmurifree has joined #ruby
chmurifree is now known as chmuri
howdoi has quit [Quit: Connection closed for inactivity]
jcalla has joined #ruby
<stalactit> apeiros: yes, possibly a bug/disucssion first
cyberg has quit [Ping timeout: 245 seconds]
dreamthese has quit [Read error: Connection reset by peer]
cyberg has joined #ruby
dreamthese has joined #ruby
GodFather has joined #ruby
gnufied has quit [Ping timeout: 265 seconds]
k0mpa has joined #ruby
AJA4350 has joined #ruby
King_of_Ireland has left #ruby ["Leaving"]
dar123 has joined #ruby
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #ruby
Rapture has joined #ruby
amelliaa has joined #ruby
griffindy has joined #ruby
ta_ has joined #ruby
RougeR has joined #ruby
krawchyk has joined #ruby
gnufied has joined #ruby
gnufied has quit [Client Quit]
chouhoulis has joined #ruby
gnufied has joined #ruby
suukim has quit [Quit: Konversation terminated!]
roshanavand has quit [Ping timeout: 265 seconds]
dhollin3 is now known as dhollinger
Guest32469 has quit [Read error: Connection reset by peer]
grilix_ has joined #ruby
jrafanie has joined #ruby
Nicmavr has joined #ruby
Nicmavr is now known as Guest27724
anisha__ has quit [Quit: This computer has gone to sleep]
BloopMonster has joined #ruby
amelliaa has quit [Quit: -]
GodFather has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
TinkerT has quit [Quit: ZNC 1.8.x-nightly-20180512-bc7a2176 - https://znc.in]
bbobb has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
BloopMonsterOMG has joined #ruby
TinkerT has joined #ruby
wald0 has joined #ruby
wald0 has quit [Client Quit]
jottr has joined #ruby
ta_ has joined #ruby
apparition47 has quit [Quit: Bye]
kliq has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
zululee has quit [Quit: ZNC 1.6.6 - http://znc.in]
biberu has quit []
BloopMonsterOMG has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
RougeR has quit [Ping timeout: 245 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 255 seconds]
Burgestrand has quit [Quit: Closing time!]
shinnya has quit [Ping timeout: 260 seconds]
mtkd has quit [Ping timeout: 260 seconds]
Inside has joined #ruby
mtkd has joined #ruby
<Inside> Hey guys - I'm trying to learn how to properly do mixins - here's the gist of what i'm trying to do : https://gist.github.com/Insood/b50331ce313477cb06111435523ffa5b
alfiemax has quit [Remote host closed the connection]
rippa has joined #ruby
<Inside> I'm expecting the mixed in module to register some callbacks on the base class, ut I'm getting an "undefined method register_on_save" error
gizmore has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
<apeiros> Inside: base will be MyDerivedClass, not an instance of it (you don't have any)
<apeiros> so you're calling a class method `register_on_save` which doesn't exist, you only defined an instance method of that name.
<apeiros> also: avoid self.included whenever possible. it makes following your code harder.
kliq has joined #ruby
Cavallari has quit [Quit: Cavallari]
<Inside> ah hmmm..
<Inside> How should I do the mixins then?
tvw has quit [Remote host closed the connection]
alfiemax has joined #ruby
<apeiros> there is no generic "this is how you do a mixin". and your case is too generic to tell.
<Inside> Specifically this is what I'm trying to do: https://gist.github.com/Insood/e45965c00a22df9a0a5c49d8561c17b0
<Inside> Bit of ruby on rails ~_~
<Inside> So here base.validates works - I was expecting base.load_serial_numbers to work as well
<apeiros> yeah, while ruby on rails got a lot better, I wouldn't consider it a role model in quite a couple regards :-/
alfiemax has quit [Remote host closed the connection]
<apeiros> you probably should make beater_sn an array instead of having beater1-4_sn
<apeiros> but let me try to find an answer to your question re "how should I do the mixin"
cschneid has joined #ruby
blackmesa has joined #ruby
<apeiros> when you say "a bit of ruby on rails" - do you actually use that in ruby on rails?
<Inside> Yes, haha.
<apeiros> you probably should read their guide on how to do custom validators
<Inside> Here's my use case: I have a very large legacy table with hundreds of columns. I'm trying to create a series of controllers that touches only a couple of columns at a time. However, some controllers need to touch the same columns as the other controllers so I'm trying to pull some of the custom validators & loading/saving code into a mixin
<apeiros> yeah, rails provides ways to create validation classes. I think that's the way to go.
<Inside> The validators work, it's just the common loading/unloading part that doesn't since I'm not sure how to pull out the loading/saving part into a some sort of callback chain on the base class
<apeiros> but questions related to that are better asked over in #rubyonrails
<Inside> Well - the RoR part works - it's the ruby mixin part that doesn't :P
<apeiros> yeah, you can't use load_beater_serial_numbers within the included. you probably want to register an after_initialize hook instead.
dr3w_ has quit [Ping timeout: 260 seconds]
<apeiros> so while you say "it's the ruby mixin" I tell you "it's related to how rails works and you'll make use of rails facilities" :-p
<apeiros> oh, cross-posting without telling. well then, good luck.
<Inside> :|
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
<ellcs> what is meant with cross-posting?
<apeiros> asking in other channels
<Inside> Is that frowned upon? Since i've been doing that for years :P
<apeiros> did you update #rubyonrails on what information you got from here?
leitz has quit [Quit: Nappy time]
saksida has quit [Ping timeout: 248 seconds]
saksida has joined #ruby
aupadhye has quit [Ping timeout: 256 seconds]
synthroid has quit [Remote host closed the connection]
Keltia_ is now known as Keltia
<Inside> Not yet - still looking for something new to add to that conversion
<Inside> conversation
BloopMonsterOMG has joined #ruby
amar has joined #ruby
ellcs has quit [Remote host closed the connection]
<apeiros> and you don't see a problem with that behavior?
pabs has quit [Ping timeout: 240 seconds]
pabs has joined #ruby
pastorinni has joined #ruby
ta_ has joined #ruby
synthroid has joined #ruby
<Inside> what would you like me to cross post over there?
<Inside> I don't 100% get where you're coming from
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> the bare minimum is to announce that you are asking elsewhere too
amar has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
<apeiros> I'm coming from not wanting to waste my time explaining you something somebody else already explained you elsewhere
<Inside> Fair enough
<Inside> Although that's the first time I've been asked that in 20 years of IRCing
<Inside> But I will keep that in mind.
<Inside> (Well, 18)
<apeiros> yeah, look, some things you should think of yourself without people having to tell you.
<Inside> I don't ever recall anyone posting a cross-post notice before either.
<Inside> I'm 100% serious. Never crossed my mind.
BloopMonsterOMG has quit [Ping timeout: 245 seconds]
byte00 has quit [Ping timeout: 265 seconds]
<apeiros> a) they didn't realize you cross-post, b) they realized it and simply did what I normally do: ignored you
<Inside> well - ok then
jrafanie has joined #ruby
amar has joined #ruby
kapil___ has quit [Remote host closed the connection]
kapil___ has joined #ruby
<Inside> FYI: https://gist.github.com/Insood/0de48607d509f6a527cd1b2c91518fc4 seems to do what I want it to, but it pretty ugly.
amar has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
BTRE has quit [Ping timeout: 276 seconds]
jcarl43 has joined #ruby
Nick-S has quit [Quit: Connection closed for inactivity]
bipul has quit [Changing host]
bipul has joined #ruby
mlkkk has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has quit [Quit: .]
ta_ has quit [Ping timeout: 260 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mzo has joined #ruby
drale2k_ has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
yohji has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
cthulchu has joined #ruby
TomyLobo has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
andikr has quit [Remote host closed the connection]
alex`` has joined #ruby
guille-moe has quit [Ping timeout: 255 seconds]
kliq has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
thebetrayer has joined #ruby
guille-moe has joined #ruby
aufi has quit [Quit: Leaving]
nfk has joined #ruby
kmurphy4 has joined #ruby
sysvalve has quit [Quit: Leaving]
kmurphy4 has quit [Max SendQ exceeded]
darkhanb has joined #ruby
chouhoul_ has joined #ruby
kmurphy4 has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Remote host closed the connection]
phenom has joined #ruby
amar has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
amar has quit [Remote host closed the connection]
kt has quit [Ping timeout: 248 seconds]
\void has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
kt has joined #ruby
dendazen has joined #ruby
biberu has joined #ruby
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Eiam_ has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
jottr has joined #ruby
exchgr has quit [Quit: ZNC - http://znc.in]
zleap has quit [Changing host]
zleap has joined #ruby
eelster has joined #ruby
mzo has quit [Ping timeout: 245 seconds]
amar has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
ldnunes has quit [Ping timeout: 256 seconds]
amar has quit [Remote host closed the connection]
amar has joined #ruby
ldnunes has joined #ruby
chat_ has quit [Ping timeout: 265 seconds]
chat_ has joined #ruby
dionysus69 has joined #ruby
amar has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
karapetyan has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
pabs has quit [Ping timeout: 240 seconds]
siaw23 has joined #ruby
pabs has joined #ruby
CuriousMind has joined #ruby
<CuriousMind> Hi, can someone please help me with an error I have with my heroku rails app?
<havenwood> CuriousMind: What seems to be the trouble?
<CuriousMind> I know there is a heroku channel, but I've been asking for days and no answer
<CuriousMind> havenwood: Hi, ok here is the problem
<CuriousMind> havenwood: My app keeps crashing
<CuriousMind> havenwood: I was able to deploy my app, but it will not work once it is deployed to heroku
<siaw23> CuriousMind: can you post the logs from heroku instead?
<CuriousMind> Yes I will right now
karapetyan has joined #ruby
<siaw23> you’re using active storage?
mlkkk has quit [Remote host closed the connection]
chat__ has joined #ruby
<CuriousMind> siaw23: I guess so yes. I am learning rails still
chat_ has quit [Ping timeout: 248 seconds]
Burgestrand has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
alfiemax has joined #ruby
shwouchk has joined #ruby
weird_error has joined #ruby
<siaw23> i strongly believe this is coming from ActiveStorage and that your setup might be off, mind sharing your repo so i can have a look?
<siaw23> @CuriousMind ^^
alfiemax has quit [Ping timeout: 256 seconds]
venmx has quit [Ping timeout: 260 seconds]
fmcgeough has joined #ruby
krawchyk has quit [Quit: krawchyk]
alfiemax has joined #ruby
siaw23 has left #ruby [#ruby]
sphenxes has joined #ruby
sanscoeur has joined #ruby
amar has joined #ruby
kt has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
mtkd has quit []
kt has joined #ruby
amar has quit [Ping timeout: 256 seconds]
kt has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
amar has joined #ruby
kt has joined #ruby
CuriousMind has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
tdy has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
thebetrayer has quit [Ping timeout: 265 seconds]
ramfjord has quit [Read error: Connection reset by peer]
ldepandis has joined #ruby
raynold has joined #ruby
BloopMonsterOMG has joined #ruby
amar_ has joined #ruby
kt has quit [Ping timeout: 276 seconds]
kt has joined #ruby
BotBelBroche has joined #ruby
<BotBelBroche> hi
<havenwood> BotBelBroche: hi
<BotBelBroche> can you help me
BotBelBroche has quit [Client Quit]
blackmesa has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
amar has quit [Ping timeout: 265 seconds]
BloopMonsterOMG has quit [Ping timeout: 260 seconds]
_habnabit has joined #ruby
<_habnabit> hey! is sigprocmask(2) exposed in ruby somewhere? looking to set the procmask so it's inherited by a child
kmurphy4 has quit [Remote host closed the connection]
guille-moe has joined #ruby
blizzow has joined #ruby
mlkkk has joined #ruby
<blizzow> I'm doing some maintenance on a really old(unmaintained) ruby app that uses mongoid/moped to connect to a mongo database. For some reason, I'm getting lots of errors for each member of my replica set:
<blizzow> "MOPED: Could not resolve IP for: myreplicasethost.mydomain.com:27017 runtime n/a"
<blizzow> I'm hoping someone in here might have an idea of what's going on. If I log into the host, it's able to ping my mongo database hosts just fine.
bradland has joined #ruby
SeepingN has joined #ruby
hinbody has joined #ruby
hinbody has left #ruby [#ruby]
<gizmore> blizzow: dns problem
cagomez has joined #ruby
leitz has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
aspleenic has joined #ruby
pastorinni has quit [Remote host closed the connection]
guille-moe has quit [Ping timeout: 240 seconds]
<aspleenic> is this still an active IRC channel?
<leitz> Okay, stuck newbie. I have an array of small hashes, and iterate over the array to pull a value out as a key. Then the code makes an Object with the key as the name and the original hash as input. How can I pull an object from the hash of objects? https://gist.github.com/LeamHall/8ff47f1b1cbd42fdc83509ca00b23a60
<blizzow> gizmore, the host that the app runs on is able to ping the mongo members just fine.
<blizzow> I'm trying to find out why/where/how Resolv::DNS is failing.
jenrzzz has quit [Ping timeout: 276 seconds]
alfiemax_ has joined #ruby
Mike11 has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
lmat has joined #ruby
<lmat> I ran gem install vimgolf; (and it says, " Successfully installed vimgolf-0.4.8" and had some error about documentation (RDoc is not installed: cannot load such file -- rdoc/rdoc). When I run vimgolf setup, I get "-bash: vimgolf: command not found"
<lmat> Where is vimgolf supposed to be?
tdy has quit [Ping timeout: 240 seconds]
eckhardt_ has joined #ruby
<Inside> leitz: You need to do p["name"] instead of p.name
thebetrayer has joined #ruby
<Inside> wait, ignore that
<leitz> Inside, I forgot to use key and value.
<Inside> First, on line 36 you're doing p.name - there is no variable 'p' anywhere
<lmat> (gem is a ruby thing, right...)
<leitz> lmat, yes.
<leitz> lmat, not sure what vimgolf is though. Sorry.
<lmat> leitz: I would think the installation procedure is similar enough for different packages...where do packages usually get installed? I didn't run as root.
<leitz> Inside, the answer is in line 32 I need to use { |key, person| and then "puts person.name', etc.
<Inside> Yes, that too
<leitz> lmat, I think you have to install gems as root. They usually goi in /usr/local/lib/ in my machine.
<lmat> leitz: I see
<Inside> if you do {k: v, k:v} .each { |x| ... } x takes on the values [key,value]
<Inside> or you can expand that array implicitly by doing |key,value|
<havenwood> lmat: Check: gem env gemdir
<leitz> lmat, look in /usr/local/lib/ruby/gems/<ruby version>/gems.
<leitz> Or do what havenwood said. :)
<havenwood> lmat: You'll want the GEM_ROOT/bin in your PATH.
<apeiros> o/ aspleenic
<havenwood> lmat: export PATH="$(gem env gemdir)/bin:$PATH"
<havenwood> we should add an env command flag for the RubyGems bin dir directly
<havenwood> bindir
coderphive is now known as ChrisHansen
ChrisHansen is now known as coderphive
alfiemax has joined #ruby
alfiemax_ has quit [Ping timeout: 245 seconds]
alfiemax has quit [Remote host closed the connection]
<blizzow> if I hopen an interactive session (irb) and do: require 'resolv' then I do: Resolv::DNS.new.each_address("myhost.mydomain.com") { |addr| puts addr } I get "nil" as a response from one of my containers. Even if I make an entry in /etc/hosts, it still returns nil.
alfiemax has joined #ruby
<blizzow> Anyone know where resolv is trying to resolve hosts? If I do a dig or nslookup from the host, it resolves fine.
karapetyan has quit [Remote host closed the connection]
mlkkk has quit [Remote host closed the connection]
karapetyan has joined #ruby
mlkkk has joined #ruby
postmodern has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
alfiemax has quit [Ping timeout: 240 seconds]
sparr has quit [Changing host]
sparr has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jrabe has quit [Quit: Disconnected]
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrabe has joined #ruby
Rapture has quit [Ping timeout: 265 seconds]
mlkkk has quit [Remote host closed the connection]
alfiemax has joined #ruby
CuriousMind has joined #ruby
<CuriousMind> siaw23, I am back sorry
<CuriousMind> havenwood: Hi, I am back sorry
blizzow has quit [Ping timeout: 260 seconds]
<CuriousMind> Can you still help me with my problem which is my crashing heroku app?
c0ncealed1 has quit [Remote host closed the connection]
<havenwood> CuriousMind: Are you actually using ActiveStorage? Take a look at a few issues that are similar to yours: https://github.com/sferik/rails_admin/issues/3025
c0ncealed1 has joined #ruby
<CuriousMind> havenwood: Ok
dmgk has left #ruby [#ruby]
alfiemax has quit [Ping timeout: 260 seconds]
bradland has quit [Quit: bradland]
blackmesa has quit [Ping timeout: 265 seconds]
<havenwood> CuriousMind: Are you using ActiveStorage in your app?
<havenwood> CuriousMind: Is your app open source? If so, link!
<CuriousMind> havenwood: Yes I will do that right now
<CuriousMind> Am I using ActiveStorage in my app? I don't think so?
<havenwood> You'd probably know if you were.
<CuriousMind> Let me just link it. Here: https://github.com/Osagiede/sample_app
<CuriousMind> If I d/c, I will be back immediately
<havenwood> CuriousMind: This is probably a better question for the Rails channel, btw.
<havenwood> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<CuriousMind> havenwood: I see, ok thank you havenwood
blackmesa has joined #ruby
aspleenic has quit [Ping timeout: 248 seconds]
Eiam_ has quit [Ping timeout: 256 seconds]
chongtxtx has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pabs has quit [Ping timeout: 245 seconds]
pabs has joined #ruby
blackmesa has quit [Quit: WeeChat 2.1]
ta_ has quit [Remote host closed the connection]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
mr_foto has joined #ruby
krawchyk has joined #ruby
Dice has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Mike111 has joined #ruby
Mike111 has quit [Max SendQ exceeded]
Mike11 has quit [Ping timeout: 248 seconds]
Mike11 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mike11 has quit [Max SendQ exceeded]
ramfjord has joined #ruby
bmurt has joined #ruby
grilix_ has quit [Ping timeout: 260 seconds]
Dice has quit [Ping timeout: 260 seconds]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest27724 has quit [Changing host]
Guest27724 has joined #ruby
Guest27724 is now known as Nicmavr
guacamole has joined #ruby
Dabo has joined #ruby
roamingdog has joined #ruby
Rapture has joined #ruby
kmurphy4 has joined #ruby
rubyblunder has joined #ruby
<rubyblunder> Hi there, Can anyone help me with the steps to compile this github repo of a static site https://github.com/cis198-2016s/cis198-2016s.github.io? I'm not familiar with what one does with a repo that has Gemfiles... and I can't seem to find a simple answer on google. Thanks so much!
dionysus69 has quit [Ping timeout: 245 seconds]
Mike11 has joined #ruby
rubyblunder has quit [Quit: Page closed]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mitsuhiko_ is now known as mitsuhiko
byte00 has joined #ruby
mitsuhiko has quit [Changing host]
mitsuhiko has joined #ruby
siery has joined #ruby
krawchyk has quit [Quit: krawchyk]
<siery> Hi! Can someone help me to make `line.each_char.with_index do |char, x|` loop to iterate each second character, like 0, 2, 4 ..
minimalism has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit []
byte00 has quit [Ping timeout: 260 seconds]
<dminuoso> >> 1.step.lazy.filter(&:odd).take(50)
<ruby[bot]> dminuoso: # => undefined method `filter' for #<Enumerator::Lazy: #<Enumerator: 1:step>> (NoMethodError) ...check link for more (https://eval.in/1014893)
<dminuoso> >> 1.step.lazy.select(&:odd?).take(50)
<ruby[bot]> dminuoso: # => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:select>:take(50)> ...check link for more (https://eval.in/1014894)
<dminuoso> >> 1.step.lazy.select(&:odd?).take(50).force
<ruby[bot]> dminuoso: # => [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, ...check link for more (https://eval.in/1014895)
<dminuoso> siery: Id probably do it like this
<siery> I am writing load module to my game map, and each tile is codet with two charasters in the file (s, i) where s is tile number and i is the item used by one other object
<dminuoso> or maybe
Zaab1t has quit [Quit: Zaab1t]
<dminuoso> >> atEven = proc{ |a,i| i.even? }; "foobar".chars.zip(0.step).select(&atEven)
<ruby[bot]> dminuoso: # => [["f", 0], ["o", 2], ["a", 4]] (https://eval.in/1014896)
ta_ has joined #ruby
<dminuoso> siery: if you also make the stream lazy you will get fusion
<siery> @dminuoso: thank you, I gonna read about that lazy stream, Im new to ruby c:
BloopMonsterOMG has joined #ruby
<dminuoso> siery: Just imagine you have an infinite stream of things.
<dminuoso> siery: lazy means it will only compute as much as you actually take from it.
<dminuoso> >> 1.step.lazy
<ruby[bot]> dminuoso: # => #<Enumerator::Lazy: #<Enumerator: 1:step>> (https://eval.in/1014897)
pastorinni has joined #ruby
<dminuoso> >> 1.step.lazy.take(10).to_a
<ruby[bot]> dminuoso: # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/1014898)
<dminuoso> >> 1.step.lazy.take(20).to_a
<ruby[bot]> dminuoso: # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] (https://eval.in/1014899)
<havenwood> >> 'siery'.each_char.each_slice(2).map(&:first)
<ruby[bot]> havenwood: # => ["s", "e", "y"] (https://eval.in/1014900)
Sembei has quit [Ping timeout: 256 seconds]
<dminuoso> havenwood: I like that more.
clemens3 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<dminuoso> havenwood: you should make it lazy still
<havenwood> >> 'siery'.each_char.lazy.each_slice(2).map(&:first)
<ruby[bot]> havenwood: # => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: "siery":each_char>>:each_s ...check link for more (https://eval.in/1014901)
<havenwood> >> 'siery'.each_char.lazy.each_slice(2).map(&:first).force
<ruby[bot]> havenwood: # => ["s", "e", "y"] (https://eval.in/1014902)
<havenwood> >> 'siery'.scan(/(.).?/).flatten(1)
<ruby[bot]> havenwood: # => ["s", "e", "y"] (https://eval.in/1014903)
<dminuoso> siery: and when you chain multiple things on a lazy stream you get fusion (usually)
<dminuoso> siery: for example:
eelster has joined #ruby
<dminuoso> >> 1.step.lazy.map(&:to_i).map(&:to_s).take(10).force
<ruby[bot]> dminuoso: # => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] (https://eval.in/1014904)
<dminuoso> Will map only once not twice
plexigras has quit [Ping timeout: 240 seconds]
BloopMonsterOMG has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
Mike11 has quit [Quit: Leaving.]
weaksauce has joined #ruby
fmcgeough has quit [Client Quit]
guacamole has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sphenxes has quit [Remote host closed the connection]
bmurt has joined #ruby
<siery> Thank you guys, I note all examples, I think through this one is most expresive for my situation:
<siery> .each_char.lazy.each_slice(2).map(&:first).force
<siery> I only wander.. where is the iterator here c:?
<dminuoso> siery: Don't force.
<dminuoso> siery: Chances are you dont have to.
chat has joined #ruby
ta_ has quit [Remote host closed the connection]
<dminuoso> siery: Keep the lazy enumerator as long as you can, this enables more fusion (and makes it easier to process large amounts of data)
BTRE has joined #ruby
<dminuoso> ...each_char.lazy.each_slice(2).map(&:first).do_more_things...
chat__ has quit [Ping timeout: 256 seconds]
reber__ has quit [Remote host closed the connection]
reber__ has joined #ruby
KeyJoo has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
KeyJoo has joined #ruby
kmurphy4 has quit [Remote host closed the connection]
\void is now known as Say_No_To_Time-W
Say_No_To_Time-W is now known as \voir
\voir is now known as \void
roamingdog has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
BloopMonsterOMG has joined #ruby
<siery> hmm.. ok guys, I did something like that:
<siery> File.foreach(f_map).with_index do |line, y|
<siery> line.each_char.lazy.each_slice(2).with_index do |char, x|
pavelz has quit [Changing host]
pavelz has joined #ruby
<siery> the iteration is correct, but the `char` is an array now looking like this: ["0", "."]
tvw has joined #ruby
<siery> ok, sorry, I understood now c:
<baweaver> >> class Enumerator; def step(n) Enumerator.new { |y| loop { (n - 1).times { self.next }; y << self.next } }; end; end; "the rain in spain stays mainly on the plane".each_char.step(5).to_a
<ruby[bot]> baweaver: # => ["r", "i", "a", "t", "m", "y", "t", "l"] (https://eval.in/1014908)
<baweaver> :D
<baweaver> Enumerator#step
ldnunes has quit [Quit: Leaving]
<baweaver> havenwood ^
mr_foto has quit []
biberu has quit []
ur5us has joined #ruby
BloopMonsterOMG has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
CuriousMind has quit [Quit: Page closed]
reber__ has quit [Remote host closed the connection]
BloopMonster has quit [Quit: WeeChat 2.1]
emilford has quit [Ping timeout: 276 seconds]
BloopMonster has joined #ruby
jrafanie has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
cyberg has quit [Ping timeout: 260 seconds]
mtkd has quit []
cyberg has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
tdy has joined #ruby
GodFather has joined #ruby
siery has quit [Ping timeout: 245 seconds]
cagomez has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata has joined #ruby
cagomez has joined #ruby
zautomata has quit [Changing host]
zautomata has joined #ruby
leitz has quit [Quit: Nappy time]
emilford has quit [Ping timeout: 265 seconds]
lightstalker has quit [Remote host closed the connection]
emilford has joined #ruby
BloopMonsterOMG has joined #ruby
jenrzzz has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has joined #ruby
sanscoeu_ has joined #ruby
RougeR has quit [Remote host closed the connection]
lightstalker has joined #ruby
BloopMonsterOMG has quit [Ping timeout: 248 seconds]
sanscoeur has quit [Ping timeout: 248 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
RougeR has joined #ruby
k0mpa has quit [Remote host closed the connection]
mozzarella has quit [Quit: WeeChat 2.1]
zleap has quit [Ping timeout: 248 seconds]
jenrzzz_ has joined #ruby
mlkkk has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
schleppel has quit [Quit: Konversation terminated!]
dinfuehr has quit [Ping timeout: 245 seconds]
wkoszek_ has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
emilford has joined #ruby
<havenwood> baweaver: I tried ^ to make Enumerable#step pass relevant Range#step specs.
<wkoszek_> what's so magic about json extension, that unlike e.g.: yaml extension, it has to be compiled each time you want to gem install it?
<baweaver> You should add that to a Ruby core issue havenwood
<baweaver> Probably FFI vs native C extension if I had to bed wkoszek_
<havenwood> baweaver: Good idea. If they accepted it the TruffleRuby implementation is done. ;-)
<wkoszek_> it's like the top issue I'm having figuring how to deploy my ruby code
<havenwood> baweaver: On that note, have you seen enumerator_generate? I think that's an interesting approach to getting an unfoldesque function: https://github.com/zverok/enumerator_generate
emilford has quit [Ping timeout: 248 seconds]
<wkoszek_> That was my guess too, but looking at the repo, the 'ext' directory, there's bunch of plugins.
emilford has joined #ruby
<wkoszek_> Including the one for YAML, for which there's no drama
<wkoszek_> And it also has a pile of .c files there.
tvw has quit []
amar_ has quit [Ping timeout: 265 seconds]
shinnya has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
hph^ has joined #ruby
sanscoeu_ has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 260 seconds]
amar has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37_ has joined #ruby
<wkoszek_> it's a little weird, since otherwise, one could e.g.: get sinatra app deployed in a alpine docker image with just like 100MB of stuff
<wkoszek_> but for `bundle install` with sinatra which sucks in json you need to fetch ruby-dev, g++ and make
<wkoszek_> which isn't so beautiful.
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
emilford has quit [Ping timeout: 256 seconds]
chat_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
<dminuoso> Try Idris.
chat has quit [Ping timeout: 256 seconds]
desperek has quit [Quit: xoxo]
cschneid has quit [Remote host closed the connection]
agent_white has joined #ruby
weaksauce has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
GodFather has joined #ruby
sanscoeur has joined #ruby
sanscoeur has quit [Client Quit]
sanscoeur has joined #ruby
chat has joined #ruby
chat_ has quit [Ping timeout: 276 seconds]
fmcgeough has quit [Client Quit]
thebetrayer has quit [Ping timeout: 260 seconds]
TomyLobo has quit [Ping timeout: 245 seconds]
chat_ has joined #ruby
kmurphy4 has joined #ruby
hph^ has quit [Ping timeout: 264 seconds]
chat has quit [Ping timeout: 264 seconds]
pastorinni has quit [Remote host closed the connection]
jenrzzz has joined #ruby
chat has joined #ruby
chat_ has quit [Ping timeout: 256 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt_ has joined #ruby
chat has quit [Ping timeout: 256 seconds]
kmurphy4 has quit [Quit: kmurphy4]
chat has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
kmurphy4 has joined #ruby
tlaxkit has joined #ruby
snickers has joined #ruby
ramfjord_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ogres has joined #ruby
chat_ has joined #ruby
chat has quit [Ping timeout: 240 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eelster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Ping timeout: 248 seconds]
chat has joined #ruby
chat_ has quit [Ping timeout: 256 seconds]
zautomata has quit [Ping timeout: 248 seconds]
<havenwood> wkoszek_: Ruby does ship with the JSON gem. Show us your Gemfile?
jcarl43 has quit [Quit: WeeChat 2.1]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wkoszek_> havenwood: Just has the sinatra in it.
<wkoszek_> havenwood: And during numerous occasions, I'm hitting "gem failed to build a native extension"
eckhardt_ has joined #ruby
agit0 has quit [Ping timeout: 256 seconds]
<wkoszek_> havenwood: Was wondering why it's happening at all, if json is in stdlib.
Lyubo1 has joined #ruby
<havenwood> wkoszek_: If you can't build native extensions you get limited to pure Ruby gems. It's possible you're building a newer version of Ruby than shipped with the stdlib.
<havenwood> wkoszek_: I'd suggest just installing build tools.
<havenwood> a newer version of JSON*
<havenwood> wkoszek_: Are you using Ruby 2.5.1? Is it a new Gemfile, or is there already a Gemfile.lock?
<wkoszek_> havenwood: Let me see. It's whatever alpine linux ships with.
<wkoszek_> havenwood: No .lock file. Just a Gemfile + pure system. I'm essentially making myself a miniature Docker dev environment with Ruby + Sinatra in it.
<havenwood> wkoszek_: Ruby 2.4.4? Check?: ruby -v
zautomata has joined #ruby
<wkoszek_> ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux-musl]
clemens3 has quit [Ping timeout: 240 seconds]
kmurphy4 has quit [Quit: kmurphy4]
<havenwood> wkoszek_: Do you have the build-base package installed?
<havenwood> wkoszek_: Do you have the ruby-dev package installed?
<wkoszek_> havenwood: Let me maybe rephrase the question here:
<havenwood> wkoszek_: With those two, I'd expect you'd be able to build most extensions unless they have a particular lib req.
<wkoszek_> havenwood: I know how to make it work, and yes: if I add make, g++, ruby-dev it all works.
kapil___ has quit [Quit: Connection closed for inactivity]
<havenwood> Oh. Yeah, you have to have build tools to build.
<wkoszek_> havenwood: but the overall question i've had was: does it have to be that way.
cagomez has quit [Remote host closed the connection]
<wkoszek_> In other words: why doesn't YAML ever complain while JSON is a PITA to install
BloopMonsterOMG has joined #ruby
zautomata has quit [Changing host]
zautomata has joined #ruby
<havenwood> wkoszek_: Psych (YAML) in Ruby stdlib is a libyaml wrapper.
cagomez has joined #ruby
<havenwood> wkoszek_: So fo it, you have to have libyaml installed.
<havenwood> wkoszek_: https://github.com/ruby/psych
karapetyan has quit [Remote host closed the connection]
<wkoszek_> havenwood: I don't get it. Doesn't Ruby's JSON require libjson as well ?
<havenwood> wkoszek_: nope
<wkoszek_> Ah, I see.
pabs has quit [Ping timeout: 260 seconds]
<wkoszek_> havenwood: So whatever Ruby has for JSON serialization/deserialization is faster than libjson ?
<wkoszek_> I think the question is: why is it the way it is.
* wkoszek_ was wondering if that would be a good project for a ruby hacking
<havenwood> wkoszek_: Someone wrote a pure Ruby, C and Java implementation of the JSON spec. It's fast and uses less memory than libjson. You can't use libjson on JRuby.
<havenwood> wkoszek_: Here's a benchmark of various JSON implementations: https://github.com/kostya/benchmarks#json
<havenwood> wkoszek_: Not Ruby's JSON is slightly slower than libjson, but uses less than 3x the memory.
<havenwood> Note*
<wkoszek_> This is very informative.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<havenwood> wkoszek_: libjson is ~30% faster but uses 3x the memory
cagomez has quit [Ping timeout: 245 seconds]
<havenwood> wkoszek_: believe it or not, many Ruby libs are actually memory conscious!
ogres has quit [Read error: Connection timed out]
chat_ has joined #ruby
ogres has joined #ruby
<wkoszek_> havenwood: I can see that. I'm here just because I've seen so many hacks like: 'bundle install' <- fails with json building. Solution: 'gem install json -v 1.8.3' that finally I decided to ask about that.