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
<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]
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?
<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
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]
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?
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]
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" )
<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 :)
<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]
<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
<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]
<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
<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.
<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…]
<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.
<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.]