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 || log @ http://irclog.whitequark.org, other public logging is prohibited
pandaant has joined #ruby
<bradland> I no longer use it, because I have my own provisioning setup built on the Sprinkle gem, but that script used to work great for me
<bradland> it's apache + passenger
maximski has quit [Ping timeout: 256 seconds]
platosha_ is now known as platosha
patrick99e99 has joined #ruby
Synthbread has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
sngeth has quit [Ping timeout: 246 seconds]
Azure has quit [Ping timeout: 265 seconds]
binaryfreedom has joined #ruby
guardian has joined #ruby
sinkensabe has joined #ruby
plashchynski has quit [Quit: plashchynski]
RegulationD has joined #ruby
plashchynski has joined #ruby
_KY_ has joined #ruby
_KY_ has joined #ruby
_KY_ has left #ruby [#ruby]
sinkensabe has quit [Ping timeout: 246 seconds]
Sirupsen has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
hiyosi has joined #ruby
Synthbread has quit [Read error: Connection reset by peer]
cool has quit [Quit: Connection closed for inactivity]
ddv has left #ruby ["Leaving"]
Lewix has quit [Remote host closed the connection]
binaryfreedom has quit [Ping timeout: 256 seconds]
pwnz0r has quit [Remote host closed the connection]
jerematic has joined #ruby
pwnz0r has joined #ruby
gregf has joined #ruby
adamski2600 has joined #ruby
starless has quit [Quit: Leaving]
SilkFox_ has joined #ruby
pwnz0r has quit [Ping timeout: 256 seconds]
jerematic has quit [Ping timeout: 246 seconds]
wldcordeiro has joined #ruby
ndejay has joined #ruby
havenwood has joined #ruby
jonr22 has joined #ruby
nii236 has joined #ruby
havenn has quit [Ping timeout: 264 seconds]
adamski2600 has quit [Ping timeout: 264 seconds]
ndejay__ has joined #ruby
Limix has joined #ruby
Zai00 has quit [Quit: Zai00]
Limix has quit [Client Quit]
nii236 has quit [Ping timeout: 244 seconds]
binaryfreedom has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ndejay has quit [Ping timeout: 252 seconds]
tier has quit [Remote host closed the connection]
tkuchiki has joined #ruby
agrinb has joined #ruby
serivich has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
brandly has joined #ruby
pandaant has quit [Remote host closed the connection]
emocakes has quit [Ping timeout: 264 seconds]
manjaro_user has joined #ruby
binaryfreedom has quit [Ping timeout: 245 seconds]
ndejay__ has quit [Quit: Lost terminal]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
_64k has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 256 seconds]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
havenn has joined #ruby
sdothum has joined #ruby
havenn has quit [Remote host closed the connection]
manjaro_user has quit [Client Quit]
postmodern has joined #ruby
Synthbread has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
longfeet has quit [Ping timeout: 255 seconds]
AnxiousGarlic has joined #ruby
nii236 has joined #ruby
Azure has joined #ruby
hpoydar has joined #ruby
_64k has joined #ruby
nii236 has quit [Client Quit]
mbeasley_ has joined #ruby
hpoydar has quit [Ping timeout: 272 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
rubytor_ has quit [Ping timeout: 272 seconds]
SouL__ has quit [Ping timeout: 246 seconds]
_64k has quit [Ping timeout: 245 seconds]
mbeasley_ has quit [Quit: WeeChat 1.0.1]
Synthbread has quit [Read error: Connection reset by peer]
astrobun_ has quit [Remote host closed the connection]
brandly has quit [Remote host closed the connection]
pwnz0r_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
davidhq has quit [Ping timeout: 256 seconds]
blackmes1 has joined #ruby
Synthbread has joined #ruby
Xiti has quit [Quit: Xiti]
blackmesa has quit [Ping timeout: 272 seconds]
pwnz0r_ has quit [Ping timeout: 250 seconds]
lemur has quit [Remote host closed the connection]
davidhq has joined #ruby
platosha has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 244 seconds]
Alayde has quit [Ping timeout: 252 seconds]
jonr2219 has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
mbeasley_ has joined #ruby
nerium has quit [Quit: nerium]
reinaldob has joined #ruby
guanophobic has quit [Remote host closed the connection]
bigmac has joined #ruby
arescorpio has joined #ruby
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
nerium has joined #ruby
reinaldob has quit [Ping timeout: 252 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tymat has left #ruby [#ruby]
sinkensabe has joined #ruby
plashchynski has quit [Quit: plashchynski]
marr has quit [Ping timeout: 246 seconds]
anaeem1 has quit [Ping timeout: 244 seconds]
civim has quit [Quit: This computer has gone to sleep]
SOLDIERz has quit [Quit: Be back later ...]
jasabella has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
sngeth has joined #ruby
Megtastique has quit []
Spami has quit [Quit: This computer has gone to sleep]
_honning_ has quit [Ping timeout: 245 seconds]
blackmes1 has quit [Quit: WeeChat 1.1.1]
blackmesa has joined #ruby
nerium has quit [Quit: nerium]
Megtastique has joined #ruby
bentanweihao has joined #ruby
beef-wellington has joined #ruby
spiderbyte has quit [Ping timeout: 264 seconds]
sngeth has quit [Ping timeout: 264 seconds]
bentanweihao has left #ruby [#ruby]
freerobby1 has joined #ruby
n008f4g_ has quit [Quit: leaving]
jottr has quit [Ping timeout: 272 seconds]
Hirzu has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pandaant has joined #ruby
Xiti has joined #ruby
milesmatthias has joined #ruby
freerobby1 has quit [Quit: Leaving.]
Hirzu has quit [Ping timeout: 244 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_honning_ has joined #ruby
milesmatthias has quit [Ping timeout: 264 seconds]
willharrison has joined #ruby
<Musashi007> is there a way to automatically update all my gems to the latest released version?
markholmes has joined #ruby
<shevy> have you tried "gem update" or something similar?
Lewix has joined #ruby
Lewix has joined #ruby
roolo has quit [Quit: Leaving...]
<shevy> gem update --system
wldcordeiro has quit [Ping timeout: 256 seconds]
bentanweihao has joined #ruby
mbeasley_ has quit [Quit: WeeChat 1.0.1]
serivich has quit [Ping timeout: 252 seconds]
Azure has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
ferr has joined #ruby
serivich has joined #ruby
plashchynski has joined #ruby
flughafen_ has quit [Ping timeout: 246 seconds]
davedev24_ has quit []
roolo has joined #ruby
davidhq has joined #ruby
juanpablo_ has joined #ruby
maletor has joined #ruby
_honning_ has quit [Ping timeout: 264 seconds]
xxneolithicxx has joined #ruby
Sawbones has joined #ruby
davidhq has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 246 seconds]
Sirupsen has joined #ruby
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
j_mcnally has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 245 seconds]
yeticry has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
serivich has quit [Ping timeout: 252 seconds]
yeticry has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
avahey has joined #ruby
icebourg has joined #ruby
ta_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
yeticry has quit [Remote host closed the connection]
superspring has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
Beoran has quit [Ping timeout: 244 seconds]
superspring has joined #ruby
sinkensabe has joined #ruby
RegulationD has joined #ruby
jerematic has joined #ruby
Sawbones has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 250 seconds]
adamski2600 has joined #ruby
bonhoeffer has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
jerematic has quit [Ping timeout: 264 seconds]
Caius has quit [Ping timeout: 276 seconds]
adamski2600 has quit [Ping timeout: 264 seconds]
DerisiveLogic has joined #ruby
Caius has joined #ruby
thinkswan has joined #ruby
Beoran has joined #ruby
agrinb has joined #ruby
lemur has joined #ruby
Sawbones has joined #ruby
plashchynski has quit [Quit: plashchynski]
Lewix has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 256 seconds]
<morenoh149> does ruby have an equivalent for http://devdocs.io/javascript/global_objects/encodeuri ?
<weaksauce> URL.encode?
emocakes has joined #ruby
<weaksauce> or require open-uri
<weaksauce> URI::encode
deric_skibotn has quit [Ping timeout: 246 seconds]
sevvie has quit [Ping timeout: 245 seconds]
tlarevo has joined #ruby
tlarevo_ has joined #ruby
hpoydar has joined #ruby
sevvie has joined #ruby
tlarevo has quit [Ping timeout: 264 seconds]
karmatr0n has joined #ruby
aiguu has joined #ruby
hpoydar has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #ruby
Wolland has joined #ruby
ismaelga has joined #ruby
<morenoh149> weaksauce: thanks
tkuchiki has quit [Quit: Leaving...]
tkuchiki has joined #ruby
Wolland_ has joined #ruby
<Musashi007> @shevy thanks
Wolland has quit [Ping timeout: 252 seconds]
nii236 has joined #ruby
adamski2600 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<morenoh149> I'm following the docs here http://devdocs.io/ruby/openuri is there anyway to parse the entire response |f| instead of consuming it line by line?
<morenoh149> I'd like a single string |f| to run a regex against
Musashi007 has joined #ruby
jack_rabbit has quit [K-Lined]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
serivich has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 256 seconds]
fumk has quit [Remote host closed the connection]
fumk has joined #ruby
freerobby has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
anaeem1 has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
sngeth has joined #ruby
ruby119 has joined #ruby
<ruby119> .
ruby119 has quit [Client Quit]
ruby318 has joined #ruby
<ruby318> .
ruby318 has quit [Client Quit]
AnxiousGarlic has quit [Read error: Connection reset by peer]
<bricker> .
<bonhoeffer> anyone have recommended permissions for /usr/local/rvm
sngeth has quit [Ping timeout: 264 seconds]
Wolland_ has quit []
freerobby has quit [Quit: Leaving.]
riotjones has joined #ruby
psy_ has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
sinkensabe has joined #ruby
<jhass> morenoh149: just do body = open(url, &:read)
<bricker> bonhoeffer: 755 would probably be adequate
jgt1 has quit [Ping timeout: 272 seconds]
<bricker> assuming that's where rubies and gems will be installed?
<bonhoeffer> thanks bricker
centrx has quit [Quit: Shutting down, Please wait...]
<jhass> bonhoeffer: no offense, but I don't think a global RVM install will work out for you if you have to ask that question, it's pretty fragile and know what you're doing kind of stuff
riotjones has quit [Ping timeout: 245 seconds]
<bonhoeffer> jhass: so you would recommend a local install
<jhass> yes
sinkensabe has quit [Ping timeout: 246 seconds]
<jhass> https://rvm.io/support/troubleshooting see the second to last entry to cleanse it out
milesmatthias has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 252 seconds]
ghostpl_ has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 272 seconds]
justin_pdx has quit [Quit: justin_pdx]
sevvie has quit [Ping timeout: 246 seconds]
milesmatthias has quit [Ping timeout: 256 seconds]
thinkswan has quit [Remote host closed the connection]
sevvie has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
chipotle_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Cat_1 has joined #ruby
chipotle has quit [Ping timeout: 265 seconds]
Nanuq has quit [Ping timeout: 272 seconds]
juanpablo_ has joined #ruby
<Nilium> I wonder if Python 3.x is still having adoption issues
fuzzyhorns2 has quit [Ping timeout: 252 seconds]
serivich has joined #ruby
swgillespie has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
maximski_ has quit []
jerematic has joined #ruby
Nanuq has joined #ruby
psy_ has joined #ruby
agrinb has joined #ruby
maletor has joined #ruby
psy_ has quit [Max SendQ exceeded]
jerematic has quit [Ping timeout: 264 seconds]
twilling has quit [Quit: twilling]
martinbmadsen has joined #ruby
psy_ has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
nii236 has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
RegulationD has joined #ruby
amclain_ has joined #ruby
xxneolithicxx has quit [Ping timeout: 245 seconds]
amclain has quit [Ping timeout: 245 seconds]
latemus has joined #ruby
<Musashi007> @jhass is a global rvm what you get with a standard install?
zorak8 has quit [Read error: Connection reset by peer]
Roa_ has joined #ruby
<latemus> Hi everyone! I'm having some trouble with assignment from a method i think? is there something malformed about this '@template.riqn = SecureRandom.uuid'
RegulationD has quit [Ping timeout: 255 seconds]
zorak8 has joined #ruby
<sevenseacat> riqn is a model, SecureRandom.uuid is a uuid
<sevenseacat> theyre not compatible objects
Roa has quit [Remote host closed the connection]
<latemus> sevenseacat: How do i go about converting a uuid into a storage object?
<latemus> sorry -- storable object
<sevenseacat> you don't. you're fundamentally doing something wrong. what does your riqn model look like
<latemus> it has the following attributes name:string template_id:integer utemplate_id:integer instance_id:integer
<sevenseacat> so which one do you want the SecureRandom.uuid to be
<latemus> name
<sevenseacat> so assign it to the riqn.name
<sevenseacat> not the riqn itself
<latemus> Oh.. i see what you mean
serivich has quit [Ping timeout: 272 seconds]
<latemus> I'm trying to assign to the wrong level
<latemus> i thought you meant that SecureRandom output into some kind of incompatible datatype..
<latemus> Thanks sevenseacat
<sevenseacat> yw
braincrash has quit [Quit: bye bye]
bonhoeffer has quit [Quit: bonhoeffer]
<latemus> Will I need to instantiate @template.riqn.name beyond '@template.build_riqn' in the 'new' mehtod?
sinkensabe has joined #ruby
<sevenseacat> no.
<latemus> k
RegulationD has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
braincrash has joined #ruby
charliesome has quit [Quit: zzz]
serivich has joined #ruby
Vile` has joined #ruby
sinkensabe has quit [Ping timeout: 246 seconds]
Sawbones has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
bigmac has quit [Ping timeout: 246 seconds]
DEA7TH has quit [Ping timeout: 256 seconds]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
hpoydar has joined #ruby
milesmatthias has joined #ruby
ghostpl_ has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
mark[oz] has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 256 seconds]
milesmatthias has quit [Ping timeout: 265 seconds]
thinkswan has joined #ruby
kyrylo has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
Sawbones has joined #ruby
<bricker> Which do you guys prefer: https://gist.github.com/bricker/1925de99f4427b1a2134
<bricker> (lines 4 and 5)
<bricker> this is a little obfuscated so I know there are other ways to get the same result, but just between those two options which would you choose?
ghostpl_ has quit [Ping timeout: 255 seconds]
thinkswan has quit [Ping timeout: 264 seconds]
icebourg has quit []
longfeet has joined #ruby
nii236 has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
Sawbones has quit [Ping timeout: 264 seconds]
mroach has joined #ruby
agrinb has joined #ruby
jasabella has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
<mozzarella> why can't you just use hash?
<mozzarella> I don't get it
sevvie has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
sevvie has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
superspring has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 250 seconds]
superspring has joined #ruby
arescorpio has quit [Excess Flood]
nii236 has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
rkgudboy has joined #ruby
chrishough has joined #ruby
riotjones has joined #ruby
agrinb has joined #ruby
Hirzu has joined #ruby
Lewix has joined #ruby
jonr2219 has quit [Remote host closed the connection]
bruno- has joined #ruby
Mongey_ has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
Megtastique has quit []
AnxiousGarlic has joined #ruby
Sawbones has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Mongey_ has quit [Client Quit]
bruno- has quit [Ping timeout: 244 seconds]
JusticeFries has quit [Ping timeout: 246 seconds]
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
nii236 has joined #ruby
Synthbread has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Synthbread has joined #ruby
AlexRussia has joined #ruby
maletor has joined #ruby
aiguu has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Ping timeout: 255 seconds]
rkgudboy has quit [Ping timeout: 255 seconds]
juanpablo_ has joined #ruby
michael_mbp has quit [Excess Flood]
Hirzu has quit [Remote host closed the connection]
karmatr0n has quit []
jcp has joined #ruby
yosafbridge` has joined #ruby
psudoze has joined #ruby
jcp is now known as Guest94045
<psudoze> Hello
milesmatthias has joined #ruby
michael_mbp has joined #ruby
jonr22 has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
Sawbones has quit []
Kruppe has quit [Ping timeout: 245 seconds]
yosafbridge has quit [Ping timeout: 245 seconds]
jerematic has joined #ruby
rkgudboy has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
milesmatthias has quit [Ping timeout: 246 seconds]
hvxgr has quit [Ping timeout: 264 seconds]
DerisiveLogic has quit [Ping timeout: 245 seconds]
jonr22 has quit [Remote host closed the connection]
ferr has quit [Quit: WeeChat 1.1.1]
<mozzarella> hi
jerematic has quit [Ping timeout: 265 seconds]
rkgudboy has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
nii236 has quit [Ping timeout: 264 seconds]
<psudoze> hey mozz
rkgudboy has joined #ruby
jasabella has joined #ruby
Guest55371 has joined #ruby
sivsushruth has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ismaelga has quit [Remote host closed the connection]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CpuID has quit [Remote host closed the connection]
Guest55371 has quit [Ping timeout: 272 seconds]
psudoze has left #ruby [#ruby]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
leyluj has joined #ruby
anaeem1_ has joined #ruby
Channel6 has quit [Quit: Leaving]
aiguu has joined #ruby
agent_white has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> Evenin'
swgillespie has joined #ruby
lolmaus has joined #ruby
swgillespie has quit [Client Quit]
starless has joined #ruby
jack_rabbit has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
j_mcnally has joined #ruby
jasabella has quit [Ping timeout: 250 seconds]
agent_white has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
j_mcnally has quit [Client Quit]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
agent_white has joined #ruby
RegulationD has joined #ruby
fenzil has quit [Quit: Leaving]
charliesome has joined #ruby
ponga has quit [Quit: Leaving...]
charliesome has quit [Client Quit]
havenwood has joined #ruby
claptor has quit [Quit: this channel is bakas]
RegulationD has quit [Ping timeout: 244 seconds]
hpoydar has joined #ruby
RegulationD has joined #ruby
ponga has joined #ruby
sinkensabe has joined #ruby
bboss has joined #ruby
hpoydar has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
dfinninger has joined #ruby
Musashi007 has joined #ruby
sinkensabe has quit [Ping timeout: 246 seconds]
markholmes has joined #ruby
swgillespie has joined #ruby
ghostpl_ has quit [Ping timeout: 246 seconds]
Hirzu has joined #ruby
flip_digits has quit [Read error: Connection reset by peer]
shanlar- has joined #ruby
flip_digits has joined #ruby
ponga has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
lemur has quit [Read error: Connection reset by peer]
rkgudboy has quit [Ping timeout: 256 seconds]
lemur has joined #ruby
shanlar has quit [Read error: Connection reset by peer]
psmolen has quit [Ping timeout: 265 seconds]
queequeg1 has quit [Ping timeout: 250 seconds]
queequeg1 has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
wookiehangover has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
sevenseacat has joined #ruby
psmolen has joined #ruby
tlarevo_ has quit [Remote host closed the connection]
wookiehangover has joined #ruby
tlarevo has joined #ruby
maletor has joined #ruby
KC9YDN has quit [*.net *.split]
A205B064 has joined #ruby
maletor has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
Hirzu has quit [Remote host closed the connection]
rkgudboy has joined #ruby
bboss has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
bigmac has joined #ruby
agrinb has quit [Remote host closed the connection]
swgillespie has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
swgillespie has quit [Client Quit]
swgillespie has joined #ruby
Mon_Ouie has joined #ruby
flyingcode has joined #ruby
KC9YDN has joined #ruby
dfinninger has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 252 seconds]
KC9YDN has quit [Changing host]
KC9YDN has joined #ruby
sivsushruth has joined #ruby
<flyingcode> hey, in what case would I use Ruby over NodeJS?
<havenwood> flyingcode: If you were programming.
<sevenseacat> lol
JohnBat26 has joined #ruby
<flyingcode> hahahahaha
swgillespie has quit [Client Quit]
<flyingcode> seriously though
<flyingcode> Node is faster than Ruby so why would I use Ruby?
<sevenseacat> because speed isnt the only thing that matters
<Nilium> ..
<Nilium> Good god fuck node.js
<flyingcode> okay, so developing in Ruby is faster?
<Nilium> I've been having the least amount of fun unfucking the various node.js programs people wrote at my company
<sevenseacat> i think you're comparing apples and chocolate
<Nilium> What do you want to do?
Guest1097 has quit [Ping timeout: 255 seconds]
<flyingcode> I want to make a web app
<sevenseacat> theyre both programming languages, but thats about it
<Nilium> Ok, use neither.
<flyingcode> :O
<flyingcode> well, then use what?
<Nilium> I don't know, Go or Scala or something where your code is actually typed.
<Nilium> You shouldn't write anything large in a dynamically typed, interpreted language. It's a maintenance disaster.
<Nilium> I should know, I'm fixing the godawful decisions web devs make on a daily basis
<flyingcode> I see...
<sevenseacat> i'd like to think i only make bad decisions due to bad management process, but likely not.
<Nilium> You ever wanted to open someone else's code and not know what the hell a variable was used for? That's node.js and Ruby.
ItSANgo has quit [Quit: Leaving...]
<flyingcode> the same can be done in Scala as well, can it not?
<Nilium> A plural variable name could be a dictionary, a set, a map-like structure, an array, a bitset, who knows, you certainly don't
<Nilium> No.
<Nilium> Scala is strongly, statically typed.
<Nilium> You look at a variable, that variable has a type somewhere. You know what it is, unless you're doing something weird.
<Nilium> Like, I don't know, compiler plugins.
<flyingcode> but I think that would slow down my development speed
<Nilium> I don't think it would.
swgillespie has joined #ruby
longfeet has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
<Nilium> I think it would increase it because you don't need to spend as much time on boilerplate type checking, making notes about the type of everything (if you're not doing this, you're digging your own grave), and so on
The_Phoenix has joined #ruby
zorak8 has quit [Ping timeout: 245 seconds]
<Nilium> You basically end up with code that you are confident is correct because the compile can tell you that everything meshes
* sevenseacat blows up with a RuntimeError
<Nilium> *the compiler
<Diabolik> Nilium what about mutant testing in ruby?
<Nilium> More code you won't understand.
<Diabolik> ok
<Nilium> I mean, you'll understand it for the first week-ish that you wrote it
<Nilium> But the tendency among Javascript and Ruby programmers to, uh, abuse the language in really horrifying ways lends itself to being pretty sure you were high when you wrote some past bit of code.
<Nilium> Like the whole DSL thing in Ruby, for example.
rkgudboy has quit [Ping timeout: 265 seconds]
<sevenseacat> methinks Nilium is a bit jaded.
<Nilium> Methinks I've seen the crap node.js and certain Ruby people do ಠ_ಠ
<Nilium> And I'm not impressed.
<Musashi007> people make bad code?
<Musashi007> the hell you say!
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Diabolik> sevenseacat do you have any experience with the factory girl gem?
<sevenseacat> yep.
bluOxigen has joined #ruby
<Diabolik> sec compiling a gist
sivsushruth has quit [Ping timeout: 246 seconds]
<sevenseacat> where are you loading factory girl?
<Diabolik> added as a gem
<sevenseacat> this is nothing factory-girl specific, this is general gem setup
<Diabolik> rspec works though
sivsushruth has joined #ruby
<sevenseacat> what gem did you add?
<Diabolik> whihc is confusing me
<Diabolik> added gemfile sevenseacat
<Diabolik> as a comment
<sevenseacat> and where are you loading these factory definitions
swgillespie has joined #ruby
<Diabolik> where am i running them from?
<sevenseacat> no where are you loading them
<sevenseacat> you're loading them into your tests somehow
<Diabolik> using the syntax in the tests
<Diabolik> as in
<sevenseacat> what syntax in what tests
swgillespie has quit [Client Quit]
<Diabolik> sevenseacat added as comment
<Diabolik> i think ive figured it out
<sevenseacat> thats not anything to do with loading factories
<sevenseacat> great.
sivsushruth has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
swgillespie has joined #ruby
sleeper_ is now known as sleeper
emocakes has quit [Ping timeout: 264 seconds]
juanpablo_ has joined #ruby
sinkensabe has joined #ruby
sivsushruth has joined #ruby
milesmatthias has joined #ruby
ghostpl_ has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
juanpablo_ has quit [Ping timeout: 272 seconds]
swgillespie has quit [Ping timeout: 255 seconds]
Xoro__ has joined #ruby
swgillespie has joined #ruby
jerematic has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
sevenseacat has quit [Read error: Connection reset by peer]
milesmatthias has quit [Ping timeout: 252 seconds]
rmoriz has quit [Ping timeout: 252 seconds]
anaeem1_ has joined #ruby
markholmes has quit [Quit: So it goes.]
rmoriz has joined #ruby
bascht has quit [Ping timeout: 245 seconds]
starless has quit [Quit: Leaving]
swgillespie has quit [Client Quit]
shtirlic has quit [Ping timeout: 252 seconds]
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
sevenseacat has joined #ruby
jonr22 has joined #ruby
Rarikon has quit [Ping timeout: 255 seconds]
ghostpl_ has quit [Ping timeout: 265 seconds]
mathie has quit [Max SendQ exceeded]
shtirlic has joined #ruby
mathie has joined #ruby
thinkswan has joined #ruby
bascht has joined #ruby
jerematic has quit [Ping timeout: 252 seconds]
anaeem1_ has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 246 seconds]
swgillespie has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
swgillespie has quit [Client Quit]
lkba has quit [Ping timeout: 252 seconds]
Pupeno has quit [Remote host closed the connection]
flyingcode has quit [Quit: Page closed]
Pharaoh2 has joined #ruby
plashchynski has joined #ruby
havenwood has joined #ruby
swgillespie has joined #ruby
Hirzu has joined #ruby
superspring has quit [Ping timeout: 255 seconds]
ItSANgo has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
bentanweihao has quit [Remote host closed the connection]
pleiosaur has quit [Quit: leaving]
agrinb has joined #ruby
superspring has joined #ruby
swgillespie has quit [Client Quit]
Hirzu has quit [Ping timeout: 252 seconds]
jasabella has joined #ruby
Pupeno has joined #ruby
pleiosaur has joined #ruby
riotjones has joined #ruby
Hirzu has joined #ruby
amclain_ has quit [Quit: Leaving]
bentanweihao has joined #ruby
jasabella has quit [Ping timeout: 265 seconds]
latemus has quit [Quit: leaving]
psy_ has quit [Ping timeout: 256 seconds]
Morkel has joined #ruby
plashchynski has quit [Quit: plashchynski]
lkba has joined #ruby
antgel_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
Hirzu has quit [Remote host closed the connection]
ponga has joined #ruby
jasabella has joined #ruby
hpoydar has joined #ruby
SOLDIERz has joined #ruby
Guest55371 has joined #ruby
RegulationD has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
Azure has quit [Read error: Connection reset by peer]
tubuliferous has quit [Read error: Connection reset by peer]
matled has joined #ruby
matled has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 246 seconds]
jmdade has joined #ruby
thinkswan has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
TheMoonMaster has quit [Ping timeout: 246 seconds]
crazymykl has quit [Remote host closed the connection]
wottam has joined #ruby
crazymykl has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
TheMoonMaster has joined #ruby
thinkswan has joined #ruby
lele is now known as Guest24
arup_r has joined #ruby
jack_rabbit has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
_hollywood has joined #ruby
Takle has joined #ruby
thinkswan has quit [Remote host closed the connection]
elaptics is now known as elaptics_away
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
sinkensabe has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
ghostpl_ has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
agrinb has quit [Ping timeout: 256 seconds]
Guest55371 is now known as nii236
sinkensabe has quit [Ping timeout: 245 seconds]
nii236 is now known as Guest29500
martinbmadsen has quit [Ping timeout: 245 seconds]
Guest29500 is now known as nii236
sinkensabe has joined #ruby
coderhs has joined #ruby
Mia has joined #ruby
coderhs has quit [Client Quit]
Vols has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ghostpl_ has quit [Ping timeout: 264 seconds]
bbbboss has joined #ruby
sivsushruth has quit [Ping timeout: 250 seconds]
sivsushruth has joined #ruby
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
CrappyBot has quit [Remote host closed the connection]
thebastl has joined #ruby
A205B064 has quit [Ping timeout: 245 seconds]
sivsushruth has quit [Ping timeout: 246 seconds]
j_mcnally has joined #ruby
sivsushruth has joined #ruby
pushpak has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
alec-c4 has quit [Ping timeout: 255 seconds]
Rephiax has joined #ruby
nii236 has quit [Ping timeout: 252 seconds]
zotherstupidguy has quit [Read error: Connection reset by peer]
pushpak_ has joined #ruby
Nuck has quit [Quit: Nuck Off]
marr has joined #ruby
pushpak_ has quit [Client Quit]
pushpak has quit [Ping timeout: 272 seconds]
bricker has quit [Ping timeout: 256 seconds]
thinkswan has joined #ruby
charliesome has joined #ruby
Spami has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
sivsushruth has joined #ruby
Hirzu has joined #ruby
jgt1 has joined #ruby
ponga has joined #ruby
spiderbyte has joined #ruby
unshadow has joined #ruby
monod has joined #ruby
flughafen_ has joined #ruby
ponga has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
Crazy_Atheist has quit [Ping timeout: 264 seconds]
Vols has quit [Quit: Leaving]
bluOxigen has quit [Read error: Connection reset by peer]
duncannz has quit [Remote host closed the connection]
Hirzu has quit [Ping timeout: 250 seconds]
yeticry has quit [Read error: Connection reset by peer]
SouL_ has joined #ruby
jasabella has quit [Ping timeout: 264 seconds]
milesmatthias has joined #ruby
anaeem1_ has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
milesmat_ has joined #ruby
thinkswan has quit [Ping timeout: 244 seconds]
lulzmachine has joined #ruby
jerematic has joined #ruby
milesmatthias has quit [Ping timeout: 255 seconds]
Takle has quit []
yeticry has joined #ruby
anaeem1_ has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
milesmat_ has quit [Ping timeout: 245 seconds]
jerematic has quit [Ping timeout: 256 seconds]
Notte has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 255 seconds]
JohnBat26 has quit [Ping timeout: 246 seconds]
hgl has quit [Ping timeout: 256 seconds]
davedev24_ has quit [Remote host closed the connection]
SouL__ has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
hgl has joined #ruby
SouL_ has quit [Ping timeout: 250 seconds]
ghostpl_ has joined #ruby
SouL__ has quit [Read error: Connection reset by peer]
SouL_ has joined #ruby
SouL_ has quit [Read error: Connection reset by peer]
SOLDIERz has quit [Ping timeout: 252 seconds]
nii236 has joined #ruby
SOLDIERz has joined #ruby
agent_white has quit [Quit: bbl]
ghostpl_ has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
SouL_ has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
thinkswan has joined #ruby
Soda has joined #ruby
blackmesa has joined #ruby
bentanweihao has quit [Remote host closed the connection]
magicien has quit [Ping timeout: 276 seconds]
<flughafen_> x.each { #do something} is the same as x.each do lalala end?
bentanweihao has joined #ruby
antgel_ has quit [Ping timeout: 272 seconds]
<havenwood> flughafen_: Different precedence but yeah.
<flughafen_> havenwood: what's diffent precedence?
bentanweihao has quit [Client Quit]
antgel_ has joined #ruby
<havenwood> flughafen_: Like in math, where you do multiplication before addition, unless there are parens.
<havenwood> flughafen_: 1 + 2 * 2
<flughafen_> right
<flughafen_> that's handled differently in {} and do end?
Soda has quit [Remote host closed the connection]
<havenwood> flughafen_: in the case of #each, it hardly matters, unless you are passing an arg. Then you need parnens for {}s.
<havenwood> flughafen_: each(:enum) {
<havenwood> flughafen_: but with do/end: each :enum do
<havenwood> flughafen_: no parens needed for the arg, because the precedence.
agrinb has joined #ruby
Pharaoh2_ has joined #ruby
riotjones has joined #ruby
magicien has joined #ruby
<flughafen_> no, it's just a foobar.each |x| {standard stuff}
Notte has quit [Remote host closed the connection]
Pharaoh2_ has quit [Max SendQ exceeded]
leyluj has quit [Quit: Connection closed for inactivity]
<havenwood> flughafen_: for #each it's irrelevant, but where there's an arg and a block it's slightly different
marr has quit [Ping timeout: 246 seconds]
Pharaoh2_ has joined #ruby
<havenwood> flughafen_: The prevailing tactic is to use do/end for multi-line blocks and {/} for one-liners.
blackmesa has quit [Ping timeout: 252 seconds]
<havenwood> flughafen_: Others differentiate which they use based on whether the block's return value is used or it's just for side effects.
Pharaoh2 has quit [Ping timeout: 245 seconds]
riotjones has quit [Ping timeout: 245 seconds]
<flughafen_> havenwood: that's what i thought, but yeah, it is a multi-line thing which is why i'm changing it
agrinb has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Read error: Connection reset by peer]
sevenseacat has joined #ruby
lulzmachine has quit [Quit: lulzmachine]
hpoydar has joined #ruby
Notte has joined #ruby
martinbmadsen has joined #ruby
reinaldob has joined #ruby
hpoydar has quit [Ping timeout: 255 seconds]
trampi has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 256 seconds]
sagittarian has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
relix has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
monod has quit [Remote host closed the connection]
ponga has joined #ruby
RegulationD has joined #ruby
einarj has joined #ruby
lordkryss has joined #ruby
ponga has quit [Ping timeout: 272 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
davedev24_ has joined #ruby
RegulationD has joined #ruby
astrobunny has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
sivsushruth has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
RegulationD has joined #ruby
davidhq has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
sivsushruth has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
sivsushruth has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
ramfjord_ has quit [Ping timeout: 244 seconds]
sivsushruth has quit [Ping timeout: 272 seconds]
superspring has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
serivich has joined #ruby
Musashi007 has quit [Quit: Musashi007]
nerium has joined #ruby
superspring has joined #ruby
<unshadow> Hi Guys, I wrote a new post about Ruby and SSL, I hope you enjoy and I will welcome all the feedback you have :) --> http://bararchy.github.io/experiences/2015/03/19/Ruby%20and%20SSL/
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
hmsimha has joined #ruby
lulzmachine has joined #ruby
astrobunny has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 255 seconds]
max96at|off is now known as max96at
sivsushruth has joined #ruby
<shevy> look at how cute those images are https://speakerdeck.com/sferik/writing-fast-ruby
relix has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
davidhq has quit [Client Quit]
sivsushruth has quit [Ping timeout: 252 seconds]
sivsushruth has joined #ruby
sinkensabe has joined #ruby
bricker has joined #ruby
nerium has quit [Quit: nerium]
sivsushruth has quit [Ping timeout: 250 seconds]
sivsushruth has joined #ruby
Notte has quit [Remote host closed the connection]
marr has joined #ruby
juanpablo_ has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
davidhq has joined #ruby
davidhq has quit [Client Quit]
anaeem1 has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 250 seconds]
anaeem1 has joined #ruby
nerium has joined #ruby
Musashi007 has joined #ruby
lulzmachine has quit [Quit: lulzmachine]
milesmatthias has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
hardlin3r has joined #ruby
nii236 has quit [Ping timeout: 252 seconds]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
jerematic has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
kyrylo has joined #ruby
milesmatthias has quit [Ping timeout: 244 seconds]
<shevy> We will next compare (a) .map(&:to_s) versus (b) .map {|e| e.to_s }
<shevy> Time using to_proc: 2.1667600059881806
<shevy> Time using normal block: 2.739946368150413
<shevy> odd
Notte has joined #ruby
<shevy> .map(&:to_s) is faster
jonr22 has joined #ruby
flip_digits has quit [Ping timeout: 250 seconds]
lemur has quit [Ping timeout: 256 seconds]
Notte has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 255 seconds]
<undeadaedra> Hi
Guest24 is now known as lele
unshadow has quit [Ping timeout: 252 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
Notte has joined #ruby
ponga has joined #ruby
ghostpl_ has joined #ruby
hanmac has joined #ruby
thebastl has quit [Quit: Leaving...]
AlexRussia has quit [Quit: WeeChat 1.2-dev]
nerium has quit [Quit: nerium]
Rephiax__ has joined #ruby
<shevy> yo undead
sdothum has joined #ruby
Rephiax has quit [Ping timeout: 264 seconds]
sivsushruth has quit [Ping timeout: 245 seconds]
chridal has joined #ruby
<chridal> I am getting: warning: Ruby 2.2 is not released yet and parser support may be incomplete.
sivsushruth has joined #ruby
<chridal> I recently bumped the version up to 2.2.1, and Rails version to 4.2.1
Deele has joined #ruby
<chridal> Trying to search for this on Google, but haven't really found something that can remedy my issue. Any thoughts?
gr33n7007h has quit [Ping timeout: 264 seconds]
GreenJello has joined #ruby
ghostpl_ has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
Rephiax__ has quit []
tkuchiki has joined #ruby
lele is now known as Guest24
<apeiros> chridal: sounds like you or one of your dependencies used one of the ruby parser gems
sivsushruth has quit [Ping timeout: 265 seconds]
<shevy> hmm
<shevy> apeiros is scaring me - he knows the arcane things even remotely
astrobunny has joined #ruby
sivsushruth has joined #ruby
<chridal> is Ruby 2.2.1 bugged? Is that it? In that case I should probably not be using it in production.
<chridal> But according to ruby-lang.org 2.2.1 is stable
roolo_ has joined #ruby
<shevy> why would it be bugged
<shevy> just because you get some random error message from some random gem there
<apeiros> chridal: no. the warning means what it says - that the parser library you use might not fully support the ruby version you're using
<apeiros> and the "not released yet" is to be understood in context of when the parser library you use was released - at that point in time 2.2.1 was indeed not yet released.
<chridal> Ah! I am misunderstanding. I thought the parser was a part of Ruby itself.
<apeiros> ruby does have a parser itself of course
<apeiros> but there's various parser libraries to parse ruby code.
<apeiros> do you use bundler?
<chridal> Yes, I am using bundler
<apeiros> grep your Gemfile.lock for parser
michael_mbp has quit [Excess Flood]
agrinb has joined #ruby
_64k has joined #ruby
<chridal> There we go. Three of them.
roolo has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
<chridal> What's weird tho, is that Rails 4.2.1 recommends using Ruby 2.2 on their site, and now ActiveSupport is complaining.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
<apeiros> o0
<apeiros> I have rails 4.2 projects and AS does not complain
<chridal> I am an idiot. `bundle update`. I only ran it for Rails...
Notte has quit [Remote host closed the connection]
<chridal> Hm. All the errors are gone after running `bundle update`, but the error persists.
agrinb has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 264 seconds]
nii236 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<chridal> Any tips on how I should be thinking to solve these kinds of issues?
<waxjar> has nothing to do with your ruby version, you're just trying to parse an invalid URI
astrobunny has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<GreenJello> I'm trying to install a gem in a fresh apline linux container. I'm not very familiar with debugging these kinds of errors. Could you take a look at the output and point me in the right direction? https://gist.github.com/brigand/85b0954a0eb0080ebf0c
<chridal> waxjar: Everything worked fine up until I switched to 2.2.1 and Rails 4.2
<GreenJello> I got through a few of them with google, but I'm stuck now.
hpoydar has joined #ruby
AlphaTech has joined #ruby
Rephiax has joined #ruby
nerium has joined #ruby
hpoydar has quit [Ping timeout: 255 seconds]
astrobunny has joined #ruby
gr33n7007h has quit [Quit: WeeChat 1.1.1]
gr33n7007h has joined #ruby
j416 has quit [Ping timeout: 245 seconds]
marr has quit []
relix has joined #ruby
j416 has joined #ruby
sinkensabe has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
Zai00 has joined #ruby
<shevy> an inode can be: a directory, a file, a block device or a symlink right?
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass> isn't a symlink just a file with the target as content and a flag?
<shevy> GreenJello you probably need ffi.h, are you sure that you have ffi?
<shevy> jhass that may be
astrobunny has quit [Remote host closed the connection]
<jhass> I wonder if pipes get inodes
<jhass> named ones that is
<jhass> oh and unix sockets you forgot
davidhq has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
sivsushruth has quit [Ping timeout: 255 seconds]
sivsushruth has joined #ruby
<GreenJello> shevy, "Installing libffi (3.0.13-r0)" finished successfully
astrobunny has joined #ruby
<jokke> hello
<shevy> GreenJello is that from a package manager? ffi.h now exists?
<jokke> i need some advice concerning virtus
pontiki has joined #ruby
<GreenJello> yeah it's installed from the package manager
<shevy> ok
<shevy> GreenJello try that gem that failed again; if need be, cd to the base directory and extract it
<GreenJello> maybe I need to do libffi-dev or something?
<shevy> well if you have ffi.h now
<shevy> and made sure that you have it :D
<jokke> does someone know if there is an easy way to get a completely serialized hash of a virtus model when it contains other models in its attributes?
<shevy> source archive is at ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz - who knows into which components your distribution split it up
<jokke> kind of like a recursive to_hash
AnxiousGarlic has quit [Ping timeout: 246 seconds]
<jokke> nvm
Crisix has joined #ruby
<jokke> found an issue virtus github
<jokke> *
SOLDIERz has quit [Quit: Be back later ...]
flip_digits has joined #ruby
jerematic has joined #ruby
<GreenJello> shevy, I don't seem to have a ffi.h, but I do have /usr/lib/libffi.so.6
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> yeah so your package is still incomplete
<shevy> you need to satisfy the missing files from that log above
tier has joined #ruby
<shevy> checking for ffi.h... no
<shevy> checking for ffi.h in /usr/local/include,/usr/include/ffi... no
RegulationD has joined #ruby
<shevy> unsure about the other line there
<GreenJello> okay, libffi-dev ends up with a ffi.h being added
<shevy> Invalid configuration `x86_64-alpine-linux-musl': machine `x86_64-alpine-linux' not recognized
<shevy> the best way I have found is to manually extract the gem and then cd into there
<GreenJello> I guess musl is something to do with gcc, but I don't know more than that
<wasamasa> musl is a libc
<wasamasa> it's not standard
<shevy> oh
<wasamasa> heck, I'm pretty sure it's missing some features other programs expect the libc to have
<shevy> sounds like a fancy system you got there GreenJello :)
<shevy> gem install jekyll
<shevy> I am in the process of installing jekyll
<wasamasa> like, complete localization support
<GreenJello> very minimal, at the end of this I'll have a ~50mb image with jekyll
<wasamasa> I wonder why jekyll needs libffi though
jerematic has quit [Ping timeout: 264 seconds]
<shevy> 30 gems installed
<shevy> wow
<shevy> gem install jekyll installed 30 gems
The_Phoenix has joined #ruby
<GreenJello> okay, well it's building and now complaining about execjs not having a javascript runtime...
last_staff has joined #ruby
astrobunny has quit [Remote host closed the connection]
<GreenJello> I can probably figure this one out, thanks for the help :-)
<shevy> this is weird
<shevy> jekyll-2.5.3 has no Makefile or ext/
RegulationD has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
jasabella has joined #ruby
<jhass> GreenJello: just install nodejs
<jhass> for the execjs runtime
flip_digits has quit [Ping timeout: 244 seconds]
<GreenJello> awesome, working now :-)
<GreenJello> thanks shevy and jhass!
<shevy> \o/
The_Phoenix has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 255 seconds]
Rephiax has quit [Ping timeout: 265 seconds]
pontiki has quit [Remote host closed the connection]
RegulationD has joined #ruby
kapil___ has joined #ruby
<shevy> wouldn't it be so cool to have just one general GUI wrapper
<shevy> and use it for traditional GUIs such as gnome, qt, but also for web-related GUIs
freerobby has joined #ruby
The_Phoenix has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
sivsushruth has quit [Ping timeout: 255 seconds]
nerium has quit [Quit: nerium]
sivsushruth has joined #ruby
cpruitt has joined #ruby
nerium has joined #ruby
<jhass> shevy: you can use Gtk in the browser :P
ponga has quit [Quit: Leaving...]
ghostpl_ has joined #ruby
<shevy> :(
jgt1 has quit [Ping timeout: 272 seconds]
tier has quit [Remote host closed the connection]
MasterPiece has quit [Remote host closed the connection]
davidhq has joined #ruby
Morkel has quit [Quit: Morkel]
jgt1 has joined #ruby
agrinb has joined #ruby
sevenseacat has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
<shevy> hmm .sample is faster than .shuffle.first
<jhass> yes of course
<jhass> why wouldn't it?
nerium has quit [Quit: nerium]
sivsushruth has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
exadeci has joined #ruby
<jhass> shuffle is sample(size), sample(1) is self[rand(0...size)]
sivsushruth has quit [Ping timeout: 252 seconds]
sivsushruth has joined #ruby
riotjones has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
zz_Outlastsheep is now known as Outlastsheep
freerobby has joined #ruby
sevenseacat has joined #ruby
hgl has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
hpoydar has joined #ruby
freerobby has quit [Quit: Leaving.]
hgl has joined #ruby
FaresKAlaboud has quit [Quit: Quit~]
muzik has quit [Quit: Textual IRC Client: www.textualapp.com]
martinbmadsen has joined #ruby
FaresKAlaboud has joined #ruby
juanpablo_ has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
hpoydar has quit [Ping timeout: 256 seconds]
nerium has joined #ruby
milesmatthias has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
martinbmadsen has quit [Ping timeout: 246 seconds]
Crisix has quit [Read error: Connection reset by peer]
xploshioon has joined #ruby
sinkensabe has joined #ruby
bricker has joined #ruby
lkba has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
aiguu has quit [Ping timeout: 245 seconds]
hakunin_ has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
nateberkopec has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
antgel_ has quit [Ping timeout: 252 seconds]
antgel_ has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
flip_digits has joined #ruby
sivsushruth has joined #ruby
SOLDIERz has quit [Ping timeout: 255 seconds]
nii236 has quit [Ping timeout: 246 seconds]
davedev24_ has quit [Remote host closed the connection]
xploshioon has quit [Quit: Leaving]
CatMartyn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flip_digits has quit [Ping timeout: 265 seconds]
CatMartyn has joined #ruby
_64k has quit [Ping timeout: 256 seconds]
kyrylo_ has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
sivsushruth has joined #ruby
kyrylo has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
arietis has joined #ruby
superspring has quit [Ping timeout: 256 seconds]
beef-wellington has joined #ruby
astrobunny has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
AndChat|377264 has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
Hirzu has joined #ruby
sngeth has joined #ruby
agrinb_ has joined #ruby
superspring has joined #ruby
tobacco_joe has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
chridal has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby
chridal has joined #ruby
tkuchiki has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
JohnBat26 has joined #ruby
Hirzu has quit [Ping timeout: 246 seconds]
anaeem1 has joined #ruby
AndChat|377264 has quit [Quit: Bye]
agrinb_ has quit [Ping timeout: 256 seconds]
sngeth has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Remote host closed the connection]
elfuego has left #ruby [#ruby]
anaeem1 has joined #ruby
bboss has joined #ruby
chridal has quit [Ping timeout: 250 seconds]
anaeem1 has quit [Ping timeout: 245 seconds]
sivsushruth has quit [Ping timeout: 244 seconds]
sivsushruth has joined #ruby
ghostpl_ has quit [Ping timeout: 256 seconds]
cpruitt has quit [Quit: cpruitt]
davedev24_ has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
Outlastsheep is now known as zz_Outlastsheep
bbbboss has quit [Read error: Connection reset by peer]
bboss has quit [Ping timeout: 252 seconds]
bboss has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
nii236 has joined #ruby
juanca_ has joined #ruby
nii236 has quit [Client Quit]
bboss has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
_64k has joined #ruby
bboss has joined #ruby
bboss has quit [Read error: Connection reset by peer]
bboss has joined #ruby
jerematic has joined #ruby
elaptics_away is now known as elaptics
agrinb has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
sinkensabe has joined #ruby
bboss has quit [Ping timeout: 255 seconds]
bboss has joined #ruby
jerematic has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Ping timeout: 256 seconds]
bboss has quit [Ping timeout: 246 seconds]
juanpablo_ has joined #ruby
plashchynski has joined #ruby
Megtastique has joined #ruby
SOLDIERz has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
juanpablo_ has quit [Ping timeout: 250 seconds]
hgl has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
kaleido has quit [Ping timeout: 256 seconds]
plashchynski is now known as plashc
hgl has joined #ruby
_64k has quit [Ping timeout: 252 seconds]
SOLDIERz has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
serivichi has joined #ruby
juanca_ has quit [Remote host closed the connection]
pigoz has joined #ruby
serivich has quit [Ping timeout: 246 seconds]
Soda has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
DEA7TH has joined #ruby
oz has quit [Quit: EOF]
SOLDIERz has joined #ruby
jenrzzz has joined #ruby
kyrylo_ is now known as kyrylo
RegulationD has quit [Ping timeout: 252 seconds]
plashc has quit [Quit: plashc]
juanca_ has joined #ruby
leafybasil has quit [Remote host closed the connection]
jonr2219 has joined #ruby
chridal has joined #ruby
jonr22_ has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
juanca_ has quit [Ping timeout: 246 seconds]
SouL has joined #ruby
plashc has joined #ruby
kaleido has joined #ruby
SouL_ has quit [Ping timeout: 252 seconds]
zalmoxes has quit [Quit: Lost terminal]
jonr2219 has quit [Ping timeout: 265 seconds]
chridal has quit [Ping timeout: 256 seconds]
hpoydar has joined #ruby
arietis has quit [Quit: Leaving.]
rajeshchawla has quit [Remote host closed the connection]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
rajeshchawla has joined #ruby
rkgudboy has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
hpoydar has quit [Ping timeout: 245 seconds]
oz has joined #ruby
<shevy> .keep_if is .select ?
brandly has joined #ruby
milesmatthias has joined #ruby
sankaber has joined #ruby
dfinninger has joined #ruby
ChoiKyuSang has joined #ruby
SouL_ has joined #ruby
hmsimha has joined #ruby
rkgudboy has quit [Read error: Connection reset by peer]
milesmatthias has quit [Ping timeout: 256 seconds]
SouL has quit [Ping timeout: 245 seconds]
sivsushruth has quit [Ping timeout: 256 seconds]
SouL has joined #ruby
sivsushruth has joined #ruby
SouL__ has joined #ruby
brandly has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
kubunto has joined #ruby
Soda has quit [Remote host closed the connection]
SouL_ has quit [Ping timeout: 245 seconds]
<kubunto> hello
<apeiros> lol, bushido is in the top10k passwords
<apeiros> (bushido is a german rapper)
<kubunto> not only that
<kubunto> apeiros: it is also a japanese value
<apeiros> oh, didn't know
<apeiros> actually…
<apeiros> I think I could have
chridal has joined #ruby
<kubunto> i have a ruby regex question
SouL has quit [Ping timeout: 264 seconds]
<kubunto> is there a way to make this code output regex worked? https://gist.github.com/sammarder/91881b546e3d5ad575be
jasabella has quit [Ping timeout: 264 seconds]
_thinkswan has joined #ruby
SouL has joined #ruby
thinkswan has quit [Ping timeout: 252 seconds]
SouL__ has quit [Ping timeout: 264 seconds]
Rapier- has joined #ruby
Zai00 has quit [Quit: Zai00]
jerematic has joined #ruby
SouL_ has joined #ruby
sngeth has joined #ruby
<jhass> yes, just make it a regexp instead of a string
<jhass> >> /a#{"b"}c/
<eval-in_> jhass => /abc/ (https://eval.in/302982)
<jhass> kubunto: ^
<kubunto> can i convert the string i created into a regex
SouL has quit [Ping timeout: 244 seconds]
civim has joined #ruby
m8 has joined #ruby
<civim> I'm looking for some guidelines for organizing classes and subclasses across different files. Can anyone point me to some good resources?
jerematic has quit [Ping timeout: 264 seconds]
sngeth has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
<kubunto> civim: i would suggest object oriented design
<civim> kubunto: can you recommend any blog posts or articles?
bboss has joined #ruby
<kubunto> civim: http://en.wikipedia.org/wiki/Object-oriented_design that should help you get started
SouL has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<kubunto> jhass: is it possible to do that?
<jhass> kubunto: do what? what I just run through a bot that executes ruby and display the result?
bricker has quit [Ping timeout: 245 seconds]
<kubunto> no, to dynamically create a regex
ghostpl_ has joined #ruby
<civim> I understand high level OOP. I'm more interested in best practices in Ruby.
hpoydar has joined #ruby
<shevy> civim one of the simplest approach is one class per file
jenrzzz has quit [Ping timeout: 246 seconds]
<shevy> ideally with a consistent naming scheme so nobody has to guess where something is to be found
patrick99e99 has quit [Ping timeout: 244 seconds]
<shevy> if you have to split a class or module up into separate parts, it is often best to have a directory with its name, and then organize the files in that directory
<shevy> depending on how much code there is
<jhass> kubunto: like what I just did
patrick99e99 has joined #ruby
<shevy> like a class that has 20 lines... or 100... or 500... or 5000
SouL_ has quit [Ping timeout: 252 seconds]
<jhass> >> /#{rand(10)}/ # here's one that matches a random number
<eval-in_> jhass => /0/ (https://eval.in/302999)
pontiki has joined #ruby
<kubunto> jhass: gotcha
<civim> shevy: cool, would you put classes and subclasses in the same dir if you're starting to get lots of files? I'm only at about 6 right now. just thinking ahead.
<shevy> well I don't have many subclasses usually
<shevy> sometimes I have class Base in base/base.rb
<jhass> civim: we usually keep our class hierarchies fairly flat in ruby
<shevy> then I usually tend to have a file version/version.rb which just keeps track of the current version of a gem
<kubunto> YAY
<shevy> then one file for constants usually
<kubunto> tyvm jhass
kubunto has quit [Quit: dont forget to remain awesome]
<shevy> civim it also depends on the editor you use
serivichi has quit [Ping timeout: 272 seconds]
<shevy> mine is very dumb so the organization I have also needs to remain dumb
<jhass> Ctrl+P <3
<civim> jhass: i see. maybe I need to rethink this. i now realize that I might need a module instead of a super class.
<jhass> module vs superclass decision is easy? do you ever need an instance of that exact thing? yes -> class, no -> module
ghostpl_ has quit [Ping timeout: 246 seconds]
<jhass> a class is a module that you can make instances of
<jhass> if you don't need instances of it, don't make it a class
<civim> yeah, now that I look at it again, i really only need a few classes that share some methods.
<shevy> so will you now use a module or a class for sharing methods ;)
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<civim> shevy: a module.
<civim> what I have as a super class now, doesn't actually have any thing other than methods in it.
<civim> so a module makes more sense
<civim> thanks for the help. reading about modules now!
jamto11 has joined #ruby
SouL has quit [Ping timeout: 246 seconds]
cpt_yossarian has quit [Ping timeout: 246 seconds]
martinbmadsen has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
hpoydar has quit [Remote host closed the connection]
zorak8 has joined #ruby
martinbmadsen has quit [Ping timeout: 264 seconds]
<nickjj> anyone have a quick hack for converting json into a proper object (not hash) without using third party deps? some usage of method_missing maybe?
reinaldob has joined #ruby
sivsushruth has quit [Ping timeout: 265 seconds]
<jhass> OpenStruct?
<jhass> proper object is rather vague
<jhass> a Hash is a fine and proper object too
<nickjj> jhass, to be able to access the json fields as methods
sivsushruth has joined #ruby
<jhass> >> {}.is_a? Object
<eval-in_> jhass => true (https://eval.in/303003)
<nickjj> yeah, bad choice of words
<jhass> OpenStruct then
<nickjj> thanks
michael_mbp has quit [Excess Flood]
jenrzzz has joined #ruby
michael_mbp has joined #ruby
reinaldob has quit [Ping timeout: 252 seconds]
<nickjj> jhass, works like magic haha...
leafybasil has joined #ruby
xploshioon has joined #ruby
<pontiki> for exercise, write a pure ruby version of OpenStruct :D
christiandsg has joined #ruby
<jhass> isn't OpenStruct pure ruby in stdlib?
<pontiki> probably
<pontiki> but it's still a good exercise
jenrzzz has quit [Ping timeout: 272 seconds]
arietis has joined #ruby
claptor has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
sevenseacat has left #ruby [#ruby]
jgt1 has joined #ruby
kirun has joined #ruby
milesmatthias has joined #ruby
dangerousdave has joined #ruby
ismaelga has joined #ruby
milesmat_ has joined #ruby
plashc has quit [Quit: plashc]
<nickjj> jhass, hmm. it doesn't seem to be recursive
plashc has joined #ruby
twilling has joined #ruby
milesmatthias has quit [Ping timeout: 264 seconds]
<nickjj> for example, let's say the json has an object that has many other objects inside of it, openstruct only creates a method for the first level one
<nickjj> it keeps the child objects as a hash
twilling has quit [Client Quit]
Channel6 has joined #ruby
<jhass> yes
<jhass> !g recursive openstruct
<DeBot> [recursive openstruct]: https://github.com/aetherknight/recursive-open-struct - aetherknight/recursive-open-struct · GitHub
DLSteve has joined #ruby
<jhass> d'oh
<jhass> !disable Google
milesmat_ has quit [Ping timeout: 244 seconds]
<jhass> !disable Google
<DeBot> jhass: Disabled Google.
<jhass> sorry
<jhass> anyway, dozen of times solved problem, just google for it
flip_digits has joined #ruby
twilling has joined #ruby
spider-mario has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
rajeshchawla has quit [Remote host closed the connection]
<nickjj> jhass, k. i'm surprised this wasn't the default
patrick99e99 has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rajeshchawla has joined #ruby
patrick99e99 has joined #ruby
juanpablo_ has joined #ruby
Megtastique has quit []
digitalextremist has quit [Ping timeout: 265 seconds]
<apeiros> yay!
<apeiros> almost done with my password strength validator
<apeiros> I hope somebody will review it
<apeiros> so: anybody interested in reviewing a pw strength validator? :D
<c-c> how does it work?
juanpablo_ has quit [Ping timeout: 265 seconds]
<jhass> c-c: like every password strength validator: it sends your password to the author then then does strength = %i(bad okay good).sample
<apeiros> it first detects known words and removes them from the password. the remaining password is tested for inclusion i 6 different type of scripts (control, digit, lowercase, uppercase, ascii and binary)
<apeiros> it then calculates the entropy from those values
<apeiros> higher entropy = stronger password
<jhass> that sounds like you consider pferdebäumchensaft worse than a!$*€
<c-c> so essential its a blacklist for known passes?
<apeiros> a convenience method which does what jhass says exists too (simply checks the entropy against a list of thresholds)
christiandsg has joined #ruby
<apeiros> c-c: no. but top10k passwords in your full password will have an entropy factor of 1 (extremely low)
<apeiros> jhass: I don't yet have a german dict. only english and top10k passwords
<jhass> well, you know what I mean
<apeiros> but I guess entropy of pferdebäumchensaft would be around 200k**3
<c-c> I always want to follow the xkcd advice
<c-c> but often the pass-validators disallow that
<apeiros> c-c: xkcd does the same calculation /cc jhass
digitalextremist has joined #ruby
<apeiros> 4 words from a source with 200k entries is 200k**4
<jhass> but if you consider dictionary words not part of the entropy?
<apeiros> jhass: well, if your adversary uses bad methods, sure
<apeiros> but that's not what you do when you calculate the risk. you assume the best possible attack.
<apeiros> and that's a dictionary attack first.
<apeiros> with the first dictionary being the top10k
<c-c> whats it say about correcthorsebatterystaple
<apeiros> given that according to the numbers, you already get 30% of all accounts with that.
__chris has joined #ruby
<__chris> mornin
<jhass> meh, we should just go 2FA everywhere
<jhass> damn passwords
<apeiros> c-c: I'm not done yet. but if it works correctly, then as said: entropy of correcthosrebatterystaple = 235k**4
<__chris> I've found this bit in my project that was written by another dev. I'm trying to figure out why he wrote this as it seems redundant and useless to me. ["some","array"]..compact
<__chris> .keep_if { |e| e.present? }
<apeiros> until it occurs in top10k, then it becomes 1 :D
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<apeiros> >> 235000**4
<eval-in_> apeiros => 3049800625000000000000 (https://eval.in/303006)
<apeiros> >> 62**12
<eval-in_> apeiros => 3226266762397899821056 (https://eval.in/303007)
<jhass> __chris: the compact is redundant, yes
patrick99e99 has quit [Ping timeout: 256 seconds]
<__chris> jhass, thanks
<apeiros> those are the entropies of 12 char pw from A-Za-z0-9 and 4 words from dict
patrick99e99 has joined #ruby
<c-c> what if the 12 char pw contains dictionary entries
<apeiros> as said, those are removed first
chridal has quit [Ping timeout: 272 seconds]
<apeiros> e.g. "hello2world!" is considered to be "hello" + "world" + "2!"
<apeiros> "hello" and "world" is 235k**2
havenwood has joined #ruby
<jhass> __chris: that is unless it's a really huge array with many nils, then filtering out those out can be a performance win even with the extra array allocation (though .compact! would be better)
<apeiros> "2!" is (10 + 34) ** 2
rbennacer has joined #ruby
<apeiros> and the resulting entropy is 235k ** 2 * 44 ** 2
<apeiros> mind you, I'm not entirely sure my math is 100% correct
RegulationD has joined #ruby
<apeiros> hm, actually I wonder whether that shouldn't be (235k + 10 + 34) ** 4
christiandsg has quit [Remote host closed the connection]
agrinb has joined #ruby
plashc has quit [Quit: plashc]
<jhass> __chris: okay, that's fairly dumb code then
<__chris> lol ok
<__chris> so I'm just going to remove that keep_if
<jhass> that'll change functionality
dangerousdave has joined #ruby
<__chris> what do you suggest?
<jhass> String(data).upcase.split(/[\n,\t ]/).select(&:present?) should be equivalent I think
<jhass> hope you have tests for it though :P
AlexRussia has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
j_mcnally has joined #ruby
RegulationD has joined #ruby
<__chris> funny because im writing tests for this right now. thats why i was like 'hmmm?"
dangerousdave has quit [Client Quit]
MatthewsFace has joined #ruby
<jhass> write tests first, then refactor ;)
<jhass> String(foo) is a bit uncommon, so unless you need the semantic differences prefer .to_s
<jhass> (actually not even sure there are any, mmh)
<__chris> thanks jhass
<apeiros> c-c: "correcthorseA3batterystaple2" has this diagnostic: #<PasswordStrength::Result dictionaries={:english=>4}, scripts={:uppercase=>1, :digit=>2}, remaining="A32">
flip_digits has quit [Ping timeout: 256 seconds]
<jhass> apeiros: you know that stuff, is there any difference between String(foo) and foo.to_s?
<apeiros> String will try to_str first I think
<apeiros> c-c: and the entropy value of that pw would be 40424630137885185640208349128910000000
<c-c>                                                 
starless has joined #ruby
<c-c> wow thats pretty cool
superspring has quit [Ping timeout: 265 seconds]
<jhass> Docs don't mention it, mh
<jhass> "Converts arg to a String by calling its to_s method."
<jhass> seems like just a useless method call to me
<apeiros> c-c: "hunter2" for good measure: #<PasswordStrength::Result dictionaries={:top10k=>1}, scripts={:digit=>1}, remaining="2"> - entropy: 121
RegulationD has quit [Ping timeout: 246 seconds]
<c-c> haha
patrick99e99 has quit [Ping timeout: 246 seconds]
<c-c> thats a bad pass
<apeiros> hunter is in top10k, so that word is removed first. the "2" ends up as remaining and is calculated as such
MatthewsFace has quit [Ping timeout: 272 seconds]
<c-c> well, according to tge scripts
flip_digits has joined #ruby
patrick99e99 has joined #ruby
plashc has joined #ruby
RegulationD has joined #ruby
xploshioon has quit [Quit: Leaving]
<c-c> apeiros: is it on github?
<apeiros> not yet
<apeiros> it's part of a validation library
<apeiros> and that is far less developed :)
superspring has joined #ruby
willharrison has joined #ruby
<apeiros> hm, takes 0.4s to require the source file with the english dictionary :-O
<apeiros> I guess I'll let those lazy load
gregf has quit [Quit: WeeChat 1.0.1]
guardian has quit [Excess Flood]
RegulationD has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
chridal has joined #ruby
patrick99e99 has joined #ruby
Sawbones has joined #ruby
arup_r has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
<arup_r> I am in..
pontiki has quit [Remote host closed the connection]
havenwood has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
<jhass> or maybe it's just an illusion?
blackmesa has joined #ruby
hpoydar has joined #ruby
pontiki has joined #ruby
Hirzu has joined #ruby
leafybasil has joined #ruby
Megtastique has joined #ruby
sleeper has left #ruby ["WeeChat 1.1.1"]
hmsimha has quit [Ping timeout: 252 seconds]
kblake has joined #ruby
<apeiros> every time somebody says "it's just an illusion" I have to think of that :D
lkba has quit [Ping timeout: 244 seconds]
<jhass> not my generation I fear :P
<apeiros> whoops, wrong channel
hpoydar has quit [Ping timeout: 245 seconds]
thahive has joined #ruby
rhllor has joined #ruby
JusticeFries has joined #ruby
chridal has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
JusticeFries has quit [Client Quit]
dangerousdave has joined #ruby
dangerousdave has quit [Excess Flood]
JohnBat26 has quit [Ping timeout: 264 seconds]
<jhass> DeBot: !hangman ruby
<DeBot> ␣␣I::QueryExtension#keys [*db] 3/12
<jhass> oh, it's still running
<jhass> DeBot: ur
<DeBot> ␣␣I::QueryExtension#keys [*db] 3/12
<jhass> DeBot: cg
<DeBot> CGI::QueryExtension#keys [*db] 3/12 You won!
GnuYawk has quit [Quit: WeeChat 1.0]
<jhass> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<arup_r> nice song!
<jhass> DeBot: :#
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣::␣␣␣␣␣␣␣␣␣␣␣␣ [#] 1/12
<jhass> DeBot: ent
<DeBot> ␣␣t␣␣n␣␣␣␣e␣::␣␣␣␣␣␣e␣␣␣␣n [#] 1/12
<wasamasa> DeBot: OpenSSL
<DeBot> Opt␣onP␣␣se␣::s␣o␣␣␣e␣s␣on [#l] 2/12
<jhass> DeBot: iar
<DeBot> OptionParser::s␣o␣␣␣ersion [#l] 2/12
thahive has quit [Quit: Leaving]
<arup_r> jhass: doesn't it look so ugly ? http://stackoverflow.com/a/29194711/2767755 Any better way ?
roolo_ has quit [Remote host closed the connection]
<__chris> is it possible to get the name of a an escape character? like "\n" is "new line"?
jerematic has joined #ruby
<jhass> arup_r: mmh, delete(" ")?
<jhass> __chris: man ascii
<undeadaedra> DeBot: v
<DeBot> OptionParser::s␣o␣␣version [#l] 2/12
<shevy> __chris I don't think there is a name
<__chris> thanks
<shevy> but you can map it. hash = { "\n": "new line", "\t": "tank line", "\r": "rocket line"}
jgt1 has quit [Ping timeout: 252 seconds]
<jhass> lol, rocket line
<arup_r> shevy: what is 'tank line' ?
<undeadaedra> technically, all characters have a name
GnuYawk has joined #ruby
<shevy> arup_r it goes before a tank
<jhass> shevy: what name would you assign to \e?
<shevy> undeadaedra what is the name of \n
<shevy> jhass exit
__chris has quit [Quit: This computer has gone to sleep]
<jhass> and \a, \b, \f and \v?
<shevy> \b is break
<shevy> \f is free line
<greenbagels> \n is newline
<shevy> \v does not exist
tlarevo has quit []
<arup_r> \a coming soo
<arup_r> soon
<shevy> what is \a
<jhass> terminal bell
<arup_r> NASA is thinking about \a shevy
<jhass> >> "\a"
<eval-in_> jhass => "\a" (https://eval.in/303014)
<jhass> >> print "\a"
<eval-in_> jhass => nil (https://eval.in/303015)
<shevy> I know \o
<undeadaedra> shevy: Line Feed
warop has joined #ruby
jerematic has quit [Ping timeout: 264 seconds]
__chris has joined #ruby
warop has quit [Client Quit]
Sawbones has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
Hirzu has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
ghostpl_ has joined #ruby
sivsushruth has quit [Ping timeout: 272 seconds]
sivsushruth has joined #ruby
Notte has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_ has quit [Ping timeout: 252 seconds]
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
DLSteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmsimha has joined #ruby
milesmatthias has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
uber has joined #ruby
deuterium has joined #ruby
ghostpl_ has quit [Ping timeout: 246 seconds]
mattwildig has joined #ruby
uber is now known as Guest51921
Guest51921 has quit [Changing host]
Guest51921 has joined #ruby
last_staff has joined #ruby
__chris has quit [Quit: This computer has gone to sleep]
bruno- has quit [Ping timeout: 252 seconds]
Guest51921 is now known as uber
milesmatthias has quit [Ping timeout: 246 seconds]
callenb___ has quit [Quit: Connection closed for inactivity]
sankaber has joined #ruby
rbennacer has quit [Remote host closed the connection]
sankaber has quit [Client Quit]
rbennacer has joined #ruby
rz2k has joined #ruby
n008f4g_ has joined #ruby
sankaber has joined #ruby
sinkensabe has joined #ruby
larsam has quit [Read error: Connection reset by peer]
millerti has joined #ruby
bricker has joined #ruby
xenokiller has joined #ruby
momomomomo has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
twilling has quit [Quit: twilling]
momomomomo has quit [Client Quit]
j_mcnally has joined #ruby
j_mcnally has quit [Max SendQ exceeded]
cpt_yossarian has joined #ruby
<shevy> require 'rbconfig' is no longer required right?
<shevy> I keep on finding old code where I use that
sivsushruth has quit [Ping timeout: 265 seconds]
Hirzu has joined #ruby
<undeadaedra> remove it and try
sivsushruth has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
<jhass> >> RbConfig
<eval-in_> jhass => RbConfig (https://eval.in/303016)
<jhass> DeBot: _
<DeBot> OptionParser::s␣o␣_version [#l] 2/12
rhllor has quit [Quit: rhllor]
anaeem1_ has joined #ruby
jlast has joined #ruby
f03lipe has joined #ruby
dfinninger has quit [Remote host closed the connection]
martinbmadsen has joined #ruby
towski_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pharaoh2_ has quit [Quit: Byebye]
j_mcnally has joined #ruby
hpoydar has joined #ruby
strmpnk has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
centrx has joined #ruby
martinbmadsen has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
millerti has joined #ruby
<hanmac> jhass: i am unsure if that method exist what DeBot is looking for ... ;P
<hanmac> DeBot: u
<DeBot> OptionParser::s␣o␣_version [#lu] 3/12
hpoydar has quit [Ping timeout: 264 seconds]
<hanmac> DeBot: h
<DeBot> OptionParser::sho␣_version [#lu] 3/12
<jhass> hanmac: well, it's in the docs. Apparently
<hanmac> DeBot: h
<DeBot> OptionParser::sho␣_version [#lu] 3/12
<jhass> DeBot: w
<DeBot> OptionParser::show_version [#lu] 3/12 You won!
<apeiros> seems it counts wrong?
<apeiros> ah, h was already in
<hanmac> >> require "optparse"; OptionParser::show_version
<eval-in_> hanmac => undefined method `show_version' for OptionParser:Class (NoMethodError) ... (https://eval.in/303017)
davidhq has joined #ruby
<jhass> looks like it's incorrectly typed as class method
<jhass> *shrug*
chridal has joined #ruby
Sawbones has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 252 seconds]
TinkerTyper has quit [Ping timeout: 272 seconds]
magicien has quit [Quit: leaving]
sivsushruth has joined #ruby
<hanmac> jhass: hm you are not wrong, it is a class method but its extra
<hanmac> >> require "optparse/version"; OptionParser::show_version
<eval-in_> hanmac => uninitialized constant OptionParser (NameError) ... (https://eval.in/303018)
kblake has quit [Remote host closed the connection]
<jhass> lol
<hanmac> >> require "optparse";require "optparse/version"; OptionParser::show_version
<eval-in_> hanmac => false (https://eval.in/303019)
<jhass> yay ruby!
crazydiamond has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
Sawbones has joined #ruby
craigp has quit [Remote host closed the connection]
jerematic has joined #ruby
TinkerTyper has joined #ruby
craigp has joined #ruby
fenzil has joined #ruby
CustosLimen has quit [Quit: Leaving]
Sawbones has quit [Remote host closed the connection]
moted has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Ping timeout: 255 seconds]
Hirzu has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
Sawbones has joined #ruby
hs366 has joined #ruby
<arup_r> very good lib
<arup_r> I was not aware of
<arup_r> before this question had been asked
TinkerTyper has quit [Ping timeout: 246 seconds]
hmsimha has joined #ruby
<arup_r> jhass: who is DeBot ?
Sawbones has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
antgel_ has quit [Ping timeout: 265 seconds]
Channel6 has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
Sawbones has joined #ruby
rbennacer has joined #ruby
<jhass> a being from the fifth dimension
goafer has joined #ruby
chridal has quit [Ping timeout: 252 seconds]
psy_ has joined #ruby
ROOM1 has joined #ruby
<ROOM1> hi
<jhass> hi
Zai00 has joined #ruby
ofgui has joined #ruby
towski_ has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<ROOM1> so r u using Amazon
<jhass> are you using ruby?
_thinkswan has quit [Ping timeout: 252 seconds]
<ROOM1> na
towski_ has joined #ruby
<jhass> why not?
<jhass> it's nice!
<ROOM1> I don't know
<ROOM1> how nice
<jhass> why don't you learn some ruby then? :)
goafer has left #ruby [#ruby]
<ROOM1> you have to convince me
<jhass> http://tryruby.org start there
CustosLimen has joined #ruby
<ROOM1> na I will do that later
magicien has joined #ruby
<undeadaedra> na.
<ROOM1> kk
gregf has joined #ruby
TinkerTyper has quit [Ping timeout: 264 seconds]
<ROOM1> so r u d one that made this group
ofgui has quit [Ping timeout: 246 seconds]
mgorbach has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
<jhass> mmh, I don't think he's among us anymore
towski_ has quit [Ping timeout: 244 seconds]
slap_stick has joined #ruby
<jhass> it's a loose group anyone can join and leave as they please
<jhass> why do you ask?
<ROOM1> nathin
mgorbach has joined #ruby
<ROOM1> I am going to make mine
<jhass> about what?
<jhass> btw we call them channels on IRC
DeBot has quit [Quit: Crystal]
thinkswan has joined #ruby
DeBot has joined #ruby
<ROOM1> Well I am going to inform you when I make the chat
<jhass> why do you think the people in #ruby will interest it though?
<jhass> and what's so secret about it?
RegulationD has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
oceans_ has joined #ruby
<oceans_> hi i am a third year computer science student interested in working on this project "Cross-thread Fiber support". I have prerequisite knowledge about threads, concurrency control and c-programming. I also got the basic idea about fibres and the objective or aim of this project of making fibre of a thread to work in another thread.
<oceans_> I would really appreciate if someone please help me through how we can implement this and what should my proposal contain.Thanks in advance.
<jhass> ^ was also asked in #ruby-lang
Cust0sL1men has joined #ruby
<shevy> arup_r ripper seems cool
<shevy> one day I need to dive into it
<ROOM1> Well if you guys don't like it you can go out of the group
<centrx> oceans_, Is this the page that describes what you are trying to do? - https://github.com/rubygsoc/rubygsoc/wiki/Ideas-for-MRI-(Matz-Ruby-Interpreter)
<oceans_> yes
<ROOM1> Hey am I invisible
<jhass> ROOM1: the question is not whether we can leave, it's why we should join in the first place
<jhass> no
<shevy> ROOM1 go learn ruby man
<jhass> ^ +^
<jhass> ^ +1
<jhass> that's always a sane suggestion
<ROOM1> Well if you don't want to join
__chris has joined #ruby
<ROOM1> DONT!!!!!!
pdoherty has joined #ruby
<j_mcnally> hi
RegulationD has quit [Ping timeout: 255 seconds]
pdoherty has quit [Client Quit]
<j_mcnally> any idea, why my limit/offset clause is always returning record 1
<ROOM1> hi
<j_mcnally> its driving me nuts
<ROOM1> what
<jhass> j_mcnally: #RubyOnRails ?
<j_mcnally> yup sorry wrong room
<j_mcnally> lol
RegulationD has joined #ruby
<centrx> oceans_, ruby-core mailing list may be a better forum, it's a pretty in-depth question about the C internals
<jhass> ROOM1: how did you find us?
Hirzu has joined #ruby
CustosLimen has quit [Quit: Leaving]
<ROOM1> Well a friend gave me you chat name
<centrx> oceans_, Or try again on a weekday
jamto11 has quit []
<ROOM1> why did you want to know
<centrx> ROOM1, Tell your friend to go here: http://tryruby.org/
<jhass> I'm curios about your motivation to join
Megtastique has quit []
<ROOM1> What do you mean
RegulationD has quit [Ping timeout: 244 seconds]
<jhass> well, you don't seem very interested in Ruby
<jhass> so I wonder why you joined here and not, say, ##social
juanpablo_ has joined #ruby
<ROOM1> no I am interested
Hirzu has quit [Ping timeout: 265 seconds]
kblake has joined #ruby
Sawbones has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
<jhass> well, and asking whether we use amazon as a first question is, let's say uncommon for somebody who wants to learn about Ruby from us ;)
bigmac has quit [Ping timeout: 265 seconds]
<ROOM1> sorry
<jhass> nothing to worry
<jhass> I just wondered
vedu has joined #ruby
rbennacer has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 244 seconds]
<ROOM1> Well I guess being rude is rude
<vedu> Hello. I am getting 'error compiling ruby' using ruby-install. error: https://gist.github.com/vedant1811/15c3c571d779abdf38bf
<vedu> Seems there have been reports of "readline" related errors before. It runs fine locally (ubuntu) but on the server (ubuntu server) it fails
<jhass> vedu: for starters try Ruby 2.1.5 or 2.2.1
agrinb has quit [Ping timeout: 256 seconds]
hpoydar has joined #ruby
<jhass> I don't remember where the readline 6.3 incompatibility bug got fixed, but it looks like you're hitting it
jlast has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
jlast has joined #ruby
<vedu> jhass: oh okay will do that. it affects only my server though
<jhass> yes, the patch for readline 6.3 broke older version and needed a second patch to restore it iirc
kblake has quit [Remote host closed the connection]
<jhass> so your server likely has 6.2 and your local box 6.3 or something like that
<vedu> aaah.
ghostpl_ has quit [Ping timeout: 250 seconds]
<jhass> anyway .x releases are bug fix and security patches
<jhass> there's no single reason to not use the latest one of the series
steve-la_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 252 seconds]
<arup_r> ROOM1: What lang so far you learned ?
civim has quit [Quit: This computer has gone to sleep]
maximski has quit []
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
deol has joined #ruby
Megtastique has joined #ruby
nerium has quit [Quit: nerium]
Joufflu has joined #ruby
slap_stick has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
sngeth has joined #ruby
milesmatthias has joined #ruby
Megtastique has quit [Client Quit]
Pupeno_ has joined #ruby
<ROOM1> that I should be rude like you
ramfjord has joined #ruby
<apeiros> anybody think ROOM1 should remain here?
Sawbones has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
sivsushruth has quit [Ping timeout: 255 seconds]
<ROOM1> I think she should
milesmatthias has quit [Ping timeout: 252 seconds]
sivsushruth has joined #ruby
<apeiros> ROOM1: then don't give me further reason to kick you.
magicien has quit [Quit: Lost terminal]
<ROOM1> are you the one that made it
zorak8 has quit [Read error: Connection reset by peer]
<apeiros> no, but I'm the one who can show you the door out.
zz_Outlastsheep is now known as Outlastsheep
<ROOM1> Well I guess jhass was being rude
<jhass> oh, I'm sorry if so
zorak8 has joined #ruby
<ROOM1> why don't you do that to him
<jhass> but I'd like to learn, where was I rude?
<ROOM1> better be
<apeiros> ROOM1: and I guess you're being a troll
<ROOM1> Oh everywhere
<jhass> ROOM1: would you mind answering my question? I'd really like to know
<shevy> now apeiros is rude!
<apeiros> shevy: don't forget, I'm the abusive power tripping tyrant cop
<ROOM1> thanks shevy
<jhass> ROOM1: can you explain me on a single example? like what I said and what I should have said instead?
<ROOM1> your a dick
<shevy> hahaha
mostlybadfly has joined #ruby
<gr33n7007h> bye
<apeiros> kick ROOM1 come back when you have a ruby related question
ROOM1 was kicked from #ruby by apeiros [come back when you have a ruby related question]
Sawbones has quit [Ping timeout: 265 seconds]
<apeiros> / fail :D
<jhass> apeiros too my fun :(
<jhass> *took
<shevy> he may come back
ROOM1 has joined #ruby
ROOM1 was banned on #ruby by apeiros [*!*@41.204.251.34]
ROOM1 was kicked from #ruby by apeiros [come back when you have a ruby related question]
* apeiros will unban in 1h
<jhass> well, until then hangman I guess!
nerium has joined #ruby
<jhass> DeBot: !hangman gems
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<jhass> DeBot: _-
<DeBot> ␣␣␣␣␣_␣␣␣␣␣␣␣ [-] 1/12
<apeiros> DeBot: e
<DeBot> e␣␣␣␣_␣␣␣␣␣e␣ [-] 1/12
<apeiros> DeBot: s
<DeBot> e␣␣␣␣_␣␣␣␣␣e␣ [-s] 2/12
<apeiros> DeBot: n
<DeBot> e␣␣␣␣_␣␣␣␣␣e␣ [-sn] 3/12
<SebastianThorn> we got a bot for this now? jippie!
<SebastianThorn> DeBot: i
<DeBot> e␣␣i␣_␣␣␣␣␣e␣ [-sn] 3/12
Morkel has joined #ruby
<SebastianThorn> DeBot: a
<DeBot> e␣ai␣_␣␣a␣␣e␣ [-sn] 3/12
<jhass> DeBot: rb
<DeBot> e␣ai␣_␣ra␣␣er [-snb] 4/12
<SebastianThorn> DeBot: m
<DeBot> emai␣_␣ra␣␣er [-snb] 4/12
<centrx> u
steve-la_ has quit [Quit: Lingo: www.lingoirc.com]
longfeet has joined #ruby
<jhass> DeBot: l
<DeBot> email_␣ra␣ler [-snb] 4/12
zsimpso has joined #ruby
<centrx> DeBot: u
<DeBot> email_␣ra␣ler [-snbu] 5/12
<jhass> DeBot: c
<DeBot> email_cra␣ler [-snbu] 5/12
<apeiros> DeBot: c
<DeBot> email_cra␣ler [-snbu] 5/12
<jhass> DeBot: w
<DeBot> email_crawler [-snbu] 5/12 You won!
<apeiros> DeBot: w
<apeiros> damit :)
<jhass> :P
<apeiros> that's in stdlib?!?
<jhass> no, it's a gem
<apeiros> ah
<centrx> haha
<jhass> !gem email_crawler
xploshioon has joined #ruby
<apeiros> wow, surprising - no privmsg spam from ROOM1
<jhass> oh, I got that earlier
<SebastianThorn> i remember these in DC++, one new word every 15m or so, and the bot kept stats and rankings
<jhass> apeiros: oh, I'm getting it now :D
<apeiros> <nelson>haa ha</nelson>
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
sinkensabe has joined #ruby
User458764 has joined #ruby
_2_Mini has joined #ruby
havenwood has joined #ruby
sivsushruth has quit [Ping timeout: 272 seconds]
sivsushruth has joined #ruby
mattwildig has quit []
ramfjord has quit [Ping timeout: 246 seconds]
alec-c4 has joined #ruby
alec-c4 has quit [Remote host closed the connection]
__chris has quit [Quit: Leaving]
<arup_r> apeiros: bring ROOM1 back... :D
<apeiros> for your amusement?
jeromelanteri has quit [Ping timeout: 256 seconds]
<arup_r> hehe.. I'm not getting sleep.. that's why.. I was seeing the game between ROOM1 and jhass :
<arup_r> and enjoying
superspring has quit [Ping timeout: 252 seconds]
jeromelanteri has joined #ruby
Channel6 has joined #ruby
detail_pratique has quit [Ping timeout: 252 seconds]
fuzzyhorns has joined #ruby
maximski has joined #ruby
riotjones has joined #ruby
beef-wellington has quit [Ping timeout: 265 seconds]
superspring has joined #ruby
xploshioon has quit [Quit: Leaving]
Rephiax has joined #ruby
pandaant has quit [Remote host closed the connection]
christiandsg has joined #ruby
<arup_r> got sleep
<arup_r> bye all
Moeh has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<Moeh> Can someone explain me why eval("array_0 = []") only returns an array and not "array_0" as array variable?
tier has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
<apeiros> Moeh: you can't create local variables with eval
christiandsg has quit [Ping timeout: 252 seconds]
maximski has quit []
<apeiros> or to be more precise: variables created with eval can only be used by eval'ing on the same binding again.
<jhass> Moeh: also that usecase sounds more than smelly
<jhass> I hope it's only curiosity
<apeiros> numbered variables are smelly on their own already
tobacco_joe has quit []
<Moeh> What I would like to do is to create three (temporary) arrays that have the format "array_#{index}"
<apeiros> Moeh: why?
<apeiros> and why with eval?
antgel_ has joined #ruby
_2_Mini has quit [Ping timeout: 276 seconds]
<Moeh> The goal is basically this: http://pastie.org/10045749 I want to transform an array of hashs to an array of arrays where each array is a list of the values of each hash.
<apeiros> Moeh: ok. no reason to use eval for that.
sivsushruth has quit [Ping timeout: 245 seconds]
<Moeh> Okay, my idea was to measure that length of the first hash of the array, create the number of empty arrays, then go over each element in the array and each element in each hash and push the values in the aforementioned arrays.
hdrv has quit [Read error: Connection reset by peer]
silkfox has joined #ruby
<Moeh> * the
sivsushruth has joined #ruby
centrx has quit [Remote host closed the connection]
<apeiros> Moeh: you can store an arbitrary number of arrays in an array
<Moeh> I know, but what I would like is that the numbers of arrays in the array equals the number of values in each hash
Hirzu has joined #ruby
reinaldob has joined #ruby
<apeiros> Moeh: then store exactly that many arrays in an array
<Moeh> And how / where would I then initiate the "sub-arrays"?
x1337807x has joined #ruby
<apeiros> right before you need them?
CatMarty_ has joined #ruby
<apeiros> array = Array.new(amount) { [] }
Sawbones has joined #ruby
CatMartyn has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Moeh> Hm, ok
ftj has joined #ruby
CustosLimen has joined #ruby
Hirzu has quit [Ping timeout: 255 seconds]
<gr33n7007h> Moeh: something like foo.map{|h| h.values }.transpose
User458764 has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
sngeth has quit [Ping timeout: 264 seconds]
<jhass> apeiros: they spelled your name right in query!
<apeiros> what?
<apeiros> oh, roominator?
<Moeh> gr33n7007h: wow, that's exactly what I need. Thanks a lot!
<jhass> yeah
<gr33n7007h> :)
<apeiros> you're still on it? wow…
<jhass> I'm bored...
<apeiros> haha
rkgudboy has joined #ruby
<apeiros> I could use some help with my framework, you know? :-p
<ftj> Interacting with the trello API, and when I get an array of List objects for a given Board, I'd like to select a list from the array based on its ID. right now I'm using:
<ftj> @lists.find { |list| list.id == card.list_id }
<ftj> any terser way of expressing that?
<jhass> apeiros: not that kind of bored...
<apeiros> ftj: only if the API provides one
<ftj> I already have the lists in memory
dfinninger has joined #ruby
<ftj> I'm just choosing an object from an array I already have access to
<apeiros> ftj: if you have to do it multiple times, convert it to a hash
<apeiros> @lists.index_by(&:id) on rails, @lists.map { |list| [list.id, list] }.to_h in current ruby
<ftj> love it. thank you
<apeiros> yw
A205B064 has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Outlastsheep is now known as zz_Outlastsheep
hpoydar has joined #ruby
dfinninger has quit [Ping timeout: 246 seconds]
jerematic has joined #ruby
longfeet has quit [Quit: Leaving]
xpoqp has quit [Quit: WeeChat 0.4.3]
User458764 has quit [Ping timeout: 245 seconds]
<ftj> apeiros fyi, .to_h didn't work, but I got it working by wrapping the mapper in Hash[]
<ftj> .to_h threw undefined method `to_h' for #<Array:0x007fe1a9cac190>
<apeiros> ftj: I said "current ruby"
<apeiros> if you use older rubies, you're supposed to tell.
<ftj> ah gotcha
<ftj> yeah, in this project, I'm using 2.0.0
<apeiros> wow, I actually thought 2.0 was when it was introduced. must have been 2.1 then.
<ftj> This is a pretty small personal project. Would you recommend just using the newest version?
<ftj> any downside?
bruno- has joined #ruby
<apeiros> 2.0 -> 2.2 should not bring problems code-wise. just check whether your gems still run.
hpoydar has quit [Ping timeout: 246 seconds]
Starfoxxes has joined #ruby
hpoydar has joined #ruby
User458764 has joined #ruby
jerematic has quit [Ping timeout: 264 seconds]
hyperdrive has joined #ruby
Starfoxxes has quit [Read error: Connection reset by peer]
beef-wellington has joined #ruby
tier has quit [Remote host closed the connection]
detail_pratique has joined #ruby
sivsushruth has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
<gr33n7007h> 20>> nil.to_h
<eval-in_> gr33n7007h => {} (https://eval.in/303035)
bonhoeffer has joined #ruby
oceans_ has quit [Ping timeout: 246 seconds]
milesmatthias has joined #ruby
antgel_ has quit [Ping timeout: 252 seconds]
ismaelga has quit [Ping timeout: 265 seconds]
beef-wellington has quit [Ping timeout: 252 seconds]
cpt_yossarian has joined #ruby
User458764 has quit [Ping timeout: 246 seconds]
hpoydar has quit [Remote host closed the connection]
User458764 has joined #ruby
beef-wellington has joined #ruby
Sawbones has quit [Remote host closed the connection]
milesmatthias has quit [Ping timeout: 245 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
starless has quit [Quit: Leaving]
Sirupsen has joined #ruby
User4587_ has joined #ruby
Sirupsen has quit [Client Quit]
sngeth has joined #ruby
Sawbones has joined #ruby
User458764 has quit [Ping timeout: 246 seconds]
Rayford has joined #ruby
arietis has quit [Quit: Leaving.]
greenbagels has quit [Read error: Connection reset by peer]
User4587_ has quit [Client Quit]
alec-c4 has joined #ruby
Sawbones has quit [Remote host closed the connection]
sngeth has quit [Ping timeout: 252 seconds]
nerium has quit [Quit: nerium]
arietis has joined #ruby
lemur has joined #ruby
ftj has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
ftj has joined #ruby
craigp has quit [Remote host closed the connection]
Spleeze has quit [Ping timeout: 250 seconds]
bigmac has joined #ruby
<jhass> apeiros: looks like they gave up, you can give that entry in the ban list to somebody else
<apeiros> oh I guess that hour is actually over
anaeem1_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
ixti has joined #ruby
alec-c4 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
<jhass> nigerian IP btw
<apeiros> I have to admit, I'm curious what you two talked all that time
<jhass> I can get you the log
redhands has joined #ruby
zsimpso has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> know what? why not. I'm not coding atm anyway :D
Sawbones has quit []
alec-c4 has joined #ruby
_ixti_ has quit [Ping timeout: 265 seconds]
Limix has joined #ruby
hardlin3r has quit [Quit: Leaving]
anaeem1_ has quit [Remote host closed the connection]
<Limix> Hi all, anyone know how to properly decrypt aes encryption generated by the nodejs crypto package? Not sure how the key is generated. Thanks
anaeem1 has joined #ruby
Spleeze has joined #ruby
Soda has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 264 seconds]
Regulati_ has joined #ruby
juanpablo_ has joined #ruby
binaryfreedom has joined #ruby
martinbmadsen has joined #ruby
_hollywood has quit [Quit: Leaving]
threh has joined #ruby
<apeiros> Limix: I'd assume it's open source - so just read the code and/or ask the good people from nodejs?
juanpablo_ has quit [Ping timeout: 265 seconds]
Rayford has quit [Quit: Rayford]
Regulati_ has quit [Ping timeout: 272 seconds]
marr has joined #ruby
ghostpl_ has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
crazydiamond has joined #ruby
gregf has quit [Ping timeout: 245 seconds]
justin_pdx has joined #ruby
androidbruce has quit [Quit: ZNC - http://znc.in]
kubunto has joined #ruby
cpt_yossarian has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
androidbruce has joined #ruby
androidbruce has joined #ruby
Hirzu has joined #ruby
martinbmadsen has quit [Ping timeout: 255 seconds]
maximski has joined #ruby
ghostpl_ has quit [Ping timeout: 245 seconds]
ROOM1 has joined #ruby
<ROOM1> hi
yqt has joined #ruby
<kubunto> hello ROOM1 ?
binaryfreedom has quit [Ping timeout: 244 seconds]
<abyss> someone is here or better ask tommorow?;)
basiclaser has joined #ruby
<havenwood> abyss: ask away
The_Phoenix has quit [Read error: Connection reset by peer]
hpoydar has joined #ruby
<apeiros> ROOM1: this time, please stay on topic. if I have to ban you again, it'll be permanent.
<ROOM1> sorry
endash has joined #ruby
<ROOM1> Well I have lots of questions
Hirzu has quit [Ping timeout: 256 seconds]
threh has quit [Ping timeout: 255 seconds]
pontiki has quit [Ping timeout: 265 seconds]
xcombelle has joined #ruby
<endash> Is it possible to get the default values for a method's parameter and not just the name
<apeiros> endash: not really
flughafen_ has quit [Ping timeout: 250 seconds]
<apeiros> endash: don't forget that default values can by arbitrarily complex expressions
<endash> Ah yeah that makes sense
<endash> Well, what I was thinking of doing would've been a bad idea anyway :P
<jhass> endash: also don't forget their values are determined when you call the method
<jhass> not when you define it
threh has joined #ruby
<jhass> they're part of the method body so to say
dfinninger has joined #ruby
<ROOM1> ummmm...... how do you access ruby
<jhass> ROOM1: did you install it yet?
<abyss> ok, so I have a small script: http://pastebin.ca/2962482
lolmaus has quit [Quit: Konversation terminated!]
Jiyuhen has quit [Ping timeout: 252 seconds]
<abyss> and there I use class variable to connect to database. Is this right way? I wonder if @@ variable is apropriate way to ease to use my script...
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
Jiyuhen has joined #ruby
_2_Mini has joined #ruby
_2_Mini has quit [Read error: Connection reset by peer]
dfinninger has quit [Ping timeout: 252 seconds]
<Limix> Just watched a video on encryption from rubyconf 2013, is openssl better these days? Or are there better libs to use?
deol has joined #ruby
Pupeno has joined #ruby
threh has quit [Ping timeout: 256 seconds]
Channel6 has quit [Quit: Leaving]
havenwood has quit [Ping timeout: 264 seconds]
Pupeno_ has quit [Ping timeout: 264 seconds]
hpoydar has quit [Remote host closed the connection]
havenwood has joined #ruby
Rephiax has quit []
binaryfreedom has joined #ruby
christiandsg has joined #ruby
swgillespie has joined #ruby
threh has joined #ruby
swgillespie has quit [Client Quit]
silkfox has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
Guest24 is now known as lele
Pupeno has quit [Remote host closed the connection]
Zggb has quit [Quit: Connection closed for inactivity]
threh has quit [Ping timeout: 256 seconds]
JoshGlzBrk has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
kubunto has left #ruby [#ruby]
<abyss> hmm nobody?;)
rkgudboy has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> abyss: Oops, I dc'ed. My first impulse is wanting to extract a class for the db connection. Initialize a new connection and pass that to any new data you initialize.
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
swgillespie has joined #ruby
<havenwood> s/initialize/instantiate
christiandsg has quit [Remote host closed the connection]
bruno- has joined #ruby
<abyss> havenwood: yes, firstly I did that, every new data had something like this data = dbconnect( ) then dataMal = dbconnect() etc, but I wanted to ease to use my script for others and I moved dbconnection to class variable
<abyss> now it seems to easier to use but I wonder if it is an appropriate way;)
<abyss> havenwood: oh, you meant that write completely new class for db connection?
<havenwood> abyss: ya
swgillespie has quit [Client Quit]
withnale has quit [Ping timeout: 256 seconds]
Guest94045 is now known as Kruppe
<abyss> havenwood: but then I will need make new connection for every instance ( I mean for dataMal = , dataNTK = etc)?
decoponio has quit [Quit: Leaving...]
swgillespie has joined #ruby
Pupeno has joined #ruby
withnale has joined #ruby
lemur has quit [Ping timeout: 265 seconds]
<abyss> I'm thinking what you mean but I suppose I too weak in ruby to get it;)
<havenwood> abyss: I was suggesting initializing the data with the connection. Like; Data.new(publisher, file, DB)
sngeth has joined #ruby
<havenwood> DB_CONNECTION
alec-c4 has quit [Remote host closed the connection]
<havenwood> or whatever an appropriate name is
<havenwood> abyss: There's a strong community convention to use snake_case instead of headlessCamelCase or CamelCase for method names and variables.
Rapier- has quit [Ping timeout: 252 seconds]
<abyss> havenwood: oh, ok, so as I mentioned I did that firstly, but to ease use my script I moved connection to database to class variable to avoid make new connection for every instance...
<havenwood> abyss: `abort` is a nice shorthand for `exit(1)`
<havenwood> abyss: Can Data just have a Constant for the DB initialization?
chridal has joined #ruby
<havenwood> abyss: I've just glanced at your code, taking a closer look.
thinkswan has quit [Ping timeout: 252 seconds]
orangerobot has joined #ruby
Morkel has quit [Quit: Morkel]
sngeth has quit [Ping timeout: 265 seconds]
<havenwood> abyss: #puts already takes care of #to_s, you can just `@fh.puts path` instead of `@fh.puts "#{path}"`.
<abyss> ok
kubunto has joined #ruby
craigp has joined #ruby
anaeem1 has quit [Quit: Leaving...]
<orangerobot> hello. Will passing ruby objects as parameters to methods as opposed to just passing the attributes i need to work with (perhaps via a map or something)?
anaeem1_ has joined #ruby
<orangerobot> *I mean. Will doing so incurr a performance penalty?
<orangerobot> * incur
chridal has quit [Ping timeout: 264 seconds]
sngeth has joined #ruby
<apeiros> orangerobot: everything you pass as a parameter is an object
<apeiros> you can't pass anything else (well, ok, there's also blocks)
<orangerobot> yes but does passing a full fledged user object somehow cost more than smaller objects?
<orangerobot> in terms of ruby's internal processing or things like that
<apeiros> every object has the same footprint when passing
elaptics is now known as elaptics_away
<apeiros> it doesn't make a any difference whether you pass an 800MB large string or an empty string - same amount of data is passed.
<orangerobot> hmm I expected that but i want to make sure
Sirupsen has joined #ruby
<orangerobot> thanks apeiros
arietis has quit [Quit: Leaving.]
maximski has quit [Read error: No route to host]
maximski_ has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
dcarmich has joined #ruby
_2_Mini has joined #ruby
jwinder has joined #ruby
roolo has joined #ruby
DerisiveLogic has joined #ruby
sivsushruth has quit [Ping timeout: 253 seconds]
_2_Mini has quit [Client Quit]
sivsushruth has joined #ruby
centrx has joined #ruby
<endash> This is a bit off the wall but does anyone else on OS X have issues with guard properly clearing the scrollback in terminal
MasterPiece has joined #ruby
sngeth has quit [Ping timeout: 252 seconds]
aiguu has joined #ruby
<abyss> havenwood: What I wanted to do is that I wanted to avoid 4 calls of Data (first for dbconnection, second publisher, third for dirsbelongindtopublisher and the last for addeditor)... It's cometic change but now people can put only 3 lines intead of 4 ;)
bonhoeffer has quit [Quit: bonhoeffer]
Wolland has joined #ruby
nahtnam has joined #ruby
Wolland has quit [Client Quit]
<abyss> but now I wonder if it's an appropriate way to use class variable... ;) You now, how it looks, maybe performance is weak because of that etc
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
relix has joined #ruby
jack_rabbit has joined #ruby
davidhq has quit [Ping timeout: 255 seconds]
livinded has quit [K-Lined]
jokester has quit [K-Lined]
bim has joined #ruby
livinded has joined #ruby
Jiyuhen has quit [Quit: No Ping reply in 180 seconds.]
jokester has joined #ruby
Jiyuhen has joined #ruby
diegoviola has joined #ruby
<havenwood> abyss: So say if you extract class for the connections but just instantiate it once. Example in pseudocode: connection = Saas::Database.new(x, y, z); a = Saas::Data.new(w, x, connection); b = Saas::Data.new(y, z, connection)
kubunto has left #ruby [#ruby]
zorak8 has quit [Ping timeout: 256 seconds]
davidhq has joined #ruby
mitchellhenke has joined #ruby
<havenwood> abyss: However you decide to store the db connection it seems you should extract class.
silkfox has joined #ruby
maximski_ has quit []
Soda has quit [Remote host closed the connection]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jwinder has quit [Ping timeout: 272 seconds]
<abyss> havenwood: I get it (I hope;)) I will try to do it, but now I don't know how;) So in new class if I use instance variable and put that class to different class (like you did in pseudocode) then this variables will be visible for Data class?
dfinninger has joined #ruby
hpoydar has joined #ruby
<abyss> btw: to sum it up: using class variables is not good idea?;) And I should never use class variable for such a tasks?;)
TinkerTyper has joined #ruby
binaryfreedom has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ROOM1 has quit [Excess Flood]
Sawbones has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
milesmatthias has joined #ruby
rz2k has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
TinkerTyper has quit [Ping timeout: 244 seconds]
<jhass> class variables have unexpected scoping and 60% of their uses are actually usecases for constants with another 35% being actually usecases for class level instance variables
<jhass> so 95% of the time you shouldn't use a class var, right
milesmat_ has joined #ruby
kedare has quit [Quit: WeeChat 1.0.1]
TinkerTyper has joined #ruby
aarthi01 has joined #ruby
milesmatthias has quit [Ping timeout: 255 seconds]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
sivsushruth has quit [Ping timeout: 250 seconds]
xcombelle has quit [Quit: Quitte]
sivsushruth has joined #ruby
willharrison has joined #ruby
jenrzzz has joined #ruby
<atmosx> hello
SOLDIERz has quit [Quit: Be back later ...]
<orangerobot> is using ||= only recommended against when your variable maybe be false or also when it can be 'falsy' ?
cpt_yossarian has joined #ruby
hpoydar has quit [Remote host closed the connection]
elaptics_away is now known as elaptics
<undeadaedra> there are only two false values
pdoherty has joined #ruby
<orangerobot> undeadaedra: that's nil and false, correct?
pdoherty has quit [Client Quit]
<undeadaedra> yes
Pupeno_ has joined #ruby
<undeadaedra> usually, you use ||= to set a variable if unset
<undeadaedra> so, not suitable for booleans
<orangerobot> yes undeadaedra
Sawbones has quit [Remote host closed the connection]
jottr has joined #ruby
<atmosx> test
<atmosx> oh better
<orangerobot> undeadaedra: it's funny that foo = bar || "bar" runs ok
<undeadaedra> why ?
lordkryss has quit [Quit: Connection closed for inactivity]
<orangerobot> if you try to evaluate an expression like (bar || "baz") you get a NameErro
<orangerobot> undeadaedra: in an assignment, it raises no error
Pupeno has quit [Ping timeout: 272 seconds]
<orangerobot> so you can set an unset variable if you want
<undeadaedra> >> bar = ”hello”; (bar || ”bar”)
<apeiros> orangerobot: huh? you're mistaken
<apeiros> it raises there all the same
last_staff has quit [Quit: last_staff]
<apeiros> >> foo = bar || "bar"
<eval-in_> apeiros => undefined local variable or method `bar' for main:Object (NameError) ... (https://eval.in/303040)
<undeadaedra> ah shit
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TinkerTyper has quit [Ping timeout: 244 seconds]
<apeiros> orangerobot: ^
<undeadaedra> >> bar = %(hello); (bar || %(bar))
<eval-in_> undeadaedra => "hello" (https://eval.in/303041)
<undeadaedra> it works?
deric_skibotn has joined #ruby
ROOM1 has joined #ruby
<ROOM1> hi
<orangerobot> apeiros: so it only works when it's the same variable name?
reinaldob has joined #ruby
<apeiros> yes
<orangerobot> baz = baz || "quux"
<orangerobot> works for me
<orangerobot> o
<ROOM1> hi
<ROOM1> apeiros
<apeiros> orangerobot: which is essentially what baz ||= "quux" is
aarthi01 has quit [Quit: Leaving]
<apeiros> hi ROOM1
<ROOM1> did you miss me
jottr has quit [Ping timeout: 244 seconds]
<orangerobot> yeah... brain fart =P. thanks apeiros
<apeiros> orangerobot: to be specific, a ||= b translates to a || a = b
<ROOM1> Hey orangerobot
<orangerobot> yes
<apeiros> unlike other <op>= syntax, e.g. a += b, which translates to a = a + b
<orangerobot> in that specific case no error is thrown when a is unset
mitchellhenke has quit [Quit: Computer has gone to sleep.]
kubunto has joined #ruby
jalcine has quit [Quit: ZNC - http://znc.in]
<abyss> havenwood: thank you for your help
flaviolivolsi has joined #ruby
<flaviolivolsi> hello guys
gregf has joined #ruby
<undeadaedra> hi
swgillespie has quit [Max SendQ exceeded]
Sawbones has joined #ruby
jph98 has joined #ruby
TinkerTyper has joined #ruby
swgillespie has joined #ruby
mitchellhenke has joined #ruby
jottr has joined #ruby
jph98 has quit [Client Quit]
jph98 has joined #ruby
<flaviolivolsi> is “Learn to program: facets of Ruby” a good book to learn Ruby? thanks!
<shevy> damn
<shevy> a bot rules this channel
civim has joined #ruby
swgillespie has quit [Max SendQ exceeded]
<havenwood> abyss: no prob, happy coding!
Sawbones has quit [Remote host closed the connection]
<havenwood> shevy: maybe more of us are bots than you think...
swgillespie has joined #ruby
fmcgeough has joined #ruby
max96at is now known as max96at|off
juanpablo_ has joined #ruby
RegulationD has joined #ruby
<orangerobot> flaviolivolsi: if you already know some basic programming, go for this one: http://www.poodr.com/
freerobby has joined #ruby
binaryfreedom has joined #ruby
<flaviolivolsi> ok, i know PHP and JavaScript. thank you :)
swgillespie has quit [Max SendQ exceeded]
Joufflu has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
<flaviolivolsi> guys, can I ask why do you prefer Ruby instead of Python? I want to learn one of them and I have not clear the advantages of each one
lemur has joined #ruby
<kubunto> ROOM1: :P
binaryfreedom has quit [Client Quit]
<kubunto> flaviolivolsi: they are 2 ways of doing similar tasks
psy_ has quit [Ping timeout: 264 seconds]
<kubunto> not sure if one is nessesarily better than the other
postmodern has quit [Quit: Leaving]
Sawbones has joined #ruby
swgillespie has quit [Max SendQ exceeded]
Virtual_ has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
binaryfreedom has joined #ruby
<orangerobot> flaviolivolsi: python is easier, cleaner and more heavily used in academia. Ruby is more *fun* and gives you more freedom to innovate and do fun things (not that you should always)
RegulationD has quit [Ping timeout: 255 seconds]
swgillespie has joined #ruby
<shevy> cleaner?
<havenwood> shevy: snakes are clean, but not in the way i like to be clean
ghostpl_ has joined #ruby
<orangerobot> python is more often used in systems programming, heavy backend server stuff. Ruby is more used for the web
psy_ has joined #ruby
<shevy> flaviolivolsi this interview was good: http://www.artima.com/intv/ruby.html
<centrx> Python is not cleaner, it's a mess
<flaviolivolsi> thank you guys, i’m following the discussion in silence :D
<jhass> flaviolivolsi: try both for a while, stick with what's more fun to you. Knowing both is of no harm at all. It's >80% personal preference
<kubunto> ^
<havenwood> orangerobot: Ruby is used a ton for server stuff. Lots of tools.
<kubunto> python and ruby are both very quick to pick up, very easy to use
RegulationD has joined #ruby
<ROOM1> hi kubunto
<havenwood> orangerobot: Popular package managers, deployment and provisioning tools are written in Ruby as well.
<orangerobot> guys, trying to make the world like the language we like is not the right way to go. We should be aiming at the sort of knowlege that makes us good in any language
maximski has joined #ruby
RegulationD has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
<orangerobot> i love ruby but I wouldn't dream of using ruby in a machine learning project
<orangerobot> or natural text processing
pontiki has joined #ruby
<havenwood> There's a difference in the communities and aesthetic.
<orangerobot> or heavy network stuff
sngeth has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<havenwood> orangerobot: how's that different than Python :P
bim has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonr22_ has quit [Remote host closed the connection]
<havenwood> orangerobot: you *can* do any of the above in either
reinaldob has quit [Remote host closed the connection]
maximski has joined #ruby
<kubunto> what makes ruby more web than python?
maximski has quit [Max SendQ exceeded]
<Jamo> rails :D
anaeem1_ has quit [Remote host closed the connection]
<flaviolivolsi> another question: do you think that one of them is more lightweight than the other one? (i’m talking about web side)
anaeem1 has joined #ruby
jalcine has joined #ruby
<Jamo> afaik ruby has better communities (incl. documentation, blog posts, irc, etc)
<shevy> flaviolivolsi nah
maximski has joined #ruby
<Jamo> both of them are slow...
maximski has quit [Max SendQ exceeded]
<shevy> flaviolivolsi you could clone php in ruby!
Sawbones has quit [Remote host closed the connection]
<shevy> void parse_str ( string $str [, array &$arr ] )
<shevy> Example:
<shevy> $str = "first=value&arr[]=foo+bar&arr[]=baz";
<shevy> parse_str($str);
Joufflu has joined #ruby
maximski has joined #ruby
codecop has quit [Remote host closed the connection]
<shevy> does this not excite you into wishing you would have mastered php 20 years ago?
maximski has quit [Max SendQ exceeded]
<shevy> it emerged in 1995
<flaviolivolsi> thank you shevy but no, I’m 24 years old and I prefer to learn something new :)
<shevy> haha
bim has joined #ruby
<flaviolivolsi> :D
pontiki has quit [Ping timeout: 250 seconds]
sngeth has quit [Ping timeout: 265 seconds]
jph98 has quit [Quit: jph98]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<orangerobot> it's all about the libraries
<orangerobot> not the languages per se
<orangerobot> you can do machine learning in ruby just as well as in python
<orangerobot> but you are much better off using the libraries available in python
ghostpl_ has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
<kubunto> wouldnt lisp be better for machine learning?
civim has quit [Quit: Leaving]
<c-c> probably doesn't matter
Beliq has joined #ruby
Musashi007 has joined #ruby
martinbmadsen has joined #ruby
freerobby has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 264 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mitchellhenke has joined #ruby
<orangerobot> kubunto: i think python + python ecosystem >>>> lisp + lisp ecosystem
<orangerobot> where will you find lisp programmers?
narcan has joined #ruby
<orangerobot> these sort of things
<kubunto> orangerobot: i dont disagree but in terms of machine learning i would imagine lisp to be better
<orangerobot> the language itself is just one dimension
flaviolivolsi has quit [Remote host closed the connection]
<havenwood> orangerobot: there're a lot of really great programmers who enjoy Clojure/Racket/Chicken etc and you can get at that excellent group of folk by choosing those langs
<havenwood> orangerobot: for machine learning our best libs are probably available through JRuby
flaviolivolsi has joined #ruby
<havenwood> it looks like Jython is actively developed. is that something folk use much?
mitchellhenke has quit [Client Quit]
<kubunto> havenwood: ive never heard nice things of it sadly
<kubunto> have not tried it myself either
narcan has quit [Client Quit]
<ROOM1> I am lost
Sawbones has joined #ruby
<kubunto> ?
Pupeno_ has quit [Quit: Leaving...]
martinbmadsen has quit [Ping timeout: 264 seconds]
kubunto has quit [Quit: I have no special talent I am only passionately curious]
maximski has quit []
kubunto has joined #ruby
Sawbones has quit [Remote host closed the connection]
<havenwood> Speaking of JRuby, if anyone missed the Truffle/Graal C ext paper it's a great read!: http://www.chrisseaton.com/rubytruffle/modularity15/rubyextensions.pdf
<orangerobot> havenwood: interesting
Rollabunna has quit [Remote host closed the connection]
TheHappyPeanut has joined #ruby
dfinninger has joined #ruby
<c-c> havenwood: thanks
Sawbones has joined #ruby
<TheHappyPeanut> can a ruby app connect to a database similar to how php does by itself or does it require ruby on rails to do that?
<c-c> yes
<kubunto> hehe
narcan has joined #ruby
<c-c> cab connect, *you* might rely on a db adapter or ORM for convinience
<c-c> s/cab/can/
<undeadaedra> TheHappyPeanut: ruby on rails is just a lot of libraries tied together
<undeadaedra> you have specific adapters (pg, mysql, sqlite, ...)
<undeadaedra> or, higher-level, orms like sequel
<havenwood> orangerobot: graphics binding is probably where i have the most envy of Python ;)
sparr has quit [Quit: WeeChat 1.0]
<havenwood> TheHappyPeanut: See the Sequel gem: https://github.com/jeremyevans/sequel#readme
<TheHappyPeanut> i want to learn Ruby and i have a basic understanding of syntax, but i'm not sure if i just just go through a bunch of tutorials or if maybe it would be best to build an app that I want to build to learn
<TheHappyPeanut> app i want to build i mean
<kubunto> TheHappyPeanut: i suggest the app
<kubunto> its more fun that way
dfinninger has quit [Ping timeout: 255 seconds]
<kubunto> source: just did that
<TheHappyPeanut> does it matter if it's a large scale app?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TheHappyPeanut> like it's not small but it's not enormous
<kubunto> mine was a smaller app
<c-c> does what matter?
<TheHappyPeanut> can you start out dev'ing it in ruby
<TheHappyPeanut> and then use the rails framework
echevemaster has joined #ruby
<c-c> you can
<c-c> prepare couple of months of study for rails
<havenwood> TheHappyPeanut: Yeah, or you might find that you prefer one of the many Rack adapters other than Rails.
<TheHappyPeanut> my ultimate goal is to dev for money
<TheHappyPeanut> and to dev my own projects
<TheHappyPeanut> so i want to learn Rails because that's where the money is at in Ruby
<TheHappyPeanut> or am i incorrect in that?
sparr has joined #ruby
<undeadaedra> yawn
<c-c> ultimately, its often a business, that needs a solution
<havenwood> TheHappyPeanut: There's plenty of Ruby work outside of Rails. I don't have stats on $$.
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c-c> doesn't matter whan you use, if you can deliver
<undeadaedra> havenwood: and on €€? :p
Sawbones has quit [Remote host closed the connection]
<havenwood> undeadaedra: it's Ruby after all. compromise on ¥¥?
<orangerobot> even if you don't use rails per se you'll probably use something else that looks like rails so it's a good thing to learn it
hs366 has quit [Quit: Leaving]
TheNet has joined #ruby
<undeadaedra> havenwood: let me ask my lawyer
iamjarvo has joined #ruby
<havenwood> TheHappyPeanut: Learn the language then a simple framework like Sinatra (there's plenty to learn). The creator of the Sequel gem has a fantastic but relatively new framework called Roda. I'd recommend learning it.
<havenwood> It's very well done.
<undeadaedra> Oh
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
androidbruce has quit [Quit: ZNC - http://znc.in]
<c-c> havenwood: do you use roda?
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
fmcgeough has quit [Quit: fmcgeough]
<havenwood> c-c: I've been using it lately, yeah.
Sawbones has joined #ruby
<c-c> for web pages or ?
<Sirupsen> havenwood: reminds me of https://github.com/soveran/cuba
<havenwood> c-c: I haven't done that yet. APIs.
Notte has quit [Remote host closed the connection]
<havenwood> Sirupsen: It's a fork of Cuba.
<Sirupsen> havenwood: that makes sense :)
<c-c> havenwood: ok, so for access to persistence?
<havenwood> c-c: Sequel. :) Same maintainer.
<undeadaedra> Sequel is <3
m8 has quit [Quit: Sto andando via]
<c-c> Yeah, I mean, used it for routing logic into persistence over http to provide rest apes
hpoydar has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<havenwood> Sirupsen: With some niceties from Sinatra, a killer plugin system, and real attention to not causing polution.
<Sirupsen> what sort of polution?
<havenwood> Sirupsen: Like @request instance var inside Sinatra::Base
<ROOM1> no one wants to talk to me
<jhass> ROOM1: ask a ruby question, it'll change on instant, I promise
<TheHappyPeanut> because you're annoying
starless has joined #ruby
riotjones has joined #ruby
<Sirupsen> havenwood: aha. It's been a while since I've made anything but a basic Sinatra app I must say.
chridal has joined #ruby
cirn0 has joined #ruby
<Sirupsen> for anything that speaks to a database I end up just going straight to rails, since I end up re-inveinting part sof it either way.
jasabella has joined #ruby
hpoydar has quit [Ping timeout: 256 seconds]
lnr has joined #ruby
Sawbones has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 255 seconds]
binaryfreedom has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
androidbruce_ has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<Musashi007> How can I update a cookie with ruby using rack?
<Musashi007> ie: update a varaible in a cookie
<jhass> You just set the header I guess
<jhass> how do you set it in the first place?
centrx has quit [Remote host closed the connection]
<Musashi007> I set a hash called cookie_settings and then call app.use Rack::Session::EncryptedCookie, cookie_settings
<jhass> did you try just assigning a new value to an item in that hash?
jlast has quit [Remote host closed the connection]
<Musashi007> and then re-calling racksessionencrypted?
<jhass> ruby is pass by reference
<Musashi007> <goes and looks that up>
<Musashi007> oh meaning it passes a pointer to it
bim has quit [Disconnected by services]
ChasedSpade has joined #ruby
bim_ has joined #ruby
<jhass> a pointer and reference are not exactly synonym, depending on who you ask
<jhass> but yeah, similar to that
<Musashi007> copy that
<Musashi007> you’re suggesting it might update the cookie which is on someone else’s computer simply by changing that hash?
<jhass> Where does that class come from btw?
<Musashi007> i’ll try it
<jhass> Can't find it
<Musashi007> which class
<jhass> EncryptedCookie
<jhass> ah, encrypted_cookie gem
coin3d has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
<Musashi007> i.. think
brandon has joined #ruby
<jhass> the example doesn't look like what you do at all
<jhass> where did you get your code from?
brandon is now known as Guest67440
<c-c> hm, whats the use of encrypting cookies
amclain has joined #ruby
<jhass> c-c: integrity mostly
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> so that if people try to modify it they produce garbage and your app chokes on it
<Musashi007> i paid someone to dev a site and that’s what they created
<havenwood> Rack::Session::Cookie isn't encrypted, so you can peek, but it's signed to prevent tampering
<jhass> and yes, signing would fulfill that property already
<apeiros> c-c: also protection - data in internet cafes, or unsecured connections
cirn0 has quit [Quit: Leaving]
<jhass> doesn't prevent replay though
<jhass> apeiros: I thought you gonna sleep :P
<c-c> just wondering what kind of data one could store, that could be wiped, but would be so critical as to need crypting... ok session token?
<apeiros> jhass: soon
<Musashi007> @jhass why do you say my code doesn’t look anything like that?
<jhass> because it doesn't
<apeiros> yes, encryption doesn't prevent all attack vectors
<jhass> I kind of fail to see how you fail to see that :P
TheNet has quit [Quit: Leaving...]
TheHappyPeanut has quit [Ping timeout: 246 seconds]
<Musashi007> code so often looks different to me, though
<c-c> whats the use, if you don't have transport security? I'm lost
<havenwood> signed *if* the sekret key is set, I shoulda said
<Musashi007> I mean, I just have the cookie settings contained in a variable beucase i’m adding more than just :secret. is that what you’re talking about ?
<jhass> mmh, maybe
<jhass> I mistook your cookie_settings for your data I guess
_1_Aj has joined #ruby
<_1_Aj> Hi
<Musashi007> i mean, if you go here : http://stackoverflow.com/questions/17352136/cookie-is-changed-on-every-request-using-sinatra-and-racksessionencryptedco and look at his, he’s basically doing the same thing : “use Rack::Session::EncryptedCookie, :secret => "foo-bar-baz", :httponly => true”
<jhass> yeah
<jhass> so it's just standard set it in the session and it'll work stuff
<Musashi007> ^ what’s that mean
<jhass> the code you showed is actually not relevant to your question really :)
<Musashi007> I know :/
<jhass> well, the app is plain rack really?
<jhass> or is it sinatra or anything?
<Musashi007> only linked it because it’s relevant to the issue of similarity
<Musashi007> it is sinatra but it is using rack sessions
keen_________ has quit [Read error: Connection reset by peer]
<jhass> so in a route just do session[:some_key] = some_SIMPLE_data
<c-c> I'd never give anything but a lookup token for a session table
charliesome has joined #ruby
<c-c> and yeah, change that too java stylee
<jhass> and session[:some_key] to query
<Musashi007> to query?
RegulationD has joined #ruby
<jhass> "get the value out"
<jhass> Musashi007: maybe you should hire somebody again :/
keen_________ has joined #ruby
<Musashi007> oh set it and pull it back out and see if it’s updated?
<Musashi007> @jhass thaaaanks… lol
<Musashi007> if you want to point me in the direction of someone, i’d listen but i’d rather do it myself
jerematic has joined #ruby
reinaldob has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
<jhass> no offense, but it sounds a bit like you're stumbling around in the dark here, not that I don't encourage learning, but if your app is actually relevant to your business ...
<Musashi007> it’s a hobby side project
badhatter has joined #ruby
<Musashi007> and, i mean, we have to start somehwere, no ?
<jhass> then I'm misinterpreting, excuse me and nvm
Yzguy_ has joined #ruby
<jhass> I just found it unusual to pay somebody for a hobby thingy I guess :)
<Musashi007> it’s something i believe in and want to get started..
<jhass> so yeah, sinatra/Rack:Session abstracts that stuff away for you so you can treat session just like a hash that's persistent across requests
<shevy> sometimes I look at my code
RegulationD has quit [Ping timeout: 250 seconds]
<shevy> and wonder what the heck I have been doing there
kyrylo_ has joined #ruby
<jhass> just don't store anything beyond basic data in it (strings, numbers, symbols, arrays of them are okay, nothing beyond)
Limix has quit [Quit: Limix]
ROOM1 has quit [Read error: No route to host]
deuterium has quit [Read error: Connection reset by peer]
hpoydar has joined #ruby
<jhass> shevy: that's normal
jerematic has quit [Ping timeout: 272 seconds]
kyrylo has quit [Ping timeout: 265 seconds]
Limix has joined #ruby
reinaldob has quit [Ping timeout: 252 seconds]
SpikeMaster has joined #ruby
<Musashi007> what exactly is app.use?
juanca_ has joined #ruby
chridal has quit [Ping timeout: 264 seconds]
<Musashi007> is that me accessing the middleware?
<jhass> more modifying what's called the middleware stack
<jhass> you add a new middleware to it with that call
Limix has quit [Client Quit]
<Musashi007> ok
<c-c> is it like using confing to add hooks on your request pipeline?
<jhass> it allows the middleware to run code on the request before it reaches your app and on the response of your app before it's send to the client
kubunto has quit [Quit: A professor is one who talks in someone else's sleep]
<jhass> it's actually very simple, def call(env, app) process_request(env); response = app.call(env); process_response(response); response; end;
<jhass> and app is either another middleware or a rack app, you don't care because there's no real difference
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
martinbmadsen has joined #ruby
<SpikeMaster> what is the best editor for ruby?
<morenoh149> jhass: so open() returns the response as a single string? not sure what body = open(url, &:read) does
<jhass> SpikeMaster: the one you like the most
<morenoh149> SpikeMaster: atom vim or emacs
milesmat_ has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Musashi007> try sublime 3, spikemaster
<jhass> morenoh149: open-uri fakes an IO object for the response body of an HTTP request, open(url, &:read) is just a shortand syntax to open(url) {|io| io.read }
milesmatthias has joined #ruby
<c-c> I like vim, also scite, emacs, cloud 9, aptana, sublime, cream...
<jhass> SpikeMaster: it's religion, try a few, stick with what you like the most, reevaluate from time to time
<c-c> I wonder how neovim would work for ruby
<jhass> just like vim I suppose
<havenwood> but neoer
<jhass> does it do the cloud?
<morenoh149> it does the iots
martinbmadsen has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
<jhass> now I reminded myself of that silly web 4.0 talk :(
<Musashi007> jesus we’re on web 4.0 now ?
swgillespie has joined #ruby
bier has quit [Ping timeout: 252 seconds]
maximski has quit [Max SendQ exceeded]
<jhass> according to "some" people...
<morenoh149> web 3.0 got lost in commitee
<Musashi007> sigh
sngeth has joined #ruby
maximski has joined #ruby
juanca_ has quit [Remote host closed the connection]
<jhass> web 5.0 actually I think
juanca_ has joined #ruby
_1_Aj has left #ruby [#ruby]
milesmatthias has quit [Ping timeout: 256 seconds]
<jhass> feel my pain!
chridal has joined #ruby
maximski has quit [Client Quit]
<Musashi007> i thought we were enumerating these things by the financial bubbles that they enable
<jhass> don't be unreasonable, the talk has a perfectly fine explanation on why we need that version bump
Moeh has quit [Quit: Page closed]
hpoydar has quit [Remote host closed the connection]
<Musashi007> Yeahhhhhh
<Musashi007> I won’t be listening to that talk
<jhass> good thing it's slides only
dfinninger has joined #ruby
<Musashi007> i suppose that went without saying then eh, mr semantic parser?
<morenoh149> so I could also do open(url) { |io| body = io.read } ?
<Musashi007> I won’t be *reading* it or interacting with it in any fashion whatsoever ;)
chridal has quit [Ping timeout: 244 seconds]
<Musashi007> visual, auditory, or otherwise
<jhass> morenoh149: yes, but you wouldn't be able to access body outside
adamski2600 has quit [Remote host closed the connection]
<jhass> you could do body = open(url) {io| io.read } too
adamski2600 has joined #ruby
bier has joined #ruby
mroach has quit [Quit: mroach]
silkfox has joined #ruby
<morenoh149> right. But I'm placing most of my logic inside the block because I want to perform something with the whole respose. If I do body = open(ur) will that block until the response is recieved?
<morenoh149> because that's what I need
<jhass> of course
<jhass> I don't think open-uri streams at all
SpikeMaster has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
dfinninger has quit [Ping timeout: 264 seconds]
Virtual_ has quit [Ping timeout: 265 seconds]
adamski2600 has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silkfox has quit [Ping timeout: 272 seconds]
<jblack> Hi, does anyone know to create new unit tests from inside an already running unit test?
platosha has joined #ruby
nfk has quit [Quit: yawn]
sparr has quit [Changing host]
sparr has joined #ruby
porfa has quit [Ping timeout: 256 seconds]
rismoney1 has joined #ruby
porfa has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arrubin has joined #ruby
fmcgeough has joined #ruby
rismoney1 has left #ruby [#ruby]
einarj has quit [Remote host closed the connection]
aiguu has quit [Ping timeout: 255 seconds]
hpoydar has joined #ruby
juanpablo_ has joined #ruby
hiyosi has joined #ruby
Zai00 has quit [Quit: Zai00]
sinkensabe has joined #ruby
Virtual_ has joined #ruby
greenbagels has joined #ruby
Limix has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
hpoydar has quit [Ping timeout: 244 seconds]
Notte has joined #ruby
sinkensabe has quit [Ping timeout: 246 seconds]
sngeth has quit [Ping timeout: 265 seconds]
echevemaster has quit [Quit: WeeChat 1.1.1]
pontiki has joined #ruby
Hirzu has joined #ruby
anaeem1 has joined #ruby
jonr22 has joined #ruby
aiguu has joined #ruby
jasabella has quit [Ping timeout: 245 seconds]
willharrison has joined #ruby
ponga has joined #ruby
pontiki has quit [Ping timeout: 252 seconds]
shum has joined #ruby
Hirzu has quit [Ping timeout: 256 seconds]
<morenoh149> jblack: dynamically generated unit tests!?
anaeem1 has quit [Ping timeout: 265 seconds]
sdothum has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 246 seconds]
kyrylo__ has joined #ruby
Beliq has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
kyrylo_ has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
fmcgeough has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
porfa has quit [Ping timeout: 244 seconds]
swgillespie has joined #ruby
Virtual_ has quit [Ping timeout: 250 seconds]
diego1 has joined #ruby
lanemeyer has quit [Ping timeout: 264 seconds]