havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
carella has joined #ruby
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has joined #ruby
<shadows> smathy: I ended up with this and I'm 60% happy with it https://gist.github.com/eshattow/21d3e25b5cf0e27b6734af34f16176c4
<shadows> smathy: ruby code, input, output
Rasi has joined #ruby
Es0teric has joined #ruby
cjbottaro has joined #ruby
carella_ has quit [Ping timeout: 260 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
Regulati_ has quit [Remote host closed the connection]
johnmilton has joined #ruby
biberu has quit []
<shadows> smathy: I wish it was a 1-liner though
n008f4g_ has quit [Ping timeout: 240 seconds]
<smathy> shadows, yeah, sometimes code is messy.
<smathy> ...just hide it away in some method.
hanmac has quit [Ping timeout: 250 seconds]
cpup has quit [Ping timeout: 276 seconds]
hanmac has joined #ruby
moeabdol has joined #ruby
idefine_ has quit [Remote host closed the connection]
cpup has joined #ruby
ruid has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
saneax is now known as saneax_AFK
nettoweb has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
xcesariox has joined #ruby
BSaboia has quit [Ping timeout: 246 seconds]
doublemalt_ has joined #ruby
Lomex has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 244 seconds]
devbug has quit [Quit: ZZZzzz…]
swills has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
whathappens has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
banister has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
whathappens has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
goldfax has joined #ruby
weemsledeux has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
bronson has joined #ruby
FooMunki has quit [Quit: FooMunki]
ur5us has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
whathappens has joined #ruby
FooMunki has joined #ruby
FooMunki has quit [Client Quit]
whathappens has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
bronson has quit [Ping timeout: 252 seconds]
Guest36175 has joined #ruby
nrd_pxs has quit [Quit: leaving]
whathappens has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
Moosashi has quit [Quit: Moosashi]
Azure has quit [Ping timeout: 276 seconds]
bluOxigen_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
whathapp_ has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 244 seconds]
Moosashi has joined #ruby
Moosashi has quit [Client Quit]
sneakerhax has quit [Ping timeout: 260 seconds]
northrup has joined #ruby
ta_ has joined #ruby
djbkd has quit [Quit: My people need me...]
Guest36175 has quit [Quit: Visita la web: http://los-mafia-del-irc.jimdo.com/descargas/]
IvanSuftin has quit [Ping timeout: 276 seconds]
IvanSuftin has joined #ruby
saneax_AFK is now known as saneax
marr has quit [Ping timeout: 276 seconds]
Hobbyboy has quit [Ping timeout: 264 seconds]
shadeslayer has quit [Remote host closed the connection]
nando293921 has joined #ruby
heftig has quit [Remote host closed the connection]
valeri_ufo has quit [Ping timeout: 240 seconds]
phrozen77 has quit [Ping timeout: 264 seconds]
kalleth has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
kalleth has joined #ruby
cb has quit [Ping timeout: 244 seconds]
contradictioned has quit [Read error: Connection reset by peer]
ohcibi has quit [Ping timeout: 264 seconds]
ohcibi_ has joined #ruby
contradictioned has joined #ruby
heftig has joined #ruby
Guest53755 has quit [Ping timeout: 276 seconds]
diegoviola is now known as dviola
shadeslayer has joined #ruby
Guest53755 has joined #ruby
cb has joined #ruby
FooMunki has joined #ruby
Hobbyboy|BNC has joined #ruby
valeri_ufo has joined #ruby
flashpoint9 has joined #ruby
phrozen77 has joined #ruby
aef has quit [Remote host closed the connection]
aef has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
ruby-lang969 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
poorya has joined #ruby
bazzy has quit [Remote host closed the connection]
ruby-lang969 has quit [Ping timeout: 250 seconds]
<poorya> hi
n_blownapart has joined #ruby
poorya has quit [Client Quit]
johnmilton has quit [Remote host closed the connection]
panpainter has joined #ruby
blaxter has quit [Quit: KTHXBYE]
RegulationD has joined #ruby
zacstewart has joined #ruby
n_blownapart has quit [Ping timeout: 240 seconds]
ta_ has quit [Read error: Connection reset by peer]
ropeney has joined #ruby
Dimik has joined #ruby
goldfax has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
LastWhisper____ has joined #ruby
ta_ has joined #ruby
cdg has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
panpainter has quit [Ping timeout: 265 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
Asher has quit [Quit: Leaving.]
cdg has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
ixti has quit [Quit: WeeChat 1.5]
dviola has quit [Quit: WeeChat 1.5]
pawnbox has quit [Ping timeout: 244 seconds]
Asher has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
jmarinelli has quit [Ping timeout: 246 seconds]
agentmeerkat has quit [Quit: Lost terminal]
FooMunki has quit [Quit: FooMunki]
patrick_star_2 has joined #ruby
FooMunki has joined #ruby
erlang_ebanat has quit [Ping timeout: 260 seconds]
OhReally has quit [Remote host closed the connection]
jmarinelli has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
phpwebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edv4rd0 has joined #ruby
zacstewart has joined #ruby
ledestin has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ta_ has joined #ruby
Hobbyboy|BNC is now known as Hobbyboy
FooMunki has quit [Quit: FooMunki]
cd83x_ has joined #ruby
whathapp_ has quit [Remote host closed the connection]
whathappens has joined #ruby
Karunamon has quit [Ping timeout: 240 seconds]
Karunamon has joined #ruby
whathapp_ has joined #ruby
whathapp_ has quit [Remote host closed the connection]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
chipotle has quit [Ping timeout: 250 seconds]
bazz_ has joined #ruby
cd83x_ has quit []
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 276 seconds]
dikaio has joined #ruby
cd83x_ has joined #ruby
banister is now known as banisterfiend
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
chipotle has joined #ruby
rbennacer has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
skade has quit [Ping timeout: 244 seconds]
justin_pdx has joined #ruby
moeabdol has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has joined #ruby
rbennacer has joined #ruby
kobain has joined #ruby
nanoz has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
edv4rd0_ has joined #ruby
edv4rd0 has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 252 seconds]
devbug has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
cd83x_ has quit [Remote host closed the connection]
ta_ has joined #ruby
jmarinelli has quit [Ping timeout: 260 seconds]
neanderslob has joined #ruby
LoneHerm_ has joined #ruby
devbug has quit [Ping timeout: 276 seconds]
saneax is now known as saneax_AFK
pawnbox has joined #ruby
JoshGlzBrk has joined #ruby
Caerus|Away has quit [Ping timeout: 276 seconds]
hahuang61 has joined #ruby
perlgod has joined #ruby
hahuang61 has quit [Client Quit]
nando293921 has quit [Quit: Lost terminal]
pawnbox has quit [Ping timeout: 250 seconds]
nando293921 has joined #ruby
bronson has joined #ruby
Caerus|Away has joined #ruby
<zacts> lo
bronson has quit [Ping timeout: 252 seconds]
nano- has quit [Ping timeout: 260 seconds]
<havenwood> >> require 'prime'; 1.step.lazy.select { |n| (8 * n).pred.prime? }.first(38).last(2).map(&:chr).join
perlgod has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby[bot]> havenwood: # => "lo" (https://eval.in/566433)
tjohnson has quit [Quit: Connection closed for inactivity]
skade has quit [Quit: Computer has gone to sleep.]
nano- has joined #ruby
kfpratt has quit [Remote host closed the connection]
perlgod has joined #ruby
kfpratt has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
zacstewart has joined #ruby
_kfpratt has joined #ruby
statelesscode has joined #ruby
kfpratt_ has joined #ruby
GriffinHeart has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nanoz has quit [Changing host]
nanoz has joined #ruby
kfpratt__ has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
ensyde__ has joined #ruby
kfprat___ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
kfpra____ has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
d0nn1e has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
_kfpratt has joined #ruby
kfpratt_ has joined #ruby
kfpratt__ has quit [Ping timeout: 276 seconds]
kfprat___ has quit [Ping timeout: 244 seconds]
kfpratt has quit [Ping timeout: 276 seconds]
kfpra____ has quit [Ping timeout: 276 seconds]
_kfpratt has quit [Ping timeout: 276 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
lkba has joined #ruby
kfpratt has joined #ruby
<shadows> want to stabby stab ruby for variable scoping in conditional statement
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shadows> m = hex.join(" ").split; m[4..9] = ["__", "__", "__", "__", "__", "__"] if flip == true
_kfpratt has joined #ruby
<shadows> never works.
<shadows> the m with the conditional is scoped differently
kfpratt__ has joined #ruby
colegatron has quit [Ping timeout: 252 seconds]
kfprat___ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #ruby
kfpratt_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
kfpratt has quit [Ping timeout: 276 seconds]
justin_pdx has quit [Quit: justin_pdx]
robbyoconnor has joined #ruby
kfpratt has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #ruby
kfpratt__ has quit [Ping timeout: 276 seconds]
colegatron has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
<shadows> it's deeper than what I said
<shadows> it has to do with tricking ruby into using a scoped variable outside of its scope
kfprat___ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #ruby
<bougyman> what's the hip way to throw out a repl to a running ruby app these days?
kfpra____ has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
kfprat___ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
braincrash has quit [Quit: bye bye]
kfpratt_ has joined #ruby
<shadows> seriously
rehat has joined #ruby
kfpratt has quit [Ping timeout: 276 seconds]
<havenwood> bougyman: Sounds like pry-remote if I'm understanding.
kfpratt has joined #ruby
<shadows> shouldn't array[range] = array[1,2,3,4] work inside a conditional?
<havenwood> Though not new enough to be hip?
Devalo has quit [Ping timeout: 250 seconds]
<shadows> if not, why the heck not
<bougyman> havenwood: sounds right, I've used that before.
<bougyman> just didn't know if there was anything new.
_kfpratt has quit [Ping timeout: 250 seconds]
<havenwood> bougyman: not that i know of
_kfpratt has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Pry via DRb ftw.
ramfjord has joined #ruby
JoshGlzBrk has joined #ruby
kfpra____ has joined #ruby
* shadows stabs things
kfpratt__ has quit [Ping timeout: 276 seconds]
<havenwood> shadows: Are you wanting to check equality? Twoquals style?
<havenwood> shadows: ==
shazaum__ has joined #ruby
<havenwood> shadows: Or do you mean to assign?
shazaum__ has quit [Remote host closed the connection]
kfpratt__ has joined #ruby
ta_ has joined #ruby
<havenwood> Assuming you don't.
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
braincrash has joined #ruby
<shadows> havenwood: trying to modify part of an array
<shadows> only do it conditionally
kfpratt_ has joined #ruby
<shadows> I process things line-by-line it goes in an array and every other line I want to set part of the array
<shadows> the statement works until I nest it in the conditional
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #ruby
kfpra____ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #ruby
kfpratt__ has quit [Ping timeout: 276 seconds]
yqt has quit [Ping timeout: 260 seconds]
kfpratt__ has joined #ruby
SilverKey has joined #ruby
justin_pdx has joined #ruby
Channel6 has joined #ruby
sneakerhax has joined #ruby
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #ruby
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #ruby
mrgrieves has quit [Ping timeout: 240 seconds]
kfpra____ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #ruby
kfpratt__ has quit [Ping timeout: 276 seconds]
eljimmy has joined #ruby
G has quit [Quit: leaving]
kfpratt__ has joined #ruby
kfprat___ has quit [Ping timeout: 276 seconds]
gix has quit [Ping timeout: 252 seconds]
kfprat___ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #ruby
<shadows> havenwood: ruby bug I think.
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_kfpratt has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
azor has joined #ruby
kfpra____ has quit [Ping timeout: 276 seconds]
kfpra____ has joined #ruby
kfpratt__ has quit [Ping timeout: 276 seconds]
bruno- has quit [Read error: Connection reset by peer]
kfpratt__ has joined #ruby
cdg has joined #ruby
gix has joined #ruby
kfprat___ has quit [Ping timeout: 276 seconds]
<shadows> convinced is ruby bug. dammit
kfprat___ has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt_ has quit [Ping timeout: 276 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
kfpratt_ has joined #ruby
kfpratt has quit [Ping timeout: 276 seconds]
nanoyak has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
kfpratt has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
kfpratt__ has quit [Ping timeout: 250 seconds]
kfpra____ has quit [Ping timeout: 276 seconds]
_kfpratt has joined #ruby
<shadows> print is accessing stale variables
<shadows> mindnumbingly frustrating here :(
kfpratt__ has joined #ruby
bruno- has joined #ruby
<shadows> fuck it, writing in python ugh
kfprat___ has quit [Ping timeout: 276 seconds]
kfprat___ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #ruby
smathy is now known as smathy_afk
ta_ has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
tmtwd has quit [Ping timeout: 260 seconds]
kfpra____ has joined #ruby
kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has quit [Ping timeout: 250 seconds]
kfpratt has joined #ruby
kfpratt__ has quit [Ping timeout: 276 seconds]
zotherstupidguy has joined #ruby
_kfpratt has joined #ruby
moeabdol has joined #ruby
G has joined #ruby
kfprat___ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
kfpratt_ has joined #ruby
kfpra____ has quit [Ping timeout: 276 seconds]
bruno- has quit [Read error: Connection reset by peer]
d0lph1n98 has joined #ruby
kfprat___ has joined #ruby
cdg has quit [Remote host closed the connection]
kfpra____ has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
_kfpratt has joined #ruby
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #ruby
SparkMasterTape has quit [Quit: I quit.]
kfpratt_ has quit [Ping timeout: 276 seconds]
SparkMasterTape has joined #ruby
kfpratt_ has joined #ruby
kfprat___ has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby
kfprat___ has joined #ruby
kfpra____ has quit [Ping timeout: 276 seconds]
Moosashi has joined #ruby
arescorpio has joined #ruby
kfpra____ has joined #ruby
kfpratt has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
_kfpratt has quit [Ping timeout: 276 seconds]
_kfpratt has joined #ruby
rbennacer has quit [Remote host closed the connection]
kfpratt__ has quit [Ping timeout: 276 seconds]
kfpratt__ has joined #ruby
kfpratt_ has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
b|ackwolf has joined #ruby
kfprat___ has quit [Ping timeout: 276 seconds]
terminal_ has joined #ruby
rbennacer has joined #ruby
kfpra____ has quit [Ping timeout: 276 seconds]
kfpratt has quit [Ping timeout: 276 seconds]
Channel6 has quit [Quit: Leaving]
_kfpratt has quit [Ping timeout: 276 seconds]
terminal_ has quit [Client Quit]
kfpratt__ has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
torandu has quit [Ping timeout: 246 seconds]
torandu has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
xcesariox has quit [Remote host closed the connection]
nanoz has quit [Read error: Connection reset by peer]
xcesariox has joined #ruby
jaguarmagenta has joined #ruby
Channel6 has joined #ruby
nettoweb has joined #ruby
cdg has joined #ruby
tmtwd has joined #ruby
solocshaw has quit [Ping timeout: 276 seconds]
amclain has quit [Quit: Leaving]
freerobby has joined #ruby
cd83x_ has joined #ruby
kareeoleez has joined #ruby
phpwebdev has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has quit [Read error: Connection reset by peer]
terminal_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
ta_ has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
pawnbox has joined #ruby
terminal_ has quit [Client Quit]
jaguarmagenta has quit [Remote host closed the connection]
phpwebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
ta_ has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
ledestin has joined #ruby
drewo has joined #ruby
drewo has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
d0lph1n98 has quit [Ping timeout: 276 seconds]
Blaguvest has joined #ruby
rbennacer has quit [Remote host closed the connection]
binaryplease1 has joined #ruby
bronson has joined #ruby
perlgod has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
dikaio has joined #ruby
binaryplease has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
ramfjord has joined #ruby
idefine_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax_AFK is now known as saneax
n_blowna_ has joined #ruby
duncannz has joined #ruby
panpainter has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
Moosashi has quit [Quit: Moosashi]
binaryplease1 is now known as binaryplease
idefine_ has quit [Ping timeout: 276 seconds]
n_blowna_ has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
kfpratt has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
edv4rd0_ has quit [Read error: Connection reset by peer]
eljimmy has quit [Quit: This computer has gone to sleep]
terminal_ has joined #ruby
cd83x_ has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 260 seconds]
ta_ has quit [Read error: Connection reset by peer]
panpainter has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
chipotle has joined #ruby
jaguarmagenta has joined #ruby
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
aufi has joined #ruby
saneax is now known as saneax_AFK
y2mq37 has joined #ruby
grenierm has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
cgfbee has quit [Quit: cgfbee]
fedexo has joined #ruby
chouhoulis has quit [Remote host closed the connection]
sauvin has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
dikaio has joined #ruby
zacts has joined #ruby
<bazz_> if I include a module with "self" methods .. how can I invoke them... self.method doesn't seem to work
<bazz_> self.class.method?
<bazz_> self.module.?
<Arcaire> Why did you make them class methods if you've immediately put yourself in this scenario?
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
<Radar> bazz_: Why did you define them as self methods?
yfeldblum has joined #ruby
<Arcaire> bazz_: self.class.whatever would work from an instance (non "self") method within the class. variable.class.whatever would work if you're calling it that way.
<Arcaire> But I feel like you're misusing class methods if you're doing this.
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DevastatingDave has quit [Ping timeout: 265 seconds]
saneax_AFK is now known as saneax
dikaio has joined #ruby
DevastatingDave has joined #ruby
<bazz_> I'm abstracting some functions ... I am keeping track of highscores independent of their backend implementation .. in this case, I have a Redis module (the one in question) who is covering some API functions ... in the module is a "module variable" which is the redis client handle ... since these are "library calls" I don't want them to be instance methods ... but maybe I did it the wrong way?
<bazz_> my code is completely open source so we can take a closer look if need be ..
<Radar> bazz_: Code is best explained with itself, rather than words. You should start by showing us the code, then discussing it.
LoneHerm_ has joined #ruby
<bazz_> Radar, I'm going to warn you.. there's a "double abstraction" that kind of pisses me off in the code .. I decided to abstract "Score" too .. so just be prepared for this double abstraction which is probably confusing and needless
<Radar> bazz_: I used to review code for a living. You cannot shock me.
<bazz_> and you might garner a bunch of feedback based on the fact this is my first Ruby project .. and first time coding Ruby since 2008 ...
<Radar> Only 0x0dea can shock me these days.
<bazz_> haha
<bazz_> and why's that
<Radar> he writes Ruby that looks like Perl barfed into a restaurant's sink after their busiest night.
smathy_afk is now known as smathy
<Arcaire> 0x spends a lot of time performing "extreme code golf".
<Radar> *and it works*
<bazz_> arg.. I'm refactoring the code in my head before I send it to you
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Devalo has joined #ruby
Bloomer has joined #ruby
<bazz_> start here -- redis.rb you can think of as Redis helper function .. a library that is developed on a needs basis .. but only 1 function actually deviates from the native call ... scores.rb shows an interface along with a Redis backend implementation which uses the redis helpers
LoneHerm_ has quit [Ping timeout: 252 seconds]
panpainter has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
bruno- has joined #ruby
<bazz_> OK so CONTEXT -- this is an IRC bot with a plugins system .. I am mostly monkeypatching for a nice plugin system
<bazz_> https://github.com/bazzinotti/ayumi/tree/master/lib/cinch/plugins/utils -- check out highscores and highscores_backend
Bloomer has quit [Read error: Connection reset by peer]
Bloomer has joined #ruby
<bazz_> these will rely on the Scores API (not to be confused with highscores)
<bazz_> https://github.com/bazzinotti/ayumi/blob/master/lib/cinch/plugins/utils/highscores.rb -- see here I `include Redis` basically here I am saying I want Redis as a backend for my highscores .. | and of course in the future I will want to be able to specify my backend in one place
CloCkWeRX has quit [Ping timeout: 276 seconds]
<bazz_> I am trying to create this Highscores code to be re-usable from any plugin definition .. (it works .. of course I am only showing you the code based on your questioning of why I am using self methods and whether it's the right approach)
elifoster has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Remote host closed the connection]
howdoi has joined #ruby
haxrbyte has joined #ruby
<bazz_> there is some module magic for the highscores in `self.included` to add certain things to the plugin that includes it .. typically adding a highscores subcommand for the IRC bot
ensyde__ has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
kareeoleez has quit [Remote host closed the connection]
<bazz_> P.S. I am already planning on re-implementing the Highscores via composition rather than inheritance .. I think it would be cleaner ... but that's not directly related to our discussion
panpainter has quit [Ping timeout: 276 seconds]
brianpWins has quit [Quit: brianpWins]
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 276 seconds]
dikaio has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
justin_pdx has quit [Quit: justin_pdx]
brianpWins has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
ensyde__ has joined #ruby
CloCkWeRX has joined #ruby
<bazz_> I am starting to see points of improvement -- there's no point including these functions (library) into the plugin to begin with .. I probably would like them all called to static class with all class methods for this kind of thing
n_blownapart has joined #ruby
<bazz_> well actually ..
<bazz_> :| I need more time to truly understand it all
htmldrum has quit [Ping timeout: 250 seconds]
tax has quit [Read error: Connection reset by peer]
ensyde__ has quit [Ping timeout: 246 seconds]
tax has joined #ruby
kfpratt has quit []
n_blownapart has quit [Ping timeout: 265 seconds]
jaguarmagenta has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
Sammichmaker has joined #ruby
<bazz_> Radar, what's your status?
chipotle has joined #ruby
the_drow has joined #ruby
raeoks has joined #ruby
<bazz_> I am heading to bed .. I'll idle here but it's likely I'll miss your response .. I'll ping you tomorrow about it. I can sense a large pontential for a improved design
<Radar> bazz_: working
<Radar> I don't have time to look at all that code.
n_blownapart has joined #ruby
hanmac has quit [Ping timeout: 276 seconds]
<bazz_> Radar, it's nothing I can't handle.
hanmac has joined #ruby
arescorpio has quit [Quit: Leaving.]
CloCkWeRX has quit [Ping timeout: 260 seconds]
n_blownapart has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
n_blownapart has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
ta_ has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Client Quit]
the_drow has joined #ruby
kareeoleez has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Madplatypus has joined #ruby
kareeoleez has joined #ruby
n_blownapart has quit [Ping timeout: 276 seconds]
brianpWins_ has joined #ruby
ta_ has joined #ruby
trollface is now known as Paradox
brianpWins has quit [Ping timeout: 252 seconds]
brianpWins_ is now known as brianpWins
LoneHermit has joined #ruby
ramfjord has joined #ruby
Devalo has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
tvw has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
firstdayonthejob has joined #ruby
bruno- has joined #ruby
rumia has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.4]
kp666 has quit [Read error: Connection reset by peer]
lsmola has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
pawnbox has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
the_drow has joined #ruby
[dmp] has quit [Quit: WeeChat 1.3]
Ishido has joined #ruby
bronson has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
[dmp] has joined #ruby
arup_r has joined #ruby
janebootydoe has joined #ruby
cliff has joined #ruby
pLaToOn has joined #ruby
<cliff> hi
<baweaver> cliff: hi
fedexo has quit [Ping timeout: 276 seconds]
Moosashi has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
statelesscode has quit [Quit: statelesscode]
the_drow has quit [Read error: Connection reset by peer]
nando293921 has quit [Quit: Lost terminal]
firstdayonthejob has quit [Ping timeout: 276 seconds]
nando293921 has joined #ruby
djbkd has quit []
Moosashi has quit [Quit: Moosashi]
pawnbox has quit [Remote host closed the connection]
<pLaToOn> moin
pawnbox has joined #ruby
the_drow has joined #ruby
zacstewart has joined #ruby
scepticulous has joined #ruby
ravishankarjha has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
sameerynho has joined #ruby
n_blownapart has joined #ruby
scepticulous has quit [Read error: Connection reset by peer]
scepticulous has joined #ruby
<zacts> moin
elaptics`away is now known as elaptics
n_blownapart has quit [Ping timeout: 252 seconds]
devbug has joined #ruby
the_drow has quit [Ping timeout: 260 seconds]
xcesariox has quit [Read error: Connection reset by peer]
cliff has quit [Remote host closed the connection]
lubekpl has joined #ruby
the_drow has joined #ruby
tmtwd has joined #ruby
dudepare has quit [Quit: Leaving]
johnbat26 has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
arup_r has quit [Remote host closed the connection]
akem has joined #ruby
janebootydoe has quit [Quit: Leaving]
lessless has joined #ruby
<lessless> Hey peeps, how to get parent process's application name?
<lessless> or how to resolve app name by pid?
ramfjord has joined #ruby
saneax is now known as saneax_AFK
devbug has joined #ruby
xcesariox has joined #ruby
<grenierm> lessless: +1
moshee has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<lessless> I think it boils down to get a cmdline by parent pid
chipotle has quit [Quit: cheerio]
saneax_AFK is now known as saneax
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
the_drow has joined #ruby
n_blownapart has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
DevastatingDave has quit [Ping timeout: 246 seconds]
n_blownapart has quit [Ping timeout: 252 seconds]
toretore has joined #ruby
<adaedra> Hello
n_blownapart has joined #ruby
vondruch has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Read error: Connection reset by peer]
terlar has joined #ruby
norc has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has quit [Ping timeout: 252 seconds]
<al2o3-cr> lessless: how do you mean?
<lessless> al2o3-cr regarding what?
<al2o3-cr> lessless: your question
<lessless> getting a process cmdline by it's pid?
<lessless> *its
roadt__ has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
tagaulap has joined #ruby
TvL2386 has joined #ruby
n_blownapart has joined #ruby
znz_jp has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby
jaruga___ has joined #ruby
anisha has joined #ruby
Bloomer has quit []
tmtwd has quit [Ping timeout: 246 seconds]
<adaedra> lessless: under Linux, you can read /proc/$PPID/cmdline
johnbat26 has quit [Read error: Connection reset by peer]
devbug has quit [Quit: ZZZzzz…]
Ispira has quit [Quit: Connection closed for inactivity]
saneax is now known as saneax_AFK
panpainter has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
devbug has joined #ruby
ravishankarjha has joined #ruby
<lessless> adaedra, right it seems that there is no portable solution in the stdlib
Gasher has joined #ruby
Devalo has joined #ruby
zenspider has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
<adaedra> there may be a gem to do that but I'm not aware of any.
panpainter has quit [Ping timeout: 252 seconds]
charliesome has quit [Client Quit]
symm- has quit [Ping timeout: 260 seconds]
Gasher^ has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
the_drow has quit [Read error: Connection reset by peer]
haxrbyte_ has joined #ruby
clifford_ has joined #ruby
saneax_AFK is now known as saneax
dikaio has joined #ruby
Gasher has quit [Ping timeout: 276 seconds]
y2mq37 has quit [Ping timeout: 250 seconds]
Kero has quit [Ping timeout: 276 seconds]
Kero has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
cbetta__ has joined #ruby
clifford_ has quit [Ping timeout: 276 seconds]
zipkid has quit [Read error: Connection reset by peer]
bestie has quit [Read error: Connection reset by peer]
podman has quit [Ping timeout: 244 seconds]
cbetta_ has quit [Ping timeout: 244 seconds]
cbetta__ is now known as cbetta_
bestie has joined #ruby
zipkid has joined #ruby
biberu has joined #ruby
podman has joined #ruby
frode15243_ has joined #ruby
daxroc_ has joined #ruby
LoneHermit has joined #ruby
daxroc has quit [Ping timeout: 264 seconds]
daxroc_ is now known as daxroc
frode15243 has quit [Ping timeout: 264 seconds]
frode15243_ is now known as frode15243
vcoinminer has joined #ruby
b|ackwolf has quit [Remote host closed the connection]
twodayslate_ has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
jabreity__ has joined #ruby
tesuji has joined #ruby
LoneHermit has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
jabreity_ has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
twodayslate has quit [Ping timeout: 244 seconds]
twodayslate_ is now known as twodayslate
howdoi has quit [Quit: Connection closed for inactivity]
azor has quit [Ping timeout: 276 seconds]
skade has joined #ruby
i12345678 has joined #ruby
marr has joined #ruby
troulouliou_div2 has joined #ruby
mikecmpbll has joined #ruby
n_blownapart has joined #ruby
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
htmldrum has joined #ruby
skade has quit [Client Quit]
DoubleMalt has joined #ruby
carella has quit []
bruno- has joined #ruby
CausaMortis has joined #ruby
mark_66 has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
Lycaonian has quit [Read error: Connection reset by peer]
Miron has quit [Ping timeout: 240 seconds]
sulky__ has quit [Ping timeout: 276 seconds]
lkba has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 276 seconds]
ta_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ta_ has joined #ruby
b|ackwolf has joined #ruby
znz_jp has joined #ruby
bronson has joined #ruby
Dimik has quit []
n_blownapart has quit [Ping timeout: 244 seconds]
Lomex has joined #ruby
Dimik has joined #ruby
neanderslob has quit [Disconnected by services]
neanderslob_ has joined #ruby
aupadhye has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Snowy has joined #ruby
enedil has joined #ruby
Miron has joined #ruby
beawesomeinstead has quit []
vondruch has quit [Quit: Ex-Chat]
beawesomeinstead has joined #ruby
madgen has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
sulky_ has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
akem has quit [Ping timeout: 276 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
vondruch has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
TheHodge has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
znz_jp has quit [Remote host closed the connection]
ravishankarjha has quit [Remote host closed the connection]
nisstyre has quit [Ping timeout: 250 seconds]
ravishankarjha has joined #ruby
terlar has quit [Quit: WeeChat 1.5]
znz_jp has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
binaryplease has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
yfeldblum has joined #ruby
grenierm has quit [Quit: grenierm]
Lomex has quit [Remote host closed the connection]
chipotle has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
n_blownapart has joined #ruby
edwinvdgraaf has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
edwinvdg_ has joined #ruby
workmad3 has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
hanmac has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 260 seconds]
ravishankarjha has joined #ruby
n_blownapart has quit [Ping timeout: 246 seconds]
camilasan has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
n_blownapart has joined #ruby
orangey has quit [Ping timeout: 265 seconds]
madgen has quit [Ping timeout: 244 seconds]
ftj has joined #ruby
n_blownapart has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 260 seconds]
skade has joined #ruby
orangey has joined #ruby
enedil has left #ruby [#ruby]
FooMunki has joined #ruby
moeSeth has joined #ruby
madgen has joined #ruby
pandaant has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
nisstyre has joined #ruby
yfeldblum has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
tax has quit [Ping timeout: 250 seconds]
akem has joined #ruby
bruno- has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
xue has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
minimalism has quit [Quit: minimalism]
terlar has joined #ruby
lessless has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 260 seconds]
tubuliferous has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
blackmes1 has joined #ruby
ravishankarjha has joined #ruby
Chunlea has quit [Ping timeout: 244 seconds]
Chunlea has joined #ruby
sauvin has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 252 seconds]
nofxx has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
ta_ has joined #ruby
<bweston92> I need to create a service that listens to all events from a message broker and records statistics for me to query time frames etc for example PaymentWasMade would record payments_made++ or ApplicationSubmitted would record applicants_submitted++ what would be the best database of choice to query it all fast?
zenspider has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
Moosashi has joined #ruby
vdamewood has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.4]
sameerynho has quit [Ping timeout: 240 seconds]
<apeiros> bweston92: sounds like you want a key-value store
Moosashi has quit [Client Quit]
blur3d has joined #ruby
sauvin has joined #ruby
al2o3-cr has joined #ruby
der-landgraf has joined #ruby
Moosashi has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
hanmac has joined #ruby
Moosashi has quit [Quit: Moosashi]
<Papierkorb> bweston92: Do you want to persist that data immediately or later? Do you already have a document based DB in your stack, are planning to do so or don't want it?
devbug has quit [Quit: ZZZzzz…]
blackmes1 has quit [Ping timeout: 240 seconds]
<Papierkorb> bweston92: If not persistent, then what apeiros says, Redis does a great job here. I used that to count visitors to a webpage which was persisted every hour into a SQL DB. Worked fine.
d0lph1n98 has joined #ruby
chipotle has joined #ruby
apofis has joined #ruby
GioVdK has joined #ruby
i12345678 has quit [Ping timeout: 260 seconds]
<GioVdK> Hello, I'd need to url encode a time string so that also the plus is url encoded in %2B instead of being read as a space (e.g. 2013-09-12 22:49:27 +0530) but CGI.encode keeps it at as a space
<GioVdK> would ERB::Util.url_encode be a good solution?
sepp2k has joined #ruby
<Papierkorb> GioVdK: See URI.encode
<Papierkorb> Oh, URI.encode is apparently obsolete now.
<bweston92> apeiros a k/v store wouldn't allow me to filter on dates, I've found statsd which looks promising
greves has quit [Ping timeout: 240 seconds]
<GioVdK> Hi Papierkorb thanks, yep I read that too
<GioVdK> and anyway is not converting the plus: 2016-05-06%2010:14:46%20+0000
mrgrieves has joined #ruby
gomix has quit [Ping timeout: 252 seconds]
<bweston92> Papierkorb I've found a database Grahpite which statsd uses, might look promising :)
<GioVdK> Papierkorb: actually CGI.escape should be ok, it is converting + to %2B and spaces to + (instead of %20 but that's the same), I probably misread the output hehe
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Papierkorb> GioVdK: Yeah, but tbh I'd prefer the ERB one here, so that browsers don't have to guess if the + is meant to be a space or just a weirdly (wrong?) encoded plus character
bruno- has joined #ruby
sdothum has joined #ruby
hk238 has joined #ruby
ferr has joined #ruby
framling has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
<GioVdK> Papierkorb: in terms of reliability, they should be the same right? (not dependant on other config or ruby version, etc.)
xue has quit [Ping timeout: 244 seconds]
<Papierkorb> GioVdK: Reliability in which sense?
ta_ has quit [Read error: Connection reset by peer]
<Papierkorb> that a (most likely) web browser client parses the URL part correctly?
finnnnnnnnnnn has joined #ruby
<finnnnnnnnnnn> in a sinatra app, I’m trying to create a simple method that accepts a block, but it’s not being recognised. ArgumentError at / wrong number of arguments (given 0, expected 1). https://gist.github.com/fionnbharra/86d809a513999e8103b401156c1e7c44
<GioVdK> I'm new with ruby and ERB is for templating, right? So maybe there are some global settings that may affect the output / the way it is encoded or something like that?
<GioVdK> nope I literally meant (reliability) for the output of ERB::Util.url_encode to always be the same
<Papierkorb> GioVdK: ERB is for templating, correct. The code of .url_encode means that no configuration option affects its output
<Papierkorb> GioVdK: You can check so yourself. I guess you're using irb, correct?
bronson has joined #ruby
davedev24 has quit [Remote host closed the connection]
ta_ has joined #ruby
<GioVdK> yep, irb and I also have it as the result of a method I'm writing for a script
<Papierkorb> GioVdK: Then let me make your life a little easier :) $ gem install pry pry-coolline # You may need sudo depending on your platform.
<GioVdK> so yep I checked the option, I just wanted to make sure that on a different configuration it would be the same
<Papierkorb> GioVdK: Afterwards, start 'pry'. Pry is basically irb on steroids. You can use it like irb, but it comes with lots of useful other stuff
ctp has joined #ruby
<Papierkorb> Oh, actually, start pry like this to directly require 'erb': pry -rerb
bronson has quit [Ping timeout: 252 seconds]
<Papierkorb> Now in the pry shell, type INCLUDING the dollar sign as first character: $ ERB::Util.url_encode
Shashikant86 has joined #ruby
piotrj has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
<GioVdK> nice one, didn't know about it. thanks
<GioVdK> so I guess the dollar sign stands for source
<Papierkorb> GioVdK: Replace the $ with a ? to directly access the docs
<Papierkorb> GioVdK: You guess correctly, yes
<GioVdK> uh cool, thanks! really handy
<ctp> hi folks. kind of noob question but cannot figure it out actually. how to bring two arrays (same length, corresponding elements) into an array of hashes? foo = ["a", "b", "c"] and bar = [1,2,3] shall become [{name: "a", version: 1}, {name: "b", version: 2}, {name: "c", version: 3}]? the only thing i got so far is foo.zip(bar).to_h which gives me {"a": 1, "b": 2, "c": 3}.
sameerynho has joined #ruby
pawnbox has joined #ruby
<Papierkorb> GioVdK: Works with stuff too like $ my_variable.some_func or $ Array#each etc. :)
<tobiasvl> ctp: you probably need to map something there
<ctp> tobiasvl $something :)
<tobiasvl> it needs to know the hash keys
xue has joined #ruby
<ctp> yep, thats true
<Papierkorb> ctp: Check out Enumerable#zip for the first step and then #map for the mapping step, then do #to_h to get the hash
xue has quit [Max SendQ exceeded]
zacstewart has joined #ruby
xue has joined #ruby
ramfjord has joined #ruby
<Papierkorb> ctp: Oh, you don't need the #to_h in your case then, just have you #map return the 'inner' Hash
<ctp> hmhm
<ctp> lemme try
<ctp> ok, like this?
<ctp> foo.zip(bar).map {|k,v| {"name": k, "version": v} }
<Ox0dea> \o/
<Ox0dea> `k` is misleading there, though.
rodfersou has joined #ruby
<ctp> yepp
<ctp> but got the idea, thx guys & gals
zacstewart has quit [Ping timeout: 244 seconds]
nando293921 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
vcoinminer has quit [Quit: Connection closed for inactivity]
ravishankarjha has joined #ruby
Tichodroma has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
Couch has joined #ruby
bluOxigen has joined #ruby
d0lph1n98 has quit [Ping timeout: 265 seconds]
bluOxigen_ has quit [Ping timeout: 246 seconds]
DaniG2k has joined #ruby
SpeakingClojure has joined #ruby
n008f4g_ has joined #ruby
blackmes1 has joined #ruby
SparkMasterTape has quit [Remote host closed the connection]
nettoweb has joined #ruby
perlgod has joined #ruby
perlgod has quit [Client Quit]
karapetyan has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: Leaving]
mdw has quit [Quit: Sleeping Zzzzz]
karapetyan has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 240 seconds]
nchambers is now known as sillytime
tens0r has joined #ruby
<ceegee_> does anyone know if there is a possibility to override the displayed page name in rdoc documentation? normally the filename is displayed but I want to have the absolute path included
moeSeth has quit [Quit: Connection closed for inactivity]
d0lph1n98 has joined #ruby
jeanlinux has joined #ruby
panpainter has joined #ruby
hanmac has quit [Remote host closed the connection]
joonty has joined #ruby
Dysp has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
panpainter has quit [Ping timeout: 252 seconds]
troulouliou_div2 has quit [Quit: Leaving]
bruno- has joined #ruby
FooMunki has quit [Ping timeout: 260 seconds]
tubuliferous has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zapata has joined #ruby
yude has quit [Ping timeout: 276 seconds]
twe4ked has quit [Ping timeout: 276 seconds]
bruno- has quit [Ping timeout: 244 seconds]
<ravishankarjha> any one used azure storage with ruby?
duckpuppy has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
zotherstupidguy has joined #ruby
TomyLobo has joined #ruby
pawnbox has joined #ruby
duncannz has quit [Remote host closed the connection]
<dostoyevsky> I cannot gem install tokyocabinet with ruby2.3 ... does it not exist anymore?
jeanlinux has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
twe4ked has joined #ruby
FooMunki has joined #ruby
gnufied has joined #ruby
htmldrum has joined #ruby
<dostoyevsky> kyotocabinet even ...
hchcode has joined #ruby
mrgrieves has quit [Ping timeout: 276 seconds]
xue has quit [Ping timeout: 260 seconds]
|2701 has joined #ruby
hchcode has quit [Client Quit]
ldnunes has joined #ruby
platzhirsch has joined #ruby
akkad has quit [Ping timeout: 246 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
yude has joined #ruby
xue has joined #ruby
Moosashi has joined #ruby
akkad has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
sameerynho has joined #ruby
fnux has quit [Quit: おやすみ。]
Devalo has joined #ruby
fnux has joined #ruby
johnmilton has joined #ruby
GioVdK has quit [Ping timeout: 276 seconds]
sillytime is now known as nchambers
jeanlinux has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
pandaant has quit [Remote host closed the connection]
<shevy> but is quite old, 2010
synthroid has joined #ruby
<shevy> extconf.rb:18:in `<main>': uninitialized constant Config (NameError)
<shevy> one can change that line to RbConfig
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> but the flags include -lkyotocabinet which I don't have so I can't check further
GodFather has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
VeryBewitching has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
jaruga___ has quit [Ping timeout: 252 seconds]
madgen has joined #ruby
jaruga___ has joined #ruby
FooMunki has quit [Quit: FooMunki]
sameerynho has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
jeanlinux has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
madgen has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
FooMunki has joined #ruby
jeanlinux has joined #ruby
joonty has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
ceegee_ has quit [Quit: Lost terminal]
Shashikant86 has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
cdg has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
camilasan has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
bruno- has joined #ruby
rbennacer has joined #ruby
saneax is now known as saneax_AFK
ta_ has quit [Read error: Connection reset by peer]
finnnnnnnnnnn has joined #ruby
GodFather has joined #ruby
ta_ has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
madgen has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
Moosashi has quit [Quit: Moosashi]
rbennacer has joined #ruby
twe4ked has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
kam270 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
xue has quit [Read error: Connection reset by peer]
twe4ked has joined #ruby
DaniG2k has quit [Ping timeout: 252 seconds]
swills has quit [Ping timeout: 260 seconds]
rbennace_ has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
millerti has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
gizmore has joined #ruby
pLaToOn has quit [Read error: Connection reset by peer]
tens0r has quit [Quit: tens0r]
Paraxial has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
dionysus69 has joined #ruby
IvanSuftin has quit [Ping timeout: 244 seconds]
ravishankarjha has joined #ruby
vdamewood has quit [Quit: Life beckons.]
vcoinminer has joined #ruby
ferr1 has joined #ruby
fmcgeough has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
ramortegui has joined #ruby
AnoHito_ has quit [Read error: Network is unreachable]
AnoHito_ has joined #ruby
KervyN has quit [Ping timeout: 260 seconds]
zzz has joined #ruby
flashpoint9 has joined #ruby
DaniG2k has joined #ruby
s00pcan_ has joined #ruby
MassDebates has joined #ruby
tk__ has joined #ruby
davedev24 has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
Symbiosisz has joined #ruby
blackmes1 has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
zacstewart has joined #ruby
davedev24 has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
Dysp has quit []
Blaguvest has quit []
tubuliferous has joined #ruby
cdg has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 244 seconds]
finnnnnnnnnnn_ has joined #ruby
cdg has joined #ruby
finnnnnnnnnnn has quit [Ping timeout: 250 seconds]
finnnnnnnnnnn_ is now known as finnnnnnnnnnn
yude has quit [Read error: Connection timed out]
tens0r has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
yude has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
n_blownapart has joined #ruby
CloCkWeRX has joined #ruby
GnuYawk has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
Paraxial has quit [Ping timeout: 244 seconds]
n_blownapart has quit [Ping timeout: 252 seconds]
tens0r has quit [Ping timeout: 252 seconds]
camilasan has quit [Ping timeout: 260 seconds]
tens0r has joined #ruby
armatechnicos has joined #ruby
armatechnicos has quit [Client Quit]
zotherstupidguy has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 240 seconds]
GioVdK has joined #ruby
crystal77 has joined #ruby
tk___ has joined #ruby
griffindy has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tk__ has quit [Ping timeout: 276 seconds]
jxs_ has joined #ruby
stannard has joined #ruby
jxs_ has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
jxs_ has joined #ruby
armatechnicos has joined #ruby
jxs_ has quit [Client Quit]
panpainter has joined #ruby
jxs_ has joined #ruby
mdw has joined #ruby
banister has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
crystal77 has joined #ruby
GnuYawk has joined #ruby
GnuYawk has quit [Changing host]
GnuYawk has joined #ruby
bwlang has joined #ruby
ChiefAlexander has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
<bwlang> I have a ruby program (not rails) with multiple classes in one file. time to refactor… any good patterns for me to follow?
tildes has quit [Read error: Connection reset by peer]
<bwlang> thinking of putting everything in lib… but not sure if that’s expected.
vondruch has quit [Quit: Ex-Chat]
ferr1 has quit [Ping timeout: 276 seconds]
<griffindy> i would say that's not surprising
tildes has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> bwlang yes, always space it out, and I would also go one-file-per-class unless there is reason not to
vondruch has joined #ruby
<bwlang> i didn’t find any example non-rails projects to learn from on github, anybody know of an example?
<shevy> it is quite simple, people do things differently though. usually the main require file is one that has the same name of the directory
<shevy> so you have foo/ and foo.rb
<shevy> foo.rb then either has the code, or it delegates to the other .rb files that are within the directory foo/
<shevy> I usually start with the basic parts of the project, such as constants.rb which often has, as the name implies, some project-specific / shared constants
<shevy> for batch-requiring, I sometimes add a subdirectory called requires/
JesseH has quit [Quit: Leaving]
crystal7_ has joined #ruby
<shevy> if it is really many files, I often end up just doing a Dir[] on the files where they are
crystal77 has quit [Read error: Connection reset by peer]
<bwlang> shevy: my “main” file now has about 30 require statements at the top… pretty ugly. sorry - i’m not getting your Dir[] method … to you feed the results of Dir to requrie?
tens0r has quit [Quit: tens0r]
FooMunki has quit [Quit: FooMunki]
ta_ has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
ta_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
crystal7_ has quit [Read error: Connection reset by peer]
GnuYawk has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
<shevy> yeah it can have a lot of individual requires
mark_66 has quit [Remote host closed the connection]
tens0r has joined #ruby
<shevy> that is one reason why I often use Dir[]; another reason, and actually equally cool is that I don't have to add any more manual requires lateron. I can just drop a .rb file and it will be required
<shevy> yeah I have something like Dir[].each or something like that
armatechnicos has quit [Ping timeout: 260 seconds]
smathy has joined #ruby
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
inukshuk_ has joined #ruby
<bwlang> like this Dir[‘lib’].each {|f| require f} ?
<bwlang> ^^shevy
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
IvanSuftin has joined #ruby
<shevy> the argument has to include something like *.rb
<shevy> or if you don't care, * may suffice
<shevy> but I always use the *.rb variant
idefine has joined #ruby
<shevy> but stick to individual require statements for now, you can change to anything else lateron anyway
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> you must have quite a big project already with those many require statements :)
zzz has quit [Remote host closed the connection]
grenierm has joined #ruby
tens0r has quit [Quit: tens0r]
skade has joined #ruby
idle_task has joined #ruby
crystal7_ has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
idletask has quit [Ping timeout: 276 seconds]
idle_task is now known as idletask
crystal77 has joined #ruby
crystal7_ has quit [Read error: Connection reset by peer]
shaman42 has quit [Ping timeout: 250 seconds]
swills has joined #ruby
nw1 has quit [Ping timeout: 244 seconds]
n_blownapart has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
ravishankarjha has joined #ruby
crystal77 has quit [Ping timeout: 265 seconds]
Elvin has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
Pwnna has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
baprath has joined #ruby
<Pwnna> is there a way to set an extra paragraph below the banner of optparse?Right now I'm using separator with text but I want to be able to modify that section after the flags have been set (for subclassing)
n_blownapart has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
dopamean_ has joined #ruby
<iNs> oi, anyone ever had a problem with specifying --rakefile manually? my rake ignores the argument completely
eljimmy has joined #ruby
bruno- has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Ispira has joined #ruby
jeanlinux has quit [Remote host closed the connection]
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nw1 has joined #ruby
shaman42 has joined #ruby
jeanlinu_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
banister has joined #ruby
jeanlinu_ has quit [Read error: Connection reset by peer]
n_blownapart has joined #ruby
jeanlinux has joined #ruby
norc has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
baprath has quit [Quit: Leaving.]
jeanlinux has joined #ruby
cd83x_ has joined #ruby
jeanlinux has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
jeanlinux has quit [Read error: Connection reset by peer]
n_blownapart has quit [Ping timeout: 260 seconds]
jeanlinu_ has joined #ruby
jds has joined #ruby
apofis has quit [Ping timeout: 260 seconds]
<bwlang> shevy: yeah - this is overdue for a refactor...
siovene has quit [Quit: Connection closed for inactivity]
zzz has joined #ruby
<griffindy> better late than never :D
norc has joined #ruby
GriffinHeart has joined #ruby
<norc> Should an ensure block be exception safe?
thejoecarroll_ has quit [Quit: ZNC - http://znc.in]
<toretore> norc: yes, probably
<norc> toretore: Your reason being?
<toretore> i imagine it will stop executing at an exception just like any other block of code
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> so for most ensure blocks you probably want to make sure it runs until completion
dionysus69 has quit [Ping timeout: 276 seconds]
<norc> Program flow will be interrupted regardless if an exception is thrown.
jeanlinu_ has quit [Ping timeout: 260 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
<norc> My point is the debugging information about the original exception seems to be lost irrecoverably.
<toretore> how so?
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_div2 has joined #ruby
codecop has joined #ruby
thejoecarroll has joined #ruby
chipotle has joined #ruby
loincloth has joined #ruby
<norc> If release_resource raises an exception you have no way of knowing if an exception was thrown before.
freerobby has joined #ruby
<norc> But I guess that is the price for the ensure block.
freerobby has quit [Read error: Connection reset by peer]
<troulouliou_div2> hi this works s.scan(/.{1,4}/) but not this : s.scan(/.{1,#{options[:length]}/)
freerobby has joined #ruby
<troulouliou_div2> options[:length] = 4
<shevy> and what is s
<norc> troulouliou_div2: Can you be specific what you mean by "it does not work" ?
<troulouliou_div2> shelling__, a string
<shevy> no I mean exactly
<norc> asm>> s.scan(/.{1,#{options[:length]}/)
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/566659
<norc> The code compiles fine for me.
<troulouliou_div2> norc, it does outbut a string splitted every 4 chars
ropeney has joined #ruby
<shevy> btw are you missing a } ?
<troulouliou_div2> shevy, yes i m -> went to shame :)
kareeoleez has quit [Remote host closed the connection]
<troulouliou_div2> shevy, long time did not used ruby :)
freerobby has quit [Client Quit]
<toretore> norc: i don't get what you mean. the rescue runs before the ensure
<shevy> \o/
<norc> toretore: Precisely.
<norc> toretore: Well leave the rescue handlers away then it becomes a bit more sensible.
ravishankarjha has quit [Remote host closed the connection]
<shevy> I always thought of ensure in the context of the begin/rescue clauses
s00pcan_ has quit [Ping timeout: 244 seconds]
<toretore> norc: yes, then it will be lost, but how would it work otherwise?
ravishankarjha has joined #ruby
<toretore> norc: thus you want to make sure your ensure doesn't raise
<shevy> ensure another raise to be rescued :)
<norc> shevy: rescue and ensure are just wrappers for setjmp() under the hood.
grenierm has quit [Quit: grenierm]
<norc> Effectively mruby invokes longjmp() on everything that interrupts flow wrt exceptions.
banister has joined #ruby
<norc> toretore: Im thinking I would like an exception stack!
camilasan has joined #ruby
weemsledeux has joined #ruby
<norc> toretore: And that is not possible if you have to release a remote resource through a SOAP API.
scepticulous has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
tesuji has quit [Ping timeout: 240 seconds]
<toretore> norc: sure it is, you just rescue the exception
Devalo has joined #ruby
<toretore> but i wouldn't use this sort of logic to release a remote lock
<norc> toretore: you kind of have to
RegulationD has joined #ruby
<toretore> only if you're making a "magic" lock-releasing block thing
<toretore> you could choose not to
<norc> To implement a rather common pattern
camilasan has joined #ruby
panpainter has joined #ruby
<toretore> but as soon as you put a network in between everything is different and the rules change
<norc> If your API requires resources to be freed then you have a problem still.
thang has quit [Remote host closed the connection]
<norc> Ah well, gotta run for the train. Will be back later for this.
<toretore> sometimes it's the better choice to force the user to make these decisions
whippythellama has joined #ruby
<toretore> a lot of decisions, i find. as the user, i'd like more control and less non-working magic
anisha has quit [Quit: Leaving]
swills has quit [Remote host closed the connection]
tubuliferous has joined #ruby
idefine_ has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
astrobunny has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
CausaMortis has quit [Ping timeout: 246 seconds]
norc has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 250 seconds]
ohcibi_ is now known as ohcibi
sameerynho has joined #ruby
rodfersou is now known as rodfersou|lunch
GriffinH_ has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
davedev24 has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 252 seconds]
s00pcan_ has joined #ruby
polishdub has joined #ruby
freerobby has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
phpwebdev has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
jxs_ has quit [Ping timeout: 265 seconds]
ravishankarjha has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
kam270 has quit [Remote host closed the connection]
jdr has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
FooMunki has joined #ruby
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
kareeoleez has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
skolman_ has joined #ruby
yqt has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
mdw has joined #ruby
kareeoleez has quit [Ping timeout: 252 seconds]
swills has joined #ruby
madgen has joined #ruby
jxs_ has joined #ruby
s00pcan_ has quit [Ping timeout: 246 seconds]
jdr has quit [Quit: leaving]
camilasan has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 252 seconds]
dikaio has joined #ruby
hobodave has joined #ruby
crystal77 has joined #ruby
hobodave has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
sameerynho has quit [Ping timeout: 260 seconds]
FooMunki has quit [Quit: FooMunki]
DaniG2k has quit [Quit: leaving]
bobbycvi has joined #ruby
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has joined #ruby
sameerynho has joined #ruby
nando294021 has joined #ruby
Tichodroma has quit [Ping timeout: 276 seconds]
clifford_ has joined #ruby
GioVdK has quit [Ping timeout: 265 seconds]
dopamean_ has quit [Quit: WeeChat 1.3]
lessless has joined #ruby
joonty has joined #ruby
[Butch] has joined #ruby
davedev24 has quit [Remote host closed the connection]
bronson has joined #ruby
<bougyman> hrm. googlefail. looking for a tool which does a refactoring task... takes module Foo and makes it module Super::Duper::Foo
<bougyman> was trying to sed it, but the indenting becomes a bitch.
<bougyman> have to write a real sed script, that is, not a one-liner. that's when I decided to google it.
<bougyman> seems like someone would have done this before.
MassDebates has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
symm- has joined #ruby
BSaboia has joined #ruby
flashpoint9 has joined #ruby
ramfjord has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopamean_ has joined #ruby
lubekpl has joined #ruby
gix has joined #ruby
swills has quit [Remote host closed the connection]
whathappens has joined #ruby
clifford_ has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 252 seconds]
_orangejuice has joined #ruby
synthroid has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 250 seconds]
JJM has joined #ruby
karmatr0n has joined #ruby
Shashikant86 has joined #ruby
JJM has quit [Client Quit]
duderonomy has joined #ruby
amclain has joined #ruby
rehat has quit [Remote host closed the connection]
idefine_ has quit [Remote host closed the connection]
Coldblackice has joined #ruby
Veejay has joined #ruby
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
weemsledeux has joined #ruby
<Veejay> Hello everyone, is there a way to make a HTTP request using the BAN method using Net::HTTP? The documentation for Net::HTTPRequest specifies that Net::HTTPRequest should not be used directly and advises to use the appropriate subclasses instead
platzhirsch has joined #ruby
PaulCapestany has quit [Remote host closed the connection]
<Veejay> And the subclasses only cover the usual HEAD, GET, POST, PUT, etc.
Cohedrin has joined #ruby
tk___ has quit [Quit: ばいばい]
tildes_ has joined #ruby
PaulCapestany has joined #ruby
Snowy has quit [Quit: ragequit]
CloCkWeRX has quit [Ping timeout: 276 seconds]
Lycaonian has joined #ruby
Lycaonian has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
aufi has quit [Remote host closed the connection]
Lycaonian has joined #ruby
platzhirsch has quit [Ping timeout: 246 seconds]
<troulouliou_div2> hi how can i set a variable based on a string containing the var name : something like this : var1 = 1 ; s = "var1" ; ???s = ???s + 1 ;
SilverKey has quit [Quit: Halted.]
kareeoleez has quit [Remote host closed the connection]
camilasan has joined #ruby
Couch has quit [Ping timeout: 260 seconds]
camilasan has quit [Remote host closed the connection]
SilverKey has joined #ruby
Gasher^ has quit [Quit: Leaving]
n_blownapart has joined #ruby
minimalism has joined #ruby
sembei has quit [Read error: Connection reset by peer]
inukshuk_ has quit [Quit: leaving]
mdw has quit [Quit: Sleeping Zzzzz]
astrobunny has joined #ruby
GinoMan2440 has joined #ruby
sembei has joined #ruby
tristanp has quit []
camilasan has joined #ruby
karmatr0n has quit [Ping timeout: 252 seconds]
sneakerhax has quit [Ping timeout: 276 seconds]
swills has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
saltsa has quit [Ping timeout: 264 seconds]
saltsa has joined #ruby
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
drptbl has quit [Ping timeout: 276 seconds]
n_blownapart has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 244 seconds]
speakingcode has joined #ruby
northrup has quit [Ping timeout: 276 seconds]
ferr1 has joined #ruby
nrd_pxs has joined #ruby
idefine has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
haxrbyte_ has quit [Remote host closed the connection]
kareeoleez has joined #ruby
GioVdK has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
n_blownapart has joined #ruby
synthroid has joined #ruby
Shashikant86 has quit [Ping timeout: 260 seconds]
banister has quit [Ping timeout: 252 seconds]
Guest38 has joined #ruby
GriffinH_ has quit [Remote host closed the connection]
nando294021 has quit [Ping timeout: 250 seconds]
n_blownapart has quit [Ping timeout: 252 seconds]
terminalrecluse has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
modin has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
adaedra has quit [Ping timeout: 264 seconds]
clamstar has quit [Ping timeout: 264 seconds]
terminalrecluse has quit [Max SendQ exceeded]
zzz has quit [Read error: Connection reset by peer]
ckrailo has quit [Read error: Connection reset by peer]
yonatankoren has quit [Ping timeout: 264 seconds]
nlsun_ has quit [Ping timeout: 264 seconds]
pabs has quit [Ping timeout: 264 seconds]
whathappens has quit [Remote host closed the connection]
Meow-J has quit [Ping timeout: 250 seconds]
zzz has joined #ruby
terminalrecluse has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
xcesariox has joined #ruby
matt_d has quit [Ping timeout: 264 seconds]
null__ has quit [Ping timeout: 264 seconds]
strongcode has quit [Ping timeout: 264 seconds]
headius has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 250 seconds]
sepp2k has quit [Ping timeout: 250 seconds]
coyo has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
joevandyk has quit [Remote host closed the connection]
modin has joined #ruby
sepp2k has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joevandyk has joined #ruby
gsingh93 has quit [Ping timeout: 250 seconds]
UserInNeed has quit [Ping timeout: 250 seconds]
vircung has quit [Ping timeout: 250 seconds]
mtkd has joined #ruby
rtl has quit [Remote host closed the connection]
ckrailo has joined #ruby
SirFunk has quit [Ping timeout: 250 seconds]
symm- has quit [Ping timeout: 265 seconds]
finnnnnnnnnnn has joined #ruby
rtl has joined #ruby
df has quit [Ping timeout: 264 seconds]
D9 has quit [Ping timeout: 264 seconds]
UKn0Me has quit [Ping timeout: 250 seconds]
irick has quit [Ping timeout: 264 seconds]
isene has quit [Ping timeout: 264 seconds]
martinbjeldbak has quit [Ping timeout: 264 seconds]
pjaspers has quit [Ping timeout: 264 seconds]
ferr1 has quit [Ping timeout: 250 seconds]
bogdanteleaga has quit [Ping timeout: 264 seconds]
connor_goodwolf has quit [Ping timeout: 264 seconds]
Biohazard_ has quit [Ping timeout: 264 seconds]
segy has quit [Ping timeout: 250 seconds]
CalimeroTeknik has quit [Ping timeout: 250 seconds]
matt_d has joined #ruby
Elvin has joined #ruby
majjoha has quit [Ping timeout: 250 seconds]
awk has quit [Ping timeout: 264 seconds]
connor_goodwolf has joined #ruby
karmatr0n has joined #ruby
jidar has quit [Ping timeout: 264 seconds]
yonatankoren has joined #ruby
headius has joined #ruby
nlsun has joined #ruby
bogdanteleaga has joined #ruby
Alina-ma- has joined #ruby
martinbjeldbak has joined #ruby
<apeiros> troulouliou_div2: you don't. you use a hash.
pabs has joined #ruby
Amnez777 has quit [Ping timeout: 244 seconds]
<troulouliou_div2> apeiros, isntance_get_name ?
adaedra has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
Meow-J has joined #ruby
null__ has joined #ruby
diegoviola has joined #ruby
irick has joined #ruby
<apeiros> troulouliou_div2: instance variables are those with an @
<apeiros> bareword variables are local variables
clamstar has joined #ruby
Biohazard has joined #ruby
df has joined #ruby
UserInNeed has joined #ruby
UKn0Me has joined #ruby
SirFunk has joined #ruby
gsingh93 has joined #ruby
<troulouliou_div2> apeiros, ok hash then :)
D9 has joined #ruby
strongcode has joined #ruby
vircung has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 250 seconds]
CalimeroTeknik has joined #ruby
jeanlinux has joined #ruby
Amnez777 has joined #ruby
segy has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
awk has joined #ruby
pjaspers has joined #ruby
awk is now known as Guest51628
flashpoint9 has joined #ruby
<Veejay> troulouliou_div2: You can also have a look at instance_variable_set, but generally speaking, listen to apeiros and use a hash
karmatr0n has quit [Ping timeout: 240 seconds]
isene has joined #ruby
ferr has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
coyo has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
jds has quit [Quit: Connection closed for inactivity]
jidar has joined #ruby
mikecmpbll has joined #ruby
robbyoconnor has joined #ruby
majjoha has joined #ruby
davedev24 has joined #ruby
<troulouliou_div2> Veejay, ok
mostlybadfly has joined #ruby
swills has quit [Ping timeout: 265 seconds]
whathappens has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
idefine has joined #ruby
karmatr0n has joined #ruby
whathapp_ has joined #ruby
<Veejay> troulouliou_div2: instance_variable_get and instance_variables are one of many methods that look (and are) powerful, but that can quickly lead to unmanageable pieces of "avant garde" coding
Elvin has quit [Ping timeout: 246 seconds]
<Veejay> Avec modération as they say
<CustosLimen> hi
<apeiros> remains the question whether they wanted ivars (and asked their question badly) or local variables.
<CustosLimen> why does is this false: (""..."923000161236").include?( "923000161232" )
azor has joined #ruby
<apeiros> >> "".succ
<ruby[bot]> apeiros: # => "" (https://eval.in/566677)
djbkd has joined #ruby
davedev24 has quit [Ping timeout: 276 seconds]
<apeiros> because the enumerated range does not include that string.
<CustosLimen> ok
<CustosLimen> why is this so slow: ("0"..."923000161236") === ( "923000161232" )
newbie1 has joined #ruby
<CustosLimen> I would expect it to just do two string comparisons
<apeiros> you might want cover? instead, but with strings instead of numbers, you'll probably just run into the next problem (because "9" > "10", not like 9 < 10)
Elvin has joined #ruby
<Veejay> apeiros: Apparently local variables, but in that context I thought it'd be worth having a look
<apeiros> CustosLimen: then maybe verify your expectation and read the docs?
snockerton has joined #ruby
<apeiros> because no, it does not do two string comparisons.
<Veejay> I feel those methods can make you fall in love with the language pretty fast :)
<shevy> :D
<CustosLimen> ok cover is quicker
benlieb has joined #ruby
<CustosLimen> ("0"..."923000161236").cover?( "923000161232" )
<CustosLimen> >> ("0"..."923000161236").cover?( "923000161232" )
<ruby[bot]> CustosLimen: # => true (https://eval.in/566678)
whathappens has quit [Ping timeout: 244 seconds]
<CustosLimen> thanks apeiros
GriffinHeart has joined #ruby
SilverKey has quit [Quit: Halted.]
<apeiros> CustosLimen: did you read up what Range#include? and #cover? do? or are you just blindly using it now?
SilverKey has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
edwinvdg_ has quit [Read error: Connection reset by peer]
spectra has quit [Ping timeout: 260 seconds]
<CustosLimen> apeiros, yes i did - but honestly to me element of range if range is delimited as strings seems like >= min and <= max (regarding include? docs)
sami has quit [Ping timeout: 264 seconds]
yqt has quit [Ping timeout: 276 seconds]
<CustosLimen> apeiros, which is why I was surprised
edwinvdgraaf has joined #ruby
<apeiros> CustosLimen: "element of range" means it has to enumerate the range
tubuliferous has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
<CustosLimen> apeiros, yeah, that part was not really evident to me from the documentation of it
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> sadly, numerics are special cased, which makes Range#include? behave like cover? for those, but other than that, you can't have a generic solution using <=>, as that misses the "stepwidth" (or whatever you want to call how .succ works)
madgen has quit [Ping timeout: 276 seconds]
DoubleMalt has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
SilverKey has quit [Client Quit]
ChiefAlexander has joined #ruby
<CustosLimen> anyway, thanks, I'm giddy that what I wanted to do worked with so little code ;)
<CustosLimen> was getting fed up with awk's lack of json and date processing
tubuliferous has quit [Ping timeout: 260 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GinoMan2440 has quit [Read error: Connection reset by peer]
ruid has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
vcoinminer has quit [Quit: Connection closed for inactivity]
whathapp_ has quit [Remote host closed the connection]
BSaboia has joined #ruby
blur3d has quit [Quit: blur3d]
firstdayonthejob has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
astrobunny has joined #ruby
SilverKey has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
kaleido has quit [Quit: leaving]
n008f4g_ has joined #ruby
swills has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
<shevy> awk!
mosez has quit [Ping timeout: 250 seconds]
lupine has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Ping timeout: 240 seconds]
kaleido has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
GioVdK has quit [Ping timeout: 252 seconds]
spectra has joined #ruby
Moosashi has joined #ruby
SilverKey has quit [Quit: Halted.]
<CustosLimen> shevy, indeed
kareeoleez has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
spiette has joined #ruby
nanoz has joined #ruby
polishdub has quit [Remote host closed the connection]
madgen has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
polishdub has joined #ruby
jaruga___ has quit [Quit: jaruga___]
Moosashi has quit [Quit: Moosashi]
ramfjord has quit [Ping timeout: 265 seconds]
newbie1 has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
drewo has joined #ruby
ramfjord has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
ramfjord has quit [Ping timeout: 260 seconds]
programmerq has quit [Ping timeout: 264 seconds]
nug has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 276 seconds]
phantummm has joined #ruby
gnarld_ has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
df has quit [Ping timeout: 276 seconds]
nanoz has quit [Changing host]
nanoz has joined #ruby
nanoz has quit [Quit: <3]
nanoz has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
chipotle has quit [Quit: cheerio]
d0nn1e has quit [Ping timeout: 250 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
mosez has joined #ruby
brent__ has joined #ruby
df has joined #ruby
lupine_ has joined #ruby
nanoz has joined #ruby
lupine_ has quit [Client Quit]
bronson has joined #ruby
<ule> Hey guys.. if I have an instance variable.. how can I access it from inside a method?
<ule> I'm getting undefined method 'foo'
<ule> I'm using self.my_var
DevastatingDave has joined #ruby
davedev24 has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0nn1e has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
bobbycvi has quit [Quit: ...]
haxrbyte_ has joined #ruby
<ule> actually.. here it's not a variable.. it's a hash
<ule> but should work
<shevy> do you have the code?
<ule> shevy: I'll create an example.. sec...
Skept has joined #ruby
<shadows> ule: use a pastebin (here is using gist, see topic)
Skept has left #ruby [#ruby]
flashpoint9 has quit [Remote host closed the connection]
ravishan_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
programmerq has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 265 seconds]
tildes_ has quit [Ping timeout: 260 seconds]
<ule> sure
<ule> as you can see on my output, "undefined method"
ravishankarjha has quit [Ping timeout: 276 seconds]
rodfersou|lunch is now known as rodfersou
ftj has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ule> any idea what's going on guys?
<Ox0dea> ule: How come you don't want to just refer to the instance variable with `@foo`?
tildes_ has joined #ruby
<ule> Ox0dea: if I replace for puts @foo it doesnt have content
chopin has joined #ruby
Dimik has joined #ruby
<Ox0dea> ule: That'll be because you're setting `@foo` on the Class itself; you usually do that in #initialize so that it gets set on instances thereof.
yos7ph has joined #ruby
elifoster has joined #ruby
<ule> weird
Alina-ma- has quit [Changing host]
Alina-ma- has joined #ruby
<Ox0dea> What resource(s) are you using to learn Ruby?
Elvin has joined #ruby
<ule> ok.. the problem is.. My hash is too big.. and my code analyzer "Tailor" is compaining because I'm exceeding max of lines
<Ox0dea> I'm bailing.
Shidash has quit [Ping timeout: 276 seconds]
<ule> that's why I decided to move my hash out of my method
<ule> if I can do @foo = 10.. I thought I could do the same wit hashes
mikecmpbll has joined #ruby
<shevy> ule you can define an accessor method that will tap into that other @foo
zzz has quit [Remote host closed the connection]
Shidash has joined #ruby
prooftechnique has quit [Ping timeout: 276 seconds]
grenierm has joined #ruby
<ule> shevy: that's actually a really cool idea
kriskropd has quit [Ping timeout: 276 seconds]
craysiii_ has quit [Read error: Connection reset by peer]
modin has quit [Ping timeout: 264 seconds]
prooftechnique has joined #ruby
modin has joined #ruby
hogetaro_ has joined #ruby
goldfax has joined #ruby
kareeoleez has quit [Remote host closed the connection]
polishdub has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
swills has quit [Remote host closed the connection]
kriskropd has joined #ruby
hogetaro has quit [Ping timeout: 276 seconds]
ChiefAlexander has quit [Remote host closed the connection]
<ule> shevy: WORKED
<ule> its very weird.. but working
<ule> I'm using self.class.users_hash_list?[user_email]['first_name']
headius has quit [Ping timeout: 276 seconds]
<ule> because I'm iterating through the hash fromt he method
<shevy> \o/
<ule> thats cool!!
<shevy> I used to use constants for that in the past
<shevy> like FOO then rather than @foo
<shevy> until havenwood commented on it :D
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
polishdub has joined #ruby
astrobunny has joined #ruby
<ule> Since worked I'm gonna grab some food and after eat I'll run a debug here to understand very well what's going on
headius has joined #ruby
<ule> thank you very much guys
yos7ph has quit [Quit: Leaving]
blackmes1 has quit [Ping timeout: 260 seconds]
swills has joined #ruby
tildes_ has quit [Ping timeout: 252 seconds]
joaumg has quit [Ping timeout: 276 seconds]
joaumg has joined #ruby
hobodave has joined #ruby
astrobunny has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
Pwnna has left #ruby ["Leaving"]
skalfyfan has joined #ruby
grenierm has quit [Quit: grenierm]
justin_pdx has joined #ruby
skalfyfan has quit [Client Quit]
skalfyfan has joined #ruby
n_blownapart has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
gnarld_ is now known as nug
chopin has quit [Ping timeout: 276 seconds]
ravishan_ has quit [Remote host closed the connection]
tax has joined #ruby
chipotle has joined #ruby
ravishankarjha has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ChiefAlexander has joined #ruby
whathappens has quit [Remote host closed the connection]
goldfax has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
vircung has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
flashpoint9 has joined #ruby
swills has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
sameerynho has quit [Ping timeout: 244 seconds]
vircung has joined #ruby
postmodern has joined #ruby
tagaulap has quit [Quit: Connection closed for inactivity]
last_staff has joined #ruby
n_blownapart has joined #ruby
griffindy has joined #ruby
BTRE has quit [Ping timeout: 252 seconds]
ravishankarjha has quit [Remote host closed the connection]
sauvin has quit [Remote host closed the connection]
ravishankarjha has joined #ruby
ChiefAlexander has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
Snowy has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ChiefAlexander has joined #ruby
cdg has joined #ruby
whathappens has quit [Remote host closed the connection]
lubekpl has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
mjuszczak has joined #ruby
lubekpl has quit [Client Quit]
panpainter has quit [Remote host closed the connection]
scepticulous has joined #ruby
drewo has quit [Ping timeout: 244 seconds]
panpainter has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
ramfjord has joined #ruby
tildes_ has joined #ruby
hanmac has joined #ruby
whathappens has joined #ruby
mjuszczak has quit [Client Quit]
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
griffindy has quit [Max SendQ exceeded]
drewo has joined #ruby
scepticulous has quit [Ping timeout: 240 seconds]
panpainter has quit [Ping timeout: 252 seconds]
tubuliferous has joined #ruby
grenierm has joined #ruby
karapetyan has joined #ruby
hahuang65 has joined #ruby
Tohuw has joined #ruby
_orangejuice has quit [Quit: Connection closed for inactivity]
<Tohuw> Is there an easy way to see why a gem was installed by bundle? Meaning, it installed a gem as a dependency of another gem, but I don't see which gem has this dependency
goldfax has joined #ruby
<bougyman> Gemfile.lock should show the whole dep graph
tubuliferous has quit [Ping timeout: 276 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
BTRE has joined #ruby
bronson has joined #ruby
<Tohuw> oh! Thank you bougyman
tildes_ has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
Snowy has quit [Remote host closed the connection]
idefine has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
zzz has joined #ruby
Devalo has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Quit: Leaving]
kareeoleez has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
finisherr has joined #ruby
futilegames has joined #ruby
|2701 has joined #ruby
nando293921 has joined #ruby
hk238 has joined #ruby
Alina-malina has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
Amnez777 has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
hanmac has joined #ruby
Alina-ma- has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
Amnez777 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 252 seconds]
Snowy has joined #ruby
flashpoint9 has joined #ruby
madgen has quit [Ping timeout: 276 seconds]
symm- has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
tax has quit [Ping timeout: 265 seconds]
karapetyan has quit [Remote host closed the connection]
mjuszczak has joined #ruby
swills has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
astrobunny has joined #ruby
ravishankarjha has joined #ruby
idefine has joined #ruby
grenierm has quit [Quit: grenierm]
BSaboia has quit [Read error: Connection reset by peer]
astrobunny has quit [Ping timeout: 276 seconds]
choke has joined #ruby
chouhoulis has joined #ruby
goldfax has quit [Ping timeout: 246 seconds]
haxrbyte_ has quit [Remote host closed the connection]
kareeoleez has joined #ruby
idefine has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 260 seconds]
haxrbyte has joined #ruby
ur5us has joined #ruby
flashpoint9 has joined #ruby
pikajude has quit [Quit: Quit]
pikajude has joined #ruby
pikajude has joined #ruby
ta_ has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
banister has joined #ruby
SilverKey has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
crystal77 has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
ravishankarjha has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
ravishankarjha has joined #ruby
whathappens has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
The_Phoenix has quit [Max SendQ exceeded]
whathappens has joined #ruby
hanmac has quit [Ping timeout: 276 seconds]
The_Phoenix has joined #ruby
hanmac has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
mosez has quit [Ping timeout: 276 seconds]
mosez has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
idefine has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
jhack has quit [Quit: jhack]
kareeoleez has joined #ruby
sergey_makagon has joined #ruby
rbennace_ has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 240 seconds]
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Madplatypus has joined #ruby
kareeoleez has joined #ruby
toretore has quit [Ping timeout: 276 seconds]
n_blownapart has quit []
yfeldblum has quit [Ping timeout: 276 seconds]
ruid has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
freerobby has quit [Quit: Leaving.]
jenrzzz has joined #ruby
johnmilton has quit [Remote host closed the connection]
arup_r has joined #ruby
idefine has joined #ruby
hahuang65 has joined #ruby
idefine has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
deepak_ has joined #ruby
jcp_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
dionysus69 has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 244 seconds]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
jcp has quit [Ping timeout: 244 seconds]
whathappens has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 276 seconds]
jcp_ is now known as jcp
deepak has quit [Ping timeout: 244 seconds]
dukedave has quit [Ping timeout: 244 seconds]
deepak_ is now known as deepak
kirun has joined #ruby
mwlang has joined #ruby
snockerton has quit [Quit: Leaving.]
Snowy has quit [Quit: ragequit]
dukedave has joined #ruby
ruid has quit [Ping timeout: 246 seconds]
SilverKey has quit [Quit: Halted.]
<shevy> does any of you happen to know a commandline gem that makes heavy use of different colours (on a terminal)? I want to have a look how they solve different colours used in text, e. g. emphasis... perhaps even if anyone uses bold or italic stuff, but regular colours are ok too
FooMunki has joined #ruby
<benzrf> shevy: pry
djbkd has quit [Remote host closed the connection]
<shevy> hmm how to get to these colours?
hayden_ has quit [Ping timeout: 240 seconds]
<shevy> aha!
hayden__ has joined #ruby
<shevy> there is a gem called lolcat
drewo has quit [Ping timeout: 260 seconds]
<Ox0dea> It uses ruby-paint.
mroth_ has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ox0dea> Which in turn uses rainbow.
<Ox0dea> It's colors all the way down.
sergey_makagon has quit []
<shevy> hmm seems rainbow is popular, I'll have a look
iooner has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
drewo has joined #ruby
panpainter has joined #ruby
safe has joined #ruby
hahuang65 has joined #ruby
Jackneill has joined #ruby
hobodave_ has joined #ruby
ramfjord has joined #ruby
benlieb has joined #ruby
futilegames has quit [Quit: futilegames]
elaptics is now known as elaptics`away
cisco has joined #ruby
blackmes1 has joined #ruby
iooner has joined #ruby
hobodave has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
jxs_ has quit [Remote host closed the connection]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has quit [Client Quit]
blackmes1 has quit [Ping timeout: 252 seconds]
crameth has joined #ruby
BSaboia has joined #ruby
tubuliferous has joined #ruby
Moosashi has joined #ruby
aeterne has joined #ruby
chouhoulis has quit [Remote host closed the connection]
madgen has joined #ruby
chouhoulis has joined #ruby
kristofferR has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
lsmola has quit [Ping timeout: 252 seconds]
finnnnnnnnnnn has joined #ruby
rbennacer has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
theery has joined #ruby
<theery> Anyone have any experience with the barby barcode gem and want some bounty points? http://stackoverflow.com/questions/37015579/printing-with-barby-gem-barcode-image-is-fuzzy
Alina-ma- has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
zzz has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 252 seconds]
chopin has joined #ruby
cisco has quit [Quit: Leaving.]
rbennacer has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
mtkd has joined #ruby
Amnez777 has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
idefine has joined #ruby
Amnez777 has joined #ruby
Tohuw_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
idefine has quit [Read error: Connection reset by peer]
Tohuw has quit [Read error: Connection reset by peer]
Chachi has joined #ruby
sdothum has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
haxrbyte has joined #ruby
mjuszczak has quit []
skalfyfan has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
linoespinoza has joined #ruby
northrup has joined #ruby
synthroid has quit []
Alina-ma- has quit [Changing host]
Alina-ma- has joined #ruby
Alina-ma- is now known as Alina-malina
chopin has quit [Remote host closed the connection]
<zacts> hello rubyists
<benzrf> hi
kareeole_ has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
mwlang has quit [Quit: mwlang]
mjuszczak has joined #ruby
Gasher has joined #ruby
s00pcan_ has joined #ruby
arup_r has left #ruby [#ruby]
flashpoint9 has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 250 seconds]
clifford_ has joined #ruby
yos7ph has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest38 has joined #ruby
bruce_lee has quit [Ping timeout: 260 seconds]
clifford_ has quit [Remote host closed the connection]
melbu has joined #ruby
pawnbox has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
johnmilton has joined #ruby
phantummm has quit [Quit: WeeChat 1.4]
FooMunki has quit [Quit: FooMunki]
Chachi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goldfax has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
surrounder has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
SCHAAP137 has quit [Quit: Leaving]
Chachi has joined #ruby
Moosashi has quit [Quit: Moosashi]
hayden__ has quit [Ping timeout: 260 seconds]
hayden__ has joined #ruby
SCHAAP137 has joined #ruby
mjuszczak has quit []
maxiu has joined #ruby
cd83x_ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
cd83x_ has joined #ruby
SCHAAP137 has quit [Ping timeout: 240 seconds]
ChiefAlexander has quit [Quit: Leaving...]
whathappens has joined #ruby
mwlang has joined #ruby
GinoManWorks has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
yfeldblum has joined #ruby
johnmilton has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
hahuang65 has joined #ruby
FooMunki has joined #ruby
GoatHandler has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
sneakerhax has joined #ruby
<ghr> theery does your png look okay when you open it on your desktop?
ardu has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
<ironcamel> what is the best way to install all my ruby deps to a local folder? is bundler the thing i want?
djbkd has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
<ironcamel> i'm looking for the ruby equivalent of perl's local::lib module, if that helps.
whippythellama has quit [Ping timeout: 260 seconds]
<shevy> eam knows perl!
whiteline has quit [Read error: Connection reset by peer]
swills has quit [Ping timeout: 250 seconds]
akkad has quit [Ping timeout: 276 seconds]
uncot has joined #ruby
uncot has quit [Client Quit]
haxrbyte_ has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
nofxx has quit [Ping timeout: 252 seconds]
ardu has left #ruby [#ruby]
aeontech has joined #ruby
nofxx has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
akem_ has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Moosashi has joined #ruby
duckpuppy has joined #ruby
whathappens has quit [Remote host closed the connection]
whiteline has joined #ruby
mwlang has quit [Quit: mwlang]
whathappens has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
SCHAAP137 has joined #ruby
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
zzz has joined #ruby
ur5us has quit [Remote host closed the connection]
mwlang has joined #ruby
Elvin has joined #ruby
whathapp_ has joined #ruby
zzz has quit [Client Quit]
gizless has joined #ruby
mwlang has quit [Client Quit]
<havenwood> ironcamel: gem install -g path/to/Gemfile -i path/to/install/dir
akkad has joined #ruby
<ironcamel> havenwood++ thanks
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tubuliferous has joined #ruby
text1 has joined #ruby
<havenwood> ironcamel: or yeah, with bundler you can use the --deployment flag or --path path/to/install/dir
solocshaw has joined #ruby
<havenwood> the bundler flags are "remembered", they persist in a conf file
surrounder has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<havenwood> ironcamel: The built-in RubyGems way works well and has been around for several years but it's seldom used.
linoespinoza has quit [Quit: Textual IRC Client: www.textualapp.com]
<ironcamel> why is it seldom used?
freerobby has joined #ruby
<havenwood> ironcamel: Mostly because folk don't read release notes. :P I don't think most Rubyists know about RUBYGEMS_GEMDEPS=~ and gem install -g
Moosashi has quit [Ping timeout: 276 seconds]
ldnunes has quit [Quit: Leaving]
gizmore has quit [Ping timeout: 250 seconds]
ramortegui has quit [Quit: Ex-Chat]
whippythellama has joined #ruby
safe has quit [Ping timeout: 276 seconds]
tubuliferous has quit [Ping timeout: 265 seconds]
<havenwood> ironcamel: Bundler is required by the default Rails setup. I'd like to see more use of RubyGem's dependency resolver.
fmcgeough has quit [Quit: fmcgeough]
<ironcamel> the version of gem i have on this server doesn't seem to have a -g option (1.3.7)
<havenwood> We need to use it to bring any remaining bugs to light so it can be the Rails 6 default.
<havenwood> ironcamel: That's quite old.
<havenwood> ironcamel: I'd say update RubyGems but you need to update Ruby.
<havenwood> Ruby ships with RubyGems these days.
<ironcamel> i can't
<havenwood> RubyGems 2.
<ironcamel> not on this server
<havenwood> ironcamel: Eek, you're past EoL.
<havenwood> Hope they're backporting security updates.
freerobby has quit [Quit: Leaving.]
<havenwood> Because Ruby core isn't.
<havenwood> 2.1.9+ receive security updates.
<ironcamel> i understand, but i have no control over it
<havenwood> 2.1 is in maintenance mode.
<havenwood> rgr that
blackmes1 has joined #ruby
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> ironcamel: Bundler it is!
johnmilton has joined #ruby
braincra- has joined #ruby
braincrash has quit [Ping timeout: 252 seconds]
braincra- is now known as braincrash
last_staff has quit [Quit: good night everyone]
htmldrum has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
freerobby has quit [Client Quit]
eljimmy has joined #ruby
<ironcamel> havenwood: how do i make bundler forget?
htmldrum has quit [Ping timeout: 246 seconds]
<havenwood> ironcamel: Edit the config.
kareeole_ is now known as kareeoleez
<shevy> lol
<havenwood> ironcamel: .bundle/config
<ironcamel> ah, that behavior only persists for the local dir
<ironcamel> that seems more sane
<ironcamel> i thought i had changed bundler's behavior globally
spiette has quit [Ping timeout: 276 seconds]
htmldrum has joined #ruby
gizmore has joined #ruby
whathapp_ has quit [Remote host closed the connection]
mwlang has joined #ruby
Es0teric has joined #ruby
GinoMan2440 has joined #ruby
_orangejuice has joined #ruby
gizless has quit [Ping timeout: 246 seconds]
<_orangejuice> hi dear rubyists. Im making a simple two page web store with a blog. any known practices to make templates load real fast? php feels a little snappier than the sinatra + erb combo
htmldrum has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving]
nullFxn has quit [Quit: leaving]
Es0teric has quit [Ping timeout: 250 seconds]
nullFxn has joined #ruby
panpainter has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
tubuliferous has joined #ruby
<havenwood> _orangejuice: for a two page app you could just do a raw Rack app instead of Sinatra on top of Rack - or generate a static with Jekyll, Middleman or the like
whathappens has joined #ruby
<havenwood> _orangejuice: Or go to the metal with mruby and nginx for the very fastest Ruby has to offer: https://github.com/matsumoto-r/ngx_mruby#readme
charliesome has joined #ruby
yqt has joined #ruby
<havenwood> _orangejuice: Here's a benchmark of Hello Worlds in various Rack adapter and Rack itself: https://github.com/luislavena/bench-micro#readme
<havenwood> Roda is my personal fav.
nullFxn has quit [Client Quit]
tubuliferous has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
panpainter has joined #ruby
chopin has joined #ruby
nullFxn has joined #ruby
blackmes1 has quit [Read error: Connection reset by peer]
pabs has quit [Ping timeout: 244 seconds]
blackmes1 has joined #ruby
pabs has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eljimmy has quit [Quit: This computer has gone to sleep]
nullFxn has quit [Client Quit]
<_orangejuice> havenwood: good suggestions. reading roda. when using rack, will i need to write boilerplate for security?
Tohuw_ has quit [Read error: Connection reset by peer]
johnmilton has quit [Remote host closed the connection]
idefine has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
panpainter has quit [Ping timeout: 252 seconds]
<havenwood> _orangejuice: depending on what you need, yeah - in Roda you'd review the security plugins and include the ones you need
<havenwood> _orangejuice: and for Roda auth there's Rodauth: http://rodauth.jeremyevans.net
jenrzzz has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
goldfax has quit [Ping timeout: 276 seconds]
mikeiniowa has quit [Remote host closed the connection]
nullFxn has joined #ruby
duckpupp1 has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
<musl> grep \.io
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<musl> ^^ Eep! Sorry, mt.
Elvin has joined #ruby
mikeiniowa has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
Elvin has quit [Client Quit]
Elvin has joined #ruby
<musl> While I'm here; is there a more elegant way to do this:
<musl> DEFAULTS.merge( ENV.select { |k,_| DEFAULTS.keys.include? k } )
panpainter has joined #ruby
<musl> (I'd like to merge in the environment, but the resulting hash should only have keys from DEFAULTS.)
whathappens has quit [Remote host closed the connection]
nullFxn has quit [Quit: leaving]
BSaboia has quit [Ping timeout: 240 seconds]
nullFxn has joined #ruby
<Ox0dea> musl: Sounds like you want Hash#&, but that doesn't exist yet.
whathappens has joined #ruby
chopin has quit [Remote host closed the connection]
Azure has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
<havenwood> Rails 5 RC1 released: https://github.com/rails/rails/releases
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<Ox0dea> Maybe intersection isn't as well-defined for Hash as it is for Set and Array, but just doing it based on matching keys seems pretty intuitive.
<smathy> musi: DEFAULTS.merge ENV.slice *DEFAULTS.keys
gnufied has joined #ruby
<smathy> musl, ^
mjuszczak has joined #ruby
<Ox0dea> >> ENV.slice rescue $!
<ruby[bot]> Ox0dea: # => #<NoMethodError: undefined method `slice' for #<Object:0x41a9a90c>> (https://eval.in/566732)
GodFather has quit [Ping timeout: 276 seconds]
idefine has quit [Remote host closed the connection]
yos7ph has quit [Quit: Leaving]
<smathy> Oh, ha :) Forgot it wasn't actually a Hash.
BSaboia has joined #ruby
<Ox0dea> >> {}.respond_to? :slice
<ruby[bot]> Ox0dea: # => false (https://eval.in/566733)
<Ox0dea> (I'll stop.)
<Ox0dea> musl should just be able to say `DEFAULTS & ENV`.
<smathy> Oh noes, it's worse than I thought. /me goes back to #RoR with tail firmly planted
evie_hammond has joined #ruby
<Ox0dea> It's pretty strange that Hash#& isn't core after all this time. :/
<smathy> ...considering what is.
rodfersou has quit [Quit: leaving]
duckpupp1 has quit [Ping timeout: 252 seconds]
codecop has quit [Remote host closed the connection]
<Ox0dea> >> (Array.instance_methods & Hash.instance_methods).size
<ruby[bot]> Ox0dea: # => 130 (https://eval.in/566734)
<Ox0dea> I'm just sayin'.
ur5us has joined #ruby
<benzrf> Ox0dea: lol
<musl> smathy: Interesting.
<musl> Ox0dea: Very cool.
polishdub has quit [Quit: Leaving]
<smathy> musl, unfortunately not at all interesting :(
<benzrf> >> (Array.instance_methods & Hash.instance_methods - Enumerable.instance_methods).size
<ruby[bot]> benzrf: # => 77 (https://eval.in/566735)
<benzrf> not too shabby o:
drptbl has joined #ruby
panpainter has quit []
<theery> @ghr Yes, and I just responded to you on S.O. and updated my post to make it more clear.
<theery> @ghr That's what weird, is the PNG looks perfect and crisp even when zooming way in
stannard has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 244 seconds]
<ghr> I just had a look at some old code and we used the rmagick formatter
<ghr> the png looks identical though, so not sure its that
<ghr> might be worth a go, though?
crystal77 has joined #ruby
<theery> Any chance you have a barcode made from that you could send me to try to print?
<theery> @ghr ^
<ghr> 2 seconds
<ghr> well, 2 minutes :)
<theery> thanks!
workmad3 has joined #ruby
duderonomy has quit [Ping timeout: 260 seconds]
Jackneill has quit [Ping timeout: 252 seconds]
[Butch] has quit [Quit: I'm out . . .]
<musl> Ox0dea: `DEFAULTS & ENV` no worky: https://eval.in/566737
SCHAAP137 has quit [Quit: Leaving]
SilverKey has quit [Quit: Halted.]
<Ox0dea> musl: Yes, I raised the same complaint.
<musl> ah, word. I mis-understood.
mjuszczak has quit []
hobodave_ has quit [Quit: Computer has gone to sleep.]
drptbl_ has joined #ruby
<ghr> I do get a slightly bigger png from using rmagick
workmad3 has quit [Ping timeout: 260 seconds]
<Ox0dea> I suspect optipng and/or pngcrush could do away with that.
idletask has quit [Remote host closed the connection]
<Ox0dea> musl: Other than swapping `.keys.include? k` for `.key? k`, I think that's the best it gets right meow. :/
<theery> @ghr That prints fuzzy too. So weird
idletask has joined #ruby
<musl> Ox0dea: :D Thanks for that.
drptbl has quit [Ping timeout: 252 seconds]
<Ox0dea> musl: Sure thing. :)
azor has left #ruby ["WeeChat 1.4"]
<Ox0dea> It's definitely better than creating that intermediate Array each time, and constructing a Set to query would be overkill, not to mention almost entirely redundant.
<ghr> theery when I actually used this in production we rendered it in to a PDF with prawn or something similar
johnmilton has joined #ruby
Guest38 has joined #ruby
<theery> @ghr I'm doing that too in the end, but I have to make a png first b/c I need to put some text in the pdf as well. I guess for kicks though I could see if going straight to pdf is any different
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd83x_ has quit [Remote host closed the connection]
<ghr> trying to figure out what the pdf lib was – rails 2 app; no gemfile!
Guest38 has quit [Max SendQ exceeded]
<theery> hah
<theery> thanks for helping, i've been stuck on this for days, and tried all kinds of different settings etc
<theery> it's the last piece of a big project i'm finishing up
diegoviola has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.4]
<theery> I'm using wickedpdf
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<ghr> yeah, like I said, this was quite some time ago! :)
johnmilton has quit [Ping timeout: 240 seconds]
drewo has quit [Ping timeout: 276 seconds]
zenlot6 has joined #ruby
<ghr> theery got a barcode that prints successfully your end?
lukeholder has joined #ruby
<theery> Yeah, it's in a pdf from amazon though
zenlot has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
kareeoleez has quit [Remote host closed the connection]
VeryBewitching has quit [Quit: Konversation terminated!]
<ghr> just printed one of the examples from imgur and it seems okay. its not perfect but it looks like it would scan to me
drewo has joined #ruby
<ghr> without a scanner its a bit hard to say of course!
<theery> Yeah
Chachi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 250 seconds]
freerobby has quit [Client Quit]
freerobby has joined #ruby
freerobby has quit [Client Quit]
workmad3 has joined #ruby
<theery> @ghr I just went straight to PDF and I think it's good!
<musl> Ox0dea: And thus, 'core_extensions/union_merge.rb' was born: https://eval.in/566753 Thoughts?
<Gasher> ghr; hello, short version of me :D
johnmilton has joined #ruby
dikaio has joined #ruby
<ghr> theery nice! :)
<ghr> Gasher heh, hello!
mesamoo has quit [Quit: Konversation terminated!]
workmad3 has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
Coldblackice has joined #ruby
SCHAAP137 has joined #ruby
<Ox0dea> musl: Nifty!
<Ox0dea> Misnamed, though. :P
<musl> Yeah?
<Ox0dea> Yeah.
<musl> I can refactor that, what should it be?
<Ox0dea> You're doing intersection, not union.
jenrzzz has joined #ruby
<musl> Ohhh, riiiiight. Yeah, I am.
<Ox0dea> Be advised that if you've got a bang method, it makes sense to just define the non-bang one in terms of that.
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<musl> I'm not sure I understand. How?
edavis has joined #ruby
<Ox0dea> `def union_merge other; dup.union_merge! other; end`
<musl> Clear. Awesome.
<Ox0dea> \o/
senayar has joined #ruby
<Ox0dea> You might also consider structuring it as a Refinement, then you can `using UnionMerge` only in the places where you want such functionality, rather than sticking it onto Hash directly and affecting every single Hash in the system.
<musl> Heh, Hash#intersect! sounds better, anyway.
jenrzzz has quit [Ping timeout: 244 seconds]
<musl> Oo. I'll try that out.
gregf has quit [Quit: brb]
<musl> Oh, hells yes; I love that. Doin' it as a refinement.
firstdayonthejob has quit [Ping timeout: 276 seconds]
<musl> Screw ruby < 2.0 anyhow. :P
cd83x has joined #ruby
flashpoint9 has joined #ruby
hahuang65 has joined #ruby
<Ox0dea> Nice. Ruby 1 is long dead in theory; it is right and proper to strive to have it be so in practice. :P
<musl> Agreed. Thanks for your help!
<Ox0dea> No worries.
kobain has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
gregf has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
nanoyak has joined #ruby
renderfu_ has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
phpwebdev has quit [Ping timeout: 260 seconds]
statelesscode has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
kratos2511 has joined #ruby
FooMunki has quit [Quit: FooMunki]
davedev2_ has joined #ruby
gnufied has quit [Ping timeout: 244 seconds]
diegoaguilar has joined #ruby
moeabdol has joined #ruby
davedev2_ has quit [Remote host closed the connection]
weemsledeux has joined #ruby
davedev24 has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
FooMunki has joined #ruby
benlieb has quit [Client Quit]
saneax_AFK is now known as saneax
trinaldi has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
Dimik has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
ftj has joined #ruby
mnrmnaugh has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 250 seconds]
renderfu_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
chouhoulis has joined #ruby
whathappens has quit [Remote host closed the connection]
gnufied has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
lessless has quit [Client Quit]
swills has joined #ruby
DevastatingDave has quit [Ping timeout: 244 seconds]
sepp2k has quit [Read error: Connection reset by peer]
mnrmnaugh has joined #ruby
renderfu_ has quit [Read error: Connection reset by peer]
renderful has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
renderfu_ has joined #ruby
mtkd has joined #ruby
whathappens has joined #ruby
<bazz_> can I programatically open a pre-defined module using its symbol?
renderful has quit [Ping timeout: 252 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> What exactly are you trying to do that'd need that?
<Ox0dea> bazz_: Object.const_get(:Foo).module_eval { ... }
biberu has quit []
<baweaver> not Kernel?
<Ox0dea> Not Kernel.
wldcordeiro has joined #ruby
<havenwood> >> Object.public_method(:const_get).owner
<ruby[bot]> havenwood: # => Module (https://eval.in/566758)
<Ox0dea> I suppose clarity of intent would be good here. :P
<havenwood> hehe
<baweaver> Still though, why in the world you'd _need_ it is a relevant question
<baweaver> especially given the relative newness to Ruby
whathappens has quit [Remote host closed the connection]
<Ox0dea> I sell rope.
<baweaver> I try and talk people out of using that rope in a way that would lead to negative consequences and bodily harm
duncannz has joined #ruby
<bazz_> baweaver, monkey patching ('nuff said?)
arescorpio has joined #ruby
<havenwood> bazz_: ahem, freedom patching
whathappens has joined #ruby
<bazz_> elaborate
<baweaver> joke
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
<bazz_> There may be flaws in my monkey-patch design but it would take hours of research with a professional to create the deduction
cdg has joined #ruby
<baweaver> When you're new to Ruby, whatever you can do to avoid monkeypatching and metaprogramming, you should do
<bazz_> I did occasionally consider redesigning the API of the "mother-project" ... but I'm so heavily "under" the monkey-patched solution it doesn't seem to matter
<baweaver> The newer you are to the language, the more likely you are to fall into the very dangerous parts trying to be clever
<baweaver> sunk cost fallacy.
<baweaver> but you're already set on this, so god speed
<bazz_> thanks I'll be alright
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
solocshaw1 has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
cdg has quit [Ping timeout: 240 seconds]
amclain has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
whippythellama has quit [Quit: WeeChat 1.5]
RegulationD has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 240 seconds]
finisherr has left #ruby [#ruby]
ramfjord has joined #ruby
diegoaguilar has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
jaguarmagenta has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
nullFxn has quit [Quit: leaving]