jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
dgutierrez1287 has joined #ruby
Azure has joined #ruby
benlieb_ has quit [Quit: benlieb_]
EllisTAA has quit [Quit: EllisTAA]
cmisenas has joined #ruby
CloCkWeRX has joined #ruby
Azure has quit [Max SendQ exceeded]
snapcase has quit [Quit: leaving]
snapcase has joined #ruby
mister_solo has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
QKO has quit [Ping timeout: 276 seconds]
dfockler has quit [Remote host closed the connection]
QKO has joined #ruby
rbennacer has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
CloCkWeRX1 has joined #ruby
bronson has quit [Remote host closed the connection]
Azure has quit [Max SendQ exceeded]
icarus has quit [Quit: Lost terminal]
CloCkWeRX has quit [Ping timeout: 264 seconds]
rehat has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
Willian|i7 has joined #ruby
William|i7 has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 272 seconds]
framling has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
Cache_Money has joined #ruby
gusrub has quit [Quit: Leaving]
jfarmer has joined #ruby
Azure has joined #ruby
Cache_Money has quit [Ping timeout: 256 seconds]
CloCkWeRX1 has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
rbennacer has joined #ruby
snockerton has quit [Quit: Leaving.]
balazs has joined #ruby
sevenseacat has joined #ruby
ruby-lang155 has joined #ruby
balazs has quit [Remote host closed the connection]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 250 seconds]
ruby-lang155 has quit [Client Quit]
blaines has joined #ruby
CloCkWeRX has joined #ruby
chipotle has joined #ruby
jhooker has joined #ruby
emptyflask has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
werelivinginthef has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
blaines has quit [Read error: Connection reset by peer]
JoshuaPaling has joined #ruby
gambl0re has quit [Ping timeout: 246 seconds]
JoshuaPaling has quit [Client Quit]
fabrice31 has joined #ruby
workmad3 has joined #ruby
casadei_ has quit [Remote host closed the connection]
genpaku has quit [Ping timeout: 265 seconds]
thiagovsk has joined #ruby
genpaku has joined #ruby
CloCkWeRX1 has joined #ruby
CloCkWeRX1 has left #ruby [#ruby]
Rollabunna has joined #ruby
Muhannad has quit [Ping timeout: 250 seconds]
finisherr has quit [Quit: finisherr]
CloCkWeRX has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
shadoi has joined #ruby
<ght> Question: I am having one hell of a time getting API calls to a provider that uses XMLRPC formatting to work. I can successfully retreive the "code", use the code to get an initial authorize_key, then use that authorize key to attain a new one and new refresh_key. That's all working properly, and all with RestClient.
<ght> I've called them successfully to this provider for years using their legacy API and xmlrpc/client.
<ght> My question is, does anyone have an example of calling any API method to any provider that uses oauth2 and xmlrpc, using RestClient or XMLRPC::client.new2() or .new()?
Rollabunna has quit [Ping timeout: 248 seconds]
Azure has quit [Max SendQ exceeded]
Igorshp has quit [Remote host closed the connection]
bf4 has joined #ruby
Azure has joined #ruby
zacstewart has joined #ruby
oo_ has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Willian|i7 has quit [Ping timeout: 248 seconds]
Oufoi has quit [Quit: Page closed]
chipotle has joined #ruby
RegulationD has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
William|i7 has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
shadoi has quit [Quit: Leaving.]
blackmes1 has joined #ruby
balazs has joined #ruby
shadoi has joined #ruby
shadoi has quit [Client Quit]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 252 seconds]
irle has joined #ruby
greenbagels has quit [Quit: Leaving]
rodfersou has joined #ruby
William|i7 has quit [Client Quit]
chipotle has quit [Quit: cheerio]
balazs has quit [Ping timeout: 276 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
QKO has quit [Remote host closed the connection]
hmsimha_ has joined #ruby
hmsimha__ has joined #ruby
woodruffw has quit [Quit: And then he took off.]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jcdesimp has quit [Quit: Leaving...]
QKO has joined #ruby
woodruffw has joined #ruby
j4cknewt has quit [Remote host closed the connection]
brendan- has joined #ruby
danman has quit [Quit: danman]
<brendan-> hi ya'll, if i need to execute a shell command via a ruby script (iptables addition), etc. what would be the recommended method or gem to use?
<brendan-> i would like to capture the output & the exit status
QKO has quit [Remote host closed the connection]
<brendan-> to validate that it was successful
<al2o3-cr> brendan-: open3
avahey has quit [Quit: Connection closed for inactivity]
irle has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
jack_rabbit has joined #ruby
Muhannad has joined #ruby
QKO has joined #ruby
<brendan-> al2o3-cr: gotcha
<brendan-> ty
<al2o3-cr> brendan-: Open3.popen3(command) {| i,o,e,t| if t.exitstatus.zero? ...}
bkxd has joined #ruby
<brendan-> gotcha
<brendan-> awesome
<brendan-> ty again
<al2o3-cr> brendan-: np
j4cknewt has joined #ruby
<al2o3-cr> or capture2/3
zendrix has quit [Ping timeout: 248 seconds]
<al2o3-cr> depending on what you wanna do :)
zacstewart has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<al2o3-cr> ?Open3#popen
<ruboto> I don't know anything about Open3
<al2o3-cr> ?Open3#popen3
<ruboto> I don't know anything about Open3
irle has joined #ruby
jpfuentes2 has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.2]
rcvalle has quit [Quit: rcvalle]
hotpancakes has quit [Ping timeout: 246 seconds]
ebbflowgo has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
a346 has joined #ruby
bronson has joined #ruby
TiKo has joined #ruby
<TiKo> whAT IS ruby?
irle has quit [Ping timeout: 252 seconds]
<Ropeney> a nice rock
<havenwood> TiKo: A programming language.
<TiKo> [havenwood] is similar to?
towski_ has quit [Remote host closed the connection]
Marisa_ has quit [Ping timeout: 264 seconds]
amclain has joined #ruby
lolmaus has joined #ruby
crdpink has quit [Quit: q term]
Muhannad has quit [Ping timeout: 272 seconds]
<havenwood> TiKo: "Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to
<havenwood> process text files and to do system management tasks (like in Perl). It is simple, straight-forward, and extensible."
bronson has quit [Ping timeout: 244 seconds]
<havenwood> TiKo: ^ Check: man ruby
Alayde has quit [Ping timeout: 272 seconds]
<al2o3-cr> havenwood: what if ruby is not installed or he/she is using windows?
<havenwood> TiKo: Here're some brief overviews of Ruby from the perspective of different languages: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/
<havenwood> al2o3-cr: hem?
<al2o3-cr> havenwood: hem?
<TiKo> [havenwood] thanls
<havenwood> al2o3-cr: What if who is installing Ruby?
<TiKo> [havenwood] thanks
<al2o3-cr> havenwood: i didn't say installing
bf4 has quit [Ping timeout: 264 seconds]
<havenwood> al2o3-cr: I just don't follow. What if Ruby isn't installed?
<al2o3-cr> havenwood: man ruby
<havenwood> al2o3-cr: ahhh, gotcha
<al2o3-cr> easily done :P
NeverDie has joined #ruby
crdpink has joined #ruby
oo_ has quit [Remote host closed the connection]
startupality has joined #ruby
mary5030 has joined #ruby
oo_ has joined #ruby
ddarkpassenger has joined #ruby
Pupeno_ has joined #ruby
chipotle has joined #ruby
j4cknewt has quit [Remote host closed the connection]
Rollabunna has joined #ruby
startupality has quit [Ping timeout: 250 seconds]
Pupeno has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
speaking1ode has quit [Ping timeout: 244 seconds]
crdpink has quit [Ping timeout: 248 seconds]
ryba has joined #ruby
Muhannad has joined #ruby
wallerdev has quit [Ping timeout: 255 seconds]
crdpink has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Ping timeout: 244 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 256 seconds]
Lucky___ has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
crdpink2 has quit [Ping timeout: 248 seconds]
Igorshp has joined #ruby
crdpink2 has joined #ruby
ryba has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
crdpink2 has quit [Client Quit]
crdpink2 has joined #ruby
tcrypt has quit []
tkuchiki has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
tkuchiki_ has joined #ruby
Igorshp has quit [Ping timeout: 272 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
rbennacer has quit [Remote host closed the connection]
hmsimha_ has quit [Quit: Leaving]
hmsimha__ has quit [Quit: Leaving]
lavros has joined #ruby
p1k has joined #ruby
Agoldfish has quit [Quit: G'Bye]
chipotle has quit [Quit: cheerio]
doctorly has joined #ruby
pengin has quit [Remote host closed the connection]
konsolebox has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bullcitydev has joined #ruby
dfockler has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
craysiii has left #ruby [#ruby]
duderonomy has quit [Ping timeout: 248 seconds]
dfockler has quit [Ping timeout: 255 seconds]
balazs has joined #ruby
j4cknewt has joined #ruby
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
balazs has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
casadei_ has joined #ruby
doctorly has quit [Ping timeout: 246 seconds]
mtx_init_ has joined #ruby
mtx_init_ has left #ruby ["WeeChat 1.0.1"]
dgutierrez1287 has quit [Remote host closed the connection]
houhoulis has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
pothibo has joined #ruby
zacstewart has quit [Remote host closed the connection]
pothibo has quit [Client Quit]
ryba has joined #ruby
scottschecter has joined #ruby
jesterfraud has quit [Read error: Connection reset by peer]
jesterfraud has joined #ruby
rodfersou has quit [Quit: leaving]
balazs has joined #ruby
fabrice31 has joined #ruby
workmad3 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
dented42 has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
<twistedpixels> can someone ELI5 gsub vs gsub!
baweaver has joined #ruby
d1ngell has joined #ruby
RegulationD has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<sevenseacat> gsub! is in place and will modify whatever you call it on. gsub will return the modified value.
<C0deMaver1ck> this is true for most methods that end with a bang
<sevenseacat> this is explained in the docs.
lessless has joined #ruby
<twistedpixels> oh okay, that makes sense thank you!
Rollabunna has quit [Ping timeout: 248 seconds]
dgutierrez1287 has joined #ruby
jtdoncas has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
ebbflowgo has left #ruby [#ruby]
govt has joined #ruby
<govt> I was watching John Worthington of Perl 6 notoriety the other day and he was talking about designing method-first and letting the classes be derived from the flow of method calls. I'm having trouble with OO design principles, i can program just fine but I don't know how to THINK in oo. How do I get past this?
dorei has quit []
mahmoudmahfouz has joined #ruby
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> the simple answer is probably 'practice'
jesterfraud has quit [Read error: No route to host]
_jesterfraud has joined #ruby
<sevenseacat> I have a hard time not thinking in OO (which makes learning functional programming fun)
mahmoudmahfouz has quit [Max SendQ exceeded]
pepperbreath has joined #ruby
nfk has quit [Quit: yawn]
phutchins has quit [Ping timeout: 265 seconds]
allomov has joined #ruby
<govt> i love fp, but when I look at other peoples code i just feel lost sometimes and I dont know how to write my code so that when other people read it they dont feel lost
chipotle has joined #ruby
<sevenseacat> I think thats a bit natural with any kind of evolved design - the first version was probably simple enough for anyone to jump in and understand, but as the functionality and complexity grows, it naturally gets harder to understand
dgutierrez1287 has quit [Remote host closed the connection]
fromthedepths has joined #ruby
dgutierrez1287 has joined #ruby
balazs has quit [Remote host closed the connection]
allomov has quit [Ping timeout: 264 seconds]
rubie has quit [Remote host closed the connection]
hotpancakes has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Cache_Money has joined #ruby
<govt> thats tru
mahmoudmahfouz has joined #ruby
Spami has joined #ruby
zacstewart has joined #ruby
mistermocha has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 276 seconds]
dstarh has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
bf4 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
mistermocha has joined #ruby
mcclurmc has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mcclurmc has quit [Remote host closed the connection]
mistermocha has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
minmax has joined #ruby
chinmay_dd has joined #ruby
kartouch has quit [Ping timeout: 272 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
bf4 has quit [Ping timeout: 272 seconds]
zacstewart has joined #ruby
mcclurmc has joined #ruby
Narzew has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 264 seconds]
scx_ has joined #ruby
serivich has joined #ruby
scx has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
hahuang65 has joined #ruby
sbhatore1 has joined #ruby
braincrash has quit [Quit: bye bye]
sbhatore has quit [Ping timeout: 246 seconds]
rubie has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
darkf has joined #ruby
mcclurmc has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
s2013 has joined #ruby
MasterPiece has quit [Quit: Leaving]
zacstewart has joined #ruby
jackjackdripper has joined #ruby
oo_ has joined #ruby
cmisenas has quit [Quit: cmisenas]
thiagovsk has quit [Quit: Connection closed for inactivity]
sbhatore has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
sbhatore1 has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
Cache_Money has quit [Ping timeout: 255 seconds]
acrux09 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
ebbflowgo has joined #ruby
mcclurmc has quit [Remote host closed the connection]
davedev24_ has quit []
lavros has quit [Ping timeout: 252 seconds]
mistermocha has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
bf4 has joined #ruby
emptyflask has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
yfeldblum has quit [Remote host closed the connection]
sbhatore1 has joined #ruby
gix has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<meatchicken> Easy way to pair each array element with every other? [1,2,3,4,5] -> 1*2,1*3,1*4,1*5,2*3,2*4 etc
jackjackdripper has quit [Quit: Leaving.]
<meatchicken> what is this "equation" called
charliesome has joined #ruby
j4cknewt has quit [Remote host closed the connection]
sbhatore has quit [Ping timeout: 256 seconds]
dopie has joined #ruby
lavros has joined #ruby
dopie has quit [Client Quit]
<mozzarella> >> [1, 2, 3, 4, 5].combination(2).to_a
<ruboto> mozzarella # => [[1, 2], [1, 3], [1, 4], [1, 5], [2, 3], [2, 4], [2, 5], [3, 4], [3, 5], [4, 5]] (https://eval.in/389614)
<mozzarella> meatchicken: ^
I has joined #ruby
<sevenseacat> oh nice.
I is now known as Guest57045
oo_ has quit [Quit: Leaving...]
Guest57045 has quit [Client Quit]
dopie has joined #ruby
Al3ks has joined #ruby
gix has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<meatchicken> mozzarella, nicely done
<meatchicken> Thanks :)
<mozzarella> np
danman has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
lavros has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
mcclurmc has joined #ruby
lavros has joined #ruby
oo_ has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
MrJiks_ has quit [Quit: WeeChat 1.1.1]
sbhatore has joined #ruby
yfeldblum has quit [Read error: No route to host]
dgutierrez1287 has quit [Ping timeout: 255 seconds]
sbhatore1 has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby
s2013 has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
rbennacer has quit [Remote host closed the connection]
Oka has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
mcclurmc has quit [Remote host closed the connection]
Lucky___ has joined #ruby
d1ngell has quit [Quit: Leaving]
Oka has quit [Remote host closed the connection]
sargas has joined #ruby
charliesome has quit [Quit: zzz]
serivich has quit [Ping timeout: 255 seconds]
haroldwu has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
Oka has joined #ruby
serivich has joined #ruby
TiKo has quit [Quit: • IRcap • 8.72 •]
geilt has joined #ruby
kfpratt has quit [Remote host closed the connection]
nyanz has joined #ruby
geilt has quit [Client Quit]
dionysus69 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ryba has quit [Ping timeout: 255 seconds]
doctorly has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
robbyoconnor has joined #ruby
kfpratt has joined #ruby
rrichardsr3 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mcclurmc has joined #ruby
p1k has quit [Ping timeout: 264 seconds]
arescorpio has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 252 seconds]
MacDaddy has quit [Read error: Connection reset by peer]
psy_ has quit [Quit: Leaving]
psy has joined #ruby
MacDaddy has joined #ruby
psy has quit [Max SendQ exceeded]
s2013 has joined #ruby
psy has joined #ruby
Al3ks has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
bronson has joined #ruby
oo_ has joined #ruby
michael_mbp has joined #ruby
towski_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
p1k has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bronson has quit [Ping timeout: 272 seconds]
chinmay_dd has quit []
oo_ has quit [Ping timeout: 246 seconds]
pgatt has quit [Quit: Connection closed for inactivity]
Soda has quit [Remote host closed the connection]
yayfoxes has joined #ruby
startupality has joined #ruby
astrobunny has joined #ruby
Kryptonical has joined #ruby
startupality has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cheerio]
jfarmer has quit []
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sbhatore has quit [Quit: sbhatore]
ruby-lang068 has joined #ruby
Al3ks has joined #ruby
bluOxigen has joined #ruby
LiquidInsect has quit [Ping timeout: 252 seconds]
p1k has quit [Ping timeout: 256 seconds]
s2013 has joined #ruby
doctorly_ has joined #ruby
zacstewart has joined #ruby
Rollabunna has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
ruby-lang068 has quit [Ping timeout: 246 seconds]
juiko has joined #ruby
psy has quit [Disconnected by services]
psy_ has joined #ruby
mcclurmc has quit [Remote host closed the connection]
p1k has joined #ruby
dgutierrez1287 has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
mcclurmc has joined #ruby
oo_ has joined #ruby
j4cknewt has joined #ruby
whiteline has quit [Ping timeout: 255 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
dgutierrez1287 has quit [Ping timeout: 276 seconds]
Kryptonical has quit [Read error: Connection reset by peer]
peter_paule has joined #ruby
jack_rabbit has quit [Read error: Connection reset by peer]
LiquidInsect has joined #ruby
doctorly is now known as Guest94516
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
LiquidIn1ect has joined #ruby
a346 has quit [Quit: a346]
LiquidInsect has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
karols has joined #ruby
mcclurmc has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
keen___________6 has joined #ruby
nobitanobi has joined #ruby
aryaching has joined #ruby
keen___________5 has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<giuseppesolinas> Hello, I'm having issues with CKEditor.js. Issue is I hate its interface, I want to be able to use custom selects, buttons, links and other html elements to control text formatting. Does anybody know how to do this?
j4cknewt has quit [Remote host closed the connection]
EllisTAA has joined #ruby
bf4 has quit [Ping timeout: 256 seconds]
EllisTAA has quit [Client Quit]
danman has quit [Quit: danman]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
peter_paule has quit [Ping timeout: 250 seconds]
casadei_ has quit [Remote host closed the connection]
kfpratt has quit [Remote host closed the connection]
revath has joined #ruby
yfeldblum has joined #ruby
bf4 has joined #ruby
baweaver has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
Melite has joined #ruby
rubie has quit [Remote host closed the connection]
Kryptonical has joined #ruby
yfeldblu_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sfarley has joined #ruby
sevenseacat has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 264 seconds]
revath has left #ruby [#ruby]
Xeago has joined #ruby
GnuYawk has quit [Quit: WeeChat 1.0]
Xeago has quit [Remote host closed the connection]
mary5030 has joined #ruby
Spami has joined #ruby
sfarley has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
jfarmer has joined #ruby
juiko has quit [Remote host closed the connection]
dhjondoh has joined #ruby
p1k has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
Rollabunna has joined #ruby
danman has joined #ruby
danman has quit [Client Quit]
lkba has joined #ruby
dhjondoh has quit [Client Quit]
grey_beard has joined #ruby
kp666 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 248 seconds]
p1k has joined #ruby
whiteline has joined #ruby
<grey_beard> So anyone feel like talking about sort_by?
Musashi007 has joined #ruby
<jfarmer> grey_beard What about it? :)(
<jfarmer> ()()()( parens party
chipotle has quit [Quit: cheerio]
ngsw has joined #ruby
<jfarmer> grey_beard ?!?!?
rubie has joined #ruby
<jfarmer> you tease
chipotle has joined #ruby
<grey_beard> I don't quit understand the arguments part. For example frequencies.sort_by { |k, v| v } was given, what exactly is the |k,v| v indicating
dhjondoh has joined #ruby
<Aeyrix> key, value
<jfarmer> grey_beard Can you articulate your understanding of blocks?
<Aeyrix> >> example_hash = {"key": "value"}; p example_hash['key']
<ruboto> Aeyrix # => nil ...check link for more (https://eval.in/389649)
<jfarmer> grey_beard Aeyrix's answer isn't wrong, but don't take it to mean there is something special about the names "k" and "v" there
<Aeyrix> lmao thanks ruboto
<sphex> doesn't it have a single argument?
<havenwood> >> {aim: true, another: false}.map { |_, v| v }
<havenwood> >> {aim: true, another: false}.map { |k, _| k }
<ruboto> havenwood # => [true, false] (https://eval.in/389651)
<ruboto> havenwood # => [:aim, :another] (https://eval.in/389652)
p1k has quit [Ping timeout: 250 seconds]
<grey_beard> Well so far the only blocks I've learned are code blocks.
dgutierrez1287 has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
<jfarmer> grey_beard Can you give an example of what you'd call a "code block" in Ruby?
scx_ is now known as scx
yeticry has joined #ruby
Eiam_ has joined #ruby
<jfarmer> grey_beard Use a service like gist.github.com to type/paste in some code and highlight the part you'd identify as a "code block."
<grey_beard> { } and the do and end delimiters.
<jfarmer> grey_beard Ok, great.
<jfarmer> grey_beard You've seen something like "[1,2,3].each { |num| puts(num) }" yeah?
chipotle has quit [Ping timeout: 256 seconds]
<jfarmer> As in, that code doesn't make you go "WTF?!"
<baweaver> it makes me go wtf
<baweaver> parens on puts?
<baweaver> how could you ;-;
<jfarmer> heresy
p1k has joined #ruby
<grey_beard> Yes I can understand what happens.
<jfarmer> grey_beard Ok, and the "{ |num| ....}" bit is what you'd call a "code block"?
revath1 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<grey_beard> Yes from the tutorial I've read.
dgutierrez1287 has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Remote host closed the connection]
<jfarmer> Part of what I'm trying to do is make sure we're talking about the same thing. Apologies if it seems pedantic, but it's easy to talk about something for 15 minutes only to realize we're talking about different things. :)
<jfarmer> grey_beard What role is "{ |num| puts(num) }" playing in that chunk of code?
_ht has joined #ruby
lxsameer has joined #ruby
<jfarmer> In your mind, I mean? What picture do you have in your head?
<jfarmer> grey_beard If this doesn't seem like I'm answering your question it's because your question doesn't really have anything to do with sort_by *per se*
<grey_beard> It's fine my understanding it pretty basic if its interchangeable with parameters or arguments my apologies I don't want any ambiguity from using the wrong language.
Ox0dea has joined #ruby
<jfarmer> grey_beard No, don't take me as critiquing your usage.
<baweaver> Ox0dea: do you come bearing gifts of perlisms?
<jfarmer> Your usage is fine, although you'd just call it a "block" and not a "code block"
<Ox0dea> baweaver: Alas, I've come only to assist grey_beard in his understanding of blocks.
<jfarmer> haha
<Ox0dea> >> %w[Ruby is awesome].sort_by { |word| word.length }
<ruboto> Ox0dea # => ["is", "Ruby", "awesome"] (https://eval.in/389661)
<Ox0dea> grey_beard: Does that example help you get a better sense of what's going on?
<baweaver> >> !!["is", "Ruby", "awesome"]
<ruboto> baweaver # => true (https://eval.in/389662)
<jfarmer> :|
<grey_beard> Well it gets iterated through each string/intergar whatever and put in the placeholder num then num is displayed.
<Ox0dea> ...
<Ox0dea> Let's try this again.
<Ox0dea> >> %w[Ruby is awesome].sort_by { |word| word.length }
<ruboto> Ox0dea # => ["is", "Ruby", "awesome"] (https://eval.in/389663)
<baweaver> Ox0dea: wait wait
* Ox0dea waits.
<baweaver> they're referring to something above
<baweaver> "22:42 jfarmer: grey_beard Ok, and the "{ |num| ....}" bit is what you'd call a "code block"?"
<baweaver> { |num| puts(num) }
<baweaver> specifically
SuMo_D has joined #ruby
<jfarmer> grey_beard What baweaver said. For example, what would happen if instead I wrote "[1,2,3].each { |num| puts(num * 2) }"
Xiti has joined #ruby
SuMo_D has quit [Client Quit]
<jfarmer> How does me changing the block affect how "[1,2,3].each" behaves?
Xiti has quit [Changing host]
Xiti has joined #ruby
yayfoxes has quit [Ping timeout: 246 seconds]
<Ox0dea> (It doesn't, technically.)
speaking1ode has joined #ruby
<jfarmer> grr
<baweaver> grey_beard: another question, what languages do you know well?
<baweaver> hehe
<baweaver> >> [1,2,3].each { |a| a + 1 }
<ruboto> baweaver # => [1, 2, 3] (https://eval.in/389666)
<jfarmer> that's..
<baweaver> >> [1,2,3].map { |a| a + 1 }
<jfarmer> man alive folks
<ruboto> baweaver # => [2, 3, 4] (https://eval.in/389667)
workmad3 has joined #ruby
<jfarmer> you are full of distracting and potentially confusing examples
<grey_beard> Know well none, I have dipped into Perl and Python, but I'm actually serious about ruby
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<sphex> grey_beard: are you unconfused yet?!
<Ox0dea> Right?
<baweaver> so base case then
<jfarmer> grey_beard Here's the deal in 3 sentences.
<baweaver> http://learnrubythehardway.org/book/ - this might help later as well
<jfarmer> 1. Blocks are a special kind of method argument in Ruby and every method can accept one, even if they don't do anything with it.
<Ox0dea> jfarmer: I think the #puts example is not great; it involves IO and doesn't really demonstrate how blocks are great for customizing behavior.
<jfarmer> gah
<Ox0dea> I'll leave you to it, then.
<jfarmer> Ox0dea Alas, I'm constrained by the format of IRC.
konsolebox has quit [Quit: Leaving]
<jfarmer> 2. Inside, methods can call the block (almost as if the block were a method itself)
konsolebox has joined #ruby
<grey_beard> Well maybe I backtrack and reformulate my question. So from what others said frequencies.sort_by { |k, v| v } the k and v indiciate |key, value| value, and there is nothing special about the k,v they are just convenient letters.
mcclurmc has joined #ruby
emptyflask has quit [Remote host closed the connection]
<jfarmer> 3. The analogy is that if a method looks like "def whatever(a, b, c) ... end" then blocks look like "{ |a, b, c| ... }"
<sphex> sort_by only passes one argument to its block though
<jfarmer> grey_beard The role a block plays in the overall code depends on the method you're passing the block to.
<jfarmer> sphex Stop.
<jfarmer> These technical details are correct but really confusing.
<jfarmer> grey_beard Do you know how to iterate over a Hash in Ruby?
<jfarmer> Using each?
<sphex> uh. I'm sorry, I'll guess I'll hold my comments for the end. :p
<grey_beard> So if I understand the frequencies.sort_by { |indicates key, indicates value| this tell to sort by key or value }
<jfarmer> grey_beard If you can follow (1), (2), and (3) of what I just said then Ox0dea's is the one to look at now.
<Aeyrix> #ruby helping new programmers learn Ruby in a nutshell.
<jfarmer> grey_beard Stop
<jfarmer> grey_beard Hold up.
workmad3 has quit [Ping timeout: 264 seconds]
<jfarmer> grey_beard Let's understand a simpler example first.
<jfarmer> There are three moving parts here: (1) the block, (2) sort_by, (3) and the fact that you're calling sort_by on a Hash
oo_ has quit [Remote host closed the connection]
Kryptonical has quit [Read error: Connection reset by peer]
<jfarmer> If you're not comfortable with (1) and (2) then it will be easiest to understand them if we understand how sort_by works with something like an Array
<jfarmer> Using Ox0dea's example:
<jfarmer> >> ["Ruby", "is", "awesome"].sort_by { |word| word.length }
<ruboto> jfarmer # => ["is", "Ruby", "awesome"] (https://eval.in/389670)
sarkyniin has quit [Ping timeout: 246 seconds]
<jfarmer> Or, to highlight the fact that the parameter name is just a placeholder:
<grey_beard> Okay I apolagize my irc doesnt automatically scroll down so I'm constantly scrolling down.
<jfarmer> >> ["Ruby", "is", "awesome"].sort_by { |waffles| waffles.length }
<ruboto> jfarmer # => ["is", "Ruby", "awesome"] (https://eval.in/389671)
<jfarmer> Oh. Really? That's....
<jfarmer> Well, that makes IRC hard.
<grey_beard> Yes it does, but im following you now.
<jfarmer> grey_beardy Blocks allow us to pass in behavior (encapsulated as a block) into another method. In the case of sort_by, the block is used to determine how to sort each thing in whatever collection you're trying to sort.
roolo has joined #ruby
yardenbar has joined #ruby
oo_ has joined #ruby
<grey_beard> So from your example it assumes you want to sort into ascending order?
<jfarmer> grey_beard Yes.
<jfarmer> Just like:
<grey_beard> So that is the default and you would need to change the block if you wanted descending.
<jfarmer> >>> [10, 7, -12, 3].sort
<ruboto> jfarmer # => /tmp/execpad-b4af4cd81bb8/source-b4af4cd81bb8:2: syntax error, unexpected '>' ...check link for more (https://eval.in/389673)
<jfarmer> Oops
<jfarmer> >> [10, 7, -12, 3].sort
<ruboto> jfarmer # => [-12, 3, 7, 10] (https://eval.in/389674)
<jfarmer> grey_beard Also correct.
<jfarmer> I can't really think of a language where sort order isn't ascending by default. That's a pretty universal thing.
<jfarmer> I think of it less as "sorting" and more as "ordering according to the usual order."
<jfarmer> And numbers are ordered by their order (left to right) on the number line
<grey_beard> Well makes sense now that I know it assumes ascending.
<jfarmer> grey_beard Great.
chinmay_dd has joined #ruby
<jfarmer> So, in general:
<grey_beard> Well thank you kindly for all the help everybody.
<jfarmer> 1. Methods that accept a block do so to allow the programmer to "pass in" custom behavior
<jfarmer> 2. How that behavior is used depends on the method; in the case of "each" it's used to determine what is to be done with each thing in the collection; in the case of "sort_by" it's used to determine the value by which to sort each thing in the collection
codecop has joined #ruby
<jfarmer> 3. When you're dealing with a Hash, the block will be given each (key, value) pair as an argument
<jfarmer> And I'd say like 80% of the time Ruby developers label the arguments something like "{ |k, v| ... stuff ...}"
<jfarmer> grey_beard If you want a big list of similar methods, check out http://ruby-doc.org/core-2.2.2/Enumerable.html
Al3ks has quit [Remote host closed the connection]
<jfarmer> All of those methods work on any Enumerable thing in Ruby, which includes Arrays, Hashes, and a few other things, too.
<jfarmer> (And almost all take a block of some kind.)
<jfarmer> the end (I hope)
mcclurmc has quit [Remote host closed the connection]
Ox0dea has quit [Read error: No route to host]
<jfarmer> tune in again next week, same bat time, same bat channel
mcclurmc has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
djbkd has quit [Quit: Leaving...]
Ox0dea has joined #ruby
<grey_beard> Oh I see , I think because it looked foreign compared to the one I was being shown for hashes it threw me off.
LiquidIn1ect has quit [Ping timeout: 264 seconds]
<jfarmer> grey_beard Indeed!
<jfarmer> Be sensitive to that as you're learning.
sandstrom has joined #ruby
rrichard_ has joined #ruby
<jfarmer> Beginners think that things which look different are different.
<jfarmer> (In any subject)
<jfarmer> Easier to catch yourself if you're aware that it's going on, though.
<sphex> jfarmer: are you an actual teacher?
<jfarmer> sphex Yes.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bf4 has joined #ruby
Xeago has joined #ruby
<sphex> is there going to be a test?
<jfarmer> no
<sphex> makes sense
<jfarmer> Although, funny thing: when you try to build a learning environment without tests, it doesn't take long for students to demand them.
eGGsha has joined #ruby
<jfarmer> "Ugh, fine, I'll give you a test."
ngsw has quit [Read error: Connection reset by peer]
Guest94516 has quit [Ping timeout: 256 seconds]
rrichardsr3 has quit [Ping timeout: 248 seconds]
dented42 has joined #ruby
doctorly_ has quit [Ping timeout: 276 seconds]
rrichard_ has quit [Ping timeout: 264 seconds]
ngsw has joined #ruby
stan has joined #ruby
<jfarmer> grey_beard If you want a test, here it is: go through each method in the list of methods on the Enumerable page I linked to above. For each method, look at an example of its usage but don't read the description. Make an educated guess about what the particular method does and write it down (actually write it). Read the description and compare your answer to what's written on that page.
<jfarmer> DIY testing
<jfarmer> college board, hire me
<jfarmer> grey_beard That's a good way to both familiarize yourself with all the Enumerable methods and to get comfortable with the (technical) language used to describe what they do.
<jfarmer> The key part is the comparison between your own thoughts and what's on the page, though, so don't just read the descriptions and call it a day. :)
endash has joined #ruby
<jfarmer> grey_beard Also, here are some exercises you might find useful: https://github.com/codeunion/ruby-exercises
acke has joined #ruby
<jfarmer> (warning, mild self promotion)
<grey_beard> I will, but it will lead me to more questions probably and back here as well.
alex88 has joined #ruby
<jfarmer> grey_beard That's good.
ebbflowgo has quit [Read error: Connection reset by peer]
<sphex> jfarmer: do you teach ruby a lot? is it in a public school? (just wondering where and how ruby gets taught "formally" like that)
<jfarmer> Better to be confused and have too many questions than be confused and have too few.
qiukun has joined #ruby
<jfarmer> sphex Yes and yes (a little).
ebbflowgo has joined #ruby
gauke has joined #ruby
<jfarmer> sphex I volunteer through some after-school programs to teach at public schools.
<jfarmer> I also make my living teaching it (slash, programming in general), mostly to adults.
<sphex> ah ok
mcclurmc has quit [Remote host closed the connection]
<jfarmer> I wouldn't call how I teach very formal, at least relative to most classrooms. A lot of my public school students are at a loss at first about what to do.
<jfarmer> After a few fundamentals are shored up, I just try to maximize the amount of feedback they get on their code. "Make a plan, code it as best as you can, get feedback quickly, incorporate, repeat."
<jfarmer> "But what am I supposed to do?"
<sphex> prolly impatient to make their killer rails app too
<jfarmer> Yes, some students for sure.
alex88 has quit [Ping timeout: 256 seconds]
<sphex> "Alright, blocks, got it. done. Is this how I geolocate and mashup?"
<jfarmer> Haha yes.
<jfarmer> If I'm doing a good job the dots are connected, but some students won't give an inch.
<jfarmer> I'll say this is more true of adults than children.
sargas has quit [Quit: Leaving]
emilkarl has joined #ruby
<sphex> I'm guessing most of these students are fairly new to programming? pretty good choice of first language, eh. :p
Jiks has joined #ruby
Jiks is now known as MrJiks
Rollabunna has joined #ruby
<jfarmer> The public school students often have a little prior exposure.
mcclurmc has joined #ruby
<jfarmer> The most common languages seem to be Python and Java.
<jfarmer> (Largely because AP Computer Science uses Java.)
<jfarmer> You do see fun mistakes from students coming from Java at first, things like...
Al3ks has joined #ruby
<jfarmer> "def Fixnum add(Fixnum x, Fixnum y) ... end"
<baweaver> Still of the opinion Java is horrid
last_staff has joined #ruby
<baweaver> though that looks like Scala
<sphex> baweaver: my school had Visual Basic. I don't think I'll ever overcome the early brain damages. :/
<jfarmer> I'm "whatever" about Java as a production language, but I think it's awful as a teaching language.
<baweaver> def add(x:Int, y:Int):Int = x + y
<jfarmer> The main thing you want to get out of students' head early on is the idea that learning to program is like learning a bunch of magic spells called "programs."
<jfarmer> And an experienced programmer is just someone who's learned 10,000 magic spells or whatever.
fromthedepths1 has joined #ruby
<jfarmer> But right off the bat, Java is filled with things like "public static void main(...)"
<sphex> hrm. supposedly that'
<sphex> oops. that's how they teach it in India
<jfarmer> "Don't worry about those things for now. *waves hands*"
endash has quit [Quit: endash]
njs126 has quit [Ping timeout: 276 seconds]
<jfarmer> Some students do have an insane capability for memorizing that stuff.
rrichardsr3 has joined #ruby
intyl has quit [Ping timeout: 246 seconds]
<jfarmer> (Often the ones who struggle the most, in my experience.)
Rollabunna has quit [Ping timeout: 248 seconds]
fromthedepths has quit [Quit: Leaving.]
<jfarmer> The quantity and detail at which they can memorize things blows my mind.
<baweaver> If I had to pick a learning language it'd probably be lisp
<baweaver> or scheme
<baweaver> eliminate all concerns of syntax
govt has quit [Quit: Connection closed for inactivity]
<Ox0dea> MIT agreed with you for a long time.
<baweaver> just focus on how to build from there.
<baweaver> now they do python
<baweaver> SICP
<jfarmer> My alma mater uses Scheme as their intro language.
<jfarmer> (University of Chicago)
<sevenseacat> at university we covered C, Haskell, Java and Prolog, in that order. mostly C though.
last_staff has quit [Quit: last_staff]
<jfarmer> But the CS department is basically an extension of the math department
<shevy> baweaver but you have to use a lot of () in lisp!
qiukun has quit [Quit: qiukun]
<jfarmer> hah
<baweaver> the people who care about that are ironically from Java
mcclurmc has quit [Remote host closed the connection]
<baweaver> where they have a lot worse syntax barriers to deal with routinely
<sevenseacat> I also did electives that dabbled in PHP and Python. woo.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gauke has quit [Quit: gauke]
karols has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grey_beard has quit [Ping timeout: 246 seconds]
lsmola has joined #ruby
grey_bear has joined #ruby
<MrJiks> Hello there, could you check the response of this url and see if you recognize any specific data format?
darlinger has joined #ruby
darlinger has left #ruby [#ruby]
<MrJiks> I am trying to use this endpont to get the data; the data returns seems to be too weird.
postmodern has joined #ruby
<baweaver> post the data in a gist
<jfarmer> oh my god
<MrJiks> Sure, hold on.
<baweaver> most members here are a bit averse to strange links
<MrJiks> baweaver: sure.
<jfarmer> MrJiks Well, I'm a brave person and went there and viewed the source
<MrJiks> jfarmer: and?
s2013 has joined #ruby
unshadow has joined #ruby
<jfarmer> I'm terrified
codecop has quit [Ping timeout: 264 seconds]
<MrJiks> Here is the data: http://pastebin.com/k8iLW3RK
<ruboto> MrJiks, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/010c0b82e22df19fd0fd
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jfarmer> haha
<jfarmer> CAN'T DO ANYTHING RIGHT, GEEZ MrJiks!
s2013 has quit [Client Quit]
ngsw has quit [Read error: Connection reset by peer]
<baweaver> I want to say CSV
<jfarmer> MrJiks But sorry, no, the format looks totally unfamiliar (and slightly insane) to me
<MrJiks> baweaver: ya! But what are those ~?
<baweaver> formatting shenanigans
<MrJiks> It looks like they did something custom!!
<jfarmer> Yeah, it might be a generic "delimiter separated value" sort of thing.
mister_solo has joined #ruby
<baweaver> probably
JohnBat26 has joined #ruby
<MrJiks> jfarmer: But it looks mized.
<MrJiks> *mixed
ngsw has joined #ruby
s2013 has joined #ruby
<shevy> maized!
codecop has joined #ruby
<baweaver> shevy: well aren't you corny tonight
<MrJiks> If its helpful, have a look at the site: http://erail.in/
mikecmpbll has joined #ruby
<jfarmer> MrJiks I agree it doesn't look quite right, but that was my first reaction.
<jfarmer> But then you try to play "spot the columns" and I don't really see it.
GnuYawk has joined #ruby
s2013 has quit [Client Quit]
<MrJiks> Try "ERN" and "TVC" for the from and to field to get the data
<MrJiks> in the site.
mcclurmc has joined #ruby
ta has quit [Remote host closed the connection]
hahuang65 has joined #ruby
dgutierrez1287 has joined #ruby
zacstewart has joined #ruby
<MrJiks> I just don't understand why people do such text formating!
<Ox0dea> Job security.
<baweaver> ^
<jfarmer> haha
<MrJiks> Ox0dea: :)
gauke has joined #ruby
User458764 has joined #ruby
<MrJiks> I will have a dirty feel if I did something like this
<baweaver> Could always ping them and ask what the devil it is
s2013 has joined #ruby
<jfarmer> MrJiks I had a job once where I had to interact with back-end data from multiple major retailers and it was a similar mess.
<baweaver> welcome to enterprise quality
amclain has quit [Quit: Leaving]
<jfarmer> Every retailer had their own arbitrary text data format.
<MrJiks> baweaver: but what the hell, right? How can someone do this unless they intentionally planned to make it dirty?
<baweaver> you'd like to believe the best in people
s2013 has quit [Client Quit]
<baweaver> but there are some who should never be allowed to program
platzhirsch has joined #ruby
<jfarmer> MrJiks The faulty assumption is likely that the person doing this was thinking about it that deeply. :)
astrobunny has quit [Remote host closed the connection]
<MrJiks> jfarmer: Haven't these people heard of JSON or is it intentionally done like this?
krz has joined #ruby
<jfarmer> This is likely older than JSON, but regardless, I just imagine it never entering their heads.
<jfarmer> It was more like "Oh, need some format, ok, I need to make a format."
<jfarmer> That's how I imagine it at least.
astrobunny has joined #ruby
<MrJiks> jfarmer: why does it need deep thought? If have to make an interface, I normally go and see whats there out there that needs to connect to this; isn't thats the simplest thing someone can think?
<baweaver> probably a COBOL or RPG column dump
<baweaver> I hate to say it, but welcome to programming
<MrJiks> Oh okay! baweaver thats exactly what I was thinking!
<baweaver> I'd have to remember the formatting there
<jfarmer> MrJiks Likely no.
<baweaver> check their job postins
<jfarmer> Is the answer to your question
<baweaver> they're using asp for that
<MrJiks> I cannot imagine someone invented a format for this.
zacstewart has quit [Ping timeout: 252 seconds]
<baweaver> so they at least use .NET
<jfarmer> MrJiks Well, more I meant they just do whatever is right in front of their face.
Carnage\ has joined #ruby
<jfarmer> "I'll use Ruby's native serialization format! Solved."
hahuang65 has quit [Ping timeout: 276 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
<MrJiks> baweaver: this should some data dump/serialization.
<jfarmer> next
athos_diddy has quit [Remote host closed the connection]
<baweaver> though I've seen programmers bad enough that they'll do that
<MrJiks> Its cannot be something that they invented; thats what I feel.
<jfarmer> It does seem particularly byzantine, yeah
<MrJiks> baweaver: really? You mean 1/2 year experienced ones?
<baweaver> never underestimate a sufficiently lazy and bad programmer
<baweaver> I've seen a guy with 20+ years experience
<baweaver> couldn't reverse a string in ruby
athos_diddy has joined #ruby
<MrJiks> baweaver: this is not about laziness. Its jus dump.
karols has joined #ruby
<MrJiks> baweaver: what?
<baweaver> you'd like to think that
revath1 has left #ruby [#ruby]
<MrJiks> 20 years experinece developer who doesn't know how to reverse a string?
<baweaver> yep
<MrJiks> *dumb
<baweaver> without the reverse function, granted
<baweaver> but still
solars has joined #ruby
<baweaver> gave the same problem to an intern candidate
<baweaver> took him 2 minutes
karols has quit [Client Quit]
<jfarmer> It would be amazing if this were some dump format from a cira-1982 IBM mainframe
fabrice31 has joined #ruby
Dreamer3_ has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
<baweaver> COBOL probably
karols has joined #ruby
<Ox0dea> Is properly reversing a string considered O(0.5n)?
fabrice31 has quit [Remote host closed the connection]
karols has quit [Max SendQ exceeded]
<baweaver> I won't hold pointers against them
fabrice31 has joined #ruby
<baweaver> for a ruby / js job that is
<MrJiks> baweaver: so you mean to say that I may be able to find amble 10+ year guys who may stumble at FizzBuzz?
sandstrom has quit [Quit: My computer has gone to sleep.]
<baweaver> yep
<baweaver> I've interviewed some
<baweaver> they exist
<MrJiks> baweaver: thats quite surprising.
karols has joined #ruby
* Ox0dea doesn't know how to implement FizzBuzz. :/
<baweaver> ......
<Ox0dea> ^_^
<Nilium> ಠ_ಠ
<jfarmer> Ox0dea We're here for you
<Radar> 'sifn't
mcclurmc has quit [Remote host closed the connection]
<Nilium> I almost answered your O(n) question
<Radar> You're the guy who finds all the weird Ruby syntax!
<Nilium> Then decided you're crazy
<jfarmer> haha
<MrJiks> baweaver: I used to think that test was exagerating too much..
<baweaver> you forget who wrote that behemoth last night
karols has quit [Max SendQ exceeded]
<Radar> You could work it out in O(n) time
<jfarmer> O(troll)
<Ox0dea> Radar: But you only need to iterate to the halfway point if you know the string's length.
karols has joined #ruby
<baweaver> >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
<ruboto> baweaver # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/389703)
<jfarmer> baweaver You're hired!
<Radar> SACRE BLEU
<MrJiks> How do you do that message? "Ox0dea doesn't know how to implement FizzBuzz. :/"
<shevy> CORDON BLEU!!!
<MrJiks> In IRC i mean
<Radar> MrJiks: /me thing
<baweaver> that was Ox0dea's from last night
<jfarmer> MrJiks Type "/me blah de blah" without the quotes
<shevy> he was drunk
karols has quit [Max SendQ exceeded]
* MrJiks how?
<jfarmer> BEHOLD
<Ox0dea> /me doesn't work for me.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> lol
<baweaver> space helps
haraoka has joined #ruby
* MrJiks MrJiks found it!
karols has joined #ruby
<shevy> twice the name, twice the fame
<MrJiks> shevy: ;P
<shevy> :)
karols has quit [Max SendQ exceeded]
<_mh_> baweaver: This little 'FizzBuzz' contraption of yours is still a little frightening to behold.
<baweaver> but seriously, I've interviewed interns who are insanely good and seasoned veterans who have no idea how to program
<baweaver> it's Ox0deas
karols has joined #ruby
<_mh_> oh, wrong attribution then.
<_mh_> thx
<baweaver> see the original fallout fun
karols has quit [Max SendQ exceeded]
<baweaver> https://gist.github.com/baweaver/88bbbc1a3e3b5dee2610 - and me trying to grok it
codecop has quit [Remote host closed the connection]
karols has joined #ruby
platzhirsch has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Remote host closed the connection]
jimms has joined #ruby
karols has quit [Max SendQ exceeded]
Spami has quit [Read error: Connection reset by peer]
<_mh_> baweaver: that part I've read yesterday, that's why I assumed it was yours.
<_mh_> Ox0dea: one hell of a creation.
sevenseacat has quit [Remote host closed the connection]
Spami has joined #ruby
karols has joined #ruby
<Ox0dea> I'm ashamed of it.
<baweaver> I'd get bored before I finished something like that
duderonomy has joined #ruby
sevenseacat has joined #ruby
<Aeyrix> Radar: how busy are you
sandstrom has joined #ruby
<Aeyrix> like on a scale of "i can help you stop being a moron" to "i'm actually working"
andikr has joined #ruby
karols has quit [Max SendQ exceeded]
<MrJiks> So, I took a free tier in AWS yesterday. I tried a simple Sinatra Hello WOrld App; it worked internally. But when I tried to access it externally, I wasn't able to. Any idea why?
<Radar> Aeyrix: I just came back from a walk to the shops and now I'm starting on my next task.
<Aeyrix> ok, no problem
<Radar> Aeyrix: what's up?
<Aeyrix> I just wanted some advice w/ testing for a gem I'm writing.
<Aeyrix> You know how I am re: testing
karols has joined #ruby
<Aeyrix> but this is something I want to release.
<_mh_> Ox0dea: Why would you be ashamed of it? It at shows up creativity and ability to work with obscure code.
<MrJiks> I have no clue about nginx; its installed and running but I don't know how to see that page outside.
<Radar> Aeyrix: shoot
<Aeyrix> Radar: Mainly just a quick run through, tbh.
<Aeyrix> Hence asking if you're busy instead of just asking the channel. :P
<Radar> Aeyrix: does it provide a CLI?
<Aeyrix> no
karols has quit [Max SendQ exceeded]
<Radar> Then call the methods from the gem using RSpec
<Aeyrix> ok
<Aeyrix> any good go-to tutorial for gem r-g-r gem testing
<Aeyrix> ?
<Aeyrix> tutorial / guide
lkba has quit [Remote host closed the connection]
karols has joined #ruby
<Aeyrix> whatever
<MrJiks> Any ideas anybody?
<baweaver> security groups
vdamewood has joined #ruby
<baweaver> though I'm probably the only devops / aws person on right now
<MrJiks> security groups? I have no idea about it; can you give me some pointers to read up on that?
karols has quit [Max SendQ exceeded]
<baweaver> might be a better idea to ask on the aws channel as well
<MrJiks> baweaver: my unix knowledge is pretty sloppy
<baweaver> a security group defines ingress and egress permissions
jzigmund_ has joined #ruby
<Radar> Aeyrix: Typically I would just generate a spec directory which has a spec_helper.rb which requires anything needed that the library needs
<baweaver> it's an AWS concept
AlexAltea has quit [Ping timeout: 252 seconds]
<Radar> Aeyrix: I don't have a tutorial to hand right now
vondruch_ has joined #ruby
<Aeyrix> Radar: np
<Aeyrix> I just want to stop writing the code and start doing the tests firs.t
karols has joined #ruby
<MrJiks> baweaver: are you referring to AMI or something like that?
<baweaver> no
<baweaver> that'd be a machine instance
jzigmund has quit [Read error: Connection reset by peer]
<MrJiks> baweaver: I didn't go through their security systems
rubie has quit [Remote host closed the connection]
karols has quit [Max SendQ exceeded]
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> so no vpc or anything?
<MrJiks> I just set it up as a plain instance.
<MrJiks> Just a simple ubuntu micro instance
<baweaver> did you use the external public ip or the private one?
<MrJiks> The external IP from the dashboard
<Ox0dea> I found out how to reverse a string!
<Ox0dea> >> (___=->_,__=''{__=_[$.]+__; _[$.+=$$/$$]?___[_,__]:__})['yllis os']
<ruboto> Ox0dea # => "so silly" (https://eval.in/389716)
doodleha_ has joined #ruby
<Aeyrix> Jesus fucking Christ, Ox0dea.
<baweaver> hehe
<sevenseacat> lol
grey_bear has quit [Quit: Page closed]
<baweaver> well that explains where he went
<Aeyrix> I'm getting weird looks from how hard that made me laugh.
<Radar> I can *almost* read that Ruby
ryez has joined #ruby
rdark has joined #ruby
<MrJiks> Ox0dea: ! I don't even understand what thats even!
<sevenseacat> at least now he knows fizzbuzz and reversing a string
troulouliou_dev has joined #ruby
LiquidInsect has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_mh_> Ox0dea: next week, you'll be having a new subset of ruby that works without any alphanums.
<Ox0dea> I mean, I'm kind of demonstrating that it already exists within the language itself?
ngsw has quit [Read error: Connection reset by peer]
<_mh_> sure, but you have to rewrite all utility functions, don't you?
doodleha_ has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 248 seconds]
<_mh_> unless you'd be using alphanums... ;)
pepperbreath has left #ruby [#ruby]
<Ox0dea> Well, yes.
<havenwood> Matz' FizzBuzz in lambda calc (line scrolls way to the right): https://github.com/mruby/mruby/blob/master/benchmark/bm_app_lc_fizzbuzz.rb#L11
ngsw has joined #ruby
jimms has quit [Remote host closed the connection]
<sevenseacat> pfft, it uses alnums.
<Ox0dea> havenwood: That's Tom Stuart's.
vondruch_ has quit [Ping timeout: 246 seconds]
<baweaver> *translating*
jzigmund_ has quit [Ping timeout: 256 seconds]
<sevenseacat> rookie level obfuscation.
<havenwood> Ox0dea: Ah, saw matz commit it a while back but didn't look up origin.
<havenwood> Ah, the comment.
<MrJiks> baweaver: baweaver I just confirmed, I am using the public IP from the AWS instances' dashboar
<havenwood> Makes a nice little bench.
<baweaver> MrJiks: then I'd ask in AWS
jzigmund has joined #ruby
<MrJiks> baweaver: just to confirm again: I should be able to access the ip with port 80 right?
<MrJiks> http://<ip>:80
<baweaver> yeah
<MrJiks> Right?
<baweaver> should and can are different though
<baweaver> and much past that you're better off asking on the aws channels
LiquidInsect has quit [Ping timeout: 246 seconds]
doertedev has joined #ruby
s2013 has joined #ruby
<MrJiks> Okay, I should probably. Let me try #aws see you! Thanks!
<sevenseacat> fifth time is the charm
Channel6 has quit [Quit: Leaving]
ta has joined #ruby
<havenwood> Ox0dea: do any quines?
s2013 has quit [Client Quit]
eGGsha has joined #ruby
LiquidInsect has joined #ruby
Carnage\ has quit []
<havenwood> that would be neat without alnum
bronson has joined #ruby
<baweaver> that one wasn't as bad
Bertg has joined #ruby
<Ox0dea> havenwood: I've written some of the boring variety, but a non-alphanumeric one would be hard even under those conditions.
<baweaver> out of index and ad-hoc reduce, not bad
<Ox0dea> havenwood: I trust you know of Endoh-san's Ouroboros?
<havenwood> Ox0dea: Aye, mind blown.
doodleha_ has joined #ruby
j4cknewt has joined #ruby
last_staff has joined #ruby
<baweaver> though I wouldn't rely on $. as irb doesn't play nice with it.
<Ox0dea> I suspect it will remain the pinnacle of quine-ing for the foreseeable future.
jenrzzz has quit [Ping timeout: 276 seconds]
<havenwood> Ox0dea: I'd consider it a major accomplishment just to install all the langs to run it. :P
<Ox0dea> havenwood: There's a meta-package in the AUR. :)
<havenwood> Ox0dea: hahaha
<havenwood> nice
Alina-malina has quit [Ping timeout: 246 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
ringarin has joined #ruby
<Ox0dea> baweaver: What is the opposite of a magician?
tvw has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
<havenwood> A pidgeon?
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
doodleha_ has joined #ruby
<havenwood> A seal?
* baweaver is thinking of Break Blade right now
<baweaver> Un-Sorcerer :D
Macaveli has joined #ruby
<baweaver> Muggle if we're on Harry Potter
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea> In any case, I'm honored. You're quite good at Muggling these things.
Rollabunna has joined #ruby
<Ox0dea> I have accepted your unspoken challenge.
<sevenseacat> oh this will be good.
<baweaver> ....shit
Macaveli has quit [Client Quit]
doodleha_ has quit [Read error: Connection reset by peer]
* sevenseacat makes enough popcorn for the entire channel
<_mh_> yay popcorn
<_mh_> suppose we'll need it.
iateadonut has joined #ruby
<Ox0dea> I bet I could do a bot.
<baweaver> Just give me a ring whenever you have some new concoction.
<Nilium> What about pigeons? RFCs 1149 / 2549?
<iateadonut> can i ask rails questions here? or where do i go for that?
nyanz has quit []
<Ox0dea> IPoAC is best IP.
<baweaver> #RubyOnRails
vondruch_ has joined #ruby
<iateadonut> (i'm wondering why /vender is not in the default .gitignore file
<iateadonut> ok. htnak.
<Ox0dea> > mfw 2 transposition errors in the same word
dfockler has joined #ruby
<baweaver> Oooh, are we playing with Levenshtein now?
doodleha_ has joined #ruby
<baweaver> Well, Dameraue for Transpose
<shevy> you are one clever beaver
<shevy> those dam calculations sure pay off
<baweaver> Ox0dea: do DL non-alpha-numeric :D
<shevy> dam-eraue as well :D
<Ox0dea> baweaver: That sounds good.
<baweaver> god speed
wildroman2 has joined #ruby
memph1s has joined #ruby
* Ox0dea is looking for his LOLCODE implementation of Boyer-Moore-Horspool.
Rollabunna has quit [Ping timeout: 248 seconds]
chenillen has joined #ruby
<baweaver> ah, that I know what that one is as well
<baweaver> well, at least Boyer-Moore
LiquidInsect has quit [Ping timeout: 256 seconds]
memph1s has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 264 seconds]
<Aeyrix> I'm getting weird looks from how hard that made me laugh.
<Aeyrix> wow
<baweaver> I tend to memorize string algorithms as I use them often enough
<Aeyrix> thanks ctrl-tab
last_staff has quit [Quit: last_staff]
<baweaver> I was about to say, the unspoken challenge thing had me rolling a bit
memph1s has joined #ruby
jimms has joined #ruby
doodleha_ has quit [Ping timeout: 264 seconds]
Al3ks has quit [Quit: Leaving]
doodleha_ has joined #ruby
<Aeyrix> Is there a uh
<Aeyrix> valid way
<Aeyrix> actually no, that defeats the purpose
<Aeyrix> #testing
hotpancakes has joined #ruby
memph1s has quit [Read error: Connection reset by peer]
<shevy> #painful
msgodf has joined #ruby
<Aeyrix> ye
<Aeyrix> learning tho
memph1s has joined #ruby
Macaveli has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<baweaver> Ox0dea: you're not using the Y-combinator though, for shame :P
doodleha_ has joined #ruby
<Ox0dea> baweaver: And that's why Tom's thing is so much more impressive than my shenanigans.
<Ox0dea> "Programming with Nothing" is my all-time favorite talk.
<yorickpeterse> morning
<baweaver> Look up Jim Weirich's Y Not
<Ox0dea> Also very good.
zz_Outlastsheep is now known as Outlastsheep
doodleha_ has quit [Read error: Connection reset by peer]
<Ox0dea> I love that he started the talk by demonstrating fixpoints with audience participation.
memph1s has quit [Ping timeout: 252 seconds]
codecop_ has joined #ruby
<Ox0dea> I can't find my BMH implementation. :(
hotpancakes has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
doodleha_ has joined #ruby
Zarthus has quit [Quit: ZNC 1.7.x-git-196-5faaf67 - http://znc.in]
Zarthus has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
doodleha_ has quit [Read error: Connection reset by peer]
<ljarvis> moin
ngsw has joined #ruby
<sevenseacat> sup ljarvis
ledestin has joined #ruby
<ljarvis> tiredz :(
<sevenseacat> i know them feels
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bf4 has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
CamonZ has joined #ruby
<shevy> cats sleep a lot
dgutierrez1287 has joined #ruby
jenrzzz has joined #ruby
doodleha_ has joined #ruby
exadeci has joined #ruby
k3asd` has joined #ruby
ixti has joined #ruby
Oog has joined #ruby
doodleh__ has joined #ruby
sandstrom has joined #ruby
<Oog> having a very strange problem.... https://gist.github.com/anonymous/a6eedd3645223ec17ea0 - calling payments method returns [] immediately it doesnt execute the Mti function
doodleha_ has quit [Read error: Connection reset by peer]
<Oog> i think its something to do with the function coming from a module that i dont understand
workmad3 has quit [Ping timeout: 264 seconds]
doodleh__ has quit [Read error: Connection reset by peer]
micmus has joined #ruby
dgutierrez1287 has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
hahuang65 has joined #ruby
<sevenseacat> you mean the payments method that isnt in a module?
tkuchiki_ has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<Oog> i call invoice.payments and you see it calls mti_get_macro(Payment)
<Oog> but mti_get_macro seems to just return [] without executing it is very odd. this works in rails console but not in the server
krz has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
<Oog> even the firs tlog line in mti_get_macro isnt getting called
<sevenseacat> what does invoice.method(:payments).source_location return
doodleha_ has joined #ruby
<Oog> website/app/models/invoice.rb", 29]
krz has joined #ruby
<sevenseacat> good start, so it is calling your payments method
<Oog> im using byebug stepping in it does go into the function and i just stepped over the log_console line but it didnt output anything. i also used step and it didnt step into it
langlands has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
<sevenseacat> what is log_console ?
doodleha_ has quit [Read error: Connection reset by peer]
<Oog> basically puts
speaking1ode has quit [Ping timeout: 264 seconds]
<Oog> actually no it does Rails.logger.info(message)
<sevenseacat> thats not helpful
<sevenseacat> so whats your log level set to?
baweaver has quit [Remote host closed the connection]
langlands has quit [Read error: Connection reset by peer]
<sevenseacat> above or below :info ?
Musashi007 has joined #ruby
<Oog> in byebug if i do log_console the output is shown
<Oog> but when i step over the line no output
langlands has joined #ruby
postmodern has quit [Quit: Leaving]
<Oog> oh wait i think its i have a variable named method that might be messing stuff up maybe
<Oog> is method word special
tkuchiki_ has joined #ruby
felixr has joined #ruby
doodleha_ has joined #ruby
Yiota has joined #ruby
<Ox0dea> >> method(:method)
<ruboto> Ox0dea # => #<Method: Object(Kernel)#method> (https://eval.in/389732)
senayar has joined #ruby
<Oog> its all fine in console though its just in teh server
<sevenseacat> yay I get to go play with elixir some more
doodleha_ has quit [Read error: Connection reset by peer]
jfarmer has quit [Ping timeout: 255 seconds]
<Oog> even the debugger is messed up in that function
mikecmpbll has joined #ruby
sandstrom has quit [Ping timeout: 252 seconds]
yfeldblu_ has quit [Ping timeout: 248 seconds]
<Oog> i step over the line - no output. then it lands on line 56 where there is no code.....
Scroff has joined #ruby
ta has joined #ruby
<sevenseacat> [15:50:59] sevenseacat:so whats your log level set to?
dumdedum has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
<Oog> :info
jenrzzz has quit [Ping timeout: 265 seconds]
DaniG2k has joined #ruby
<Oog> see that last paste - im after the line where method_names is set and then it says nomethoderror....
allomov has joined #ruby
<sevenseacat> Oog: are you using spring?
<sevenseacat> if so, restart it.
<Oog> no i got rid of it long ago - it causes weird problems like this...
<Oog> gem is commented out
<sevenseacat> that doesnt mean its not running.
<Oog> oh....
<Oog> bangs head not again.... how do i kill it
<Oog> i hate spring
<sevenseacat> spring stop
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ishamo has joined #ruby
hotpancakes has joined #ruby
jfarmer has joined #ruby
<shevy> winter start
rubie has joined #ruby
jzigmund_ has joined #ruby
vondruch__ has joined #ruby
<Oog> ok... it worked this time. let me do some more experiments though... i think the issue is caching it gets in a screwed up state
<Oog> spring is TERRIBLE it has cuases to many weird problems i dont get it
<sevenseacat> aye, I wish it was nuked from orbit.
<Oog> how do i get rid of it
jzigmund has quit [Read error: Connection reset by peer]
<sevenseacat> remove from Gemfile, bundle... theres probably a step to rebuild binstubs if you use binstubs
yfeldblum has joined #ruby
<Oog> i dont think i do
Hounddog has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
<sevenseacat> yeah me either
<sevenseacat> had more problems with them than with spring
vondruch_ has quit [Ping timeout: 252 seconds]
hotpancakes has quit [Ping timeout: 250 seconds]
dseitz has quit [Remote host closed the connection]
ngsw has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
<Oog> wtf it is caching stuff stuff is still cached
ngsw has quit [Read error: Connection reset by peer]
<Oog> what else could be caching. spring is not running
vondruch__ has quit [Ping timeout: 250 seconds]
Scroff has joined #ruby
eGGsha has joined #ruby
ngsw has joined #ruby
doodleha_ has joined #ruby
jzigmund_ has quit [Ping timeout: 272 seconds]
rubie has quit [Ping timeout: 265 seconds]
ngsw has quit [Read error: Connection reset by peer]
dumdedum has quit [Ping timeout: 248 seconds]
jzigmund has joined #ruby
ngsw has joined #ruby
yardenbar has quit [Quit: Leaving]
valkyrka_ has joined #ruby
CamonZ has quit [Read error: Connection reset by peer]
joonty has joined #ruby
yardenbar has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
startupality has joined #ruby
Rollabunna has joined #ruby
chenillen has quit [Quit: chenillen]
doodleha_ has joined #ruby
jenrzzz has joined #ruby
white_bear has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
ishamo has quit [Remote host closed the connection]
<Ox0dea> "There are only two hard problems in computer science: naming things, cache invalidation, and off-by-one errors."
Contigi has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<_mh_> agreecd
tkuchiki_ has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 246 seconds]
emilkarl_ has joined #ruby
n008f4g_ has joined #ruby
doodleha_ has joined #ruby
emilkarl has quit [Ping timeout: 272 seconds]
emilkarl_ is now known as emilkarl
msgodf has quit [Ping timeout: 276 seconds]
einarj has joined #ruby
tkuchiki_ has joined #ruby
skade has joined #ruby
vondruch__ has joined #ruby
iwishiwerearobot has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
eGGsha has joined #ruby
Spami has joined #ruby
dumdedum has joined #ruby
stoodfarback has quit [Ping timeout: 264 seconds]
<kitallis> why does this fail? http://pastie.org/10265705
ngsw has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
timonv has joined #ruby
mister_solo has quit [Ping timeout: 252 seconds]
ngsw has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
<Ox0dea> kitallis: FILE is not a thing in Ruby, but File is.
<sevenseacat> kitallis: did you mean File, not FILE ?
<wnd> mayhaps you shold try File::LOCK_EX
<kitallis> christ
serivich has quit [Ping timeout: 255 seconds]
* kitallis kills self
<kitallis> thx
<Ox0dea> Zombie!
doodleha_ has joined #ruby
<heftig> zombie ghosts
<Ox0dea> >> '2spooky4me'.gsub(/\d/, &:succ)
<ruboto> Ox0dea # => "3spooky5me" (https://eval.in/389760)
Guest85 has joined #ruby
<sevenseacat> cute
<Ox0dea> sevenseacat: You can do &+1 in Elixir, right?
doodleha_ has quit [Read error: Connection reset by peer]
<sevenseacat> ummm something like that
ahmetkapikiran has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
doodleha_ has joined #ruby
<Ox0dea> kitallis: You're calling #flock on two distinct File objects. I suspect that's not what you want.
zacts has joined #ruby
<kitallis> yeah, I fixed that
<kitallis> changed it to http://pastie.org/10265714
DaniG2k has quit [Ping timeout: 265 seconds]
<Ox0dea> Looks good.
<Ox0dea> But you've rekindled my envy of Python's context managers. :/
doodleha_ has quit [Read error: Connection reset by peer]
DaniG2k has joined #ruby
<kitallis> ha, yeah. I recall those.
Xeago has quit [Remote host closed the connection]
platzhirsch has joined #ruby
Xeago has joined #ruby
LiquidInsect has joined #ruby
doodleha_ has joined #ruby
langlands has quit [Ping timeout: 244 seconds]
ngsw has quit [Read error: Connection reset by peer]
chrissonar has joined #ruby
withnale_ has joined #ruby
langlands has joined #ruby
ngsw has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
mister_solo has joined #ruby
_blizzy_ has joined #ruby
Xeago_ has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 272 seconds]
eGGsha has joined #ruby
jaycee has quit [Quit: Textual IRC Client: www.textualapp.com]
emilkarl has quit [Read error: Connection reset by peer]
<shevy> python needs managers?
axl_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<sevenseacat> iex(17)> Regex.replace ~r/(\d)/, "2spooky4me", &(String.to_integer(&1)+1) |> to_string
<sevenseacat> "3spooky5me"
haraoka has quit [Ping timeout: 255 seconds]
<sevenseacat> that took me way too long.
dgutierrez1287 has joined #ruby
terlar has joined #ruby
<sevenseacat> and probably sucks.
<Ox0dea> And we're supposed to mass exodus?!
<sevenseacat> quiet, i'm learning.
<shevy> :>
doodleha_ has joined #ruby
<adaedra> Bonjour
<ddv> quiet peasant
<adaedra> :<
<sevenseacat> its not bad except for the String.to_integer part
JohnBat26 has quit [Read error: Connection reset by peer]
<Ox0dea> In your defense, String#succ is kind of strange.
<Ox0dea> It's at once glorious and god-awful.
emilkarl has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<sevenseacat> String.replace would only accept a binary for the replacement, not a function. so had to go to Regex.replace.
<sevenseacat> which of course has its args in the opposite order.
Xeago has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
ngsw has joined #ruby
einarj has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
marr has joined #ruby
<shevy> adaedra Baguette!
Xeago has joined #ruby
<adaedra> Bon, ça suffit shevy
<shevy> is that a french insult! I learned about them in "The Holy Grail" movie
Scrofff has joined #ruby
pgatt has joined #ruby
<shevy> "King Arthur and his knights embark on a low-budget search for the Grail, encountering many very silly obstacles."
unshadow has quit [Quit: leaving]
Scroff has quit [Ping timeout: 256 seconds]
<ddv> shouldn't you be working shevy
einarj has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
<sphex> bon, shevy calisse, ca va faire la
<shevy> wat
<shevy> that's like unicode, I can't see anything
<shevy> ddv only the poor have to work :) though I have to leave here soon, that is true... I just delay it...
doodleha_ has joined #ruby
<adaedra> sphex: o_O
msgodf has joined #ruby
ngsw has joined #ruby
senayar has quit [Remote host closed the connection]
doodleha_ has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
platzhirsch has joined #ruby
Igorshp has joined #ruby
skade has joined #ruby
einarj has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
<adaedra> shevy: You can't see unicode?
<shevy> wat
<adaedra> This kind of answers my question :)
<yorickpeterse> -===☆ THE MORE YOU KNOW
<yorickpeterse> (っ´ω`)っ
<yorickpeterse> (╯°□°)╯︵ ┻━┻
* yorickpeterse has plenty
Igorshp has quit [Remote host closed the connection]
<adaedra> poor shevy who can't see them
ryba has joined #ruby
<shevy> yeah
<shevy> fix your encoding adaedra
<adaedra> no u
Spami has quit [Quit: This computer has gone to sleep]
<musty> GNU.
<DaniG2k> (ノಠ益ಠ)ノ︵ ┻━┻
<adaedra> shevy: it's readable on public log, if you want to know
<yorickpeterse> Surely you mean GNU/Linux?
einarj has joined #ruby
<shevy> I need no logs
<adaedra> ┬─┬ノ( º _ ºノ) Respect tables
lkba has joined #ruby
<DaniG2k> adaedra: hahaha\
<musty> This is what the ruby community has becometh.
<adaedra> Thanks, Obama.
<DaniG2k> <3
terlar has quit [Quit: WeeChat 1.2]
hotpancakes has joined #ruby
michael_mbp has joined #ruby
<bnagy> *hath become
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> ( •_•) ( •_•)>⌐■-■ (⌐■_■)
<yorickpeterse> ᕕ(ᐛ)ᕗ
ngsw has quit [Read error: Connection reset by peer]
<yorickpeterse> ( ≖_≖)
<yorickpeterse> (っ' ▽' )ノ
<yorickpeterse> <3 plugins
<yorickpeterse> I mean
ngsw has joined #ruby
<yorickpeterse> ♥ plugins
doodleha_ has joined #ruby
<musty> bnagy, thanks naggy.
doodleha_ has quit [Read error: Connection reset by peer]
fabrice31_ has joined #ruby
howdoi has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<howdoi> any easy way to chain: `@book.present? && @book.isbn.present?`
<adaedra> there should be a !yorickpeterse command that throws a random unicode emoticon
<yorickpeterse> :D
khebbie has joined #ruby
LiquidInsect has quit [Ping timeout: 256 seconds]
* howdoi waits in a corner
<ljarvis> howdoi: @book.try(:isbn).present? (assuming since you have present? you have try) but I prefer yours
<shevy> adaedra lol
Rollabunna has joined #ruby
<shevy> !yorickpeterse
<howdoi> ljarvis: I liked yours :)
<shevy> adaedra it's broken
<adaedra> too bad
ta has quit [Remote host closed the connection]
<ljarvis> howdoi: I think it's awful, but ok :)
<howdoi> any reason for your preference?
<howdoi> heh heh cool
<ljarvis> howdoi: I don't think it reads very nicely
fabrice31 has quit [Ping timeout: 256 seconds]
<ljarvis> I would write: @book && @book.isbn.present? or something similar
<howdoi> nice, thanks
<ljarvis> assuming you have AR and @book is a model, you *probably* have an isbn? method too
minmax has quit [Quit: WeeChat 0.4.3]
<yorickpeterse> noice
<yorickpeterse> so I have this code
lkba has quit [Ping timeout: 244 seconds]
<yorickpeterse> and it uses Nokogiri
<yorickpeterse> and leaks memory like a ******
<yorickpeterse> Swap it with Oga, no memory leak
<yorickpeterse> Just takes a bit longer to parse
Rollabunna has quit [Ping timeout: 248 seconds]
<yorickpeterse> well, longer to query xpath/css
<ljarvis> are you saying nokogiri leaks memory? no bro
skade has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> Yes, I've seen it leak a few 100 MB in this instance
<yorickpeterse> but it's libxml so it's webscale
<ljarvis> exactly
<howdoi> ljarvis: not always
doodleha_ has joined #ruby
anisha has joined #ruby
<ljarvis> howdoi: hm?
<adaedra> WEBSCALE
<howdoi> well, the code i'm working on is screwed up
doodleha_ has quit [Read error: Connection reset by peer]
<howdoi> SCALE THE WEB
<yorickpeterse> bear metal
<yorickpeterse> node.js
<yorickpeterse> etc
<ljarvis> bear metal?
<yorickpeterse> Yes, bear metal
<ljarvis> like, a bear made out of metal?
<adaedra> howdoi: lol
<ljarvis> wow photobucket
astrobunny has quit [Remote host closed the connection]
<ljarvis> last time i clicked their links i was like 12
<maloik> yay metal
<yorickpeterse> so like last year?
<ljarvis> hurrrr
<yorickpeterse> ho ho ho
<ljarvis> that's more than half my life ago
<ljarvis> :(
lkba has joined #ruby
riotjones has joined #ruby
<maloik> wait you're not even 24?
<howdoi> ^_^
<ljarvis> ... yes, MORE than half of my life ago
<ljarvis> ya nub
<ljarvis> i realise that is an awful way to say it
<adaedra> aren't we all 12 in here?
<maloik> just checking, maybe you counted years in some weird uk system
<shevy> nothing wrong with being young
<ljarvis> maloik: no we do counting like most places, everything else is unique though
<yorickpeterse> well they do drive on the wrong side of the road and have their own shoe sizes system
<maloik> oh I see
<ljarvis> ^
<maloik> I did think you were older though :)
<adaedra> And mph
<ljarvis> maloik: 26
<yorickpeterse> Everywhere in the EU: "I'm size 42" In the UK: "eh....9,5?"
skade has joined #ruby
<ljarvis> adaedra: kmh is insane
<adaedra> no it's not
<maloik> ooooooh
speakingcode has quit [Ping timeout: 265 seconds]
<maloik> doh
<yorickpeterse> be grateful we don't measure things in inches, stones and feet
doodleha_ has joined #ruby
<ljarvis> what's stupid is that although we often measure weight in stone, if you go to the doctors or a fitness expert, they'll measure it in KG
<ljarvis> sometimes in lbs when you really want a messed up experience
Guest85 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<adaedra> Sounds simple and sensible /s
<ljarvis> and gym weights over here are all KG
<ljarvis> aye
AlexAltea has joined #ruby
<ljarvis> but, we have our own currency. Suck it EU
workmad3 has joined #ruby
<zenspider> scrolls back to see what HOUR ruby was last discussed...
<adaedra> "Your weight is 20kg + 3 stones + 7 lbs"
<maloik> ?offtopic
<ruboto> I don't know anything about offtopic
<maloik> wat
<zenspider> haha
<ljarvis> 7 minutes ago
<yorickpeterse> ljarvis: not a bad idea since the Euro is going to shit
doodleha_ has quit [Read error: Connection reset by peer]
<ljarvis> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse> ssssssh, jhass isn't here
<maloik> I don't even...
<ljarvis> yes he is
<zenspider> maloik: FULL ENGLISH WORDS? and you call yourself a programmer
<ljarvis> !fact add offtopic this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<ruboto> ljarvis, I will remember that offtopic is this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
Pathfinder has joined #ruby
<maloik> zenspider: I would have just made it "o" instead of "ot"
<maloik> I'm all for saving keystrokes, but do it right the first time!
<ljarvis> it should just be ?
<maloik> :D
einarj has quit [Remote host closed the connection]
<yorickpeterse> ?:offtopic
<adaedra> Use your client aliases/keybindings
doodleha_ has joined #ruby
<maloik> I'm using a terminal window connected to irssi on a server with bad encoding
<maloik> what keybindings?
aswen has joined #ruby
<ljarvis> /alias foo bar
<ljarvis> profit
senayar has joined #ruby
senayar has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
Melite has quit [Quit: Leaving]
abuzze_ has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
doodleha_ has joined #ruby
eGGsha has joined #ruby
LiquidInsect has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
startupality has quit [Quit: startupality]
langland_ has joined #ruby
langlands has quit [Ping timeout: 252 seconds]
speakingcode has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
Scroff has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sevenseacat has quit [Quit: Me dun like you no more.]
abuzze has joined #ruby
Scroff has quit [Remote host closed the connection]
nfk has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
oo_ has joined #ruby
Scrofff has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
Scroff has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
Scroff has quit [Remote host closed the connection]
einarj has joined #ruby
aapole has joined #ruby
Scroff has joined #ruby
ngsw has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_joes_ has joined #ruby
iwishiwerearobot has joined #ruby
jimms has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
Pupeno_ has quit [Remote host closed the connection]
jimms has joined #ruby
_joes_ has quit [Remote host closed the connection]
Spami has joined #ruby
irle has joined #ruby
dgutierrez1287 has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
ta has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
AlexAltea has quit [Ping timeout: 255 seconds]
Yiota has joined #ruby
astrobunny has joined #ruby
krz has quit [Read error: Connection reset by peer]
_joes_ has joined #ruby
tesuji has joined #ruby
_joes_ has quit [Quit: Nettalk6 - www.ntalk.de]
skade has quit [Quit: Computer has gone to sleep.]
j4cknewt has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 276 seconds]
_joes_ has joined #ruby
Miphix has joined #ruby
ryba has quit [Ping timeout: 256 seconds]
emilkarl has quit [Quit: emilkarl]
irle has quit [K-Lined]
iwishiwerearobot has quit [Quit: >:(]
GitGud has quit [Ping timeout: 252 seconds]
mcclurmc has joined #ruby
krz has joined #ruby
sdothum has joined #ruby
emilkarl has joined #ruby
emptyflask has joined #ruby
jfarmer has quit []
emilkarl has quit [Client Quit]
yardenbar has joined #ruby
IanV0rn2341 has joined #ruby
mcclurmc has quit [Ping timeout: 255 seconds]
terlar has joined #ruby
emptyflask has quit [Ping timeout: 248 seconds]
stamina has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
Rollabunna has joined #ruby
jimms has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
qiukun has joined #ruby
ahmetkapikiran has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
msgodf has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
msgodf has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
tomaz_b has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
LiquidInsect has quit [Ping timeout: 246 seconds]
niemcu has joined #ruby
Pupeno_ has joined #ruby
skade has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
LiquidInsect has joined #ruby
bayed has joined #ruby
serivich has joined #ruby
Chills-` has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
zacstewart has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
skade has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
Igorshp has joined #ruby
ryba has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
n008f4g_ has quit [Ping timeout: 255 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
zacstewart has quit [Ping timeout: 255 seconds]
Rickmasta has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Scroff has quit [Remote host closed the connection]
startupality has quit [Client Quit]
Chills-` has quit []
startupality has joined #ruby
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
langlands has joined #ruby
psy_ has quit [Ping timeout: 265 seconds]
lkba_ has joined #ruby
atom3_ has joined #ruby
fabrice31_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
Yiota has joined #ruby
eGGsha has joined #ruby
atom3 has quit [Ping timeout: 277 seconds]
langland_ has quit [Ping timeout: 272 seconds]
abuzze has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Scroff has joined #ruby
arup_r has joined #ruby
<Oog> >> method(:reason)
<ruboto> Oog # => undefined method `reason' for class `Object' (NameError) ...check link for more (https://eval.in/389787)
sdothum has joined #ruby
NeverDie has joined #ruby
<Oog> >> method(:method_name)
ngsw has quit [Read error: Connection reset by peer]
<ruboto> Oog # => undefined method `method_name' for class `Object' (NameError) ...check link for more (https://eval.in/389788)
<ljarvis> ?irb
<ruboto> irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
fabrice31 has quit [Remote host closed the connection]
<ljarvis> Oog: please use your local irb unless you have a question and are giving an example to others
<Oog> will do
scripore has joined #ruby
ngsw has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
lxsameer has joined #ruby
<Ox0dea> I wonder why $+, $-, and $^ aren't used.
<Ox0dea> $^ should be Process.uptime, which should exist.
<apeiros> I'm just happy about the fact.
C1V0 has joined #ruby
<Ox0dea> apeiros: It doesn't complicate the parser any?
IanV0rn2341 has quit [Read error: Connection reset by peer]
<apeiros> I don't care much for parser complexity. I care about code readability.
langland_ has joined #ruby
<Ox0dea> But, I mean, look which way the variable is pointing.
<Ox0dea> Says "uptime" to me.
<Ox0dea> :P
<apeiros> -.-
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<adaedra> Keep calm and require English
<apeiros> if people just stopped to use the term "one-way encryption".
bluOxigen has quit [Ping timeout: 255 seconds]
<manveru> but everybody thinks i'm using drugs when i talk about hashing
dgutierrez1287 has joined #ruby
<adaedra> control sums?
<apeiros> then maybe you should put away the drugs before talking about hashing!
langlands has quit [Ping timeout: 264 seconds]
<manveru> hmm i'll try that next time
<adaedra> but yeah, “one way encryption” is stupid
ninja-maid-robot has quit [Quit: fix config]
<bnagy> wow it's manveru
<bnagy> I thought you quit ruby
<manveru> ruby didn't quit me
<apeiros> http://theartandscienceofruby.com/2015/06/29/how-do-i-encrypt-data-in-my-database/ shortened for (currently vapor) jacob: just use :password, :encrypted_text and :encrypted_binary column types.
tvw has quit [Remote host closed the connection]
pyon has joined #ruby
<apeiros> oh, and for :password, tell the users to frequently log in (automatic upgrade of the used hash function happens on login, since the original data is required)
dhjondoh has quit [Remote host closed the connection]
alex88 has joined #ruby
<apeiros> or rather: happens on password verification
giuseppesolinas has joined #ruby
<ljarvis> manveru: o/
dgutierrez1287 has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
<manveru> ljarvis: \o
olistik has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pyon has quit [Client Quit]
oo_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> manveru: how's tricks?
magical-imouto has joined #ruby
<manveru> who's tricks? :P
varunwachaspati has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hunt3r has joined #ruby
<manveru> Not good man, I passed out last night while drinking and got teabagged.
alex88 has quit [Ping timeout: 272 seconds]
<ljarvis> classic
<manveru> otherwise quite fine :)
thelastinuit has joined #ruby
rubie has joined #ruby
rodfersou has joined #ruby
noethics has quit [Ping timeout: 246 seconds]
valkyrka_ has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
krz has quit [Read error: Connection reset by peer]
pgatt has quit [Quit: Connection closed for inactivity]
emilkarl has joined #ruby
lolmaus has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
lolmaus has joined #ruby
GitGud has joined #ruby
Indian has quit [Ping timeout: 248 seconds]
rubie has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
nofxx has quit [Ping timeout: 276 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<manveru> wonder if anyone from seattle.rb gonna be at TI5
bar0n has joined #ruby
krz has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
ndrei has joined #ruby
hotpancakes has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
langlands has joined #ruby
emilkarl has joined #ruby
ngsw has joined #ruby
Aryasam has joined #ruby
langland_ has quit [Ping timeout: 272 seconds]
<manveru> guess i can just go to the meetup on tuesday if that's still a thing
allomov has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
AlexAltea has joined #ruby
qiukun has quit [Quit: qiukun]
zacstewart has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
mandarinkin has joined #ruby
jimms has joined #ruby
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ngsw has joined #ruby
<apeiros> manveru: you're in seattle?
dhjondoh has joined #ruby
<apeiros> oh, dota2
pengin has joined #ruby
<apeiros> watch or participate?
<manveru> yeah, whole city filled with even more nerds than usual :)
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<apeiros> ^^
<manveru> business trip :)
Ropeney has joined #ruby
<apeiros> don't tell me you work for a gaming company
<apeiros> or are you combining business trip with fun?
<manveru> i work for dotabuff
<apeiros> ok, so both
<manveru> yeah
<apeiros> nice
oo_ has quit [Remote host closed the connection]
<manveru> basically our yearly company get-together
<adaedra> this looks offtopic
<adaedra> :p
<manveru> damn
<manveru> he caught us
<apeiros> !ot apeiros
<apeiros> ?ot apeiros
<ruboto> apeiros, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<apeiros> :<
langland_ has joined #ruby
<adaedra> :v
<manveru> since when do we have bots?
sleeper_ has joined #ruby
<manveru> is zenspider retired?
<apeiros> ruboto is the official channel bot
senayar has joined #ruby
senayar has joined #ruby
<apeiros> conundrum has gone the way of the dodo
<apeiros> or at least I have no idea where it is
langlands has quit [Ping timeout: 244 seconds]
<adaedra> mmmmh dodo
yfeldblum has quit [Ping timeout: 248 seconds]
krz has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
krz has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 265 seconds]
dpollen has joined #ruby
<Xeago> what happened to eval-in?
djstorm has joined #ruby
<apeiros> got replaced by ruboto
<apeiros> same code for code evaluation
<Xeago> ok
tkuchiki has quit [Ping timeout: 255 seconds]
GitGud has quit [Ping timeout: 255 seconds]
prestorium has joined #ruby
<manveru> >> self
<ruboto> manveru # => main (https://eval.in/389808)
pengin has quit [Remote host closed the connection]
hahuang65 has joined #ruby
dgutierrez1287 has joined #ruby
sparr has quit [Ping timeout: 272 seconds]
hoelzro has quit [Ping timeout: 272 seconds]
ebbflowgo has quit [Ping timeout: 264 seconds]
Aryasam has quit [Ping timeout: 252 seconds]
hoelzro has joined #ruby
zacstewart has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
atom3_ has quit [Read error: Connection reset by peer]
atom3 has joined #ruby
Scroff has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
LiquidInsect has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
but3k4 has joined #ruby
abuzze has joined #ruby
sleeper_ has left #ruby ["WeeChat 1.1.1"]
lxsameer has quit [Ping timeout: 252 seconds]
dorei has joined #ruby
oo_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
Ox0dea has quit [Ping timeout: 256 seconds]
JohnBat26 has joined #ruby
ruby-lang128 has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
giuseppesolinas has joined #ruby
whiteline has quit [Ping timeout: 246 seconds]
railsraider has joined #ruby
eGGsha has joined #ruby
C1V0 has quit [Ping timeout: 252 seconds]
p1k has quit [Ping timeout: 248 seconds]
C1V0 has joined #ruby
sparr has joined #ruby
benlovell has joined #ruby
qiukun has joined #ruby
SylarRuby has joined #ruby
tvw has joined #ruby
Bertg has joined #ruby
alex88 has joined #ruby
tvw has quit [Client Quit]
LiquidInsect has joined #ruby
tvw has joined #ruby
ruby-lang128 has quit [Ping timeout: 246 seconds]
janno90 has joined #ruby
alex88 has quit [Client Quit]
aapole has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
Igorshp has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
hunt3r has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 265 seconds]
ldnunes has joined #ruby
lxsameer has joined #ruby
oo_ has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
delianides has joined #ruby
Igorshp has joined #ruby
Oog has quit []
govt has joined #ruby
ryez has quit [Ping timeout: 246 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
astrobunny has joined #ruby
oo_ has quit [Remote host closed the connection]
zacstewart has joined #ruby
revath has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
nizmow has quit [Ping timeout: 264 seconds]
jhooker has quit [Ping timeout: 264 seconds]
lucasfs7 has joined #ruby
serivich has quit [Ping timeout: 248 seconds]
mdw has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
symm- has joined #ruby
whiteline has joined #ruby
<dorei> is there a better / more beautiful way to write this? https://gist.github.com/egwspiti/e450588a8585d23e1fa2
nizmow has joined #ruby
sandstrom has joined #ruby
<apeiros> dorei: you're "unstubbing"?
* apeiros wonders whether a refinement does undef
tkuchiki has joined #ruby
<dorei> apeiros: ruby facets is adding #call to Symbol and this causes trouble with some versions of Slop
<workmad3> dorei: wow, what version of ruby are you on where symbol still needs #call monkey patched in? :/
hotpancakes has joined #ruby
startupality has quit [Quit: startupality]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<workmad3> oh wait, symbol has to_proc, not call
<workmad3> ignore me
Indian has joined #ruby
benlovell has joined #ruby
<apeiros> "why monkey patching is bad, episode 217"
qiukun has quit [Quit: qiukun]
<apeiros> dorei: you don't have any threads in your code?
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Voker57 has quit [Read error: Connection reset by peer]
* jhass is really curious about what the "some code" part could be
workmad3 has quit [Quit: leaving]
<apeiros> jhass: they said it - slop
workmad3 has joined #ruby
<adaedra> /ignore workmad3
<apeiros> probably morphs on arg type
<jhass> oh
<workmad3> adaedra: :(
<apeiros> ah, right: "why argument polymorphism is bad, episode 219"
<adaedra> workmad3: eh, you asked it!
Xeago has quit [Remote host closed the connection]
<jhass> "why facets is bad, episode 221"
charliesome has joined #ruby
<workmad3> adaedra: bah
Igorshp has quit [Remote host closed the connection]
<apeiros> jhass: I think we covered that in episode 13 already
<apeiros> early knowledge :D
<jhass> it's a flashback episode
<apeiros> ah
<apeiros> yeah
hotpancakes has quit [Ping timeout: 248 seconds]
roolo_ has joined #ruby
benlovell has quit [Ping timeout: 265 seconds]
roolo has quit [Ping timeout: 276 seconds]
alex88 has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
ngsw has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
charliesome has quit [Ping timeout: 252 seconds]
mister_solo has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
* workmad3 imagines a jhass and apeiros podcast of "Why facets are bad" - 20 minutes of them saying "Facets are bad" in louder and louder voices
Xeago has joined #ruby
<jhass> meh, sounds boring
<jhass> can I write an espeak script for that?
ngsw has joined #ruby
<workmad3> jhass: episode 2 is on automation
ngsw has quit [Read error: Connection reset by peer]
<jhass> ah the cheap "how we made the last one" kind
giuseppesolinas has joined #ruby
ngsw has joined #ruby
C1V0 has quit []
ndrei has quit [Ping timeout: 272 seconds]
jimms has quit [Remote host closed the connection]
xrlabs has joined #ruby
rbennacer has joined #ruby
benlovell has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
ngsw has joined #ruby
rodferso1 has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
ngsw has joined #ruby
dkphenom has joined #ruby
Xeago has quit [Remote host closed the connection]
ngsw has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
senayar has joined #ruby
rodfersou has quit [Ping timeout: 246 seconds]
senayar has quit [Changing host]
senayar has joined #ruby
ndrei has joined #ruby
ngsw has joined #ruby
Xeago has joined #ruby
Scrofff has joined #ruby
bhorn1 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
p1k has joined #ruby
rodferso1 has quit [Quit: leaving]
fabrice31 has joined #ruby
rodfersou has joined #ruby
Scroff has quit [Ping timeout: 272 seconds]
zacstewart has quit [Ping timeout: 276 seconds]
serivich has joined #ruby
astrobunny has quit [Remote host closed the connection]
sgambino has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
zacstewart has joined #ruby
jimms has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eshy has quit [Max SendQ exceeded]
magical-imouto has quit [Quit: fix config]
Igorshp has joined #ruby
intyl has joined #ruby
Indian has quit [Ping timeout: 265 seconds]
ninja-maid-robot has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
ngsw has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
ngsw has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
codecop_ has quit [Remote host closed the connection]
kp666 has quit [Remote host closed the connection]
eshy has joined #ruby
A124 has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
jcromartie has joined #ruby
eGGsha has joined #ruby
michael_mbp has quit [Excess Flood]
but3k4 has quit [Read error: Connection reset by peer]
Papierkorb has joined #ruby
but3k4 has joined #ruby
svoop has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
svoop has quit [Client Quit]
michael_mbp has joined #ruby
konsolebox has quit [Quit: Leaving]
dstarh has joined #ruby
p1k has quit [Quit: Leaving]
aswen has quit [Ping timeout: 252 seconds]
jimms has quit [Remote host closed the connection]
Voker57 has joined #ruby
jlast has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
sankaber has joined #ruby
n008f4g_ has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 256 seconds]
anisha has quit [Ping timeout: 248 seconds]
ngsw has joined #ruby
Rollabunna has joined #ruby
rbennacer has quit [Remote host closed the connection]
serivich has joined #ruby
Yiota has joined #ruby
_blizzy_ has joined #ruby
arup_r has quit [Remote host closed the connection]
zacstewart has joined #ruby
anisha has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bubbys has quit [Ping timeout: 244 seconds]
bubbys has joined #ruby
mahtennek has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
<mahtennek> hi does anybody know how to split this regex till the end?
timonv has joined #ruby
<mahtennek> CS4248[LEC]=1&CS3244[LEC]=1&CS3244[TUT]=4&CS3216[LEC]=1&CS3216[TUT]=2
<mahtennek> i can't seem to get the last few, there are different queries
sankaber has quit [Ping timeout: 256 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
hunt3r has joined #ruby
<jhass> mahtennek: looks like query params, the CGI module should have something to parse them
ebbflowgo has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<mahtennek> jhass: oh they do?
fsvehla has joined #ruby
<ljarvis> >> require 'cgi'; CGI.parse "CS4248[LEC]=1&CS3244[LEC]=1&CS3244[TUT]=4&CS3216[LEC]=1&CS3216[TUT]=2"
<ruboto> ljarvis # => {"CS4248[LEC]"=>["1"], "CS3244[LEC]"=>["1"], "CS3244[TUT]"=>["4"], "CS3216[LEC]"=>["1"], "CS3216[TUT ...check link for more (https://eval.in/389891)
Oka has quit []
sameerynho has joined #ruby
emilkarl has quit [Quit: emilkarl]
charliesome has joined #ruby
delianides has joined #ruby
<mahtennek> ah cgi fixed it
<mahtennek> thanks thanks guys
shredding has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
<shevy> jhass you are the ultimately the guy who broke the +1000 mark on #ruby :>
charliesome has quit [Ping timeout: 264 seconds]
mister_solo has joined #ruby
delianides has quit [Ping timeout: 246 seconds]
<yorickpeterse> now lets get it over 9000
charliesome has joined #ruby
melter has joined #ruby
<ljarvis> we talking about jruby?
hotpancakes has joined #ruby
d1ngell has joined #ruby
d1ngell has quit [Max SendQ exceeded]
griffindy has joined #ruby
arup_r has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Muhannad has quit [Remote host closed the connection]
dpollen has quit [Quit: dpollen]
Rickmasta has joined #ruby
<yorickpeterse> man I hate this weather
<yorickpeterse> Working from home, it's so hot I can't even get on my balcony
<shevy> yorickpeterse hmm I wonder what the channel record is at freenode
<yorickpeterse> my feat will literally burn
<yorickpeterse> shevy: in #ruby-lang I talked the most
<yorickpeterse> go figure
Xeago has quit [Remote host closed the connection]
terlar has joined #ruby
tvb has joined #ruby
<yorickpeterse> I wonder if I can bake an egg on my balcony
* yorickpeterse has no eggs
tvb has left #ruby ["Leaving..."]
<yorickpeterse> my cat isn't even trying to go outside, he's just napping on my bed
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> lol
<shevy> wait
<shevy> aren't you in the netherlands?
troulouliou_dev has quit [Remote host closed the connection]
<shevy> don't you guys have an ocean right before your eyes!
hotpancakes has quit [Ping timeout: 256 seconds]
<lupine> foor(&(-> e { e.bar }))
<yorickpeterse> I live pretty far from the ocean
<lupine> I am insulted that this is valid syntax
victortyau has joined #ruby
<lupine> remember when ruby was beautiful?
<lupine> chunky bacon!
<yorickpeterse> hm, "pretty far" 50 km
lxsameer_ has joined #ruby
dblessing has joined #ruby
<shevy> lupine you also don't like the -> ?
<shevy> & and -> together is quite the ugliness
<shevy> and ruby can't even claim that it took that from perl now can it?
<lupine> it's an incredibly stringing-together of evil
<shevy> :)
<lupine> incredible*
<shevy> there is ruby of the light side
<shevy> and ruby of the dark side
<shevy> yoda and darth vader would have both used ruby
tkuchiki has joined #ruby
a346 has joined #ruby
a346 has quit [Client Quit]
delianides has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 244 seconds]
pothibo has joined #ruby
bullcitydev has joined #ruby
atomical has joined #ruby
charliesome has quit [Quit: zzz]
hahuang65 has joined #ruby
cashnguns has joined #ruby
Bertg has joined #ruby
bullcitydev has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jhooker has joined #ruby
_jesterfraud is now known as jesterfraud
fantasticsid has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
hahuang65 has quit [Ping timeout: 255 seconds]
vdamewood has quit [Quit: Life beckons.]
skade has quit [Quit: Computer has gone to sleep.]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
skade has joined #ruby
Jackneill has joined #ruby
_joes_ has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
rodfersou has quit [Quit: leaving]
ebbflowgo has quit [Read error: Connection reset by peer]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
delianid_ has joined #ruby
ebbflowgo has joined #ruby
arup_r_ has joined #ruby
whippythellama has joined #ruby
aef has quit [Remote host closed the connection]
[k- has joined #ruby
blaines has joined #ruby
[k- is now known as [k-|afk
scripore has quit [Quit: This computer has gone to sleep]
gambl0re has joined #ruby
arup_r has quit [Ping timeout: 276 seconds]
delianides has quit [Ping timeout: 264 seconds]
kfpratt has joined #ruby
blaines_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
fabrice31_ has joined #ruby
fmcgeough has joined #ruby
ta has joined #ruby
but3k4 has joined #ruby
mary5030 has joined #ruby
blaines has quit [Ping timeout: 256 seconds]
ngsw has quit [Read error: Connection reset by peer]
_joes_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
radialneon has joined #ruby
radialneon has quit [Max SendQ exceeded]
krz has joined #ruby
Guest35544 has joined #ruby
mary5030 has joined #ruby
acrux09 has quit [Ping timeout: 255 seconds]
fantasti` has joined #ruby
ngsw has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
fantasti` has quit [Remote host closed the connection]
dhjondoh has quit [Remote host closed the connection]
charliesome has joined #ruby
delianides has joined #ruby
ta has quit [Ping timeout: 246 seconds]
serivich has quit [Quit: Leaving]
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivich has joined #ruby
Bertg has joined #ruby
Guest35544 has quit [Client Quit]
riotjones has quit [Quit: Leaving...]
d1ngell has joined #ruby
jtdoncas has joined #ruby
white_bear has quit [Quit: leaving]
fantasticsid has quit [Ping timeout: 265 seconds]
fantasti` has joined #ruby
white_bear has joined #ruby
jcromartie has joined #ruby
delianid_ has quit [Ping timeout: 248 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Muhannad has joined #ruby
Pathfinder has quit [Ping timeout: 256 seconds]
d1ngell has quit [Client Quit]
Rollabunna has joined #ruby
rbennacer has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
michael_mbp has quit [Excess Flood]
d1ngell has joined #ruby
sevenseacat has joined #ruby
houhoulis has quit [Remote host closed the connection]
Pathfinder has joined #ruby
d1ngell is now known as radialneon
plains has joined #ruby
michael_mbp has joined #ruby
havenwood has joined #ruby
enebo has joined #ruby
charliesome has quit [Quit: zzz]
kfpratt has quit [Remote host closed the connection]
bullcitydev has joined #ruby
fantasti` has quit [Remote host closed the connection]
rubie has joined #ruby
jcromartie has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 248 seconds]
Pathfinder has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
fantasticsid has joined #ruby
kfpratt has joined #ruby
Yiota has joined #ruby
charliesome has joined #ruby
werelivinginthef has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
Dj_TiKo has joined #ruby
eGGsha has joined #ruby
Igorshp has joined #ruby
eGGsha has quit [Max SendQ exceeded]
benlovell has quit [Ping timeout: 264 seconds]
ngsw has quit [Quit: Leaving...]
rubie has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
rodfersou has joined #ruby
emergion has joined #ruby
benlovell has joined #ruby
hinbody has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
Pathfinder has joined #ruby
eGGsha has joined #ruby
<shevy> if only computers could program for us
startupality has joined #ruby
tomaz_b has quit [Ping timeout: 246 seconds]
<xrlabs> they can, you just have to teach them
Pathfinder_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
railsraider_ has joined #ruby
hackeron_ has joined #ruby
tesuji has quit [Ping timeout: 256 seconds]
skade has joined #ruby
matrixise has joined #ruby
Scroff has joined #ruby
karpuragauram has joined #ruby
Pathfinder has quit [Ping timeout: 272 seconds]
railsraider has quit [Ping timeout: 252 seconds]
railsraider_ is now known as railsraider
vivekananda has quit [Ping timeout: 255 seconds]
giuseppesolinas has joined #ruby
hackeron has quit [Ping timeout: 264 seconds]
adaedra is now known as `derpy
`derpy is now known as adaedra
Pathfinder_ is now known as Pathfinder
tkuchiki has joined #ruby
ringarin has quit [Ping timeout: 256 seconds]
paulcsmith has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
jensel has joined #ruby
Scrofff has quit [Ping timeout: 244 seconds]
Scrofff has joined #ruby
emptyflask has joined #ruby
bf4 has joined #ruby
jtdoncas has quit [Ping timeout: 246 seconds]
pothibo has quit [Quit: pothibo]
hotpancakes has joined #ruby
Igorshp has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 276 seconds]
arup_r_ has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 264 seconds]
lxsameer_ has quit [Quit: Leaving]
a346 has joined #ruby
beilabs_ has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
hotpancakes has quit [Ping timeout: 272 seconds]
soulcake has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
<beilabs_> so i've a string with the values "{1=>2015, 2=>6, 3=>12}" - whats the best way for me to get the value of 1, 2, 3
<mahtennek> is there a way i can get a dynamic value from regex? for eg /(variable)/ puts "#{variable}"?
<apeiros> beilabs_: simple answer: use the literal_parser gem to parse the string to a hash and use .keys on the hash
<apeiros> beilabs_: long answer: how do you get that string?
<apeiros> or rather: why do you have that data as a string?
zacstewart has quit [Read error: Connection reset by peer]
<bougyman> mahtennek: yes.
zacstewart has joined #ruby
<beilabs_> apeiros, it's what I'm stuck with in an older system
<apeiros> mahtennek: string.match(regex).captures
<beilabs_> thanks for the tip with the gem
<apeiros> beilabs_: that's not really answering the question :)
<apeiros> (it's equivalent to say "I have it because I have it")
<beilabs_> well, yes it is, it's in a database and I have to extract it.
DaniG2k has joined #ruby
<mahtennek> oh okay cool
<beilabs_> the fact it's in a crap format is besides the point, but thanks for the tip.
michael_mbp has quit [Excess Flood]
<mahtennek> thanks bougyman apeiros
dopie has joined #ruby
last_staff has joined #ruby
victortyau has quit [Ping timeout: 256 seconds]
<mahtennek> oh wait
<mahtennek> but if i am doing like this, when /what is my module for (modules)/i ...
zacstewart has quit [Read error: Connection reset by peer]
<mahtennek> how do i even string.match regex?
zacstewart has joined #ruby
jtdoncas has joined #ruby
SylarRuby has quit []
<apeiros> >> string = "some string"; regex = /([auejvmcie]*/; string.match(regex).captures
<ruboto> apeiros # => /tmp/execpad-2ff5f5ae2dfe/source-2ff5f5ae2dfe:2: end pattern with unmatched parenthesis: /([auejvmci ...check link for more (https://eval.in/389921)
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> >> string = "some string"; regex = /([auejvmcie]*)/; string.match(regex).captures
<ruboto> apeiros # => [""] (https://eval.in/389922)
<apeiros> oh, * matches empty string too… silly
<apeiros> >> string = "some string"; regex = /([auejvmcie]+)/; string.match(regex).captures
<ruboto> apeiros # => ["me"] (https://eval.in/389923)
revath has quit [Ping timeout: 248 seconds]
<bougyman> >> /(?<variable>foo)/ =~ "foobar"; variable
<ruboto> bougyman # => "foo" (https://eval.in/389924)
michael_mbp has joined #ruby
<apeiros> mahtennek: ^ this is how you string.match(regex). you have a string. you call .match on it. you pass it your regex.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> bougyman: you're only allowed to show this if you also list the full restrictions of that feature.
<apeiros> +set of
benlovell has joined #ruby
<bougyman> that's a huge list.
rjno has joined #ruby
<bougyman> summary: don't use it.
tkuchiki has quit [Remote host closed the connection]
victortyau has joined #ruby
<bougyman> but it matches his query.
<mahtennek> wow
<mahtennek> hang on
arturaz has quit [Ping timeout: 252 seconds]
startupality has quit [Quit: startupality]
jtdoncas has quit [Ping timeout: 244 seconds]
kobain has joined #ruby
athos_diddy has quit [Remote host closed the connection]
athos_diddy has joined #ruby
chrissonar has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
axl__ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
CloCkWeRX has joined #ruby
_joes_ has quit [Read error: Connection reset by peer]
fantasticsid has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
_joes_ has joined #ruby
Scrofff has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
symm- has quit [Ping timeout: 264 seconds]
toddperkinz has joined #ruby
terlar has quit [Quit: WeeChat 1.2]
terlar has joined #ruby
andikr has quit [Remote host closed the connection]
ta has joined #ruby
fantasticsid has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has joined #ruby
jensel has quit [Quit: Leaving]
chipotle has joined #ruby
davedev24_ has joined #ruby
cashnguns has quit [Ping timeout: 248 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
kies has joined #ruby
bnobu has joined #ruby
withnale_ has quit [Ping timeout: 276 seconds]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
kfpratt has quit [Ping timeout: 248 seconds]
coderhs has quit [Ping timeout: 255 seconds]
kfpratt has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
coderhs has joined #ruby
CloCkWeRX has joined #ruby
jcromartie has joined #ruby
coderhs has quit [Client Quit]
Rollabunna has joined #ruby
jcromartie has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
Igorshp has joined #ruby
kfpratt has quit [Remote host closed the connection]
dfockler has joined #ruby
decoponio has joined #ruby
IanV0rn2341 has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
toddperkinz has quit [Quit: Textual IRC Client: www.textualapp.com]
Deele has quit [Ping timeout: 256 seconds]
dfockler has quit [Ping timeout: 248 seconds]
_ixti_ has joined #ruby
kfpratt has joined #ruby
jpfuentes2 has joined #ruby
revath has joined #ruby
niemcu has quit [Ping timeout: 252 seconds]
ixti has quit [Ping timeout: 252 seconds]
plains has quit [Ping timeout: 248 seconds]
emptyflask has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 246 seconds]
ruv has joined #ruby
lordkryss has joined #ruby
kfpratt has quit [Remote host closed the connection]
rubie has joined #ruby
Pathfinder has quit [Remote host closed the connection]
denver has joined #ruby
ruv has quit [Client Quit]
Deele has joined #ruby
ruv has joined #ruby
pandaant has joined #ruby
plains has joined #ruby
plains has quit [Changing host]
plains has joined #ruby
tjbiddle has joined #ruby
kfpratt has joined #ruby
<ruv> anyone here try to package traveling ruby with mock?
tacit7 has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
roolo_ has quit [Quit: Leaving...]
Scroff has joined #ruby
govt has quit [Quit: Connection closed for inactivity]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Luun has joined #ruby
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
dudedudeman has joined #ruby
Rollabunna has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
roolo has joined #ruby
sandstrom has joined #ruby
kfpratt has quit [Remote host closed the connection]
aryaching has joined #ruby
jeanlinux has joined #ruby
acke has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
thiagovsk has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
ahmetkapikiran has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
dpollen has joined #ruby
plains has quit [Ping timeout: 264 seconds]
plains has joined #ruby
plains has quit [Changing host]
plains has joined #ruby
kfpratt has joined #ruby
<Luun> does anyone know of a ruby profiler that will work with 1.8.7? I can’t seem to find any
<ljarvis> Luun: that's because you shouldn't be using 1.8.7
<Luun> I know :(
hahuang65 has joined #ruby
msnyon has joined #ruby
<wasamasa> shouldn't be any harder than finding people willing to work with 1.8.7
dgutierrez1287 has joined #ruby
hotpancakes has joined #ruby
<Luun> hah
<ljarvis> Luun: why the version constraint?
<Luun> that’s just what version where I work has been running forever
<Luun> we’re upgrading soon
<Luun> but until them I’m stuck
<ljarvis> interesting, your work are ok with running outdated software huh
ahmetkapikiran has quit [Quit: ahmetkapikiran]
StephenOTT has joined #ruby
gix has quit [Quit: Client exiting]
<Luun> not okay, but just too understaffed to update
<Luun> like I said, we’re updating soon though
<ljarvis> but yeah in all seriousness it's possible there are older profilers that'll work on 1.8.7 but I haven't used that version for a long time so I think you'll have to dig
<Luun> ok, thanks! just wanted to make sure there wasn’t an obvious one I was unaware of
mertcna has joined #ruby
startupality has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
scripore has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
cashnguns has joined #ruby
gix has joined #ruby
rbennacer has quit [Remote host closed the connection]
hunt3r has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
hunt3r has joined #ruby
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby
kfpratt has quit [Remote host closed the connection]
skade has joined #ruby
kfpratt has joined #ruby
juanpablo_ has joined #ruby
CloCkWeRX has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
eggoez has quit [Ping timeout: 252 seconds]
mikecmpb_ has joined #ruby
mertcna has quit [Remote host closed the connection]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Client Quit]
hunt3r has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
eggoez has joined #ruby
jeanlinux has quit [Remote host closed the connection]
presto has joined #ruby
prestorium has quit [Ping timeout: 272 seconds]
snapcase has quit [Quit: leaving]
sharpmachine has joined #ruby
senayar has quit [Remote host closed the connection]
aapole has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
senayar has joined #ruby
njs126 has joined #ruby
snapcase has joined #ruby
dgarstang has joined #ruby
<dgarstang> How can I extract a portion of text from a multiline string in ruby?
jeanlinux has joined #ruby
Alina-malina has joined #ruby
<adaedra> Have a sample?
MyMind has quit [Ping timeout: 256 seconds]
<ljarvis> dgarstang: that's a bit broad, but no different to how you would extract it if it wasn't multiline. Maybe an example would help
<dgarstang> ljarvis: Let's call it a single line then... :)
paulcsmith_ has joined #ruby
chinmay_dd has quit []
<yorickpeterse> God I love AWS
<adaedra> good for you
<yorickpeterse> You disable AlarmNotification on an autoscaling group
senayar_ has joined #ruby
<dgarstang> ljarvis: actually I think I can do it line by line
<yorickpeterse> What does it do? ADD A NEW INSTANCE ANYWAY
<ljarvis> dgarstang: we still need an example
<adaedra> dgarstang: Not Enough Information
msgodf has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
jeanlinu_ has joined #ruby
snockerton has joined #ruby
IanV0rn2341 is now known as IanV0rn2341[away
IanV0rn2341[away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IanV0rn2341 has joined #ruby
Xeago has joined #ruby
terlar has quit [Read error: No route to host]
jeanlinux has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
mahtennek has quit []
<dgarstang> python has re.match and grouping, so I can do stuff like re.match('foo=(.*?)$',str) and extract everything after the = with re.group(1)... has ruby got an equiv?
<Aria> $1 etc.
<Aria> Lots of ways to do it
scripore has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
SubjectiveBias has quit [Quit: leaving]
emptyflask has joined #ruby
El3k0n has joined #ruby
<cj> what's ruby's test framework? Anything like Test::More ?
<Aria> minitest and rspec and many others.
<Aria> You'll find a bit of a lack around TAP support, sadly, but some things support it
<cj> thanks. looks like ingy did a gem called test-more
<cj> in October of 2013... hmm...
El3k0n has quit [Remote host closed the connection]
<Aria> It's not like test frameworks need to change rapidly.
peter_paule has joined #ruby
aamador has joined #ruby
langlands has joined #ruby
jeanlinu_ has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
Scrofff has joined #ruby
freerobby has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
<jhass> dgarstang: I'd usually go for "foo=bar"[/foo=(.+?)/, 1] or "foo=bar"[/(?<=foo=).+?/]
pandaant has quit [Quit: Lost terminal]
sharpmachine has quit [Remote host closed the connection]
houhoulis has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
eGGsha has joined #ruby
rippa has joined #ruby
langland_ has quit [Ping timeout: 256 seconds]
dfockler has joined #ruby
blaines has joined #ruby
DaniG2k has quit [Quit: leaving]
<cj> Aria: yeah, it looks like it works fine in its current state... now to learn how to program a ruby class and instantiate an object! :-)
symm- has joined #ruby
peter_paule has quit [Ping timeout: 248 seconds]
pothibo has joined #ruby
pothibo has quit [Client Quit]
El3k0n has joined #ruby
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
El3k0n_ has joined #ruby
rjno has quit [Remote host closed the connection]
rcvalle has joined #ruby
rjno has joined #ruby
j4d has joined #ruby
bluOxigen has joined #ruby
RobertBirnie has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
khebbie has joined #ruby
Tempesta has quit [Client Quit]
symm-_ has joined #ruby
Cache_Money has joined #ruby
Cache_Money has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
houhoulis has quit [Ping timeout: 248 seconds]
rjno has quit [Ping timeout: 264 seconds]
senayar_ has quit [Remote host closed the connection]
benlovell has quit [Quit: Lost terminal]
El3k0n_ has quit [Remote host closed the connection]
<shevy> txdv lol
shinnya has joined #ruby
senayar has joined #ruby
<shevy> txdv for some strange reason, I always think you reside in Germany
Miphix has quit [Quit: Leaving]
ryba has quit [Ping timeout: 250 seconds]
jlebrech has joined #ruby
phizzbuzz has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
<jlebrech> can I output excon request in json or hash? other than Excon.new(debug: true)
houhoulis has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
paulcsmith_ has quit [Quit: Lingo: www.lingoirc.com]
senayar has quit [Ping timeout: 252 seconds]
l0pher has quit [Quit: Term signal received.]
emilkarl has joined #ruby
Alayde has joined #ruby
momomomomo has joined #ruby
jeanlinux has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has quit [Client Quit]
casadei_ has joined #ruby
Spami has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
benlieb_ has joined #ruby
hotpancakes has joined #ruby
snockerton has quit [Quit: Leaving.]
rbennacer has joined #ruby
rjno has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
towski_ has joined #ruby
paulcsmith has joined #ruby
rbennacer has quit [Remote host closed the connection]
Yiota has joined #ruby
sharpmachine has joined #ruby
psy_ has joined #ruby
paulcsmith has quit [Client Quit]
snockerton has joined #ruby
scripore has joined #ruby
bronson has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 256 seconds]
houhoulis has quit [Ping timeout: 255 seconds]
joonty has quit [Quit: joonty]
acke has joined #ruby
ralku has joined #ruby
xrlabs has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
stan has quit [Ping timeout: 246 seconds]
emergion has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
umgrosscol has joined #ruby
Igorshp has joined #ruby
xrlabs has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
[k-|afk has quit [Quit: Lingo: www.lingoirc.com]
baweaver has joined #ruby
rjno has quit [Remote host closed the connection]
Izud has joined #ruby
findaway has joined #ruby
<Izud> Hello
<Izud> Anyone here
<havenwood> Izud: hi
griffindy has joined #ruby
slumos is now known as slumos[away]
joshbamboo1 has joined #ruby
slumos[away] is now known as slumos
MatthewsFace has quit [Remote host closed the connection]
slumos is now known as slumos[away]
slumos[away] is now known as slumos
Xeago has quit [Read error: Connection reset by peer]
<jhass> apeiros: I forgot, who did we decide is anyone? me right?
chouhoulis has joined #ruby
<apeiros> jhass: I think so
momomomomo has quit [Quit: momomomomo]
<apeiros> I'm nobody
<apeiros> don't remember who somebody was
<apeiros> wait, no, you're anybody
solars has quit [Ping timeout: 256 seconds]
<apeiros> no clue who's anyone
<jhass> ah, mh
houhoulis has joined #ruby
n008f4g_ has joined #ruby
WildBamboo-Josh has joined #ruby
<shevy> I am anyone
revath has quit [Quit: Leaving.]
penzur has joined #ruby
darkf has quit [Quit: Leaving]
revath has joined #ruby
griffindy has quit [Ping timeout: 244 seconds]
<Aria> I'm nobody.
joshbamboo2 has quit [Ping timeout: 252 seconds]
<Aria> After all, nobody's perfect. ;-)
<jhass> but anyone usually know's X with X being whatever
<shevy> Aria is perfect
joshbamboo1 has quit [Ping timeout: 244 seconds]
<jhass> Izud: so, what's up?
zendrix has joined #ruby
symm-_ is now known as symm-
mister_solo has quit [Ping timeout: 252 seconds]
<Izud> Havenwood: Hello
chouhoulis has quit [Ping timeout: 276 seconds]
DexterLB has quit [Quit: So long and thanks for all the fish]
<Izud> Very good jhass
momomomomo has joined #ruby
<Izud> Quite new here
<Izud> Oblivious of the syntax to mention a user ;)
griffindy has joined #ruby
DexterLB has joined #ruby
rjno has joined #ruby
keen___________7 has joined #ruby
<jhass> it's a client feature, most trigger it if the nick appears anywhere
alex88 has quit []
<jhass> and if you got a sane client you should have nick tab completion anywhere
CloCkWeRX has quit [Quit: Leaving.]
towski_ has quit [Remote host closed the connection]
keen___________6 has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
paulcsmith has joined #ruby
railsraider has quit [Quit: railsraider]
acke has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
atomi has quit [Quit: brb]
findaway has quit [Read error: Connection reset by peer]
<Izud> which client do u use?
<jhass> weechat
<Izud> I'm using xchat
<Izud> ok
<Izud> on pc?
<jhass> sure
tjbiddle has quit [Quit: tjbiddle]
sandstrom has quit [Quit: My computer has gone to sleep.]
<Izud> ok...checking it out now
railsraider has joined #ruby
anisha has quit [Quit: Leaving]
revath has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
Zai00 has quit [Quit: Zai00]
revath has joined #ruby
a346 has quit [Quit: a346]
WildBamboo-Josh has quit [Read error: Connection reset by peer]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
Bertg has quit [Ping timeout: 244 seconds]
pengin has joined #ruby
WildBamboo-Josh has joined #ruby
alex88 has joined #ruby
rbennacer has joined #ruby
WildBamboo-Josh has quit [Read error: Connection reset by peer]
alex88 has quit [Changing host]
alex88 has joined #ruby
ralku is now known as ralku[away]
acke has joined #ruby
alex88 has quit [Client Quit]
presto has quit [Ping timeout: 244 seconds]
cashnguns has quit [Ping timeout: 244 seconds]
dopie has quit [Quit: This computer has gone to sleep]
WildBamboo-Josh has joined #ruby
senayar has joined #ruby
keen___________7 has quit [Read error: Connection reset by peer]
djstorm has quit [Ping timeout: 246 seconds]
aapole has quit [Ping timeout: 256 seconds]
railsraider has quit [Quit: railsraider]
Bertg has joined #ruby
emilkarl has quit [Quit: emilkarl]
mikecmpb_ has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
sarkyniin has joined #ruby
<Izud> has anyone here tried out octopress 3?
hotpancakes has quit [Remote host closed the connection]
ivanskie has joined #ruby
senayar has quit [Remote host closed the connection]
keen___________7 has joined #ruby
konsolebox has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k3asd` has quit [Ping timeout: 264 seconds]
findaway has joined #ruby
sandstrom has joined #ruby
dopie has joined #ruby
<Izud> #rails
revath has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
revath has joined #ruby
pengin has quit [Remote host closed the connection]
fantazo has joined #ruby
Agoldfish has joined #ruby
pengin has joined #ruby
bullcitydev has joined #ruby
<Senjai> Morning ruby
<Senjai> ?use Izud
<ruboto> Izud, Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
metaphage has joined #ruby
metaphage has left #ruby [#ruby]
ralku[away] is now known as ralku
rjno has quit [Remote host closed the connection]
mdw has joined #ruby
<adaedra> ?hello Senjai
<ruboto> Senjai, I don't know anything about hello
[H]unt3r has joined #ruby
poguez_ has joined #ruby
<Senjai> ^ Dat be a bug
hotpancakes has joined #ruby
towski_ has joined #ruby
<Izud> ?okay ruboto
<ruboto> ruboto, I don't know anything about okay
Hobogrammer has quit [Read error: Connection reset by peer]
<jhass> Senjai: idk how!
oo_ has quit [Remote host closed the connection]
<Izud> i'm having issues with octopress 3 when i create a Gemfile and run jekyll serve i get series of errors
IanV0rn2341 is now known as IanV0rn2341[away
IanV0rn2341[away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
soulcake has quit [Quit: Quack.]
hahuang65 has joined #ruby
djstorm has joined #ruby
khebbie has joined #ruby
aryaching_ has joined #ruby
bakednotfried has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
railsraider has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Hounddog has quit [Remote host closed the connection]
balazs has joined #ruby
<jhass> Izud: post them to gist
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Indian has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
findaway has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
konsolebox has quit [Quit: Leaving]
presto has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
momomomomo_ has joined #ruby
balazs has quit [Ping timeout: 248 seconds]
jespada has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
atom3 has quit [Ping timeout: 276 seconds]
gamename has joined #ruby
khebbie_ has joined #ruby
atom3 has joined #ruby
CustosLimen has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
j4cknewt has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
xrlabs has quit [Quit: This computer has gone to sleep]
khebbie has quit [Ping timeout: 264 seconds]
<ruboto> https://gist.github.com/kinsomicrote/b4b5e2531aebac5d8c2a, I don't know anything about jhass
<ruboto> I don't know anything about https
NeverDie has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
momomomomo has quit [Client Quit]
langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DexterLB has quit [Read error: Connection reset by peer]
<jhass> Izud: what's up with triggering the bot?
<jhass> Izud: that seems to only be a warning, do you get an error too?
khebbie_ has quit [Ping timeout: 255 seconds]
snockerton has quit [Quit: Leaving.]
dkphenom has joined #ruby
sharpmachine has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 248 seconds]
<Izud> jhass yea...a load error
jlebrech has quit [Remote host closed the connection]
<Izud> check the comment of the gist
Igorshp has quit [Remote host closed the connection]
<jhass> so you have a Gemfile? try prepending bundle exec to whatever you run
bronson has joined #ruby
roolo_ has joined #ruby
snockerton has joined #ruby
DexterLB has joined #ruby
<Izud> Okay, would try that...gotta rush out now
Spami has joined #ruby
roolo has quit [Ping timeout: 246 seconds]
Izud has quit [Quit: Leaving]
jschoolcraft has quit [Quit: peace]
djbkd has joined #ruby
sharpmachine has joined #ruby
terlar has joined #ruby
towski_ has quit [Remote host closed the connection]
cmisenas has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
ralku has left #ruby ["Textual IRC Client: www.textualapp.com"]
Pwnna has joined #ruby
ralku has joined #ruby
gauke has joined #ruby
Guest93067 has quit []
hunt3r has joined #ruby
havenwood has joined #ruby
penzur has quit [Quit: Leaving]
aphprentice has joined #ruby
t_ has quit [Remote host closed the connection]
<Pwnna> is there a way to get pwd if pwd is supposed to be in a symlink?
last_staff has joined #ruby
jpfuentes2 has joined #ruby
<Pwnna> like: mkdir abc; ln -s abc abclinked; cd abclinked; ruby show_pwd.rb => should show abclinked rather than just abc?
terlar has quit [Client Quit]
presto has quit [Ping timeout: 256 seconds]
denver has quit [Ping timeout: 252 seconds]
finisherr has joined #ruby
doertedev has quit [Quit: Lost terminal]
yaw has joined #ruby
hunt3r has quit [Ping timeout: 252 seconds]
t_ has joined #ruby
rjno has joined #ruby
troulouliou_dev has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> mmh, doesn't look like it, I wonder if it's resolved at OS level already
thiagovsk has quit [Quit: Connection closed for inactivity]
yaw has left #ruby [#ruby]
<Pwnna> i don't think so
<Pwnna> /proc/$$/cwd show the original directory
<Pwnna> shell is doing something strange but idk if there is a way to replicate it.
dopie has quit [Quit: Leaving]
<jhass> well, I couldn't find an API so you just answered yourself
<Pwnna> well but shell does it
dopie has joined #ruby
<Pwnna> cd abclinked; pwd => abclinked
<jhass> File.read("/proc/self/read")
Scrofff has quit [Remote host closed the connection]
djellemah_ has joined #ruby
<Pwnna> if you read the link for /proc/self/cwd it points to the original directory..
MatthewsFace has joined #ruby
chouhoulis has joined #ruby
<jhass> er, right
<jhass> mmh, ENV["PWD"] I guess
<Pwnna> hmm
<Pwnna> interesting
<jhass> yap, that overrides it
snockerton has quit [Quit: Leaving.]
<Pwnna> hmmmm
<Pwnna> but is that only when you start it from shell?
<jhass> if you launch a subshell after unsetting it the shells loose it too
rdaviesDG has joined #ruby
snockerton has joined #ruby
djellemah has quit [Ping timeout: 256 seconds]
spider-mario has joined #ruby
<Pwnna> hmm i'm actually runnint my original service via running.. let me check if it overrides PWD
<Pwnna> thanks jhass that was super helpful :)
radialneon has quit [Ping timeout: 265 seconds]
findaway has joined #ruby
startupality has quit [Quit: startupality]
chouhoulis has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
<jhass> well, all that said relying on something like that surely sounds fishy ;)
<jhass> I mean the general idea that what's returned makes a difference at all
pengin has quit [Remote host closed the connection]
rdaviesDG has left #ruby [#ruby]
rdaviesDG has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Pwnna> well my problem is I will do a Dir.chdir(...) { ... }
<Pwnna> but sometimes when that call returns...
<Pwnna> the original directory might be removed, because a new version replaced it via symlink.
<Pwnna> so like /opt/program still points to /opt/program-1.2
<Pwnna> but the original program might be /opt/program-1.1
RegulationD has joined #ruby
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
lkba has joined #ruby
<jhass> I don't quite follow why that's a problem, in fact my intuition would be that that's desired, I was invoked when it pointed to 1.2, so I should continue working with that
emptyflask has quit [Remote host closed the connection]
wallerdev has joined #ruby
olistik has quit [Remote host closed the connection]
<Pwnna> no so the original program-1.1 is invoked. during a long running operation in a chdir block, program-1.1 is deleted and replaced with program-1.2
pdoherty has joined #ruby
olistik has joined #ruby
<Pwnna> the long running operation is done, it tries to change back to program-1.1's directory, it doesn't work.
lkba_ has quit [Ping timeout: 252 seconds]
<jhass> so you have /opt/program hardcoded and want to detect the change?
<jhass> oh
<Pwnna> no i just don't want it to chdir into an invalid directory.
findaway has quit [Ping timeout: 265 seconds]
<Pwnna> i also don't think it should stay in the directory it changed to, although i'm not sure if there's any adverse effect.
bnobu has joined #ruby
<Pwnna> maybe i'll just have it stay there
benlieb_ has quit [Quit: benlieb_]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<jhass> mmh, I wonder if you could use a file lock to prevent it from being removed
Rollabunna has quit [Quit: Leaving...]
Rollabunna has joined #ruby
<Pwnna> well i think that's too complicated
<Pwnna> i think the easiest is if the chdir is permanent
benlieb_ has joined #ruby
<Pwnna> so i take that out of a block
postmodern has joined #ruby
<Pwnna> so the script will execute in the new directory location
<Pwnna> and don't return to its roots
aryaching_ has quit [Ping timeout: 252 seconds]
qhartman has quit [Quit: Ex-Chat]
<Pwnna> eventually the script will die, and it will be respawned by runit with the new version, so all is good.
emptyflask has joined #ruby
<jhass> well, if that's an option, it's certainly the simplest one
<Pwnna> yeah
<Pwnna> it is
<Pwnna> i just realized
<Pwnna> thanks for all the help :)
drewo has joined #ruby
air_ has joined #ruby
sharpmachine has quit [Ping timeout: 256 seconds]
aneesh_ has joined #ruby
aneesh_ has quit [Client Quit]
sharpmachine has joined #ruby
<air_> how can a student participate in ruby open source devlopment
<air_> ?
<rdaviesDG> air_, github issues!
bricker has joined #ruby
chipotle has quit [Excess Flood]
<havenwood> air_: Know any Ruby already or just starting learning it?
dumdedum has quit [Ping timeout: 264 seconds]
<air_> how can one know which project he have to contribute?
Xeago has joined #ruby
<air_> know little ruby
<havenwood> air_: Non-technical contributions are valuable as well.
<havenwood> air_: nice
<air_> means?
rdark has quit [Quit: leaving]
<air_> non-technical what?
crazydiamond has joined #ruby
chipotle has joined #ruby
delianides has quit [Read error: Connection reset by peer]
<havenwood> air_: Fixing typos or grammar mistakes in documentation. Improving readme's and wikis. Providing graphics for branding.
rbennacer has quit [Remote host closed the connection]
<rdaviesDG> also juggling is useful
<air_> link?
<havenwood> air_: I'd suggest picking a tool you're interested in and taking a while to study its code. Then review all the issues and pull requests and see if there's anything you can contribute. Or any places you can improve documentation, examples, formatting, etc along the way.
casadei_ has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
rjno has quit [Remote host closed the connection]
<havenwood> air_: For example, Ruby's documentation could always use some love!: http://documenting-ruby.org/
chipotle has quit [Ping timeout: 246 seconds]
<havenwood> air_: As they say ^: Writing documentation is a gentle, but effective introduction to contributing to open source
<havenwood> air_: And it's a valuable contribution!
<jhass> With larger issue trackers pointing out duplicates or old issues that can't be solved anymore due to changes in the project and stuff like that can be useful too
pengin has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
presto has joined #ruby
intyl has quit [Ping timeout: 252 seconds]
intyl has joined #ruby
ralku has quit [Quit: Textual IRC Client: www.textualapp.com]
platzhirsch has left #ruby [#ruby]
rjno has joined #ruby
renderful has joined #ruby
discr33t__ has joined #ruby
konsolebox has joined #ruby
anjen has joined #ruby
chipotle has joined #ruby
<air_> how it will help to student?
<sphex> I sure wish ruby had a set of man pages that succinctly described the language. perl 4 had an awesome manpage that described almost the whole language.
<discr33t__> i'm fairly new to ruby and having trouble getting some code to work. i'm trying to get the output as a single array but i keep getting 3 individual arrays. can anyone help point me in the right direction? http://pastie.org/10266634
lsmola has quit [Ping timeout: 265 seconds]
emptyflask has quit []
<jhass> air_: if it's not obvious and fun to you, then there's no point. Move on to something that motivates you
towski_ has joined #ruby
<postmodern> is there anyway to have warden store the session in the database, so it hard-expires at logout time?
<jhass> discr33t__: start by properly indenting your code so you're not confused about its structure
<air_> no its fun, how does it will help me in future
anjen has quit [Client Quit]
<jhass> air_: it can bring you some reputation, but that shouldn't be your goal IMO. Your goal should be having fun. Now.
jobewan has joined #ruby
<air_> yeah
iateadonut has left #ruby [#ruby]
Wolland has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<jhass> discr33t__: apart from that I'm not sure I understand your question, could you elaborate?
roolo_ has quit [Remote host closed the connection]
symbol has joined #ruby
konsolebox has quit [Remote host closed the connection]
delianides has joined #ruby
<discr33t__> jhass: what i am trying to do is execute the postgres command to tell me the version that is installed. we have some hosts that have more than one version of postgres installed which is why i have doing the Dir.glob, to get an array of all paths to the postgres command
rjno has quit []
<discr33t__> jhass: i'm iterating over that array to run the command for each installed version, which is unfortunately giving me 3 separate arrays. i'm trying to turn that into a single array with multiple objects
casadei_ has joined #ruby
white_bear has quit [Quit: leaving]
athos_diddy has quit []
momomomomo has joined #ruby
senayar has joined #ruby
<jhass> well, you don't collect anything in your example code, you simply iterate and print a bit
konsolebox has joined #ruby
<jhass> or well, even the printing code is commented so you're not doing anything really
bullcitydev has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
<jhass> so still not sure what your goal is
hotpancakes has quit [Remote host closed the connection]
jespada has quit [Quit: WeeChat 1.1.1]
chouhoulis has joined #ruby
<jhass> if I had to take a wild guess, I'd say you want Array#map
_blizzy_ has quit [Ping timeout: 248 seconds]
dgarstang has quit [Ping timeout: 252 seconds]
<jhass> but given I have no idea about your goal, I can't predict if it's anywhere near the best tool for it
wildroman2 has quit [Remote host closed the connection]
konsolebox has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<discr33t__> jhass: this is going to become a puppet fact for postgres installed version. i'm just trying to work out the code that gives me the correctly formatted output. i'm uncommenting the puts statements as needed to check the output
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
<jhass> discr33t__: btw foo = bar.sub(/.../, '\1') is a bit silly, just foo = bar[/.../, 1]
micmus has quit [Ping timeout: 246 seconds]
atomical has joined #ruby
dgutierrez1287 has joined #ruby
jesterfraud has quit [Read error: Connection reset by peer]
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<discr33t__> jhass: ok, i'll make that change for the regex
presto is now known as prestorium
phutchins1 has joined #ruby
rubie has joined #ruby
bnobu has joined #ruby
noethics has joined #ruby
einarj has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
phutchins has quit [Ping timeout: 276 seconds]
cashnguns has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical_ has joined #ruby
atomical has quit [Read error: Connection reset by peer]
howdoi has quit [Quit: Connection closed for inactivity]
symbol has quit [Quit: WeeChat 1.1]
_blizzy_ has joined #ruby
lkba_ has joined #ruby
railsraider has quit [Quit: railsraider]
shadoi has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
rubie has quit [Ping timeout: 265 seconds]
gizmore has joined #ruby
mcclurmc has joined #ruby
bnobu has quit [Ping timeout: 256 seconds]
bf4 has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
casadei_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 276 seconds]
hunt3r has joined #ruby
phutchins2 has joined #ruby
Cork has quit [Quit: .]
SCHAAP137 has joined #ruby
<shevy> hmm
<shevy> if someone else defines: module Configuration
<shevy> hmmmm
bar0n has quit [Ping timeout: 246 seconds]
<shevy> then I can no longer do
<shevy> class Configuration; end # TypeError: Configuration is not a class
<shevy> is there a way to clear the earlier defined module?
jeanlinu_ has joined #ruby
<jhass> const_remove
<jhass> but!
zacstewart has quit [Ping timeout: 250 seconds]
Channel6 has quit [Quit: Leaving]
<shevy> ah yes
<jhass> if you have a library which does that at the toplevel that's enough reason to ditch it
<shevy> Object.send :remove_const, :Configuration
phutchins1 has quit [Ping timeout: 244 seconds]
kfpratt has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
<havenwood> shevy: Shevy::Configuration and Chevy::Configuration
phutchins has joined #ruby
<shevy> well, the problem is that another namespace can get blocked; so in my code, I can not differ between who originated any given module or class
<shevy> so in my code I could modify module Foo, but it may have been defined by someone else
<Senjai> shevy: If you have to remove an earlier module, you're doing it wrong
chouhoulis has quit [Remote host closed the connection]
<Senjai> shevy: Instead, write your code so you dont have to run into this scenario
<shevy> and I can do this how when I use the same name?
<Senjai> Namespaces
chouhoulis has joined #ruby
<Senjai> Solving naming problems since forever
<shevy> yes, we have the same name. Now what?
<Senjai> Same namespace?
<shevy> yes
<Senjai> What are you writing?
zendrix has quit [Remote host closed the connection]
<shevy> it does not matter
<Senjai> It does, do you control both namespaces?
<Senjai> If you dont, then your shit is simply incompatible with other shit. If you do, don't write your code so that there's a conflict
<shevy> of course not; I don't control namespaces defined and used by others/external code; see how RbConfig got added, it was called Config in the past wasn't it?
<Senjai> Either way, removing a module is bound to break something else
<Senjai> Dont remove other peoples stuff, just fail
Cork has joined #ruby
<shevy> Don't clog up namespaces perhaps?
hunt3r has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
<Senjai> Or use a namespace that is unique
phutchins2 has quit [Ping timeout: 256 seconds]
<shevy> Don't use my namespace?
kfpratt has joined #ruby
<Senjai> What namespace
<shevy> it does not matter!
<Senjai> are you using something like Application
<Senjai> because that's just silly
<shevy> cool argument
<Senjai> GemName:: is fine
<shevy> is ApplIcation better?
<Senjai> No
<Senjai> I'm saying if your using something so generic that its running into problems like that...
<jhass> or if you use stuff that does use something such generic
casadei_ has joined #ruby
<jhass> simply don't use it
<Senjai> ^
Juanchito has quit [Quit: Connection closed for inactivity]
<Senjai> Just fail
<Senjai> its not your job
<Senjai> Cause an error
<Senjai> and fail
<Senjai> if you're actually using a unique namespace
<shevy> unique
<Senjai> You still havent told me what it is
atomi has joined #ruby
<shevy> does it matter?
<Senjai> It's probably Configuration:: or something
<shevy> pick any name
IanV0rn2341 has joined #ruby
<Senjai> I guarentee nobody is using OmgAwesomeGemNamespaceZeroOhOne
<shevy> let's say a namespace called Bundler
<Senjai> Use that
<Senjai> Fixed forever
<shevy> I want to bundle some gems together
<jhass> shevy: do you expect to be able to upload a gem called bundler?
<shevy> jhass I want to!
<Senjai> Bundler is a canonical ruby paradigm. It's a bread and butter tool.
<jhass> shevy: that's not answering my question
<havenwood> shevy: ah, looks like the "bundler" gem name is already taken!
<shevy> jhass I expect that I can use non-ruby internal constants in any way I want to use them
<Senjai> Lol
<Senjai> k
<Senjai> Dont ever include another library
<Senjai> and you'll be fine
<jhass> shevy: still not answering my question
<jhass> actually actively evading it
<shevy> jhass sure it is answered
<jhass> no
<jhass> it's simple
discr33t__ has quit [Quit: Page closed]
<Senjai> jhass: He/she has been evading every single quetsion
<jhass> do you expect to be able to upload a gem called bundler?
<jhass> yes, no
<Senjai> What namespace? "Does it matter?":
railsraider has joined #ruby
mary5030 has joined #ruby
<shevy> Senjai I have answered it precisely; see above, Bundler
bf4 has joined #ruby
<Senjai> shevy: Oh, so your adding stuff to Bundler::
<jhass> Senjai: I know, the trick is to just be fundamentalistic, if you move on they thing they won
<Senjai> Name your gem better
workmad3 has quit [Ping timeout: 276 seconds]
<jhass> *think, even
<shevy> jhass I expect to be able to use my gems in any way I see fit <--- that was the answer
<shevy> Senjai my names are perfect
jeanlinu_ has quit [Remote host closed the connection]
<Senjai> Okay , so fork bundler
<jhass> shevy: nope, I refuse that answer
<Senjai> Next question?
<shevy> what for? why should I fork bundler?
mary5030 has quit [Remote host closed the connection]
<jhass> do you expect to be able to upload a gem called bundler? Valid answers: yes, no
<Senjai> shevy: Because you want to use a namespace that has been taken by a library you're already using
atomi has quit [Client Quit]
<shevy> jhass I expect to use every gem that I want to use in every way I want to see it <- valid answer
<shevy> Senjai I have no control over what other people do in their code now, have Iß
mary5030 has joined #ruby
<jhass> shevy: no, that's completely evading my quesiton
<Senjai> shevy: Sure you do, fork it
<Senjai> then you have control
<shevy> jhass the question was answered
<jhass> shevy: no
<shevy> Senjai why should I fork the project of someone else? how does that make sense?
<Senjai> jhass: Can we just +q him for a day?
<shevy> Senjai can you please stop abuse?
<Senjai> This has devolved to trolling
<jhass> Senjai: just /ignore if you're fed up
<shevy> Senjai stop trolling?
atomi has joined #ruby
dgarstang has joined #ruby
hotpancakes has joined #ruby
dgarstang has quit [Client Quit]
phutchins1 has joined #ruby
allomov has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
benlieb_ has quit [Quit: benlieb_]
bking39116 has joined #ruby
dpollen has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 256 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
hahuang65 has joined #ruby
IanV0rn2341 has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
bf4 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
bking39116 has left #ruby [#ruby]
djbkd has joined #ruby
El3k0n has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
sharpmachine has quit [Remote host closed the connection]
mcclurmc has joined #ruby
Zai00 has joined #ruby
sharpmachine has joined #ruby
multi_io has quit [Read error: Connection reset by peer]
centrx has joined #ruby
<eam> shevy: this is part of why I think Ruby oughten't have both module and class
Zai00 has quit [Client Quit]
allomov has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
<eam> it's super obnoxious needing to know which type of element a namespace field is
<shevy> eam yeah that too, I'd love to just extend it without that error
<eam> btw, if you want you can simply change the constant
bf4 has joined #ruby
<havenwood> shevy: clojure namespace includes the author so you don't quite have to be so creative with coming up with your own name :P
ruv has quit [Remote host closed the connection]
<havenwood> shevy: for example: org.shevy/bundler.namespace
<shevy> well it's indeed not so simple because I actually can not modify namespaces too easily like in the above example
<havenwood> shevy: TL;DR: Don't use an existing namespace.
<shevy> since my changes will also feedback in a global way, and may affect other code; so whoever is the first to define a namespace/constant, sort of wins
<eam> ruby is also very non-hierarchical in its module structure. I suspect part of why is this issue
<shevy> havenwood interesting
bking39116 has joined #ruby
bffff_ has joined #ruby
<shevy> havenwood that means one could have the "same" name, but clojure would still know that it might be different? since these are not by the same author?
<havenwood> shevy: You could say use `Shevy::Bundler` for a similar effect.
<havenwood> shevy: Or: ShevyBundler
<havenwood> shevy: But yeah, by convention.
fabrice31 has joined #ruby
<shevy> true, I could make a Shevy namespace in Bundler
cmisenas has quit [Ping timeout: 256 seconds]
<havenwood> shevy: Don't share top level namespaces with other tools. :)
<Senjai> ^
<Senjai> What we've been trying to say forever :P
<shevy> nope
zacstewart has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
<shevy> that means I have to accept what others decide onto me
nertzy has joined #ruby
multi_io has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
djbkd has joined #ruby
<eam> just hang it off Object
bonhoeffer has joined #ruby
<shevy> hehe
<eam> no one does that; unlikely to conflict
<shevy> I once wanted to define my own objects for a MUD in ruby; I ended up calling it MudObject instead :\
<bonhoeffer> what am i missing here: foo.gsub(/(.*?)\-(.*?)\-(.*?)/) {"$3/$2/$1"}
<bonhoeffer> i have the match data all wrong . . .
<eam> bonhoeffer: sample input?
<bonhoeffer> one sec
Igorshp has joined #ruby
<bonhoeffer> "2013-03-12".gsub(/(.*?)\-(.*?)\-(.*?)/) {"\3/\2/\1"} -> want 3/12/2013
Soda has joined #ruby
fabrice31 has quit [Ping timeout: 248 seconds]
benlieb_ has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dpollen has joined #ruby
<Senjai> bonhoeffer: Have you tried using rubular.com
workmad3 has joined #ruby
<bonhoeffer> oh yeah — the regex works
<bonhoeffer> but not in gsub
<eam> >> "2013-03-12".gsub(/(\d+)-(\d+)-(\d+)/) {"#{$3}/#{$2}/#{$1}"}
<ruboto> eam # => "12/03/2013" (https://eval.in/390001)
benlieb_ has quit [Client Quit]
symm- has quit [Read error: Connection reset by peer]
<bonhoeffer> hmm . . .
symm- has joined #ruby
dpollen has quit [Client Quit]
<bonhoeffer> wow - eam nice — thanks
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<eam> avoid .*? for a more explicit pattern whenever you can, it's much more efficient
zendrix has joined #ruby
benlieb_ has joined #ruby
Marisa has joined #ruby
bking39116 has quit [Quit: bking39116]
<bougyman> oniguruma optimizes it doesn't it, eam?
<Senjai> You could also run a match and use the match data object to avoid using globals.
erts has joined #ruby
benlieb_ has quit [Client Quit]
<eam> no, .*? is always going to be more expensive than \d+ in that example
<Senjai> and build a new astring instead
<eam> bougyman: because it has to traverse the entire input starting with the maximum match (all of the string) and then find each consecutively smaller match until it can't get smaller
fantazo has quit [Quit: Verlassend]
workmad3 has quit [Ping timeout: 272 seconds]
balazs has joined #ruby
<eam> and it has to do that for every .*? instance
<bougyman> eam: yes, I know it's more expensive than a more exact match, I was just mentioning that oniguruma shortcuts some of the steps when it can (optimizes)
<eam> there are a couple very basic looking regex expressions that will send any engine into conniptions
<eam> ah yeah. I don't think it can do much in that case, though
<bougyman> oh can you lock onig up with the +)* with backrefs stuff?
bonhoeffer has quit [Remote host closed the connection]
Dj_TiKo has quit [Quit: • IRcap • 8.72 •]
Indian has quit [Ping timeout: 255 seconds]
<eam> probably, let's see
Indian has joined #ruby
gizmore has joined #ruby
_blizzy_ has quit [Ping timeout: 272 seconds]
finisherr has quit [Quit: finisherr]
havenn has joined #ruby
baweaver has quit [Remote host closed the connection]
aapole has joined #ruby
Xiti has quit [Quit: Xiti]
rubie has joined #ruby
balazs has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
m8 has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
phreakocious_ is now known as phreakocious
djstorm has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
phutchins1 has quit [Ping timeout: 264 seconds]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
peter_paule has joined #ruby
PaulCapestany has quit [Quit: .]
hotpancakes has quit [Read error: Connection reset by peer]
jerius_ has joined #ruby
rubie has joined #ruby
PaulCapestany has joined #ruby
Igorshp has quit [Remote host closed the connection]
renderful has quit []
_stu_ has joined #ruby
solars has joined #ruby
jerius has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
mikecmpbll has joined #ruby
nertzy has quit [Quit: Leaving]
Soda has quit [Remote host closed the connection]
juanca_ has joined #ruby
eGGsha is now known as eGGshke
sharpmachine has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
snapcase has quit [Quit: leaving]
snapcase has joined #ruby
<dfockler> is there an enumerable to count how many elements in an enumerable match a condition?
<dfockler> oh count hah
wallerdev has quit [Quit: wallerdev]
yardenbar has joined #ruby
ivanskie has joined #ruby
lapide_viridi has joined #ruby
Wolland has quit []
mary5030 has quit [Remote host closed the connection]
sandstrom has joined #ruby
zendrix has quit [Remote host closed the connection]
<ivanskie> anyone else patiently waiting for iTunes 12.2 ?
<ivanskie> 'patiently'
nertzy has joined #ruby
juanca_ has quit [Remote host closed the connection]
zacstewart has joined #ruby
pothibo has quit [Quit: pothibo]
Aswebb_ has joined #ruby
<miah> no. because i have vox.app
Marisa has quit [Ping timeout: 264 seconds]
<shevy> I don't even know what is iTuna
peter_paule has quit [Ping timeout: 250 seconds]
mcclurmc has joined #ruby
wallerdev has joined #ruby
mcclurmc has quit [Remote host closed the connection]
<ivanskie> iTuna is very tasty..
<shevy> hehe
<ivanskie> I doub't their apple music interface will come close to Spotify's implementation..
AlphaAtom has joined #ruby
<ivanskie> but we''ll see
<sphex> hey. I see that ruby comes with some documentation files in doc/ that aren't associated with specific classes (e.g. "doc/security.rdoc"). they get processed and .ri files are installed for them, but is there any way to read them with ri(1) afterward?
j4cknewt has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
blaines has joined #ruby
<ivanskie> try this http://yardoc.org/
<miah> thats not the question
mcclurmc has joined #ruby
<ivanskie> true
bf4 has quit [Read error: Connection reset by peer]
GitGud has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bf4 has joined #ruby
slumos has left #ruby [#ruby]
<miah> you can do like `rdoc --server` and then go to http://localhost:8214/ruby/security_rdoc.html
atomical has joined #ruby
<miah> but ya, i don't know the magical incantation from the cli to get that specific doc
<ivanskie> was googling and found this too: http://rxr.whitequark.org/mri/source/doc/security.rdoc which probably doesn't help either but
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy> it's the gesture that counts!
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
mary5030 has joined #ruby
mcclurmc has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<ivanskie> shevy yah but there's also people, like most of Canadian people.. lol that'll say about anything just to be helpful. now whether that information is going to be helpful is usually worse than 50/50
mary5030 has joined #ruby
<ivanskie> i'm canadian.. but i'm european canadian.. lol
<sphex> miah, ivanskie: alright, thanks! yeah looks like ri is really only designed to lookup classes/methods. not a big deal I guess, the other docs don't need to be looked up very often.
<shevy> as long as you speak the real canadian language... french
gauke has joined #ruby
<ivanskie> ur saying it wrong shevy.. Real Canadien
<miah> you mean Quebecua
<ivanskie> and nope i don't speak french
<shevy> lol
<ivanskie> lol
eggoez has joined #ruby
<ivanskie> i speak English, Russian, and Ukrainian tho
<shevy> adaedra that's a land for you to visit!
<Xeago> I'm bored.
mcclurmc has joined #ruby
<miah> #ruby-offtopic is great for bordem.
<Xeago> Ituna is great for hunger.
<Xeago> :>
<ivanskie> there's a separate channel for that?
<ivanskie> adding that to my TIL list
<miah> indeed.
<ivanskie> it feels like #ruby-offtopic is more like a fake number you give someone instead of your own...
<miah> so that we can keep this place focused (of course it does occasionally get OT)
<shevy> :)
<miah> 867-5309
yaw has joined #ruby
<shevy> we just mention ruby every now and then to insinuate that it is relevant to ruby
<shevy> like how many many ruby users are in Canada! \o/
havenn is now known as havenwood
<miah> i grew up in almost-canada (michigan).
mcclurmc_ has joined #ruby
<shevy> that explains the french accent when you type! \o/
<miah> lol
<sphex> and I'm from .qc.ca. gee what's with canada and ruby?
workmad3 has joined #ruby
mcclurmc has quit [Read error: Connection reset by peer]
<miah> nothing as far as i know
mcclurmc_ has quit [Remote host closed the connection]
<ivanskie> tomorrow there'll be somethin
peter_paule has joined #ruby
<sphex> right. definitively no take over going on.. << >>
<shevy> perhaps Canada is the new California
<ivanskie> tomorrow's Canadian Ruby Day right?
<shevy> just with less sun. and more snow
fantasticsid has quit [Remote host closed the connection]
cmisenas has joined #ruby
<ivanskie> :)
mcclurmc has joined #ruby
fantasticsid has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
frem has joined #ruby
<sphex> ivanskie: so yard is an alternative toolchain to rdoc?
yaw has quit [Ping timeout: 256 seconds]
BanzaiJoe has joined #ruby
eGGshke is now known as eGGsha
<miah> yardoc is a pretty nice doc parser
Jackneill has quit [Remote host closed the connection]
<ivanskie> i've just found it yesterday.. it just makes it easier to read..
<miah> and you can write docs in more formats (though I think rdoc supports a few as well)
tubuliferous_ has joined #ruby
Carnage\ has joined #ruby
varunwachaspati has quit [Read error: Connection reset by peer]
<dfockler> yardoc was really simple and did a pretty good job
<dfockler> at least for my project
monod has joined #ruby
<miah> i just wish rdoc/yardoc had better options for linking with simplecov
hotpancakes has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
MyMind has joined #ruby
<miah> rdoc can generate a nice list of coverage details. but i want it all in one easy to digest place.
<miah> yardoc has yardstick, https://github.com/dkubb/yardstick but its not quite what i want
symm- has quit [Read error: Connection reset by peer]
k3asd` has joined #ruby
<shevy> C versus C++! http://250bpm.com/blog:4
cmisenas has quit [Ping timeout: 264 seconds]
peter_paule has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
_blizzy_ has joined #ruby
solars has quit [Ping timeout: 272 seconds]
symm- has joined #ruby
paulcsmith has joined #ruby
sandstrom has joined #ruby
jerius_ has quit [Quit: /quit]
dblessing has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
jerius has joined #ruby
baweaver has joined #ruby
yqt has joined #ruby
frode15243 has joined #ruby
tvw has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<shevy> there is so much python code out there
<shevy> feels as if they outnumber us 3:1
sarkyniin has quit [Ping timeout: 256 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah> well, Python has the scientific community
<miah> more colleges teach it, than Ruby.
<miah> though honestly most of what researchers were writing when i was working with them was perl, lisp, and java.
<wmoxam> it's just more popular for basically anything non-web dev
Musashi007 has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
<miah> indeed
<shevy> well I could see some perlers
<shevy> java too
baweaver has quit [Ping timeout: 255 seconds]
<shevy> never really saw a lot of lispers
pengin has quit [Remote host closed the connection]
<miah> i worked with a _ton_ of MIT grads. emacs & lisp were their way of life
nofxx has joined #ruby
snockerton has quit [Quit: Leaving.]
<eam> what generation though? MIT switched from lisp to python a while back
wprice has joined #ruby
zendrix has joined #ruby
<shevy> hey
<shevy> miah is not *that* old!
arcanez has left #ruby [#ruby]
<eam> coworkers might be though ;-)
AlphaAtom has joined #ruby
<Senjai> I've considered going back to school, but I'm pretty torn on it
railsraider has quit [Quit: railsraider]
<bricker> I am super bored with programming
cmisenas has joined #ruby
<miah> im 36. most of my coworkers were close to my age, maybe a tad older.
<wmoxam> Senjai: what's keeping you from it?
<bricker> I find no joy in it anymore
<eam> shevy: they switched in like 2009 iirc
<eam> miah: you're older than I am
<Senjai> I already have a job in the industry, and I know what kind of grads most schools produce. But there's a longing for some of the more fundemental concepts and math
<Senjai> wmoxam: ^
<wmoxam> Senjai: maybe try some part time courses?
<dfockler> I wish I knew stats better
snockerton has joined #ruby
<wmoxam> bricker: :(
<Senjai> wmoxam: With work? Eh..
<miah> i wish i could school. i have a hard time learning in that kind of environment / teaching method though
<wmoxam> bricker: make something fun ;)
<Senjai> bricker: You still working in SoCal?
<wmoxam> Senjai: yeah, it can be hard
<bricker> wmoxam: The motivation do program outside of work just isn't there anymore
<bricker> Senjai: yes
<Senjai> bricker: Consider going to NYC or?
<Senjai> Or any place that has a really motivated team
rubie has quit [Remote host closed the connection]
<miah> totally oc, but we're hiring ;) https://www.simple.com/careers
<miah> s/oc/ot
<eam> miah: oh you're at simple?
<miah> indeed
davejlong has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<bricker> Senjai: moving jobs might help for a while, but I've done it a few times now and always after about a year I just lose interest again
<miah> two years now
<Senjai> We're also hiring. www.freerunningtech.com. Unfortunately most of our clients are under NDA, suffice it to say we work on some really cools tuff
<eam> bricker: I made a switch from a big valley company to a much more dynamic startup and it helped a lot
<Senjai> bricker: I think it might be related to the team man. I get the motivation issue, but you can do cool things and get paid for it, that's a pretty good setup
<bricker> Senjai: this time feels different, this time I don't even want to move jobs. I'll probably leave the industry after this job, dunno when that will be
tno has joined #ruby
<Senjai> bricker: Sorry to hear m8.
<bricker> eam: yeah, I work for a big ass company and it's just totally not fun
allomov has joined #ruby
lucasfs7 has quit [Remote host closed the connection]
jmignault has joined #ruby
<Senjai> Work for a smaller firm
<eam> bricker: try somewhere smaller (but not too small) where you can teach people
<bricker> eam: may as well be preparing excel spreadsheets or something
<bricker> yeah
<miah> i have worked for BACs and they were indeed not fun. too many people working in management.
<eam> yeah that was me 5 years ago
benlieb_ has joined #ruby
<wmoxam> smaller companies are way more fun IMO
<bricker> eam: I need dat big company paycheck though you know what I mean
<bricker> startups pay okay I guess
<eam> bricker: I do, I do - try a unicorn though
<Senjai> bricker: ^ might be a solution
<Senjai> bricker: I know they're hiring
<bricker> thanks
<Senjai> I know they're dev team too, REALLY good group of guys
<eam> bricker: I took a huge salary paycut for a bit of equity gamble -- going to do much better in the longer term
<Senjai> their*
<bricker> nice
<eam> most startups can pay "enough"
<miah> most startups have worthless equity though
<eam> yeah most do
sharpmachine has joined #ruby
<eam> pick wisely, go for someone who's already essentially made it
<eam> but are still small
<Senjai> *cough* Bonobos
<miah> lots of sales positions =)
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
<bricker> Senjai: what do they do at Bonobos?
<wmoxam> they monkey around
<bricker> clothing it looks like?
<Senjai> They're an ecommerce retailer.
<bricker> wmoxam: hah-hah-hah
<bricker> oh
<eam> wmoxam: their technology is bananas
<wmoxam> lol
crazydiamond has quit [Remote host closed the connection]
sdwrage has joined #ruby
<shevy> until the day they'll start to program
<eam> can you imagine all the "million monkeys" jokes
<wmoxam> no, infinite monkeys
<wmoxam> typing on infinite mechanical keyboards
<eam> I hope that's not an open office layout
<wmoxam> will produce ActiveSupport, which will cause infinite tears
sarkyniin has joined #ruby
<bricker> hah
mcclurmc has quit [Remote host closed the connection]
<miah> hopefully not chaos monkeys though
sharpmachine has quit [Ping timeout: 255 seconds]
pdoherty has quit [Ping timeout: 246 seconds]
<wmoxam> specs will take infinte years to run
sepp2k has quit [Quit: Leaving.]
snockerton has quit [Quit: Leaving.]
juanca_ has joined #ruby
ruv has joined #ruby
rbennacer has joined #ruby
<miah> why?
sharpmachine has joined #ruby
<eam> prove it
kirun has joined #ruby
<miah> i generally only see slow tests when virtualized browsers are involved
bruno- has joined #ruby
<wmoxam> because of infintite fixtures of course
<Senjai> miah: Let me tell you about Spree
<miah> the candy?
<axisys> need help with a value with space in it .. trying to use it with rvc (ruby vsphere console)
<NeverDie> How long until ruby gets overtaken by node.js?
<NeverDie> Or has this happened already.
<Senjai> NeverDie: It won't happen, and no
<NeverDie> Why won't it happen?
<Senjai> Why would it?
<NeverDie> It recently took over ruby on hacker news for jobs last month from what I read.
<Senjai> So?
<NeverDie> Because node.js is apparently faster?
baweaver has joined #ruby
<Senjai> Sure, do you enjoy writing javascript?
<apeiros> NeverDie: what's the purpose of your question?
<NeverDie> To see what everyone's thoughts on it are.
<apeiros> if you want to use the most popular language, use java
<Senjai> ^
lapide_viridi has quit [Quit: Leaving]
<apeiros> if you want to write in the fastest language, use C
* Senjai places crown on apeiros
<miah> assembly?
<Senjai> I'm going to answer every language question like that for now on
<wmoxam> NeverDie: there are plenty of languages that are faster and/or more popular than Ruby ;)
<darix> apeiros: it depends.
<wmoxam> it's not a race
drewvanstone has joined #ruby
<miah> slow and steady wins the race
<wmoxam> and everything has a tradeoff ;)
bking39116 has joined #ruby
<apeiros> miah: besides the point :) insert *any fast language and probably very low level language*
<miah> indeed
<apeiros> so NeverDie - what is it that motivates you to ask that question?
<miah> i've written more C than ASM, and I don't want to write either.
<NeverDie> To see if I should invest time into learning Ruby or not.
j4cknewt has joined #ruby
<apeiros> NeverDie: then you're asking the wrong question.
<NeverDie> Then what would be the right question
<miah> do you like imperative or oop? =)
<Senjai> miah: That's not the right question
<miah> lol
<NeverDie> Are they not practically one and the same.
<apeiros> NeverDie: what's the deciding factor for you to invest time?
<Senjai> NeverDie: Find a language you enjoy writing in, and continue writing it
Papipo has joined #ruby
<Papipo> Hi
<apeiros> amount of job offers? probably java again.
<NeverDie> apeiros: Salary and employment.
<Senjai> NeverDie: Go to codecademy, run through the examples, and pick one
kadoppe has quit [Ping timeout: 276 seconds]
<apeiros> salary? learn cobol.
<wmoxam> ^^^^
<Senjai> HAHAHA
<eam> amount of job offers is distinct from quality of job offers
<Senjai> apeiros: YOU ARE THE KING SIR
<wmoxam> apeiros: beat me to it
<miah> its what keeps me off of Go even though its an alright lang. i just hate the amount of repetition and boilerplate code.
<yorickpeterse> if lol != nil { ... }
<apeiros> NeverDie: ruby is a nice language. it's a joy to work with for the most part. and there's good jobs.
kadoppe has joined #ruby
<apeiros> hth
<Senjai> s/good/great
devoldmx has joined #ruby
<Senjai> There are less jobs, but less developers
<eam> if you're looking for a runtime to maximize earnings, consider an RDBMS
<Senjai> It's never a problem finding work
<yorickpeterse> Ruby is boring and mainstream but it pays and it's a good thing to use
fabrice31 has joined #ruby
<havenwood> NeverDie: They're also comparing the entire Node ecosystem to a single Ruby gem.
<Senjai> yorickpeterse: Boring? :(
<havenwood> NeverDie: There are lots of non-Rails apps in Ruby.
fantazo has joined #ruby
<yorickpeterse> Senjai: Yes, the language is fairly stable
<Senjai> yorickpeterse: You prefer YoloLang? xD
<yorickpeterse> except for the april fools features such as refinements that get introduced once in a while
<eam> yorickpeterse: gonna disagree with you there, ruby is super unstable
<NeverDie> Yeah but practically everything revolves around ruby and its rails framework.
<miah> yorickpeterse: exactly. if err != nil..
<havenwood> NeverDie: Oh?
<yorickpeterse> eam: MRI might be, the language itself is not
<yorickpeterse> miah: I know
<miah> why cant gofmt just do that for me? ;)
drewvanstone has quit [Client Quit]
<eam> yorickpeterse: unless you say MRI doesn't implement the language I don't see how that can be true
dblessing has joined #ruby
<eam> major api changes over the last decade, changes to core things like scoping
bking39116 has quit [Ping timeout: 265 seconds]
<havenwood> NeverDie: You might be surprised that companies you think of as Rails actually have more non-Rails Ruby apps than Rails apps.
<yorickpeterse> "over the last decade"
renderful has joined #ruby
<yorickpeterse> By what standard is something stable then, not changing for a century?
polyrob has quit [Quit: ZNC - http://znc.in]
<eam> yorickpeterse: uh yes? meanwhile the perl I wrote in the 90s is still working perfectly
<nofxx> eam, I disagree, got software running for years w/o any problem
railsraider has joined #ruby
<yorickpeterse> What I meant is that things don't break radically left and right anymore since 2.0
<havenwood> NeverDie: There is more to Ruby than Rails. If you disagree you're in the wrong channel.
<yorickpeterse> 2.1 was bumpy due to the GC
<yorickpeterse> 2.2 wasn't that bad
<eam> nofxx: write more software :D
<yorickpeterse> anything prior to 2.0 was a wild west
<bougyman> eam: you never use defined?
<NeverDie> havenwood: I'm here to see if that's not the case. I'm here for informational purposes.
<nofxx> eam, write better software ;)
<havenwood> NeverDie: There's a #RubyOnRails channel for Rails-specific discussion
<bougyman> a bunch of not-that-old perl stuff is breaking now because of that.
j4cknewt has quit [Ping timeout: 248 seconds]
<eam> nofxx: api changes don't break software because it's bad
<eam> they change the interface
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
<bougyman> eam: will that 90s perl work on perl6?
<yorickpeterse> miah: what I find interesting about Go is how very few seem to be bothered by the GC. Meanwhile in D land _everybody_ is complaining about the GC
<eam> bougyman: perl6 is a different language
polyrob has joined #ruby
<bougyman> ruby has never hidden that major revs will change the api.
<nofxx> eam, yeah.. ruby is bleeding edge, but it's all for good hehe. At least things move fast, python for instance is 20 years now moving to version 3
pengin has joined #ruby
gauke has quit [Quit: gauke]
<bougyman> python isn't unstable beacuse 3.0 breaks 2.x python apps.
<shevy> eam will you abandon ruby for perl6?
<bougyman> that's expected.
acke has quit [Remote host closed the connection]
<bougyman> you run 2.x python apps on 2.x python.
<eam> shevy: I won't be using perl6
<nofxx> bougyman, you suffer like a motherless child trying that you mean
fabrice31 has quit [Ping timeout: 252 seconds]
<miah> i havent written complex enough code in Go to care about the GC
<nofxx> and your system pkg you need is already 3... and you try changing the shebang... and nah, won't work hehe
langlands has joined #ruby
<hoelzro> eam: no interest in trying it?
<eam> hoelzro: I did a bit
<eam> not a compelling platform for me
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<wmoxam> I haven't wrote any Perl since 2003 :p
<miah> wmoxam: about the same
<shevy> awww
renderful has quit [Client Quit]
<miah> the 90's are alive in Perl
<eam> perl5 is nice because it has a simple syntax for short one-liners and a very close 1:1 mapping to posix interfaces
<shevy> <marquee>!
<eam> every time I try to do systems stuff in ruby it's a frustrating dive into weirdly implemented object systems
workmad3 has joined #ruby
<yorickpeterse> "simple syntax"
<miah> and seriously lacking systems library
<yorickpeterse> "short one-liners"
<eam> yorickpeterse: it is very simple
<yorickpeterse> you had me at "simple"
<miah> ruby's multiple tar implementions are all :(
<shevy> I never managed to adjust to perl's syntax
<eam> yorickpeterse: for example, no boilerplate for string interpolation
<yorickpeterse> boilerplate?
j4cknewt has joined #ruby
<yorickpeterse> "#{foo}" isn't exactly boilerplate
sgambino has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> vs "$thing" ?
sarkyniin has quit [Ping timeout: 252 seconds]
<yorickpeterse> You can do that for non locals
<yorickpeterse> "#@foo"
<shevy> damn the #!
<eam> yorickpeterse: hm that's nicer
<yorickpeterse> but oh heavens, you need 2 characters more
yfeldblum has joined #ruby
<nofxx> yeah, #@ is pretty unkown... but dollar signs NEVER
<eam> yorickpeterse: it adds up for a 30 character one liner -- but the regex access is the bigger issue
<eam> s/// vs gsub
<yorickpeterse> (@゚Д゚@;)
<eam> and bad autoviv behavior
<yorickpeterse> Also, it worries me people measure syntax by how useful it is for one liners
<nofxx> more $ lang has more smell ...that's the reason php is a pile of shit
<yorickpeterse> when was the last time you wrote a one-liner Rails app?
<eam> yorickpeterse: I don't write apps in perl
hanmac has quit [Ping timeout: 246 seconds]
<shevy> I don't write rails!
<eam> I told you I prefer perl for a small subset of problems :)
<yorickpeterse> well yeah, use whatever floats your boat
snockerton has joined #ruby
<eam> I'm not making a contentious statement here I hope
<eam> it's way way better for sed/awk style use cases
vickleton has joined #ruby
<shevy> I tend to store "one-liners" in a .rb file and just call that though
kraljev11 has joined #ruby
<Senjai> eam: I.. just use sed and awk
<eam> why?
<eam> if you want to talk about gross language syntax, why would you use those over perl?
<Senjai> eam: Because I understand them, and I don't know perl?
<eam> they differ between unixes, perl is consistent
<Senjai> literallytheonlyreason
<eam> and way more expressive
<eam> Senjai: ah well, I suggest replacing them
fantazo has quit [Ping timeout: 264 seconds]
wprice has quit [Quit: wprice]
<shevy> with perl or with ruby
_stu_ has quit [Quit: _stu_]
<Senjai> Sure, but as this conversation is heading, pick any tool meant to solve the job
<shevy> or with python or php
<Senjai> Eh, I haven't had problems. I use them as oneoffs.
<eam> I'd pick the best tool. I'd never write a shell script for example
baweaver has quit [Remote host closed the connection]
<Senjai> Nothing wrong with shell scripts
<Senjai> where it makes sense
<nofxx> when there's no logic
roolo has joined #ruby
<shevy> lol
<Senjai> Or very little
<eam> I sometimes use ruby for one-liners, but usually they're more like 5-liners in irb (which is fine, it's just a lot more boilerplate for some simple ops)
<eam> Senjai: there's a LOT wrong with shell scripts, mostly surrounding how variables work
<eam> you cannot write shell safely
juanca_ has quit [Ping timeout: 246 seconds]
<Senjai> Sure you can.
<yorickpeterse> You can also use Node.js for your scripts
<yorickpeterse> Then even your frontenders can write them
<yorickpeterse> plus they work in the browser too
<eam> Senjai: no, you really can't -- and if you think you can I suggest you need to learn more about shell scripts
<ljarvis> plus they scale
<Senjai> You could also write your scripts in C, and compile them
<yorickpeterse> ᕕ(ᐛ)ᕗ
wildroman2 has quit [Remote host closed the connection]
snockerton has quit [Client Quit]
<miah> tcsh ;)
<Senjai> eam: Am I confident in writing super cross platform & posix compliant scripts? No, do I care? No
<Senjai> If i did
snockerton has joined #ruby
<Senjai> I'd use something else
langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> I'm not talking about portability -- I'm talking about danger of misbehavior due to how variables are string interpolated and evaluated
juanca_ has joined #ruby
podman has joined #ruby
kraljev11 has quit [Client Quit]
JDiPierro has quit [Read error: Connection reset by peer]
<shevy> eam has been around a while to remember the old days
<Senjai> Are you talking about that bash bug or something?
<shevy> of the 1980s :)
JDiPierro has joined #ruby
<Senjai> I'm not saying its perfect man
<eam> "that" bug? It's a design issue
<Senjai> I'm saying my script that curls an api endpoint, and does some formatting with cut and tr, doesnt need to be secure
BanzaiJoe has quit []
<eam> Senjai: neither of us are saying it's perfect. And I'm saying it's fundamentally dangerous
TheHodge has joined #ruby
kraljev11 has joined #ruby
<Senjai> eam: Can you link me to a resource that explains this to me?
<eam> because every time you reference a variable you need to do some rather crazy analysis of how it will be interpolated, quoted and evaluated
<Senjai> eam: Not all scripts need to use variables
fsvehla has quit [Quit: fsvehla]
<Senjai> It can just perform a series of operations
<eam> Senjai: how about this: write me a (should be <2 lines) shell script that simply execs its arguments properly
Guest25_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
railsraider has quit [Quit: railsraider]
<eam> like ruby -e'exec ARGV'
<apeiros> IT'S A TRAP!
<eam> *ARGV w/e :)
<Senjai> eam: I have something terrible
<Senjai> but it was just sitting around
Musashi007 has quit [Quit: Musashi007]
<Senjai> I havent written it, I know its bad
<Senjai> ill gist
<Senjai> sec
<eam> sure, let's look at it, I'll use it as an example
sgambino has joined #ruby
<eam> ok perfect, so `pwd` and $NODE_PATH in that first expression
<eam> what happens when there's whitespace in a filename?
revath has quit [Ping timeout: 250 seconds]
Guest25_ is now known as gabhart
<miah> classic problem =)
<Senjai> I would assume it'd be escaped, but I have no idea
<eam> you quoted "$@" properly (good idiom, classic shell magic)
<eam> it's not, you need "" around those too
wildroman2 has joined #ruby
<Senjai> around $NODE_PATH and `pwd`?
<eam> "`echo -n foo`" is "foo"
<eam> yeah
<eam> you need to double quote *every* variable
<eam> because the way shell works is to interpolate $FOO first, then eval()
rbennacer has quit [Remote host closed the connection]
<eam> it's really crazy complexity and essentially no one on earth writes safe shell
fmcgeough has quit [Quit: fmcgeough]
<eam> (it's theoretically possible, but ...)
<miah> or portable shell
<eam> yeah, but I'll even forgive portable
<Senjai> miah: I already said I dont care about portability :P
<eam> it's just super dangerous every time you even reference a value
<miah> ya just saying, its _very_ difficult to write portable / secure shell
<Senjai> eam: Okay, I'll concede the point
kraljev11 has quit [Ping timeout: 265 seconds]
<eam> so the language is also filled with magic idioms, like "$@" which expands into individually tokenized whitespace separated elements
<Senjai> but most shell scripts that have no variables, and just perform a long series of pipes
<Senjai> would that not be fine?
scripore has quit [Quit: This computer has gone to sleep]
<eam> "$FOO" is one string, "$@" is multiple strings because "$@" is a special case
phutchins1 has joined #ruby
sarkyniin has joined #ruby
<apeiros> ok, so there are actually sane rationales for my dislike of *sh?
<eam> Senjai: everything's relative, typing commands into bash isn't gonna end the world -- but I really really would not write scripts in it
<apeiros> (wrt anything beyond 2 lines)
<jhass> apeiros: we should never let the systemd haters hear this ;D
juanca__ has joined #ruby
<eam> jhass: I hate systemd too ;-)
B1n4r10 has joined #ruby
<apeiros> jhass: in about 4 to 6 months you'll have to give me a systemd crash course ;-)
<jhass> but it replaces all the shell scripts!
kraljev11 has joined #ruby
<eam> jhass: poorly yes :)
<eam> jhass: I don't use the sys5 init system either
balazs has joined #ruby
hanmac has joined #ruby
rbennacer has joined #ruby
<miah> runit for life.
<eam> yeah
<jhass> apeiros: sure
davejlong has quit []
<jhass> there's not much to it
<miah> runit/daemontools/s6 i should say ;)
<eam> and I use ruby to template the runit scripts in fact
<apeiros> btw., foooolks, y'all way OT here :-p
<apeiros> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
ruv has quit [Remote host closed the connection]
<eam> (because the default of shell is unsafe, so ruby + json = safe format)
<apeiros> jhass: that line needs more propaganda
<jhass> mmh
<apeiros> like: #ruby-offtopic is an awesome channel, you should totally join it to discuss all that stuff there!
<jhass> apeiros: don't forget the hangman synergy!
<miah> awesome
rbennacer has quit [Remote host closed the connection]
Azure has quit [Quit: Oops.]
juanca_ has quit [Ping timeout: 246 seconds]
<Senjai> eam: You're not in the OT channel :(
<eam> it's not OT, that's ruby
<eam> I don't think explaining why ruby should be used for runscripts instead of shell is OT
<Senjai> eam: I meant that I cant talk to you bout this more because you're not in the OT channel
kraljev11 has quit [Read error: Connection reset by peer]
<eam> oh haha
kraljev11 has joined #ruby
momomomomo has joined #ruby
Guest67 has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
<shevy> we are planning to replace shell scripts with ruby scripts
Muhannad has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
rbennacer has joined #ruby
jpfuentes2 has joined #ruby
mordocai has joined #ruby
hunt3r has joined #ruby
hotpancakes has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
stoodfarback has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby
Guest67 has quit [Quit: Textual IRC Client: www.textualapp.com]
kraljev11 has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Ping timeout: 244 seconds]
kraljev11 has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno-_ has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
baweaver has joined #ruby
momomomomo has quit [Ping timeout: 264 seconds]
<sphex> thank god all that OT stuff stopped to make room for *all these* ruby discussions...
JDiPierro has quit [Remote host closed the connection]
<eam> :P
<centrx> yeah One channel to rule them all!
<eam> I find the peripheral discussions often are the most enlightening
<centrx> can't even talk in #ruby-pro
<eam> what's ruby-pro
<centrx> #ruby-offtopic is just a hangman channel
<centrx> it's nothing, there's no talking!
<eam> haha
<apeiros> :-|
<apeiros> :-[
<baweaver> This is what we have #ruby-meta for
<ljarvis> :|
djbkd has quit [Ping timeout: 265 seconds]
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> ls channels | grep ^ruby- | wc -l
kraljev11 has quit [Read error: Connection reset by peer]
<ljarvis> 350
<eam> this is why I have 78 irssi windows
kraljev11 has joined #ruby
lkba has joined #ruby
B1n4r10 has joined #ruby
<havenwood> centrx: That's not true! We were just talking about Streem replacing all other shells when they're deprecated this Fall.
* baweaver is being cheeky
<baweaver> but #ruby-meta totally exists
<baweaver> because funny
<yorickpeterse> omg you folks this is offtopic
djbkd has joined #ruby
<yorickpeterse> ?offtopic offtopic
<ruboto> offtopic, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<ljarvis> ?ot yorickpeterse
<ruboto> yorickpeterse, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse> no you're offtopic
* ljarvis puts on wizard hat
<eam> >_<
<centrx> Ruby is optimized for programmer happiness, so everything happy is on-topic
<yorickpeterse> wat
juanca_ has joined #ruby
__butch__ has joined #ruby
<ljarvis> centrx: nice try
B1n4r10 has quit [Client Quit]
<yorickpeterse> hmmm...tea
lkba_ has quit [Ping timeout: 246 seconds]
juanca__ has quit [Ping timeout: 252 seconds]
<apeiros> lol
roolo has quit [Remote host closed the connection]
Bertg has joined #ruby
* apeiros hugs the channel and waves gn8
<Senjai> apeiros: Sweet dreams
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
delianides has quit [Remote host closed the connection]
iamninja has joined #ruby
monod has quit [Quit: Sto andando via]
casadei_ has joined #ruby
yardenbar has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
flak has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
rubie has joined #ruby
ldnunes has quit [Quit: Leaving]
rippa has quit [Ping timeout: 252 seconds]
renderful has joined #ruby
davedev24_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
gabhart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> centrx is PHP off topic
sarkyniin has quit [Ping timeout: 264 seconds]
<centrx> shevy, Take it to #ruby-meta please,thanks
mister_solo has joined #ruby
thiagovsk has joined #ruby
j4d has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
<Senjai> How many ruby channels do we have
jmignault has quit [Quit: Textual IRC Client: www.textualapp.com]
eggoez has quit [Ping timeout: 248 seconds]
<Senjai> Is #ruby and #ruby-offtopic not good enough? :P
hotpancakes has joined #ruby
davedev2_ has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
s2013 has joined #ruby
Carnage\ has quit []
<ljarvis> uh.. yes, ruby-offtopic is fine
Deele has quit [Ping timeout: 256 seconds]
Muhannad has joined #ruby
<baweaver> It is, I was just being cheeky
<baweaver> probably closing the channel a bit later.
<Senjai> baweaver: Oh.. I am gullable today
DCameronMauch has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
hotpancakes has quit [Ping timeout: 256 seconds]
Oka has joined #ruby
pengin has quit [Remote host closed the connection]
gambl0re has quit [Read error: Connection reset by peer]
scripore has joined #ruby
Azure has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
soulcake has quit [Ping timeout: 276 seconds]
vasilakisfil_ has joined #ruby
soulcake has joined #ruby
hotpancakes has joined #ruby
paulcsmith has joined #ruby
wallerdev has joined #ruby
nfk has quit [Ping timeout: 265 seconds]
s2013 has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
pengin has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
Guest25_ has joined #ruby
erts has quit [Quit: erts]
gambl0re has joined #ruby
s2013 has joined #ruby
m8 has quit [Quit: Sto andando via]
blackmesa has joined #ruby
wildroman2 has quit [Remote host closed the connection]
kennell has joined #ruby
GitGud is now known as BisexualBot
BisexualBot is now known as GitGud
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Quit: .]
railsraider has joined #ruby
tacit7 has quit [Ping timeout: 255 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> GitGud interesting nicks!
nfk has joined #ruby
<GitGud> thanks shevy
jhooker has quit [Ping timeout: 246 seconds]
bullcitydev has joined #ruby
vickleton has quit [Ping timeout: 255 seconds]
renderful has quit []
sarkyniin has joined #ruby
gambl0re has quit [Ping timeout: 246 seconds]
MacDaddy has quit [Ping timeout: 244 seconds]
tekmaster is now known as tekacs
werelivinginthef has quit [Remote host closed the connection]
gambl0re has joined #ruby
__butch__ has quit [Quit: Linkinus - http://linkinus.com]
nfk has quit [Quit: yawn]
MacDaddy has joined #ruby
n_blownapart has joined #ruby
gkra has quit [Disconnected by services]
bonhoeffer has joined #ruby
freerobby has quit [Quit: Leaving.]
PaulCapestany has joined #ruby
eggoez has joined #ruby
juanca_ has quit [Ping timeout: 265 seconds]
juanca__ has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
hahuang65 has quit [Ping timeout: 264 seconds]
umgrosscol has quit [Remote host closed the connection]
jfarmer has joined #ruby
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
jerius has quit [Quit: /quit]
bullcitydev has quit [Quit: Textual IRC Client: www.textualapp.com]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A205B064 has joined #ruby
User458764 has joined #ruby
hahuang65 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
ndrei has joined #ruby
kraljev11 has quit [Quit: kraljev11]
kraljev11 has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
<zenspider> rawr
<jhass> uhm
<jhass> good morning
cmisenas has quit [Ping timeout: 272 seconds]
<adaedra> shevy: heh. Quebec is on my list of places I could go. But they speak a fancy french over there :)
__butch__ has joined #ruby
n_blownapart has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
wildroman2 has joined #ruby
victortyau has quit [Quit: Leaving]
Renich has joined #ruby
<baweaver> afternoon for us mate.
<eam> and a good one at that
decoponio has quit [Read error: Connection reset by peer]
<baweaver> bit hot
<yorickpeterse> ?ugt
<adaedra> too hot
decoponio has joined #ruby
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
axl_ has quit [Quit: axl_]
<eam> I'm in a climate controlled box and have no concept of weather, time, or self
renderful has joined #ruby
pikpok has quit [Remote host closed the connection]
<yorickpeterse> are you literally a computer?
<eam> I mean, yeah, all humans are right?
Xeago has quit [Remote host closed the connection]
<jhass> eam: you should download some windows
<yorickpeterse> pretty sure I don't have an Intel processor in my stomach
<eam> my implementation even contains a (slow and error prone) ruby interpreter
<yorickpeterse> or an nvidia GPU up my ass
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> yorickpeterse: around the valley you can't always make that kind of assumption
hotpancakes has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Remote host closed the connection]
aapole has quit [Ping timeout: 252 seconds]
<yorickpeterse> good thing I don't live in the valley
solars has joined #ruby
msgodf has joined #ruby
cmisenas has joined #ruby
nobitanobi has joined #ruby
hotpancakes has joined #ruby
atomi has quit [Remote host closed the connection]
juanca__ has quit [Remote host closed the connection]
gamename has quit [Remote host closed the connection]
prestorium has quit [Quit: Konversation terminated!]
<yorickpeterse> also TIL MRI's eval() with a String is _really_ slow
<yorickpeterse> as in, stupidly slow
<yorickpeterse> even more so than expected
<shevy> :)
<shevy> we have to accept the fact
<shevy> ruby will always be remembered as slow
gamename has joined #ruby
<yorickpeterse> jruby 9k is pretty fast with the right options
<yorickpeterse> and rubinius will hopefully soon be webscale (TM)
bf4 has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
<yorickpeterse> But yeah, people will always remember it due to whatever MRI does
<adaedra> WEBSCALE
bricker has quit [Ping timeout: 252 seconds]
atomi has joined #ruby
kraljev11 has quit [Ping timeout: 264 seconds]
skade has joined #ruby
<yorickpeterse> ah well, good thing I'll be caching my eval() output
<adaedra> Well everyone, I wish you Good  night
<yorickpeterse> so in an actual app there will be few calls to it
msgodf has quit [Ping timeout: 255 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Marisa has joined #ruby
<jfarmer> yorickpeterse What are you using eval(...) for?
<yorickpeterse> I'm generating Ruby source code based on XPath expressions
SCHAAP137 has quit [Remote host closed the connection]
<yorickpeterse> which is then cached and used to query documents
jhooker has joined #ruby
kinduff has joined #ruby
kinduff has joined #ruby
<yorickpeterse> well how about that, this code is actually faster than Nokogiri
lavros has quit [Ping timeout: 276 seconds]
<yorickpeterse> suck it libxml2
lolmaus has quit [Read error: Connection reset by peer]
<eam> I will forever judge jruby by its startup time
gamename has quit [Ping timeout: 255 seconds]
<yorickpeterse> Ruby code outperforming C
wildroman2 has quit [Remote host closed the connection]
<jhass> well, libxml2...
juanpablo_ has quit [Quit: (null)]
mikecmpbll has quit [Remote host closed the connection]
lolmaus has joined #ruby
juanpablo_ has joined #ruby
Voker57 has joined #ruby
charliesome has quit [Quit: zzz]
mikecmpbll has joined #ruby
<yorickpeterse> jhass: few libraries out there that are faster _and_ do more than just XML parsing
kies has quit [Ping timeout: 246 seconds]
<yorickpeterse> if any
juanca_ has joined #ruby
lavros has joined #ruby
DCameronMauch has quit [Quit: Leaving...]
<yorickpeterse> https://gist.github.com/YorickPeterse/b9c7f9f4d2ebc9d2b621 totally legit benchmarking results
hinbody has quit [Quit: leaving]
Synthead has quit [Quit: Leaving]
volty has joined #ruby
juanpablo_ has quit [Ping timeout: 246 seconds]
mcclurmc has joined #ruby
kennell has quit [Quit: kennell]
skade has quit [Quit: Computer has gone to sleep.]
<jhass> mmh, wonder how gumbo holds up
<zenspider> delicious when my mom makes it
<yorickpeterse> jhass: gumbo only does HTML
<yorickpeterse> and doesn't do XPath last time I checked
_joes_ has quit [Read error: Connection reset by peer]
<yorickpeterse> granted that was...2 years ago I think
_joes_ has joined #ruby
lavros has quit [Quit: leaving]
rippa has joined #ruby
Jello_Raptor has quit [Ping timeout: 250 seconds]
<jhass> ugh, seems still not indeed
<jhass> nvm
renderf__ has joined #ruby
nfk has joined #ruby
flak has quit [Ping timeout: 250 seconds]
constantinexvi has quit [Ping timeout: 250 seconds]
scottymeuk has quit [Ping timeout: 250 seconds]
Jello_Raptor has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 276 seconds]
_ht has quit [Quit: Konversation terminated!]
hotpancakes has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
<Senjai> o/ zenspider
constantinexvi has joined #ruby
<volty> what is delicious? some cake, or html? :)
Muhannad has quit [Ping timeout: 250 seconds]
dgutierrez1287 has joined #ruby
scottymeuk has joined #ruby
ivanskie has joined #ruby
RegulationD has quit [Remote host closed the connection]
[H]unt3r has quit []
gkra_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
juanca__ has joined #ruby
<zenspider> volty: gumbo. it's an american creole/cajun (usually-)seafood stew
juanca_ has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
Luun has quit [Quit: Luun]
<volty> zenspider: looks nice, on wikipedia. got hungry by looking at it. going to eat some cheese since
momomomomo has joined #ruby
<zenspider> heh. cheese is good too
<zenspider> different, but also good
lolmaus has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
lolmaus has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atom3 has quit [Ping timeout: 275 seconds]
<dfockler> I've got cold biscuits and gravy waiting at home
atom3 has joined #ruby
mcclurmc has quit [Remote host closed the connection]
juanca__ has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
mordocai has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
finisherr has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
startupality has joined #ruby
finisherr has quit [Client Quit]
j4cknewt has quit [Remote host closed the connection]
shellie_ has joined #ruby
bricker has joined #ruby
shellie_ has left #ruby [#ruby]
kirun has quit [Quit: Client exiting]
zotherstupidguy has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
Pupeno has joined #ruby
tammy_girl has joined #ruby
jas02 has joined #ruby
<tammy_girl> Hello
<dfockler> hello
Guest25_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
tammy_girl has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 272 seconds]
volty has quit [Quit: Konversation terminated!]
zotherstupidguy has joined #ruby
d5sx43 has joined #ruby
mary5030 has joined #ruby
d5sx43 has quit [Client Quit]
hotpancakes has quit [Ping timeout: 244 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
twistedpixels has quit [Quit: ZNC - http://znc.in]
twistedpixels has joined #ruby
mister_solo has quit [Ping timeout: 246 seconds]
dgutierrez1287 has quit []
twistedpixels has quit [Max SendQ exceeded]
twistedpixels has joined #ruby
s2013 has joined #ruby
VictorBjelkholm has joined #ruby
kies has joined #ruby
twistedpixels has quit [Max SendQ exceeded]
s2013 has quit [Client Quit]
balazs_ has joined #ruby
twistedpixels has joined #ruby
Kortes has joined #ruby
nobitanobi has quit [Remote host closed the connection]
JDiPierro has joined #ruby
twistedpixels has quit [Max SendQ exceeded]
HakN99 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Marisa has quit [Ping timeout: 256 seconds]
<Kortes> hey
twistedpixels has joined #ruby
twistedpixels has quit [Max SendQ exceeded]
<zenspider> now I'm hungry, again
<Kortes> guys, following the ruby project structure
mary5030 has quit [Remote host closed the connection]
twistedpixels has joined #ruby
<Kortes> if i have a script that uses a erb template
<Kortes> and a csv file
<Kortes> where would those files go>
<Kortes> inside the lib ?
<zenspider> are you planning on publishing this as a gem?
<Kortes> or is it common practice to create a sort of, 'resources' folder?
<zenspider> don't really think it matters
<Kortes> nah, this is just a homework for a bootcamp im applying to
baweaver has joined #ruby
<Kortes> i just want it to look real neat, organized, as if i did my research and went the xtra mile
nobitanobi has joined #ruby
<zenspider> either way you're prolly going to reference the file relative to your current file
<Kortes> but in regular ruby applications intended to be published, where would it go?
<zenspider> whether you tack on "../resources" or not doesn't really matter
dgutierrez1287 has joined #ruby
<zenspider> where you put it
balazs_ has quit [Ping timeout: 246 seconds]
<Kortes> yeah im thinking more of a developer looking at my project folder
kies has quit [Ping timeout: 250 seconds]
<Kortes> if theres a common practice, id like for him to see that i followed it
shinnya has quit [Ping timeout: 250 seconds]
k3asd` has quit [Ping timeout: 256 seconds]
<Kortes> so youre saying just to leave them all inside the lib?
<zenspider> I'm saying it doesn't matter. put it where you want to put it.
<Kortes> are you also saying theres no common practice of where to put this kind of files which are not a script but the script does use ?
<Kortes> where would you put them?
eggoez has quit [Ping timeout: 272 seconds]
nobitanobi has quit [Remote host closed the connection]
<Senjai> Kortes: Lib is common for libraries
zacstewart has quit [Remote host closed the connection]
<Senjai> Kortes: Also for utilities that can be used outside of the current application
momomomomo_ has joined #ruby
<shevy> Kortes normally it's not so important as long as you load the .rb files; typically for a project "foobar", you have: lib/foobar/ and lib/foobar.rb and inside of lib/foobar/ you have the other .rb files; that is the default gem structure, http://stackoverflow.com/questions/3307209/what-is-the-modern-way-to-structure-a-ruby-gem
<Senjai> Like classes only used by rake tasks etc.
michael_mbp has quit [Excess Flood]
<Senjai> In the end, feel free to structure your app however
michael_mbp has joined #ruby
gkra_ is now known as gkra
<shevy> wow... that page from chris2 is already 5 years old by now...
<Senjai> Nooooooooo
<Senjai> Lol @ attempt to write a standard for this kind of thing
<Kortes> thanks guys, thats exactly what confused me about placing an '.erb' and a '.csv' file in there
Ropeney has joined #ruby
<Kortes> ill just create a res folder in the structure
<Senjai> Kortes: I would seperate views/fixturedata/etc from models or business logic
<Senjai> Kortes: That works, just call it resources though or something :P
Aswebb_ has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
<Kortes> jaja yeah good idea
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo_ is now known as momomomomo
<Kortes> thanks a lot
Kortes has quit []
ndrei has quit [Ping timeout: 244 seconds]
Papipo has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 248 seconds]
kdehl has joined #ruby
moeSeth has joined #ruby
kdehl has left #ruby [#ruby]
Indian has quit [Ping timeout: 272 seconds]
jpfuente_ has joined #ruby
railsraider has quit [Quit: railsraider]
pgatt has joined #ruby
bruno-_ has quit [Ping timeout: 265 seconds]
tercenya has quit []
juanpablo_ has joined #ruby
jpfuentes2 has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
Rickmasta has joined #ruby
last_staff has quit [Quit: runs off to catch some Zs]
jobewan has quit [Quit: Leaving]
<dfockler> so ::Thread means it's calling the top level namespace right?
zendrix has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 255 seconds]
railsraider has joined #ruby
hotpancakes has joined #ruby
<dfockler> ahhh I got it now
nobitanobi has joined #ruby
wallerdev has quit [Quit: wallerdev]
zendrix has joined #ruby
tkuchiki has joined #ruby
jeanlinu_ has joined #ruby
juanpablo_ has quit [Ping timeout: 256 seconds]
tkuchiki_ has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
eggoez has joined #ruby
mcclurmc has joined #ruby
lictor36 has joined #ruby
jud^ has joined #ruby
mister_solo has joined #ruby
tercenya has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
railsraider has quit [Quit: railsraider]
wallerdev has joined #ruby
platzhirsch has left #ruby [#ruby]
mcclurmc_ has joined #ruby
mcclurmc has quit [Read error: Connection reset by peer]
jud has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
delianides has joined #ruby
FernandoBasso has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
s2013 has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
bruno- has quit [Read error: Connection reset by peer]
s2013 has quit [Client Quit]
bruno- has joined #ruby
RegulationD has joined #ruby
wallerdev has quit [Ping timeout: 250 seconds]
renderf__ has quit [Remote host closed the connection]
s2013 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
mahmoudmahfouz has joined #ruby
delianid_ has joined #ruby
DLSteve has quit [Quit: Leaving]
<Radar> yup
s2013 has quit [Client Quit]
delianides has quit [Read error: Connection reset by peer]
gusrub has quit [Quit: Leaving]
baweaver has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
mahmoudmahfouz has quit [Max SendQ exceeded]
s2013 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
s2013 has quit [Client Quit]
senayar has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
lordkryss has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
fmcgeough has joined #ruby
bricker has joined #ruby
Lucky___ has joined #ruby
VictorBjelkholm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idafyaid has quit [Ping timeout: 256 seconds]
avahey has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kinduff has quit [Quit: leaving]
jhooker has quit [Ping timeout: 256 seconds]
knite has joined #ruby
ivanskie has quit [Ping timeout: 252 seconds]
marr has quit []
radialneon has joined #ruby
HakN99 has quit [Quit: Peace!]
phutchins1 has quit [Ping timeout: 265 seconds]
scottschecter has quit [Quit: Leaving]
blaines has joined #ruby
Xoro has quit [Read error: Connection reset by peer]
yqt has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
Xoro has joined #ruby
yqt has joined #ruby
djbkd has joined #ruby
blaines_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
bf4 has joined #ruby
oo_ has joined #ruby
blaines has quit [Ping timeout: 256 seconds]
snockerton has quit [Quit: Leaving.]
air_ has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
enebo has joined #ruby
baweaver has quit [Remote host closed the connection]
__butch__ has quit [Quit: Linkinus - http://linkinus.com]