havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
k0mpa has joined #ruby
amar has quit [Ping timeout: 244 seconds]
jasmith has joined #ruby
lightstalker has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
karapetyan has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
gyant has quit [Ping timeout: 260 seconds]
mozzarella has quit [Quit: WeeChat 2.0.1]
karapetyan has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
schleppel has joined #ruby
kristofers has joined #ruby
erblite has quit [Quit: WeeChat 1.9.1]
mozzarella has joined #ruby
bak1an has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
jrafanie has joined #ruby
jaequery has joined #ruby
kristofers has quit [Quit: Lost terminal]
matcouto has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
tdy has quit [Ping timeout: 268 seconds]
jhack has quit [Quit: Leaving]
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest711 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest45685
zachk has quit [Quit: Leaving]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicht has joined #ruby
nicht has quit [Max SendQ exceeded]
nicht has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
Puffball has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 260 seconds]
AJA4351 is now known as AJA4350
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
quobo has quit [Quit: Connection closed for inactivity]
r29v has quit [Quit: r29v]
schleppel has quit [Quit: Konversation terminated!]
jrafanie has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
jnollette has left #ruby [#ruby]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Dimik has joined #ruby
white_lilies has joined #ruby
mozzarella has quit [Quit: WeeChat 2.0.1]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
mozzarella has joined #ruby
AJA4350 has quit [Quit: AJA4350]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
potatoe has left #ruby ["Textual IRC Client: www.textualapp.com"]
mynameisdebian has joined #ruby
matcouto has quit []
vonfry has joined #ruby
wilbert has joined #ruby
wilbert has quit [Client Quit]
nicht has quit [Ping timeout: 245 seconds]
kapil___ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j0bk has joined #ruby
j0bk has quit [Changing host]
j0bk has joined #ruby
cadillac_ has joined #ruby
cadillac_ is now known as Guest42269
braincrash has quit [Quit: bye bye]
mynameis_ has joined #ruby
mynameisdebian has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
Puppet_ has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
crack has quit [Ping timeout: 255 seconds]
Guest42269 has quit [Ping timeout: 245 seconds]
cadillac__ has joined #ruby
rrichardsr3 has joined #ruby
Mrgoose has quit [Ping timeout: 244 seconds]
amar has joined #ruby
Mrgoose has joined #ruby
white_lilies has quit [Ping timeout: 260 seconds]
amar has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
sauvin has joined #ruby
vonfry_ has joined #ruby
crack has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
vonfry has quit [Remote host closed the connection]
subroot has joined #ruby
karapetyan has joined #ruby
cadillac__ is now known as cadillac_
vonfry_ has quit [Quit: WeeChat 2.1]
yokel has quit [Ping timeout: 268 seconds]
karapetyan has quit [Ping timeout: 255 seconds]
akaiiro has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
akaiiro has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 265 seconds]
Eiam has quit [Ping timeout: 276 seconds]
subroot has quit [Quit: Leaving]
crack has quit [Ping timeout: 240 seconds]
Kerzet has joined #ruby
charlie1 has joined #ruby
pauliesaint has joined #ruby
cadillac_ has quit [Ping timeout: 264 seconds]
charlie1 has quit [Client Quit]
cadillac_ has joined #ruby
Kerzet has quit [Ping timeout: 255 seconds]
phate408 has joined #ruby
nowhere_man has joined #ruby
Guest12924 has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
ciscam has quit [Ping timeout: 244 seconds]
Guest12924 has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
ciscam has joined #ruby
crack has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 255 seconds]
mynameis_ has quit [Remote host closed the connection]
bga57 has quit [Remote host closed the connection]
bga57 has joined #ruby
crack has quit [Ping timeout: 260 seconds]
mynameis_ has joined #ruby
za1b1tsu has joined #ruby
schneider has joined #ruby
lomex has joined #ruby
mynameis_ has quit [Remote host closed the connection]
jmcgnh has quit [Ping timeout: 244 seconds]
mynameisdebian has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
lomex has quit [Client Quit]
tty has quit [Quit: tty]
za1b1tsu has quit [Ping timeout: 245 seconds]
jmcgnh has joined #ruby
r29v has joined #ruby
tvw has joined #ruby
pabs has quit [Ping timeout: 260 seconds]
pabs has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
nowhere_man has quit [Remote host closed the connection]
alfiemax has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
phate408 has quit [Ping timeout: 276 seconds]
BuildTheRobots has quit [Ping timeout: 276 seconds]
dukedave has quit [Ping timeout: 276 seconds]
avdi has quit [Ping timeout: 276 seconds]
ReinH has quit [Ping timeout: 276 seconds]
unsymbol has quit [Ping timeout: 276 seconds]
kapowaz has quit [Ping timeout: 276 seconds]
iamdevnul has quit [Ping timeout: 276 seconds]
phate408 has joined #ruby
Flabbergazta__ has joined #ruby
oblak_ has joined #ruby
iamdevnul has joined #ruby
scrptktty_ has joined #ruby
seanh_ has joined #ruby
kapowaz has joined #ruby
untitaker has quit [Ping timeout: 276 seconds]
Travis-42 has quit [Ping timeout: 276 seconds]
sparc has quit [Ping timeout: 276 seconds]
afisher has quit [Ping timeout: 276 seconds]
Majost has quit [Ping timeout: 276 seconds]
amitchellbullard has quit [Ping timeout: 276 seconds]
JJonah has quit [Ping timeout: 276 seconds]
eising has quit [Ping timeout: 276 seconds]
fury__ has joined #ruby
skmp_ has joined #ruby
dukedave has joined #ruby
daxroc__ has joined #ruby
afisher has joined #ruby
amitchellbullard has joined #ruby
jimeh_ has joined #ruby
avdi has joined #ruby
untitaker_ has joined #ruby
Travis-42_ has joined #ruby
ReinH has joined #ruby
eising has joined #ruby
tycoon177_ has joined #ruby
sparc has joined #ruby
mr-robert_ has joined #ruby
tuelz has quit [Ping timeout: 276 seconds]
hanmac has quit [Ping timeout: 276 seconds]
coderphive has quit [Ping timeout: 276 seconds]
Guest21194 has quit [Ping timeout: 276 seconds]
mr-robert has quit [Ping timeout: 276 seconds]
Chew has quit [Ping timeout: 276 seconds]
seanh has quit [Ping timeout: 276 seconds]
oblak has quit [Ping timeout: 276 seconds]
Flabbergazta_ has quit [Ping timeout: 276 seconds]
tycoon177 has quit [Ping timeout: 276 seconds]
matthewd has quit [Ping timeout: 276 seconds]
oblak_ is now known as oblak
seanh_ is now known as seanh
mr-robert_ is now known as mr-robert
Chew has joined #ruby
coderphive has joined #ruby
devlaf_ has joined #ruby
unsymbol has joined #ruby
WA9ACE_ has joined #ruby
JJonah has joined #ruby
knowtheory__ has joined #ruby
Guest21194 has joined #ruby
scrptktty has quit [Ping timeout: 276 seconds]
tpendragon has quit [Ping timeout: 276 seconds]
leah2 has quit [Ping timeout: 276 seconds]
tobiasvl has quit [Ping timeout: 276 seconds]
kent\n has quit [Ping timeout: 276 seconds]
aspiers has quit [Ping timeout: 276 seconds]
skmp has quit [Ping timeout: 276 seconds]
daxroc_ has quit [Ping timeout: 276 seconds]
fury has quit [Ping timeout: 276 seconds]
jimeh has quit [Ping timeout: 276 seconds]
knowtheory_ has quit [Ping timeout: 276 seconds]
devlaf has quit [Ping timeout: 276 seconds]
WA9ACE has quit [Ping timeout: 276 seconds]
mistym has quit [Ping timeout: 276 seconds]
goez has quit [Ping timeout: 276 seconds]
bougyman has quit [Ping timeout: 276 seconds]
knowtheory__ is now known as knowtheory_
skmp_ is now known as skmp
Majost has joined #ruby
jimeh_ is now known as jimeh
WA9ACE_ is now known as WA9ACE
tycoon177_ has joined #ruby
tycoon177_ has quit [Changing host]
nowhere_man has joined #ruby
devlaf_ is now known as devlaf
sparc has quit [Changing host]
sparc has joined #ruby
sparc has joined #ruby
tvl has joined #ruby
BuildTheRobots has joined #ruby
unsymbol has quit [Changing host]
unsymbol has joined #ruby
coderphive has quit [Changing host]
coderphive has joined #ruby
coderphive has joined #ruby
unsymbol has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
BuildTheRobots has quit [Changing host]
BuildTheRobots has joined #ruby
BuildTheRobots has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
tvl is now known as tobiasvl
WA9ACE is now known as Guest66085
Lyubo1 has quit [Ping timeout: 240 seconds]
Xiti has quit [Changing host]
Xiti has joined #ruby
apeiros has quit [Remote host closed the connection]
scrptktty_ has quit [Client Quit]
DarthGandalf has quit [Ping timeout: 245 seconds]
kent\n has joined #ruby
DarthGandalf has joined #ruby
Lyubo1 has joined #ruby
scrptktty_ has joined #ruby
goez has joined #ruby
mistym has joined #ruby
bougyman has joined #ruby
mistym has joined #ruby
mistym has quit [Changing host]
aspiers has joined #ruby
matthewd has joined #ruby
scrptktty_ has quit [Client Quit]
tuelz has joined #ruby
scrptktty_ has joined #ruby
shinnya has joined #ruby
Inline has quit [Quit: Leaving]
karapetyan has joined #ruby
r29v has quit [Quit: r29v]
hanmac has joined #ruby
alfiemax_ has joined #ruby
leah2 has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
vondruch has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
alfiemax_ has quit [Ping timeout: 240 seconds]
Guest66085 is now known as WA9ACE
zlogan2003 has joined #ruby
alfiemax has joined #ruby
aupadhye has joined #ruby
untitaker_ is now known as untitaker
Some-body_ has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
Some-body_ is now known as DarthGandalf
jmcgnh has quit [Ping timeout: 245 seconds]
schneider has quit [Ping timeout: 245 seconds]
tpendragon has joined #ruby
za1b1tsu has joined #ruby
biberu has joined #ruby
za1b1tsu has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
almdrx has quit [Quit: almdrx]
\void has quit [Quit: So long, and thanks for all the fish.]
almdrx has joined #ruby
suukim has joined #ruby
lightstalker has quit [Ping timeout: 260 seconds]
almdrx has quit [Client Quit]
drale2k_ has joined #ruby
jmcgnh has joined #ruby
moei has joined #ruby
lightstalker has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
jraavis has joined #ruby
rrichardsr3 has quit [Ping timeout: 264 seconds]
sphenxes has joined #ruby
sphenxes has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jraavis has quit [Remote host closed the connection]
alfiemax has joined #ruby
konsolebox has quit [Ping timeout: 276 seconds]
jraavis has joined #ruby
konsolebox has joined #ruby
jraavis has quit [Remote host closed the connection]
jraavis has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jrabe has left #ruby [#ruby]
schneider has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
za1b1tsu has joined #ruby
irick has quit [Ping timeout: 248 seconds]
za1b1tsu has quit [Client Quit]
aufi has joined #ruby
aufi_ has joined #ruby
elphe has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
elphe has quit [Client Quit]
aufi has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
jimeh has quit []
jimeh has joined #ruby
zlogan2003 has quit [Ping timeout: 244 seconds]
amar has joined #ruby
rrichard_ has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
Slyda1 has quit [Ping timeout: 240 seconds]
salasrod has joined #ruby
salasrod has quit [Remote host closed the connection]
irick has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 255 seconds]
alem0lars has joined #ruby
venmx has joined #ruby
amar has quit [Remote host closed the connection]
schleppel has joined #ruby
mikecmpbll has joined #ruby
jmcgnh has quit [Ping timeout: 260 seconds]
rrichard_ has quit [Quit: He who dares .... wins.]
conta has joined #ruby
za1b1tsu has joined #ruby
scrptktty_ has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Client Quit]
venmx has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
andikr has joined #ruby
akaiiro has quit [Remote host closed the connection]
reber has joined #ruby
TomyWork has joined #ruby
alfiemax has joined #ruby
jmcgnh has joined #ruby
vpenkoff has joined #ruby
za1b1tsu_ has joined #ruby
za1b1tsu has quit [Ping timeout: 276 seconds]
anikras has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lubekpl has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
evdubs has quit [Ping timeout: 265 seconds]
Dbugger has joined #ruby
guille-moe has joined #ruby
crack has joined #ruby
Beams has joined #ruby
amar has joined #ruby
wget has quit [Ping timeout: 245 seconds]
crack has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
lubekpl has quit [Quit: WeeChat 2.1]
alfiemax has quit [Ping timeout: 256 seconds]
wget has joined #ruby
wget has joined #ruby
wget has quit [Changing host]
vpenkoff has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
schneider has joined #ruby
alfiemax has joined #ruby
jraavis has joined #ruby
mikecmpbll has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
lubekpl has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
sysvalve has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
drale2k_ has joined #ruby
whiteline has quit [Remote host closed the connection]
jraavis has joined #ruby
whiteline has joined #ruby
alex`` has joined #ruby
venmx has joined #ruby
spk has quit [Quit: ZNC - http://znc.in]
spk has joined #ruby
dhollin3 has joined #ruby
jottr_ has joined #ruby
inoperable has quit [Quit: ZNC 1.7.0 - https://znc.in]
fury__ has quit []
fury has joined #ruby
dhollinger has quit [Ping timeout: 264 seconds]
pistachio has quit [Ping timeout: 240 seconds]
pistachio has joined #ruby
j416 has quit [Read error: Connection reset by peer]
j416 has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
j416_ has joined #ruby
tvw has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
j416 has quit [Ping timeout: 245 seconds]
j416- has joined #ruby
amar has quit [Remote host closed the connection]
j416- is now known as j416
amar has joined #ruby
j416_ has quit [Ping timeout: 260 seconds]
pauliesaint has quit [Ping timeout: 276 seconds]
vonfry has joined #ruby
paulsaint has joined #ruby
GodFather has quit [Remote host closed the connection]
snickers has joined #ruby
lomex has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
leitz has joined #ruby
jraavis has joined #ruby
vonfry has quit [Quit: WeeChat 2.1]
leitz has quit [Quit: Nappy time]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
amar has quit [Remote host closed the connection]
jraavis has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amar has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
za1b1tsu_ has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
whiteline_ has joined #ruby
flips has joined #ruby
whiteline has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
jottr has quit [Quit: WeeChat 2.0.1]
j416_ has joined #ruby
amar has quit [Ping timeout: 264 seconds]
jasmith has quit [Remote host closed the connection]
paulsaint has quit [Remote host closed the connection]
jasmith has joined #ruby
j416 has quit [Ping timeout: 244 seconds]
j416_ is now known as j416
karapetyan has quit [Remote host closed the connection]
GodFather has joined #ruby
jasmith has quit [Remote host closed the connection]
jasmith has joined #ruby
karapetyan has joined #ruby
jasmith has quit [Excess Flood]
jasmith has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
howdoi has quit [Quit: Connection closed for inactivity]
alem0lars has quit [Ping timeout: 255 seconds]
jasmith has quit [Ping timeout: 265 seconds]
jasmith has joined #ruby
alfiemax has quit [Remote host closed the connection]
jasmith has quit [Excess Flood]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
alex`` has quit [Ping timeout: 264 seconds]
Zaab1t has joined #ruby
apeiros has joined #ruby
petto has joined #ruby
alex`` has joined #ruby
quobo has joined #ruby
tvw has joined #ruby
schneider has joined #ruby
jraavis has joined #ruby
InfinityFye has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
devlaf has quit [Changing host]
devlaf has joined #ruby
devlaf has joined #ruby
alex`` has quit [Ping timeout: 256 seconds]
alex`` has joined #ruby
alem0lars has joined #ruby
alex`` has quit [Ping timeout: 260 seconds]
Guest45685 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest57854
mikecmpbll has quit [Ping timeout: 255 seconds]
alex`` has joined #ruby
shinnya has joined #ruby
jrafanie has joined #ruby
anisha has quit [Read error: No route to host]
za1b1tsu_ has joined #ruby
anisha has joined #ruby
milanj has joined #ruby
AJA4350 has joined #ruby
conta has quit [Quit: conta]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
milanj has quit [Quit: This computer has gone to sleep]
jraavis has joined #ruby
jraavis has quit [Client Quit]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
augcesar has joined #ruby
micutzu has quit [Quit: Leaving]
jraavis has joined #ruby
anikras has quit [Quit: Ex-Chat]
Guest49450 has joined #ruby
Guest49450 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
karapetyan has quit [Remote host closed the connection]
synthroid has joined #ruby
<Alec> So... in C++ we have this great site called cppreference.org and there's this shitty website called cplusplus.com that is a cancer you only ever click accidentally, thus keeping it high in search results. It's great because it covers syntax and it's reference material not examples followed by "but you can do this!" new examples so what you interpret is this constantly shifting conception of what it is.
mikecmpbll has joined #ruby
<Alec> Does Ruby have a decent reference? For the language especially.
schneider has quit [Ping timeout: 240 seconds]
Puppet_ has quit [Quit: Leaving]
Puppet_ has joined #ruby
synthroi_ has joined #ruby
<TheBrayn> I always use https://ruby-doc.org
<Alec> That's probably the best I've found so far TBH
synthroid has quit [Ping timeout: 248 seconds]
moei has quit [Ping timeout: 276 seconds]
yohji has joined #ruby
jtperreault has joined #ruby
milanj has joined #ruby
drale2k_ has joined #ruby
<apeiros> there's also rdoc.info which provides rendered docs for gems/github repos and generates on demand.
GodFather has quit [Ping timeout: 276 seconds]
<elomatreb> Although these are API docs mostly. They have examples usually, but it's not a coordinated overview of the language
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Quit: Leaving]
bmurt has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k_ has joined #ruby
jasmith has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
gnufied has joined #ruby
jasmith has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
pauliesaint has joined #ruby
synthroid has joined #ruby
synthroi_ has quit [Ping timeout: 268 seconds]
tycoon177_ is now known as tycoon177
jraavis has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
conta1 has joined #ruby
ayaz has joined #ruby
ayaz has quit [Changing host]
ayaz has joined #ruby
ayaz has left #ruby [#ruby]
konsolebox has quit [Max SendQ exceeded]
<Alec> Sounds like someone needs to make some
Rapture has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
quobo has quit [Quit: Connection closed for inactivity]
konsolebox has joined #ruby
quobo has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
pauliesaint has quit [Remote host closed the connection]
pauliesaint has joined #ruby
AJA4350 has joined #ruby
TinkerT has quit [Quit: ZNC 1.8.x-nightly-20180701-4d822118 - https://znc.in]
TinkerT has joined #ruby
Mike11 has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Mike11 has quit [Quit: Leaving.]
AJA4351 has joined #ruby
User458764 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
bmurt has joined #ruby
spiette has quit [Quit: ZNC 1.7.0 - https://znc.in]
jraavis has joined #ruby
jrafanie has joined #ruby
Asher has quit [Ping timeout: 245 seconds]
spiette has joined #ruby
za1b1tsu_ has quit [Ping timeout: 240 seconds]
za1b1tsu_ has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
tcurdt has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
yohji has quit [Ping timeout: 240 seconds]
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
brendan- has joined #ruby
cjohnson has joined #ruby
alem0lars has quit [Ping timeout: 255 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Inline has joined #ruby
jraavis has joined #ruby
nowhere_man has quit [Remote host closed the connection]
<tcurdt> I am looking for an (ideally) functional approach to split an array into multiple subarrays where the sum of the subarray is smaller or equal than n https://gist.github.com/tcurdt/b32af4abae8ea918f68fb958b31b7b9d
<tcurdt> ...but I am feeling a little stuck
alfiemax has joined #ruby
<tcurdt> any suggestions on how to approach this?
<konsolebox> n?
AJA4351 has joined #ruby
<tycoon177> konsolebox: N is used to indicate a number, which could be variable, i'm pretty sure.
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
<tcurdt> konsolebox tycoon177 exactly
<tcurdt> "is smaller or equal than n"
alem0lars has joined #ruby
<tycoon177> this seems like a fun little exercise. i'll give it a go
<konsolebox> tycoon177: sure, except when it's a constant factor, hence i ask
<tycoon177> my guess is they're wanting a function that would take n and the hash as args
pauliesaint has quit [Remote host closed the connection]
pauliesaint has joined #ruby
<tcurdt> tycoon177 yes
<elomatreb> Isn't this like a dynamic programming version of knapsack?
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
<tcurdt> you could think of it as a hash of bottles with v being the amount of water in the bottle
<tcurdt> you pour the bottle one by one (in order) into buckets that hold a maximum of n liters
apparition has joined #ruby
<tcurdt> and you want to have an array per bucket which bottle got in there
Dimik has joined #ruby
<tcurdt> I don't know if that abstraction helps :)
<elomatreb> Is there some criterion by which you want the bottles to be selected?
dhollin3 is now known as dhollinger
augcesar2 has joined #ruby
AJA4351 has joined #ruby
<tcurdt> let me write a quick iterative example :)
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
akaiiro has joined #ruby
augcesar2 has left #ruby [#ruby]
amar_ has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
Mrgoose has quit [Ping timeout: 245 seconds]
yohji has joined #ruby
amar_ has quit [Ping timeout: 255 seconds]
apeiros has quit []
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
Asher has joined #ruby
akaiiro has quit [Remote host closed the connection]
<konsolebox> tcurdt: but what happens when the array always end up > N? like when a number is greater than N, or when two adjacent numbers sums up as > N?
<konsolebox> that looks like fun to solve, good luck
<konsolebox> try playing with enums and take_while
za1b1tsu_ has quit [Ping timeout: 244 seconds]
akaiiro has joined #ruby
deadnull has joined #ruby
deadnull has quit [Client Quit]
<tcurdt> elomatreb konsolebox I've updated the gist with an imperative version https://gist.github.com/tcurdt/b32af4abae8ea918f68fb958b31b7b9d
aupadhye has quit [Ping timeout: 255 seconds]
Chew has quit []
<havenwood> tcurdt: src.each_with_object([]) { |a, result| result.empty? || result.last.map(&:last).flat_map(&:values).sum + a.last.values.sum > n ? result << [a] : result.last << a }.map(&:to_h)
Chew has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
whiteline_ has quit [Ping timeout: 255 seconds]
milanj has quit [Ping timeout: 276 seconds]
sylario has joined #ruby
tty has joined #ruby
Mrgoose2 has joined #ruby
biberu has quit []
<tcurdt> havenwood hm ... that doesn't seem to work for me
dviola has joined #ruby
<havenwood> tcurdt: Are you on Ruby 2.4+?
<tcurdt> havenwood running 2.3.1p112
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> >> src = {:a=>{:v=>1}, :b=>{:v=>2}, :c=>{:v=>2}, :d=>{:v=>2}}; n = 3; src.each_with_object([]) { |a, result| result.empty? || (result.last.map(&:last).flat_map(&:values) + a.last.values).reduce(:+) > n ? result << [a] : result.last << a }.map(&:to_h) # tcurdt
<ruby[bot]> havenwood: # => [{:a=>{:v=>1}, :b=>{:v=>2}}, {:c=>{:v=>2}}, {:d=>{:v=>2}}] (https://eval.in/1039225)
yohji has quit [Ping timeout: 244 seconds]
zlogan2003 has joined #ruby
Mrgoose2 has quit [Ping timeout: 260 seconds]
Mrgoose2 has joined #ruby
graphene has quit [Remote host closed the connection]
<tcurdt> havenwood odd .... maybe I misread ... maybe because the buckets are hashes not arrays ... (was my mistake in the gist)
<tcurdt> but that certainly gives me an angle to work on it
<tcurdt> cannot say I prefer it over the easy to understand imperative version yet :)
graphene has joined #ruby
InfinityFye has quit [Ping timeout: 248 seconds]
gyant has joined #ruby
<konsolebox> "<tcurdt> elomatreb konsolebox I've updated the gist with an imperative version https://gist.github.com/tcurdt/b32af4abae8ea918f68fb958b31b7b9d'" didn't resolve my questioning
<tcurdt> konsolebox not? the bottles are poured in order
<tcurdt> order given by the bottles array
andikr has quit [Remote host closed the connection]
jraavis has joined #ruby
<konsolebox> bottles = [{ id: 1, liters: 4 }, { id: 2, liters: 2 }, { id: 3, liters: 2 }, ... ]; liters_per_bucket = 3
<konsolebox> "what happens when the array always end up > N? like when a number is greater than N, or when two adjacent numbers sums up as > N?"
SeepingN has joined #ruby
za1b1tsu_ has joined #ruby
<tcurdt> ah ... I see what you mean ... what to do when e.g. the bottle with the least amount of water is still more than the bucket
AJA4351 has joined #ruby
beowuff has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
<tcurdt> adjacent numbers would not be a problem ... that would mean each bottle goes in its own bucket
schneider has joined #ruby
beowuff has quit [Client Quit]
<tcurdt> but the first point is indeed something to think about
samosaphile has joined #ruby
za1b1tsu_ has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
tdy has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
<tcurdt> to handle it I would either say still that bottle goes into a single bucket ... the other water would be spilled - there just is no bigger bucket
yohji has joined #ruby
<tcurdt> in my scenario bottles.max > bucket is very unlikely
<TomyWork> can i somehow pack/unpack a 32-bit number into a string?
<TomyWork> i have some odd error messages from some program here, where one 32 bit number says HELP when reinterpreted as ASCII
<TomyWork> i wanna read the rest of the messages :)
<tcurdt> konsolebox but those are really good points :)
apeiros_ has joined #ruby
AJA4351 has quit [Ping timeout: 244 seconds]
tcopeland has joined #ruby
tcopeland has quit [Client Quit]
conta1 has quit [Quit: conta1]
<TomyWork> %w{01001000 01000101 01001100 01010000}.map { |x| Integer("0b#{x}") }.pack('C*') # this gets me from binary bytes to a string. there has got to be some easy way to convert a fixnum into an array of bytes
<apeiros_> >> %w{01001000 01000101 01001100 01010000}.pack("B*B*B*B*") # TomyWork
<ruby[bot]> apeiros_: # => "HELP" (https://eval.in/1039291)
<apeiros_> if you control the array, you can also:
<apeiros_> >> [0b01001000, 0b01000101, 0b01001100, 0b01010000].pack("C*")
<ruby[bot]> apeiros_: # => "HELP" (https://eval.in/1039292)
apeiros_ is now known as apeiros
<TomyWork> >> 0b01001000010001010100110001010000 # well, my input is this
<TomyWork> >> 0b01001000010001010100110001010000 # well, my input is this
<ruby[bot]> TomyWork: # => 1212501072 (https://eval.in/1039293)
<apeiros> you input is one integer? you sure?
<TomyWork> yes
<apeiros> how come?
<apeiros> most languages can't deal with arbitrarily large integers… that's why I find it unlikely and inquire…
<TomyWork> i think someone is using the wrong protocol on this service. this text ends up in the size field
AJA4350 has joined #ruby
<TomyWork> it's not arbitrary, it's 32 bits
<apeiros> if it's *text* then it's not an integer. so what is it now?
<TomyWork> it's text, that ends up in an integer
<apeiros> that's not really clarifying things.
<TomyWork> basically *(int*)("HELP")
<apeiros> and that's not ruby :)
<TomyWork> correct
<mozzarella> I am ruby
<TomyWork> my question is basically how do i do the inverse of that in ruby? :)
<apeiros> when you get the value, in ruby, before you apply any processing, *what class* does the value have? and how does the .inspect look?
jottr has joined #ruby
<TomyWork> the value is not from a ruby service
<apeiros> TomyWork: you don't because ruby doesn't have pointers. so that question is pointless.
<TomyWork> i just want to use ruby as a tool to decode it
<apeiros> that's utterly irrelevant.
<samosaphile> what does .pack and .unpack actually do? and what does C* mean?
<apeiros> you're having a value in ruby.
<TomyWork> samosaphile stands for string
<apeiros> samosaphile: it's to pack and unpack binary datastructures. C* means "any number of characters"
<TomyWork> char pointer? i dont know
<konsolebox> also, ruby's integers store dynamically based on endian
aufi_ has quit [Ping timeout: 260 seconds]
<TomyWork> array*
<apeiros> anyway, /me waits for a meaningful response by TomyWork
<TomyWork> apeiros i copypaste all the values from the log file of that other service, then put them into a ruby program
<apeiros> I don't care about "that other service"
<konsolebox> TomyWork: how about using real serialization formats like msgpack
<apeiros> I care about what it is when it enters your code
rippa has joined #ruby
<apeiros> and before you apply any processing on it at that.
<TomyWork> apeiros like i said, a fixnum
troys has joined #ruby
<apeiros> so something already applied processing on it
<TomyWork> 31 significant bits, usually
<TomyWork> yes, i copypasted it from the log file
<TomyWork> that is the processing i applied
<apeiros> >> [0b01001000010001010100110001010000].pack("N")
<ruby[bot]> apeiros: # => "HELP" (https://eval.in/1039295)
<apeiros> copy pasting doesn't turn text into fixnums.
<apeiros> you're wildly incoherent :)
<TomyWork> if i copypaste a number from a logfile into a ruby program, it is a fixnum literal
<TomyWork> right?
<apeiros> o0
<apeiros> your IO is "I write code"?
<TomyWork> yes
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<TomyWork> irb
<apeiros> so it's one-off?
<TomyWork> yes
<apeiros> well, ^
<TomyWork> thanks :)
<TomyWork> >> [0b01001000010001010100110001010000].pack("V")
<ruby[bot]> TomyWork: # => "PLEH" (https://eval.in/1039296)
<TomyWork> >> "q'#{[0b01001000010001010100110001010000].pack("V")}!"
<ruby[bot]> TomyWork: # => "q'PLEH!" (https://eval.in/1039297)
avelldiroll has quit [Ping timeout: 248 seconds]
lucas_ has quit [Ping timeout: 248 seconds]
jraavis has joined #ruby
jcarl43 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucas_ has joined #ruby
apparition has quit [Quit: Bye]
milanj has joined #ruby
<TomyWork> "Packs the contents of arr into a binary sequence" - so a String is a binary sequence?
<apeiros> yes
<apeiros> ruby strings are essentially byte arrays with some meta data on top (such as "encoding")
bmurt has joined #ruby
fluxAeon has joined #ruby
<TomyWork> figures :)
GodFather has quit [Ping timeout: 276 seconds]
<TomyWork> i thought they were more abstract than that
za1b1tsu_ has joined #ruby
Puffball has joined #ruby
megamos has joined #ruby
<TomyWork> well it says "GET HELP"
beowuff has joined #ruby
<TomyWork> some garbled nonsense before that
<TomyWork> i guess the rest after it would be " I'M TRAPPED IN A PACKET FACTORY"
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
fluxAeon has quit [Client Quit]
dviola has quit [Quit: WeeChat 2.2]
clemens3 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
<apeiros> TomyWork: reminds me of fez
fluxAeon has joined #ruby
fluxAeon has quit [Client Quit]
<TomyWork> totally
<TomyWork> i played that before i had a smartphone
jraavis has joined #ruby
<TomyWork> had to find a way to decode the qr code from a screenshot
za1b1tsu_ has quit [Ping timeout: 276 seconds]
fluxAeon has joined #ruby
<TomyWork> which is a surprisingly unusual use case
jcalla has quit [Quit: Leaving]
<TomyWork> hah, some of the other stuff looks like a TLS handshake
djbkd has quit []
avelldiroll has joined #ruby
GodFather has joined #ruby
jerojasro has joined #ruby
jasmith has joined #ruby
crack has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
sysvalve has quit [Quit: Leaving]
BTRE has quit [Ping timeout: 244 seconds]
salasrod has joined #ruby
karapetyan has joined #ruby
lubekpl has quit [Ping timeout: 276 seconds]
BTRE has joined #ruby
Beams has quit [Quit: .]
Dbugger has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pauliesaint has quit [Read error: Connection reset by peer]
pauliesaint has joined #ruby
pauliesaint has quit [Max SendQ exceeded]
bmurt has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Remote host closed the connection]
bmurt has joined #ruby
pauliesaint has joined #ruby
\void has joined #ruby
AJA4350 has joined #ruby
amar_ has joined #ruby
amar_ has quit [Read error: Connection reset by peer]
cadillac_ has quit [Ping timeout: 245 seconds]
amar_ has joined #ruby
cadillac_ has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pauliesaint has quit [Remote host closed the connection]
biberu has joined #ruby
scrptktty_ has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
amar_ has quit [Ping timeout: 256 seconds]
pauliesaint has joined #ruby
GodFather has joined #ruby
Miron has quit [Quit: bye]
Miron has joined #ruby
cliluw has quit [Ping timeout: 248 seconds]
cliluw has joined #ruby
pauliesaint has quit [Remote host closed the connection]
pauliesaint has joined #ruby
jraavis has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
Dimik has quit [Ping timeout: 256 seconds]
r29v has joined #ruby
drale2k_ has joined #ruby
tff^ has joined #ruby
megamos has quit [Ping timeout: 244 seconds]
za1b1tsu_ has joined #ruby
jraavis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
sameerynho has joined #ruby
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
za1b1tsu_ has quit [Ping timeout: 276 seconds]
pauliesaint has quit [Quit: Adieu]
SeepingN has quit [Ping timeout: 240 seconds]
redlegion has quit [Max SendQ exceeded]
eckhardt_ has joined #ruby
redlegion has joined #ruby
jcalla has joined #ruby
SeepingN has joined #ruby
sauvin has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
milanj has quit [Quit: This computer has gone to sleep]
petto has quit [Remote host closed the connection]
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
schneider has quit [Quit: WeeChat 2.0.1]
mzo has joined #ruby
mensvaga has joined #ruby
<mensvaga> Let's say I have 3 parameters I want to pass to sprintf, and I want to generate '%s!%s!%s'
<mensvaga> Or, 4 parameters: '%s!%s!%s!%s'
<mensvaga> Basically, I need the string '%s' joined on '!' for the number of times
<mensvaga> I know how I'd do it by creating an array of '%s' and join on '!' , but I'm wondering if somebody has a "one-liner" to do this
alfiemax has joined #ruby
snickers has joined #ruby
guille-moe has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
milanj has joined #ruby
<mensvaga> n=3; a = []; for i in 1..n do; a.push('%s'); end; puts a.join('!')
<mensvaga> is there a shorter way to do this in ruby?
<xtsee> (['%s']*3).join('!')
<xtsee> is that what you're looking for?
<mensvaga> It parses in my head. If it works in ruby, then cool.
<mensvaga> perl has something similar; but it's the "x" operator
<mensvaga> join('!', ('%s') x 3)
<mensvaga> thanks
<mzo> but why even use sprintf at this point
<mensvaga> The example is long, but it's valid.
<mensvaga> If you have something that takes positional arguments as a string with a delimiter inside of it
<mensvaga> and you have those arguments in an associative array
<mensvaga> as well as the order of those arguments in an array
<mensvaga> Then that's ... well, it.
<mzo> huh
<mensvaga> accepted_arguments = ['a' => 1, '
<mensvaga> whoops
zleap has joined #ruby
zleap has quit [Changing host]
zleap has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 276 seconds]
<mzo> instead of sprintf((['%s']*3).join('!'), a, b, c) why not just use [a, b, c].join('!')
GodFather has joined #ruby
<mensvaga> Good question; and the answer is I have strings like this:
<mensvaga> 'check_snmp_wrapper!%s!2!%s...%s...'
<mensvaga> I suppose I could join on the values themselves
<mensvaga> But, if I've already gone so far as to abstract specific parameters away in a list, I can abstract all of them
<mensvaga> and then avoid %s entirely
<mensvaga> so, yeah.
amar_ has joined #ruby
Eiam has joined #ruby
<mensvaga> Yep. Now that I've abstracted everything I can just join on '!'
amar_ has quit [Ping timeout: 248 seconds]
graphene has quit [Read error: Connection reset by peer]
graphene has joined #ruby
yohji has quit [Remote host closed the connection]
crack has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<SeepingN> and bingo was his nameo
mzo has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
<al2o3-cr> B*I*N*G*O B*I*N*G*O B*I*N*G*O and bingo was his name o ;)
reber has quit [Read error: Connection reset by peer]
iamnix has joined #ruby
alex`` has joined #ruby
reber has joined #ruby
za1b1tsu_ has joined #ruby
milanj has quit [Quit: This computer has gone to sleep]
manakanapa has quit [Quit: The Lounge - https://thelounge.chat]
manakanapa has joined #ruby
manakanapa has quit [Client Quit]
conta1 has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
dellavg has joined #ruby
suukim has quit [Quit: Konversation terminated!]
jamesaxl has joined #ruby
venmx has quit [Ping timeout: 244 seconds]
cagomez has joined #ruby
elcuervo has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
ivanskie has joined #ruby
synthroid has joined #ruby
teej has joined #ruby
scrptktty_ has quit [Quit: Connection closed for inactivity]
GodFather has quit [Ping timeout: 276 seconds]
graphene has quit [Remote host closed the connection]
teej has quit []
graphene has joined #ruby
karapetyan has quit [Remote host closed the connection]
lomex has joined #ruby
lomex has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
GodFather has joined #ruby
lubekpl has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Yxhuvud has quit [Read error: Connection reset by peer]
salasrod has quit [Ping timeout: 240 seconds]
Yxhuvud has joined #ruby
clemens3 has joined #ruby
lomex has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
conta1 has quit [Ping timeout: 276 seconds]
GodFather has quit [Ping timeout: 276 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mike11 has joined #ruby
anisha has joined #ruby
anisha has quit [Remote host closed the connection]
amar_ has joined #ruby
nchambers is now known as uplime
chisight has joined #ruby
chisight has left #ruby ["WeeChat 2.0"]
GodFather has joined #ruby
dviola has joined #ruby
anisha has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
alfiemax has joined #ruby
drale2k_ has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
drale2k_ has quit [Client Quit]
iamnix has quit [Quit: Quit.]
darkhanb has joined #ruby
chmurifree has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
VladGh_ has quit [Read error: Connection reset by peer]
VladGh has joined #ruby
karapetyan has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jottr has quit [Quit: WeeChat 2.0.1]
<mensvaga> What's a good doc to read about creating your own gem?
<mensvaga> I'm looking at this: https://guides.rubygems.org/make-your-own-gem/
VladGh has quit [Remote host closed the connection]
<mensvaga> But it doesn't seem to reference a command that automatically generates things, like the gemspec file
<mensvaga> It does reference a source tree that I can clone and modify, though. I *could* do that.
VladGh has joined #ruby
VladGh has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 245 seconds]
gyant has quit [Ping timeout: 245 seconds]
VladGh has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
tff^ has quit []
<mensvaga> Ah. the doc says "use bundler".
alfiemax has quit [Remote host closed the connection]
lubekpl has quit [Ping timeout: 240 seconds]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
venmx has joined #ruby
moei has joined #ruby
Puffball has joined #ruby
mmattice has quit [Ping timeout: 264 seconds]
drale2k_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ellcs1 has joined #ruby
Dbugger has joined #ruby
Mike11 has quit [Quit: Leaving.]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
clemens3 has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 276 seconds]
SCHAPiE has quit [Ping timeout: 268 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
SCHAPiE has joined #ruby
megamos has quit [Ping timeout: 240 seconds]
synthroid has quit []
<baweaver> mensvaga: `bundle gem <name>`
elcuervo has quit [Remote host closed the connection]
schleppel has quit [Quit: Konversation terminated!]
anisha has quit [Quit: This computer has gone to sleep]
clemens3 has joined #ruby
k0mpa has quit [Remote host closed the connection]
biberu has quit []
nicht has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
alem0lars has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tff^ has joined #ruby
jerojasro has left #ruby ["WeeChat 1.6"]
fluxAeon has quit [Quit: Textual IRC Client: www.textualapp.com]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
venmx has quit [Ping timeout: 240 seconds]
megamos has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 264 seconds]
za1b1tsu_ has quit [Ping timeout: 276 seconds]
tvw has quit []
venmx has joined #ruby
carsonbaker[m] has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
amar_ has quit [Remote host closed the connection]
fluxAeon has joined #ruby
jrafanie has quit [Ping timeout: 256 seconds]
jasmith has quit [Quit: Leaving]
Guest57854 has quit [Read error: Connection reset by peer]
FernandoBasso has joined #ruby
alem0lars has quit [Ping timeout: 255 seconds]
Nicmavr has joined #ruby
Nicmavr is now known as Guest81152
catsed has joined #ruby
cats has quit [Quit: Hey, what's that button do?]
catsed is now known as cats
<al2o3-cr> >> [:foo.public_send(:send, :eval, "1 if true"), ($SAFE = 1; :foo.public_send(:send, :eval, "1 if true"))]
<ruby[bot]> al2o3-cr: # => [1, 1] (https://eval.in/1039476)
graphene has quit [Remote host closed the connection]
<al2o3-cr> >> :foo.public_send(:send, :eval, "1 if true")
<ruby[bot]> al2o3-cr: # => 1 (https://eval.in/1039477)
<al2o3-cr> >> $SAFE = 1; :foo.public_send(:send, :eval, "1 if true")
<ruby[bot]> al2o3-cr: # => 1 (https://eval.in/1039478)
<al2o3-cr> >> $SAFE = 2; :foo.public_send(:send, :eval, "1 if true")
<ruby[bot]> al2o3-cr: # => $SAFE=2 to 4 are obsolete (ArgumentError) ...check link for more (https://eval.in/1039479)
graphene has joined #ruby
za1b1tsu_ has joined #ruby
<al2o3-cr> hmm ;(
<baweaver> ???
<al2o3-cr> this scares me!
<baweaver> Side-loading eval through send?
<baweaver> It's certainly clever.
hanmac has joined #ruby
<al2o3-cr> this is a major issue.
<baweaver> clever enough that now I'm looking through any of my code for vulns
dshep has joined #ruby
za1b1tsu_ has quit [Ping timeout: 255 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
<al2o3-cr> wow, this is DANGEROUS.
cats has quit [Quit: Hey, what's that button do?]
milanj has joined #ruby
jxweng has joined #ruby
cats has joined #ruby
jxweng has quit [Client Quit]
graphene has quit [Remote host closed the connection]
<konsolebox> i hope you're being sarcastic
j416 has quit [Ping timeout: 276 seconds]
graphene has joined #ruby
<al2o3-cr> konsolebox: not in the slightest.
alfiemax has joined #ruby
j416 has joined #ruby
cats has quit [Quit: Hey, what's that button do?]
<konsolebox> seriously
FernandoBasso has quit [Read error: Connection reset by peer]
reber has quit [Remote host closed the connection]
<al2o3-cr> OMG this is crazy!
FernandoBasso has joined #ruby
<baweaver> zenspider: Doesn't brakeman catch that?
<konsolebox> al2o3-cr: and now you switch to legitimate sarcasm mode
cats has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
fmcgeough has joined #ruby
psychicist__ has quit [Ping timeout: 276 seconds]
InfinityFye has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
<al2o3-cr> HOLY SHIT.
megamos has quit [Ping timeout: 240 seconds]
venmx has quit [Ping timeout: 255 seconds]
salasrod has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<al2o3-cr> konsolebox: [:foo.public_send(:send, :eval, `whoami`), ($SAFE = 1; :foo.public_send(:send, :eval, `whoami`))] # run this
sameerynho has quit [Ping timeout: 245 seconds]
<al2o3-cr> or any command for that matter.
<al2o3-cr> don't forget to double quote the backticks.
white_lilies has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
<al2o3-cr> konsolebox: tell me how this is not a security flaw?
<konsolebox> i really don't see how that is a security flaw. maybe it is if you allow public_send(:send, user_input_1, etc)
<konsolebox> and the only one to blame is the programmer
augcesar has quit [Quit: Connection closed for inactivity]
<al2o3-cr> konsolebox: of course user input, still besides the point.
shinnya has joined #ruby
<konsolebox> why? you can always use eval anywhere
<konsolebox> allowing user input as an argument to :send is ...
<al2o3-cr> ffs.
<al2o3-cr> public_send.
<konsolebox> and i'm talking about unsanitized input at least
<konsolebox> al2o3-cr: what about public_send? why would you allow public_send to send :send anyway?
<al2o3-cr> well, this shouldn't be possible
scrptktty_ has joined #ruby
mzo has joined #ruby
<elomatreb> Why shouldn't it? send is a public method, after all
<al2o3-cr> public_send is private && send is public go figure.
<elomatreb> public_send isn't private?
<al2o3-cr> oh my friend it is.
alex`` has quit [Ping timeout: 240 seconds]
<elomatreb> >> "it's not".public_send :length
<ruby[bot]> elomatreb: # => 8 (https://eval.in/1039483)
<al2o3-cr> wtf
<konsolebox> regardless of how you use 'send' or any type of :send method, this what you call vulnerability is only effective if you allow allow an unfiltered user-supplied factor to define the method, regardless of the recursion.
<lupine> yes, because it's trivial to trace all possible sources of user input
FernandoBasso has quit [Ping timeout: 255 seconds]
FernandoBasso has joined #ruby
<elomatreb> Which probably isn't entirely uncommon, it's a convenient pattern e.g. for implementing a command-like system
<al2o3-cr> >> Object.public_method(:public_send) # elomatreb yep derp.
<ruby[bot]> al2o3-cr: # => #<Method: Class(Kernel)#public_send> (https://eval.in/1039484)
jrafanie has joined #ruby
<konsolebox> lupine: i'm unable to imagine a case where that can be relevant
<lupine> don't worry, I'm imagining it hard enough for both of us
<konsolebox> lupine: sure, feel free to give a legitimate example when you do
kapil___ has joined #ruby
<al2o3-cr> i'm gonna release DumbAndDumber3 gem.
<konsolebox> i'm 99% sure it would just sum up to bad design of the shared function, or the application itself, because "abstraction"
za1b1tsu_ has joined #ruby
<konsolebox> "high level abstractionz my friend"
<al2o3-cr> but i'll name it dd3
<al2o3-cr> >> Object.public_method(:puts)
<ruby[bot]> al2o3-cr: # => method `puts' for class `#<Class:Object>' is private (NameError) ...check link for more (https://eval.in/1039485)
jrafanie has quit [Client Quit]
<al2o3-cr> elomatreb: apologies, both are public otherwise it wouldn't tally.
FernandoBasso has quit [Ping timeout: 260 seconds]
<baweaver> Brakeman++
za1b1tsu_ has quit [Ping timeout: 245 seconds]
<zenspider> help my old memory... is it OpenStruct that bleeds out? or... um. that other one? Idon't use either anymore
<baweaver> Yeah, havenwood mentioned OpenStruct polluted something
<baweaver> I think method cache
mynameisdebian has joined #ruby
<havenwood> zenspider: yup, creating OpenStructs breaks the method cache when it defines dynamic accessor methods
<zenspider> yeah. that too. I thought one of them was plonking off classes left and right as well
mynameisdebian has quit [Remote host closed the connection]
<zenspider> yeah. I just found that too
mynameisdebian has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k_ has joined #ruby
beowuff has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Dbugger has quit [Quit: Leaving]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jrafanie has joined #ruby
houhoulis has joined #ruby
Flonk has quit [Ping timeout: 268 seconds]