apeiros changed the topic of #ruby to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Joufflu has joined #ruby
DEA7TH has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 245 seconds]
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
tris has quit [Quit: Leaving]
DavidDud_ has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Read error: Connection reset by peer]
kaiZen has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
DavidDudson has joined #ruby
MatthewsFace has joined #ruby
endzYme has joined #ruby
<endzYme> anyone really experienced with writing pure ruby applications? I am trying to find a design pattern for integration configurations that makes sense for a Grape API - any recommended reading?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Volsus has joined #ruby
<mwlang> bradland and wallerdev: thanks for your input. this should be better: https://gist.github.com/mwlang/30bbbe9f5530afa2c696
Cache_Money has joined #ruby
aiguu has quit [Ping timeout: 246 seconds]
jespada has quit [Ping timeout: 256 seconds]
teddyp1cker has joined #ruby
Takle has joined #ruby
bigmac has quit [Read error: Connection reset by peer]
Beoran_ has quit [Ping timeout: 264 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
tuelz has quit [Ping timeout: 255 seconds]
bigmac has joined #ruby
Takle has quit [Remote host closed the connection]
jottr has joined #ruby
<mwlang> endzYme: such as…. https://github.com/intridea/grape
Takle has joined #ruby
baweaver has quit [Ping timeout: 265 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
DerisiveLogic has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
x1337807x has quit [Ping timeout: 250 seconds]
razieliyo has joined #ruby
razieliyo has joined #ruby
<endzYme> mwlang: yes that's the framework I'm using. I am wondering if there is a general pattern around handling configs loaded from an outside file. I've been seeing a lot of articles mention making a separate module for storage and reading and also seen metions of writing a dsl for configs
<endzYme> didn't know if there's some preferred reading im just totally missing
<endzYme> or maybe overcomplicating it
<rrrutr> hi, i installed new version ruby with RVM, how can i import gems from previous version of ruby?
<mwlang> endzYme: Just store config data in yaml files.
nahtnam has joined #ruby
<endzYme> mwlang: and just use a basic yaml.load_file in scope with the grape app?
<mwlang> yes. That’s what I would normally do. if the environment matters (development, production, test, etc.) then I’d follow the same convention with rails’ database.yml file.
iliketurtles has quit [Quit: zzzzz…..]
kaiZen has joined #ruby
nateberkopec has quit [Quit: Leaving...]
justin_pdx has quit [Quit: justin_pdx]
dstarh has joined #ruby
nateberkopec has joined #ruby
Crazy_Atheist has joined #ruby
<jhass> rrrutr: rvm help gemset, I think there was a migrate option or something. Check by in #rvm for details
baweaver has joined #ruby
Beoran_ has joined #ruby
tuelz has joined #ruby
charliesome has joined #ruby
mleung has quit [Quit: mleung]
tkuchiki has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
hcnewsom has quit [Quit: hcnewsom]
Megtastique has joined #ruby
<endzYme> mwlang: thanks man - i think i was over complicating it
Megtastique has quit [Max SendQ exceeded]
MatthewsFace has quit [Remote host closed the connection]
Megtastique has joined #ruby
a5i has joined #ruby
PapaFrog has joined #ruby
<rrrutr> what is size of ruby team?
<PapaFrog> rugby?
oo_ has quit [Remote host closed the connection]
<Bankzy> 15 on the field
hcnewsom has joined #ruby
<centrx> 1500 pounds. 4500 pounds when in Sumo mode
bim_ has quit [Remote host closed the connection]
<Bankzy> small pack there
ismaelga has quit [Remote host closed the connection]
rrrutr has quit [Quit: Leaving]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
nateberkopec has quit [Quit: Leaving...]
DavidDudson has joined #ruby
bootstrappm has joined #ruby
<jhass> mmh https://github.com/ruby/ruby/graphs/contributors lists surprisingly few
scripore has joined #ruby
rocknrollmarc has joined #ruby
Asher has quit [Quit: Leaving.]
bim has joined #ruby
The has joined #ruby
The has left #ruby [#ruby]
Asher has joined #ruby
ismaelga has joined #ruby
hatzopoulos has quit [Quit: Leaving]
jottr has quit [Ping timeout: 256 seconds]
TheLastExile has joined #ruby
TheLastExile has left #ruby [#ruby]
bim has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 246 seconds]
apeiros_ has quit [Remote host closed the connection]
<mwlang> jhass: I’m not surprised. It takes quite a bit of dedication to really get good at multiple tools and development environments to build a better language.
apeiros_ has joined #ruby
<jhass> dunno, programming languages are just programs after all
ghostpl_ has joined #ruby
<jhass> it's not really more complex than rails for example
<wallerdev> a lot of fixes came in patch files that were reviewed
scripore has quit [Quit: Leaving]
<jhass> and there's plenty of stdlib to maintain
aiguu has joined #ruby
<mwlang> jhass: not saying “more complex” so much as mastering say, both C and Ruby
ponga has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 244 seconds]
aiguu has quit [Client Quit]
<jhass> still, 35 vs 2,3k for rails? seems way off
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang> If I did both C and Ruby every day, I’d probably be good at contributing to Ruby, but I don’t….I do Ruby, HTML, JavaScript, and SQL every day.
<jhass> Crystal has already 28
<mwlang> LoC?
jonr22 has joined #ruby
<mwlang> At least Crystal is moving more and more towards everything written in Crystal.
<jhass> contributors
<mwlang> Ah.
<jhass> Crystal already is entirely written in itself
DavidDudson has quit [Read error: Connection reset by peer]
DavidDud_ has joined #ruby
<mwlang> jhass: wasn’t that a recent achievement?
<jhass> not that recent
<jhass> see ^
<mwlang> eh, its been 2 years. doh!
<mwlang> time flies when you’re not paying attention. :-)
bigmac has quit [Read error: Connection reset by peer]
mistergibson has joined #ruby
tkuchiki_ has joined #ruby
nii2361 has joined #ruby
eshy has quit [Ping timeout: 240 seconds]
bigmac has joined #ruby
karmatr0n has joined #ruby
eshy has joined #ruby
<mwlang> anyway, I’m just sayin’ most developers don’t feel comfortable going into the bowels of Ruby, but by contrast, if everything in a library is in their core language, then they’re more apt to dig in and perhaps contribute. That’s the diff, IMHO between contributing to Rails and to Ruby.
ghostpl_ has quit [Ping timeout: 245 seconds]
kalusn has quit [Remote host closed the connection]
Bankzy has quit [Ping timeout: 264 seconds]
<centrx> yeah Rails is all written in Ruby so lowers barrier to entry
jonr22 has quit [Ping timeout: 256 seconds]
tkuchiki has quit [Ping timeout: 256 seconds]
hcnewsom has quit [Quit: hcnewsom]
tris has joined #ruby
tohsig has quit [Quit: Textual IRC Client: www.textualapp.com]
<mwlang> or they’re like me: don’t have the stomach for mastering algos and being rigorous with their discovery, publishing to the community for feedback and then meticulously implementing the PR.
sivsushruth has quit [Ping timeout: 256 seconds]
juanpablo_ has joined #ruby
havenwood has quit [Remote host closed the connection]
dfinninger has joined #ruby
amclain has joined #ruby
livingstn has joined #ruby
eshy has quit [Max SendQ exceeded]
eshy has joined #ruby
Rephiax has joined #ruby
eshy has quit [Client Quit]
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
juanpablo_ has quit [Ping timeout: 264 seconds]
iteratorP has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
bigmac has quit [Read error: Connection reset by peer]
sevenseacat has joined #ruby
tris has quit [Ping timeout: 256 seconds]
karmatr0n has quit [Remote host closed the connection]
maximski has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
towski__ has joined #ruby
cjim_ has joined #ruby
rocknrollmarc has joined #ruby
tris has joined #ruby
jm0 has left #ruby [#ruby]
towski_ has quit [Ping timeout: 256 seconds]
rocknrollmarc has quit [Max SendQ exceeded]
towski__ has quit [Client Quit]
rocknrollmarc has joined #ruby
maximski has quit [Client Quit]
startupality has quit [Quit: startupality]
startupality has joined #ruby
startupality has quit [Client Quit]
baweaver has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
towski_ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Ping timeout: 240 seconds]
rocknrollmarc has joined #ruby
x1337807x has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
bricker has quit [Quit: leaving]
rocknrollmarc has joined #ruby
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
pontiki has joined #ruby
arrubin has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DavidDudson has joined #ruby
bim has joined #ruby
Sawbones has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tris has quit [Quit: Leaving]
bim has quit [Remote host closed the connection]
DavidDud_ has quit [Ping timeout: 256 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
oo_ has joined #ruby
bogeyd6 has joined #ruby
graydot has quit [Quit: graydot]
graydot has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
<reactormonk> try rubinius then :-)
kaiZen has quit [Quit: ..]
amystephe has quit [Quit: amystephe]
kobain has joined #ruby
jonr22 has joined #ruby
marr has quit []
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
lordkryss has quit [Quit: Connection closed for inactivity]
starless has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
Megtastique has quit []
Takle has quit [Remote host closed the connection]
tjohnson has quit [Quit: Connection closed for inactivity]
tier has quit [Remote host closed the connection]
Megtastique has joined #ruby
nii2361 has quit [Ping timeout: 256 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
jottr has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
nii2361 has joined #ruby
KevinPath has joined #ruby
<KevinPath> Hello all
<ramfjord> hello KevinPath
_2_monalisa has joined #ruby
_2_monalisa has left #ruby [#ruby]
<KevinPath> Hey I was pushed this way because I am currently in the process of learning Ruby
fmcgeough has quit [Quit: fmcgeough]
crdpink2 has joined #ruby
narcan has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
<KevinPath> How long have you been programming in Ruby
cjim_ has quit [Quit: (null)]
martin_work_ has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
ARCADIVS has joined #ruby
martin_work has quit [Ping timeout: 265 seconds]
martin_work_ is now known as martin_work
nii2361 has quit [Ping timeout: 246 seconds]
_djbkd has quit [Quit: My people need me...]
ponga has joined #ruby
Sawbones has quit [Remote host closed the connection]
Megtastique has quit []
robustus|Off has joined #ruby
VBlizzard is now known as _blizzy_
robustus|Off is now known as robustus
patrick99e99 has quit [Read error: Connection reset by peer]
tbon has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
martin_work has quit [Client Quit]
nii2361 has joined #ruby
SegFaultAX has quit [Excess Flood]
baweaver has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 250 seconds]
<jhass> if you have a question, just ask, no need for formalities ;)
ponga has quit [Ping timeout: 240 seconds]
n80 has joined #ruby
SegFaultAX has joined #ruby
rocknrollmarc has quit [Ping timeout: 252 seconds]
patrick99e99 has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
juanpablo_ has joined #ruby
jerematic has joined #ruby
kobain has joined #ruby
KevinPath has quit [Quit: Page closed]
nii2361 has quit [Ping timeout: 256 seconds]
MatthewsFace has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
ponga has joined #ruby
jerematic has quit [Ping timeout: 245 seconds]
IrishGringo has joined #ruby
juanpablo_ has quit [Ping timeout: 245 seconds]
jeromelanteri has joined #ruby
dseitz has joined #ruby
martin_work has joined #ruby
n80 has quit [Ping timeout: 252 seconds]
slyv has joined #ruby
fgo has joined #ruby
Megtastique has joined #ruby
freerobby has joined #ruby
apoplexy has joined #ruby
Sawbones has joined #ruby
jenrzzz has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
_honning_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
nii2361 has joined #ruby
boshhead has quit [Quit: Reconnecting]
boshhead has joined #ruby
slyv has quit [Remote host closed the connection]
RegulationD has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
shadoi1 has quit [Quit: Leaving.]
nii2361 has quit [Ping timeout: 252 seconds]
ItSANgo has joined #ruby
Regulati_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 240 seconds]
unreal_ has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
Hirzu has joined #ruby
icarus has quit [Ping timeout: 252 seconds]
reinaldob has quit [Remote host closed the connection]
unreal has quit [Ping timeout: 246 seconds]
Regulati_ has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
nii2361 has joined #ruby
sevvie has joined #ruby
ismaelga has quit [Remote host closed the connection]
shadeslayer has joined #ruby
<apoplexy> shevy: thinking of u :]
martin_work has quit [Quit: martin_work]
teddyp1cker has quit [Ping timeout: 250 seconds]
Hirzu has quit [Ping timeout: 252 seconds]
teedash has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
<teedash> hello
<teedash> (:
<jhass> hi
<teedash> hows it going?
charliesome has quit [Quit: zzz]
astrobunny has joined #ruby
bootstrappm has left #ruby [#ruby]
tvon has quit [Quit: rebooting]
reinaldob has quit [Ping timeout: 256 seconds]
graydot has quit [Quit: graydot]
nucular11 has quit [Quit: Textual IRC Client: www.textualapp.com]
rbennacer has joined #ruby
charliesome has joined #ruby
MatthewsFace has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
tvon has joined #ruby
maletor has joined #ruby
teedash has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ghostpl_ has joined #ruby
jonr22 has quit [Remote host closed the connection]
waxjar has quit [Ping timeout: 264 seconds]
tubuliferous has quit [Ping timeout: 272 seconds]
rtlong has joined #ruby
coderhs has joined #ruby
krz has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
nateberkopec has joined #ruby
The_Phoenix has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
jlast has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
ghostpl_ has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 264 seconds]
pullphinger has joined #ruby
pullphinger15 has joined #ruby
pullphinger15 has quit [Client Quit]
Sembei has quit [Read error: Connection reset by peer]
tjohnson has joined #ruby
graydot has joined #ruby
havenwood has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sembei has joined #ruby
tuelz has joined #ruby
Beoran_ has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tus has quit []
graydot has quit [Ping timeout: 256 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
nateberkopec has quit [Quit: Leaving...]
justin_pdx has joined #ruby
tcrypt has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
lemur has joined #ruby
pheona has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
claptor has joined #ruby
razieliyo has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
bigkevmc_ has joined #ruby
bigkevmcd has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
Beoran_ has joined #ruby
oo_ has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
DavidDudson has joined #ruby
jefus has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 256 seconds]
claptor has quit [Quit: this channel is bakas]
Rephiax__ has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
neanderslob has joined #ruby
Rephiax has quit [Ping timeout: 264 seconds]
rtlong has quit [Quit: Leaving...]
jottr has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
audiodude has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rbennacer has quit [Remote host closed the connection]
mleung has joined #ruby
adriancb has quit [Remote host closed the connection]
_honning_ has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
tbon has joined #ruby
yfeldblum has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Yzguy_ has joined #ruby
firedragon has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tuelz has quit [Quit: WeeChat 1.0]
Megtastique has quit []
Volsus has quit [Ping timeout: 256 seconds]
lumidragon has quit [Ping timeout: 255 seconds]
sevvie has quit [Ping timeout: 252 seconds]
Rephiax__ has quit []
Dreamer3 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
acl_ has joined #ruby
DerisiveLogic has joined #ruby
Channel6 has joined #ruby
adamjleonard has quit [Quit: Leaving...]
avleen has joined #ruby
kblake has quit [Remote host closed the connection]
mistermocha has joined #ruby
<avleen> hi folks. i have a long string, which sometimes ends in a bunch of: 'key="value" key="some value" key="blah blah"'. I need a faster option than String.scan() to find and pull out the key/quoted-value pairs.
<avleen> someone suggested using substr to find the first =, and then working backwards and forward
<avleen> but that seems more complex and possible slower
<avleen> anyone have any suggestions?
zachrab has joined #ruby
apoplexy has quit [Ping timeout: 256 seconds]
juanpablo_ has joined #ruby
Yzguy_ has quit [Quit: I'm sleeping, go away.]
Sembei has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
mistermocha has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
_gautam_ has joined #ruby
mleung has quit [Quit: mleung]
jottr has joined #ruby
yfeldblum has joined #ruby
davedev24_ has quit []
juanpablo_ has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
Sembei has joined #ruby
adamjleonard has joined #ruby
Matthews_ has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
keen__________84 has joined #ruby
keen__________83 has quit [Ping timeout: 246 seconds]
DavidDud_ has joined #ruby
rocknrollmarc has joined #ruby
jottr has joined #ruby
DavidDudson has quit [Ping timeout: 252 seconds]
DavidDud_ has quit [Client Quit]
ziyadb has quit [Quit: Connection closed for inactivity]
jlast has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
RegulationD has joined #ruby
silkfox has joined #ruby
wldcordeiro has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
silkfox has quit [Ping timeout: 272 seconds]
DavidDudson has joined #ruby
bruno- has joined #ruby
maletor has joined #ruby
braincrash has quit [Quit: bye bye]
boshhead has quit [Ping timeout: 246 seconds]
maximski has quit []
bruno- has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
acl_ has quit [Remote host closed the connection]
poguez_ has quit [Quit: Connection closed for inactivity]
jonathanwallace has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
bim has joined #ruby
oo_ has quit [Remote host closed the connection]
_gautam_ has quit [Quit: Lingo: www.lingoirc.com]
Dreamer3 has quit [Quit: Leaving...]
tubuliferous has joined #ruby
teddyp1cker has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
robbyoconnor has joined #ruby
DavidDudson has joined #ruby
bim has quit [Ping timeout: 265 seconds]
jonr22 has joined #ruby
jonathanwallace has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
jusmyth has joined #ruby
GnuYawk has joined #ruby
aiguu has joined #ruby
<aiguu> hello~
PapaFrog has left #ruby [#ruby]
jonr22 has quit [Ping timeout: 244 seconds]
iteratorP has quit [Quit: Leaving...]
endzYme has left #ruby [#ruby]
ghostpl_ has joined #ruby
iteratorP has joined #ruby
kyb3r_ has joined #ruby
jefus has joined #ruby
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
mleung has joined #ruby
towski_ has quit [Remote host closed the connection]
claptor has joined #ruby
Musashi007 has joined #ruby
dukz has joined #ruby
ghostpl_ has quit [Ping timeout: 250 seconds]
lolmaus has quit [Ping timeout: 252 seconds]
karmatr0n has joined #ruby
towski_ has joined #ruby
harfangk has joined #ruby
arescorpio has quit [Excess Flood]
towski_ has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
dukz has quit []
jenrzzz has joined #ruby
tris has joined #ruby
neanderslob has joined #ruby
astrobunny has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
dukz has joined #ruby
zenspider has quit [Quit: bye]
<audiodude> avleen: I don't know if you're still around, but maybe you can use str.index('=') to find the first = and then use scan on a substring
dukz has quit [Client Quit]
<audiodude> like my_str.rindex(' ', my_str.index('='))
<audiodude> and then substr from the rindex result to the end of the string, THEN scan
<audiodude> because scan will be operating on a smaller substring that is only the keys and values
tlarevo has joined #ruby
Mia has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 245 seconds]
tlarevo has quit [Remote host closed the connection]
audiodude has quit [Remote host closed the connection]
tlarevo has joined #ruby
audiodude has joined #ruby
tris has quit [Ping timeout: 265 seconds]
davedev24_ has joined #ruby
mistermocha has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Hijiri has joined #ruby
pdoherty has joined #ruby
fenzil has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
Alina-malina has quit [Ping timeout: 250 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
GnuYawk has quit [Ping timeout: 240 seconds]
lessless has joined #ruby
Vile` has joined #ruby
pwnz0r has joined #ruby
AlphaTech has quit []
RegulationD has joined #ruby
silkfox has joined #ruby
Volsus has joined #ruby
adamjleonard has quit [Quit: Leaving...]
lioninawhat has joined #ruby
audiodude has quit [Remote host closed the connection]
iterator_ has joined #ruby
jud^ has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
dopiee has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
iamninja_ has joined #ruby
pontiki has quit [Quit: goodnight folks]
apeiros__ has joined #ruby
renier_ has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
xibalbian has joined #ruby
tesuji_ has joined #ruby
agent_white has joined #ruby
ereslibre_laptop has joined #ruby
ereslibre_laptop has joined #ruby
iterator_ has quit [Remote host closed the connection]
eregon_ has joined #ruby
iteratorP has quit [Ping timeout: 252 seconds]
iteratorP has joined #ruby
Dreamer3 has joined #ruby
<agent_white> Evenin'
[tymat] has joined #ruby
pardusf has joined #ruby
kaspergr1bbe has joined #ruby
thomas1 has joined #ruby
contradictioned_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bogeyd6_ has joined #ruby
govg_ has joined #ruby
<shevy> yo agent_white
<agent_white> Heya shevy
coco_ has joined #ruby
mhenrixon_ has joined #ruby
Musashi007 has joined #ruby
prasselpikachu_ has joined #ruby
<vandemar> >> s="abcd ef k1=v1 k2=v2 k3=v3"; r = /^.*?(( \w+=\w+)*)$/.match s; r[1].split(' ').map{|kv| k,v = kv.split('='); {key: k, val: v}}
kke has joined #ruby
<eval-in_> vandemar => [{:key=>"k1", :val=>"v1"}, {:key=>"k2", :val=>"v2"}, {:key=>"k3", :val=>"v3"}] (https://eval.in/298981)
thomas1 is now known as evilthomas
hyperdrive has joined #ruby
shaman42_ has joined #ruby
rgs_ has joined #ruby
parus_ has joined #ruby
kevinfagan_ has joined #ruby
SirFunk_ has joined #ruby
DanKnox_ has joined #ruby
thomas1 has joined #ruby
bmn has quit [Ping timeout: 245 seconds]
parduse has quit [Read error: Connection reset by peer]
matadoer has quit [Ping timeout: 245 seconds]
DanKnox has quit [Ping timeout: 245 seconds]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
tymat has quit [Ping timeout: 245 seconds]
hdrv has quit [Ping timeout: 245 seconds]
[tymat] is now known as tymat
eregon has quit [Quit: No Ping reply in 180 seconds.]
apeiros_ has quit [Ping timeout: 245 seconds]
rbennacer has quit [Ping timeout: 245 seconds]
govg has quit [Ping timeout: 245 seconds]
jud has quit [Ping timeout: 245 seconds]
dopie has quit [Ping timeout: 245 seconds]
johnzimm has quit [Ping timeout: 245 seconds]
tekk has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Ping timeout: 245 seconds]
renier has quit [Ping timeout: 245 seconds]
coco has quit [Ping timeout: 245 seconds]
rgs has quit [Ping timeout: 245 seconds]
sushant94 has quit [Ping timeout: 245 seconds]
iamayam has quit [Ping timeout: 245 seconds]
bogeyd6 has quit [Read error: Connection reset by peer]
iamninja has quit [Read error: Connection reset by peer]
SirFunk has quit [Ping timeout: 240 seconds]
pdoherty has quit [Read error: Connection reset by peer]
kevinfagan has quit [Ping timeout: 240 seconds]
chrishough has quit [Ping timeout: 240 seconds]
mhenrixon has quit [Ping timeout: 240 seconds]
clamstar has quit [Ping timeout: 240 seconds]
kke_ has quit [Ping timeout: 240 seconds]
uxp has quit [Ping timeout: 240 seconds]
prasselpikachu has quit [Ping timeout: 240 seconds]
programmerq has quit [Ping timeout: 240 seconds]
tesuji has quit [Ping timeout: 240 seconds]
_5kg has quit [Ping timeout: 240 seconds]
parus has quit [Ping timeout: 240 seconds]
shaman42 has quit [Read error: Connection reset by peer]
zz_Haiiro has quit [Ping timeout: 240 seconds]
contradictioned has quit [Write error: Connection reset by peer]
caveat- has quit [Remote host closed the connection]
joast has quit [Ping timeout: 243 seconds]
Matadoer_ has joined #ruby
sindork has quit [Ping timeout: 245 seconds]
tekku has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 240 seconds]
DanKnox_ is now known as DanKnox
uxp has joined #ruby
justin_pdx has joined #ruby
yeticry has joined #ruby
deric_skibotn has quit [Ping timeout: 246 seconds]
BTRE has joined #ruby
_5kg has joined #ruby
zz_Haiiro has joined #ruby
AlexRussia has joined #ruby
bmn has joined #ruby
sushant94 has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
inukshuk has quit [Ping timeout: 240 seconds]
TheNet has quit [Quit: Leaving...]
nii2361 has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
iamayam has joined #ruby
aef has quit [Remote host closed the connection]
rdema is now known as busybeaver
aef has joined #ruby
mistermocha has quit [Remote host closed the connection]
busybeaver is now known as rdema
sindork has joined #ruby
caveat- has joined #ruby
bluOxigen has joined #ruby
clamstar has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
arrubin has quit [Quit: WeeChat 1.1.1]
nii2361 has joined #ruby
oo_ has joined #ruby
Channel6 has quit [Quit: Leaving]
narcan has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
lioninawhat has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
juanpablo_ has joined #ruby
attamusc has quit [Quit: Connection closed for inactivity]
arup_r has joined #ruby
hvxgr has quit [Ping timeout: 265 seconds]
hgl has quit [Ping timeout: 252 seconds]
nyanz has joined #ruby
<arup_r> Hi All
juanpablo_ has quit [Ping timeout: 264 seconds]
hgl has joined #ruby
lioninawhat has joined #ruby
<havenwood> arup_r: dotfiles!
<arup_r> yes..
<arup_r> right away
<arup_r> havenwood: you are awesome dude
<arup_r> tell me what need to do to fix it
<arup_r> havenwood:
<Radar> havenwood: help me you're my only hope
<havenwood> arup_r: bash or zsh or other?
<arup_r> bash
<havenwood> see any PATH= in your .bashrc, .profile or .bash_profile?
<havenwood> if so, what?
<arup_r> Radar: Write one book on Spree... I will try to be the first reader and buy the book.. :)
<arup_r> havenwood: one moment
<Radar> arup_r: What would a book on Spree be about?
<arup_r> That's a good question... Need to think..
<havenwood> arup_r: cat .bashrc .profile .bash_profile | grep "PATH="
<arup_r> :)
<sevenseacat> would be about Spree, duh >_>
mleung has quit [Quit: mleung]
programmerq has joined #ruby
<Radar> arup_r: I would rather write a book showing people how to build a system LIKE Spree.
<sevenseacat> hey thats a good idea! you should do that
sparr has quit [Changing host]
sparr has joined #ruby
<shevy> :D
<shevy> sevenseacat and you should catch more mice!
<sevenseacat> :(
<shevy> I once tried to rewrite the old tutorial from chris pine "learn to program", and add new stuff
<shevy> but that is really a *lot* of work...
<sevenseacat> indeed.
<sevenseacat> writing is hard work.
<arup_r> Radar: yes... that's a good idea.. and I would like to be a review member of the book.. Spree is awesome unless some one is getting the pulse of it.
tomengland has joined #ruby
<Radar> The idea would be to show a more complex application than in any Rails book.
<arup_r> Radar: Or like a community book like Pro Git..
<Radar> But show it starting from scratch and evolve it to contain complexity.
<sevenseacat> it would be a long book
<Radar> Yes, that's my fear too. It'll be long.
<shevy> hehe
<havenwood> arup_r: Remove the `export PATH=~/bin:$PATH` line and add `~/bin` to /etc/paths in the order you want it.
<sevenseacat> i looked at the amount of content we have in rails 4 in action, and then how much i wanted to put in the rails book i wanted to write.... i had so, so much more for my book
karmatr0n has quit [Remote host closed the connection]
<havenwood> arup_r: Otherwise you're good.
<arup_r> havenwood: I never added those path manually... May be Homebrew did it for me.. so I don't know in which order they should appear
<havenwood> arup_r: You may also want to check `brew doctor` and adjust /etc/paths accordingly.
Volsus has quit [Remote host closed the connection]
<havenwood> arup_r: edit: /etc/paths
<arup_r> one min..
tkuchiki_ has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
<arup_r> havenwood: yes opened..
astrobunny has joined #ruby
<arup_r> in which position should I add it ~/bin ?
<havenwood> arup_r: if you don't need ~/bin in your PATH, just remove the `export PATH=~/bin:$PATH` line (I don't know what you have in ~/bin).
<havenwood> arup_r: Look in ~/bin
<havenwood> arup_r: what's there?
<arup_r> Radar: if you ever start for such a book on Spree.. Let me know.. If I can help you.. That way I would be learning a lot too..
<arup_r> ok
<havenwood> arup_r: if you use it and want it in your PATH, put it on the bottom of the /etc/paths list.
<havenwood> or move it to somewhere in your PATH.
<arup_r> ~/bin ?
<havenwood> arup_r: do you use aws command line interface? or is it just lingering?
<arup_r> No.. In my last project I did use
<arup_r> now that's died
<havenwood> arup_r: yeah, you can have ~/bin in your PATH if you want. your choice.
tomengland has left #ruby ["Leaving..."]
<havenwood> i don't
<arup_r> ok..
<arup_r> havenwood: died means the project is over
<arup_r> :)
neanderslob__ has joined #ruby
<arup_r> So.. havenwood: question is why is it happening.. for only 2.2.0 selection using rvm .. not for the others
buub has joined #ruby
nyanz has quit []
<havenwood> arup_r: after removing the `export PATH=` line is there an error?
<havenwood> arup_r: reload your shell
neanderslob__ has quit [Remote host closed the connection]
<arup_r> ok I didn't remove it.. let me do it..
tris has joined #ruby
varunwachaspati has joined #ruby
<arup_r> so I'm removing it.. and putting ~/bin in the last /etc/paths
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
bruno- has joined #ruby
<havenwood> arup_r: just use the full path
<arup_r> yes..
<arup_r> doing one moment... I need su accees..
rhg135 has quit [Ping timeout: 255 seconds]
<arup_r> I can see it in the /etc/path as the second member already..
<arup_r> so I have to drop it to the bottom right ?
<havenwood> just remove the line from your dotfiles
dfish has joined #ruby
<arup_r> ok
<havenwood> arup_r: then reload term and check: printenv PATH
<arup_r> `export PATH=~/bin:$PATH` right ?
<arup_r> ok
<havenwood> yeah, remove that line
dfish has quit [Client Quit]
martianixor has joined #ruby
<havenwood> arup_r: you could append it instead, but it if it's already in the PATH don't: export PATH="$PATH:~/bin"
slackbotgz has joined #ruby
<havenwood> arup_r: PATH is just a colon-separated list of directories.
<arup_r> doing
<havenwood> arup_r: If you do `PATH="something:$PATH` you're prepending and `PATH="$PATH:something` for appending.
hvxgr has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
<riceandbeans> havenwood: were you the one helping me out the other day on stypi?
<havenwood> riceandbeans: i think so
<riceandbeans> havenwood: you're alright man
<riceandbeans> :)
<havenwood> arup_r: so the remaining prepended stuff is: /Users/shreyas/google-cloud-sdk/bin:/usr/local/Cellar/postgresql/9.3.4/bin:/Users/shreyas/bin:
<arup_r> ~/bin not in the PATH havenwood
<riceandbeans> and I'm buszed
<havenwood> riceandbeans: ;)
RegulationD has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
<havenwood> arup_r: you can either move that ^ stuff to the end of PATH, remove it from PATH, or leave it where it is an silence the warning.
<arup_r> that will be a good idea to off the warning.. How to do that ?
neanderslob has quit [Remote host closed the connection]
<riceandbeans> havenwood: you in LA?
<havenwood> riceandbeans: yup
<riceandbeans> wish I was man
<havenwood> arup_r: add `rvm_silence_path_mismatch_check_flag=1` to your ~/.rvmrc
<riceandbeans> I miss LA
neanderslob has joined #ruby
<arup_r> ok
<riceandbeans> bay area sucks
<riceandbeans> good job market, bad everything else
tubuliferous_ has joined #ruby
Regulati_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
zapata has quit [Quit: leaving]
<riceandbeans> havenwood: you ever meet people online that you help get into your company?
<riceandbeans> I mean, in this channel
RegulationD has quit [Ping timeout: 264 seconds]
zapata has joined #ruby
Morkel has joined #ruby
<havenwood> arup_r: now just grab latest stable for the win: rvm install 2.2.1
<havenwood> arup_r: good deal
<arup_r> hahaha.. humm that I have not installed yet.. let me do it
<havenwood> riceandbeans: of sorts
jonr22 has joined #ruby
<arup_r> for me rvm list known not showing that version
<arup_r> of ruby still
<arup_r> rvm get stable ?
lolmaus has joined #ruby
<havenwood> arup_r: rvm get head
<arup_r> ok
<arup_r> why not rvm get stable ?
<arup_r> havenwood:
<havenwood> arup_r: you can install unlisted versions, but nice to grab latest so you have checksums
yfeldblum has quit [Remote host closed the connection]
<havenwood> arup_r: haven't released since 2.2.1, soon
mistermocha has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
<arup_r> ok
<arup_r> doing
Regulati_ has quit [Ping timeout: 264 seconds]
tobago has joined #ruby
tris has quit [Quit: Leaving]
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
teddyp1cker has joined #ruby
<arup_r> now some Ruby... :)
<arup_r> >> [26, 7, 4, 4, 5].map { |n| "#{n}%s" }.join
<eval-in_> arup_r => "26%s7%s4%s4%s5%s" (https://eval.in/299022)
<arup_r> any sweet way ?
amclain has quit [Quit: Leaving]
<sevenseacat> err, to do what
jonr22 has quit [Ping timeout: 246 seconds]
<arup_r> sevenseacat: me? Yes.. I am creating a format string dynamically..
<shevy> why is this not a sweet way
<havenwood> arup_r: Don't forget to close the issue on the Githubs if it's solved.
<arup_r> yes.. doing
<arup_r> right away
<havenwood> ty
tlarevo has quit [Remote host closed the connection]
buub has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 256 seconds]
<arup_r> havenwood: done
dukz has joined #ruby
ptrrr has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<havenwood> >> [26, 7, 4, 4, 5] * '%s' + '%s'
<eval-in_> havenwood => "26%s7%s4%s4%s5%s" (https://eval.in/299024)
<havenwood> >> [26, 7, 4, 4, 5].zip(['%s'].cycle).join
<eval-in_> havenwood => "26%s7%s4%s4%s5%s" (https://eval.in/299025)
<havenwood> >> [26, 7, 4, 4, 5].each_with_object('%s').to_a.join
<eval-in_> havenwood => "26%s7%s4%s4%s5%s" (https://eval.in/299026)
<arup_r> havenwood: first one is nice
<arup_r> thanks
webguynow has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
aganov has joined #ruby
webguynow has joined #ruby
lxsameer has joined #ruby
Wolland has quit []
adriancb has joined #ruby
mistermocha has quit [Remote host closed the connection]
<shevy> hmm when you guys arrange code
<shevy> do you happen to kind of arrange it so that you can read it quickly up-to-down-to-up style?
_Andres has joined #ruby
<shevy> because I found that even 80 characters per line may be too long to read
<shevy> or rather, glance at
jottr has quit [Ping timeout: 245 seconds]
tlarevo has joined #ruby
adriancb has quit [Ping timeout: 246 seconds]
nii2361 has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
apeiros__ has quit [Read error: Connection reset by peer]
<havenwood> mm
apeiros_ has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
<varunwachaspati> Kindly suggest a data visualization gem comparable to d3.js in ruby
starless has quit [Quit: Leaving]
<sevenseacat> lol
IrishGringo has joined #ruby
nicolastarzia has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
TinkerTyper has quit [Ping timeout: 265 seconds]
lemur has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
vdamewood has joined #ruby
teddyp1c_ has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
adamjleonard has joined #ruby
<arup_r> Any way to add trailing zeros like.. when I have "12" I want "12.00" or when I have "12.1" I want "12.10" ?
silkfox has joined #ruby
rhg135 has joined #ruby
<mozzarella> >> sprintf('%.2f', 12)
<eval-in_> mozzarella => "12.00" (https://eval.in/299070)
<mozzarella> >> sprintf('%.2f', 12.1)
<eval-in_> mozzarella => "12.10" (https://eval.in/299071)
coderhs has joined #ruby
<arup_r> Is it so easy...
<arup_r> :)
TinkerTyper has joined #ruby
tagrudev has joined #ruby
Akagi201 has joined #ruby
mdibound has joined #ruby
silkfox has quit [Ping timeout: 256 seconds]
Hirzu has joined #ruby
<arup_r> mozzarella: thanks
govg_ has quit [Quit: leaving]
roolo has joined #ruby
<mozzarella> np
govg has joined #ruby
norc has joined #ruby
<norc> Hi. I have various XML documents with known structures, and would like to have a library that lets me describe that structure, and create hashes or objects from the XML based on my description.
<arup_r> nokogiri norc
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
wldcordeiro has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
<norc> arup_r: Does Nokogiri have a mechanism beyond xpath to accomplish this?
<arup_r> yes CSS
psychopath_mind has quit [Ping timeout: 246 seconds]
<arup_r> It allows to create a XML/HTML doc or if you have already one.. then it will allow you to chew it as much as you want..
<norc> arup_r: I will take a look at it thank you. I mean I have a simplistic case without any properties in nodes (It is just nodes and text values)
<certainty> moin
<arup_r> o/ certainty
hanmac1 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
tlarevo has joined #ruby
fantazo has joined #ruby
nicolastarzia has joined #ruby
yfeldblum has joined #ruby
tris has joined #ruby
lioninawhat has quit [Remote host closed the connection]
mdibound has quit [Quit: Be back later ...]
yfeldblu_ has joined #ruby
mdibound has joined #ruby
<arup_r> havenwood: there ?
astrobunny has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
<havenwood> ya
wicope has joined #ruby
digitalextremist has quit [Ping timeout: 246 seconds]
<arup_r> Well.. I need this to install http://mailcatcher.me/ what this line is doing I understood partially rvm default@mailcatcher --create do gem install mailcatcher
<arup_r> can you bit ?
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<havenwood> i don't actually use gemsets, i'd just: gem install mailcatcher
mdibound has quit [Ping timeout: 246 seconds]
jerematic has joined #ruby
DerisiveLogic has quit [Ping timeout: 250 seconds]
<arup_r> ok
<arup_r> then let me go that away
<arup_r> **way
juanpablo_ has joined #ruby
<havenwood> if you want to use RVM without gemsets just add `export rvm_ignore_gemsets_flag=1` to your .rvmrc.
<arup_r> havenwood: I use gemsets for rails
<havenwood> arup_r: some people like gemsets and swear by them. i find i get by fine with Bundler.
<sevenseacat> some people also like stapling things to their faces.
<sevenseacat> there's no explaining some people.
Azure has quit [Ping timeout: 264 seconds]
<agent_white> I like to dance. But who doesn't like dancing?!
* agent_white boogies
<havenwood> i don't like stapling things to my face. i get by just fine wearing sunglasses.
Mon_Ouie has quit [Ping timeout: 244 seconds]
<sevenseacat> :P
jerematic has quit [Ping timeout: 272 seconds]
juanpablo_ has quit [Ping timeout: 264 seconds]
nicolastarzia has quit [Ping timeout: 246 seconds]
tris has quit [Ping timeout: 256 seconds]
<flughafen> moin sevenseacat arup_r certainty
<arup_r> flughafen: o/
<sevenseacat> guten Morgen
Macaveli has joined #ruby
tris has joined #ruby
<flughafen> du sprichst so gut deutsch sevenseacat
<flughafen> \o
<sevenseacat> hah
<flughafen> meetings so many meetings
IrishGringo has quit [Ping timeout: 265 seconds]
<arup_r> flughafen: I don't have a single one.. I'm useless
<sevenseacat> ich spreche deutsch... schlecht
<flughafen> i like it when you speak deutsch to me
polysics has joined #ruby
<flughafen> arup_r: normally i'm not invited to meetings unless it's our agile stuff
<flughafen> so don't think ik'
<arup_r> ok
<flughafen> i'm cool enough to have meetings
<sevenseacat> ich lerne langsam.
digitalextremist has joined #ruby
Azure has joined #ruby
<flughafen> arup_r: you're german?
<arup_r> no.. Indian
<flughafen> or no, it's wasamasa that's german
livathinos has joined #ruby
<flughafen> meeting time, l8r dudes and dudettes
<sevenseacat> auf wiedersehn.
wottam has joined #ruby
<wasamasa> yes I am
<norc> So. Here is a random thought, is there a way to force irb into a mode where everything is "public" (all instance methods etc) ?
nii2361 has joined #ruby
<norc> Some kind of debug mode that makes introspection easier
<norc> *instance variables that is
<norc> :p
Matadoer_ has quit [Ping timeout: 250 seconds]
tris has quit [Ping timeout: 256 seconds]
matadoer has joined #ruby
Hirzu_ has joined #ruby
Morkel has quit [Quit: Morkel]
relix has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
Hirzu has quit [Ping timeout: 256 seconds]
Joufflu has quit [Read error: Connection reset by peer]
fantazo has quit [Ping timeout: 252 seconds]
astrobunny has joined #ruby
ki0 has joined #ruby
towski_ has joined #ruby
wldcordeiro has joined #ruby
adamjleonard has quit [Quit: Leaving...]
<shevy> norc since irb follows ruby model
<shevy> the keyword public issued at the beginning should turn all subsequent method definitions into public
Hobogrammer has quit [Ping timeout: 256 seconds]
<shevy> @instance_variables itself have nothing to do with public - only methods have, which can return @ivars
<shevy> sevenseacat you speak cat-german!
towski_ has quit [Ping timeout: 252 seconds]
<shevy> sort of weird to have someone with a nick called "flughafen" (airport)
<sevenseacat> i speak only as much as i learnt from like two levels of duolingo
martianixor has quit [Quit: Leaving]
tris has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
hs366 has joined #ruby
ki0 has quit []
Spami has joined #ruby
rocknrollmarc has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Beliq has joined #ruby
fantazo has joined #ruby
ta has quit [Remote host closed the connection]
Alina-malina has joined #ruby
crazydiamond has joined #ruby
tlarevo_ has joined #ruby
ki0 has joined #ruby
tubuliferous has joined #ruby
RegulationD has joined #ruby
adamjleonard has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has quit [Ping timeout: 265 seconds]
bigkevmc_ is now known as bigkevmcd
adamjleonard has quit [Client Quit]
fabrice31 has joined #ruby
jonr22 has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
dumdedum has joined #ruby
AlexRussia has joined #ruby
jenrzzz has joined #ruby
ptrrr has quit [Quit: ptrrr]
dEPy has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
wald0 has joined #ruby
ramfjord has joined #ruby
tris has quit [Quit: Leaving]
bigkevmcd has quit [Quit: Outta here...]
DavidDudson has joined #ruby
arup_r has quit [Remote host closed the connection]
rbennacer has joined #ruby
DavidDudson has quit [Client Quit]
ghostpl_ has joined #ruby
relix has joined #ruby
DavidDudson has joined #ruby
harfangk has quit [Quit: This computer has gone to sleep]
rbennacer has quit [Ping timeout: 240 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jasabella has joined #ruby
<jasabella> hi
strixd has joined #ruby
shaquile has joined #ruby
mdibound has joined #ruby
harfangk has joined #ruby
<shaquile> Anyone looking for a job opening in Stockholm, please pm me. We are in urgent need for ruby developers.
ghostpl_ has quit [Ping timeout: 265 seconds]
roolo has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
* wasamasa wonders whether the need of job places for developers or the need of developers for money is greater
ta has joined #ruby
razieliyo has joined #ruby
tris has joined #ruby
mdibound has quit [Ping timeout: 245 seconds]
martinbmadsen has quit [Ping timeout: 252 seconds]
lessless has quit [Ping timeout: 250 seconds]
amundj has joined #ruby
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
rdark has joined #ruby
Takle has joined #ruby
<jasabella> shaquile... will the employer sponsor a junior? :D
thebastl has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
ta has quit [Remote host closed the connection]
chandryee90 has joined #ruby
govg has quit [Quit: leaving]
thebastl has quit [Quit: Leaving...]
alex88 has joined #ruby
arup_r has joined #ruby
blueOxigen has joined #ruby
danjordan has joined #ruby
<SebastianThorn> shaquile: Sinch?
keen__________84 has quit [Read error: Connection reset by peer]
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby
marr has joined #ruby
The_Phoenix has joined #ruby
keen__________84 has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Ping timeout: 256 seconds]
teddyp1c_ has quit [Remote host closed the connection]
thebastl has joined #ruby
teddyp1cker has joined #ruby
Morkel has joined #ruby
Morkel has left #ruby [#ruby]
silkfox has joined #ruby
chandreyee90 has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
apoplexy has joined #ruby
yfeldblu_ has quit [Ping timeout: 265 seconds]
lolmaus has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
bal has joined #ruby
lolmaus has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
chandryee901 has joined #ruby
chandryee901 has left #ruby [#ruby]
kalusn has joined #ruby
digitalextremist has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 265 seconds]
fantazo has quit [Ping timeout: 256 seconds]
fgo has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 240 seconds]
jud has quit [Quit: Leaving]
slackbotgz has joined #ruby
Soda has joined #ruby
_Andres has joined #ruby
Soda has quit [Max SendQ exceeded]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Soda has joined #ruby
imanzarrabian has joined #ruby
DavidDudson has joined #ruby
Soda has quit [Max SendQ exceeded]
Soda has joined #ruby
narcan has joined #ruby
blackmesa has joined #ruby
bal1 has joined #ruby
kalusn has quit [Remote host closed the connection]
bal has quit [Ping timeout: 252 seconds]
Soda has quit [Max SendQ exceeded]
Soda has joined #ruby
Takle has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
Soda has quit [Max SendQ exceeded]
Karpuragauram has joined #ruby
Soda has joined #ruby
Soda has quit [Max SendQ exceeded]
Soda has joined #ruby
<shevy> would we be more productive in ruby if ruby would be simpler?
thebastl has quit [Quit: Leaving...]
bweston92 has quit [Remote host closed the connection]
<SebastianThorn> shevy: i think that ruby is kinda simple
<lxsameer> shevy: simpler than this ?
bal has joined #ruby
roolo has joined #ruby
fantazo has joined #ruby
bal1 has quit [Ping timeout: 252 seconds]
<SebastianThorn> shevy: any specific area that you'd like to be more simple?
CustosLimen has joined #ruby
sevenseacat has quit [Remote host closed the connection]
piotrj has joined #ruby
bruno- has joined #ruby
<shevy> yeah
<shevy> lots of small things - Dir[] vs. Dir.glob()
<shevy> different ways to use regexes; MatchData, =~ //
<SebastianThorn> shevy: the regex is true, agree on that :)
<shevy> the artificial distinction between class and modules; include can be applied on modules, not classes but subclassing is sort of similar to include-functionality
<shevy> then there are things like Proc.new and lambda - when to best use that?
<shevy> @@class_vars
weckl has joined #ruby
lkba_ has joined #ruby
<shevy> a newcomer has quite a lot to learn
chandreyee90 has quit [Quit: Page closed]
doritostains has joined #ruby
Soda has quit [Remote host closed the connection]
<shevy> there is .class_eval .instance_eval also .module_eval I think ... let me search
vivekananda has joined #ruby
<shevy> I did not know about .module_eval a few weeks ago :)
arup_r_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
<shevy> the distinction seems arbitrary to me though
geefolk has joined #ruby
kaleido has quit [Ping timeout: 265 seconds]
<shevy> you also have .class_eval
arup_r_ has quit [Remote host closed the connection]
<shevy> SebastianThorn I think if I have to name a single area, then I think it would be documentation. The documentation of ruby should be much much better
juanpablo_ has joined #ruby
shaquile has quit [Ping timeout: 244 seconds]
<SebastianThorn> i think i dont use ruby as much as you do :)
lkba has quit [Ping timeout: 264 seconds]
rdark has quit [Ping timeout: 252 seconds]
ta has joined #ruby
spiderbyte has quit [Ping timeout: 252 seconds]
<shevy> well
<shevy> I sort of use a subset of ruby
adaedra has joined #ruby
shaquile has joined #ruby
<shevy> like, use the good pieces
Takle has joined #ruby
<shevy> I love blocks!
geefolk has quit [Read error: Connection reset by peer]
<shevy> include is also cool
arup_r has quit [Ping timeout: 246 seconds]
geefolk has joined #ruby
joonty has joined #ruby
rdark has joined #ruby
crazydiamond has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
vtunka has joined #ruby
bweston92 has joined #ruby
davedev24_ has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 245 seconds]
<hanmac1> shevy did you know that /regex/ =~ under special circumstances can create local variables?
teddyp1cker has joined #ruby
<shevy> ack
lessless has joined #ruby
<shevy> how is that possible?
<shevy> it uses a = right?
roshanavand has joined #ruby
rdark has joined #ruby
bogeyd6_ has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
nii2361 has quit [Ping timeout: 250 seconds]
marr has quit [Ping timeout: 252 seconds]
<hanmac1> shevy:
<hanmac1> >> /(?<x>\d+):(?<y>\d+)/ =~ "2:30" ? x.to_i * 60 + y.to_i : nil
<eval-in_> hanmac1 => 150 (https://eval.in/299175)
jenrzzz has quit [Ping timeout: 272 seconds]
<shevy> typical hanmac1 code
<shevy> I don't know what this is
<hanmac1> shevy see the power or named capture groups used in regex literals ;P
bogeyd6_ has joined #ruby
marr has joined #ruby
geefolk has quit [Read error: Connection reset by peer]
geefolk has joined #ruby
ghostpl_ has quit [Ping timeout: 272 seconds]
rdark has quit [Quit: leaving]
rdark has joined #ruby
chthon has joined #ruby
<shevy> how is a named capture group created
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shevy> it is a (?) construct?
<shevy> I know that () in itself is a capture group
yfeldblum has joined #ruby
<shevy> I swear I never want to maintain code written by hanmac :>
antgel has joined #ruby
rdark_ has joined #ruby
rdark has quit [Ping timeout: 244 seconds]
narcan has joined #ruby
Akagi201_ has joined #ruby
leafybasil has joined #ruby
Hirzu_ has quit [Ping timeout: 265 seconds]
<hanmac1> shevy: ?<name>
<hanmac1> inside ()
mdibound has joined #ruby
<shevy> aha
<hanmac1> shevy also nice:
<hanmac1> >> require "scanf"; "2:30".scanf("%d:%d").inject(0) {|s,n|s * 60 + n}
<eval-in_> hanmac1 => 150 (https://eval.in/299201)
mistermocha has joined #ruby
Akagi201 has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
Juanchito has joined #ruby
<arup_r> How would I hadle this calculation .. https://gist.github.com/aruprakshit/b750c04bbc25179dbd83#file-mail-html-erb-L12 Idea please...
<arup_r> price is Spree::Money object with a currency set.. how would I do summation ?
<arup_r> It wouldn't allow me to sum with a Fixnum object...
mistermocha has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
braincrash has joined #ruby
Zai00 has joined #ruby
<norc> shevy: Sorry for the late response, thank you for the information.
Takle has joined #ruby
<norc> On a related note, when I looked at the text of the documentation of "instance_variable_set" at http://ruby-doc.org/core-2.2.1/Object.html
<vandemar> arup_r: sum an array of Spree::Money? reduce?
<norc> Is that supposed to be a joke?
blueOxigen has quit [Ping timeout: 246 seconds]
<shevy> norc what part do you mean with a joke?
<arup_r> vandemar: Cool idea
<shevy> the method allows you to arbitrarily or programmatically generate @ivars
<shevy> norc the wording is weird indeed
<norc> shevy: ;)
rdark_ has quit [Ping timeout: 265 seconds]
<shevy> in like 99.5% of the time you won't need that method, but sometimes you may need it
<norc> shevy: Yeah, I actually have need of it to do some meta programming. Well ok, not need - but it saves me some time. :)
tlarevo_ has quit []
<shevy> I sometimes combine instance_variable_get() or at least remove_instance_variable() when I don't want all @ivars lateron
<shevy> replace my 99.5% with 99.9% :)
<shevy> oh interesting
<shevy> I found one use case
<shevy> form.rb: end; Form.instance_variable_set('@mode', DEFAULT_FORM_MODE)
rdark has joined #ruby
<shevy> I forgot why I needed to have a @mode variable there though lateron
<shevy> the docu is weird really
<shevy> "Sets the instance variable named by symbol to the given object, thereby frustrating the efforts of the class's author to attempt to provide proper encapsulation."
<shevy> ruby did not have strong encapsulation because the philosophy is that people should be able to do what they want to, if they want to
blackmesa has quit [Ping timeout: 252 seconds]
<shevy> hence why .send() used to be able to invoke everything, until someone suggested to see a distinction between private and public, so .public_send() was added (which I hate, it's way too long to type!)
workmad3 has joined #ruby
avril14th has joined #ruby
dmolina has joined #ruby
tris has quit [Quit: Leaving]
chandryee90 has quit [Quit: Page closed]
<avril14th> hello
norc has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
nicolastarzia has joined #ruby
RegulationD has joined #ruby
huddy has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
fgo has quit [Ping timeout: 264 seconds]
narcan has joined #ruby
tris has joined #ruby
vtunka has quit [Quit: Leaving]
astrobunny has quit [Remote host closed the connection]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
adaedra has quit [Quit: Textual IRC Client: www.textualapp.com]
mdibound has quit [Quit: Be back later ...]
mdibound has joined #ruby
jonr22 has joined #ruby
adaedra has joined #ruby
lkba_ has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
weckl has quit []
tubuliferous has quit [Ping timeout: 264 seconds]
adaedra has quit [Remote host closed the connection]
adaedra has joined #ruby
nii2361 has joined #ruby
tris has quit [Ping timeout: 265 seconds]
shaquile has quit [Remote host closed the connection]
shaquile has joined #ruby
Mia has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
surs has quit [Quit: leaving]
tris has joined #ruby
kalusn has joined #ruby
DavidDudson has joined #ruby
<arup_r> avril14th: o/
mdibound has quit [Ping timeout: 272 seconds]
<arup_r> vandemar: worked
<arup_r> thanks
<avril14th> yo arup_r, howdy?
<arup_r> avril14th: Doing Spre,, and Spree...
<adaedra> Hello
<arup_r> I'm developing an e-commence site where I'll sell only cats... shevy: said me to build it.
<arup_r> adaedra: wowowowow
<arup_r> :D
<adaedra> wow
<adaedra> :)
nicolastarzia has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 272 seconds]
<avril14th> that could work, but troubles lie in the logistics
<avril14th> plus, it's a cool business
<avril14th> since it's easy to capture tons of cats
<avril14th> and sell them back to their owner
<agent_white> A catnapping business!!
<arup_r> hehehehe
<adaedra> What’s the difference between #ruby and #ruby-lang ? oO
dukz has quit [Remote host closed the connection]
yeticry has joined #ruby
<arup_r> the latter one is old
<avril14th> "#{TEST_DIR}/parsed_total_price/#{hash['country'].downcase}/#{hash['language'].downcase}/#{}--[#{hash['total_price']},#{hash['tax_rate']},'#{hash['currency']}']"
<avril14th> oups, wrong button
<arup_r> people those who got old(in Ruby) ... they joined there
DouweM has joined #ruby
<arup_r> ;)
<adaedra> ok
<arup_r> adaedra: old measn all *Pro* people
<arup_r> :D
geefolk has quit [Read error: Connection reset by peer]
pheona has quit [Quit: WeeChat 1.0.1]
davedev24_ has joined #ruby
<shevy> arup_r lol
ghostpl_ has joined #ruby
<shevy> arup_r don't think you can become rich by trading with cats
aganov has quit [Remote host closed the connection]
<shevy> neighbors here try to breed mancoons or whatever the name is
<shevy> they look like mammoths right?
<arup_r> wow
Akagi201_ has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
tris has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
aganov has joined #ruby
rdark has quit [Quit: leaving]
jenrzzz has joined #ruby
rdark has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
dropp has joined #ruby
tris has joined #ruby
SouL has joined #ruby
davidhq has joined #ruby
jusmyth has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
tvw has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jusmyth has quit [Client Quit]
postmodern has quit [Quit: Leaving]
timonv has joined #ruby
piotrj has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
slackbotgz has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
selu has joined #ruby
<arup_r> I need https://gist.github.com/aruprakshit/b883a9b74046151aaaec#file-output-tx ,,,, But my code is not working,, pointer please
oo_ has joined #ruby
harfangk has quit [Quit: This computer has gone to sleep]
iteratorP has quit [Ping timeout: 246 seconds]
<workmad3> arup_r: looks reasonably obvious to me... you're not passing enough format parameters for this line: https://gist.github.com/aruprakshit/b883a9b74046151aaaec#file-error-L5
rdark has quit [Quit: leaving]
<arup_r> well.. I see the price is the one.. How would i add it to the dynamic format string >
rdark has joined #ruby
<workmad3> arup_r: and considering that just a couple of lines up, you're giving format_string 6 arguments, then you're constructing another string with those 6 and an extra arg, but only passing one format parameter...
<workmad3> arup_r: tbh, I can't quite see why you're embedding format_string in that line
roshanavand has quit [Remote host closed the connection]
nfk has joined #ruby
<arup_r> rest all are variables
<workmad3> arup_r: yeah, it kinda looks like all you want there is 'Shipping & Handling <%= Spree::Money.new(0, currency: "INR").to_s %>
silkfox has joined #ruby
<workmad3> arup_r: yeah, unsurprisingly I can see all that
<arup_r> well leave that.. part
<workmad3> arup_r: but that's not where the error is coming from
<workmad3> arup_r: the error is happening 2 lines *after* the end of your loop
<workmad3> arup_r: on the shipping and handling line
<workmad3> arup_r: no it's not
<workmad3> arup_r: read your stacktrace
<arup_r> ok
<arup_r> let me re read
<arup_r> sorry got it
reinaldob has joined #ruby
<arup_r> :p
<workmad3> arup_r: you're gonna have the same issue on your Grand Total line, btw
<arup_r> yes I got it now
psy_ has joined #ruby
Hirzu has joined #ruby
slackbotgz has joined #ruby
livathin_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
livathin_ has quit [Client Quit]
silkfox has quit [Ping timeout: 245 seconds]
<arup_r> workmad3: error removed.. But the thing is table is not forming up as I want ... I got it as https://gist.github.com/aruprakshit/b883a9b74046151aaaec#file-got-txt
psy_ has joined #ruby
<arup_r> updated gist
joonty has quit [Quit: joonty]
livathinos has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Remote host closed the connection]
charliesome has joined #ruby
<workmad3> arup_r: so your format_string isn't correct... debug it and figure it out :P
<arup_r> humm
fabrice31 has joined #ruby
joonty has joined #ruby
fabrice31 has quit [K-Lined]
fgo has joined #ruby
varunwachaspati has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
fabrice31 has joined #ruby
r3Dk1nG has joined #ruby
Takle has quit [Remote host closed the connection]
<arup_r> All <spaces> are being compressed into one single space...
lolmaus has quit [Quit: Konversation terminated!]
lolmaus has joined #ruby
imanzarrabian has quit [Ping timeout: 240 seconds]
roolo has quit [Remote host closed the connection]
elimS has joined #ruby
elimS has left #ruby [#ruby]
doodlehaus has joined #ruby
startupality has quit [Quit: startupality]
krz has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
startupality has quit [Client Quit]
tris has quit [Read error: No route to host]
AlexRussia has quit [Ping timeout: 252 seconds]
tris has joined #ruby
mdibound has joined #ruby
apoplexy has quit [Ping timeout: 250 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
juanpablo_ has joined #ruby
mdibound has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
harfangk has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
_5kg has quit [Ping timeout: 265 seconds]
mathie has quit [Quit: Quitting...]
melmouss has joined #ruby
<shevy> that is efficient
<shevy> imagine all humans being compressed into one
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<arup_r> Oh! god not able to manage it
<shevy> you could store them on a USB stick right away!
<arup_r> me??
<shevy> yes if you can store them into one :)
<adaedra> I come back and read about compressing all humains into an USB stick
<adaedra> I’m confused
marr has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
marr has joined #ruby
<workmad3> shevy: ah, the classic compression idea that just doesn't work (because of quantum)
<shevy> the schroedinger cat is for real, I tell you
dukz has quit [Remote host closed the connection]
<shevy> you just don't know in which state it is until you get to see her
bim has joined #ruby
<workmad3> shevy: oh great, I now have in my head the 'transgender schroedinger cat experiment'... you don't know what gender the cat is until you open the box
<shevy> haha
<shevy> transgender
<shevy> you may be the first to wonder about a transgender schroedinger cat
Takle has joined #ruby
tris has quit [Read error: No route to host]
kedare has quit [Read error: Connection reset by peer]
<workmad3> shevy: but the thought experiment I was referring to was more along the lines of - imagine you can create a coding scheme for all human knowledge that turns it into a single number (which we know is possible)... now take that number and turn it into a fraction between 0 and 1... now cut a 1 metre long stick to *exactly* that fraction of a metre, you've just stored the entirety of human knowledge in that one
<workmad3> stick
tris has joined #ruby
jonr22 has joined #ruby
<workmad3> shevy: of course, it's a thought experiment that relies on a classical physics perspective, where the idea of being able to cut a stick to a perfectly exact length isn't complete nonsense :)
bogeyd6_ has quit [Ping timeout: 250 seconds]
<shevy> now I am confused
<arup_r> workmad3: Noit able to figure.. the email engine compressing all the spaces to a single spacwe
<workmad3> arup_r: did you look at your format string?
bogeyd6_ has joined #ruby
<arup_r> yes..
<workmad3> arup_r: before you've performed any substitutions
dblessing has joined #ruby
<workmad3> arup_r: and did you then double-check your format specifiers and flags against the sprintf docs?
<workmad3> arup_r: i.e. the very first thing you should do when you encounter a format string that isn't formatting as you expected
n008f4g_ has quit [Ping timeout: 245 seconds]
<workmad3> shevy: what's confusing about it? :)
martinbmadsen has joined #ruby
<arup_r> where are my all in between spaces.. ?
<arup_r> :(
alexherbo2 has joined #ruby
<workmad3> arup_r: ok, so the answer to my previous questions was unanimously 'no'
<workmad3> arup_r: you haven't checked what your unsubstituted format_string is, you haven't double-checked it against docs... you've done 0 work on figuring it out
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<arup_r> yes.. As the simple ones are not working .. so I got confused.
fabrice31 has joined #ruby
Hirzu_ has joined #ruby
pullphinger has quit []
nii2361 has quit [Ping timeout: 264 seconds]
<arup_r> inspecting width first... Lets see what's going on there..
tris has quit [Ping timeout: 265 seconds]
rodfersou has joined #ruby
bogeyd6_ has quit [Quit: Leaving]
sdothum has joined #ruby
lanemeyer has quit [Ping timeout: 256 seconds]
tris has joined #ruby
martinbmadsen has quit [Ping timeout: 252 seconds]
Hirzu has quit [Ping timeout: 252 seconds]
tris has quit [Client Quit]
<arup_r> workmad3: this is the format string I am getting "26%s7%s4%s4%s5%s"
<workmad3> arup_r: and what do you notice wrong with that? :P
<adaedra> man sprintf :˚
<arup_r> checking.. reading
ramfjord has quit [Ping timeout: 255 seconds]
<arup_r> I'm reading
Macaveli has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
thebatu1 has joined #ruby
fabrice31 has joined #ruby
<thebatu1> def caption full=false
<thebatu1> + full ? "#{'–'*depth} #{name}" : name
<thebatu1> end
<thebatu1> hello all. can someone explain this code for me plz ?
<adaedra> what part of it don’t you understand ?
teddyp1cker has quit [Remote host closed the connection]
<thebatu1> i dont get the if clause full ? "#{'–'*depth} #{name}" : name
teddyp1cker has joined #ruby
<arup_r> workmad3: got it - The width specifies the minimum number of characters that will be written to the result for this field.
<thebatu1> image
<adaedra> the « x ? y : z » form ?
<arup_r> So.. what's the way to go ?
<workmad3> arup_r: wrong
<arup_r> :(
<workmad3> arup_r: or rather, your statement is right, but it's not actually your issue
<workmad3> arup_r: read the docs again... what's the format string for, say, a 20-character wide string?
<adaedra> thebatu1: the « x ? y : z » form ?
bigkevmcd has joined #ruby
maximski_ has joined #ruby
<arup_r> workmad3: got it
<arup_r> :)
fabrice31 has quit [Ping timeout: 272 seconds]
<thebatu1> what is #{'–'*depth}
DavidDudson has joined #ruby
<adaedra> ah, this
<thebatu1> its not a smily :)
<adaedra> string interpolation
<arup_r> width came before `%`.. which should go after `%` :p
maximski has quit [Ping timeout: 250 seconds]
<workmad3> arup_r: woo! finally! :P
<arup_r> hehehe
<arup_r> got one cup of coffee ,.. then
<adaedra> often, it’s the most stupid errors we spend the most time upon
<tobiasvl> >> puts "#{'–'*3}
<tobiasvl> oh no
<adaedra> >> puts %('-'*3)
<eval-in_> adaedra => '-'*3 ... (https://eval.in/299263)
<workmad3> tobiasvl: y u hate eval? :(
<adaedra> >> puts %(#{'-'*3})
<eval-in_> adaedra => --- ... (https://eval.in/299264)
<adaedra> (stupid me)
teddyp1cker has quit [Ping timeout: 245 seconds]
<tobiasvl> workmad3: hehe. just forgot the closing quote :(
<workmad3> tobiasvl: ya... and now eval will be sitting there, waiting for a closing quote that will never arrive
<workmad3> poor eval :(
<tobiasvl> >> "
<eval-in_> tobiasvl => /tmp/execpad-295618dd10cb/source-295618dd10cb:6:in `raise': exception object expected (TypeError) ... (https://eval.in/299265)
<tobiasvl> there
<workmad3> :D
bruno- has joined #ruby
tubuliferous_ has joined #ruby
tris has joined #ruby
<arup_r> workmad3: but the other issue is there still..
<adaedra> thebatu1: it’s #{} or '-'*depth the problem ?
RegulationD has joined #ruby
<thebatu1> the '-'depth. I think the #{} means to replace a predefined value.
apoplexy has joined #ruby
<adaedra> replacement, yes.
<adaedra> predefined, depends on what you means by that.
<thebatu1> ahh ok its just multiplay - by the depth
<adaedra> http://www.rubydoc.info/stdlib/core/String#%2A-instance_method
polysics has quit [Remote host closed the connection]
<thebatu1> so lets say depth is 3 then I will have ---
<adaedra> yes
<adaedra> like the eval above
<thebatu1> ok I think I need a coffee break. thanks :)
<adaedra> you’re welcome.
jonr2219 has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
Zai00 has quit [Quit: Zai00]
slackbotgz has quit [Remote host closed the connection]
<arup_r> WTH format is doing ? :(
<adaedra> its work
Hijiri has quit [Ping timeout: 252 seconds]
<arup_r> for me.. NO
mbwe has quit [Quit: WeeChat 0.4.2]
fabrice31 has joined #ruby
joast has joined #ruby
maximski_ has quit []
<adaedra> what does `format_string` looks like ?
Abhijit has joined #ruby
ldnunes has joined #ruby
jonr2219 has quit [Ping timeout: 246 seconds]
tris has quit [Quit: Leaving]
<arup_r> adaedra: leave format string.. see the plain vanila string...
<arup_r> that's got compressed
arup_r has quit [Remote host closed the connection]
joast has quit [Ping timeout: 246 seconds]
<adaedra> and he left.
hs366 has quit [Ping timeout: 252 seconds]
_5kg has joined #ruby
OrbitalKitten has joined #ruby
mikecmpbll has joined #ruby
Asher1 has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
Rephiax has joined #ruby
livathinos has joined #ruby
codegate has quit [Ping timeout: 246 seconds]
krandi has joined #ruby
unizen has joined #ruby
aimada has joined #ruby
mdibound has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
silkfox has joined #ruby
andikr has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
<adaedra> arup_r: what are you generating ? A web page ?
cpt_yossarian has quit [Ping timeout: 246 seconds]
<arup_r> No.. text email
mdibound has quit [Ping timeout: 264 seconds]
silkfox has quit [Ping timeout: 256 seconds]
<adaedra> Your gist is generated text or copied/pasted from a web client ?
<adaedra> -web +mail
jespada has joined #ruby
<arup_r> copy pasted from the mailcatcher web interface
<adaedra> which is html
<arup_r> I am using mailcatcher to test emails format in developement mode
<adaedra> so spaces are squeezed
<arup_r> no.. it is text
jonr2219 has joined #ruby
Takle has quit [Remote host closed the connection]
hs366 has joined #ruby
<adaedra> try to output the mail directly to console if possible
<adaedra> I think your interface displays it as HTML and so squeeze spaces
jenrzzz has joined #ruby
<arup_r> would you like to see screenshot ?
<adaedra> Or
<adaedra> Look in the page source code if you have the spaces
freerobby has joined #ruby
phutchins has joined #ruby
<adaedra> Because the unasked spaces being squeezed make me think of that
mostlybadfly has joined #ruby
<arup_r> humm.. I'am also thinking so.. I did check view source there is nothing as it is plain/text version
<adaedra> But I see MailCatcher has plain text display tab, it should display correctly there
<adaedra> mmmh
jenrzzz has quit [Ping timeout: 245 seconds]
<arup_r> humm... but not displaying which are inside the ERB tag
<adaedra> ?
<adaedra> can you, before the mail is sent, dump it verbatim to a file and check the contents there ?
jonr22 has quit [Quit: WeeChat 0.4.2]
phutchins has quit [Client Quit]
jonr2219 has quit []
jonr22 has joined #ruby
jasabella has quit [Ping timeout: 256 seconds]
<adaedra> By the way, your method to compute column widths seems off to me
ntln has quit [Quit: No Ping reply in 180 seconds.]
slackbotgz has joined #ruby
norc has joined #ruby
<arup_r> adaedra: Well.. But now all concern is white spaces
<arup_r> how those are getting squeezed
hanmac1 has quit [Quit: Leaving.]
<adaedra> Have you the raw mail dump?
hanmac1 has joined #ruby
ntln has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
aimada has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
Mon_Ouie has joined #ruby
aclearman037 has joined #ruby
vtunka has joined #ruby
timonv has joined #ruby
sgambino has joined #ruby
revoohc has quit [Quit: revoohc]
rhllor has joined #ruby
krz has joined #ruby
MissionCritical has quit [Ping timeout: 252 seconds]
lordkryss has joined #ruby
CodingFree has joined #ruby
CodingFree has left #ruby [#ruby]
joonty has quit [Quit: joonty]
thebatu1 has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
polysics has joined #ruby
claptor has quit [Quit: this channel is bakas]
tris has joined #ruby
decoponio has joined #ruby
Mission-Critical has joined #ruby
<arup_r> adaedra: no
<arup_r> how to get it
<arup_r> ?
<adaedra> I don’t know what is your stack, but you should be able to place the mail content in a file at some point, no ?
Takle has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
ki0 has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
<arup_r> I am using Rails
n008f4g_ has joined #ruby
<arup_r> let me check in normal plain file
jerematic has joined #ruby
hgl has joined #ruby
<workmad3> arup_r: hmm... is the template in your project really a .html.erb file?
Mission-Critical is now known as MissionCritical
<workmad3> arup_r: like you're showing in the gist?
doodlehaus has quit [Remote host closed the connection]
<shevy> I can show pics!
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<arup_r> no
<arup_r> .text.erb
<arup_r> in the gist it is my typo.. came through habbit.. but it is .text.erb
<adaedra> but mails are HTML by default
jespada has quit [Ping timeout: 245 seconds]
<adaedra> Anyway, if your goal is to send mails, why not just output an HTML table ? It should be way easier - of course, if you don’t require plain output
jespada has joined #ruby
<arup_r> adaedra: But I need to send both...
<adaedra> That’s a problem then
<adaedra> :)
<shevy> mails are html?
SouL has quit [Ping timeout: 272 seconds]
<shevy> need to try <blink> or <marquee>
<arup_r> this text part is something wired
<arup_r> see this is not mis behaving https://gist.github.com/aruprakshit/1ae986bcc7f28abc6aec
<arup_r> But Mailer does wrong thing
<adaedra> shevy: may work in Outlook Express
_Andres has joined #ruby
<shevy> hahaha
lanemeyer has joined #ruby
otisZart has joined #ruby
<adaedra> For marquee, blink is netscape iirc
Macaveli has joined #ruby
<workmad3> arup_r: have you checked if it's the mailer that's doing the wrong thing, or something displaying the email?
phutchins has joined #ruby
_ixti_ has joined #ruby
nateberkopec has joined #ruby
<arup_r> sorry... displaying :)
ixti has quit [Ping timeout: 246 seconds]
<adaedra> arup_r: do you include the header for plain-text in the mail ?
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<adaedra> (Mails are such shit to generate :( )
<arup_r> yes I did
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> one thing I found is ERB added `\n` at the end https://gist.github.com/aruprakshit/1ae986bcc7f28abc6aec#file-out-L2
<arup_r> Humm
<adaedra> it’s normal
juanpablo_ has joined #ruby
<arup_r> humm
narcan has joined #ruby
<adaedra> You surely have a \n in your .erb file
<workmad3> arup_r: it's sounding like your mail viewer is screwing up the display, tbh
<adaedra> arup_r: try to send the mail for real, and with mail client, display source
<arup_r> ruby is handling it nicely.. but in Rails thing are coming buttom which is after <> tag
<arup_r> adaedra: workmad3: ok
oo_ has quit [Remote host closed the connection]
brb3 has joined #ruby
<arup_r> workmad3: so.. I'll now push this code.. to the stage.. and will check how is it coming inside the Gmail..
<arup_r> does it make sense?
<arup_r> After all my code is not crashing..
<arup_r> so I can push it..
<adaedra> or just change the smtp server in your local instance ?
<arup_r> I don't know what else options are there to test emails...
<arup_r> I found only this mailcatcher
dstarh has joined #ruby
Rephiax has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 246 seconds]
<workmad3> arup_r: if you're in dev mode, you could always have a look at the logs, where the email gets echoed out
<adaedra> you can use your ISP or regular mail server to send mails
<workmad3> arup_r: and if you're viewing through a mail client, you could also see if there's a 'view original' or 'view source' option in it too
<arup_r> workmad3: let me see
<adaedra> Or, if you have access to outbound 25 port, just rely on sendmail.
tkuchiki has joined #ruby
<workmad3> arup_r: so basically, lots of options
<adaedra> Yeah, there are the logs too, I forgot they got printed there :x
adriancb has joined #ruby
<workmad3> adaedra: it's what I tend to use, tbh :)
<adaedra> The logs ?
<adaedra> Yeah, I used that for a while while testing password resets
<adaedra> But I got tired of it and used letter_opener
<arup_r> workmad3: Humm.. I am runing production instance on my local to test.. I took data from prod DB and copied it on my local prod db and started server rails s -e production :)
<workmad3> arup_r: ok... why?
<arup_r> I got lot of data free to test inspect... etc..
<workmad3> arup_r: yes... but why run in prod mode?
<arup_r> I didn't think what you meant to say.. that's why :(
<workmad3> arup_r: why not point your development db at that data and start in dev mode, so you actually have sane debugging
<arup_r> I could copy the data to developement table too I see
<arup_r> can I temporary on logs in production mode too ? workmad3:
<workmad3> arup_r: probably... but it would take you longer than editing database.yml to point to the prod db
<adaedra> Juste use development mode ?
<adaedra> It’s made for development, after all
<workmad3> ^^
godd2 has joined #ruby
OrbitalKitten has joined #ruby
Zai00 has joined #ruby
<arup_r> Ok ok
<arup_r> I'll again load data there..
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
<workmad3> arup_r: I repeat, you don't need to do any data reloading
<workmad3> arup_r: just edit database.yml so that your development database is the one with data in
joast has joined #ruby
<arup_r> ok
<arup_r> good idea
<arup_r> let me point
<workmad3> arup_r: it's literally less than a minutes work, and it's taken me longer to repeat it... multiple times... than it would take to do it!
<arup_r> Good and useful idea.. really
* workmad3 needs food
<workmad3> hf
unreal_ is now known as unreal
workmad3 is now known as wm3|away
Mon_Ouie has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
tier has joined #ruby
DouweM has quit [Quit: Linkinus - http://linkinus.com]
revoohc has joined #ruby
bruno-_ has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
gaussblurinc1 has joined #ruby
sanguisdex has quit [Quit: Leaving.]
<gaussblurinc1> hi! I use guard for running tests. How could I exclude some files from watching?
Guest9281 is now known as jalcine
jalcine is now known as Guest83805
MasterPiece`` has joined #ruby
<jhass> guard has comprehensive docs, did you check them?
plashchynski has joined #ruby
plashchynski has quit [Client Quit]
firedragon is now known as lumidragon
sanguisdex has joined #ruby
thebastl has joined #ruby
Guest83805 has quit [Quit: Later]
dcarmich has joined #ruby
DouweM has joined #ruby
lioninawhat has joined #ruby
lyuben_ has joined #ruby
aiguu has quit [Ping timeout: 250 seconds]
lyuben_ has left #ruby [#ruby]
jalcine_ has joined #ruby
LJT has joined #ruby
Abhijit has quit [Quit: Bye.]
jalcine_ is now known as jalcine
Rephiax has joined #ruby
Takle has quit [Remote host closed the connection]
<gaussblurinc1> jhass: nope, ok, will look at it, thanks!
freerobby has quit [Quit: Leaving.]
piotrj has joined #ruby
MasterPiece`` has quit [Changing host]
MasterPiece`` has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
Dreamer3 has quit [Quit: Leaving...]
Takle has joined #ruby
psychopath_mind has joined #ruby
joonty has quit [Quit: joonty]
piotrj has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
MasterPiece`` is now known as MasterPiece
piotrj has joined #ruby
Rephiax has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
tubuliferous_ has joined #ruby
matchaw has joined #ruby
ych4k3r has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
zenith_ has joined #ruby
RegulationD has joined #ruby
tbon has quit [Ping timeout: 256 seconds]
Gadgetoid has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcombelle has joined #ruby
AlexRussia has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 255 seconds]
hcnewsom has joined #ruby
it0a has joined #ruby
jespada has quit [Read error: Connection reset by peer]
<gaussblurinc1> jhass: ok, ignore works pretty well, but, how to exclude files (rspec) for both manual and guard testing? Some options in Rspec config?
harfangk has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 265 seconds]
Beliq has quit [Quit: My computer has gone to sleep. ZZZzzz…]
teddyp1cker has joined #ruby
<jhass> probably, did you check rspec docs?
enebo has joined #ruby
harfangk has joined #ruby
werelivinginthef has joined #ruby
aspiers has joined #ruby
Beliq has joined #ruby
teddyp1cker has quit [Ping timeout: 250 seconds]
_maes_ has joined #ruby
<gaussblurinc1> jhass: oh, I checked it, yes, it said about RSpec.configure. Also, I had troubles with web-browsing :(
fryguy9 has joined #ruby
banister has joined #ruby
bluOxigen has joined #ruby
iamninja has joined #ruby
mog_ has joined #ruby
jusmyth has joined #ruby
<jhass> and I guess the TestTask has a similar option
jusmyth has quit [Client Quit]
<jhass> I don't think the configure block decides which files to run?
coco_ has left #ruby [#ruby]
<jhass> oh and note that you can put such options into an .rspec file
maximski has joined #ruby
banister is now known as banisterfiend
<jhass> as said, all in the docs
jusmyth has joined #ruby
doodlehaus has joined #ruby
surs has joined #ruby
<gaussblurinc1> jhass: thanks a lot! I wish internet provider would fix browsing soon
<surs> Hi, I'm debugging a ruby script that configures another (compiled) application. Now some output isn't going where it's supposed to and I need to debug the ruby script. Is there something I can put into the ruby script that puts me into debug mode?
layke has joined #ruby
drakhu has left #ruby [#ruby]
<surs> I don't have a separate ruby environment to test it
psychopath_mind has quit [Ping timeout: 246 seconds]
chinmay_dd has joined #ruby
<gaussblurinc1> surs: ruby -d
<jhass> surs: can you install additional tools / gems?
<surs> no, unfortunately I can't
<jhass> then try ^
<surs> I just put that on top of the script?
<jhass> eh actually I'm not sure that even launches a debugger
bayed has joined #ruby
<surs> I don't call ruby. the call is app.exe foo.rb
<surs> the app holds a ruby 1.9.3 environment apparently
chinmay_dd has quit [Client Quit]
chinmay_dd has joined #ruby
<arup_r> I'm really worried that String#% can't add anything to the trailing ,.,, all it does right padding.. :(
<jhass> okay, I hope you're aware that there will be no security updates to that version anymore
<arup_r> >> "%10s" % "hi"
<eval-in_> arup_r => " hi" (https://eval.in/299356)
<gaussblurinc1> surs: could you mail to author of this app? Or maybe could you write your own app in several hours?
bim has quit [Remote host closed the connection]
<jhass> surs: try require "debug" at the point where you want to break
fantazo has quit [Quit: Verlassend]
<arup_r> This is causing the problem in my case
<arup_r> adaedra:
lioninawhat has quit [Remote host closed the connection]
<arup_r> I need to use String#ljust
juanpaucar has joined #ruby
<surs> ok. gaussblurinc1 that's not realistic because it's a huge application
<arup_r> >> "hi".ljust(10, " ")
<eval-in_> arup_r => "hi " (https://eval.in/299357)
<arup_r> adaedra: ^^
bim has joined #ruby
<gaussblurinc1> surs: so, you want to debug binary file that has input parameter .rb script, am I correct?
chinmay_dd has quit [Client Quit]
chinmay_dd has joined #ruby
mistergibson has quit [Ping timeout: 245 seconds]
<surs> gaussblurinc1: no I want to debug the ruby script
chinmay_dd has quit [Client Quit]
ta has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
<surs> I'm running start-process app.exe run-ruby.rb $options in powershell
<jhass> it might be wort investing in getting a dev/test setup
bim has quit [Remote host closed the connection]
RegulationD has joined #ruby
<jhass> where you can install additional tools
<surs> and I want ruby to stop on the first line of the .rb and put me in a cli debugger
duggiefresh has joined #ruby
<surs> yeah, if that's not possible I'll head over to my vm
jenrzzz has joined #ruby
bim has joined #ruby
<jhass> but as said, require debug should already give you something basic
ojacobson has joined #ruby
Soda has joined #ruby
<surs> unfortunately it doesn't
<jhass> it needs stdout of course
mdibound has joined #ruby
bim has quit [Remote host closed the connection]
mistergibson has joined #ruby
joonty has joined #ruby
<surs> I see the black app.exe (console) window pop up and then the next call is executed
livathin_ has joined #ruby
<gaussblurinc1> surs: could this help? http://stackoverflow.com/questions/3955688/how-do-i-debug-ruby-scripts (especially pry)
Mives has joined #ruby
giuseppesolinas has joined #ruby
<jhass> pry + pry-remote would be the external tools I would advise
<jhass> I think byebug is 2.0+ only so adding pry-debugger and pry-stack-explorer to the mix
Rephiax has joined #ruby
kblake has joined #ruby
<surs> pry seems to be what I'm looking for. Unfortunately ps just runs over it...
jenrzzz has quit [Ping timeout: 264 seconds]
<jhass> thus pry-remote
Soda has quit [Max SendQ exceeded]
lxsameer has quit [Quit: Leaving]
Soda has joined #ruby
livathinos has quit [Ping timeout: 256 seconds]
spyderman4g63 has joined #ruby
marr has quit [Ping timeout: 250 seconds]
rhllor_ has joined #ruby
thiagovsk has joined #ruby
<arup_r> bye
rhllor has quit [Ping timeout: 246 seconds]
rhllor_ is now known as rhllor
zenith_ has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
<thiagovsk> i'm gay
<jhass> that's nice
<arup_r> lol
<jhass> thiagovsk: how's your ruby going though?
arup_r has quit []
brb3_ has joined #ruby
hyperdrive has quit [Changing host]
hyperdrive has joined #ruby
hyperdrive is now known as hdrv
vtunka has quit [Quit: Leaving]
rhllor_ has joined #ruby
mitchellhenke has joined #ruby
<thiagovsk> jhass: majestically awesome
<jhass> cool, whatcha working on?
mun has joined #ruby
<mun> Hi
bim has joined #ruby
<jhass> hi
<mun> does anyone here use a hosted CI service?
<mun> i wonder how to get my code deployed to EC2. i'm using codeship and it picks up every commit i push to github/bitbucket. so that's fine
charliesome has quit [Quit: zzz]
freerobby has joined #ruby
<mun> but how should the CI push the code to EC2? or should the EC2 pull from the github/bitbucket repo?
<jhass> thiagovsk: mmh, I only speak german and english :/
<thiagovsk> no problem =D
rhllor has quit [Ping timeout: 250 seconds]
rhllor_ is now known as rhllor
<thiagovsk> i love germany
brb3 has quit [Ping timeout: 252 seconds]
thiagovsk has quit []
juanpablo_ has quit [Ping timeout: 256 seconds]
thiagovsk has joined #ruby
tier_ has joined #ruby
DouweM has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> mun: they seem to have some tutorials for heroku and gapps, maybe you can adapt those?
<greedo> mun:: you need to write your scripts
amystephen has joined #ruby
tier has quit [Ping timeout: 252 seconds]
<mun> Should the scripts just do a git push?
<mun> To my ec2?
OliverTynes has left #ruby [#ruby]
OliverTynes has joined #ruby
OliverTynes has left #ruby [#ruby]
<greedo> ideally you run tests
<mun> Or should the ec2 be alerted to do a pull?
bim has quit [Remote host closed the connection]
<greedo> if tests pass then your machines pull down the new copy of the code
<mun> greedo but codeship would have done that already, right
rbennacer has joined #ruby
<mun> That's the purpose of a CI, right?
downtown has joined #ruby
rbennacer has quit [Remote host closed the connection]
<mun> Sorry I'm very new to deployment
<mun> It's my first
niik00 has joined #ruby
last_staff has quit [Quit: last_staff]
bim has joined #ruby
<greedo> ya, so it depends if you want your build and deploy to be automated
<greedo> fully
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
mdibound has quit [Quit: Be back later ...]
rbennacer has joined #ruby
<greedo> you can have it build and then send you an alert
jottr has joined #ruby
<greedo> so you can deploy manually using a deploy script
rbennacer has quit [Read error: Connection reset by peer]
<mun> greedo right. How would you go about it if your CI was hosted?
<mun> Just get the CI host run a script to do a push to the ec2?
<mun> Or rub extra tests?
<mun> *run
<greedo> I'm not sure what CI you are using
<greedo> but with Jenkins you will add it to the build step
<mun> greedo the pushing?
Megtastique has joined #ruby
charliesome has joined #ruby
Guest73 has joined #ruby
<mun> Doesn't jenkin sit on the side and doesn't fiddle with the prod server?
<greedo> it depends on your setup
sevenseacat has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
slackbotgz has quit [Remote host closed the connection]
<greedo> I have jenkins sitting on my prod server, but that may not be standard
slackbotgz has joined #ruby
<greedo> so in execute shell
DouweM has joined #ruby
<greedo> it will run the unit tests
xibalbian has quit [Ping timeout: 246 seconds]
<mun> Right
<greedo> change directories
shaquile has quit [Ping timeout: 272 seconds]
<greedo> and the run the deploy script
xibalbian has joined #ruby
sambao21 has joined #ruby
<greedo> it's a bit different for Travis CI
shaquile has joined #ruby
<jhass> whatever you do, just don't commit secrets to the repo ;)
<adaedra> this.
HOrangeJewce has joined #ruby
HOrangeJewce has quit [Client Quit]
iamjarvo has joined #ruby
HOrangeJewce has joined #ruby
surs has quit [Quit: WeeChat 0.3.7]
hk3380 has quit [Ping timeout: 246 seconds]
minminsanjose has joined #ruby
<minminsanjose> $ brew install ruby
<minminsanjose> Warning: ruby-2.2.1 already installed, it's just not linked
<minminsanjose> So how to link it? Thanks
chinmay_dd has quit [Quit: Leaving]
<jhass> #homebrew
<adaedra> man brew
chinmay_dd has joined #ruby
d10n-work has joined #ruby
<jhass> ##homebrew actually
juanpablo_ has joined #ruby
<adaedra> But I think that there is a reason why homebrew doesn’t link ruby, did you read log messages on installing ?
agent_white has quit [Quit: night]
Soda has quit [Read error: Connection timed out]
<minminsanjose> no log messages
<minminsanjose> simply says installed but not linked???
Soda has joined #ruby
boshhead has joined #ruby
charliesome has quit [Quit: zzz]
jottr has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
ismaelga has joined #ruby
<adaedra> what I mean, is that if homebrew don’t link something when doing install, it has its reasons, and generally explain it when doing install
<adaedra> might break stuff
tkuchiki has quit [Read error: Connection reset by peer]
Soda has quit [Max SendQ exceeded]
vtunka has joined #ruby
Soda has joined #ruby
borodin has joined #ruby
surs has joined #ruby
ibaqew has joined #ruby
Soda has quit [Max SendQ exceeded]
B1n4r10 has joined #ruby
Soda has joined #ruby
xibalbian has quit [Ping timeout: 246 seconds]
tohsig has joined #ruby
Soda has quit [Max SendQ exceeded]
DerisiveLogic has joined #ruby
B1n4r10 has quit [Max SendQ exceeded]
Soda has joined #ruby
kaleido has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
wm3|away is now known as workmad3
kaleido has quit [Changing host]
kaleido has joined #ruby
kennym has quit [Quit: Lost terminal]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
livathin_ has quit [Remote host closed the connection]
livathinos has joined #ruby
lumidragon has quit [Quit: WeeChat 1.0.1]
boadie has joined #ruby
livingstn has joined #ruby
Soda has quit [Max SendQ exceeded]
giuseppesolinas has joined #ruby
jlast has joined #ruby
t_p has joined #ruby
blueOxigen has joined #ruby
Soda has joined #ruby
mdibound has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
<mwlang> I’m getting timestamps from LDAP using the net-ldap gem. Any idea what format this timestamp (string literal) is in? "20150304212145.0Z"
Cust0sLim3n has quit [Ping timeout: 252 seconds]
ta has joined #ruby
<workmad3> mwlang: looks like iso8601
startupality has joined #ruby
AdamMeghji_ is now known as AdamMeghji
teddyp1cker has joined #ruby
tvon has quit [Quit: leaving]
otisZart has quit [Ping timeout: 264 seconds]
cazrin has joined #ruby
pardusf has quit []
Cust0sLim3n has joined #ruby
User458764 has joined #ruby
Mives has quit [Quit: WeeChat 1.1.1]
parduse has joined #ruby
<mwlang> workmad3: thanks. Its missing the separators for iso8601, but it does appear to be following that spec otherwise.
danrik has joined #ruby
<danrik> /usr/share/rubygems/rubygems/dependency.rb:298:in `to_specs': Could not find 'sass' (~> 3.2.17) - did find: [sass-3.3.8] (Gem::LoadError)
centrx has joined #ruby
<danrik> ^could someone help?
<workmad3> mwlang: iso8601 allows you to remove the separators
bluOxigen has joined #ruby
<jhass> danrik: using what command?
<mwlang> workmad3: I didn’t know that!
crueber has joined #ruby
eonbluez has joined #ruby
<danrik> jhass, im just trying to run gulp - and it complains about could not find sass.
<eonbluez> Ahoy ninjas!
<workmad3> mwlang: YYYYMMDD is allowed for dates, hhmmss.sss is allowed for times, and the 'T' separating the two is 'permitted to be omitted by mutual agreement'
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<danrik> jhass, fedora 21 - I've installed compass and sass via package manager....
<surs> err.. how do I tell pry to step in/out/over ??
<mwlang> workmad3: and Time.parse "20150304212145.0Z" works just fine. Life couldn’t be easier this fine morning.
<danrik> jhass, I don't know ruby at all - do people usually install sass and compass form pacakage managers? or via gem commands?
<workmad3> mwlang: woo :)
Guest73 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> mwlang: enjoy your easy zulu time while you can ;)
<jhass> danrik: "gem commands" but which one exactly depends on the project setup
blueOxigen has quit [Ping timeout: 265 seconds]
SouL has joined #ruby
jottr has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra> danrik: usually gem
User458764 has joined #ruby
<adaedra> except many deployment in some places
<adaedra> maybe*
boadie has quit [Remote host closed the connection]
niik00 has left #ruby [#ruby]
Guest73 has joined #ruby
freerobby has quit [Quit: Leaving.]
<jhass> danrik: so not sure if you answered my question yet... ;)
jusmyth has quit [Quit: Leaving.]
<jhass> danrik: do you see Gemfile?
<danrik> jhass, im just trying to use gulp. which in turn requires sass and compass.
<adaedra> What commande gives you this error ?
freerobby has joined #ruby
<jhass> danrik: thing is gulp itself has not a single line of ruby code as far as I can tell
<adaedra> gulp ? npm install ? bundle install ? gem install xxx ?
tus has joined #ruby
<jhass> and running plain sass shouldn't yield that error
ta has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
<danrik> jhass, node ./node_modules/gulp/bin/gulp.js
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
aspiers has quit [Quit: WeeChat 1.1.1]
<jhass> mmh, weird
<adaedra> may be a problem with your Gulpfile
<adaedra> Or one of your dependencies
<eonbluez> i'm trying to figure out the best way to be able to pass a var that toggles debug, info, or warn for config.log_level in production.rb
rhllor has quit [Quit: rhllor]
<jhass> danrik: so no Gemfile in sight?
<eonbluez> anyone have any experience in managing production.rb with passing vars?
<danrik> jhass, no.
<adaedra> But it would be weird for a Gulpfile which install dependencies....
<adaedra> s/for//
reindeer is now known as napcae
dukz has joined #ruby
<jhass> eonbluez: just ENV["MY_VAR"] || "default" ?
<danrik> jhass, it then complains "You need to have Ruby and Compass installed and in your system PATH for this task to work."
piotrj has quit [Read error: Connection reset by peer]
piotrj_ has joined #ruby
<jhass> danrik: what's your compass version?
davejlong has joined #ruby
<adaedra> ah
<adaedra> I think I understand
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra> He seems to look for a given version of sass, but find one that doesn’t satisfy
<jhass> yeah
<adaedra> You have to install it manually at the right version with 'gem' command
<jhass> danrik: make a gist with the output of gem list please
eonbluez has left #ruby [#ruby]
tkuchiki has joined #ruby
tbon has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<jhass> huh
otisZart has joined #ruby
<jhass> can you add gem env please?
teddyp1cker has joined #ruby
<jhass> and which sass and which compass
<adaedra> o_O
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<danrik> ive never used ruby before. srry :( just trying to figure out why gulp script from another dev doesnt compile...
<jhass> something's itchy in your setup
<jhass> we got to figure out what
<danrik> does anyone here uses linux + gulp + sass + compass?
<adaedra> next time ask him to write a Gemfile for simpler operations…
<jhass> danrik: whining won't fix your setup, answer my questions please
<danrik> jhass, yep - I don't see sass and compass i that lsit - if that's what you're asking:)
<jhass> I'm asking for the output of the following commands:
<jhass> gem env
<jhass> which sass
<jhass> which compass
tubuliferous_ has joined #ruby
DouweM has quit [Quit: Leaving...]
<adaedra> I’m still confused about a Gulpfile which would call rubygems like that
<adaedra> Usually, they use sass though libsass or sass binary
Ankhers has joined #ruby
<jhass> what about the other two commands?
rhllor has joined #ruby
Guest73 has quit [Ping timeout: 240 seconds]
tbon has quit [Ping timeout: 265 seconds]
aryaching has joined #ruby
<jhass> danrik: ^
fryguy9 has quit [Quit: Leaving.]
dukz has quit [Remote host closed the connection]
<danrik> jhass, they arent found. I've removed those packages.
dmmoody has joined #ruby
<danrik> jhass, should I reinstall them using ymu?
<jhass> ugh no
<jhass> but please, at least tell us your actions
DouweM has joined #ruby
<danrik> jhass, srry
<jhass> debugging your setup while you're constantly changing it without telling is very difficult
<jhass> danrik: now run the following: gem install sass compass
<jhass> as your user, not with sudo, not with root
jefus has quit [Ping timeout: 256 seconds]
tubuliferous_ has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
<danrik> jhass, sry. i've just got pulled on urget task:(
jottr has quit [Read error: Connection reset by peer]
<danrik> jhass, Error installing compass:
<danrik> ERROR: Failed to build gem native extension.
<jhass> danrik: full outpiut to a pastebin please
<jhass> danrik: sudo yum install ruby-devel then try again
dereck has joined #ruby
mdibound has quit [Quit: Be back later ...]
mdibound has joined #ruby
<danrik> jhass, success. 4 gems installed.
bigkevmcd has joined #ruby
t_p has quit [Ping timeout: 246 seconds]
<jhass> the the gulp stuff again
<jhass> *try the
<danrik> jhass, awesomer awesome to the max. no errors this time.
<danrik> jhass, thank u - you're a lifesaver!
tvon has joined #ruby
tobago has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
senayar has joined #ruby
Fraeon has quit [Quit: Lost terminal]
tjohnson has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
mdibound has quit [Ping timeout: 245 seconds]
piotrj_ has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
<hs366> Q: Hi, I'm testing this class and im getting error: value should be string, what is the type of args in this case: https://gist.github.com/hs366/ce0c42d0a696f1c8b74c#file-gistfile1-rb-L19
polysics has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
xibalbian has joined #ruby
maletor has joined #ruby
dfinninger has joined #ruby
<ericwood> I'd add a puts that outputs the type of args[0]
zenith_ has joined #ruby
DouweM has quit [Quit: Leaving...]
dmmoody has quit [Remote host closed the connection]
<ericwood> puts args.map(&:class)
vtunka has quit [Quit: Leaving]
<ericwood> >> args = [1, 'hi']; args.map(&:class)
<eval-in_> ericwood => [Fixnum, String] (https://eval.in/299404)
<hs366> ericwood, thx i'll test it
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
zorak8 has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
zenith_ has quit [Ping timeout: 264 seconds]
Macaveli has quit [Ping timeout: 250 seconds]
thumpba_ has joined #ruby
shaquile has quit [Ping timeout: 265 seconds]
teddyp1cker has quit [Ping timeout: 264 seconds]
SOLDIERz has joined #ruby
thumpba has quit [Ping timeout: 252 seconds]
hanmac1 has quit [Quit: Leaving.]
sevenseacat has quit [Remote host closed the connection]
apoplexy has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
_maes_ has joined #ruby
MasterPiece has quit [Remote host closed the connection]
sambao21 has joined #ruby
karmatr0n has joined #ruby
SouL has quit [Ping timeout: 246 seconds]
dereck is now known as jefus
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zzing has joined #ruby
romero has joined #ruby
mois3x has joined #ruby
zacts has quit [Quit: leaving]
aiguu has joined #ruby
polysics has joined #ruby
bricker has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
piotrj has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
hs366 has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
teddyp1cker has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Hirzu_ has quit [Ping timeout: 250 seconds]
DouweM has joined #ruby
Takle has quit [Remote host closed the connection]
momomomomo has joined #ruby
User458764 has joined #ruby
DEA7TH has quit [Ping timeout: 245 seconds]
fryguy9 has joined #ruby
dmmoody has joined #ruby
Macaveli has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Takle has joined #ruby
havenwood has joined #ruby
dukz has joined #ruby
GnuYawk has joined #ruby
pietr0 has joined #ruby
ndrei has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
melmouss has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
dmmoody has quit []
dmmoody has joined #ruby
_maes_ has joined #ruby
bal has quit [Quit: bal]
jottr has joined #ruby
dmolina1 has joined #ruby
dmolina has quit [Read error: Connection reset by peer]
brb3_ has quit [Quit: ZZZzzz…]
dmmoody has quit [Remote host closed the connection]
downtown has quit [Quit: leaving]
xibalbian has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 255 seconds]
karmatr0_ has joined #ruby
xibalbian has joined #ruby
nucular11 has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
rodfersou has quit [Remote host closed the connection]
rodfersou has joined #ruby
thumpba has joined #ruby
minminsanjose has quit []
GaryOak_ has joined #ruby
ndrei has joined #ruby
drkyro has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
brb3 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
xibalbian has quit [Client Quit]
ARCADIVS has quit [Quit: ARCADIVS]
plashchynski has joined #ruby
thumpba_ has quit [Ping timeout: 264 seconds]
dmmoody has joined #ruby
max96at|off is now known as max96at
dblessing has joined #ruby
brb3 has quit [Ping timeout: 250 seconds]
mdibound has joined #ruby
GnuYawk has quit [Read error: Connection reset by peer]
aiguu has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
dmmoody has quit [Client Quit]
iamjarvo has joined #ruby
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
mleung has joined #ruby
dmmoody has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
maletor has quit [Client Quit]
chthon has joined #ruby
iamjarvo has joined #ruby
duggiefresh has quit [Remote host closed the connection]
zacts has joined #ruby
Jackneill has joined #ruby
duggiefresh has joined #ruby
thumpba_ has joined #ruby
einarj has quit [Remote host closed the connection]
_Andres has joined #ruby
livathinos has quit []
plashchynski has quit [Read error: Connection reset by peer]
qohelet_ has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
mdibound has quit [Ping timeout: 255 seconds]
tgunr has joined #ruby
thumpba has quit [Ping timeout: 240 seconds]
_hollywood has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
duggiefresh has quit [Ping timeout: 252 seconds]
werelivinginthef has quit [Ping timeout: 244 seconds]
werelivinginthef has joined #ruby
maletor has joined #ruby
BTRE has quit [Ping timeout: 246 seconds]
dEPy has quit [Quit: (null)]
cazrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Asher1 has quit [Quit: Leaving.]
surs has quit [Quit: WeeChat 0.3.7]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
ozzloy has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
ndrei has quit [Ping timeout: 240 seconds]
dANO_ has joined #ruby
sambao21 has joined #ruby
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
qohelet_ has quit [Quit: qohelet_]
lxsameer has quit [Changing host]
lxsameer has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
juanpablo__ has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
GnuYawk has joined #ruby
danjordan has left #ruby [#ruby]
nicolastarzia has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
chrishough has joined #ruby
tgunr has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
SouL has joined #ruby
BTRE has joined #ruby
mois3x has quit [Ping timeout: 244 seconds]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soda has quit [Remote host closed the connection]
kaiZen- has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
momomomomo has joined #ruby
jarjar_prime has joined #ruby
duggiefresh has joined #ruby
iliketurtles has joined #ruby
tommylommykins is now known as tommylommy12345
yourwebdevguy has joined #ruby
tommylommy12345 is now known as tommylommykins
graydot has joined #ruby
aiguu has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
danrik has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
kaiZen- has quit [Quit: Computer has gone to sleep.]
senayar has quit [Remote host closed the connection]
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbon has joined #ruby
momomomomo has quit [Quit: momomomomo]
DouweM_ has joined #ruby
marr has joined #ruby
epistrephein has joined #ruby
graydot has quit [Quit: graydot]
DouweM has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
Takle has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
tgunr has joined #ruby
wldcordeiro has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tubuliferous_ has joined #ruby
parduse has quit [Ping timeout: 264 seconds]
tbon has quit [Ping timeout: 272 seconds]
tcrypt has joined #ruby
parduse has joined #ruby
bradleyprice has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
tubuliferous_ has quit [Ping timeout: 256 seconds]
tier has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
strixd has quit [Quit: 500]
karmatr0_ has quit []
dmolina1 has quit [Quit: Leaving.]
LJT has quit [Quit: Sleeping...]
tier_ has quit [Ping timeout: 255 seconds]
DouweM_ has quit [Read error: Connection reset by peer]
iliketurtles has quit [Quit: zzzzz…..]
napcae is now known as crapcae
brb3 has joined #ruby
lordkryss has joined #ruby
fryguy9 has quit [Quit: Leaving.]
wallerdev has joined #ruby
sambao21 has joined #ruby
Fraeon has joined #ruby
Hirzu has joined #ruby
wallerdev has quit [Client Quit]
joonty has quit [Quit: joonty]
wallerdev has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
centrx has quit [Remote host closed the connection]
zachrab has joined #ruby
jottr has joined #ruby
joonty has joined #ruby
Wolland has joined #ruby
preller_ has quit [Quit: leaving]
preller_ has joined #ruby
mistermocha has joined #ruby
terlar has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 255 seconds]
joonty has quit [Client Quit]
MasterPiece has joined #ruby
evilthomas has quit [Quit: leaving]
jonr22 has quit [Ping timeout: 265 seconds]
tvon has quit [Quit: Lost terminal]
dmmoody has quit [Remote host closed the connection]
senayar has quit []
jonr22 has joined #ruby
dmolina has joined #ruby
crazydiamond has joined #ruby
Hirzu has quit [Remote host closed the connection]
dmolina has quit [Remote host closed the connection]
dmmoody has joined #ruby
maximski has quit []
cazrin has joined #ruby
urtokk has quit [Ping timeout: 246 seconds]
tier has quit [Read error: Connection reset by peer]
tier_ has joined #ruby
sepp2k has joined #ruby
fryguy9 has joined #ruby
dmmoody has quit [Read error: Connection reset by peer]
aswen has quit [Ping timeout: 245 seconds]
dmmoody has joined #ruby
SOLDIERz has joined #ruby
epistrephein has quit []
epistrephein has joined #ruby
ptrrr has quit [Quit: ptrrr]
Matthews_ has quit [Remote host closed the connection]
justin_pdx has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
sevvie has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 264 seconds]
zzing has joined #ruby
ozzloy has joined #ruby
tubuliferous_ has joined #ruby
mleung_ has joined #ruby
iliketurtles has joined #ruby
krandi has quit [Remote host closed the connection]
mleung has quit [Ping timeout: 252 seconds]
mleung_ is now known as mleung
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
piotrj has quit []
Daneel has joined #ruby
<Daneel> hi
<jhass> hi
wallerdev has quit [Quit: wallerdev]
jonr22 has quit []
mjuszczak has joined #ruby
<Senjai> Hello Ruby
graydot has joined #ruby
wallerdev has joined #ruby
parduse is now known as Guest24536
Mon_Ouie has quit [Ping timeout: 255 seconds]
ych4k3r has quit [Ping timeout: 250 seconds]
<Daneel> i am absolutly newby about ruby
pardusf has joined #ruby
<Daneel> i have this hash structure : http://pastebin.com/TjZAYC9V
<helpa> Hi Daneel. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
Guest24536 has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
alex88 has quit []
urtokk has joined #ruby
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[gmi] has joined #ruby
dmmoody has quit [Remote host closed the connection]
<Daneel> and i would like to get the value in name or pass or redir
<Daneel> how is it possible ?
tubulife_ has joined #ruby
tubulife_ has quit [Remote host closed the connection]
<jhass> Daneel: what's acl?
<jhass> a method, a variable?
<jhass> what does it return/contain?
tubulife_ has joined #ruby
<Daneel> it contains an hash
ych4k3r has joined #ruby
<jhass> same for name, pass, redir
Zai00 has quit [Quit: Zai00]
cvtsx has quit [Read error: Connection reset by peer]
<Daneel> same what ?
<jhass> >> { acl => { name => "foo" } }
<eval-in_> jhass => undefined local variable or method `acl' for main:Object (NameError) ... (https://eval.in/299526)
tubulife_ has quit [Client Quit]
<jhass> see ^
<jhass> their values most come from somewhere
arup_r has joined #ruby
iliketurtles has quit [Remote host closed the connection]
<Daneel> i am realy newby so perhaps i misunderstood structure in my array
<jhass> well, we can only work with what you show
<jhass> the thing you showed does not run
<arup_r> Daneel: No prob
ghostpl_ has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
<Daneel> when i reread the array i think it is missing a value for the key acl
doodlehaus has quit [Ping timeout: 252 seconds]
<jhass> ?
dmmoody has joined #ruby
<Daneel> the name of key is acl but without value associated
<Daneel> no ?
<jhass> doubt it
<jhass> as said acl is a method call or a local variable
dmmoody has quit [Client Quit]
<jhass> "acl" would be a string
<jhass> :acl would be a symbol
jonr22 has joined #ruby
<Daneel> my goal is to group by group of 3 elements name, pass and redir
<jhass> 'acl' would be a string too
mdibound has joined #ruby
<Daneel> name have a value
<Daneel> pass and a value
<Daneel> redir have a value
mikecmpbll has quit [Ping timeout: 264 seconds]
jespada has joined #ruby
<Daneel> acl is just for a container
<Daneel> a group of 3 elements
<jhass> hash keys must be objects
<jhass> >> { "acl" => {"name" => "value" } } # this works
<eval-in_> jhass => {"acl"=>{"name"=>"value"}} (https://eval.in/299529)
<jhass> >> acl = "a"; name = "b"; { acl => {name => "value" } } # this works
<eval-in_> jhass => {"a"=>{"b"=>"value"}} (https://eval.in/299530)
dropp_ has joined #ruby
<jhass> >> { acl => {name => "value" } } # this does not
<eval-in_> jhass => undefined local variable or method `acl' for main:Object (NameError) ... (https://eval.in/299531)
chthon has quit [Ping timeout: 244 seconds]
Morkel has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
dropp has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
mdibound has quit [Ping timeout: 256 seconds]
catsoup is now known as catsoup|away
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
<jhass> yes, a lot
<jhass> well, name, pass and redir still are undefined
<jhass> but at least you eliminated the possibility of overriding your hash key over and over again
ptrrr has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
<Daneel> so if we supose they are defined somewhere else
<jhass> >> {name => "a", pass => "b", redir => "c", the_names_do_not_matter => "d" }
<eval-in_> jhass => undefined local variable or method `name' for main:Object (NameError) ... (https://eval.in/299535)
<Daneel> how to get the value of name ?
juanpaucar has quit [Remote host closed the connection]
<jhass> p name for example
iamninja has quit [Quit: WeeChat 1.1.1]
<Daneel> p name ?
<jhass> p is like puts but for the developer, not for the user
<jhass> >> puts "foo"
<eval-in_> jhass => foo ... (https://eval.in/299536)
<jhass> >> p "foo"
<eval-in_> jhass => "foo" ... (https://eval.in/299537)
[gmi] has quit [Read error: Connection reset by peer]
martin_work has joined #ruby
<Daneel> i saw here it exist key "function" : http://ruby-doc.org/core-2.1.5/Hash.html
<Daneel> and it looks to exist also value "function"
antgel has quit [Ping timeout: 256 seconds]
mjuszczak has quit []
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> that page has a single mention of the word function and it's completely unrelated, so maybe you can understand that I'm not following you there
tubuliferous_ has quit [Remote host closed the connection]
<Daneel> yes i used function with code to explain it is not function
<Daneel> s/code/quote/
tubuliferous_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Daneel> better to say method ?
<jhass> yes, but I'm not sure that's relevant here
<jhass> Do you know what a string is and what a local variable is?
<Daneel> in the page i linked they use h.key(100)
<jhass> yes
<Daneel> key is a method that return the key associated with the value 100
<jhass> yes
<eam> h.key(LOCAL_MACHINE)
<Daneel> i what the method to get the value associated with a key
<workmad3> Daneel: you want fetch
<jhass> or plain []
<jhass> >> h = {"a" => "b"}; h["a"]
<eval-in_> jhass => "b" (https://eval.in/299539)
pht59x has joined #ruby
<Daneel> hhhoooo
juanpaucar has joined #ruby
baweaver has joined #ruby
pontiki has joined #ruby
meatherly has joined #ruby
<Daneel> i try it
mjuszczak has joined #ruby
psychopath_mind has joined #ruby
_ixti_ is now known as ixti
ki0 has quit [Ping timeout: 246 seconds]
<Daneel> in fact i does not practive ruby. i try to create a puppet template
teddyp1cker has quit [Remote host closed the connection]
<Daneel> in a puppet template we can use ruby
aagdbl has joined #ruby
<Daneel> puppet user here ?
<jhass> yes but it also does a crap ton of magic
<jhass> maybe you're better in #puppet
teddyp1cker has joined #ruby
<Daneel> perhaps
<Daneel> but my question i due to i don't know ruby at all
<jhass> maybe learn a bit plain ruby first?
lioninawhat has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
<Daneel> it works
<Daneel> i fetched values
<Daneel> thank you guys
mistermocha has joined #ruby
govg has joined #ruby
gaussblurinc1 has quit [Client Quit]
teddyp1cker has quit [Ping timeout: 264 seconds]
ta has joined #ruby
iwaffles has joined #ruby
yekta has joined #ruby
martin_work has left #ruby [#ruby]
cazrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
epistrephein has quit []
<Daneel> bye bye have a nice day
Daneel has quit [Quit: Page closed]
claw has quit [Ping timeout: 256 seconds]
graydot has joined #ruby
casadei has joined #ruby
leafybasil has quit [Remote host closed the connection]
mjuszczak has quit []
baweaver has quit [Remote host closed the connection]
jespada has quit [Ping timeout: 256 seconds]
claw has joined #ruby
spider-mario has joined #ruby
leat1 has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
teddyp1cker has joined #ruby
govg has quit [Ping timeout: 264 seconds]
govg_ has joined #ruby
slackbotgz has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 246 seconds]
slackbotgz has joined #ruby
<hackeron> hey, I have a long running process that uses eventmachine and the amqp gem. For some reason, the memory of this process is leaking around 1% memory per day - it is currently at 6% memory and growing :/ - any ideas what I can do to try to detect the cause of the leak of the running process?
Takle has quit [Remote host closed the connection]
basmoura has joined #ruby
towski_ has joined #ruby
jespada has joined #ruby
kartouch has quit [Ping timeout: 250 seconds]
gfawcettpq has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
tcrypt has quit [Remote host closed the connection]
tcrypt has joined #ruby
<jhass> hackeron: have a look at ruby-prof or rbkit
tcrypt has quit [Client Quit]
dumdedum has quit [Quit: foo]
lioninawhat has quit [Remote host closed the connection]
<hackeron> jhass: any examples how to use either on a running process?
ramfjord has joined #ruby
kobain has joined #ruby
aryaching_ has joined #ruby
tier_ has quit [Read error: Connection reset by peer]
kartouch has joined #ruby
tier has joined #ruby
<jhass> uh, doubt you can unless you have a way to inject arbitrary ruby code
kalusn has quit [Remote host closed the connection]
<jhass> best would be to find a repro in a test env
<hackeron> jhass: yeh, I can't reproduce in a test environment :/
mary5030 has joined #ruby
layke has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby
iamninja has joined #ruby
iliketurtles has joined #ruby
tubuliferous_ is now known as tubuliferous
RegulationD has quit [Remote host closed the connection]
_Andres has joined #ruby
kuroro has joined #ruby
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
lkba has joined #ruby
kuroro has left #ruby [#ruby]
aryaching has joined #ruby
aryaching_ has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
Wolland has quit []
waxjar has joined #ruby
SouL_ has joined #ruby
kartouch has quit [Ping timeout: 256 seconds]
<hackeron> jhass: rbkit looks interesting - will try that, thank you!
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SouL has quit [Read error: Connection reset by peer]
kartouch has joined #ruby
juanpaucar has quit [Remote host closed the connection]
_djbkd has joined #ruby
mog_ has quit [Ping timeout: 255 seconds]
aryaching has quit [Client Quit]
leat1 has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
tcrypt has joined #ruby
Hirzu has joined #ruby
juanpaucar has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
rhllor has quit [Quit: rhllor]
ItSANgo has quit [Quit: Leaving...]
rhllor has joined #ruby
GaryOak_ has joined #ruby
pht59x has quit [Quit: pht59x]
juanpaucar has quit [Remote host closed the connection]
frem_ has joined #ruby
ylluminarious has joined #ruby
<hackeron> bradland: ooooooh, that's very interesting! - thank you for that!
MatthewsFace has joined #ruby
spiderbyte has joined #ruby
gfawcettpq has joined #ruby
aryaching has joined #ruby
rhllor has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
MatthewsFace has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
_djbkd has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Hijiri has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
roolo has joined #ruby
jottr_ has joined #ruby
ramfjord has joined #ruby
<hackeron> bradland: hmm, this is not custom background jobs, this is message processing - so now quite sure where to add the newrelic in this code: http://pastie.org/10021479 -- any ideas?
<hackeron> not*
_djbkd has joined #ruby
momomomomo has joined #ruby
ta has joined #ruby
sargas has joined #ruby
buub has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
Hirzu has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland> in that case, you'll have to do your own custom metrics
doodlehaus has joined #ruby
<bradland> at that point, you might as well just use some simple form of logging, IMO
<hackeron> bradland: I have logging - I just don't understand why memory is growing over time
<bradland> newrelic gets you pretty graphs and such, but you're looking for something really specific
<bradland> yes but *what* are you logging? logging any GC stats?
freerobby has quit [Quit: Leaving.]
<bradland> what version of ruby are you using?
sargas has quit [Client Quit]
<hackeron> bradland: no, not entirely sure what to log to detect this leak and ruby 2.2.0
momomomomo_ has joined #ruby
<bradland> sry, in and out. phone call
freerobby has joined #ruby
<hackeron> bradland: can't newrelic log all memory allocation and show a graph?
zachrab has quit [Remote host closed the connection]
spiderbyte has quit [Ping timeout: 240 seconds]
Rephiax has quit [Read error: Connection reset by peer]
wottam has joined #ruby
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
buub has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
BTRE has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 272 seconds]
aryaching_ has joined #ruby
tvon has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
lxsameer has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
mary5030 has quit [Remote host closed the connection]
SouL has joined #ruby
iliketurtles has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dANO_ has quit []
mun has left #ruby ["Quit message"]
martin_work_ has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbon has joined #ruby
mikecmpbll has joined #ruby
Notte has joined #ruby
martin_work_ is now known as martin_work
SouL_ has quit [Ping timeout: 246 seconds]
<arup_r> I am adding the dir `so` to the load path.. then why getting error when tried `ruby -Iso -e "puts $LOAD_PATH.first"` ?
<arup_r> undefined method `first' for nil:NilClass (NoMethodError)
sevvie has quit [Ping timeout: 256 seconds]
martinbmadsen has joined #ruby
<eam> arup_r: you need single quotes
<eam> $LOAD_PATH in double quotes in your shell is interpreted by bash
tbon has quit [Ping timeout: 252 seconds]
bim has quit [Remote host closed the connection]
spiderbyte has joined #ruby
<arup_r> is it? let me try
<eam> that command reduces to: ruby -Iso -e'puts .first'
<eam> and puts() returns nil
<arup_r> well.. you are right
aswen has joined #ruby
juanpaucar has joined #ruby
<hanmac> ping shevy
triangles has quit [Ping timeout: 252 seconds]
<shevy> hanmac hey
<arup_r> Then why this worked inside "" --- ruby -e "p [].empty?"
<hanmac> shevy check this out: http://minderheiten-quartett.de/ XD
bim has joined #ruby
thebastl has quit [Ping timeout: 244 seconds]
<arup_r> after -e flag inside the string should not things will be considered as Ruby code? eam :
<eam> arup_r: in your shell, "" interpolates $VARIABLES and certain other special metacharacters
<eam> it's done before the command is executed
SouL_ has joined #ruby
<eam> "p [].empty?" is actually the literal string, in bash
baweaver has joined #ruby
<eam> try calling something using a ! in the double quoted string though -- you'll see it break
<eam> ruby -e"exit!"
chinmay_dd has quit [Ping timeout: 244 seconds]
<eam> vs ruby -e'exit!'
thebastl has joined #ruby
<jhass> or -e 'exit\!'
<eam> $, ! are both evaluated by bash in a "", but not in a ''
<jhass> or -e "p \$LOAD_PATH"
bim has quit [Remote host closed the connection]
<eam> or echo ruby -Iso -e "puts $LOAD_PATH.first"
<eam> to see the command bash actually ends up running
xlogic has joined #ruby
tgunr has joined #ruby
havenwood has quit [Remote host closed the connection]
<eam> or (heh) LOAD_PATH='$LOAD_PATH'; ruby -Iso -e "puts $LOAD_PATH.first"
<jhass> I should search for that on Github
ghostpl_ has joined #ruby
<arup_r> search for what ?
iliketurtles has quit [Quit: zzzzz…..]
SouL has quit [Ping timeout: 265 seconds]
<jhass> bah, damn "intelligent" search
<arup_r> ok..
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<arup_r> you guys are ruby rocker
<arup_r> not me :(
rrichardsr3 has joined #ruby
sevvie has joined #ruby
bim has joined #ruby
<shevy> I rock
tier has quit [Remote host closed the connection]
<shevy> you rock
<shevy> we rock
<shevy> the ruby rock
ndrei has joined #ruby
slackbotgz has quit [Remote host closed the connection]
<jhass> who's paper and who's scissors?
jottr_ has joined #ruby
slackbotgz has joined #ruby
<arup_r> I can require in command line.. I know.. like I did.. But can we do require relative in like require in shell ?
<arup_r> I think no we can't do
<arup_r> me is neither
<shevy> arup_r require what in a shell? you mean in a shell script?
<arup_r> no,,, ruby
<jhass> arup_r: -r'./foo'
<arup_r> that is a require only.. by using relative path
baweaver has quit [Remote host closed the connection]
sambao21 has joined #ruby
<arup_r> :)
<shevy> ah you mean as direct invocation from a shell like bash
mdibound has joined #ruby
<arup_r> humm
aswen has quit [Ping timeout: 245 seconds]
sambao21 has quit [Client Quit]
havenwood has joined #ruby
bim has quit [Remote host closed the connection]
GnuYawk has quit [Ping timeout: 250 seconds]
martin_work has quit [Quit: martin_work]
spiderbyte has quit [Quit: WeeChat 1.0.1]
momomomomo_ has joined #ruby
blackmesa has joined #ruby
rhllor has joined #ruby
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
klmlfl has joined #ruby
sankaber has joined #ruby
aryaching_ has quit [Ping timeout: 256 seconds]
tgunr has joined #ruby
sambao21 has joined #ruby
norc has quit [Ping timeout: 246 seconds]
momomomomo has quit [Client Quit]
gfawcettpq has quit [Ping timeout: 272 seconds]
mjuszczak has joined #ruby
postmodern has joined #ruby
DLSteve has joined #ruby
<eam> arup_r: you can always just call require_relative() from within the -e
m8 has joined #ruby
<arup_r> humm.. that's true
dfinninger has quit [Remote host closed the connection]
uri_ has joined #ruby
uri_ has quit [Client Quit]
dfinninger has joined #ruby
mdibound has quit [Quit: Be back later ...]
bim has joined #ruby
RegulationD has joined #ruby
mdibound has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
starless has joined #ruby
kirun has joined #ruby
Cust0sLim3n has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
<havenwood> or: ruby -I "$PWD" -e "require 'xoxo'"
<jhass> ruby -I. is as good
chinmay_dd has joined #ruby
CustosLimen has quit [Ping timeout: 255 seconds]
sevvie has joined #ruby
<havenwood> 5 or more characters better :P
tier has joined #ruby
<havenwood> jhass: but then "." is in your $LOAD_PATH as opposed to a full path
<havenwood> Think of the children!
<jhass> yeah
<jhass> well, the sane version is to do none of these
<jhass> so what gives
dropp_ has quit [Quit: leaving]
freerobby has quit [Read error: Connection reset by peer]
<havenwood> ah, i've heard about this "sanity" thing
freerobby has joined #ruby
<adaedra> sanity is for the weak
bim has quit [Ping timeout: 246 seconds]
dfinninger has quit []
<jhass> <3 https://github.com/jhass/github_desktop_notifications runs rock solid with todays patches to crystal
mdibound has quit [Ping timeout: 252 seconds]
<havenwood> nice
RegulationD has quit [Ping timeout: 255 seconds]
aryaching has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
Cust0sLim3n has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
chinmay_dd has quit [Ping timeout: 246 seconds]
zapata has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
shredding has joined #ruby
davejlong has quit []
zapata has joined #ruby
shredding has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
Crazy_Atheist has joined #ruby
dfinninger has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
aryaching_ has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
martin_work has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
martin_work has quit [Client Quit]
teddyp1cker has quit [Ping timeout: 255 seconds]
zz_Outlastsheep is now known as Outlastsheep
jarjar_prime has quit [Quit: Ready? Set? Go!]
HOrangeJewce has joined #ruby
amishPa has joined #ruby
otisZart has joined #ruby
bootstrappm has joined #ruby
unizen has quit [Ping timeout: 252 seconds]
elfuego has joined #ruby
momomomomo has joined #ruby
mdibound has joined #ruby
uri_ has joined #ruby
bradleyprice has joined #ruby
martinbmadsen has quit [Ping timeout: 244 seconds]
hmsimha has joined #ruby
SegFaultAX has quit [Excess Flood]
martin_work has joined #ruby
SegFaultAX has joined #ruby
phale has joined #ruby
aryaching_ has quit [Ping timeout: 264 seconds]
<phale> "If you repeat a lie often enough, people will believe it, and you will even come to believe it yourself."
baweaver has joined #ruby
<elfuego> i’m using Net::HTTP.post_form(uri, params) to post to an endpoint but its returning a 302, when I use the raw url from a rest client I get a 200
<phale> elfuego: is any chance the uri you're using http but it's actually https?
<havenwood> elfuego: the latter is following the redirect
amishPa has left #ruby [#ruby]
<havenwood> elfuego: you have to manually follow redirects with Net::HTTP
thumpba_ has quit [Ping timeout: 245 seconds]
Notte has quit [Remote host closed the connection]
<phale> exactly, that's how unextensible it is
<phale> afk
<elfuego> havenwood: how can I follow the redirect?
martin_work has quit [Client Quit]
<elfuego> with Net::HTTP
checkit has joined #ruby
<mwlang> is carrierwave’s documentation on testing out of date? I can’t seem to use the have_dimensions, be_no_larger_than, etc. matchers as described.
nettoweb has joined #ruby
lanemeyer has quit [Ping timeout: 250 seconds]
<havenwood> elfuego: check the response and when it redirects manually proceed to the response['location']
freerobby has quit [Quit: Leaving.]
nicolastarzia has joined #ruby
<phale> mwlang: "be_no_larger_than"
<phale> sounds like shitty variable naming
<havenwood> elfuego: or use a Net::HTTP wrapper like RestClient that does redirection for you
<phale> or method
_2_lalala has joined #ruby
<jhass> phale: how so?
<mwlang> either that or rspec is causing the uploader to return a string rather than the uploader itself because its giving me this error: expected http://placehold.it/346x421 to respond to `has_dimensions?`
<phale> jhass: well look at it
<phale> it pains my eyes to look at it
<jhass> I did
<jhass> how so?
<phale> it's lengthy for no reason
<mwlang> phale: heh, take that one up with carrierwave folks. :-p
<havenwood> elfuego: or something not based on Net::HTTP like HTTP, HTTPClient, Excon, Typhoeus or others.
<phale> mwlang: sure whats their mailing list
<elfuego> thank havenwood will check it out
Lingo_ has joined #ruby
<elfuego> thanks*
<havenwood> elfuego: no prob
_2_lalala has quit [Remote host closed the connection]
<phale> def !> #not larger than end
huddy has quit [Quit: Connection closed for inactivity]
jottr_ has quit [Ping timeout: 264 seconds]
klmlfl has quit [Remote host closed the connection]
<havenwood> elfuego: I like to use HTTP or HTTPClient rather than deal with Net::HTTP. Others just love the stdlib so they backbend a bit.
User458764 has joined #ruby
<havenwood> Lovely gems are lovely.
klmlfl has joined #ruby
<phale> I dont get gems
<phale> how can you view their source code
kuroro has joined #ruby
ismaelga has quit [Remote host closed the connection]
<jhass> phale: $EDITOR $(gem which gemname)
<phale> hmm
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mwlang> so anyway….back to my issue…if I change the expectation to look at the uri instead of using “has_dimensions” then I get back the actual uploader instance as I was originally expecting!
<phale> also, I tried to do: s = gets.chomp
<phale> but if I EOF i will get a nomethoderror, this is normal, ruby handles the exception
LJT has joined #ruby
<phale> how do i get rid of that
<jhass> don't chomp when it's nil
<havenwood> phale: `gem open gem_name_here` to open in an editor
<phale> while s = gets.chomp != nil
<havenwood> phale: gem contents gem_name_here
<phale> havenwood: what about the rest of the files?
<havenwood> phale: ^ contents
<phale> ah
duncannz has joined #ruby
<havenwood> phale: e.g.: cat `gem contents rake`
<phale> seems a lot of work just to edit a file
<mwlang> phale: how about reading it all at once: lines = File.read(‘some_file.txt’).split(“\n”)
<phale> mwlang: i'm not reading a file
<havenwood> phale: this is a lot of work?: gem open gem_name
<havenwood> phale: oh
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tier_ has joined #ruby
mitchellhenke has joined #ruby
<phale> sounds like ruby isn't my kind of language anymore :-(
Soda has joined #ruby
mdibound has quit [Quit: Be back later ...]
rdark has quit [Quit: leaving]
<havenwood> was going to say, you can shorten it to `gem op gem_name` but that's as short and sweet as it gets, but you're talking about #gets
duncannz has quit [Read error: Connection reset by peer]
<havenwood> phale: why aren't you fickle?
mdibound has joined #ruby
<phale> havenwood: i'm using C
<phale> i just dont feel at home with ruby
iamjarvo has joined #ruby
tgunr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
<havenwood> phale: Ruby is the pride and joy of C hackers.
GothAlice has joined #ruby
<havenwood> phale: But maybe not your thing.
GothAlice has left #ruby ["Quitting."]
<havenwood> phale: Matz is a C hacker.
<phale> while (s = gets.chomp) != nil
duncannz has quit [Read error: Connection reset by peer]
<phale> this probably wont work
<phale> still gives me an exception
duncannz has joined #ruby
<wasamasa> havenwood: so is tenderlove
<weaksauce> phale a check for nil is not needed
relix has joined #ruby
<weaksauce> there are only two falsey values nil and false in ruby
chrishough has joined #ruby
tier has quit [Ping timeout: 245 seconds]
bim has joined #ruby
bihi has joined #ruby
mdibound has quit [Client Quit]
<weaksauce> and it will not ever end phale because "" is never false
mdibound has joined #ruby
<jhass> weaksauce: gets returns nil on EOF (Ctrl+D) actually
maletor has joined #ruby
<weaksauce> I was thinking from interactive
lele has quit [Quit: Coyote finally caught me]
bluOxigen has quit [Ping timeout: 264 seconds]
lele has joined #ruby
r3Dk1nG has quit [Remote host closed the connection]
<phale> yeah
<phale> i just want to handle this all my self
tvw has quit []
bluOxigen has joined #ruby
<weaksauce> phale why not read a file line by line using ruby idioms?
<jhass> as said, just don't call chomp on nil
<jhass> it's gets that returns nil, not chomp
klmlfl has quit [Remote host closed the connection]
<phale> weaksauce: seriously what the fuck
<phutchins> Anyone good with decoding binary? I'm trying to reverse engineer an encoded mongo BSON::ObjectId and get the data out of it. I'm able to get an array of bytes which looks something like [84, 179, 17, 54, 145, 19, 0, 107, 190, 0, 0, 17] but not sure what the next step is...
nicolastarzia has quit [Remote host closed the connection]
<pontiki> ruby is not for you!
<phutchins> There is a date, hostname and pid encoded in that string... :)
<baweaver> phutchins: ASCII?
<jhass> phutchins: do you have the actual values your example should transform to?
<havenwood> phale: do you get what jhass is saying?
<adaedra> there’s pack and unpack for that, no ?
<bihi> hi people, do you know if there's any reason Object methods are defined in Kernel which is included in Object, instead of directly in Object?
<weaksauce> phale while s = gets.chomp is c written in ruby
GaryOak_ has quit [Remote host closed the connection]
<phutchins> jhass: So I can get the date from built in methods so I coudl get that. And I know where the code is that creates the strings...
<weaksauce> thinking about it like you are doing null terminated strings
<phutchins> For example, https://github.com/mongodb/bson-ruby/blob/master/lib/bson/object_id.rb <- you can see the def generation_time, it does have an unpack
<weaksauce> phale that's what the fuck
<phale> i'm getting user input
mdibound has quit [Ping timeout: 264 seconds]
<phale> how is it hard to understand
tgunr has joined #ruby
kadoppe has quit [Ping timeout: 246 seconds]
dukz has quit [Remote host closed the connection]
<pipework> phale: How isn't it?
<phale> s = gets.chomp
<banister> apeiros sup guy
<phutchins> baweaver: Thats partially where i'm struggling is identifying what i'm getting back so I can get to the next step... I start with a BSON::ObjectId that looks like this.. .ObjectId("54b311369113006bbe000011")
<phale> how the hell is that easy to confuse with files?
shadoi1 has joined #ruby
<phale> im not even using an argument for file input or anything
<havenwood> phale: don't chomp nil
<apeiros_> banister: not much. killing a headache. and you?
<phale> havenwood: yeah
<phale> but how do i avoid doing that
<baweaver> Looks like Hex
<phutchins> phale: check for nil before doing chomp
<banister> apeiros need help with polymorphis associations :(
tgunr has quit [Client Quit]
<phale> >> [84, 179, 17, 54, 145, 19, 0, 107, 190, 0, 0, 17].map {|c| print c.chr }
gtrak has joined #ruby
<apeiros_> banister: you've bad timing :-p but ask away
<phale> wheres the bot
<phutchins> s = gets; s = s.chomp unless s.nil?
<jhass> there's your format
<havenwood> phale: but less verbose!
<apeiros_> jhass: cheater! :D
<phale> wheres the bot??
<baweaver> >> [84, 179, 17, 54, 145, 19, 0, 107, 190, 0, 0, 17].map(&:chr)
<eval-in_> baweaver => ["T", "\xB3", "\x11", "6", "\x91", "\x13", "\x00", "k", "\xBE", "\x00", "\x00", "\x11"] (https://eval.in/299558)
<baweaver> It didn't like your input I guess.
kadoppe has joined #ruby
<phale> ;(
<banister> apeiros heh, ok, basically i want my User models to be both something that can be commented ON and also the author of comments (where comments are polymorphic)
<phale> yeah this looks like nonsense
<baweaver> it's touchy on occasion.
<banister> apeiros comments BY a user i want to just access via user.comments but comments ABOUT a user i want to access via user.notes
JaViD84 has joined #ruby
<phale> >> [84, 179, 17, 54, 145, 19, 0, 107, 190, 0, 0, 17].pack("C*")
<eval-in_> phale => "T\xB3\x116\x91\x13\x00k\xBE\x00\x00\x11" (https://eval.in/299559)
gtrak has left #ruby [#ruby]
<phale> ;)
<jhass> >>[84, 179, 17, 54, 145, 19, 0, 107, 190, 0, 0, 17].pack("C*").unpack("N NX lXX NX")
<eval-in_> jhass => [1421021494, 2433941611, 48747, nil] (https://eval.in/299560)
<banister> apeiros i currently have this, is this legit? https://gist.github.com/4c346c7a30b4d1ae34ef
<phale> looks like a pseudorandom number generator to me
<apeiros_> banister: doesn't sound polymorphic
<jhass> >> Time.at([84, 179, 17, 54, 145, 19, 0, 107, 190, 0, 0, 17].pack("C*").unpack("N NX lXX NX")[0])
<eval-in_> jhass => 2015-01-12 00:11:34 +0000 (https://eval.in/299561)
<baweaver> Well then
<banister> apeiros cos comments can be on many different things, aside from users
<baweaver> jhass wins
<havenwood> phutchins: if you're doing explicit #nil? checks you can probably make it more concise and idiomatic by using truthyness
bMalum has joined #ruby
bMalum has quit [Remote host closed the connection]
patrick99e99 has quit [Read error: Connection reset by peer]
einarj has joined #ruby
* baweaver never deals with pack / unpack, wonders the reason to bother.
rrichardsr3 is now known as rrichardsr3_away
<havenwood> baweaver: was just doing a manual #pack #unpack "Q*" in Crystal and really missed the shortcut
synt_ has joined #ruby
<synt_> like i was saying, all software/programs and hardware sucks
<synt_> not trying to offend anyone though even my programs suck
Notte has joined #ruby
<havenwood> synt_: standing on the shoulders of giants
<mwlang> baweaver: yeah, two days in a row this subject comes up…unless you’re talking to your serial port on a Raspberry Pi, I don’t quite fathom the point.
<adaedra> synt_: thank you
<phutchins> jhass: AH! Ok closer. I get an array of int's back. no hostname tho :) maybe thats what the hostname was entered as tho
<jhass> synt_: show us some of your ruby though!
<synt_> there are things that are less shittier than others, thats why we use it
<synt_> okay
<apeiros_> banister: seems fine, what's the problem?
<phutchins> havenwood: yeah could definitely be more concise
enebo has joined #ruby
<jhass> phutchins: machine_id != hostname I'd say
<baweaver> impostor syndrome is a bad trap to fall into
<synt_> >> "38".unpack("C*")[0].to_i + ''.methods.length
<eval-in_> synt_ => 219 (https://eval.in/299562)
mbwe1 has joined #ruby
<baweaver> Yeah, I tend to only bother with high level ruby so very rarely does that come up for me.
<jhass> phutchins: so it's the MD5 hash of the hostname
mbwe1 has quit [Client Quit]
mbwe has joined #ruby
<synt_> as you can see
<synt_> my code is absolutely horrific
<jhass> phutchins: 32 bits of it that is
<phutchins> jhass: ah yes! ok so i'd have to know the hostnames and compare...
freerobby has joined #ruby
<adaedra> >> puts ”Hello World!”
leat1 has quit [Ping timeout: 245 seconds]
<baweaver> best piece of advice: You are not your code.
<synt_> did you just insult me?
<Outlastsheep> synt_: he reassured you cx
* baweaver sighs
JaViD84 has left #ruby ["Leaving"]
<Outlastsheep> You said it was horrific, he said you are not.
mjuszcza_ has joined #ruby
<synt_> exactly
phale has quit [Ping timeout: 245 seconds]
Hirzu has joined #ruby
mjuszcza_ has quit [Client Quit]
<baweaver> Mate, the amount of my early code that I've burned and buried is just as vast as any
<phutchins> jhass: so the fun part about this is that I'm dealing with a forked version of the BSON library that does decode the hostname string in the mongo object id :)
<baweaver> It's about where you go from there that matters.
patrick99e99 has joined #ruby
ibaqew has quit [Remote host closed the connection]
<phutchins> jhass: so i'm trying to learn how the orig version works and then figure out how to pull the hostname string from the modified version i'm working with now
<baweaver> bemoaning your current skill does little good, you just need to press on
mjuszczak has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
<jhass> phutchins: it would help to know the original hostname, but I doubt there's a full one in the bytes you've shown, it's a bit short for that
<phutchins> jhass: the one I'm workign with decodes the substring like so... return Math.floor(BinaryParser.decodeInt(this.id.substring(7,9), 16, false, false));
<banister> apeiros so that code looks correct?
juanpaucar has quit [Remote host closed the connection]
<phutchins> (this is javascript, yes i know)
<banister> apeiros nothing, i haven't tried it yet
thebastl has quit [Quit: Leaving...]
<phutchins> jhass: and it's encoded like so... var MACHINE_ID_STR = BinaryParser.encodeInt(MACHINE_ID, 24, false);
leat1 has joined #ruby
<apeiros_> banister: from a glance, yes. but I'm not so fluent in AR that I can write those things by heart.
<synt_> data-driven
tgunr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
<jhass> phutchins: I have not the slightest idea how BinaryParser operates
momomomomo has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
<banister> apeiros dude you've been programming rails for 15 years, you should know this shit!!!
<banister> ;)
<synt_> see that code?
<synt_> absolutely horrific
<jhass> phutchins: but something is odd, substring is 7, then read 9 right? or is it 7 to 9 so just two bytes?
bricker has quit [Ping timeout: 240 seconds]
<apeiros_> banister: the amount of non-trivial AR is minimal
momomomomo has joined #ruby
<jhass> synt_: giving s a proper name would help a lot already
rrichardsr3_away has quit [Quit: Textual IRC Client: www.textualapp.com]
<synt_> yeah!
<phutchins> jhass: yeah that was throwing me off too. DOn't understand hwo that could hold a hostname
<synt_> but why?
<synt_> it's short, stands for "string"
<jhass> synt_: another thing is using warn instead of STDERR.puts
<synt_> i see no reason to lengthen it
<jhass> synt_: string is not a nice name though, a good name describes the datas purpose, not its type/structure
martin_work has joined #ruby
synt_ has quit [Quit: Leaving]
sambao21 has joined #ruby
martin_work has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
maletor has quit [Ping timeout: 264 seconds]
<phutchins> jhass: i'm digging...
_hollywood has quit [Quit: Leaving]
<jhass> phutchins: as you see I have no clue about JS, so answering an or question with yes doesn't help me much :P
<baweaver> Instead of constantly saying your code is horrible, just ask people to give you advice on improving it
nfk has quit [Remote host closed the connection]
<baweaver> No reason to be dramatic about it.
<jhass> baweaver: they already dropped out
<baweaver> ah, missed it.
sambao21 has quit [Client Quit]
<jhass> yeah, had the next bit already typed :/
<baweaver> why people are so self deprecating is insane to me
<baweaver> ah well
sambao21 has joined #ruby
bricker has joined #ruby
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rhllor has quit [Ping timeout: 245 seconds]
xlogic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros_> odd choice of mongo for an object id
mordocai has joined #ruby
<apeiros_> it's 19 byte as far as I understand - so longer than a UUID and less good
<jhass> yeah, it's seems to be a badly executed UUID
<jhass> I'm sure yorick can explain why it exists :P
benlieb has joined #ruby
x1337807x has joined #ruby
klmlfl has joined #ruby
rhllor has joined #ruby
dseitz has joined #ruby
<benlieb> Hey folks, I'm having trouble installing chruby on my new ubuntu machine at work. The install instructions here seem to "suceed" and yet, chruby is not available https://github.com/postmodern/chruby
<apeiros_> jhass: I'm sure yorick can explain how and in how many ways it sucks :D
<benlieb> Is this a known problem with a workaround, or am I a sad unicorn
jenrzzz has joined #ruby
<baweaver> Here's a slight curiosity: why is Ruby less used for system administration at companies like Apple and Facebook? I get Google with Guido on staff.
<baweaver> It's not even really used much around here except on our team.
<shadoi1> baweaver: I work at apple. Just sayin.
momomomomo has quit [Quit: momomomomo]
<baweaver> I was seeing Python in one of their requirements
bootstrappm has quit [Quit: ~ Trillian - www.trillian.im ~]
<shadoi1> depends on the team
<baweaver> though it may be that they're as fragmented as us in that regard :P
kalusn has joined #ruby
* baweaver is at Sony in SF
<shadoi1> very.
<baweaver> Had a recruiter pinging me for a devops role over there
<baweaver> another one over at facebook
<baweaver> just noticed python is getting mentioned a lot more often
<baweaver> Not that I don't know it, I just tend to prefer Ruby.
<shadoi1> You can thank openstack for that
* baweaver googles
<postmodern> benlieb, make sure you have chruby loaded
<postmodern> benlieb, and restart the terminal
<baweaver> that'd do it
meatherly has quit [Remote host closed the connection]
<baweaver> You'd think Chef and friends would have a bit of pull on that
kuroro has quit [Remote host closed the connection]
<shadoi1> they do, but a LOT of people think it's insane to run ruby as root. ;)
<baweaver> and AWS is about as neutral as you can be on APIs (Ruby, JS, Python, etc)
<baweaver> granted.
<baweaver> though I think it's insane to run anything as root
<baweaver> but that's a different matter
* baweaver puts on tinfoil hat
<shadoi1> yeah
<phutchins> jhass: Ok, this all makes sense now. The way it's encoded now is not in string format as I was told, it is also an md5 of the hostname... So i wasn going down the wrong path.
<phutchins> jhass: thanks a ton for the help! And anyone else that chimed in :)
<phutchins> this was an interesting one...
<baweaver> Pretty sure we're the only team at Sony using Ruby though
benlieb has left #ruby ["Leaving"]
benlieb has joined #ruby
<arup_r> baweaver: Sony means?
<baweaver> company
<arup_r> those who build TV ?
<baweaver> among other things, yes
checkit has quit [Ping timeout: 264 seconds]
<arup_r> wow
<benlieb> postmodern: I did, and no dice
Outlastsheep is now known as zz_Outlastsheep
<arup_r> they do use Ruby.. cool
<jhass> didn't they build those singing robots? "popstars" or something was the brand name I think
<baweaver> though I'm at SNEI on the PS4 team. Most teams seem to use Python or JS
<baweaver> Vocaloids, not sure.
Jackneill has quit [Read error: Connection reset by peer]
<benlieb> postmodern: I can also see that /usr/local/share/chruby is not executable
startupality has quit [Quit: startupality]
<postmodern> benlieb, that might be an issue
<benlieb> I'd like to recommend the tool to my whole team
<baweaver> I could put a shameless plug on a posting we have :D
<benlieb> but the install isn't really working
startupality has joined #ruby
<postmodern> benlieb, make sure the dir is +rx and the files within it are +r
<benlieb> postmodern: where would I start debugging? The install process seemed to say all succeeded
Notte has quit [Remote host closed the connection]
<postmodern> benlieb, sounds like the permissions of /usr/local/share are too strict
startupality has quit [Client Quit]
EllisTAA has joined #ruby
<postmodern> benlieb, ls -l /usr/local/share/chruby
agrinb has joined #ruby
ItSANgo has joined #ruby
spyderman4g63 has quit []
<arup_r> baweaver: I'll apply for job then there..
<benlieb> postmodern: drwxr-xr-x 9 root root 4.0K Mar 12 11:03 share
<baweaver> they're all normally posted on LinkedIn.
<EllisTAA> I wrote this code but when i look at it i think "this looks noobish, you need to refactor it". can anyone give me tips on how to approach this with the goal of refactoring it? https://gist.github.com/ellismarte/269e58273bcfca355686
<baweaver> I know my team was looking for a senior Rails/Angular type for a lead spot.
mitchell_ has joined #ruby
DavidDudson has joined #ruby
basmoura has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> EllisTAA: what's up with the weird indentation of end?
<EllisTAA> jhass: ahhh yeah i’m bad with indentation
<benlieb> postmodern: when you say make sure "the dir" is ... what dir is that?
leat1 has quit [Ping timeout: 256 seconds]
<arup_r> all the place looking for senior only.. no value for juniors... :)
<jhass> EllisTAA: Range#step should come in handy for generating sum
DavidDud_ has joined #ruby
<baweaver> That was the position: https://www.linkedin.com/jobs2/view/35941688
<baweaver> I'm in the fun area right below Senior level myself.
<EllisTAA> jhass thanks
Rephiax has joined #ruby
Prometheian has joined #ruby
leat1 has joined #ruby
<jhass> EllisTAA: to compute a sum just use .inject(:+)
blueOxigen has joined #ruby
<jhass> >> [1, 2, 3].inject(:+)
<eval-in_> jhass => 6 (https://eval.in/299566)
mitchellhenke has quit [Ping timeout: 252 seconds]
<benlieb> postmodern: any advice?
<postmodern> benlieb, the dir being /usr/local/share/chruby, the one you said wasn't executable
<benlieb> postmodern: I said the files inside weren't executable. I'm not sure if they should be...
<EllisTAA> jhass: thanks
<postmodern> benlieb, oh my mistake
<benlieb> where should the chruby command live? It isn't being found...
<jhass> > [*(0...20).step(3), *(0...20).step(5)].uniq.inject(:+) # EllisTAA, I guess? didn't think it fully through yet
bluOxigen has quit [Ping timeout: 272 seconds]
<EllisTAA> in case you were interested i included the prompt: https://gist.github.com/ellismarte/269e58273bcfca355686
<jhass> >> [*(0...20).step(3), *(0...20).step(5)].uniq.inject(:+)
<eval-in_> jhass => 78 (https://eval.in/299569)
<EllisTAA> jhass: that looks pretty
<postmodern> benlieb, chruby is a function that lives in chruby.sh, so you must source chruby.sh in your shell's configuration. Can you `source /usr/local/share/chruby/chruby.sh` from the command-line?
<wallerdev> reduce makes so much more sense than inject
<EllisTAA> jhass: why are they in square brackets?
tbon has joined #ruby
<EllisTAA> and what’s up with the astrik?
<baweaver> foldL for life :D
DavidDudson has quit [Ping timeout: 252 seconds]
<baweaver> splat operator
jarjar_prime has joined #ruby
<baweaver> >> [[1,2,3]]
<eval-in_> baweaver => [[1, 2, 3]] (https://eval.in/299571)
Cadillactica has joined #ruby
<baweaver> >> [*[1,2,3]]
<eval-in_> baweaver => [1, 2, 3] (https://eval.in/299572)
<benlieb> postmodern: I was able to do that
<arup_r> +1
Hirzu has quit [Remote host closed the connection]
<benlieb> no output from the source command or the subsequent chruby command.
klmlfl has quit [Remote host closed the connection]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
<benlieb> I do have one ruby installed howeer
<benlieb> however
<baweaver> EllisTAA: jhass: So aren't you just getting numbers < 20 divisible by 3 or 5?
<jhass> >> [*1..5] # EllisTAA
<eval-in_> jhass => [1, 2, 3, 4, 5] (https://eval.in/299573)
<jhass> baweaver: mmh, yeah
<postmodern> benlieb, `type -t chruby` to ensure it was loaded
SouL has joined #ruby
<baweaver> >> (1..20).select { |n| n % 3 == 0 || n % 5 == 0 }.reduce(:+)
<eval-in_> baweaver => 98 (https://eval.in/299574)
<postmodern> benlieb, next follow the configuration instructions: https://github.com/postmodern/chruby#configuration
<benlieb> type -t ... is empty
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<jhass> baweaver: < 20 though, not <= 20
<baweaver> >> [*(0...20).step(3), *(0...20).step(5)].uniq
<eval-in_> baweaver => [0, 3, 6, 9, 12, 15, 18, 5, 10] (https://eval.in/299575)
<postmodern> benlieb, what shell are you using?
SouL_ has quit [Read error: Connection reset by peer]
<jhass> but was writing up the same
razieliyo has quit [Ping timeout: 250 seconds]
<baweaver> >> (1...20).select { |n| n % 3 == 0 || n % 5 == 0 }.reduce(:+)
<eval-in_> baweaver => 78 (https://eval.in/299576)
<baweaver> ah
<EllisTAA> baweaver: what’s up with .reduce(:+), what does that do
<baweaver> missed that
<baweaver> same as inject
<baweaver> alias
<jhass> yes
jottr_ has joined #ruby
<_blizzy_> could anyone explain what this line is doing? [1,3].reduce(:^)
<baweaver> >> (1..5).inject(:+) == (1..5).reduce(:+)
<eval-in_> baweaver => true (https://eval.in/299577)
<benlieb> echo $SHELL > /bin/bash
<_blizzy_> seems like I'm not the only one learning reduce.
<EllisTAA> jhass: baweaver: thanks for the lessons
ozzloy has quit [Ping timeout: 252 seconds]
<baweaver> reducing with the ``^`` operator
<jhass> _blizzy_: do you know what 1 ^ 3 does?
<_blizzy_> yeah, 1^3 = 1
agrinb has quit [Quit: Leaving...]
<baweaver> it's not exponentiation in ruby
<baweaver> it was bitwise
agrinb has joined #ruby
<_blizzy_> oh.
<benlieb> ooops, ok it's a function
<jhass> >> 1 ^ 3
<eval-in_> jhass => 2 (https://eval.in/299578)
<benlieb> I was in the wrong tab.
<wallerdev> ** is the exponent operator in ruby
<benlieb> too many tabs open trying to troubleshoot...
<baweaver> binary xor
tbon has quit [Ping timeout: 250 seconds]
<jhass> _blizzy_: so one thing to learn is what Fixnum#^ does, the other thing is Array#reduce (aka #inject)
beneggett has joined #ruby
atmosx has joined #ruby
<baweaver> if you passed :** it'd work
CodyStringham has joined #ruby
<_blizzy_> jhass, I know how reduce works.
<_blizzy_> like
<_blizzy_> >> [1,2,3,4].inject(:+)
<eval-in_> _blizzy_ => 10 (https://eval.in/299579)
<atmosx> Any idea what's wrong with these views (sinatra). For some reason I get an empty params hash
CodyStringham has quit [Client Quit]
<baweaver> https://gist.github.com/baweaver/c4ee517fe325d54447c5 - That might be handy to explain how map, reduce, and filter/select work with functions
<jhass> > [1.to_s(2), 3.to_s(2), (1 ^ 3).to_s(2)] # _blizzy_
<jhass> bah
<jhass> >> [1.to_s(2), 3.to_s(2), (1 ^ 3).to_s(2)] # _blizzy_
<eval-in_> jhass => ["1", "11", "10"] (https://eval.in/299580)
<baweaver> of course tail recursion in ruby isn't the best idea
<jhass> baweaver: but available as a compile time flag :P
<_blizzy_> oh, ok, it's binary. thanks, jhass.
<baweaver> still feels dirty...
<_blizzy_> thanks, baweaver.
<baweaver> no problem mate.
<baweaver> Kinda wish they'd just put in TCO already
LJT has quit [Quit: Sleeping...]
<elfuego> havenwood: I use this to make the post http://www.codeshare.io/zC6WF, but I don’t have access to objects returned by post, I just see #<Net::HTTPOK 200 OK readbody=true> when I inspect
jottr_ has quit [Ping timeout: 245 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<_blizzy_> so why does this return 1
<_blizzy_> >> [1,2,2].reduce(:**)
<eval-in_> _blizzy_ => 1 (https://eval.in/299581)
<baweaver> >> 1 ** 2
<eval-in_> baweaver => 1 (https://eval.in/299582)
<baweaver> >> 1 ** 3
<eval-in_> baweaver => 1 (https://eval.in/299583)
<_blizzy_> god I feel slow
<baweaver> happens.
jottr_ has joined #ruby
<_blizzy_> thanks, baweaver.
zenspider has joined #ruby
derekv2 has joined #ruby
<_blizzy_> I have 0 history of computer science. my high school doesn't offer AP Comp Sci. c:
<baweaver> that's mostly algebra for that though
Takle has joined #ruby
<_blizzy_> yeah.
derekv2 has quit [Read error: Connection reset by peer]
<baweaver> functional programming, that's pretty well just lambda calculus
<zenspider> any zsh+ruby folk? Can you take a look at this? https://github.com/seattlerb/minitest-sprint/issues/1
<baweaver> Just jump through SICP or Learn You a Haskell
<_blizzy_> I learned fold through haskell.
<zenspider> I prefer to push ppl at little schemer before SICP
<zenspider> it's a good compare & contrast
ozzloy has joined #ruby
<baweaver> fair enough
<baweaver> that and not as dense in general
blazes816 has joined #ruby
havenwood has quit []
<baweaver> zenspider: I use both, see if I can note anything.
bigkevmcd has quit [Quit: Outta here...]
leat1 has quit [Ping timeout: 252 seconds]
leat1 has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
<zenspider> I actually like the little schemer better from a pedagogy standpoint. that and I think the metacircular interpreter in ch 10 is cleaner than SICP's... but it was written 5-8 years later iirc.
<zenspider> don't get me wrong _blizzy_... they're BOTH classics and BOTH worth going through
<_blizzy_> zenspider, ok.
gfawcettpq has joined #ruby
triangles has joined #ruby
tcrypt has quit [Ping timeout: 256 seconds]
Vile` has quit [Ping timeout: 255 seconds]
<maZtah> hi! can anyone help me? how would i use this gem standalone? (so without rails fe) https://github.com/parasquid/namecheap
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has joined #ruby
Vile` has joined #ruby
reinaldob has quit [Remote host closed the connection]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
mordocai has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Lingo_ has quit [Quit: (null)]
SegFaultAX has quit [Excess Flood]
Cadillactica has quit [Quit: Cadillactica]
relix has joined #ruby
wald0 has quit [Ping timeout: 264 seconds]
LJT has joined #ruby
SegFaultAX has joined #ruby
<baweaver> zenspider: I'll play with it a bit more tonight when I have more than just a mac to test on.
klmlfl has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
blueOxigen has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<maZtah> thx wallerdev. i think i'm getting it now :)
SouL_ has joined #ruby
thumpba has joined #ruby
mitchell_ has quit [Quit: Computer has gone to sleep.]
<zenspider> baweaver: thanks!
<baweaver> I don't have that in either ENV out of 2 shells over here :/
lw has joined #ruby
thumpba_ has joined #ruby
<baweaver> could always just cheat and: (ENV['COMP_LINE'] || 'default')
SouL has quit [Ping timeout: 272 seconds]
rhllor has quit [Quit: rhllor]
klmlfl has quit [Ping timeout: 264 seconds]
jsrn has joined #ruby
<zenspider> I would guess COMP_LINE is only extant when you're tabbing out on something, but I honestly have no idea.
<zenspider> aaron wrote this and dropped it in my lap :)
<baweaver> Sounds par for course
<baweaver> I can always tell when a SeattleRB type writes something
<baweaver> def method args
<baweaver> vs
<baweaver> def method(args)
Kilo`byte has quit [Ping timeout: 252 seconds]
klmlfl has joined #ruby
thumpba has quit [Ping timeout: 264 seconds]
<Senjai> I love all of you
<Senjai> That is all
cats has quit [Ping timeout: 246 seconds]
prasselpikachu_ has quit [Ping timeout: 252 seconds]
<wallerdev> ily2
banister has joined #ruby
Dolphi has joined #ruby
<baweaver> that looks handy
borodin has quit [Quit: Page closed]
<baweaver> posting on issue for reference.
iwaffles has quit [Quit: iwaffles]
<zenspider> awesome. thanks
triangles2 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triangles has quit [Ping timeout: 244 seconds]
<zenspider> wtf is _% in zsh?
<zenspider> oh... or is that a typo?
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> Probably perl repl
cats has joined #ruby
<baweaver> or header for their shell
<zenspider> I think it is a typo now that I've read it a couple times
mistermocha has quit [Remote host closed the connection]
<baweaver> at very least it gives a direction
<zenspider> actually, this write up is rather buggy
<zenspider> I think his html renderer and/or CSS is getting in the way
mistermocha has joined #ruby
aclearman037 has quit [Quit: I'm out!]
prasselpikachu has joined #ruby
<zenspider> yeah. inspect found the rest
rhllor has joined #ruby
<baweaver> wouldn't be the first time HTML eats code.
ghostpl_ has quit [Remote host closed the connection]
zorak8 has quit [Read error: Connection reset by peer]
duncannz has quit [Remote host closed the connection]
<baweaver> well, in this case css with no overflow
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
zorak8 has joined #ruby
rodfersou has quit [Quit: leaving]
Kilo`byte has joined #ruby
<zenspider> I added a comment with the equivalent parts so porting is easier
<baweaver> adding an ``overflow: scroll`` to the ``pre`` tag fixes that sites issue;.
shadeslayer has quit [Ping timeout: 245 seconds]
tcrypt has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
razieliyo has joined #ruby
razieliyo has joined #ruby
<baweaver> if it weren't such a blasted pain to register to comment I'd tell the guy
tvw has joined #ruby
<baweaver> but I don't feel like going through a few forms to do that.
shadeslayer has joined #ruby
<hoelzro> baweaver: I have an account, I'll post it on your behalf
<baweaver> Ah, that'll work
<baweaver> thanks mate.
<hoelzro> just gist me what you want to say, and how you'd like to be credited
<hoelzro> np, thanks for finding the fix =)
<baweaver> Doesn't matter, just say his code is cropping from overflow
<baweaver> not too worried about credit, have at it.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
matchaw has quit [Ping timeout: 250 seconds]
<zenspider> hoelzro: throw in a 's/_% /% _/' comment for me please
<hoelzro> zenspider: sure thing
LJT has quit [Quit: Sleeping...]
Dreamer3 has joined #ruby
<baweaver> Disqus has spoiled me something fierce ;)
jespada has quit [Ping timeout: 252 seconds]
blazes816 has quit [Ping timeout: 256 seconds]
LJT has joined #ruby
<hoelzro> there, done
<baweaver> thanks mate.
<hoelzro> sure thing
<hoelzro> happy to help!
revoohc has quit [Quit: revoohc]
<postmodern> benlieb, got it working?
lioninawhat has joined #ruby
lanemeyer has joined #ruby
ghostpl_ has joined #ruby
reset has joined #ruby
Thaxll has joined #ruby
ismaelga has joined #ruby
reset has quit [Client Quit]
m8 has quit [Quit: Sto andando via]
<Thaxll> Hi, I'm trying to do something and I'm not sure if it
<Thaxll> it's possible*
<Thaxll> Is there an easy way to split a utf-8 string by bytes into an array but making sure that we don't cut in the middle of a character?
<jhass> that doesn't make sense
<Thaxll> Why that?
<jhass> what do you expect the output to be for a multi byte char?
tier_ has quit [Ping timeout: 245 seconds]
<shevy> jhass can not solve a utf-8 problem!
Asher has quit [Quit: Leaving.]
<Thaxll> well that's my problem, I want to cut before if we do cut in a mutli byte char
<baweaver> :O
<shevy> what is the middle of a character anyway
<jhass> Thaxll: so you don't want bytes, you want codepoints?
<shevy> will a 'n' become two 'i'? ii
<jhass> >> "aüb".codepoints
<jhass> right
<zenspider> Thaxll: you mean by character, not by byte?
<Thaxll> shevy: if i use unpack() it will unpack in the middle of the "bytes"
<shevy> the bot won't accept utf!
<jhass> try that
<baweaver> my_string.chars.map whateverunpackhere
<jhass> .codepoints
<jhass> simple as that
LJT has quit [Quit: Sleeping...]
mdibound has joined #ruby
<Thaxll> juste some background here, I'm receiving some messages that i have to output somewhere, that somewhere doesn't accept message bigger than 32K so I have to split large messagrinto small ones
thumpba_ has quit [Remote host closed the connection]
ldnunes has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
thumpba has joined #ruby
<Thaxll> jhass: I'm going to look at that tank you
<jhass> "മലയാണ്മ".codepoints
<jhass> try it
coderhs has joined #ruby
ghostpl_ has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
SOLDIERz has quit [Quit: Be back later ...]
<Thaxll> ( I'm running my code into jruby ) ;o
HOrangeJewce has joined #ruby
jerematic has quit [Remote host closed the connection]
jerematic has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
jerematic has quit [Remote host closed the connection]
<jhass> .chars.map(&:bytes) if you want something you can count bytes of
baweaver has quit [Remote host closed the connection]
<bradland> you can just do .bytes.size if you want to know the size
<jhass> there's .bytesize isn't there?
<bradland> Thaxll: I'd use String#byteslize
<jhass> >> "foo".bytesize
<eval-in_> jhass => 3 (https://eval.in/299589)
<bradland> to cut your string up in to 32K chunks
<bradland> good point jhass
teddyp1cker has quit [Ping timeout: 245 seconds]
<bradland> lol byteslize
<bradland> sry dude
<bradland> String#byteslice is what you want: http://ruby-doc.org/core-2.2.1/String.html#method-i-byteslice
Doc_X has quit [K-Lined]
<jhass> well, maybe he has a reason to not slice into the middle of a character?
The_Phoenix has quit [Read error: Connection reset by peer]
<Thaxll> yes
HOrangeJewce has quit [Client Quit]
<jhass> like no control over the assembling process?
<bradland> in his problem description, he says he needs to limit messages to 32K
<bradland> i wouldn't split multi-byte chars, personally
<Thaxll> I have to slice because the output is limited by the size of the message ( 32k ) and if I slice in the middle it won't encode to json
<bradland> that way each message is atomic
<Thaxll> because json is utf-8 only so my cut in the middle will break the utf-8 char and won't encode and then won;t flush
Alives has quit [Ping timeout: 276 seconds]
Doc_X has joined #ruby
<jhass> bradland: I guess you missed the initial one
mdibound has quit [Quit: Be back later ...]
roolo has quit [Remote host closed the connection]
Ankhers has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<bradland> yeah, as usual, i'm doing a drive by :)
<Thaxll> ( it's a logstash pluging btw )
pushpak has joined #ruby
<jhass> Thaxll: so with .chars.map(&:bytes) you can simply build up a new message, counting how many bytes you added and aborting if current_bytes.size + char.size > limit
<jhass> serialize the char again with .pack("C")
<_blizzy_> so, is there a difference between [1,2].reduce(&:^) and [1,2].reduce(:^)
ramfjord has quit [Ping timeout: 250 seconds]
<jhass> _blizzy_: the former is slightly slower since it creates an extra proc object
<_blizzy_> jhass, oh ok. thanks.
<jhass> while the later form uses send directly I believe
<_blizzy_> that makes sense. thxs.
sepp2k has quit [Quit: Konversation terminated!]
jerius has quit [Quit: /quit]
<bradland> heh, so byteslice will bisect a multi-byte character :\
<bradland> i guess that makes sense
baweaver has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
rkjaer has quit []
<jhass> Thaxll: or actually I guess no need for the map(&:bytes), just count along with .bytesize
<Thaxll> jhass: I think that's what I did first but it was slow compare to unpack, gonna try again!
jottr has joined #ruby
_djbkd has quit [Remote host closed the connection]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Dr3amc0d3r|away has joined #ruby
xybr_ is now known as xybre
jottr_ has quit [Ping timeout: 256 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iwaffles has joined #ruby
yekta has quit [Quit: yekta]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lioninawhat has quit [Remote host closed the connection]
xcombelle has quit [Quit: Quitte]
Asher has joined #ruby
duggiefresh has quit []
Soda has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 250 seconds]
elfuego has quit [Quit: elfuego]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
pietr0 has quit [Remote host closed the connection]
maximski has joined #ruby
pietr0 has joined #ruby
DouweM has joined #ruby
x1337807x has joined #ruby
ramfjord has joined #ruby
<Senjai> _blizzy_: Generally if a method accepts a symbol instead of a block, just always send it the symbol
it0a has quit [Quit: WeeChat 1.1.1]
<Senjai> It may just call to_proc on it anyway, but it might do something different or more optimized
Eiam has joined #ruby
<Senjai> a symbol is more versitile than a block
<Senjai> s/block/proc
ojacobson has quit [Quit: Leaving...]
DerisiveLogic has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
<jhass> Thaxll: super ugly but I think it works :P taken = 0; chunks = (s * 123).chars.slice_before {|c| taken += c.bytesize; (taken > 20).tap {|overflow| taken = c.bytesize if overflow } }.map(&:join)
<Thaxll> wtf
<Thaxll> I thought my unpack one liner was horrible: longMessage = event[@source_field].unpack("a#{@length}"*((size/@length)+((size%@length>0)?1:0)))
mistermocha has quit [Ping timeout: 252 seconds]
lioninawhat has joined #ruby
<Thaxll> jhass: what does your thing does i have some problem following the code lol it's my second day of ruby
mistermocha has joined #ruby
CustosLimen has joined #ruby
<jhass> it splits the input into individual characters (.chars)
<jhass> then it iterates over them counting the bytes
elowing has joined #ruby
<jhass> if taking that character would overflow, return false so slice_before starts a new chunk
<jhass> and reset the counter
<jhass> so 20 is the limit
<jhass> (s * 123) is just the input
<Thaxll> in bytes right?
<jhass> right
<Thaxll> ok let me try that
<jhass> using 3 byte chars as input I get 6 chars per chunk, so 18 bytes
<jhass> + 3 == 21 that would overflow so it starts a new one
<jhass> might be more efficient with replacing .chars. by .each_char. actually
doodlehaus has quit [Remote host closed the connection]
<Thaxll> jhass: damned it seems to work
<Thaxll> :D
leafybasil has joined #ruby
lw has quit [Quit: s]
DavidDudson has joined #ruby
brb3 has quit [Quit: <.<]
klmlfl has quit [Remote host closed the connection]
thumpba has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
CrazyM4n has joined #ruby
_djbkd has joined #ruby
thumpba has joined #ruby
dfinninger has joined #ruby
<helpa> Hi Thaxll. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
baweaver has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
<jhass> Thaxll: exactly 20 bytes each ;)
Notte has joined #ruby
DavidDud_ has quit [Read error: Connection reset by peer]
<jhass> and 13 for the last one
mdibound has joined #ruby
<jhass> you can check with .map(&:bytesize)
DavidDud_ has joined #ruby
razieliyo has quit [Remote host closed the connection]
<jhass> so [20, 18, 20, 19, 20, 18, 20, 19, 20, 20, 18, 20, 19, 13] actually
<jhass> so that's optimized for exhausting message length
DEA7TH has joined #ruby
CustosLimen has quit [Ping timeout: 256 seconds]
<jhass> if the chunking needs to be really fast I'd imagine assuming each char is 4 bytes should yield something I guess
dfinninger has quit [Ping timeout: 246 seconds]
DavidDudson has quit [Ping timeout: 252 seconds]
<jhass> but that sends 4 times as many messages in the worst case
leat1 has quit [Ping timeout: 265 seconds]
<jhass> so I'd rather spend some time chunking them properly
<jhass> cpu time that is ;)
dfinninger has joined #ruby
fryguy9 has quit [Quit: Leaving.]
GaryOak_ has joined #ruby
yourwebdevguy has quit [Quit: Leaving]
MasterPiece has quit [Ping timeout: 252 seconds]
Pupeno_ has joined #ruby
graydot has quit [Quit: graydot]
Pupeno has quit [Read error: Connection reset by peer]
yourwebdevguy has joined #ruby
<Thaxll> jhass: alright, it's dozen of thousands messages/sec so i'll benchmark that then optimize! thank you very much :)
yourwebdevguy has quit [Changing host]
yourwebdevguy has joined #ruby
<jhass> as said .each_char should be a bit faster already in that solution
decoponio has quit [Read error: Connection reset by peer]
<jhass> another possible optimization is to tack .each on the end instead of map and do the sending right away and the join inside
decoponio has joined #ruby
<jhass> both of these save allocation temporary arrays
patrick99e99 has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
otisZart has quit [Quit: Textual IRC Client: www.textualapp.com]
SouL_ has quit [Remote host closed the connection]
jespada has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
mdibound has quit [Quit: Be back later ...]
jenrzzz_ has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
iwaffles has quit [Quit: iwaffles]
kalusn has quit [Remote host closed the connection]
tbon has joined #ruby
enebo has quit [Quit: enebo]
jud has joined #ruby
jud has joined #ruby
jespada has quit [Ping timeout: 244 seconds]
Matthews_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Read error: Connection reset by peer]
d10n-work has quit [Quit: Connection closed for inactivity]
Dolphi has quit [Ping timeout: 244 seconds]
jespada has joined #ruby
cvtsx has joined #ruby
ghostpl_ has joined #ruby
MasterPiece has joined #ruby
MasterPiece is now known as Guest74211
hcnewsom has quit [Quit: hcnewsom]
maximski has quit []
ki0 has joined #ruby
Guest74211 has quit [Remote host closed the connection]
riotjone_ has joined #ruby
mikeric has joined #ruby
razrunelord has quit [Remote host closed the connection]
MasterPiece`` has joined #ruby
rrrutr has joined #ruby
Notte has quit [Remote host closed the connection]
sgambino has quit [Remote host closed the connection]
Hirzu has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
lxsameer has quit [Quit: Leaving]
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
fryguy9 has joined #ruby
ghostpl_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
tjohnson has quit [Quit: Connection closed for inactivity]
<bradland> this is pretty interesting
Hirzu has quit [Ping timeout: 256 seconds]
Lingo has joined #ruby
Lingo has quit [Client Quit]
<bradland> unicode is designed such that the first two bits of a byte will tell you whether it is A) the first byte of a multibyte sequence, or B) part of a multi-byte sequence
<bradland> so if you find that you need more optimization, Thaxll, you could use unpack and friends, so long as you range-check the bytes to make sure they're not part of a multi-byte character
elowing has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
<jhass> I'm not sure we can get lowlevel enough in ruby to be faster that way
fryguy9 has quit [Client Quit]
<bradland> yeah, that may be a problem
<jhass> you still have to count them and check if adding the current char breaks the limit
<bradland> you'd have to unpack, do the range-check at your boundary, then pack
<jhass> removing them form the current chunk if you hit the limit and are in a multi-byte sequence should be slower anyway
jespada has quit [Ping timeout: 246 seconds]
<bradland> yeah, there's no way to avoid a conditional there, which is going to slow things down
<jhass> it makes sense if you can do pointer arithmetic I guess
<Thaxll> you can cheat a bit
davedev2_ has joined #ruby
<bradland> or bitmask it
triangles has joined #ruby
<jhass> and then two pass, find the borders, allocate rightly sized buffers and copy over
davedev24_ has quit [Ping timeout: 246 seconds]
triangles2 has quit [Ping timeout: 244 seconds]
IrishGringo has joined #ruby
baweaver has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Stalkr_ has joined #ruby
codecop has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
<Thaxll> jruby seems fast enough from the first benchmark
chrishough has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
<bradland> Thaxll: since you're dealing with throughput, checkout benchmark-ips, if you haven't already
<Thaxll> bradland: excellent ty, I was using a python like benchmark with timer + iteration
MasterPiece`` has quit [Quit: Leaving]
zzing has joined #ruby
Lingo has joined #ruby
CrazyM4n has quit [Remote host closed the connection]
razrunelord has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
crazydiamond has quit [Remote host closed the connection]
<Lingo> Hello, iI am trying to send a post request with the following code
<helpa> Hi Lingo. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<Lingo> it is reaching the server like so: body:{"{\"key\":\"XXXXXXX\",\"message\":\"Hello dan your prescription is ready for pickup!\",\"to\":\"YYYYYYY\"}":""}
<Lingo> why is that?
CrazyM4n has joined #ruby
mdibound has joined #ruby
rhllor has quit [Quit: rhllor]
kaiZen- has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CrazyM4n has quit [Remote host closed the connection]
<shevy> Lingo that looks as if something tries to turn this into a complete string
<shevy> >> hash = { cat: 'Tom', mouse: 'Jerry' }; hash.to_s
<eval-in_> shevy => "{:cat=>\"Tom\", :mouse=>\"Jerry\"}" (https://eval.in/299609)
<shevy> so I assume, something calls a .to_s somewhere there; or you have some json data, that also gets .to_s transformed
Renich has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
ki0 has quit [Remote host closed the connection]
CrazyM4n has joined #ruby
relix_ has joined #ruby
davedev24_ has joined #ruby
relix has quit [Ping timeout: 252 seconds]
antivert has joined #ruby
<Diabolik> Why would I use blocks instead of creating functions or methods?
elfuego has joined #ruby
Lingo has quit [Quit: (null)]
yqt has joined #ruby
<Senjai> Diabolik: When you dont need to give a name to a method, or if you want to execute some code outside of your method at a specifc point.
lys has joined #ruby
Megtastique has quit []
<Senjai> commented with the output
<agrinb> So I'm given a string of mixed numbers and words, I need to return the string sorted, but the numbers and strings must stay in their respective indices. I just built an array and as I iterated through my array(composed of string elements originally) I would append a 'num
reinaldob has quit [Remote host closed the connection]
<agrinb> ' or 'str' to the tracking array
<Senjai> agrinb: Why do the numbers have to stay at their indicies?
<agrinb> i will explain
crueber has quit [Quit: Leaving.]
crazydiamond has joined #ruby
thumpba has quit [Remote host closed the connection]
<agrinb> then I iterated over the array of 'num'/'str' and for every 'num' I would shift from the sorted numbers array, same for strings and append to my final array
thumpba has joined #ruby
_djbkd has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 246 seconds]
<agrinb> now I have analyze my algo vs others I could have used
<agrinb> but I can't really think of anything else
lucianosousa has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 256 seconds]
<Diabolik> but Senjai
<Diabolik> you're still naming the block
<Diabolik> do_stuff
<agrinb> Senjai: the term of the problem is that you return a string with where numbers and strings are in the same order so '4 2 apple 6 berry' is returned as '2 4 apple 6 berry'
<Senjai> Diabolik: No, the block is anonymouse
<Senjai> anonymous
davedev24_ has quit []
RegulationD has quit [Remote host closed the connection]
<Senjai> I can call the same thing with, do_stuff(a, ->{|number| puts number + 1})
_djbkd has joined #ruby
<Senjai> Thats not syntactically correct
crazydiamond has quit [Remote host closed the connection]
<Senjai> but it should make my point
Rayford has joined #ruby
<Senjai> agrinb: !code
<helpa> agrinb: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
crazydiamond has joined #ruby
lioninawhat has quit [Remote host closed the connection]
iliketurtles has joined #ruby
freerobby has joined #ruby
<agrinb> note I wrote it in python
<agrinb> this is the old ruby version
<agrinb> and I see an error
freerobby has quit [Client Quit]
_djbkd has quit [Remote host closed the connection]
<Senjai> el.to_i.to_s != el
sevvie has joined #ruby
<Senjai> what
<Senjai> This is way over complicated
PaulCapestany has quit [Quit: .]
<Senjai> array_map(['5', '4', 'dog', '1', 'cat']) << Given this, what output do you expect?
jespada has joined #ruby
<agrinb> ["1", "4", "cat", "5", "dog"]
<Senjai> And why does this have to be sorted like this again? Homework?
<agrinb> Code screen
juanpaucar has joined #ruby
<agrinb> but I did the code screen
<Senjai> Code screen?
PaulCapestany has joined #ruby
<agrinb> for getting a job
<agrinb> I obviously have the algo
<Senjai> Let me poke at it
<agrinb> my question is, are there other ways to do this
<agrinb> worse, better
<Senjai> sec
crazydiamond has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
enterprisedc has quit [Ping timeout: 246 seconds]
crazydiamond has joined #ruby
crazydiamond has quit [Remote host closed the connection]
<agrinb> actually in my python script I don't do this nonsense el.to_i.to_s != el
<agrinb> I just used a try block
aagdbl has quit [Quit: Connection closed for inactivity]
<Senjai> agrinb: It'll take me a minute to do this
Rayford has quit [Quit: Rayford]
juanpablo__ has quit [Quit: (null)]
<agrinb> only if you want to do it
<Senjai> sure
<agrinb> I'm just curious about the approach
juanpablo__ has joined #ruby
<zenspider> this problem seems ill-defined
<zenspider> what happens with numbers of different lengths?
<Senjai> zenspider: They just keep their place
psychopath_mind_ has joined #ruby
<zenspider> not if they sort differently
<zenspider> given "123 12", obviously the indicies are going to change
<Senjai> Oh sorry
<Senjai> what
yourwebdevguy has quit [Quit: Leaving]
<Senjai> Okay
psychopath_mind has quit [Ping timeout: 255 seconds]
yourwebdevguy has joined #ruby
yourwebdevguy has quit [Changing host]
yourwebdevguy has joined #ruby
psychopath_mind_ is now known as psychopath_mind
<agrinb> '123 12' would turn into '12 123'
<Senjai> why
<zenspider> and the indicies would be different
<Senjai> [123, 12] ?
<Senjai> or ['123 12']
<Senjai> because the latter is a string
<Senjai> not an integer
<zenspider> please go read the description again
<agrinb> you should interpret numbers as integers '1' = 1
dfinninger has quit [Remote host closed the connection]
<zenspider> "given a string of mixed numbers and words, I need to return the string sorted, but the numbers and strings must stay in their respective indices"
juanpablo__ has quit [Ping timeout: 255 seconds]
jonr2219 has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
<agrinb> a = ['5', '4', 'dog', '1', 'cat'] should return ["1", "4", "cat", "5", "dog"] a[0] is a integer, a[1] is an integer, a[2] is a string, a[3] integer, a[4] string
<agrinb> and I'm sorry for confusing you with using numbers and integers interchangably
<apeiros_> partition, sort, merge
charliesome has joined #ruby
<apeiros_> also given that you treat strings as numbers, you should probably define numbers precisely.
<agrinb> the bottom line is that '1' and 1 should be treated the same, but '1' and 'one' should not be treated the same
<agrinb> aperios_: what do you mean by partition?
max96at is now known as max96at|off
<apeiros_> agrinb: nice touch with the trailing _, but really, use tab completion for nicks. avoids typos.
casadei has joined #ruby
<apeiros_> I mean Enumerable#partition
slackbotgz has quit [Remote host closed the connection]
<Senjai> agrinb: Assuming I didnt know about apeiros_'s utility methods: https://gist.github.com/Senjai/fd4fb74129dd570f17b6
<Senjai> would be my shot at it
<Senjai> if I was under the gun at an interview
<Senjai> with no internet connection
slackbotgz has joined #ruby
Beliq has quit [Quit: My computer has gone to sleep. ZZZzzz…]
lioninawhat has joined #ruby
<apeiros_> note that "merge" in my list is not an actual method. that part you have to implement yourself.
kirun has quit [Quit: Client exiting]
<Senjai> I havent used partition before though
<agrinb> apeiros_: whoa, just blew my mind on this tab thing
<agrinb> I'm a newbie obviously
<Senjai> It is by no means
<Senjai> an efficient solution
<Senjai> or the best way of doing it
<Senjai> But I think it handles that use case
klmlfl has joined #ruby
ghostpl_ has joined #ruby
<agrinb> Senjai: looking at it now
<agrinb> thanks
teddyp1cker has joined #ruby
<Senjai> ^_^, interesting but useless problem IMO
<Senjai> xD
<apeiros_> ints,strs = a.each_with_index.partition { |e,i| e =~ /\A\d+\z/ }; int_vals,int_idx = *ints.transpose; …
<Senjai> apeiros_: I was waiting for you to do your apeiros_ thing
<apeiros_> ^ basic building blocks of my solution
<Senjai> apeiros_: Woudlnt that treat "1sdfsafa" as an int?
<apeiros_> no
<Senjai> nvm
<Senjai> I was silly
<Senjai> \z
<apeiros_> but that's what I meant when I said "00:11 apeiros_: also given that you treat strings as numbers, you should probably define numbers precisely."
<Senjai> Transpose is interesting
iliketurtles has quit [Quit: zzzzz…..]
<apeiros_> there's tons of different possible valid definitions for number
einarj has quit [Remote host closed the connection]
<Senjai> Aye
Hirzu has joined #ruby
<Senjai> In my solution, I just determined it if Integer could convert it
<Senjai> without an issue
hiyosi has joined #ruby
<Senjai> I would eventually do something like your solution
<Senjai> and research the issue
<apeiros_> that's a viable approach
<Senjai> but I wouldnt come up with that offhand
<apeiros_> creating an array from indices and values… hm… I have a way, but not sure I like it.
<Senjai> reserved_indicies does not even need to be a hash
<Senjai> xD
<Senjai> could just be an array
<apeiros_> anyway, I estimate my solution to be ~10 LoC
sevvie has quit [Ping timeout: 252 seconds]
<Senjai> apeiros_: Want to take a shot at it?
<Senjai> I'd like to look at yours
<Senjai> save me from researching shorter ways of doing it
teddyp1cker has quit [Ping timeout: 256 seconds]
<apeiros_> 9 lines
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<apeiros_> without def/end
sevvie has joined #ruby
<Senjai> sexyshowmehplox
Hirzu has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wicope has quit [Remote host closed the connection]
ghostpl_ has quit [Ping timeout: 245 seconds]
<jhass> lol
<Senjai> apeiros_: I think you win
frem_ is now known as frem
tbon has quit [Ping timeout: 265 seconds]
<apeiros_> sweeet sweeet victory! :D
jasabella has joined #ruby
vivekananda has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
<Senjai> apeiros_: I've challenged my coworkers
<apeiros_> jhass lols… he knows something I don't :-S
<Senjai> to beat 9 lines
<Senjai> will keep ya in the know
lioninawhat has quit [Remote host closed the connection]
relix has joined #ruby
<Senjai> xD
vivekananda has joined #ruby
<apeiros_> Senjai: you can chain a couple of those things
<jhass> I have to admit, I don't follow what the splats do there
<jasabella> w
<Senjai> jhass: Just binding.pry it, and step through the execution xD
<apeiros_> jhass: you can leave them away. ruby autosplats. I like to be explicit.
relix_ has quit [Read error: Connection reset by peer]
<banister> apeiros_ sleep
<jhass> mh
<jhass> k
<Senjai> agrinb: You've turned this into a decent ruby golf game xD
<apeiros_> actually omitted the one in the first line
<apeiros_> banister: I should, yes
Takle has quit [Remote host closed the connection]
<jhass> and tbh I can't stand, a,b it has to be a, b! :P
<apeiros_> jhass: ah yes. that's because I copied pry code
iliketurtles has quit [Client Quit]
<baweaver> what golf where?
<agrinb> apeiros_: winner!
astrobunny has joined #ruby
<apeiros_> agrinb: I think you're the winner. got your code for free :-p
CrazyM4n has quit [Remote host closed the connection]
<Senjai> baweaver: Ruby Golf, a game where you have a small problem. Person to solve it in least number of lines or characters win
<Senjai> excluding whitespace
<agrinb> So I got this code challenge 2 weeks ago in ruby
<baweaver> well yeah
<agrinb> and today I get in python
<baweaver> just curious where the game was
<baweaver> scrollback is pesky
<agrinb> big smile on my face
jasabella has quit [Quit: Lost terminal]
boadie has joined #ruby
tohsig has quit [Quit: Textual IRC Client: www.textualapp.com]
zacts has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
<Senjai> apeiros_: Curve ball, account for negative integers xD
<Senjai> not really a curve ball
<agrinb> apeiros_: Thing is they asked me to analyze this vs other algorithms I could have used. It's not like I had 4 different options. I knew one.
<Senjai> just a modification of regex
<Senjai> but still
<apeiros_> Senjai: until agrinb specifies his numbers…
<apeiros_> which I said the third time now :-p
<Senjai> We're twisting the rules at work xD
<Senjai> Any whole integer in a string with no whitespace
<apeiros_> Senjai: you see, Integer() otoh allows things like 0b10, and treats 00123 as octal
<Senjai> is considered an integer
<agrinb> Integer range:-999999 to 999999
psychopath_mind has quit [Ping timeout: 252 seconds]
<Senjai> "-100" < Integer, "100" < Integer, "100.5" << String
<baweaver> I wanna play! Give me a bit.
<GaryOak_> 0
thiagovsk has quit [Quit: Connection closed for inactivity]
<klmlfl> can someone explained Ruby's 'defined?" method to a newbie (eli5)
<Senjai> "01" < Integer
<apeiros_> klmlfl: defined? is not a method
<klmlfl> operator
<apeiros_> it tells you whether an expression is defined or not. and if it is defined, it even gives you more detailed information about what it is
<apeiros_> klmlfl: please don't cross post. and if you do, tell in all channels where you ask, that you're cross posting.
<klmlfl> Please read that I DID do that!
<apeiros_> I don't see you telling here that you're cross posting.
<Senjai> def custom_sort(l);z=->a{Integer(a)rescue nil};y=l.map(&z);x,w=l.partition(&z).map(&:sort);y.map{|b|(b ? x : w).shift}end
<Senjai> apeiros_: ^
<Senjai> From jhawthorn @ work
<klmlfl> whatever man
lioninawhat has joined #ruby
klmlfl was kicked from #ruby by apeiros_ [I'm serious]
iliketurtles has joined #ruby
<jhass> apeiros_: fun part, they asked in #RubyOnRails too
<apeiros_> fun
<jhass> Radar: see ^
lys has quit [Quit: lys]
<Radar> thanks
IrishGringo has quit [Ping timeout: 265 seconds]
<baweaver> https://gist.github.com/baweaver/ab300db3a27f9d83781b - yeah, Senjai has it on this one
<baweaver> I just refactored the other one a bit.
<apeiros_> I find it irritating that they cross post after getting an answer.
a1fa has joined #ruby
<Radar> apeiros_: maybe they didn't see the answer?
<a1fa> what's a good tutorial site to start with ruby?
Stalkr_ has quit [Remote host closed the connection]
<shadoi1> a1fa: tryruby.org
<Radar> baweaver: subtle.
Sawbones has joined #ruby
<baweaver> I try.
<a1fa> shadoi1: using that one at the moment. what editor would you recommend ?
<baweaver> link shortner helps a lot.
<baweaver> for basics: sublime text
<a1fa> does it auto complete methods?
<baweaver> for potential power editors later, Vim or Emacs
reinaldob has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> don't
<baweaver> that's a good way not to learn the language.
<a1fa> good point
checkit has joined #ruby
enterprisedc has joined #ruby
jottr has joined #ruby
<baweaver> I tend to prefer vim myself, but if you don't know what it is I'd avoid it for a while
<baweaver> focus on learning one foreign concept at a time
<Senjai> codecademy.com is fine
<Radar> And Ruby is hard to autocomplete properly because it a dynamic language.
<baweaver> instead of taking the firehose
<Senjai> for 100% new to programming
<bradland> i've run through most of codeacademy.com
<Senjai> also ruby koans
<bradland> it's not horrible
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> Careful not to hit the idea that you need to learn everything at once.
<baweaver> Nightmare, that.
<bradland> a1fa: is this your first programming language?
<triangles> Why are static languages easier to autocomplete?
<a1fa> i've done mostly php, bash.. etc
<baweaver> lemur == baweaver
<baweaver> You can't define things on the fly like you can in Ruby.
<baweaver> doesn't stop pry and rubymine from trying
<shadoi1> triangles: because being able to map types directly removes uncertainty in the autocompleter logic
<baweaver> apeiros_: that bad?
thumpba has quit [Read error: Connection reset by peer]
<apeiros_> typical case of "lets continue elsewhere and be an idiot about it"
<baweaver> ah
thumpba has joined #ruby
<apeiros_> and I've no patience with that kind of shit anymore.
<bradland> a1fa: i'd give codeacademy.com a try if you've already done some programming
ptrrr has quit [Quit: ptrrr]
<Radar> apeiros_: Welcome to the "old and bitter" club.
<a1fa> thanks for the tips guys
<baweaver> If you're really up on programming: learnxinyminutes
<Radar> apeiros_: You are now eligible to join the Seattle.rb club.
<Senjai> Radar: Psht, you aint bitter
<Senjai> hahahaha
reinaldob has quit [Ping timeout: 272 seconds]
<apeiros_> Radar: hurray. what's the benefits?
<apeiros_> can I shoo people from my lawn?
<baweaver> ...beat me to it
<Senjai> apeiros_: Salty tea, http://en.wikipedia.org/wiki/Suutei_tsai
<Radar> apeiros_: Ban people from the channel when they even slightly piss you off
aiguu has quit [Ping timeout: 244 seconds]
<Radar> That's a good start
jottr has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
<Radar> apeiros_: If you can condescend to everyone you talk to as well you'll be doing pretty well
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> "UGH, you don't know Ruby?! Why should I even *bother* to speak to you?"
<baweaver> Easy there, any more and you'll be a Rails Core committer :P
<Senjai> baweaver: Dont even bring up Rails admin
<Senjai> or anything similar
<Radar> !activeadmin
<helpa> brb, shooting myself
RegulationD has joined #ruby
<jsrn> Radar: Funny, that's what I just wrote in my mother's day card
<apeiros_> lol
<apeiros_> never tried activeadmin. that bad?
<Radar> paints you into a corner
<Radar> and then plants land mines around you
<baweaver> skirted around it once, then made my own
<Radar> snipers on the rooftops
<Radar> that sort of thing
davedev24_ has joined #ruby
<bradland> i inhereted an activeadmin project one time
<baweaver> timebombs on databases
lioninawhat has quit [Remote host closed the connection]
<baweaver> No, I expect you to 'DROP TABLE' Mr Bond
<bradland> the problem with admin frameworks is that once you hvae a framework sufficiently flexible to accomodate "most" use cases...
<Senjai> The problem with admin frameworks is that they exist
<bradland> you begin to bump up against the complexity of simply using Rails + whatever your preferred forms library is
<baweaver> Sounds like Devise a bit.
mitchellhenke has joined #ruby
<bradland> oh god
<baweaver> god speed with LDAP by the way.
livingstn has quit []
<baweaver> you'd be a better man/woman than me if you can use it for more than a month without chucking something out a window,
charliesome has quit [Quit: zzz]
boadie has quit [Ping timeout: 265 seconds]
tbon has joined #ruby
dfinninger has joined #ruby