havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
ur5us has quit [Ping timeout: 248 seconds]
blackbombay has joined #ruby
blackbom1 has quit [Ping timeout: 245 seconds]
enyo_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
carterdea has quit [Read error: Connection reset by peer]
carterdea has joined #ruby
choke has joined #ruby
meshsmith has quit [Remote host closed the connection]
chouhoulis has joined #ruby
enyo_ has quit [Ping timeout: 258 seconds]
iogf has quit [Read error: Connection reset by peer]
StoneCyp1er has quit [Ping timeout: 272 seconds]
biberu has quit [Read error: Connection reset by peer]
StoneCypher has joined #ruby
My_Hearing has joined #ruby
harai has joined #ruby
juanda has quit [Ping timeout: 272 seconds]
ged has quit [Read error: Connection reset by peer]
mahlon has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 248 seconds]
mahlon has joined #ruby
ged has joined #ruby
hotpancakes has quit [Remote host closed the connection]
jcao219 has joined #ruby
CloCkWeRX has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
walterheck has joined #ruby
synbit has quit [Quit: Page closed]
nofxx has joined #ruby
mrwn has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daed has quit [Quit: leaving]
jackjackdripper has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
aredridel has quit [Ping timeout: 248 seconds]
iogf has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
borodin has joined #ruby
saneax is now known as saneax-_-|AFK
marxarel_ has joined #ruby
marxarelli has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 258 seconds]
yehowyada has joined #ruby
walterheck has quit [Ping timeout: 245 seconds]
skweek has joined #ruby
LuckyABA has joined #ruby
marr has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
LuckyABA has quit [Client Quit]
charliesome has quit [Client Quit]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnicole has quit [Remote host closed the connection]
<biox> eelster: it's really nice so far! feels very friendly to noobs like myself.
<eelster> biox: It's also just so powerul.
<eelster> biox: How are you learning it, if you don't mind my asking?
<biox> eelster: i am slowly learning that. i used the nokogiri gem and i'm really liking it so far.
ur5us has joined #ruby
<biox> eelster: mostly by exposure, i use Chef at work so i'm learning as much ruby as that requires, and i've also gone through maybe half of the Headfirst Ruby book.
cdg has joined #ruby
<eelster> biox: My two favorite ruby books are: _why's poignant guide to ruby (poignant.guide) and The Pickaxe
hahuang61 has joined #ruby
<eelster> _why's poignant guide is free
<biox> eelster: ah right. i started why's guide, but i didn't get very far in - loved all the foxes
anuxivm has left #ruby [#ruby]
yehowyada has quit [Quit: Textual IRC Client: www.textualapp.com]
<eelster> biox: It's worthwhile going back at some point. It's by far the most fun programming book I've ever used.
<biox> do you think it would be a good tool for a beginner to use?
<nofxx> why's + chris pine learn to program
<eelster> biox: It depends. _why's style is second to none, but you really have to like his style and really read the book
<nofxx> biox, maybe pine first... you'll enjoy more why's
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<eelster> Also, codecademy, while it teaches some bad practices, isn't really a terrible tool to start learning ruby on.
cdg has quit [Ping timeout: 245 seconds]
mrwn has joined #ruby
<biox> that's great to know. tbh i forgot about why's guide, maybe i'll revisit it. headfirst ruby is fine but it's very dry
testuser1 has quit [Quit: Leaving.]
mikeric has quit []
<eelster> The book that is kinda dry and kinda terse but is the bible on Ruby is The Pickaxe.
LuckyABA has joined #ruby
cippaciong has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
<biox> i appreciate all the help. i would really like to start contributing code on github, which is one of my inspirations to dive deeper into ruby in the first place. but i'm headed home for the night - see you again sometime!
<eelster> biox: Be safe!
<biox> eelster: thank you! :)
<porfa> hello
charliesome has joined #ruby
<eelster> porfa: Hello!
cippaciong has joined #ruby
<porfa> :)
unrecited has quit [Quit: Leaving]
<eelster> porfa: Are you working on anything fun?
milardovich has quit []
<porfa> yeah.. im doing some work for a friend and i’ve encountered a problem
<zenspider> any onigiri fans available? know the difference between \k<name> and \g<name> ?
<eelster> porfa: What's the problem?
Gasher has quit [Quit: Leaving]
<zenspider> onigiri -> onigaruma... oops
<zenspider> porfa: you have 2 `each do`s and only 1 end
<porfa> i want the first column of that table to be inputed as a string, instead of getting it’s text, i really want to pass the whole html
<zenspider> indentation is your friend
<porfa> but just for the first one
<porfa> zenspider: haha it’s just a bit of code for that issue im having, sorry about that
Devalo has quit [Ping timeout: 258 seconds]
<porfa> i mean, im alredy doing that to all the coluns byt having the .to_s in tarray << row.to_s
jcao219 has joined #ruby
<eelster> zenspider: I believe that \k is a re-match of the subexp whereas \g is just a match of the sub-exp?
<porfa> i want to that the string conversion just to the first one
<eelster> zenspider: Or sorry, \g is a call whereas \k is a match
<eelster> porfa: Can you fix the code first?
<eelster> (Also please use .rb instead of .tb so there is syntax highlighting)
cdg has joined #ruby
<eelster> porfa: Here is an optimization, but tarray is just disappearing https://gist.github.com/snood1205/f6e50d1d4565004209197d6eb03577c9
<porfa> is this better?
<eelster> Yes, much.
Kug3lis has joined #ruby
<porfa> :)
whathappens has quit [Quit: Leaving...]
<porfa> how do i now ask just for the first td to be passed as a whole string and not just text?
<eelster> porfa: What do you mean?
marxarel_ is now known as marxarelli|afk
cdg has quit [Remote host closed the connection]
Kug3lis is now known as Kug3lis_off
jenrzzz has quit [Ping timeout: 248 seconds]
flashban` has joined #ruby
<porfa> eelster the result of that code, leaves me with an empty column, because the first td of each row doesn’t contain any values, so i wish to pass that first td as a string
<porfa> i think im having a language issue, sorry eelster
jhack has joined #ruby
username_ has quit [Ping timeout: 248 seconds]
Kug3lis has joined #ruby
nankyokusei has joined #ruby
dann__ has joined #ruby
dann__ has left #ruby [#ruby]
<zenspider> eelster: you have an example of \g ? I'm not grokking
jhack has quit [Ping timeout: 246 seconds]
<zenspider> ooooh... Using {0} to make zero-length named groups
aeontech has quit [Ping timeout: 260 seconds]
<zenspider> (?<element> \g<stag> \g<content>* \g<etag> ){0}(?<name> [a-zA-Z_:]+ ){0} ...
flashban` is now known as rogue`
<zenspider> still not sure I get the difference with \k then
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<eelster> zenspider: I believe that the difference also is that \g does not allow leftmost matching whereas \k does? The difference is not huge if my memory serves me correctly
nankyokusei has quit [Ping timeout: 246 seconds]
A124 has quit [Quit: '']
<zenspider> seems like \k is the same as \#... just a backreference
<zenspider> \g is a "call", but what that means exactly? I dunno
<eelster> What is \#?
<zenspider> \1 \2 etc
elh9_ has joined #ruby
<eelster> Oh, got it
<zenspider> \k can also do named groups, but also numbers (and negative numbers?)
<zenspider> trippy
<eelster> Oniguruma is trippy on the whole
elh9 has quit [Ping timeout: 245 seconds]
aeontech has joined #ruby
<zenspider> I'm rolling in oniguruma history into my ruby quickref... lots to take in
A124 has joined #ruby
<eelster> It's a ton to take in. I use it sometimes, but on the whole ruby has a pretty strong regexp lib baked in.
<zenspider> whoa... \k<name+1>
<zenspider> wtf
<zenspider> mmm... ruby's engine is oniguruma now, no?
statelesscode has joined #ruby
elh9__ has joined #ruby
<zenspider> regsyntax.c - Onigmo (Oniguruma-mod) (regular expression library)
<zenspider> oni-esque
<eelster> zenspider: It's similar. There is an actually oniguruma lib for ruby I believe, but it's not needed.
<zenspider> same author either way... I think they just merge back and forth
<zenspider> probably different defaults
<eelster> zenspider: Yeah. I believe before 2.0 it was different, but it's the same now? I haven't used oniguruma explicitely in a while.
<zenspider> before 1.9 it was our own. 1.9 had oniguruma straight up iirc... now it has a cousin
<zenspider> backreference with recursion level... wtf
<zenspider> takata is insane
elh9_ has quit [Ping timeout: 245 seconds]
<eelster> That's probably true. Honestly, the difference between 1.8 and 1.9 was huge
_djbkd has quit [Quit: My people need me...]
<eelster> Also, yes, Takata is insane.
mikeric has joined #ruby
<zenspider> 9. Subexp calls ("Tanaka Akira special") -- hahaha
<zenspider> akira is also insane
<zenspider> both in good ways
<eelster> zenspider: Couldn't agree more
rogue` is now known as einzelganger
<zenspider> oooooh... ok. \g is re-use the REGEXP from that group. \k is reuse the MATCH from that group
<eelster> zenspider: Ah!
<zenspider> that makes MUCH more sense
<eelster> It does! Sorry for misleading
<zenspider> nope! no worries. I'm just wading through this "doco"
_mtr has joined #ruby
<eelster> s/doco/dojo
<zenspider> in the end... not right now. :)
<eelster> Touché
<zenspider> or... I'm on the getting-your-ass-kicked side of the dojo
<zenspider> wow... steak got to temp FAST. yay
_mtr has quit [Client Quit]
nofxx has quit [Ping timeout: 248 seconds]
<zenspider> now we rest... then we sear
nofxx has joined #ruby
jhack has joined #ruby
clouvet has quit [Quit: leaving]
jcao219 has quit [Ping timeout: 248 seconds]
LoneHerm_ has joined #ruby
* einzelganger
* zenspider
<eelster> What is *?
LoneHerm_ has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
enyo_ has joined #ruby
dnicole has joined #ruby
enyo_ has quit [Ping timeout: 248 seconds]
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
tercenya has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
tercenya has joined #ruby
lmc has joined #ruby
cdg has joined #ruby
lmc has quit [Remote host closed the connection]
cdg_ has joined #ruby
<woodruffw> eelster: * on IRC signifies an action, you can send one by typing "/me <your text>" in most clients
<woodruffw> or /action
brent__ has quit [Remote host closed the connection]
<eelster> Ah! Thank you
* eelster figures out how to use IRC
<woodruffw> no problem
lmc has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
jackjackdripper has joined #ruby
iogf has quit [Remote host closed the connection]
iogf has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
Pantaloons has joined #ruby
aeon has joined #ruby
aeontech has quit [Remote host closed the connection]
aeon is now known as aeontech
jallen123 has joined #ruby
ur5us has joined #ruby
arescorpio has joined #ruby
lmc has quit [Quit: Leaving...]
howdoi has joined #ruby
Pantaloons has quit [Quit: Page closed]
harai has quit [Ping timeout: 258 seconds]
brendan- has joined #ruby
doubleemms has quit [Remote host closed the connection]
doubleemms has joined #ruby
ResidentBiscuit has joined #ruby
aeontech has quit [Quit: aeontech]
conta1 has quit [Ping timeout: 248 seconds]
<iogf> hi.
<iogf> why isnt there documentation for tk in 2.4.0 stdlib?
jhack has quit [Quit: jhack]
Channel6 has joined #ruby
<eelster> iogf: Or a tl;dr it's been 3 years in the making
nankyokusei has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
tyang has quit [Read error: Connection reset by peer]
jcao219 has joined #ruby
gusrub has quit []
nankyokusei has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
d^sh has quit [Ping timeout: 256 seconds]
pawnbox has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
elh9__ has quit [Ping timeout: 245 seconds]
sylario has quit [Quit: Connection closed for inactivity]
jackjackdripper has quit [Quit: Leaving.]
StoneCypher has quit [Ping timeout: 248 seconds]
hanmac has quit [Ping timeout: 240 seconds]
Koirishima has joined #ruby
marxarelli|afk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tomchapin has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
optiz0r has quit [Ping timeout: 248 seconds]
skweek has quit [Ping timeout: 258 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Sou|cutter has joined #ruby
ResidentBiscuit has quit []
dnicole_ has joined #ruby
eelster has quit [Quit: Lost terminal]
tomchapin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has quit [Remote host closed the connection]
dnicole has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
hanmac has joined #ruby
symm- has joined #ruby
BlkDynmt has joined #ruby
brent__ has joined #ruby
StoneCypher has joined #ruby
chouhoulis has joined #ruby
elh9 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<iogf> eelster i see.
aremaref has quit [Ping timeout: 245 seconds]
elh9 has quit [Remote host closed the connection]
elh9 has joined #ruby
qorie has joined #ruby
qorie has left #ruby [#ruby]
hotpancakes has joined #ruby
enterprisey has joined #ruby
carterdea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
m_antis has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
toretore has quit [Ping timeout: 248 seconds]
enyo_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bronson has joined #ruby
jallen123 has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
enyo_ has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
mikeric has quit []
iogf is now known as tau
aeontech has joined #ruby
nofxxx has joined #ruby
Koirishima has quit [Quit: WeeChat 1.5]
polysics has joined #ruby
aremaref has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
Pumukel has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
SuperLag has quit [Quit: leaving]
nankyokusei has joined #ruby
SuperLag has joined #ruby
osboxes has quit [Ping timeout: 272 seconds]
braincrash has quit [Quit: bye bye]
carterdea has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
optiz0r has joined #ruby
pilne has quit [Quit: Quitting!]
splud has quit [Quit: splud]
brent__ has quit [Remote host closed the connection]
doubleemms has quit [Remote host closed the connection]
harfangk has joined #ruby
xall_ has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
mikeric has joined #ruby
polysics has quit [Remote host closed the connection]
osboxes has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
bronson has quit [Remote host closed the connection]
porfa has quit [Quit: porfa]
madsa has quit [Ping timeout: 258 seconds]
hotpancakes has joined #ruby
shakes has joined #ruby
Alina-malina has joined #ruby
montanonic has quit [Ping timeout: 272 seconds]
SteenJobs has joined #ruby
braincrash has joined #ruby
petrichorx has joined #ruby
nunchuck has quit [Ping timeout: 258 seconds]
tau has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
gix has quit [Ping timeout: 248 seconds]
BlkDynmt has quit [Quit: BlkDynmt]
shakes has quit [Ping timeout: 245 seconds]
braincrash has quit [Ping timeout: 248 seconds]
shakes has joined #ruby
gix has joined #ruby
chouhoulis has quit [Remote host closed the connection]
hotpancakes has joined #ruby
ARCADIVS has joined #ruby
amclain has quit [Quit: Leaving]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
hotpancakes has quit [Remote host closed the connection]
porfa has joined #ruby
JoshS has joined #ruby
testuser1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Disavowed has joined #ruby
charliesome has joined #ruby
braincrash has joined #ruby
<Disavowed> What's the preferred non-heroku stack for a low traffic site these days? Is it still Nginx/Unicorn?
brendan- has joined #ruby
Yzguy has joined #ruby
<Yzguy> hello
saneax-_-|AFK is now known as saneax
aremaref has quit [Ping timeout: 248 seconds]
Yzguy has left #ruby [#ruby]
arescorpio has quit [Quit: Leaving.]
aremaref has joined #ruby
mrwn has quit [Ping timeout: 246 seconds]
Dobler has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #ruby
hotpancakes has joined #ruby
montanonic has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
gnufied has quit [Quit: Leaving]
brent__ has joined #ruby
aupadhye has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
brent__ has quit [Remote host closed the connection]
aupadhye has quit [Client Quit]
h1fuelcell has joined #ruby
charliesome has joined #ruby
elh9 has quit [Ping timeout: 245 seconds]
ddffg has quit [Ping timeout: 248 seconds]
polysics has joined #ruby
braincrash has joined #ruby
nankyokusei has joined #ruby
doubleemms has joined #ruby
enyo has joined #ruby
polysics has quit [Ping timeout: 272 seconds]
nankyokusei has quit [Ping timeout: 248 seconds]
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
enyo has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
kineticrootkit[m has quit [Read error: Connection reset by peer]
daveyboi[m] has quit [Read error: Connection reset by peer]
velu_aon[m] has quit [Read error: Connection reset by peer]
Donalmartin[m] has quit [Read error: Connection reset by peer]
fjj[m] has quit [Write error: Connection reset by peer]
tobyn[m] has quit [Read error: Connection reset by peer]
jsanti[m] has quit [Read error: Connection reset by peer]
coreyja[m] has quit [Read error: Connection reset by peer]
Guest77360 has quit [Read error: Connection reset by peer]
joanftt[m] has quit [Read error: Connection reset by peer]
fladson[m] has quit [Read error: Connection reset by peer]
mavenik[m] has quit [Read error: Connection reset by peer]
Luca[m] has quit [Read error: Connection reset by peer]
cpfeilschifter[m has quit [Read error: Connection reset by peer]
n[m] has quit [Read error: Connection reset by peer]
meaggan[m] has quit [Write error: Connection reset by peer]
drorp24[m] has quit [Write error: Connection reset by peer]
serah[m] has quit [Write error: Connection reset by peer]
Xi[m] has quit [Write error: Connection reset by peer]
philidor[m] has quit [Read error: Connection reset by peer]
multivac[m] has quit [Read error: Connection reset by peer]
M-mistake has quit [Read error: Connection reset by peer]
kp666[m] has quit [Read error: Connection reset by peer]
davix[matrix] has quit [Read error: Connection reset by peer]
h42r62[m] has quit [Read error: Connection reset by peer]
vma[m] has quit [Write error: Connection reset by peer]
jomakasi[m] has quit [Write error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
Giphy[m] has quit [Write error: Connection reset by peer]
M-travis has quit [Write error: Connection reset by peer]
laithshadeed[m] has quit [Write error: Connection reset by peer]
guanjian[m] has quit [Write error: Connection reset by peer]
M-shine has quit [Read error: Network is unreachable]
tachyons[m] has quit [Write error: Connection reset by peer]
eliotk[m] has quit [Write error: Connection reset by peer]
riotgsmport[m] has quit [Write error: Connection reset by peer]
Michael5[m] has quit [Write error: Connection reset by peer]
<Sou|cutter> Disavowed: sure? I mean heroku and your stack are somewhat orthogonal, but nginx/unicorn is a fine choice
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BlkDynmt has joined #ruby
iogf has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 272 seconds]
ghostlight has quit [Ping timeout: 272 seconds]
Channel6 has quit [Quit: Leaving]
ghostlight has joined #ruby
doubleemms has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tobyn[m] has joined #ruby
brent__ has joined #ruby
anisha_ has joined #ruby
yeticry has joined #ruby
charliesome has joined #ruby
xall_ has quit [Ping timeout: 246 seconds]
charliesome has quit [Client Quit]
xall_ has joined #ruby
iogf is now known as tau
tau is now known as iogf
hahuang61 has joined #ruby
xall_ has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hahuang61 has quit [Ping timeout: 245 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
markholmes has joined #ruby
bocaneri has joined #ruby
aremaref has quit [Ping timeout: 245 seconds]
charliesome has quit [Client Quit]
ponga has joined #ruby
aredridel has joined #ruby
iogf has quit [Remote host closed the connection]
renchan has joined #ruby
brent__ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
aremaref has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
scorphus has joined #ruby
vedu has left #ruby ["Konversation terminated!"]
hinbody has quit [Ping timeout: 265 seconds]
enterprisey has quit [Remote host closed the connection]
hinbody has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
braincrash has quit [Ping timeout: 248 seconds]
ta has quit [Remote host closed the connection]
muelleme has joined #ruby
pawnbox has quit [Read error: No route to host]
pawnbox has joined #ruby
aupadhye has joined #ruby
charliesome has joined #ruby
dnicole_ has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 272 seconds]
xall_ has joined #ruby
nankyokusei has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
testuser1 has quit [Quit: Leaving.]
doubleemms has joined #ruby
muelleme has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
hotpancakes has quit [Ping timeout: 245 seconds]
doubleemms has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
teclator has quit [Remote host closed the connection]
yoguy has joined #ruby
P1ro has quit [Remote host closed the connection]
Mortomes|Train has joined #ruby
testuser1 has joined #ruby
aremaref has quit [Ping timeout: 258 seconds]
ta has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
braincrash has quit [Ping timeout: 248 seconds]
muelleme has joined #ruby
last_staff has joined #ruby
ta has quit [Ping timeout: 248 seconds]
testuser1 has quit [Quit: Leaving.]
M-shine has joined #ruby
bascht has joined #ruby
coreyja[m] has joined #ruby
philidor[m] has joined #ruby
kineticrootkit[m has joined #ruby
laithshadeed[m] has joined #ruby
jomakasi[m] has joined #ruby
eliotk[m] has joined #ruby
jsanti[m] has joined #ruby
Giphy[m] has joined #ruby
daveyboi[m] has joined #ruby
M-manveru has joined #ruby
Luca[m] has joined #ruby
M-travis has joined #ruby
guanjian[m] has joined #ruby
serah[m] has joined #ruby
n[m] has joined #ruby
joanftt[m] has joined #ruby
tachyons[m] has joined #ruby
multivac[m] has joined #ruby
riotgsmport[m] has joined #ruby
Michael5[m] has joined #ruby
M-mistake has joined #ruby
velu_aon[m] has joined #ruby
meaggan[m] has joined #ruby
vma[m] has joined #ruby
fjj[m] has joined #ruby
cpfeilschifter[m has joined #ruby
davix[matrix] has joined #ruby
Xi[m] has joined #ruby
fladson[m] has joined #ruby
Donalmartin[m] has joined #ruby
mavenik[m] has joined #ruby
drorp24[m] has joined #ruby
h42r62[m] has joined #ruby
kp666[m] has joined #ruby
hahuang61 has joined #ruby
hotpancakes has joined #ruby
teclator has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
aufi has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
P1ro has joined #ruby
LoneHermit has quit [Ping timeout: 248 seconds]
ddffg has joined #ruby
ur5us has joined #ruby
postmodern has quit [Quit: Leaving]
enyo has joined #ruby
SpiffTR has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
enyo has quit [Ping timeout: 248 seconds]
<Disavowed> Sou|cutter: Perfect. Cheers!
pawnbox has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
anisha__ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
haxrbyte has quit [Client Quit]
mikeric has quit []
mikeric has joined #ruby
mikeric has quit [Client Quit]
pawnbox has joined #ruby
petrichorx has quit [Quit: Connection closed for inactivity]
anisha_ has quit [Ping timeout: 272 seconds]
astrobunny has joined #ruby
harai has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
muelleme has quit [Ping timeout: 248 seconds]
ta has joined #ruby
mike___1234 has joined #ruby
<dminuoso> Haha this is priceless
<dminuoso> "In CI, we manually run XYZ to set up the service"
Mortomes|Train has quit [Ping timeout: 260 seconds]
xall has joined #ruby
BlkDynmt has quit [Ping timeout: 272 seconds]
silverdust has quit [Quit: leaving]
dnicole has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
xall_ has quit [Ping timeout: 248 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
aidalgol has quit [Remote host closed the connection]
adrianS_ has joined #ruby
braincrash has joined #ruby
astrobunny has quit [Remote host closed the connection]
SpiffTR has quit [Quit: Leaving.]
symm- has quit [Ping timeout: 258 seconds]
astrobunny has joined #ruby
blackbombay has quit [Ping timeout: 256 seconds]
enyo has joined #ruby
TomyWork has joined #ruby
yardenbar has joined #ruby
SpiffTR has joined #ruby
blackbombay has joined #ruby
aganov has joined #ruby
enyo has quit [Ping timeout: 246 seconds]
doublemalt__ has joined #ruby
nankyokusei has joined #ruby
enyo has joined #ruby
mike___1234 has quit [Quit: Leaving]
naprimer_3 has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
naprimer_2 has quit [Ping timeout: 265 seconds]
Derperperd has joined #ruby
SpiffTR has quit [Quit: Leaving.]
foooobear has joined #ruby
blaxter has joined #ruby
dionysus69 has joined #ruby
marr has joined #ruby
djbkd_ has joined #ruby
blaxter has quit [Client Quit]
ag4ve_ has joined #ruby
Mortomes|Work has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
<blackbombay> when will ruby become perl
<ag4ve_> so i've asked in #chef but that seems dead right about now: how do i go from a gemspec to a finished product?
hotpancakes has quit [Remote host closed the connection]
<blackbombay> gem build foo.gemspec
<blackbombay> doesn't sound specific to chef though?
symm- has joined #ruby
<ag4ve_> which creates a .gem archive(?)
<blackbombay> correct
troulouliou_div2 has joined #ruby
hotpancakes has joined #ruby
ericP has joined #ruby
pawnbox has joined #ruby
<ag4ve_> somehow, i should be able to create a cookbook from that (actual deps are poise - also by the same author, poise-archive, poise-service)
<blackbombay> so, they provide their own instructions to build the gem, which might be important.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ag4ve_> i've read through this - i haven't been able to figure anything past gem build though
troulouliou_div2 has quit [Remote host closed the connection]
<blackbombay> yah sorry i dont know chef but it seems you'd add a non-standard chef/ dir as well as lib/ (standard)
<blackbombay> from there i dont know how it works :)
<ericP> on ubuntu 16.04 xenial, i have ruby and rubygems-integration installed and gem can't install nokogiri-1.7.0.gem because i have no /usr/lib/ruby/include/
hightower3 has joined #ruby
<dminuoso> ericP: You will need to install the development package of Ruby
<ericP> perfect, tx dminuoso
biberu has joined #ruby
<ericP> oddly, https://www.debian.org/distrib/packages didn't know about the creation of usr/lib/ruby/include -- perhaps a post-install script...
<ericP> or maybe i just asked incorrectly
hightower2 has quit [Ping timeout: 248 seconds]
hightower2 has joined #ruby
Cymew has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
byte512 has joined #ruby
hightower3 has quit [Ping timeout: 248 seconds]
SpiffTR has joined #ruby
<blackbombay> debian/ubuntu have(had?) a package policy thats counter productive for typical ruby use.
<blackbombay> installing a C extension isnt that unusual
<herwin> and after installing ruby-dev, that's fairly easy these days
<ericP> yeah, i'd have expected that to go pretty smoothly
<ericP> it turns out that ruby-dev is mostly doc files. ruby2.3-dev has the include files but they're in /usr/include/ruby-2.3.0/ruby/
xall has quit [Ping timeout: 245 seconds]
<ericP> trying a symlink there from /usr/lib/ruby/include...
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<herwin> "This package is a dependency package, which depends on Debian's default Ruby version (currently v2.3)"
<ericP> that mostly did it, but i feel a little dirty (compounded by the fact that i had to sudo gem installs)
mlehrer has joined #ruby
milardovich has joined #ruby
<ericP> though now i (sudo) am getting "installing into parent path /var/lib/gems/2.3.0/gems/w3c-csvw of /var/lib/gems/2.3.0/gems/rdf-tabular-1.0.0 is not allowed"
djbkd_ has quit []
hutch34 has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doubleemms has joined #ruby
charliesome has joined #ruby
<ericP> any ideas what to do about that, or should i wait 'till the package maintainer wakes up in about 8hrs?
loechel has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
<kke> hmm, in my gemspec i have nokogiri ~> 1.6, then i run bundle, it tries to install nokogiri 1.7 (which fails because it requires ruby > 2.0
doubleemms has quit [Ping timeout: 245 seconds]
<kke> if i put nokogiri 1.6.8 to gemspec it installs nokogiri 1.6.8
<kke> should i say ~> 1.6.0 then to get 1.6.x
hutch34 has joined #ruby
ag4ve_ has quit [Ping timeout: 248 seconds]
pawnbox has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kke> i thought ~> 1.6 would give 1.6.x
<dminuoso> ericP: HOnestly, avoiding package managers is the best thing you can do for Ruby.
<dminuoso> ericP: ruby-install is extremely simple and much more effective.
<dminuoso> ericP: I've had nothing but troubles over the years trying to get Ruby working on the various systems in their package managers.
pawnbox has joined #ruby
Jeff_D has joined #ruby
pawnbox has quit [Remote host closed the connection]
ag4ve_ has joined #ruby
ag4ve_ has quit [Max SendQ exceeded]
pawnbox has joined #ruby
ag4ve_ has joined #ruby
ag4ve_ has quit [Max SendQ exceeded]
<ericP> dminuoso, the thing i'm dreading is all the knock-on effects of not having ruby managed by apt, like dependency failures on texlive, inkscape, etc.
ag4ve_ has joined #ruby
<dminuoso> ericP: You have these problems anyway.
<kke> looks like i thought wrong
<dminuoso> ericP: The dependencies that gem incurs are not solved by apt automatically.
pawnbox has quit [Remote host closed the connection]
<dminuoso> ericP: And the dependencies of ruby itself are minimal.
<kke> ~> 1.6 means >= 1.6 && < 2.0
<dminuoso> ericP: So it's a moot point.
pawnbox has joined #ruby
<elomatreb> kke: It's intended for packages following semver
rileyy has joined #ruby
saneax is now known as saneax-_-|AFK
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
andikr has joined #ruby
milardovich has quit [Remote host closed the connection]
Silthias has joined #ruby
milardovich has joined #ruby
<kke> i guess nokogiri doesn't since there's 1.6.8.1 and such
<kke> but anyway, even with semver ~> 1.6 will be >= 1.6 && < 2.0
<kke> ~> 1.6.0 is 1.6.*
<ericP> dminuoso, though apt may not satisfy gem's dependencies, it does manage the ruby dependencies sufficiently for the packaged apps which depend on it.
Silthias1 has quit [Ping timeout: 272 seconds]
<kke> ~> 1.6.2 is >= 1.6.2 && < 1.7
<ericP> dminuoso, maybe my best path is to write directly over the packaged ruby installation so apt (the package manager) thinks i'm meeting dependencies but gem works
<dminuoso> ericP: The requirements are: bash >= 3.x, wget > 1.12 or curl, md5sum, md5 or openssl md5, tar, bzip2, patch (if --patch is specified), gcc >= 4.2 or clang
<dminuoso> ericP: Out of these only "gcc" is usually missing.
<dminuoso> ericP: So there's no real dependencies to talk about.
StoneCypher has quit [Ping timeout: 258 seconds]
<dminuoso> ericP: gem has nothing to do with your package manager.
<ericP> dminuoso, not a prob for me, i tend to have plenty of c++ parsers around
nofxxx has quit [Ping timeout: 248 seconds]
<ericP> dminuoso, my point is that if my package manager doesn't think ruby is installed, it will remove e.g. texlive and inkscape and i'll have to go install them outside of the package manager.
<dminuoso> ericP: inkscape is not a dependency of ruby.
<dminuoso> ericP: Are you talking about gems installed through apt?
<ericP> dminuoso, it depends on ruby
<dminuoso> ericP: Ah.
montanonic has quit [Ping timeout: 258 seconds]
<herwin> no, it suggests ruby
hutch34 has quit [Ping timeout: 245 seconds]
flying has joined #ruby
<ericP> herwin, that's managable. i'm trying to figure out if i apt-remove ruby if i lose texlive but the dependency tree is kinda deep
LoneHermit has joined #ruby
<ericP> (are trees "deep"? maybe "tall"?)
<ericP> the dependcy pit is kinda deep
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
z3uS has quit [Ping timeout: 258 seconds]
xall has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
LoneHermit has quit [Ping timeout: 248 seconds]
z3uS has joined #ruby
<dminuoso> ericP: In the end as long as you avoid gems installed through apt entirely it's not too terrible, unless you wait 1-2 years and you still don't have Ruby 2.5 :P
<dminuoso> That's one of the main reasons why ruby-install is adopted so widely (Ubuntu and up-to-date Ruby is meh)
pawnbox_ has quit [Ping timeout: 246 seconds]
<elomatreb> Aren't there things like PPAs with semi-recent Ruby binaries? Or is that Ubuntu only?
ishe_ua has joined #ruby
<ericP> dminuoso, yeah, it seems they got it working well enough to support their managed packages but not enough for gems
<kke> eric: well the tree could have complex branches that go deep
<kke> i mean roots
<ericP> figured
frozengeek__ has joined #ruby
<ericP> kke, though banyan trees confuse that with branches becoming roots
hahuang61 has joined #ruby
saneax-_-|AFK is now known as saneax
frozengeek__ has quit [Client Quit]
milardovich has quit [Read error: Connection reset by peer]
milardov_ has joined #ruby
<dminuoso> elomatreb: I dont want some unsupported third party vendor infesting my servers.
<dminuoso> elomatreb: With ruby-install it's as official as it can get.
SpiffTR has quit [Quit: Leaving.]
frozengeek__ has joined #ruby
<elomatreb> Of course, I use it myself. But it may be a little nicer in that it actually provides apt with a package, allowing you to install things depending on Ruby with less trouble?
pawnbox has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
Guest__ has joined #ruby
Guest__ is now known as relix
SesMan has joined #ruby
Jeff_D has quit [Quit: STRPT: JMP $ ; Story of my day.]
pawnbox has quit [Ping timeout: 258 seconds]
jsrn has joined #ruby
ur5us has quit [Remote host closed the connection]
aupadhye has joined #ruby
ur5us has joined #ruby
SpiffTR has joined #ruby
ruby-lang645 has joined #ruby
ruby-lang645 has quit [Client Quit]
nankyokusei has joined #ruby
marcoecc has quit [Ping timeout: 265 seconds]
SpiffTR has quit [Client Quit]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 245 seconds]
adrianS_ has quit [Remote host closed the connection]
Blaguvest has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
hightower3 has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
symm- has quit [Quit: Leaving...]
markholmes has quit [Ping timeout: 240 seconds]
hightower2 has quit [Ping timeout: 272 seconds]
marcoecc has joined #ruby
xall has quit [Ping timeout: 272 seconds]
Beams has joined #ruby
Silthias has joined #ruby
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 256 seconds]
chiasmata has quit [Remote host closed the connection]
andikr has quit [Ping timeout: 248 seconds]
aeontech has quit [Quit: aeontech]
hutch34 has joined #ruby
mark_66 has joined #ruby
andikr has joined #ruby
symm- has joined #ruby
markholmes has joined #ruby
xall has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
mahlon has quit [Read error: Connection reset by peer]
mahlon has joined #ruby
charliesome has joined #ruby
StoneCypher has joined #ruby
Silthias has joined #ruby
rodfersou has joined #ruby
hotpancakes has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|coffee
StoneCypher has quit [Ping timeout: 272 seconds]
Kug3lis_off has quit [Ping timeout: 248 seconds]
Fernando-Basso has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 245 seconds]
marsjaninzmarsa has quit [Ping timeout: 240 seconds]
armin has quit [Quit: relate to the matter as i drop the bomb]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MarkMhn has joined #ruby
armin has joined #ruby
MarkMhn has quit [Client Quit]
marsjaninzmarsa has joined #ruby
Otterfox has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<blackbombay> tbh installing and managing ruby is a learning curve in itself
<blackbombay> i dont think its helpful for beginners
rodfersou|coffee is now known as rodfersou
charliesome_ has quit [Read error: Connection reset by peer]
<elomatreb> blackbombay: Having to deal with ancient versions and/or gems failing to build is surely worse?
charliesome has joined #ruby
<blackbombay> yeah. arch linux probably does it best.
neanderslob has quit [Ping timeout: 248 seconds]
troulouliou_div2 has joined #ruby
kareelee has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
araujo has quit [Quit: Leaving]
carterdea has quit [Quit: carterdea]
neanderslob has joined #ruby
jenrzzz has joined #ruby
Otterfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
clouvet has joined #ruby
milardov_ has quit [Remote host closed the connection]
milardovich has joined #ruby
doubleemms has joined #ruby
<manveru> that's the point when i recommend nix, right? :)
clouvet has quit [Quit: leaving]
Otterfox has joined #ruby
doubleemms has quit [Ping timeout: 245 seconds]
juanda has joined #ruby
clouvet has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
clouvet has quit [Client Quit]
clouvet has joined #ruby
thelacce has joined #ruby
clouvet has quit [Client Quit]
Ewelina_ has joined #ruby
MrBusiness has quit [Ping timeout: 248 seconds]
andikr has quit [Ping timeout: 248 seconds]
markholmes has quit [Ping timeout: 258 seconds]
frozengeek__ has quit [Quit: frozengeek__]
<Ewelina_> hello
nankyokusei has quit [Ping timeout: 258 seconds]
Spaulding has joined #ruby
<Ewelina_> heello
frozengeek__ has joined #ruby
nowhereman has quit [Quit: Konversation terminated!]
nowhereman has joined #ruby
<Spaulding> morning!
nadir has quit [Quit: Connection closed for inactivity]
aries_liuxueyang has quit [Ping timeout: 246 seconds]
aufi has quit [Quit: Leaving]
LoneHerm_ has joined #ruby
kareelee has quit [Remote host closed the connection]
aufi has joined #ruby
aries_liuxueyang has joined #ruby
LoneHerm_ has quit [Ping timeout: 248 seconds]
aries_liuxueyang has quit [Ping timeout: 272 seconds]
pandaant has joined #ruby
aries_liuxueyang has joined #ruby
hotpancakes has joined #ruby
milardovich has quit []
jcao219 has quit [Ping timeout: 258 seconds]
maattdd_ has joined #ruby
nadir has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
cyphase has joined #ruby
kareelee has joined #ruby
pawnbox has joined #ruby
andikr has joined #ruby
thelacce has quit []
thelacce has joined #ruby
thelacce has quit [Client Quit]
workmad3 has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
hahuang61 has joined #ruby
Ewelina_ has quit [Remote host closed the connection]
milardovich has joined #ruby
rippa has joined #ruby
ozzloy has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Quit: Leaving.]
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang61 has quit [Ping timeout: 256 seconds]
andikr has quit [Ping timeout: 248 seconds]
nikivi has joined #ruby
xall has quit [Ping timeout: 256 seconds]
m_antis has joined #ruby
pawnbox has joined #ruby
enyo has quit [Ping timeout: 248 seconds]
saneax is now known as saneax-_-|AFK
howdoi has quit [Quit: Connection closed for inactivity]
Otterfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Otterfox has joined #ruby
astrobunny has quit [Ping timeout: 258 seconds]
al2o3-cr has joined #ruby
DaveTabo_ has joined #ruby
SpiffTR has joined #ruby
DaveTaboola has quit [Ping timeout: 246 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
doubleemms has joined #ruby
Cymew has joined #ruby
nankyokusei has joined #ruby
polts has quit [Ping timeout: 256 seconds]
doubleemms has quit [Ping timeout: 240 seconds]
StoneCypher has joined #ruby
polts has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
porfa has quit [Quit: porfa]
hightower3 has joined #ruby
StoneCypher has quit [Ping timeout: 248 seconds]
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
DaveTabo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox_ has joined #ruby
hightower3 has quit [Ping timeout: 246 seconds]
pawnbox has quit [Read error: Connection reset by peer]
Otterfox has quit [Ping timeout: 248 seconds]
MrBismuth has joined #ruby
polysics has joined #ruby
SpiffTR has quit [Quit: Leaving.]
yeticry has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
DaveTaboola has joined #ruby
m_antis has quit [Ping timeout: 272 seconds]
millerti has joined #ruby
juanda has quit [Ping timeout: 246 seconds]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
milardovich has quit []
enyo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
charliesome has joined #ruby
juanda has joined #ruby
hightower3 has joined #ruby
hays has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
<dionysus69> hey. I have algorithm related question!
<xpt> seems like homework :)
<dionysus69> no haha
<dionysus69> it's related to bachelor's project I am doing in rails
<xpt> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dionysus69> I am there already
<dionysus69> I thought this was more a ruby question though
workmad3 has quit [Ping timeout: 246 seconds]
<xpt> well, untill I see the question there is no way knowing this.
<dionysus69> so I am building a rails app and I want to have randomization between users of n items lets say. I want to randomly select. There are 100 items and 5 users. each needs to get 30 items for example so there is a shortage of items, some of the items need to be repeated. so I want to distribute these items in a way that they are as random as possible and as all inclusive as possible as well. so in case of shortage, I want program to distribute all
<dionysus69> pure random method may skip some items totally
<apeiros> sounds familiar
hightower2 has joined #ruby
<dionysus69> yes this is about the old problem
<dionysus69> i am actually working on it now
<apeiros> I think your phrasing is misleading
<dionysus69> ok correct me then :D
<apeiros> if I remember it correctly, you do not have 100 items, but 100 item types
<apeiros> otherwise 30 items per user would mean first 3 users get 30, fourth gets 10, last one gets none. because no items left.
igniting has joined #ruby
<dionysus69> yes 100 item types
<dionysus69> its like sample method you used on array
<dionysus69> i saved those snippets no worries xD
tlaxkit has joined #ruby
hightower3 has quit [Ping timeout: 248 seconds]
aryaching has quit [Ping timeout: 256 seconds]
dhollinger has quit [Ping timeout: 256 seconds]
<apeiros> but with 100 item types, and only 30 actual items per user, you don't need repetition per user, no? or are you talking about repetition across users?
<dionysus69> repetition accross users
bascht is now known as Guest27477
<dionysus69> but with no repetition per user
<blackbombay> apeiros: what u think of redis
Silthias has quit [Ping timeout: 256 seconds]
<apeiros> ok. so you sacrifice randomness in favor of having as many (all in this specific case) item types occur and having as little repetition across all distributed items as possible.
<dionysus69> but you see there is a catch. these users dont fill out the quiz at the same time so the method wont be able to sample and distribute at one go. somehow the db needs to keep track of which items have already been used so the "random selector method" gives priority to low weight items. so item weight increases once it is already selected for any user
Silthias has joined #ruby
<apeiros> blackbombay: I use it with sidekiq. I have no need for it otherwise. I think many projects use it for no good reason and should instead focus on reducing dependencies.
21WAAAWWY has joined #ruby
<dionysus69> so you get it? so there is a question model with weight attribute. if it gets picked by random method for a user it gets incremented +1 into infinity. so next time random method looks at weights and gives lower chance to high weight items so all the pool is used up.
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
jtd has quit [Read error: Connection reset by peer]
<dionysus69> perferct scenario: if we have 100 items 10 users and 10 items per user. it needs to do exactly this: targets = Array.new(10) { items.sample(10) }
<dionysus69> items array is 100 items big
<apeiros> dionysus69: the question breaks down to whether you want guarantees.
21WAAAWWY has quit [Ping timeout: 258 seconds]
<apeiros> if you don't want guarantees it's indeed a question of weighting
<dionysus69> no guarantees needed
<xpt> dionysus69: if you want guarantees you could generate permutation of items and save it somewhere, and then pop amount of items per user. If you have less items than you should you just generate another permutation and assure that it does not start with those items you have left from previous permutation, and then concatenate it to those remaining ones.
sdothum has joined #ruby
<dionysus69> ok thats some buz word "generate permutation" can you show me an example of how this is done in rails?
andikr has joined #ruby
<dionysus69> or what does it even mean
<apeiros> dionysus69: with weighting you have to decide first how much less likely an item which already is present in the distribution is picked again
andikr has quit [Remote host closed the connection]
<apeiros> consider multiple repetitions
<apeiros> e.g. 5 users @ 30 items -> 150 distributed items. 100 item types.
<apeiros> how likely is it for an item to be picked when no item is yet in the 150 distributed items?
<xpt> >> [1, 2, 3, 4].shuffle
<dionysus69> ok each 30 items instances would be called permutation?
<ruby[bot]> xpt: # => [4, 2, 3, 1] (https://eval.in/709288)
<apeiros> how likely is it for an item which appears n times in the distribution?
<xpt> dionysus69: I can't show it in rails, because I know nothing about rails
<apeiros> how likely is it for an item which appears n times in the target users distribution?
<apeiros> etc.
doubleemms has joined #ruby
<dionysus69> the first scenario is a regular random method. if no item is yet in the 150 distributed items
<ytti> slightly related fun fact, AAPL had to change their shuffle to be less random
<ytti> to avoid playing same songs etc
<dionysus69> apeiros: ok forget it
<dionysus69> I think I ll work on it some more and then come back because atm we are just confusing ourselves
<apeiros> ytti: common problem
<apeiros> ytti: hearthstone has similar problems with repeated cards in packs
<ytti> people have predisponsity to find patterns where there are none
mrwn has joined #ruby
<apeiros> social media helps with that
<ytti> so true random appears less random than engineered order
<apeiros> people aggregate edge cases
<apeiros> so they seem more common than they actually are
<ytti> selection bias
<apeiros> oh, TIL. didn't know there was a word for that :)
<kareelee> is it possible to copy a file or run a system command when gem install the gem I created ?
flyingX has joined #ruby
doubleemms has quit [Ping timeout: 240 seconds]
scorphus has quit [Changing host]
scorphus has joined #ruby
<apeiros> kareelee: short answer: no
flying has quit [Ping timeout: 246 seconds]
<kareelee> apeiros: that's what I've found in google but I am wondering what bundler or rubocop do with their executables
nettoweb has joined #ruby
<kareelee> apeiros: meaning that someone must have copied bundle to sbin or wherever
rwb has quit [Ping timeout: 248 seconds]
<apeiros> rubygems does that for you already
pawnbox_ has quit [Remote host closed the connection]
<kareelee> in gemspec? s.executables = %w(bundle bundler) ?
<apeiros> read the rubygems guide on how to build gems. iirc it includes info about how to have executables in your gem.
<apeiros> the gemspec is one part. you also have to actually have those executables in your gem too.
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
chouhoulis has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
<kareelee> yes I've already done so, thanks :)
<apeiros> kareelee: btw., that was a classic xy problem
<apeiros> you should have asked your real problem - how do I have an executable in my gem
<apeiros> "how do I move a file after installation" is your imagined (and wrong) solution to that problem.
<kareelee> apeiros: it's not only the executable, I want to create some other files too
ramfjord has joined #ruby
<apeiros> and you think those are not xy?
<kareelee> I was hoping that I could run a script like capistrano does for example
toretore has joined #ruby
<kareelee> two different problems but I found what I was looking for
<apeiros> kareelee: really, if your gem installation wants to manually move files around you're doing it wrong.
<apeiros> and you really should ask for the real problem instead of wrong solutions.
a7d7p_ has joined #ruby
dhollinger has joined #ruby
<kareelee> apeiros: it's not a #ruby issue because I am trying to create a service
<kareelee> that's why I am asking the ruby part
* apeiros sobs
<kareelee> If you can't execute a script while installing a gem then I need to create another shell script for that
polysics has quit [Remote host closed the connection]
<apeiros> you don't listen. but I have no intention of wasting my time on this.
hightower3 has joined #ruby
hotpancakes has joined #ruby
<kareelee> no problem
<kareelee> thanks
polysics has joined #ruby
nankyokusei has joined #ruby
milardovich has joined #ruby
mhib has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
conta has quit [Ping timeout: 256 seconds]
a7d7p_ has quit [Quit: a7d7p_]
Kaze_FX has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
polysics has quit [Ping timeout: 258 seconds]
conta has joined #ruby
jallen123 has joined #ruby
synthroid has joined #ruby
juanda has quit [Read error: Connection reset by peer]
jallen123 has quit [Remote host closed the connection]
jallen123 has joined #ruby
juanda has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
Kaze_FX has joined #ruby
synthroi_ has joined #ruby
porfa has joined #ruby
hahuang61 has joined #ruby
workmad3 has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
synthroid has quit [Ping timeout: 272 seconds]
truenito has joined #ruby
hightower2 has joined #ruby
polysics has joined #ruby
milardovich has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
milardovich has quit [Remote host closed the connection]
conta has quit [Quit: conta]
mattp_ is now known as mattp
hightower3 has quit [Ping timeout: 272 seconds]
koldbrutality has quit [Ping timeout: 245 seconds]
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
Lord_of_Life has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 258 seconds]
jallen123 has quit [Remote host closed the connection]
jallen123 has joined #ruby
c355e3b has joined #ruby
workmad3 has quit [Quit: Lost terminal]
jallen123 has quit [Ping timeout: 241 seconds]
My_Hearing has quit [Read error: Connection reset by peer]
Mia has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
Mia has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
hightower2 has joined #ruby
polysics has quit [Remote host closed the connection]
ag4ve_ has quit [Ping timeout: 256 seconds]
bigkevmcd has quit [Quit: Outta here...]
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
lenwood has joined #ruby
hightower3 has joined #ruby
GodFather has joined #ruby
iogf has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
Mia has quit [Ping timeout: 245 seconds]
synthroid has joined #ruby
foooobear has quit [Quit: (null)]
synthroi_ has quit [Ping timeout: 256 seconds]
lenwood has quit [Ping timeout: 248 seconds]
Axy has quit [Ping timeout: 245 seconds]
xall has quit [Ping timeout: 272 seconds]
Mia has joined #ruby
unshadow has quit [Quit: leaving]
aupadhye has quit [Ping timeout: 258 seconds]
mekeor has joined #ruby
bijan_ has joined #ruby
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
bigkevmcd has joined #ruby
Mon_Ouie has joined #ruby
chouhoulis has quit [Remote host closed the connection]
StoneCypher has joined #ruby
SpiffTR has quit [Quit: Leaving.]
juanda has quit [Ping timeout: 248 seconds]
tyang has joined #ruby
xall has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
hightower2 has joined #ruby
mikecmpbll has joined #ruby
StoneCypher has quit [Ping timeout: 256 seconds]
Mutter has joined #ruby
larcara has joined #ruby
jallen123 has joined #ruby
hightower3 has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 248 seconds]
Mutter has quit [Client Quit]
conta has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
hightower3 has joined #ruby
ferr1 has joined #ruby
rodfersou is now known as rodfersou|lunch
hightower2 has quit [Ping timeout: 248 seconds]
_mtr has joined #ruby
siddart has joined #ruby
malconis has joined #ruby
larcara has quit [Remote host closed the connection]
kobain has joined #ruby
conta1 has joined #ruby
pawnbox has joined #ruby
nankyokusei has joined #ruby
mikecmpbll has quit [Quit: inabit.]
mikecmpbll has joined #ruby
shinnya has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
ruby-lang449 has joined #ruby
jallen123 has quit [Remote host closed the connection]
canton7 has joined #ruby
ramortegui has joined #ruby
jallen123 has joined #ruby
jallen123 has quit [Remote host closed the connection]
jallen123 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
enyo has quit [Ping timeout: 246 seconds]
SteenJobs has joined #ruby
bijan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
petrichorx has joined #ruby
ScottGA has joined #ruby
foooobear has joined #ruby
bmurt has joined #ruby
flashbang has quit [Quit: flashbang]
porfa has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
LoneHerm_ has quit [Ping timeout: 248 seconds]
Snowy has joined #ruby
einzelganger has quit [Ping timeout: 248 seconds]
BlkDynmt has joined #ruby
porfa has joined #ruby
gnufied has joined #ruby
larcara has joined #ruby
kareelee has quit []
Snowy is now known as bajoiwqe
jhack has joined #ruby
bijan_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
cibs has quit [Ping timeout: 268 seconds]
doubleemms has joined #ruby
saslam has joined #ruby
cibs has joined #ruby
joe1337 has joined #ruby
<joe1337> hello everyone
shinnya has quit [Quit: ZNC - http://znc.in]
joe1337 has quit [Client Quit]
ScottGA has quit [Quit: Leaving...]
shinnya has joined #ruby
shakes has quit [Quit: Leaving]
bijan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
enyo has joined #ruby
doubleemms has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
DLSteve has joined #ruby
hightower3 has quit [Ping timeout: 248 seconds]
truenito has quit [Ping timeout: 248 seconds]
mhib has quit [Quit: Leaving]
_mtr has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
jallen123 has quit [Remote host closed the connection]
flashbang has joined #ruby
jallen123 has joined #ruby
jallen123 has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
jallen123 has joined #ruby
eelster has joined #ruby
_mtr has joined #ruby
igniting has quit [Ping timeout: 272 seconds]
milardovich has joined #ruby
nettoweb has quit [Ping timeout: 258 seconds]
_mtr has quit [Read error: Connection reset by peer]
<eelster> What just happened?
workmad3 has joined #ruby
rwb has joined #ruby
ta has quit [Remote host closed the connection]
_mtr has joined #ruby
elh9 has joined #ruby
xall has quit [Ping timeout: 246 seconds]
mihalis has joined #ruby
pandaant has quit [Remote host closed the connection]
elh9_ has joined #ruby
jhack has quit [Quit: jhack]
mgorbach has quit [Quit: ZNC - http://znc.in]
last_staff has quit [Quit: last_staff]
mihalis has left #ruby [#ruby]
mgorbach has joined #ruby
jallen123 has quit [Remote host closed the connection]
Mortomes|Train has joined #ruby
elh9 has quit [Ping timeout: 245 seconds]
hotpancakes has joined #ruby
_mtr has quit [Read error: Connection reset by peer]
ryzokuken has joined #ruby
jallen123 has joined #ruby
nettoweb has joined #ruby
jallen123 has quit [Read error: Connection reset by peer]
jallen123 has joined #ruby
xall has joined #ruby
elh9_ has quit [Ping timeout: 245 seconds]
ruby-lang449 has quit [Ping timeout: 260 seconds]
larcara has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_mtr has joined #ruby
hahuang61 has joined #ruby
foption has quit [Remote host closed the connection]
foption has joined #ruby
marr has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
BrianJ has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has quit [Ping timeout: 258 seconds]
cats has quit [Quit: BURN HIS HOUSE DOWN]
cats has joined #ruby
elh9 has joined #ruby
jrafanie has joined #ruby
maattdd__ has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
jsrn_ has joined #ruby
vhackler_ has joined #ruby
dc1 has joined #ruby
_mtr has quit [Quit: leaving]
jrafanie_ has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
bajoiwqe_ has joined #ruby
petrichorx_ has joined #ruby
j0bk has quit [Changing host]
j0bk has joined #ruby
Silox| has joined #ruby
jrafanie has quit [Read error: Connection reset by peer]
petrichorx has quit [Ping timeout: 258 seconds]
DaveTaboola has quit [Ping timeout: 258 seconds]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
shinnya has quit [Ping timeout: 258 seconds]
maattdd_ has quit [Ping timeout: 258 seconds]
LuckyABA has quit [Ping timeout: 258 seconds]
jsrn has quit [Ping timeout: 258 seconds]
bajoiwqe has quit [Read error: Connection reset by peer]
ishe_ua has quit [Read error: Connection reset by peer]
yoguy has quit [Ping timeout: 258 seconds]
dcunit3d has quit [Ping timeout: 258 seconds]
ishe_ua has joined #ruby
shinnya has joined #ruby
aries_liuxueyang has joined #ruby
neuraload has joined #ruby
SteenJobs has joined #ruby
iogf has quit [Remote host closed the connection]
nankyokusei has joined #ruby
mrwn has quit [Ping timeout: 248 seconds]
neuraload has quit [Client Quit]
neuraload has joined #ruby
saslam has quit [Ping timeout: 245 seconds]
a7d7p has joined #ruby
juanda has joined #ruby
faces has quit [Ping timeout: 248 seconds]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 272 seconds]
faces has joined #ruby
jhack has joined #ruby
StoneCypher has joined #ruby
iNs has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 258 seconds]
bajoiwqe_ is now known as Snowy
nowhereman has quit [Remote host closed the connection]
ramortegui has quit [Quit: Ex-Chat]
nowhereman has joined #ruby
iNs has joined #ruby
flashbang has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
apeiros has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
StoneCypher has quit [Ping timeout: 272 seconds]
elh9 has quit [Disconnected by services]
mrwn has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as dviola
shinnya has quit [Ping timeout: 256 seconds]
xall has quit [Ping timeout: 256 seconds]
BlkDynmt has quit [Ping timeout: 248 seconds]
dviola has quit [Client Quit]
siddart has quit [Ping timeout: 272 seconds]
frozengeek__ has quit [Quit: frozengeek__]
phoo1234567 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
ponga has quit []
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doublemalt__ has quit [Ping timeout: 248 seconds]
SteenJobs has quit [Quit: SteenJobs]
Mortomes|Train has quit [Ping timeout: 260 seconds]
DoubleMalt has joined #ruby
aryaching has joined #ruby
bmurt has joined #ruby
harfangk has joined #ruby
AgentVenom has joined #ruby
Lord_of_Life has quit [Excess Flood]
thoolihan has quit [Read error: Connection reset by peer]
<eelster> What your favorite new feature in 2.4?
imperator has joined #ruby
Lord_of_Life has joined #ruby
jdawgaz has joined #ruby
a7d7p has quit [Quit: a7d7p]
SteenJobs has joined #ruby
flashbang has joined #ruby
milardovich has quit []
<elomatreb> eelster: Fixnum#digits, as weird as it sounds
<apeiros> eelster: probably String#upcase/#downcase
<eelster> elomatreb: That's quite fair
* apeiros already has Integer#digits :D
<eelster> apeiros: Yes, the handling of more characters is fantastic..
<apeiros> eelster: now if we could get full collation support, that'd be nice.
<centrx> Hash#transform_values
<eelster> apeiros: 2.5 maybe? Haha
<elomatreb> Oh yeah, that's nice too
<eelster> I love Enumerate#sum
SpiffTR has joined #ruby
<apeiros> eelster: I fear more like 3.0 :<
<eelster> Its implementation is brilliant.
blackbombay has quit [Ping timeout: 245 seconds]
<eelster> apeiros: 3.0 is supposed to be in the next few years though, no?
neuraload has quit [Quit: Leaving]
handicraftsman has joined #ruby
<apeiros> eelster: huh? I wonder how Enumerable#sum can be brilliantly implemented…
<eelster> apeiros: Try (1..10000000000000).sum
<handicraftsman> Nice - did all that in ruby and some portions of SQL: https://github.com/handicraftsman/PhotonBot/releases/tag/v0.1.0
<imperator> are there any NSS wrappers for Ruby out there?
GBrawl has joined #ruby
OTORelic has joined #ruby
<handicraftsman> Also. Any ruby sandboxes?
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rileyy has quit [Quit: Textual IRC Client: www.textualapp.com]
<eelster> apeiros: And then read this: http://stackoverflow.com/a/41449844/5021321
ramfjord has quit [Ping timeout: 249 seconds]
<apeiros> eelster: now you made me think they implemented Range#sum too…
jrafanie has joined #ruby
<eelster> apeiros: Well range implements enumerable
iogf has joined #ruby
<apeiros> eelster: you mean it includes it
<apeiros> that's not what I meant
<apeiros> some classes which include Enumerable define their own, optimized versions of enumerable methods
<eelster> apeiros: That's very much what I meant.
<apeiros> and Range#sum would make sense (gauss)
<eelster> apeiros: That's what it is
handicraftsman has left #ruby ["Leaving"]
<eelster> But it's for some reason written in Enumerable not range.
<apeiros> oh? that's… weird?
<apeiros> I didn't see the switch on self in the source. gotta look again then :D
<eelster> That link I sent you explains it better than I can
moei has quit [Quit: Leaving...]
LoneHermit has joined #ruby
<apeiros> oh
<eelster> In the Enumerable#sum source there is a condition if(RTEST(rb_range_values(obj, &beg, &end, &excl))) and from that it uses Gauss
<apeiros> enum_sum vs. enum_sum_i
lmc has joined #ruby
rodfersou|lunch is now known as rodfersou
<apeiros> enum_sum calls int_range_sum, I found it
<mekeor> in IRB, how do i execute what i thought this would to but instead gives an error?: do puts "foo"; end
<eelster> apeiros: Yeah, that's it exactly. It's brilliant.
<apeiros> mekeor: what should that do?
igniting has joined #ruby
<apeiros> eelster: I wonder why they didn't put that in Range
<eelster> mekeor: Since the contents are one line { puts 'foo' } is better style
kobain has quit [Ping timeout: 260 seconds]
<mekeor> apeiros: just print foo
<eelster> apeiros: I wonder as well. I'm guessing that might be a patch for 2.4.1
<apeiros> mekeor: what makes you think you need `do` and `end`?
<elomatreb> You don't need do and end in that case
quiqua has joined #ruby
<apeiros> it's just `puts "foo"`
<eelster> mekeor: To print foo just simply type puts 'foo'
<mekeor> i don't need it, but i thought it'd work
<apeiros> mekeor: there's no standalone `do` in ruby.
<elomatreb> Blocks always have to be associated to a method call
<apeiros> and syntax `do` always with a loop construct
<mekeor> apeiros: alright, thanks <3
<apeiros> (while … do, until …do)
<elomatreb> You don't *need* the do there though, right?
ramfjord has joined #ruby
chouhoulis has joined #ruby
<apeiros> elomatreb: right
<eelster> You can do this if you really want to use a Lambda: https://hastebin.com/bapiwoquda.nginx
LoneHermit has quit [Ping timeout: 256 seconds]
<apeiros> and I see it rather rarely
<elomatreb> >> -> { puts "test" }.() # Ugh
<ruby[bot]> elomatreb: # => test ...check link for more (https://eval.in/709425)
<apeiros> eelster: I wouldn't call it brilliant, but it's very nice they added that optimization
<eelster> elomatreb: Anonomyzing works as well
<eelster> apeiros: True, I just am a fan of it. I like how Ruby constantly moves forward.
conta1 has quit [Ping timeout: 256 seconds]
<apeiros> elomatreb: aaahaha, we had that discussion recently at work, whether we want to use .() or .call() as per our style guide. we went with .call() for clarity - with .(), the . is easily missed
<elomatreb> .() just looks wrong
<eelster> The one odd thing about Enumerable#sum is that one would assume that %w(hello world).sum would produce 'hello world', but it raises a TypeError instead
<apeiros> hm
<eelster> >> -> { puts 'foo' }[]
<ruby[bot]> eelster: # => foo ...check link for more (https://eval.in/709426)
<elomatreb> ... that looks even worse
<eelster> elomatreb: Agreed
<eelster> Althought [] is my prefered syntax to call lambdas
gnufied has quit [Ping timeout: 258 seconds]
frozengeek__ has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
<elomatreb> I always associate square brackets with arrays
aganov has quit [Remote host closed the connection]
brent__ has joined #ruby
<eelster> elomatreb: I feel like it's easier if you treat `#[]` as a method instead of an operator (because it is a method)
<mekeor> elomatreb: what's -> ?
bmurt has joined #ruby
<eelster> mekeor: It's a stabby lambda.
<apeiros> mekeor: `->(args) { code }` is alternative syntax for `lambda { |args| code }`
<elomatreb> eelster: Of course, it's just a habit (?) that I can't shake, despite programming in Ruby longer than in any other language
<mekeor> ah, i see
brendan- has joined #ruby
KeyJoo has joined #ruby
<eelster> elomatreb: Yeah. I had the luck of Ruby being my first language, but I can see that it is weird.
<mekeor> it's funny, i most recently learned coffeescript, and it's really similar to ruby syntactically
<eelster> I'm personally not a fan of Javascript or any of its derivatives
dunpeal has joined #ruby
<elomatreb> It was designed in the Rails environment, it's designed to be similar to Ruby
<mekeor> me neither
tomchapin has joined #ruby
<KeyJoo> Hi guys! Happy New Year!!
<mekeor> KeyJoo: <3
<eelster> Coffeescript is whitespace sensitive no?
<dunpeal> What's a good gem to produce very high-quality (not necessarily fast) upscales of JPG images?
<elomatreb> My first language was some weird robotics version of ARM C for robotics that didn't even have arrays
<mekeor> eelster: yeah, it's sucks so much
<eelster> mekeor: Python is that way too.
aeontech has joined #ruby
<eelster> But to be fair, I love Haskell and it is whitespace sensitive as well
<mekeor> i mean, white-space sensitivity might be fine in some cases, but coffeescript just sucks at it... anyways
<elomatreb> dunpeal: Calling imagemagick (either through a gem or directly) is common
<mekeor> eelster: that's what i mean ;)
Lord_of_Life has quit [Excess Flood]
<eelster> >> puts RUBY_VERSION
<ruby[bot]> eelster: # => 2.3.0 ...check link for more (https://eval.in/709428)
<dunpeal> elomatreb: I know ImageMagick used to be a very common choice, but isn't it considered bloated and outdated nowadays?
brendan- has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
nankyokusei has joined #ruby
<elomatreb> dunpeal: I don't know any real alternative, and image processing is such a deep rabbit hole you're probably not going to get a library that's not "bloated"
troys has joined #ruby
<eelster> ImageMagick isn't too bad. I haven't used it in Ruby, but it's not bad in C.
jdawgaz has joined #ruby
Lord_of_Life has joined #ruby
brendan- has joined #ruby
<OTORelic> test
bmurt has joined #ruby
<eelster> OTORelic: Testing loud and clear
chouhoulis has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 272 seconds]
brendan- has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
symm- has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
<dunpeal> elomatreb: thanks.
brendan- has joined #ruby
aeontech has quit [Quit: aeontech]
ineb has left #ruby [#ruby]
brendan- has quit [Read error: Connection reset by peer]
jallen123 has quit [Remote host closed the connection]
bmurt has joined #ruby
jallen123 has joined #ruby
brendan- has joined #ruby
doublemalt_ has joined #ruby
sebastiansier has joined #ruby
agent_white has joined #ruby
jenrzzz has joined #ruby
haylon has joined #ruby
SpiffTR has quit [Quit: Leaving.]
<agent_white> Mornin' folks
jhack has quit [Quit: jhack]
choke has joined #ruby
chouhoulis has joined #ruby
DoubleMalt has quit [Ping timeout: 272 seconds]
jallen123 has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
StoneCypher has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
a7d7p_ has joined #ruby
BlkDynmt has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jallen123 has joined #ruby
nowhereman has quit [Ping timeout: 256 seconds]
mekeor has quit [Quit: luv-gnu-net]
futilegames has joined #ruby
anisha__ has quit [Quit: Leaving]
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
mark_66 has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
pawnbox has quit [Read error: Connection reset by peer]
TomyWork has quit [Ping timeout: 256 seconds]
balazs_ has joined #ruby
pawnbox has joined #ruby
username_ has joined #ruby
flashbang has quit [Ping timeout: 248 seconds]
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
[Butch] has joined #ruby
SteenJobs has joined #ruby
futilegames has quit [Quit: futilegames]
MissionCritical has quit [Ping timeout: 272 seconds]
willardg has joined #ruby
qpqp has joined #ruby
TomyLobo has joined #ruby
SteenJobs has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
a7d7p_ has quit [Ping timeout: 258 seconds]
flashbang has joined #ruby
zerun0 has quit [Ping timeout: 264 seconds]
ishe_ua has quit [Ping timeout: 246 seconds]
sebastiansier has quit []
sebastiansier has joined #ruby
toretore has quit [Quit: Leaving]
GBrawl has quit [Quit: (null)]
biberu has quit [Ping timeout: 248 seconds]
sebastiansier has quit [Client Quit]
sebastiansier has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
toretore has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
ioricloud has joined #ruby
<ioricloud> hi
<ioricloud> someone can help me
<ioricloud> alguem pode me ajuda
flashbang is now known as einzelganger
bmurt_ has joined #ruby
jhack has quit [Ping timeout: 258 seconds]
willardg has left #ruby ["Textual IRC Client: www.textualapp.com"]
<havenwood> ioricloud: Say what you need help with?
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt_ has quit [Client Quit]
<ioricloud> havenwood: thanks
<ioricloud> I need to show ruby code in sinatra
jallen123 has quit [Remote host closed the connection]
bmurt has quit [Ping timeout: 246 seconds]
marxarelli has joined #ruby
marxarelli is now known as marxarelli|afk
Snowy has quit [Ping timeout: 248 seconds]
marxarelli|afk is now known as marxarelli
mim1k|wo1k has joined #ruby
<havenwood> ioricloud: What do you mean? Say more?
hotpancakes has joined #ruby
bmurt has joined #ruby
jallen123 has joined #ruby
<ioricloud> I need to show my ec2 instance and to have one button next
einzelganger is now known as flashbang
hotpancakes has quit [Remote host closed the connection]
<ioricloud> where turn on and turn off my instance
hotpancakes has joined #ruby
amclain has joined #ruby
<ioricloud> Did you understand?
bmurt has quit [Client Quit]
doubleemms has joined #ruby
mim1k|work has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
doubleemms has quit [Remote host closed the connection]
a7d7p has joined #ruby
jhack has joined #ruby
hotpancakes has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
aufi has quit [Quit: Leaving]
tlaxkit has quit [Quit: ¡Adiós!]
MissionCritical has joined #ruby
<havenwood> ioricloud: Nope, I'm not really following. I gather you're making a Sinatra app that interacts with AWS using the Ruby SDK? But I don't know what your Ruby problem is that we can help you with.
zerun0 has joined #ruby
<ioricloud> yes
<ioricloud> havenwood: yes
jackjackdripper has quit [Client Quit]
<ioricloud> havenwood: I want to make a sinatra app that interacts with aws with ruby sdk
jackjackdripper has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashbang has quit [Ping timeout: 258 seconds]
brent__ has quit [Remote host closed the connection]
millerti has joined #ruby
brent__ has joined #ruby
mikeric has joined #ruby
mikeric has quit [Client Quit]
synthroid has quit [Remote host closed the connection]
brent__ has quit [Read error: Connection reset by peer]
synthroi_ has joined #ruby
brent__ has joined #ruby
millerti has quit [Client Quit]
jsrn_ has quit [Quit: Leaving]
Norm has left #ruby [#ruby]
chino has quit [Quit: Connection closed for inactivity]
Silox| has quit [Quit: Connection closed for inactivity]
ledestin has joined #ruby
pawnbox_ has joined #ruby
millerti has joined #ruby
a7d7p has quit [Quit: a7d7p]
jtd has joined #ruby
benlieb has joined #ruby
moei has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
ledestin has quit [Ping timeout: 246 seconds]
aremaref has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
enyo has quit [Ping timeout: 248 seconds]
zerun0 has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
gusrub has joined #ruby
blackbombay has joined #ruby
benlieb has quit [Quit: benlieb]
hotpancakes has joined #ruby
johnmilton has joined #ruby
Beams has quit [Quit: .]
nankyokusei has joined #ruby
blackbombay has quit [Ping timeout: 272 seconds]
troys is now known as troys_
johnmilton has quit [Remote host closed the connection]
BlkDynmt has quit [Ping timeout: 272 seconds]
benlieb has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
flashbang has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has joined #ruby
quiqua has quit [Quit: Textual IRC Client: www.textualapp.com]
millerti has joined #ruby
a7d7p has joined #ruby
zerun0 has joined #ruby
millerti has quit [Client Quit]
[Butch] has quit [Quit: I'm out . . .]
Fernando-Basso has joined #ruby
millerti has joined #ruby
symm- has quit [Ping timeout: 245 seconds]
minimalism has joined #ruby
djbkd has quit [Remote host closed the connection]
<Cyrus> ...okay...so what's the specific ruby question?
nikivi has quit [Quit: irc]
djbkd has joined #ruby
ryzokuken has quit [Quit: Konversation terminated!]
loechel has quit [Remote host closed the connection]
Pumukel has joined #ruby
muelleme has joined #ruby
[Butch] has joined #ruby
eelster_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
SpiffTR has joined #ruby
izaakf has joined #ruby
senayar has quit []
<izaakf> hey is there a cleaner way to write this code? https://gist.github.com/anonymous/bf4cca7d076ce7a14b98cff5b2215725
<izaakf> for generating sub strings
flyingX has quit []
StoneCypher has quit [Read error: Connection reset by peer]
eelster has quit [Ping timeout: 246 seconds]
jallen123 has quit [Remote host closed the connection]
Pumukel has joined #ruby
StoneCypher has joined #ruby
jallen123 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pumukel has quit [Client Quit]
jdawgaz has joined #ruby
jallen123 has quit [Read error: Connection reset by peer]
jallen123 has joined #ruby
LoneHermit has joined #ruby
mihalis has joined #ruby
willardg has joined #ruby
markholmes has joined #ruby
<mihalis> I hate ruby sometimes.
<centrx> izaakf: You could do something with #combination or #permutation
willardg has quit [Client Quit]
willardg has joined #ruby
<havenwood> izaakf: flat_map { |n| s.each_char.each_cons(n).map &:join }
<eam> my only comment is flat_map seems better replaced by each
willardg has quit [Client Quit]
<centrx> izaakf: my_str.each_char.permutation.to_a
muelleme has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
flashbang has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
mihalis has left #ruby [#ruby]
LoneHermit has quit [Ping timeout: 246 seconds]
<havenwood> >> s = 'izaakf'; 1.upto(s.size).flat_map { |n| s.each_char.each_cons(n).map &:join }
<ruby[bot]> havenwood: # => ["i", "z", "a", "a", "k", "f", "iz", "za", "aa", "ak", "kf", "iza", "zaa", "aak", "akf", "izaa", "za ...check link for more (https://eval.in/709505)
mihalis has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Snowy has joined #ruby
PlasmaStar has quit [Ping timeout: 264 seconds]
<izaakf> havenwood: that's a nice one. Thanks a lot
nowhereman has joined #ruby
<izaakf> havenwood: was having trouble refactoring that method
maattdd__ has quit [Ping timeout: 246 seconds]
PlasmaStar has joined #ruby
kobain has joined #ruby
rodfersou is now known as rodfersou|coffee
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<eelster_> >> `uname -a`
eelster_ is now known as eelster
<eelster> Well apparently that didn't work.
<eelster> >> puts 'test ruby bot'
<ruby[bot]> eelster: # => test ruby bot ...check link for more (https://eval.in/709519)
<eelster> >> puts `uname -a`
<ruby[bot]> eelster: # => (https://eval.in/709520)
<eelster> I give up. Does anyone know what OS ruby[bot] is running?
<havenwood> eelster: Whatcha trying to figure out?
<eelster> havenwood: I'm just wondering what OS ruby[bot] is running
mikecmpbll has joined #ruby
<eelster> Not very important.
<centrx> That's probably classified information.
<apeiros> eelster: the eval service and ruby[bot] run on different servers
<eelster> apeiros: Ah.
<havenwood> >> RbConfig::CONFIG['target_os']
<ruby[bot]> havenwood: # => "linux" (https://eval.in/709523)
<apeiros> so even if you could squeeze that info out of it, it'd be misleading ;-)
<apeiros> eelster: https://eval.in
<apeiros> that's what we use
aviraldg has joined #ruby
rodfersou|coffee is now known as rodfersou
<eelster> >> RbConfig::CONFIG['CC']
<ruby[bot]> eelster: # => "gcc" (https://eval.in/709524)
<eelster> apeiros: That's pretty cool. Interesting that its 'cc' is 'gcc'
<centrx> that's what the cc in gcc stands
<centrx> for
SeepingN has joined #ruby
millerti has joined #ruby
a7d7p has quit [Quit: a7d7p]
<eelster> centrx: Not always. On my computer RbConfig:CONFIG['CC'] returns 'clang'
mihalis has left #ruby [#ruby]
<centrx> The c in clang stands for cc
hahuang61 has joined #ruby
<eelster> centrx: I realized I misread your comment.
SpiffTR has quit [Ping timeout: 258 seconds]
<eelster> centrx: I was saying it's interesting that it uses gcc as its default c compiler
<eelster> I prefer clang to gcc
bocaneri has quit [Remote host closed the connection]
<eelster> But I guess if its on linux then gcc makes sense
SpiffTR has joined #ruby
tvw has joined #ruby
hotpancakes has quit [Remote host closed the connection]
postmodern has joined #ruby
haylon has quit [Quit: Leaving]
troulouliou_div2 has quit [Quit: Leaving]
renchan has quit [Quit: Leaving...]
SpiffTR has quit [Ping timeout: 248 seconds]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
testuser1 has joined #ruby
<eelster> Can anyone explain why this is the way it is in ruby?
<eelster> >> a = a
<ruby[bot]> eelster: # => nil (https://eval.in/709539)
<eelster> I love so much about ruby but the nil assignment that way is odd to me
<herwin> because a is nil
<eelster> herwin: It
<eelster> herwin: *It's not. It doesn't exist
sebastiansier has quit [Ping timeout: 256 seconds]
<eelster> >> a
<ruby[bot]> eelster: # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/709540)
<eelster> But yet
<eelster> >> a = a
<ruby[bot]> eelster: # => nil (https://eval.in/709541)
<herwin> it is created with the "a =", but it still is nil
<herwin> likewise, a = [a] results in [nil]
<eelster> herwin: It's just such odd behavior
ramfjord has joined #ruby
<eelster> But I guess that makes sense
SpiffTR has joined #ruby
duckpuppy has joined #ruby
<herwin> perl works the same way
<herwin> python warns for an undefined value
<eelster> herwin: Most interestingly, you can get some really odd behavior in C like that
pilne has joined #ruby
<eelster> `int i;` then `i = i;`
joescript has joined #ruby
gnufied has joined #ruby
<eelster> For example: https://repl.it/FAq7
siddart has joined #ruby
<workmad3> eelster: you don't need the `i = i`
<eelster> workmad3: That's true. I was just demonstrating the `i = i` assignment that we were talking about.
<workmad3> eelster: `int i;` creates the variable, but doesn't initialize it, so it's essentially a random value consisting of the current contents of the memory location
<workmad3> the `i = i` doesn't add any additional odd behaviour
<eelster> workmad3: Certainly (although some compilers will give you a standard value for it)
<eelster> It's UB
<herwin> I wonder if "i = i" would be removed by the optimizer
<eelster> herwin: Most likely
<eelster> herwin: Lemme check.
<workmad3> eelster: `int i = i;` works in C btw ;)
enyo has joined #ruby
MrBismuth is now known as MrBusiness
<workmad3> (if you want a real comparison with the ruby version)
<eelster> workmad3: I never initialize and declare in the same line in C.
SpiffTR has quit [Ping timeout: 272 seconds]
chouhoul_ has joined #ruby
splud has joined #ruby
MrBusiness is now known as ArcMrBismuth
<workmad3> eelster: right... and I never write `a = a` in ruby... doesn't alter it being valid :P
SpiffTR has joined #ruby
ArcMrBismuth is now known as MrBusiness
<eelster> workmad3: I don't dispute that :D
izaakf has quit [Ping timeout: 260 seconds]
Snowy has quit [Ping timeout: 248 seconds]
<workmad3> eelster: it's basically an artifact of the parser though... `int i` in C (and `a =` in ruby) immediately declare the local variable name in the stack before the next token is parsed
duckpuppy has quit [Quit: WeeChat 1.6]
<workmad3> s/stack/frame
duckpuppy has joined #ruby
jallen123 has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 272 seconds]
choke has joined #ruby
jallen123 has joined #ruby
enyo has quit [Ping timeout: 246 seconds]
<eelster> By the way, the assempbly is optimized with -O1 to remove the self-assignment.
<eelster> (in the `i = i` C)
<eelster> workmad3: Thanks for the explanation though!
nankyokusei has joined #ruby
jallen123 has quit [Remote host closed the connection]
jallen123 has joined #ruby
juanda has quit [Ping timeout: 248 seconds]
SpiffTR1 has joined #ruby
Blaguvest has quit [Ping timeout: 245 seconds]
ddffg has quit [Quit: Leaving]
SpiffTR has quit [Ping timeout: 245 seconds]
blackbombay has joined #ruby
SpiffTR has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
SpiffTR1 has quit [Ping timeout: 248 seconds]
sepp2k has quit [Quit: Leaving.]
brent__ has quit [Read error: Connection reset by peer]
<joescript> exit
benlieb has quit [Quit: benlieb]
joescript has quit [Quit: leaving]
<KeyJoo> bb
brent__ has joined #ruby
KeyJoo has quit [Quit: Leaving]
jhack has quit [Ping timeout: 256 seconds]
SpiffTR has quit [Ping timeout: 258 seconds]
symm- has joined #ruby
sepp2k has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
last_staff has joined #ruby
Ishido has joined #ruby
hotpancakes has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
foooobear has quit [Quit: (null)]
muelleme has quit [Ping timeout: 246 seconds]
eelster has quit [Quit: leaving]
brent__ has quit [Remote host closed the connection]
mattwashere has joined #ruby
brent__ has joined #ruby
benlieb has joined #ruby
Lord_of_Life has quit [Excess Flood]
jcao219 has joined #ruby
Devalo has joined #ruby
benlieb has quit [Client Quit]
a7d7p has joined #ruby
Lord_of_Life has joined #ruby
scottj has quit [Quit: leaving]
choke has quit [Ping timeout: 248 seconds]
username_ has quit [Read error: Connection reset by peer]
username_ has joined #ruby
marr has joined #ruby
petrichorx_ has quit [Quit: Connection closed for inactivity]
centrx has quit []
Yzguy has joined #ruby
jdawgaz has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
workmad3 has quit [Ping timeout: 248 seconds]
rodferso1 has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
rodfersou has quit [Ping timeout: 246 seconds]
govg has joined #ruby
pawnbox_ has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
aeontech has joined #ruby
Puffball has quit [Quit: Puffball]
jackjackdripper1 has joined #ruby
Puffball has joined #ruby
rodferso1 is now known as rodfersou
jackjackdripper has quit [Ping timeout: 258 seconds]
muelleme has joined #ruby
Snowy has joined #ruby
nofxx has joined #ruby
last_staff has quit [Quit: last_staff]
vuoto has joined #ruby
marsjaninzmarsa has quit [*.net *.split]
aredridel has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
gigetoo has quit [*.net *.split]
reaVer has quit [*.net *.split]
Eleeleth has quit [*.net *.split]
sarbs has quit [*.net *.split]
Tempesta has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
perry has quit [*.net *.split]
theRoUS has quit [*.net *.split]
spk has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Hink has quit [*.net *.split]
nug has quit [*.net *.split]
FifthWall has quit [*.net *.split]
rtl_ has quit [*.net *.split]
staticfox has quit [*.net *.split]
LambdaSix has quit [*.net *.split]
atom3_ has quit [*.net *.split]
Xeago has quit [*.net *.split]
jinie has quit [*.net *.split]
Tralin has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
guacamole has quit [*.net *.split]
pelegreno has quit [*.net *.split]
pjaspers has quit [*.net *.split]
kspencer has quit [*.net *.split]
marahin has quit [*.net *.split]
piotrj has quit [*.net *.split]
axsuul has quit [*.net *.split]
rikai has quit [*.net *.split]
saltsa has quit [*.net *.split]
fold4 has quit [*.net *.split]
hplar has quit [*.net *.split]
majuscule has quit [*.net *.split]
jpterry has quit [*.net *.split]
abort_ has quit [*.net *.split]
rob_ has quit [*.net *.split]
todd1 has quit [*.net *.split]
webnanners has quit [*.net *.split]
rhinosic has quit [*.net *.split]
tris has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
ekem has quit [*.net *.split]
miah has quit [*.net *.split]
Gnubie__ has quit [*.net *.split]
Zarthus has quit [*.net *.split]
stroncode has quit [*.net *.split]
joevandyk has quit [*.net *.split]
Davey has quit [*.net *.split]
Junaos has quit [*.net *.split]
spectra has quit [*.net *.split]
Guest81131 has quit [*.net *.split]
nekomune has quit [*.net *.split]
mburns has quit [*.net *.split]
g3funk has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
justinmrkva has quit [*.net *.split]
hxegon has quit [*.net *.split]
adam12 has quit [*.net *.split]
seitensei has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
abort has joined #ruby
piotrj has joined #ruby
reaVer has joined #ruby
Davey has joined #ruby
Davey has joined #ruby
nemesit|znc has joined #ruby
atom3 has joined #ruby
hxegon has joined #ruby
majuscule has joined #ruby
Hink has joined #ruby
webnanners has joined #ruby
Tralin has joined #ruby
saltsa has joined #ruby
Zarthus has joined #ruby
marsjaninzmarsa has joined #ruby
miah has joined #ruby
Iota- has joined #ruby
nug has joined #ruby
Junaos has joined #ruby
stroncode has joined #ruby
jinie has joined #ruby
rtl has joined #ruby
seitensei has joined #ruby
justinmrkva has joined #ruby
Junaos has joined #ruby
Junaos has quit [Changing host]
LambdaSix has joined #ruby
axsuul has joined #ruby
guacamole has joined #ruby
ByronJohnson has joined #ruby
pjaspers has joined #ruby
pelegreno has joined #ruby
adam- has joined #ruby
theRoUS has joined #ruby
joevandyk has joined #ruby
rob_ has joined #ruby
sunya7a_ has joined #ruby
aredridel has joined #ruby
gigetoo has joined #ruby
marahin has joined #ruby
FifthWall_ has joined #ruby
LambdaSix has quit [Changing host]
LambdaSix has joined #ruby
todd1 has joined #ruby
spectra has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
spectra has quit [Changing host]
spectra has joined #ruby
ekem has joined #ruby
tris- has joined #ruby
sunya7a_ has joined #ruby
sunya7a_ has quit [Changing host]
jpterry has joined #ruby
p0p0pr37 has joined #ruby
mburns has joined #ruby
rhinosic has joined #ruby
Sp4rKy has joined #ruby
FifthWall_ is now known as FifthWall
Xeago has joined #ruby
hplar has joined #ruby
marahin is now known as Guest34383
tercenya has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
g3funk has joined #ruby
spk has joined #ruby
sarbs has joined #ruby
tercenya has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
rikai has joined #ruby
Gnubie_ has joined #ruby
fold4 has joined #ruby
Eleeleth has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
tris- is now known as tris
ghostlight has quit [Ping timeout: 248 seconds]
perry has joined #ruby
perry has joined #ruby
perry has quit [Changing host]
discopatrick has quit [Ping timeout: 260 seconds]
ggherdov has quit [Ping timeout: 258 seconds]
juanda has joined #ruby
nankyokusei has joined #ruby
pizzaops has quit [Ping timeout: 245 seconds]
staticfox has joined #ruby
jphase has quit [Read error: Connection reset by peer]
StoneCyp1er has joined #ruby
jphase has joined #ruby
jphase has quit [Changing host]
jphase has joined #ruby
discopatrick has joined #ruby
StoneCypher has quit [Ping timeout: 258 seconds]
dunpeal has quit [Quit: leaving]
ggherdov has joined #ruby
pizzaops has joined #ruby
ggherdov has quit [Excess Flood]
LoneHermit has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.6]
nofxx has joined #ruby
ggherdov has joined #ruby
nekomune has joined #ruby
zerun0 has quit [Ping timeout: 258 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
psychicist__ has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
foxxx0 has joined #ruby
rodfersou has quit [Quit: leaving]
ioricloud has quit [Quit: Page closed]
bdnelson has joined #ruby
jaruga has quit [Quit: jaruga]
markholmes has quit [Remote host closed the connection]
ur5us has joined #ruby
Snowy has quit [Quit: ragequit]
psychicist__ has quit [Read error: Connection reset by peer]
lenwood has joined #ruby
SpiffTR has joined #ruby
ghostlight has joined #ruby
skweek has joined #ruby
zerun0 has joined #ruby
chouhoulis has joined #ruby
nikivi has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
chouhoul_ has quit [Ping timeout: 258 seconds]
Yzguy has quit [Quit: Zzz...]
StoneCypher has joined #ruby
marxarelli is now known as marxarelli|afk
StoneCyp1er has quit [Ping timeout: 272 seconds]
koldbrutality has joined #ruby
hplar has quit [Quit: WeeChat 0.3.2]
hplar has joined #ruby
Devalo has quit [Remote host closed the connection]
hplar has quit [Client Quit]
hplar has joined #ruby
Devalo has joined #ruby
[Butch]_ has joined #ruby
lystra has quit [Read error: Connection reset by peer]
flashbang has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
[Butch] has quit [Ping timeout: 272 seconds]
[Butch]_ is now known as [Butch]
charliesome has joined #ruby
enyo has joined #ruby
flashbang has quit [Ping timeout: 272 seconds]
hotpanca_ has joined #ruby
frozengeek__ has quit [Ping timeout: 272 seconds]
frozengeek__ has joined #ruby
muelleme has quit [Ping timeout: 245 seconds]
enyo has quit [Ping timeout: 248 seconds]
hotpancakes has quit [Ping timeout: 245 seconds]
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
troys_ is now known as troys
lenwood has quit [Ping timeout: 248 seconds]
lenwood has joined #ruby
icey has quit [Remote host closed the connection]
icey has joined #ruby
icey has joined #ruby
icey has quit [Changing host]
kobain has joined #ruby
Silthias1 has joined #ruby
adam- is now known as adam12
Silthias has quit [Ping timeout: 248 seconds]
pawnbox has quit [Remote host closed the connection]
perry has quit [Disconnected by services]
perry has joined #ruby
perry has joined #ruby
perry has quit [Changing host]
Devalo has joined #ruby
conta has quit [Ping timeout: 248 seconds]
Yzguy has joined #ruby
bmurt has joined #ruby
benlieb has joined #ruby
nankyokusei has joined #ruby
brent__ has quit [Remote host closed the connection]
marxarelli|afk is now known as marxarelli
juanda has quit [Ping timeout: 256 seconds]
elvin has joined #ruby
ramfjord has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
elvin has quit [Client Quit]
SpiffTR has quit [Quit: Leaving.]
sebastiansier has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
manjaro-kde5__ has joined #ruby
lenwood has quit [Ping timeout: 258 seconds]
tvl has joined #ruby
`tim` has joined #ruby
koooge has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
aidalgol has joined #ruby
aidalgol is now known as Guest52490
Guest52490 is now known as aidalgol
s2013 has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
arup_r has quit []
gigetoo has joined #ruby
hotpancakes has quit [Remote host closed the connection]
manjaro-kde5__ has quit [Ping timeout: 258 seconds]
eelster has joined #ruby
brent__ has joined #ruby
conta has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
hotpancakes has joined #ruby
conta has quit [Ping timeout: 245 seconds]
BlkDynmt has joined #ruby
duckpuppy has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
flashbang has joined #ruby
eelster has quit [Ping timeout: 245 seconds]
hotpancakes has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 256 seconds]
Disavowed has left #ruby [#ruby]
benlieb has quit [Quit: benlieb]
hotpancakes has joined #ruby
eelster has joined #ruby
jallen123 has quit [Remote host closed the connection]
jallen123 has joined #ruby
nofxx has joined #ruby
Hobbyboy has quit [Ping timeout: 260 seconds]
jallen123 has quit [Ping timeout: 272 seconds]
jallen123 has joined #ruby
sinkyboat has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
sinkyboat has quit [Client Quit]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
manjaro-kde5__ has joined #ruby
hahuang65 has joined #ruby
vuoto has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
juanda has joined #ruby
sinkyboat has joined #ruby
chouhoulis has joined #ruby
workmad3 has joined #ruby
hhatch has joined #ruby
sneakers has joined #ruby
mattwashere has quit [Ping timeout: 256 seconds]
jallen123 has quit [Remote host closed the connection]
imperator has quit [Quit: Leaving]
jallen123 has joined #ruby
`tim` has quit [Ping timeout: 272 seconds]
mattwashere has joined #ruby
troys is now known as troys_
rwb has quit [Ping timeout: 248 seconds]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
koooge_ has joined #ruby
mrwn has quit [Ping timeout: 258 seconds]
jallen123 has quit [Ping timeout: 256 seconds]
BlkDynmt has quit [Ping timeout: 248 seconds]
koooge has quit [Ping timeout: 272 seconds]
hhatch has quit [Quit: leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gasher has joined #ruby
kechja has joined #ruby
hhatch has joined #ruby
Hobbyboy has joined #ruby
nankyokusei has joined #ruby
niceperl has joined #ruby
synthroi_ has quit []
kobain has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 246 seconds]
Alayde has joined #ruby
charliesome has joined #ruby
myk267 has joined #ruby
MarkFletcher has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Ishido has quit [Remote host closed the connection]
kobain has joined #ruby
MarkFletcher has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has quit [Remote host closed the connection]
mrwn has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
jackjackdripper has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flashbang has quit [Ping timeout: 248 seconds]
muelleme has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enyo_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
agit0 has joined #ruby
enyo_ has quit [Ping timeout: 246 seconds]
koooge_ has quit [Quit: Leaving...]
flashbang has joined #ruby
nadir is now known as nadir|mobile
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
Puffball has quit [Remote host closed the connection]
hahuang61 has joined #ruby
m_antis has joined #ruby
enterprisey has joined #ruby
Puffball has joined #ruby
siddart has quit [Quit: WeeChat 1.4]
shazaum has joined #ruby
mrwn has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niceperl has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 258 seconds]
neoncortex has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
SeepingN has quit [Client Quit]
manjaro-kde5__ has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
blackbombay has joined #ruby
milardovich has joined #ruby
SeepingN has joined #ruby
muelleme has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
flashbang has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
milardovich has quit [Ping timeout: 272 seconds]
blackbombay has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kechja has quit [Remote host closed the connection]
gloscombe has joined #ruby
OTORelic has quit [Ping timeout: 248 seconds]
[Butch] has quit [Quit: I'm out . . .]
nankyokusei has joined #ruby
jdawgaz has joined #ruby
mikeiniowa has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
blackbombay has joined #ruby
jake__ has joined #ruby
arthurl has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juanda has quit [Ping timeout: 248 seconds]
dc2 has joined #ruby
<zenspider> ok... riddle me this, batman... I'm still working on updating the quickref for newer regexps, and I've stumbled on extensions to character classes that I don't understand at all
<zenspider> ex. /[a-w&&[^c-g]z]/ ==> ([a-w] AND ([^c-g] OR z)) ==> [abh-w]
<zenspider> whyyyyy?
<zenspider> also, when I use that regexp, I still get an overlapping range warning
<zenspider> >> /[a-b&&[^c-g]z]/
<ruby[bot]> zenspider: # => /[a-b&&[^c-g]z]/ (https://eval.in/709655)
s2013 has quit [Read error: No route to host]
dc1 has quit [Ping timeout: 248 seconds]
<zenspider> hrmph... warnings are apparently turned off on eval.in, even if I set $-w = true
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
SeepingN has joined #ruby
ScottGA has joined #ruby
d0nn1e has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
mshah has joined #ruby
<mshah> hi
<mshah> what are some projects i should work on for ruby
<mshah> anyone here
nikivi has quit [Quit: irc]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 248 seconds]
last_staff has joined #ruby
dc2 has quit [Ping timeout: 246 seconds]
coyo has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
brent__ has quit [Read error: Connection reset by peer]
hutch34 has quit [Quit: WeeChat 1.5]
benlieb has joined #ruby
troys_ is now known as troys
hutch34 has joined #ruby
marxarelli has joined #ruby
enterprisey has quit [Remote host closed the connection]
CookieB has joined #ruby
<CookieB> Hello there
cdg has quit [Remote host closed the connection]
<ScottGA> Hey CookieB. I'm a noob here.
LoneHermit has joined #ruby
<CookieB> Ha I'm glad I'm as well
lmc has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
<CookieB> Might I ask a question about ruby? I'm a little bit stuck
<ScottGA> Working my way through "Learn Ruby the Hard Way".
<ScottGA> Ask away. I may not be much help.
<CookieB> I need an object reference in a on - do block, but I don't know how to pass it: https://codepaste.net/2zuhag
dhollinger has quit [Ping timeout: 258 seconds]
bmurt has joined #ruby
benlieb has quit [Quit: benlieb]
dhollinger has joined #ruby
<zenspider> mshah: yes, we're here... but we can't answer that question.
LoneHermit has quit [Ping timeout: 272 seconds]
<zenspider> mshah: nobody knows you. knows what you're good at. what you want. etc.
juanda has joined #ruby
<zenspider> CookieB: looking
<CookieB> Thanks <3
ScottGA has left #ruby ["Leaving..."]
Azure has joined #ruby
<zenspider> CookieB: "Reference to the class object" ?? explain?
hotpancakes has quit [Remote host closed the connection]
<CookieB> initialize belongs to an object of a class, I am defining an event ":message" and in that message event I want to access the object that belongs to the intialize
<zenspider> do ... end (and { ... }) are blocks... they have references to stuff outside of them when they're called
frozengeek__ has quit [Quit: frozengeek__]
<CookieB> whats the prefix for that reference then?
<zenspider> self, but that gets tricky because that changes all the time
<CookieB> self is an "WebSocket::Client::Simple" in that case
<zenspider> if you did something like `networkthingy = self` and then used `networkthingy` in your block...
<zenspider> (whatever the right name is in this case)
<CookieB> i tried, |msg, var = self| and it ended up being WebSocket... again
<zenspider> no, this isn't a matter of "passing in"
sepp2k has quit [Read error: Connection reset by peer]
<zenspider> that's not the right way to think of this
<CookieB> I'm more a C
<CookieB> I'm more a C++ type usually so my way of thinking is a bit odd for ruby ^^
tyang_ has joined #ruby
<zenspider> for example, `parseResponse(msg.data)` could be `parseResponse(@sentRequests)` and it would still work
ddrmanxbxfr has joined #ruby
hotpancakes has joined #ruby
<zenspider> this is more like lisp/scheme with lexical scoping
mshah has quit [Remote host closed the connection]
<CookieB> so I could try @reference = self above and try it inside I guess
dc2 has joined #ruby
<zenspider> you don't need an ivar... just a local will do
workmad3 has quit [Ping timeout: 245 seconds]
<CookieB> ivar ?
<CookieB> ah
<zenspider> >> n = 42; add = lambda { |m| n + m }; add[1]
<ruby[bot]> zenspider: # => 43 (https://eval.in/709668)
<zenspider> instance variable
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<zenspider> @ivar
<zenspider> see how that lambda has access to `n` but gets passed `1` into `m`?
jackjackdripper has quit [Quit: Leaving.]
<zenspider> the block has / is what is called a "closure"
<CookieB> yeah, but local or ivar both result in NilClass
eelster has quit [Quit: leaving]
<zenspider> I don't believe you... show me
eelster has joined #ruby
workmad3 has joined #ruby
tyang has quit [Ping timeout: 272 seconds]
<CookieB> ah. okay, I did a mistake during my local try
montanonic has joined #ruby
<CookieB> it works fine now, thanks a lot
<zenspider> cool.
<zenspider> >> input = ("aa".."zz").to_a; re1 = /[a-w&&[^c-g]z]/; re2 = /[abh-w]/; [input.size, input.count { |s| s =~ re1 }, input.count { |s| s =~ re2 }]
<ruby[bot]> zenspider: # => [676, 612, 612] (https://eval.in/709669)
<zenspider> huh... I think it's a bug in IRB then...
tyang_ has quit [Ping timeout: 272 seconds]
jallen123 has joined #ruby
hahuang61 has joined #ruby
montanonic has quit [Ping timeout: 248 seconds]
madsa has joined #ruby
frozengeek__ has joined #ruby
teclator has joined #ruby
milardovich has joined #ruby
rwb has joined #ruby
nankyokusei has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
teclator has joined #ruby
porfa has quit [Quit: porfa]
symm- has quit [Quit: Leaving...]
milardovich has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 245 seconds]
lmc has joined #ruby
porfa has joined #ruby
lmc has quit [Client Quit]
workmad3 has quit [Ping timeout: 258 seconds]
jallen123 has quit [Remote host closed the connection]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
jallen123 has joined #ruby
marr has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
Devalo has joined #ruby
enyo_ has joined #ruby
arescorpio has joined #ruby
jallen123 has quit [Ping timeout: 258 seconds]
unrecited has joined #ruby
hahuang61 has quit [Ping timeout: 272 seconds]
porfa has quit [Quit: porfa]
enyo_ has quit [Ping timeout: 248 seconds]
kobain has quit [Ping timeout: 260 seconds]