jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
yakko has joined #ruby
theery has quit [Remote host closed the connection]
lipoqil has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
keyvan has quit [Ping timeout: 256 seconds]
keyvan has joined #ruby
snockerton has quit [Quit: Leaving.]
wldcordeiro__ has quit [Remote host closed the connection]
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> fuck it. I'm putting this back in: $objs = $srcs.map { |fname| fname.sub(/\.(c|cpp)\Z/, ".o") }
<zenspider> argh. why do ppl use \Z for things like paths?
bruno- has quit [Ping timeout: 264 seconds]
<zenspider> ah. SRCS is _entirely_ irrelevant
wldcordeiro__ has joined #ruby
iamninja has quit [Ping timeout: 265 seconds]
ngscheurich has quit [Quit: WeeChat 1.2]
juanpablo____ has joined #ruby
ascarter has joined #ruby
monsieurp has quit [Ping timeout: 255 seconds]
wldcordeiro__ has quit [Remote host closed the connection]
monsieurp has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
wldcordeiro__ has joined #ruby
leandrosnunes has joined #ruby
Guest39097 has joined #ruby
juanpablo____ has quit [Ping timeout: 264 seconds]
Ropeney has joined #ruby
quazimodo has joined #ruby
hololeap has joined #ruby
marcoamo1 has quit [Ping timeout: 256 seconds]
jcutrell has joined #ruby
leksster has quit [Remote host closed the connection]
wldcordeiro__ has quit [Remote host closed the connection]
Guest39097 has quit [Ping timeout: 244 seconds]
moeabdol has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 246 seconds]
diegoaguilar has quit [Remote host closed the connection]
solocshaw has joined #ruby
marr has quit [Ping timeout: 252 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
ghr has joined #ruby
alakran has quit [Ping timeout: 260 seconds]
Azure|dc has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
techsethi has joined #ruby
sirhcjw has quit [Read error: Connection reset by peer]
ruby-lang178 has joined #ruby
postmodern has quit [Quit: Leaving]
sirhcjw has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
wldcordeiro__ has joined #ruby
Azure has quit [Ping timeout: 264 seconds]
leandrosnunes has quit [Quit: WeeChat 1.0]
moeabdol has joined #ruby
dagda1 has quit [Ping timeout: 240 seconds]
ruby-lang178 has quit [Client Quit]
dagda1 has joined #ruby
<zenspider> pro-tip: nokogiri is NOT a good case study.
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
hololeap has joined #ruby
hinbody_ has quit [Ping timeout: 264 seconds]
wldcordeiro__ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
keen__________11 has joined #ruby
Pathfinder has joined #ruby
swgillespie has joined #ruby
keen__________10 has quit [Ping timeout: 240 seconds]
wldcordeiro__ has joined #ruby
hinbody has joined #ruby
oo_ has joined #ruby
bronson has joined #ruby
baweaver has joined #ruby
tkuchiki has quit [Remote host closed the connection]
cnngimenez has joined #ruby
sperant has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
ascarter has joined #ruby
<shevy> hmm
<shevy> zenspider is being tortured
wldcordeiro__ has joined #ruby
pabs has quit [Ping timeout: 252 seconds]
pabs has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
IrishGringo has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
marcoamo1 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
hololeap has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
<jesterfraud> I think he's being subjected to a violation of the Geneva convention
petricore has joined #ruby
bronson has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wldcordeiro__ has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
wldcordeiro__ has joined #ruby
RegulationD has joined #ruby
<shevy> just the use of global variables alone is scary
quazimodo has quit [Ping timeout: 256 seconds]
Guest39097 has joined #ruby
damoncasale has joined #ruby
<damoncasale> Okay, I think I'm back now... o.o
wldcordeiro__ has quit [Remote host closed the connection]
sevenseacat has joined #ruby
wldcordeiro__ has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
cnngimenez has quit [Quit: Konversation terminated!]
barhum2013 has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
wldcordeiro__ has quit [Remote host closed the connection]
quazimodo has joined #ruby
yakko is now known as thejamespinto
wldcordeiro__ has joined #ruby
Rickmasta has joined #ruby
Guest39097 has quit [Ping timeout: 250 seconds]
shum has joined #ruby
sdothum has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
northfurr has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
ruby-lang037 has joined #ruby
wldcordeiro__ has joined #ruby
Guest39097 has joined #ruby
oo_ has joined #ruby
phantasm66 has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
leat has quit [Ping timeout: 244 seconds]
northfurr has quit [Client Quit]
northfurr has joined #ruby
dopamean_ has joined #ruby
<shevy> hmm I am looking at old code written by someone else
wldcordeiro__ has quit [Remote host closed the connection]
ruby-lang037 has quit [Ping timeout: 246 seconds]
hinbody has quit [Quit: leaving]
<shevy> or rather
<shevy> this line confuses me
<shevy> if elem === ""
<shevy> why did he do that?
havenwood has joined #ruby
leat has joined #ruby
juanpablo____ has joined #ruby
wldcordeiro__ has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IrishGringo has quit [Ping timeout: 244 seconds]
<Ox0dea> shevy: Could've been an accident, might've been a habit instilled by JavaScript use. That there's another === a few lines down makes the latter seem likely enough.
<Ox0dea> #=== is the same as #== on most native classes, so no real harm done.
juanpablo____ has quit [Ping timeout: 240 seconds]
wldcordeiro__ has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
techsethi has quit [Quit: techsethi]
leat has quit [Remote host closed the connection]
leat has joined #ruby
Guest39097 has quit [Ping timeout: 252 seconds]
Yzguy has joined #ruby
benlovell has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
jesterfraud has joined #ruby
wldcordeiro__ has joined #ruby
freerobby has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
benlovell has quit [Ping timeout: 240 seconds]
mamercad has joined #ruby
lxsameer has quit [Quit: Leaving]
scripore has joined #ruby
dvabr has quit [Ping timeout: 246 seconds]
dvabr has joined #ruby
opensource_ninja has quit [Remote host closed the connection]
Queeniebee has quit [Ping timeout: 244 seconds]
_lexjm has joined #ruby
apeiros has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
opensource_ninja has joined #ruby
oo_ has quit [Remote host closed the connection]
meatherly has quit []
zack6849 has quit [Remote host closed the connection]
Lucky__ has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
riotjones has joined #ruby
apeiros has joined #ruby
Musashi007 has joined #ruby
tmtwd has joined #ruby
wldcordeiro__ has joined #ruby
veduardo has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
Aswebb__ has joined #ruby
northfurr has quit [Quit: northfurr]
jenrzzz has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
dgarstang has quit [Ping timeout: 252 seconds]
JoshGlzBrk has joined #ruby
wldcordeiro__ has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
dbussink has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
vinegar_strokes has joined #ruby
dbussink has joined #ruby
northfurr has joined #ruby
JoshGlzB_ has joined #ruby
JoshGlzB_ has quit [Remote host closed the connection]
wldcordeiro__ has quit [Remote host closed the connection]
damoncasale has quit [Ping timeout: 252 seconds]
techsethi has joined #ruby
oo_ has joined #ruby
bronson has joined #ruby
meatherly has joined #ruby
theery has joined #ruby
JoshGlzBrk has quit [Ping timeout: 272 seconds]
Guest39097 has joined #ruby
diego_ar has joined #ruby
northfurr has quit [Quit: northfurr]
DoctorMonocular has quit [Remote host closed the connection]
wldcordeiro__ has joined #ruby
grenierm has joined #ruby
_lexjm has quit [Quit: zzz...]
meatherly has quit [Client Quit]
RegulationD has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
wldcordeiro__ has quit [Remote host closed the connection]
jcutrell has quit [Quit: jcutrell]
RegulationD has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
holmser has joined #ruby
holmser has quit [Client Quit]
grotewold has joined #ruby
wldcordeiro__ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
wldcordeiro__ has quit [Remote host closed the connection]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
gambl0re has joined #ruby
tkuchiki has joined #ruby
gambl0re has quit [Client Quit]
iamninja has joined #ruby
duoi has quit [Max SendQ exceeded]
bestbrents__ has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 244 seconds]
duoi has joined #ruby
bestbrents__ has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
meatherly has quit []
gambl0re has joined #ruby
dgarstang has joined #ruby
JoshGlzBrk has joined #ruby
vinegar_strokes has left #ruby [#ruby]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
iamninja has quit [Ping timeout: 240 seconds]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro__ has joined #ruby
reprazent has quit [Ping timeout: 268 seconds]
ledestin has joined #ruby
s00pcan has quit [Ping timeout: 240 seconds]
reprazent has joined #ruby
meatherly has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
wldcordeiro__ has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
rakm has joined #ruby
mac_ has joined #ruby
wldcordeiro__ has joined #ruby
CloCkWeRX has joined #ruby
scripore has quit [Ping timeout: 264 seconds]
davedev24 has joined #ruby
juanpablo____ has joined #ruby
holmser has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
diego_ar has quit [Remote host closed the connection]
northfurr has joined #ruby
theta88 has joined #ruby
grotewold has joined #ruby
alakran has joined #ruby
sperant has quit [Quit: Textual IRC Client: www.textualapp.com]
wldcordeiro__ has quit [Remote host closed the connection]
sysanthrope has quit [Quit: No Ping reply in 180 seconds.]
JoshGlzB_ has joined #ruby
JoshGlzBrk has quit [Ping timeout: 268 seconds]
<holmser> I've got 2 arrays. ips[] contains ips, networks[] contains networks. I am wondering if there is a way to use a select statement to iterate through the networks to see if the ip is included in the range.
juanpablo____ has quit [Ping timeout: 252 seconds]
grotewold has quit [Client Quit]
mbff has joined #ruby
sysanthrope has joined #ruby
<Yzguy> .has_key
<Yzguy> networks.has_key(ip)
<Yzguy> something like that
<Yzguy> oh wait thats for hashes, my bad. but same idea
grotewold has joined #ruby
<Yzguy> actually
<Yzguy> there is a library for that
<Yzguy> I just did this at work the other day
hololeap has quit [Ping timeout: 272 seconds]
<holmser> So I'm using IPAddr objects for both arrays
ghr has joined #ruby
dfinninger has joined #ruby
<Yzguy> ok
<holmser> and I can test using network.include?(ip)
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<holmser> I guess I'm just wondering if there is a more rubyish way to do what I'm trying to accomplish
<Yzguy> right
SenpaiSilver has quit [Quit: Leaving]
<holmser> right now I'm doing a nested .each loop
SenpaiSilver has joined #ruby
<Yzguy> can you share the code? in pastebin or something
<holmser> yeah, one sec
duoi has quit [Max SendQ exceeded]
<Yzguy> you know what, let me just open work laptop because I got code that does basically what you want
<Yzguy> because we were using it for puppet, take an array of all the IP addresses a server has, check if they are in the subnets
<Yzguy> to define location
duoi has joined #ruby
<mbff> Question: I am trying to locally install a gem i am working on. Any ideas on why this isn't work? ERROR: While executing gem ... (ArgumentError)
<mbff> string contains null byte
theery has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
tubuliferous has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
JoshGlzB_ has quit [Ping timeout: 250 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unsymbol has quit [Quit: cheerio]
<Yzguy> yeah let me type this up so its not company specifc
<Yzguy> but i think it will get you a little farther
<havenwood> holmser: good_ips = ips.select { |ip| networks.any? { |network| network.include? ip } }
<holmser> havenwood: That's exactly what I was trying to do. Thank you!
<havenwood> holmser: no prob!
dfinninger has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
dfinninger has joined #ruby
mary5030 has joined #ruby
dopie has joined #ruby
<gambl0re> hi havenwood...
<havenwood> hi
barhum2013 has quit [Quit: barhum2013]
<gambl0re> do you remember mne
<havenwood> yup
<gambl0re> you helped me with installing ruby remember..
<ruboto> Yzguy, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/4aad95936b66e47300e0
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
barhum2013 has joined #ruby
<Yzguy> well then
<Yzguy> lmfao
<havenwood> Yzguy: Made a nice Gist for ya though. :)
theery has joined #ruby
<Yzguy> could have been like "Well...eff you, we don't use that */kick*"
<havenwood> Yzguy: Even added syntax highlighting. \o/
<pontiki> hi
<havenwood> pontiki: yo
<havenwood> gambl0re: Your Ruby install working out?
<Yzguy> Yeah the way I did it was because we have multiple blocks of subnets, and we needed to selectively choose what location a server was in based on their IP address
<Yzguy> so each if network.include was to assign a different name
<havenwood> mm
mamercad has quit [Ping timeout: 246 seconds]
<havenwood> mbff: when you gem install it?
<gambl0re> yes its still working...
<havenwood> gambl0re: good!
<havenwood> mbff: downloaded it manually or through RubyGems?
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gambl0re> do you think i should upgrde
<gambl0re> upgrade?
<havenwood> Use Ruby 2.2.3
<gambl0re> im using 4.2.2
<Yzguy> this is basically the code I was talking about
<gambl0re> should i upgrade
<havenwood> gambl0re: That's Rails, yeah?
<havenwood> gambl0re: Or you mean 2.2.2?
<gambl0re> ruby i guess
Musashi007 has quit [Quit: Musashi007]
<havenwood> gambl0re: Ruby 4, you're from the future!
theery has quit [Remote host closed the connection]
<havenwood> gambl0re: Tell us about Ruby's new concurrency primitives! What did they go with?
<havenwood> gambl0re: How do you like the JIT?
<gambl0re> it's good!..
<sevenseacat> lol
<havenwood> yay!!
Musashi007 has joined #ruby
barhum2013 has quit [Quit: barhum2013]
Musashi007 has quit [Client Quit]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
achamian has joined #ruby
chipotle_ has joined #ruby
<mbff> havenwood, rake build
mary5030 has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<mbff> I am developing the gem
veduardo has quit [Quit: WeeChat 0.4.2]
hololeap has joined #ruby
mary5030 has joined #ruby
Fire1o6 has joined #ruby
Fire1o6 has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
chipotle has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
JoshGlzBrk has quit [Remote host closed the connection]
jesterfraud has joined #ruby
renodice has joined #ruby
deansc has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
Rickmasta has joined #ruby
tubuliferous_ has joined #ruby
meatherly has quit []
chipotle has joined #ruby
devoldmx has joined #ruby
benlovell has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
gener1c has joined #ruby
chipotle_ has quit [Ping timeout: 260 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mbff has quit [Ping timeout: 246 seconds]
<havenwood> mbff: If you're not already using latest RubyGems I'd be curious to see if that changes anything: rvm rubygems latest
<havenwood> hem, what would be a good way to check files for a null byte?
gener1c_ has quit [Ping timeout: 260 seconds]
shadoi has quit [Quit: Leaving.]
gix has quit [Ping timeout: 240 seconds]
<havenwood> /\x00/
moeabdol has joined #ruby
deansc has quit [Remote host closed the connection]
bigredboots has joined #ruby
meatherly has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
<havenwood> seen it before with corrupted download
<havenwood> dunno!
braincrash has quit [Quit: bye bye]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
achamian has quit []
GnuYawk has joined #ruby
gix has joined #ruby
bigredboots has quit [Ping timeout: 256 seconds]
altivection has joined #ruby
Queeniebee has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
wildlander has joined #ruby
fschuindt has joined #ruby
jesterfraud has joined #ruby
fedexo has joined #ruby
<fschuindt> How can I remove a specific index from an array? Like a = %w(one two three four).delete(2) results in -> ['one', 'two', 'four']
<shevy> I wonder if we'll have to read something like this about ruby one day
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> so - get younger people!!!
<shevy> havenwood stop aging NOW
<havenwood> shevy: I don't think I'm aging. Pretty sure both my little sisters are older than me now.
altivection has quit [Quit: Textual IRC Client: www.textualapp.com]
<pontiki> fschuindt: did you not just answer your own question?
altivection has joined #ruby
<shevy> havenwood haha
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
<fschuindt> pontiki: Nope. Acctually is .delete_at
<fschuindt> .delete will try to remove by value, not by index
Gribo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
diego_ar has joined #ruby
<cscheib> how is regex grabbing the # in this: http://rubular.com/r/UV9IMUS0xb ?
Musashi007 has joined #ruby
mbff has joined #ruby
diego_ar has quit [Ping timeout: 260 seconds]
<havenwood> cscheib: It thinks the `-` in `\w-_` is a range.
<havenwood> cscheib: http://rubular.com/r/UV9IMUS0xb
<cscheib> ah shit
<mbff> I went offline for a minute there. Hopefully I didn't miss anything.
<havenwood> oops, i linked wrong thing, but yeah escape it
<cscheib> havenwood: thanks!!!
<havenwood> mbff: i just suggested trying with latest RubyGems (rvm rubygems latest) and then mused about how I don't know what's happening but have seen it before with a corrupted gem download
sfr^ has quit [Ping timeout: 246 seconds]
devbug has joined #ruby
<havenwood> mbff: i dunno, but i'd be curious when you figure it out!
ghr has joined #ruby
nahtnam has quit [Ping timeout: 246 seconds]
<havenwood> cscheib: you're welcome!
linc01n has quit [Ping timeout: 246 seconds]
universa1 has quit [Ping timeout: 246 seconds]
nahtnam has joined #ruby
grenierm has quit [Quit: grenierm]
[k- has joined #ruby
dgarstang has quit [Ping timeout: 250 seconds]
<mbff> havenwood, alright thanks as always.
<havenwood> mbff: de nada, sorry no help!
<havenwood> it's a curious one
sanguisdex has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 244 seconds]
sanguisdex has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisarcand has quit [Ping timeout: 244 seconds]
gsingh93 has quit [Ping timeout: 244 seconds]
musl has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 244 seconds]
theery has joined #ruby
musl has joined #ruby
darkxploit has quit [Ping timeout: 268 seconds]
dgarstang has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
segmond has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
Shidash has joined #ruby
<shevy> I see that havenwood has had coffee already, based on the amount of '!' he uses :)
chrisarcand has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
shmilan has quit [Ping timeout: 246 seconds]
gsingh93 has joined #ruby
fedexo has joined #ruby
shmilan has joined #ruby
<sevenseacat> haha
baweaver has joined #ruby
universa1 has joined #ruby
sfr^ has joined #ruby
linc01n has joined #ruby
<[k-> !!!!
weemsledeux has joined #ruby
tmtwd has joined #ruby
segmond has joined #ruby
<sevenseacat> good thing helpa doesnt talk here
riotjones has joined #ruby
meatherly has quit []
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
jesterfraud has joined #ruby
mithrandeer has joined #ruby
meatherly has joined #ruby
fedexo has quit [Ping timeout: 244 seconds]
<nofxx> havenwood, spañol ou português?
riotjones has quit [Ping timeout: 252 seconds]
mithrandeer has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has quit [Quit: Musashi007]
<shevy> a recordacao vai estar pre sempre aonde for
northfurr has quit [Quit: northfurr]
grassdog has joined #ruby
mithrandeer has joined #ruby
darkxploit has joined #ruby
<havenwood> nofxx: splanglish
mithrandeer has quit [Max SendQ exceeded]
mithrandeer has joined #ruby
mithrandeer has quit [Client Quit]
<havenwood> nofxx: i need to work on langs ;)
chipotle has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
<nofxx> shevy, recordação... hard w/o the keyb layout. You guys don't know it (US/UK) but for us with accents mac keyb layout is a godsend. No dead keys, and keeps the layout ibm-102
mistermocha has joined #ruby
<nofxx> havenwood, wish to learn italian or german. Speak spanish and english badly and pt is my mother tongue.
<shevy> nofxx I can't do these characters!
renodice has quit [Ping timeout: 252 seconds]
<nofxx> mac ? alt + c , alt + n a
holmser has quit [Read error: Connection reset by peer]
<shevy> if only I had a mac
<nofxx> or mac layout on linux =D
dfinninger has quit [Remote host closed the connection]
<nofxx> English (Macintosh)
Yzguy has quit [Quit: Zzz...]
Guest43268 has quit [Ping timeout: 250 seconds]
bascht has quit [Ping timeout: 250 seconds]
<shevy> hmm newbie question
Musashi007 has joined #ruby
<pontiki> on linux, you define a compose key and you get nearly the same result
<shevy> Foo.new(ARGV.first) versus Foo.new(ARGV) - which variant would be better? In the past I would have used the first variant (actually, I did use ARGV[0]), but nowadays it seems to just make more sense to have the class itself handle that?
bascht has joined #ruby
mistermo_ has joined #ruby
<nofxx> shevy, later , no doubt
<shevy> The ARGV handling usually came after the "if __FILE__ == etc" part
mistermocha has quit [Read error: Connection reset by peer]
<shevy> yeah that's what I was thinking too
_vision has joined #ruby
<shevy> I have like hundred old scripts that handle ARGV after that if check
_vision is now known as Guest42511
grassdog has quit [Quit: Lingo: www.lingoirc.com]
Rickmast_ has joined #ruby
Rickmasta has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
chipotle_ has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
<baweaver> interesting question: how does one approach creating a database from the ground up?
techsethi has quit [Quit: techsethi]
<Radar> baweaverDB
<baweaver> BeaverDB (shevy)
chipotle has quit [Ping timeout: 246 seconds]
<baweaver> just started thinking about it
<shevy> haha
<Radar> baweaver: You read a shit load about CAP theory and then decide to only implement one of those
<shevy> build the damDB
<baweaver> and realized I know jack all about how to approach it.
<Radar> Oh no wait, that's what Mongo did
<baweaver> heh
<baweaver> Bitcoin thanks them
<baweaver> http://rosettacode.org/wiki/Simple_database - looking about this
bubbys has joined #ruby
<baweaver> Haskell is interesting on there.
<baweaver> Ruby looks like a Java dev got a hold of it.
<shevy> well, you need to be able to store data; and then you need to be able to somehow associate that data, so that you can query only sub-parts from it quickly
RegulationD has quit [Ping timeout: 244 seconds]
<baweaver> storing would be easy enough with some form of marshalling / compression
<baweaver> indexing would be interesting, effectively storing multiple copies of data
<baweaver> could probably treat a column as a separate data structure
<baweaver> encapsulating various meta-information about its contents
<baweaver> well, I say I have no idea, but that's more from 10-15 minutes of thinking really.
<baweaver> Might make a tutorial of designing a database in ruby for jollies
<baweaver> with the explicit warning that it should never touch prod.
<moeabdol> in rspec 3, is it correct to assert that a class raises an exception this way:
<shevy> now you have become a real beaver - you aim to build the big things
<moeabdol> expect(myclass.mymethod).to raise_error(NotImplementedError)
phantasm66 has quit [Ping timeout: 265 seconds]
<baweaver> expect { myclass.mymethod }.to raise_error(NotImplementedError)
<baweaver> ^
<Radar> what baweaver said
bruno- has joined #ruby
<baweaver> block allows it to catch the error
Gribo has quit [Read error: Connection reset by peer]
<baweaver> instead of crashing RSPEC with it.
<baweaver> (well not really, but...)
<[k-> this is because of strict evaluation
<moeabdol> yes! thank you baweaver :)
<baweaver> np mate
<baweaver> go forth and code
charliesome has joined #ruby
prestorium has quit [Ping timeout: 252 seconds]
_djbkd has joined #ruby
Eiam_ has joined #ruby
diego_ar has joined #ruby
juanpablo____ has joined #ruby
iamninja has joined #ruby
<pontiki> baweaver: part of my undergrad CS degree we had to build a simple dbms like that
<baweaver> ooooo
<baweaver> permission to constantly buffet you with questions until I get bored and give up on this?
diego_ar has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
<pontiki> it's a pretty good teaching tool
mistermo_ has quit [Read error: Connection reset by peer]
<pontiki> bear in mind this was nearly 4 decades ago?
<baweaver> fair
<baweaver> just general direction really.
<baweaver> any good books on theory or source code to read about, etc.
<pontiki> read Date
<pontiki> the man, the legend, the relational calculus
<pontiki> srsly, C. J. Date is like the alpha and omega of database stuff
<baweaver> oho, that'll be a good start then
<fschuindt> there's a way to map two array in one hash as key/valeu pair?
<baweaver> Example input and output?
juanpablo____ has quit [Ping timeout: 265 seconds]
<havenwood> >> [:a, :b, :c].zip([1, 2, 3]).to_h
<ruboto> havenwood # => {:a=>1, :b=>2, :c=>3} (https://eval.in/427229)
iamninja has quit [Ping timeout: 260 seconds]
<fschuindt> %w(name age sex) + %w(john 19 male)
<fschuindt> havenwood: thank you
<baweaver> you want a column system don't you
oo_ has joined #ruby
<baweaver> that's going to be slow like that
<fschuindt> I want to sleep to be honest :/
skade has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
MVPhelp has quit [Ping timeout: 265 seconds]
MVPhelp_ has joined #ruby
mistermocha has joined #ruby
<baweaver> but more as an application of database than creating one.
Guest39097 has quit [Ping timeout: 265 seconds]
inty has joined #ruby
jcdesimp has quit [Quit: Leaving...]
shmilan has quit [Ping timeout: 246 seconds]
darkf has joined #ruby
<inty> Hello. Why ˆ(From|Subject|Date): doesn't find me all "From:", "Subject:" and "Date:" from file?
<pontiki> you're more looking to creating a dbms for this tutorial, not just creating a database, right?
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<baweaver> kinda all of the above really, just experimenting about
renodice has joined #ruby
<baweaver> inty: rubular.com
<inty> baweaver: Thanks
<pontiki> learning good SQL programming is a more immediately applicable skill for people, methinks. learning how to create a dbms is good for learning indirectly applicable programming, ds, and so on
<nofxx> inty, all as in it's finding one? are you using #scan ?
<baweaver> The prior I'm toying with.
<baweaver> This is more of a curiosity than a serious application
<baweaver> I just thought how would I create a DBMS and came up annoyingly empty
<pontiki> sure
<baweaver> I like to at least know where I can find out how to do something
<pontiki> of course
<baweaver> That, and it might be a fun Scala exercise later for kicks if I really get bored.
<pontiki> that's it, really, isn't it? i learn so much when i just goof around with stuff cos i'm bored
Swappticon has joined #ruby
<pontiki> when i'm working too hard, i feel like i stop learning
<baweaver> heh, more than I'd like to admit to
<baweaver> which is why I choose something so out there I cannot possibly tie it to work.
<pontiki> i don't know, i think it's worthy of celebrating that; this is what making shit is all about
<pontiki> my friend just built herself *another* laser
konsolebox has joined #ruby
<pontiki> solid state, visible beam
<baweaver> fair, that's what got me into: painting, guitar, piano, writing, singing, drawing, cartooning, et al
<pontiki> yep yep
<baweaver> literally just a reaction of "that sounds fun!"
<pontiki> i feel i need to make *something* every day just to stay sane
<pontiki> so it's survival for me as well
<baweaver> probably more fun being a contractor or short-term project type then.
<baweaver> hard to get stale like that.
<pontiki> yep. that's what i told your boss finally, today
<baweaver> figured
<shevy> please stay sane pontiki
<pontiki> baweaver: PM?
<shevy> don't give in to monads!
<baweaver> shoot
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 260 seconds]
eones has joined #ruby
<inty> nofxx: I'm curious, because egrep (command line tool) and Rubular shows correct answer, while http://www.regexr.com/ shows only "From:"
deg__ has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
theery has quit [Remote host closed the connection]
mutuma has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mistermocha has joined #ruby
JohnBat26 has joined #ruby
fschuindt has quit [Quit: WeeChat 1.2]
mleung has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
mrityunjay has joined #ruby
deg_ has joined #ruby
majjoha has joined #ruby
Guest39097 has joined #ruby
sevenseacat has joined #ruby
<inty> nofxx: I'll stick with egrep, because those on-line tools act different
ranchodev has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
skade has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
dagda1 has quit [Ping timeout: 260 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
altivection has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
dagda1 has joined #ruby
iateadonut has joined #ruby
<nofxx> inty, most of those are JS regex, rubular.com is ruby regex. Should behave exactly as ruby
skade has quit [Client Quit]
<nofxx> also ot, check out `ag` the silver searcher. way faster than grep
chipotle_ has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
ap4y has quit [Remote host closed the connection]
<eam> iateadonut: you need /m
<eam> er, inty ^^
meatherly has quit []
al2o3-cr1 has joined #ruby
_djbkd has quit [Quit: My people need me...]
<eam> inty: my guess is you're matching on a string with newlines, like "From: abc\nSubject: xyz\n"
<inty> eam: Thanks
<eam> the ^ only matches after the \n with that modifier
superrorc has quit [Ping timeout: 256 seconds]
<eam> regexer will show it to you in "flags" if you click on that
<eam> inty: btw, grep -P will test syntax closest to ruby (PCRE)
<eam> egrep or grep -E isn't quite the same language -- it's extended posix
<eam> parens do the same thing, but some other features differ
arescorpio has joined #ruby
<eam> grep is inherently line-based, the first thing it does is split input lines, so the behavior here is implicitly different
al2o3-cr has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mleung has quit [Quit: mleung]
bronson has joined #ruby
theta88 has quit [Quit: leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mrityunjay> join #memcached
<pontiki> no
<mrityunjay> join #memcached
<baweaver> !mute mrityunjay
<baweaver> bye
hololeap has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
wookiehangover has quit [Ping timeout: 244 seconds]
quazimodo has joined #ruby
renodice has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 265 seconds]
<shevy> hehe
<eam> shevy: what's up
mistermocha has joined #ruby
arescorpio has quit [Quit: Leaving.]
meatherly has quit []
pawnbox has joined #ruby
Aswebb__ has quit [Remote host closed the connection]
wookiehangover has joined #ruby
Guest39097 has quit [Ping timeout: 265 seconds]
dgarstang has quit [Ping timeout: 264 seconds]
Aswebb_ has joined #ruby
war_pigs has joined #ruby
meatherly has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
techsethi has joined #ruby
Musashi007 has joined #ruby
<Aeyrix> who even cares
<Aeyrix> about memcached
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<Aeyrix> baweaver: it just occurred to me
<Aeyrix> that the user was trying to /join
<Aeyrix> lmao
<baweaver> ...hmm
konsolebox has quit [Ping timeout: 250 seconds]
<baweaver> well then
<baweaver> !unmute mrityunjay
<baweaver> mrityunjay: it's /join #channel
inty has quit [Quit: Leaving]
<baweaver> that explains a bit
riotjones has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> hashtag memcached, hashtag cached, hashtag only two hard problems in computer science, hashtag one is joining irc chatrooms
<[k-> off by slash error
<eam> ^^ that's how the kids do the internet these days right
oo_ has quit [Remote host closed the connection]
jstodberg has joined #ruby
shum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ghr has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
Aswebb_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
* baweaver might be a tinge tired.
mistermo_ has quit [Read error: Connection reset by peer]
<baweaver> don't tired and op folks
psy_ has quit [Read error: Connection reset by peer]
<sevenseacat> :P
dhjondoh has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 244 seconds]
techsethi has quit [Ping timeout: 268 seconds]
speakingcode has quit [Ping timeout: 244 seconds]
Guest39097 has joined #ruby
bluOxigen has joined #ruby
sigurding has joined #ruby
mistermocha has joined #ruby
jacksonmills has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
mbff has quit [Quit: Leaving]
blueOxigen has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 265 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
gambl0re has quit [Ping timeout: 252 seconds]
bubbys has joined #ruby
armyriad has joined #ruby
ruby-lang636 has joined #ruby
<ruby-lang636> anyone there/
<ruby-lang636> ?
nisstyre has quit [Read error: Connection reset by peer]
<sevenseacat> no.
<[k-> In a land of mysteries, the first thing you do is to look around, not ask if someone is there
chussenot has joined #ruby
oo_ has joined #ruby
<ruby-lang636> haha
mleung has joined #ruby
ruby-lang636 has left #ruby [#ruby]
skade has joined #ruby
freerobby has quit [Quit: Leaving.]
dopie has quit [Ping timeout: 265 seconds]
meatherly has quit []
dcarmich has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
lampshades has joined #ruby
mistermocha has joined #ruby
dopie has joined #ruby
swgillespie has joined #ruby
mleung has quit [Quit: mleung]
pietr0 has quit [Quit: pietr0]
Macaveli has joined #ruby
mleung has joined #ruby
deg_ has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
Lucky__ has joined #ruby
superrorc has joined #ruby
tagrudev has joined #ruby
chussenot has joined #ruby
dgutierrez1287 has joined #ruby
unsymbol has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
rubie has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
superrorc has quit [Max SendQ exceeded]
jackjackdripper has quit [Client Quit]
DoubleMalt has joined #ruby
superrorc has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
speakingcode has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
Aswebb_ has joined #ruby
dionysus69 has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
swgillespie has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
bigredboots has joined #ruby
mistermocha has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohaibbq has joined #ruby
bruno- has joined #ruby
ksteck has quit [Ping timeout: 256 seconds]
claw has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
claw has joined #ruby
lkba has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
bruno- has quit [Ping timeout: 244 seconds]
tokik_ has quit [Quit: leaving]
mistermocha has quit [Read error: Connection reset by peer]
tokik has joined #ruby
deg_ has joined #ruby
mistermocha has joined #ruby
juanpablo____ has joined #ruby
minimuffins has joined #ruby
TvL2386 has joined #ruby
riotjones has joined #ruby
bigredboots has quit [Remote host closed the connection]
bazbing80 has quit [Ping timeout: 244 seconds]
scepticulous is now known as X-ray-D
X-ray-D is now known as XrayD
juanpablo____ has quit [Ping timeout: 268 seconds]
michael_mbp has quit [Excess Flood]
Musashi007 has quit [Quit: Musashi007]
tvw has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
jordanloky has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
Blaguvest has quit []
michael_mbp has joined #ruby
tabakhase has quit [Ping timeout: 250 seconds]
mac_ has quit [Quit: This computer has gone to sleep]
michael_mbp has quit [Excess Flood]
mistermocha has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
weemsledeux has joined #ruby
startupality has quit [Quit: startupality]
michael_mbp has joined #ruby
chussenot has quit [Quit: chussenot]
pawnbox has quit [Remote host closed the connection]
mistermocha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
michael_mbp has quit [Excess Flood]
charliesome has joined #ruby
michael_mbp has joined #ruby
ghr has joined #ruby
amclain has quit [Quit: Leaving]
eGGsha has joined #ruby
iamninja has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jesterfraud has joined #ruby
pawnbox has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
ghr has quit [Ping timeout: 250 seconds]
yfeldblu_ has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
michael_mbp has joined #ruby
emilkarl has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
timonv has joined #ruby
arup_r has joined #ruby
Cust0sLim3n has quit [Ping timeout: 246 seconds]
minimuffins has quit [Ping timeout: 255 seconds]
claw has quit [Ping timeout: 272 seconds]
mordocai has quit [Remote host closed the connection]
claw has joined #ruby
astrobun_ has joined #ruby
<[spoiler]> morning
bronson has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
mistermocha has quit [Read error: Connection reset by peer]
mrityunjay has quit [Ping timeout: 250 seconds]
jgt3 has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
yfeldblum has joined #ruby
khebbie has joined #ruby
leat has joined #ruby
mistermocha has joined #ruby
<nofxx> Anyone using fabricator? need an attribute from a relative, looks like relatives are build after... is there some way to force em? on_init {} ?
majjoha has quit [Ping timeout: 240 seconds]
PlasmaStar has quit [Ping timeout: 244 seconds]
JoshuaPaling has joined #ruby
yfeldblu_ has joined #ruby
Meeh has quit [Read error: Connection reset by peer]
Meeh has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
jesterfraud has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Macaveli has quit [Client Quit]
solars has joined #ruby
dc_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc_ has quit [Remote host closed the connection]
dc_ has joined #ruby
mrityunjay has joined #ruby
Pathfinder has quit [Ping timeout: 264 seconds]
davedev24 has quit []
mistermocha has joined #ruby
rushed has joined #ruby
ruby-lang857 has joined #ruby
Macaveli has joined #ruby
<ruby-lang857> hy
ruby-lang857 has quit [Client Quit]
<nofxx> ops, nevermind. Typo. It works.
mago0 has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Remote host closed the connection]
richo has joined #ruby
greenarrow has joined #ruby
<richo> hi, is this a reasonable place to ask about the C api?
yfeldblu_ has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
yfeldblum has joined #ruby
<Radar> richo: Sure, fire awway
Musashi007 has joined #ruby
<richo> I'm trying to interact with a toplevel class, I know about rb_const_get and friends but they seem to insist on taking an object to explore from
<richo> tl;dr how do I get a VALUE without resorting to something awful like rb_eval_string("::Whatever")
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
chussenot has joined #ruby
kies has joined #ruby
mistermocha has joined #ruby
codecop has joined #ruby
<richo> aha, rb_path2class
benlovell has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
RegulationD has joined #ruby
jas02 has joined #ruby
sphex has quit [Read error: Connection reset by peer]
dumdedum has joined #ruby
chussenot has quit [Ping timeout: 260 seconds]
majjoha has joined #ruby
tabakhase has joined #ruby
benlovell has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
oo__ has joined #ruby
devbug has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
jgt3 has quit [Ping timeout: 246 seconds]
auzty has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 268 seconds]
Queeniebee has quit [Ping timeout: 240 seconds]
null__ has joined #ruby
husanu has joined #ruby
sphex has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
aganov has joined #ruby
ghr has joined #ruby
araujo has quit [Ping timeout: 250 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
stan has joined #ruby
chipotle has quit [Quit: cheerio]
cloudbud has joined #ruby
<cloudbud> what is the meaning of default["ohai"]["plugins"]["ohai"] = "plugins"
<cloudbud> in ruby
chussenot has quit [Quit: chussenot]
<cloudbud> can anybody expplain the syntax of the same
ghr has quit [Ping timeout: 250 seconds]
husanu has quit [Remote host closed the connection]
darkxploit has quit [Ping timeout: 264 seconds]
<Radar> cloudbud: What do you think it does?
husanu has joined #ruby
mistermocha has joined #ruby
araujo has joined #ruby
<cloudbud> Radar : its a three d array, but i dont know how it works. How to read this
<Radar> cloudbud: It's not an array, it's a Hash.
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> cloudbud: what Ruby tutorial are you following?
rdark has joined #ruby
<cloudbud> jhass : i am actually using chef. reading some cookbook. so was wondering
<cloudbud> Radar : can you explain a hash in ruby so that i have a little idea
<jhass> What's your background? What languages do you know well?
ohaibbq has quit [Remote host closed the connection]
eGGsha is now known as eGGshke
<jhass> s/2.0.0/2.2.3/ :P
<Radar> Yeah, that was just the first result on the googles.
ohaibbq has joined #ruby
<jhass> your google is weird :P
<Radar> yup
<jhass> ugh, they didn't even upload for 2.2.3
<jhass> cloudbud: so, anything we can relate to?
<cloudbud> reading
kies has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
<cloudbud> can you explain this default["ohai"]["plugins"]["ohai"] = "plugins"
terlar has joined #ruby
<sevenseacat> yes, its setting a value in a hash
<jhass> cloudbud: it'd be much easier if we can relate to any background you may have
<cloudbud> jhass : can you frame any normal example of hash
<Radar> cloudbud: Please spend 5 mins reading http://docs.ruby-lang.org/en/2.2.0/Hash.html
<Radar> You will learn.
robbyoconnor has joined #ruby
ohaibbq has quit [Ping timeout: 244 seconds]
allomov has joined #ruby
<jhass> cloudbud: since you don't answer my question I have to assume you have none, thus I'd advise you to start reading https://pine.fm/LearnToProgram/
Mendenhall has quit [Ping timeout: 264 seconds]
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby
<janno> cloudbud: this is basically what you have: { "ohai": { "plugins": { "ohai": "plugins" } } }
<cloudbud> janno : can you explain this a lil bit
<jhass> chef is the new rails, tons of people thrown into it/starting out with it are confronted with Ruby code without knowing a bit about Ruby
mistermocha has quit [Read error: Connection reset by peer]
<janno> hash is collection, where you can define keys, which has values. You are setting value 'plugins' inside nested hash
Mendenhall has joined #ruby
eGGshke is now known as eGGsha
monoprotic has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
bronson has joined #ruby
lampshades has quit [Remote host closed the connection]
chussenot has joined #ruby
darkxploit has joined #ruby
moeabdol has joined #ruby
emilkarl has quit [Quit: emilkarl]
moeabdol has quit [Client Quit]
bronson has quit [Ping timeout: 246 seconds]
mistermocha has quit [Read error: Connection reset by peer]
chussenot has quit [Client Quit]
joostliketoast84 has joined #ruby
chussenot has joined #ruby
bruno- has joined #ruby
pawnbox has joined #ruby
rushed has quit [Ping timeout: 240 seconds]
diego_ar has joined #ruby
joonty has joined #ruby
jordanloky has joined #ruby
[k- has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
mrityunjay has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 268 seconds]
mistermocha has joined #ruby
UtkarshRay has joined #ruby
diego_ar has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
joostliketoast84 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mbuf has joined #ruby
<mbuf> the :silence => [%r{^/assets/}] in https://github.com/stve/silencer regex syntax match is not valid in Ruby 1.9.3?
Musashi007 has quit [Quit: Musashi007]
<mbuf> how should it be re-written?
juanpablo____ has joined #ruby
<apeiros> 19>> {:silence => [%r{^/assets/}]}
<ruboto> apeiros # => {:silence=>[/^\/assets\//]} (https://eval.in/427294)
<apeiros> mbuf: perfectly valid in 1.9
<mbuf> apeiros: it doesn't seem to work with silencer when I use regex though
<apeiros> that's an entirely different thing than "is not valid"
<mbuf> apeiros: agreed
<apeiros> but I'm sorry, I can't really help with "doesn't seem to work"
UtkarshRay has quit [Remote host closed the connection]
rushed has joined #ruby
UtkarshRay has joined #ruby
Obfuscate has quit [Ping timeout: 240 seconds]
<shevy> mbuf he wants a code sample where it does not work :)
CloCkWeRX has quit [Quit: Leaving.]
mistermocha has quit [Read error: Connection reset by peer]
juanpablo____ has quit [Ping timeout: 255 seconds]
<apeiros> I don't know what I'd want at this point. but "doesn't seem to work" isn't actionable information.
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
mistermocha has joined #ruby
oo_ has quit [Remote host closed the connection]
<mbuf> apeiros: the regex is not matching /health and //health, and I still see the requests in the logs
scripore has joined #ruby
oo_ has joined #ruby
<mbuf> apeiros: I have now explicitly added them to :silence => ["/health", "//health"], and it works fine
<mbuf> apeiros: also upgraded to 1.0.0.rc3 silencer gem
<shevy> now apeiros is very happy
livathinos has joined #ruby
skade has joined #ruby
Obfuscate has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
chussenot has quit [Quit: chussenot]
lipoqil has joined #ruby
Iskarlar has joined #ruby
<jhass> how would ^/assets/ match /health ...
TheHodge has joined #ruby
jgt3 has joined #ruby
<sevenseacat> :D
dc_ has quit [Remote host closed the connection]
skade has quit [Ping timeout: 246 seconds]
dc_ has joined #ruby
dc_ has quit [Client Quit]
<cloudbud> what is a gemfile in ruby
<jhass> cloudbud: http://bundler.io
RegulationD has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
_djbkd has joined #ruby
krisquigley has joined #ruby
Spami has joined #ruby
<apeiros> mbuf: why should %r{^/assets/} match "/health"?
RegulationD has quit [Ping timeout: 272 seconds]
<jhass> heh, I already poked the fun, you come too late
<jhass> mbuf: they both contain /, a, e & t!
<jhass> er apeiros ^
<apeiros> jhass: yeah, reading top to bottom, only just now seen yours
mistermocha has joined #ruby
rakm has joined #ruby
<jhass> that's 4/7 > 50%, should be good enough!
<apeiros> jhass: right. =~ means "something somewhat like this"
<[spoiler]> equalish
<[spoiler]> can we call it equalish, please? :D
<apeiros> in today's wtf: 6 iteration of "send the same SOAP request example" to our partner after they told me to "please test again, it should work now"
<apeiros> what. the. fuck. do they do to verify that it should be working? it's an identical request every time?!?
<jhass> just while true; do; ./test.sh; mail partner@example.com "No"; sleep 1800; done ?
<[spoiler]> lmao
<nofxx> someone is not writing their home work tests
<apeiros> jhass: we're about to do that with the same partner for a different problem
<[spoiler]> I keep reading "partner" as "parent"
<apeiros> one of the soap services is to reset passwords, and we have to send a new temp password with it. we've got a whitelist of characters which are allowed. just that it's not correct.
<apeiros> some of the whitelisted chars don't work
<apeiros> and they're at this for now well over a year.
<[spoiler]> Kinda sounds funny when you read it with partner
iamninja has joined #ruby
<[spoiler]> It looks like apeiros is a child raising his parents
<apeiros> the level of incompetence is stupefying
mistermocha has quit [Read error: Connection reset by peer]
<apeiros> I'm looking forward to the conf-call we'll have in an hour. I wonder how they'll answer my questions…
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> will probably be a lesson in how to be evasive and vague
<apeiros> maybe also an expert lesson in how to shift blame
jstodberg has quit [Quit: Leaving]
<shevy> grab cookies and stuff them with them before you do the interrogation
_djbkd has quit [Quit: My people need me...]
iamninja has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
<mbuf> jhass: apeiros the code uses assets, I used health
<apeiros> mbuf: so?
<mbuf> jhass: apeiros just saying
<[spoiler]> mbuf: I don't understand
<apeiros> mbuf: we can't help you if you show code which is unrelated to your problem
lkba has quit [Ping timeout: 244 seconds]
iamninja has joined #ruby
mistermocha has joined #ruby
emilkarl has joined #ruby
<mbuf> apeiros: okay
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[spoiler]> [on phone] Me: "What's your email?"; Client: "#{@firstname} ... "; Me: "... Okay, next?" Client: "It's just #{@firstname}."
<apeiros> mbuf: and honestly it's quite annoying if you do such a bad job at presenting your problem. you're burning goodwill that way.
moeabdol has quit [Quit: WeeChat 1.3]
<mbuf> apeiros: have a nice day
<apeiros> you too
Iskarlar has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<[spoiler]> mbuf: apeiros is old and grumpy so don't mind the attitude, but he does have a point. You should present your problem with more information
ghr has joined #ruby
<mbuf> [spoiler]: later
<apeiros> accurate information also helps
dcarmich has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
benlovell has joined #ruby
lxsameer has joined #ruby
mengu has joined #ruby
araujo has quit [Quit: Leaving]
k3asd` has joined #ruby
mrityunjay has joined #ruby
zacts has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
araujo has joined #ruby
zacts has joined #ruby
Hounddog has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
sigurding has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
senayar has joined #ruby
mistermocha has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chthon has joined #ruby
Musashi007 has joined #ruby
mengu has quit [Remote host closed the connection]
moeabdol has joined #ruby
einarj has joined #ruby
jimms has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
oo_ has quit [Remote host closed the connection]
Iskarlar has joined #ruby
chussenot has quit [Client Quit]
Pathfinder has joined #ruby
skade has joined #ruby
chussenot has joined #ruby
oo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
dopie has quit [Quit: This computer has gone to sleep]
benlovell has joined #ruby
quazimodo has quit [Remote host closed the connection]
mistermocha has joined #ruby
diego_ar has joined #ruby
mkosaki has quit [Quit: Leaving...]
gabord has joined #ruby
gabord has left #ruby ["WeeChat 1.1.1"]
mistermocha has quit [Read error: Connection reset by peer]
diego_ar has quit [Ping timeout: 246 seconds]
vmatiyko has joined #ruby
mprelude has joined #ruby
Voker57 has joined #ruby
ERIK_ has quit [Read error: Connection reset by peer]
code1o6 has quit [Read error: Connection reset by peer]
chussenot has quit [Quit: chussenot]
mistermocha has joined #ruby
mengu has joined #ruby
DLSteve has joined #ruby
stardiviner has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
pabs has quit [Ping timeout: 240 seconds]
sdfgsdfg has joined #ruby
DLSteve has joined #ruby
jgt3 has quit [Quit: WeeChat 1.2]
Cust0sLim3n has joined #ruby
jgt has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
mistermocha has quit [Read error: Connection reset by peer]
jgt has quit [Client Quit]
eGGsha is now known as eGGshke
Musashi007 has quit [Quit: Musashi007]
devoldmx has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 244 seconds]
jgt has joined #ruby
DLSteve has joined #ruby
ndrei has joined #ruby
pabs has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sirhcjw has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
jds has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
lxsameer has quit [Quit: Leaving]
eGGshke is now known as eGGsha
bruno- has joined #ruby
<jds> I've been trying to profile some slow rspec/rails specs to see where all the time is being spent, but the resulting call graph is pretty incomprehensible - I'm basically just seeing a lot of cyclic calls to instance_exec & Proc.call. Any tips?
arup_r has quit [Remote host closed the connection]
marr has joined #ruby
psteyn has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
<psteyn> Hi guys, I'm trying to get the current timezone as a number range
<psteyn> As in:
<psteyn> 2.2.2 :010 > Time.now.to_s.split('+')[1]
<psteyn> => "0200"
<psteyn> Is there a better way to do so?
<psteyn> Time.now.zone gives me 'SAST'..which is '+0200', but I need it in that format
Spami has joined #ruby
<jhass> >> Time.now.utc_offset / 3600
<ruboto> jhass # => 0 (https://eval.in/427337)
scripore has quit [Quit: This computer has gone to sleep]
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
<jhass> >> require "time"; Time.now.strftime("%z")
<ruboto> jhass # => "+0000" (https://eval.in/427339)
<jhass> psteyn: depending on what for either of those two
<psteyn> 2.2.2 :002 > Time.now.getlocal("SAST")
<psteyn> ArgumentError: "+HH:MM" or "-HH:MM" expected for utc_offset
<psteyn> I pretty much want to pass the +02:00 to time.now.getlocal()
yeticry has quit [Quit: leaving]
<psteyn> in a clean way
dhjondoh has quit [Quit: dhjondoh]
<psteyn> ah, perfect. thank you jhass!
<psteyn> Time.now.strftime("%z")
lxsameer has joined #ruby
lxsameer has joined #ruby
<jhass> >> require "time"; Time.now.strftime("%:z")
<ruboto> jhass # => "+00:00" (https://eval.in/427340)
<jhass> note ^
<psteyn> :)
<jhass> ?guys psteyn ;)
<ruboto> psteyn, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
stardiviner has joined #ruby
DLSteve has joined #ruby
[k- has joined #ruby
leat has quit [Remote host closed the connection]
<psteyn> lol kk
leat has joined #ruby
<yorickpeterse> morning
DLSteve has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 252 seconds]
momo-reina has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> psteyn: btw if it's for getting something to compare to, it's probably easier to just .utc both
psteyn has quit [Read error: Connection reset by peer]
__main__ has quit [Read error: Connection reset by peer]
JoshuaPaling has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
DLSteve has quit [Read error: Connection reset by peer]
DexterLB has quit [Read error: Connection reset by peer]
anisha has joined #ruby
chussenot has joined #ruby
Timba-as has joined #ruby
psteyn has joined #ruby
<psteyn> Hi again y'all
__main__ has joined #ruby
jgt has quit [Read error: Connection reset by peer]
<jhass> hey
<jhass> repeating since I doubt you got it last time:
<psteyn> 2.2.2 :004 > Time.now.strftime("%z")
<psteyn> => "+0200"
<jhass> psteyn: btw if it's for getting something to compare to, it's probably easier to just .utc both
jgt has joined #ruby
<psteyn> But tolocal expects "+02:00"
<psteyn> note the colon
<psteyn> whats a clean way to convert "+0200" into "+02:00"
<jhass> uh, did you overlook my last example which you replied ":)" to?
<psteyn> (it's not for comparing)
<psteyn> ahhhhh
<psteyn> Time.now.strftime("%:z")
<psteyn> :)
JoshuaPaling has joined #ruby
<psteyn> thank you jhass
oo_ has quit [Remote host closed the connection]
<jhass> yw
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DexterLB has joined #ruby
<Timba-as> This is probably a simple question; When I inspect an object I see a variable like so: #<Object @data={:foo => 'bar'}>>, I need to get the value of data but when using '.data' on the variable it says it's an undefined method..
oo_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<jhass> Timba-as: then the author of Object (is it literally Object? I hope not!) didn't mean you to get it directly
<canton7> heh, looks like ruby...
<canton7> Timba-as, do you have the source of this object?
<jhass> Timba-as: so first, is it really Object? or some other class we can look at the docs of?
DLSteve has joined #ruby
<Timba-as> @canton7 It is actually #<RubyPushNotifications::APNS::APNSNotification:0x00000106f2da58>
<canton7> you're calling ruby from C#?
<jhass> so, that's the docs
lampshades has joined #ruby
<Timba-as> @canton7 I'm using rails via console
<jhass> next, up, why do you need to access @data directly? What do you need to do?
khebbie has quit [Ping timeout: 268 seconds]
solocshaw has joined #ruby
toomanytims has joined #ruby
juanpablo____ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<Timba-as> @jhass As you can see it's for sending push notifications, so in this data variable I stored the Notification id equal to the one in my db, so that after sending I can update the status to failed/success
startupality has joined #ruby
sgambino has joined #ruby
<jhass> I see there's an attribute reader for results in the docs, what does it return?
<jhass> it says "The corresponding object with the results from sending this notification that also will respond to #success, #failed and #individual_results" in the docs, so also dive into .individual_results
DLSteve has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 256 seconds]
dhjondoh has joined #ruby
arup_r has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
<canton7> Timba-as, wait... rails via console. So you're reading the standard output of the 'rails console' command?
bruno- has joined #ruby
<canton7> aah, I'm in a different channel th what I thought I was. that explains the language mixup ><
<Timba-as> @jhass I already find the status of the push by reading the success/failed counters. Now I just need to update the connected notification-record by tracing back the id.
husanu has quit [Remote host closed the connection]
emilkarl has quit [Quit: emilkarl]
wildlander has quit [Quit: Saliendo]
husanu has joined #ruby
<jhass> so answer my questions, what does individual_results return?
pawnbox has quit [Remote host closed the connection]
<jhass> I never worked with the gem and I doubt you're lucky to find somebody that did, so I can only guide you through digging through it
oo_ has joined #ruby
dorei has joined #ruby
leafybasil has quit [Ping timeout: 272 seconds]
solocshaw has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
chussenot has quit [Quit: chussenot]
<Timba-as> @jhass I understand, I have an expectation of what individual_results will return. The gem is setup like this, create a bunch of notifications (APNSNotification) and send them all with the APNSPusher. Each APNSNotification can be send to multiple devices (hence individual_results). The way I implement it, is I always send an APNSNotification to one device only. I will check to
<Timba-as> see what individual_results will return, one moment..
psteyn has quit []
UtkarshRay has quit [Remote host closed the connection]
<Timba-as> @jhass Heheh, individual_results returns: 8
Soda has joined #ruby
<jhass> wat
<jhass> docs say it returns an array
<jhass> .results.individual_results, yeah?
<Timba-as> @jhass You are right, it's actually [8]
<jhass> I guess that's one of the error codes then, meh
<Timba-as> puts logs it as 8, but when using inspect I get this: #<RubyPushNotifications::APNS::APNSNotification:0x000001033e7e08 @tokens=["fake-token"], @data={:aps=>{:alert=>nil, :badge=>10, :sound=>"true", :id=>36}}, @encoded_payload="\x02\x008{\"aps\":{\"alert\":null,\"badge\":10,\"sound\":\"true\",\"id\":36}}", @results=#<RubyPushNotifications::APNS::APNSResults:0x000001093707a8
<Timba-as> @individual_results=[8], @success=0, @failed=1>>
Mendenhall has quit [Ping timeout: 246 seconds]
naftilos76 has joined #ruby
<jhass> how do you construct the array you pass to .push?
damoncasale has joined #ruby
<jhass> do you happen to have an array with the ids you map over for example?
OrbitalKitten has joined #ruby
petricore has joined #ruby
charliesome has joined #ruby
pawnbox has joined #ruby
<jhass> Timba-as: okay, I would suggest you change self.push_new_notifications to return [n.id, n.push_notification] in the collect call, then pass pusher.push notifications.map(&:last) and do notifications.each do |id, notification| to evaluate the results
damoncasale has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 265 seconds]
<jhass> Or maybe even defer mapping out .push_notification to pusher.push notifications.map(&:push_notification) and keep it memorized so you can collect the result by calling it again
darkxploit has quit [Ping timeout: 265 seconds]
<jhass> to sum up I wouldn't hack into the gems internals to recover the id, I'd change the code to explicitly pass it around in an accessible way
<Timba-as> @jhass I see, you're right, that's way better! Thanks!
<Timba-as> @jhass It's not even that much different
<Timba-as> @jhass Momorizing the PushNotification would be something like @apn ||= APNSNotification.new right?
<jhass> yes, I'd go for the verbose name there @apns_notification
khebbie has joined #ruby
ndrei has joined #ruby
<Timba-as> @jhass instead of push_notification?
<jhass> for the variable name to memorize it
Guest39097 has quit [Quit: WeeChat 1.2]
pusewicz_ has joined #ruby
<jhass> the three idioms for multiline memorization are @foo = build_foo; @foo = Foo.new(...).tap do |foo|; foo.bar(...) end; and @foo = begin; foo = Foo.new(...); foo.bar(...); foo; end;
krisquigley has quit [Remote host closed the connection]
<jhass> er well, ||= in each case of course
leafybasil has joined #ruby
<[k-> memoize*
pusewicz has quit [Disconnected by services]
Averna has joined #ruby
pusewicz_ is now known as pusewicz
<Timba-as> @jhass Funny, never used the tap method before, it seems pretty neat.. The first (with 'build_foo') would have my preference I think..
sevenseacat has quit [Quit: .]
<cloudbud> what does this mean in ruby
<cloudbud> default => {'ohai' => 'plugins'}
<jhass> yeah, for this case it's better
<jhass> Timba-as: http://paste.mrzyx.de/p3a5jjejt so two variants
Rollabunna has joined #ruby
<jhass> cloudbud: it's a hash
<jhass> cloudbud: you should read a ruby tutorial
skade has quit [Ping timeout: 264 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
<Timba-as> @jhass I've implemented the latter, it seems more rubyish, feels better to me anyway
andikr has joined #ruby
<jhass> Timba-as: iirc in Rails you could also do def self.push; notifications = scoped; ....; end; and Notifications.queued.push
<jhass> or something into that direction
Rickmasta has joined #ruby
<jhass> or maybe it wasn't scoped but simply relying on implicit self and it would take the current scope into account or something, I don't quite remember
voxxit has joined #ruby
<cloudbud> what is a gem
<jhass> a Ruby library
<jhass> distributed via https://rubygems.org, installable via the shipped package manager rubygems which exposes the gem command
<Timba-as> @jhass It seems scoped is deprecated in Rails 4, or am I looking at the wrong scoped method?
stamina has joined #ruby
<jhass> another thing which should be covered by every basic Ruby tutorial btw
<jhass> Timba-as: no it might be, as said I don't quite be the specifics, might be that implicit all or self take it into account
<jhass> er, don't quite remember
f4cl3y has joined #ruby
<jhass> but it's not that important I guess, explicit passing is fine too
leat has quit [Remote host closed the connection]
<Timba-as> @jhass I see, I'll look it up, I like to know about the different options to choose of, really need to get in the naming of all this stuff
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabun_ has joined #ruby
leat has joined #ruby
<Timba-as> @jhass I'm Dutch so it's a bit harder to remember it all ;-)
<Timba-as> Anyway, I think this feature is ready to be tested! Thanks for your help!
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
<workmad3> Timba-as: regarding 'deprecated'... are you by any chance looking @ apidock?
<workmad3> Timba-as: and that blue box which says "This method is deprecated or *moved* in a later version"?
Rollabunna has quit [Ping timeout: 255 seconds]
<workmad3> (emphasis added to a very important part of the message given)
Meow-J has quit [Quit: Connection closed for inactivity]
bayed has joined #ruby
charliesome has joined #ruby
Iskarlar has joined #ruby
PlasmaStar has joined #ruby
krisquigley has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
schfkt has joined #ruby
Anthony__ has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
Kallis has joined #ruby
schfkt has quit [Quit: Leaving.]
mbuf has quit [Ping timeout: 252 seconds]
Kallis has quit [Max SendQ exceeded]
schfkt has joined #ruby
sigurding has quit [Quit: sigurding]
voxxit has quit [Quit: Textual IRC Client: www.textualapp.com]
diego_ar has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<jhass> nah, scoped raising an actual deprecation warning rings a bell
voxxit has joined #ruby
<Timba-as> @workmad3 I was indeed looking at that message, but I also found a stackoverflow question about it..
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 268 seconds]
Papabear has quit [Ping timeout: 272 seconds]
<yorickpeterse> I find it interesting how being Dutch apparently makes things harder to remember
Rollabun_ has quit [Read error: Connection reset by peer]
<yorickpeterse> I was under the impression the Dutch are superiour human beings
diego_ar has quit [Remote host closed the connection]
<adaedra> Because your head is full of cheese
<adaedra> Cheese don't remember easily
<yorickpeterse> says the one with a baguette for a head
<shevy> lol
<adaedra> Baguette goes well with cheese
Rollabunna has joined #ruby
marr has quit [Ping timeout: 264 seconds]
<jhass> I see we turned into #international_understanding again
<adaedra> don't invade the discussion
chills42 has joined #ruby
<yorickpeterse> jhass: Yeah, move that to #ruby-offtopic please
<yorickpeterse> ᕕ(ᐛ)ᕗ
startupality has quit [Quit: startupality]
xrlabs has joined #ruby
<shevy> hmm
moeabdol has quit [Ping timeout: 255 seconds]
<shevy> what is creating o-rdoc/ directories?
<shevy> I seem to have this automatically created in some weird dir... probably because of some ENV var
Rollabunna has quit [Read error: Connection reset by peer]
<jhass> shevy: grep -R "o-rdoc" /
<shevy> nah
meph has joined #ruby
rodfersou has joined #ruby
chussenot has joined #ruby
chussenot has quit [Client Quit]
Pupeno has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
chussenot has joined #ruby
mengu has quit []
charliesome has joined #ruby
anandubajith has joined #ruby
chris2 has quit [Ping timeout: 250 seconds]
anandubajith has left #ruby [#ruby]
chussenot has quit [Client Quit]
Meow-J has joined #ruby
jhass has quit [Ping timeout: 252 seconds]
<schfkt> Hi there. Can someone show me an example of how to call a mysql stored procedure from sequel gem?
<schfkt> I've tried that:
<schfkt> [22] pry(main)> DB.call_sproc(:pr_test)
<schfkt> => nil
<schfkt> But that just returns nil.
astrobun_ has quit [Remote host closed the connection]
<dorei> schfkt: you could try asking at #sequel too if noone could help here
chussenot has joined #ruby
chussenot has quit [Client Quit]
jgt has quit [Ping timeout: 246 seconds]
chris2 has joined #ruby
<schfkt> dorei: thanks, going to ask there too
<Timba-as> @adaedra It's the pot, not the cheese ;)
<adaedra> ᕕ(ᐛ)ᕗ
<shevy> who of you has some clever video-backup archive thingy written in ruby
ndrei has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
stardiviner has joined #ruby
<[k-> the internet
iamninja has quit [Ping timeout: 264 seconds]
<shevy> hmm... in ruby?
krisquigley has joined #ruby
<shevy> on that note, is there an equivalent to youtube-dl in ruby?
<[k-> `youtube-dl [args]`
<shevy> yeah I am using that python script a lot
diego_ar has joined #ruby
greenarrow has quit [Quit: 500]
<workmad3> [k-: I prefer system("youtube-dl", *args)
norc has joined #ruby
<workmad3> (if I'm doing a full wrapper script, that can by system("youtub-dl", *ARGV)
<norc> Can I rename methods on the fly?
<norc> Or instance/class variables?
<shevy> norc should be possible, you can always alias, then remove the old instance
tkuchiki has joined #ruby
<workmad3> norc: can you? probably. should you? probably not
<norc> shevy: That makes me wonder what alias_method does under the hood now.
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
<norc> workmad3: Oh this is purely educational.
<[k-> stop invalidating the global method cache!
<[k-> method calling is expensive enough as it is!
tkuchiki has quit [Remote host closed the connection]
eGGsha is now known as eGGshke
DoubleMalt has joined #ruby
<norc> workmad3: Although I can see how this can be useful for monkey patching some libraries..
<shevy> norc I think alias would also work
<norc> shevy: It should, alias_method just calls alias based from looking at the source code.
<[k-> alias, alias_method, delete_method, blah
<shevy> really? I remember there was one big difference between these two... but I forgot which one it was
<norc> shevy: the comma. ;-)
chussenot has joined #ruby
<adaedra> mh, I remember something else about alias vs alias_method
<shevy> hmm no...
<shevy> let me try to find it
juanpablo____ has joined #ruby
<norc> shevy: It just seems like alias is an actual keyword while alias_method is just a built-in method that wraps alias.
<shevy> ok scope is one difference
sarkyniin has joined #ruby
<shevy> copy paste for the rescue
<shevy> "This is because alias is a keyword and it is lexically scoped. It means it treats self as the value of self at the time the source code was read. In contrast alias_method treats self as the value determined at the run time."
bronson has joined #ruby
<shevy> he here heroically defended alias: http://erniemiller.org/2014/10/23/in-defense-of-alias/
cloudbud has quit [Ping timeout: 246 seconds]
<norc> Cloning ruby git feels like downloading and unpacking some Java Enterprise platform....
oo_ has quit [Remote host closed the connection]
Anthony__ is now known as _blizzy_
altivection has joined #ruby
<[k-> you can use comma in alias now too iirc
<norc> And here I am, thinking with a 1gb link to the internet this should be fast....
<shevy> lol
<shevy> look at the part "On Brain Compatibility"
<shevy> that's a hilarious read up :)
greenarrow has joined #ruby
lxsameer has quit [Quit: Leaving]
ndrei has joined #ruby
<dorei> norc: i always thought that git was a hard disk manufacturers conspiracy untill i discover the --depth=0 option :p not sure if that's what you want though
<shevy> norc I'd wish ruby would move issue tracker to github
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chussenot has quit [Client Quit]
altivection has quit [Client Quit]
juanpablo____ has quit [Ping timeout: 252 seconds]
yeticry has joined #ruby
eGGshke is now known as eGGsha
giuseppesolinas has joined #ruby
<norc> dorei: Nah I want the full repo. It is just that github can be very slow at times.
bronson has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
jgt has joined #ruby
oo_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
syath has joined #ruby
ndrei has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
yeticry has joined #ruby
<atmosx> open-uri doesn't user-info (username/password). Do have any other library that can fetch some JSON data?
<atmosx> with user/pass?
phutchins has joined #ruby
d10n-work has joined #ruby
<xrlabs> atmosx, can't you just use the inbuilt net/http gem and set username and password as parameters or in the header?
codenapper has joined #ruby
anisha has joined #ruby
revoohc has joined #ruby
<atmosx> xrlabs: I could... more lines.
<atmosx> okay
dkam has joined #ruby
yeticry has quit [Remote host closed the connection]
<xrlabs> you can still get json that way, just set the response type
yeticry has joined #ruby
<xrlabs> I mean it's not that tragic. the average ruby program is so slim in lines lol
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
but3k4 has joined #ruby
<yorickpeterse> xrlabs: https://github.com/nahi/httpclient
<[spoiler]> lol
joonty has quit [Quit: joonty]
khebbie has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
Rickmasta has joined #ruby
JDiPierro has joined #ruby
skade has joined #ruby
leat has quit [Remote host closed the connection]
khebbie has joined #ruby
leat has joined #ruby
JDiPierro has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
imanzarrabian has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
imanzarrabian has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 244 seconds]
iamninja has joined #ruby
[k-_ has joined #ruby
_lexjm has joined #ruby
_lexjm has quit [Client Quit]
schfkt has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 244 seconds]
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
JDiPierro has joined #ruby
auzty has quit [Quit: Leaving]
k3asd` has quit [Ping timeout: 255 seconds]
mamercad has joined #ruby
k3asd` has joined #ruby
mamercad has quit [Client Quit]
dgutierrez1287 has joined #ruby
sigurding has joined #ruby
chills42 has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby
oo_ has quit [Remote host closed the connection]
marr has joined #ruby
meatherly has joined #ruby
joonty has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dhjondoh has quit [Client Quit]
dfinninger has joined #ruby
sdothum has joined #ruby
CloCkWeRX has joined #ruby
schfkt has joined #ruby
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
dhjondoh has joined #ruby
nzst has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
jhass has joined #ruby
chills42 has joined #ruby
khebbie has quit [Remote host closed the connection]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
rbennacer has joined #ruby
fgo has joined #ruby
anisha has quit [Quit: Leaving]
rbennacer has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
CloCkWeRX has joined #ruby
DLSteve has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
mrityunjay has quit [Ping timeout: 256 seconds]
livathinos has quit [Ping timeout: 246 seconds]
joonty has quit [Quit: joonty]
hackeron_ is now known as hackeron
arup_r has quit [Remote host closed the connection]
hackeron has quit [Changing host]
hackeron has joined #ruby
chussenot has joined #ruby
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chills42 has quit [Remote host closed the connection]
arup_r has joined #ruby
emilkarl has joined #ruby
sevenseacat has joined #ruby
tkuchiki has joined #ruby
meatherly has quit []
joonty has joined #ruby
grenierm has joined #ruby
fschuindt has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
rushed has quit [Quit: rushed]
dfhg has joined #ruby
crazydiamond has joined #ruby
<fschuindt> Supose I have an class named Contact. How can I do Contact.new(hash) passing the class name as a string? Like: CreateObject('Contact', hash) Is that possible?
<apeiros> fschuindt: you can even pass the class itself
araujo_ has joined #ruby
<apeiros> fschuindt: `def create_object(klass, hash); klass.new(hash); end`
<apeiros> the question is why you'd want to do it? There are legitimate uses, but maybe there's better solutions to your actual problem.
<fschuindt> apeiros: thank you
<apeiros> oh, above example was incomplete:
rbennacer has quit [Remote host closed the connection]
<apeiros> >> class Contact; def initialize(values); @values=values; end; end; def create_object(klass, hash); klass.new(hash); end; create_object(Contact, {foo: 123})
<ruboto> apeiros # => #<Contact:0x40d2bd98 @values={:foo=>123}> (https://eval.in/427478)
Guest50 has joined #ruby
leat has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 260 seconds]
Chau has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Chau has quit [Max SendQ exceeded]
pandaant has joined #ruby
rushed has joined #ruby
bruno- has joined #ruby
Chau has joined #ruby
<[k-_> why do you not want to call new?
sdothum has joined #ruby
Igorshp has joined #ruby
atomical has joined #ruby
scripore has joined #ruby
pyoor has joined #ruby
atomical has quit [Client Quit]
<atmosx> how would you translate this line in ruby? https://gist.github.com/atmosx/7c6f2d34fb6a5c7371ea#file-testing-py-L17 we I need to encode this with open-uri?
<adaedra> there's something in CGI for that iirc
jds has quit [Quit: Connection closed for inactivity]
<jhass> URI should handle that
<jhass> Net::HTTP::Whateveritwas#basic_auth too
NeverDie has joined #ruby
<adaedra> but this could also be handled automatically with an HTTP lib
sigurding has quit [Quit: sigurding]
<jhass> oh, wait, that's a post_form isn't it?
<jhass> Net::HTTP.post_form
akemrir has joined #ruby
<atmosx> jhass: I don't know, a post form which retrieves data?
<jhass> try Net::HTTP.post_form URI("https://some_domain.appspot.com/sitedata"), {"password" => "some_pass"}
sigurding has joined #ruby
<atmosx> let's see, because working on py it's out of question.
bruno- has quit [Ping timeout: 252 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
UtkarshRay has joined #ruby
darkxploit has joined #ruby
Iskarlar has joined #ruby
lampshades has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
lampshades has joined #ruby
joonty has quit [Quit: joonty]
rushed has quit [Quit: rushed]
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> jhass: awesome! it worked.
<atmosx> How did you figure out it was a post method, I thought it was a get method :-/
vondruch has quit [Quit: Ex-Chat]
scripore has quit [Quit: This computer has gone to sleep]
zenguy_pc has quit [Read error: Connection reset by peer]
scripore has joined #ruby
zenguy_pc has joined #ruby
<jhass> well, it didn't look like basic auth on the second look
<jhass> it also didn't look like query params
<jhass> so how do you submit data with a http request if not in the query params, only with a POST or PUT
<jhass> (well or PATCH I guess)
sarkyniin has quit [Read error: No route to host]
<jhass> with POST being by far the most common
sarkyniin has joined #ruby
Cust0sLim3n has quit [Ping timeout: 265 seconds]
silkfox has joined #ruby
DLSteve has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
JDiPierro has joined #ruby
whippythellama has joined #ruby
schfkt has quit [Quit: Leaving.]
araujo_ has quit [Quit: Leaving]
stamina has quit [Quit: WeeChat 1.3]
devoldmx has joined #ruby
schfkt has joined #ruby
sgambino has joined #ruby
ruby-lang955 has joined #ruby
dkam has quit [Quit: Lingo: www.lingoirc.com]
jas02 has quit [Quit: jas02]
nofxx has joined #ruby
juanpablo____ has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
antoni1 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
sanguisdex has quit [Quit: Leaving.]
araujo has joined #ruby
schfkt has left #ruby [#ruby]
juanpablo____ has quit [Ping timeout: 240 seconds]
leat has joined #ruby
Cust0sLim3n has joined #ruby
arturaz has joined #ruby
TvL2386 has quit [Remote host closed the connection]
chills42 has joined #ruby
charliesome has joined #ruby
allcentury has joined #ruby
monoprotic has joined #ruby
dblessing has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
dagda1 has joined #ruby
leat has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
dhjondoh has quit [Quit: dhjondoh]
atzorvas has joined #ruby
joonty has joined #ruby
jonko has joined #ruby
eones has quit [Quit: Leaving]
jonko has left #ruby [#ruby]
charliesome has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
arup_r has quit [Remote host closed the connection]
scripore has joined #ruby
sigurding has quit [Quit: sigurding]
bigredboots has joined #ruby
antoni2 has joined #ruby
chills42 has quit [Remote host closed the connection]
sanguisdex has joined #ruby
dzejms has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
sagittarian has joined #ruby
Iskarlar has joined #ruby
mary5030 has joined #ruby
<sagittarian> hey everyone, i am fairly new to ruby (coming from python), in python i can interpolate variables into a string using a hash, and the keys that appear in the string will be replaced by their mapped value in the hash
<sagittarian> is there something like that that i can do in ruby?
<jhass> sagittarian: yes, several in fact
<sagittarian> jhass: I figured there was, can you give me a pointer as to where to look?
antoni1 has quit [Ping timeout: 252 seconds]
<jhass> >> "Hello %{foo}" % {foo: "world"} # Is the way you're most used to, see String#% and Kernel#%sprintf
<ruboto> jhass # => "Hello world" (https://eval.in/427561)
<jhass> >> "Hello %<foo>.3f" % {foo: 0.1} # Is the way you're most used to, see String#% and Kernel#%sprintf
<ruboto> jhass # => "Hello 0.100" (https://eval.in/427562)
<jhass> for when you need formats
David27 has joined #ruby
jdawgaz has joined #ruby
<sagittarian> yes that looks good, thanks jhass
<jhass> >> "Hello #{1+1}" # but, the most popular variant, #{ } can reference arbitrary Ruby code
<ruboto> jhass # => "Hello 2" (https://eval.in/427564)
sigurding has joined #ruby
bigredboots has quit [Remote host closed the connection]
allcentury has joined #ruby
<sagittarian> is there a nice way to break a long string literal into multiple lines?
joonty has quit [Quit: joonty]
rbennacer has joined #ruby
<sagittarian> (like, in python consecutive string literals are automatically joined into one string)
rbennacer has quit [Remote host closed the connection]
<jhass> yes, press enter if you don't mind the \n
<sagittarian> and if i do mind it?
rbennacer has joined #ruby
<Papierkorb> sagittarian: "foo" \ "bar" <- have a newline after the backslash
<jhass> ^ second common variant
melter has quit [Remote host closed the connection]
<jhass> I've also seen foo = "foo"; foo << "bar"; but that adds a bunch of method calls
joonty has joined #ruby
<jhass> there's also a heredoc syntax, but that adds the newlines again
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> yeah "foo" "bar" works pretty much like the exact same line in C/C++ would if you're familiar with that
<[k-_> >> "hello" "1"
<ruboto> [k-_ # => "hello1" (https://eval.in/427566)
<[k-_> :(
<[k-_> i was close!
<atzorvas> wondering if there is a better way to write this one
allomov has quit [Remote host closed the connection]
<atzorvas> >> [1,2,3].each_cons(2).each_with_object([]) {|(a, b), obj| obj << "#{a}/#{b}"}
<ruboto> atzorvas # => ["1/2", "2/3"] (https://eval.in/427567)
<jhass> atzorvas: just .map at the end
<[k-_> is that a formula to generate pi
<atzorvas> jhass: oh simpler than each_with_object true
<Papierkorb> [k-_: it's not a pie recipe, that's for sure
moeabdol has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<havenwood> Papierkorb: 1/2 cup sugar, 2/3 cup flower
<Papierkorb> havenwood: mhh, sweet flowers
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has quit [Ping timeout: 244 seconds]
allomov_ has joined #ruby
weemsledeux has joined #ruby
chills42 has joined #ruby
leat has joined #ruby
livathinos has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
antoni2 has quit [Ping timeout: 246 seconds]
griffindy has joined #ruby
dopamean_ has quit [Ping timeout: 272 seconds]
yashinbasement has joined #ruby
vyorkin has joined #ruby
<Ox0dea> How to "splat map"?
<Papierkorb> Ox0dea: what do you mean?
<Ox0dea> >> [1,2,3].each_cons(2).map &method(:Rational) rescue $!
<ruboto> Ox0dea # => #<TypeError: can't convert Array into Rational> (https://eval.in/427568)
<Ox0dea> Rational.new 1, 2
<Ox0dea> >> Rational.new 1, 2
<ruboto> Ox0dea # => undefined method `new' for Rational:Class (NoMethodError) ...check link for more (https://eval.in/427569)
<Ox0dea> >> Rational(1, 2)
<ruboto> Ox0dea # => (1/2) (https://eval.in/427570)
<Ox0dea> Sorry about the noise. :x
weemsledeux has quit [Ping timeout: 240 seconds]
<havenwood> splat_map \o/
<yashinbasement> Hi I want to covert date string into format yyyy-mm-dd hh:mm:ss from the string "2015-01-11T07:12:42-08:00"
<Ox0dea> havenwood: I think it should be a thing.
<Papierkorb> >> Time.parse "2015-01-11T07:12:42-08:00"
<ruboto> Papierkorb # => undefined method `parse' for Time:Class (NoMethodError) ...check link for more (https://eval.in/427571)
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bigredboots has joined #ruby
skade has joined #ruby
<apeiros> ew, parse
<adaedra> looks like ISO
<jhass> >> require "time"; Time.iso8601("2015-01-11T07:12:42-08:00").strftime("%F %T")
<apeiros> >> require 'time'; Time.strptime("2015-01-11T07:12:42-08:00", "%FT%T%:z")
<ruboto> jhass # => "2015-01-11 07:12:42" (https://eval.in/427572)
<ruboto> apeiros # => 2015-01-11 07:12:42 -0800 (https://eval.in/427573)
<yashinbasement> thanks , what's that +1100 at the last in the answer, I just got by doing
antoni1 has joined #ruby
<Ox0dea> yashinbasement: Time zone offset from GMT.
<apeiros> ah, right, other way round. yes, iso works too
<apeiros> >> require 'time'; Time.iso8601("2015-01-11T07:12:42-08:00")
<ruboto> apeiros # => 2015-01-11 07:12:42 -0800 (https://eval.in/427574)
terlar has quit [Ping timeout: 240 seconds]
<apeiros> (-0800 instead of -08:00 can't be parsed by ruby's iso8601 method, which is a bit maddening)
mary5030 has quit [Remote host closed the connection]
<apeiros> yashinbasement: Time.iso8601 is by far the best solution for this IMO
|\|370 has joined #ruby
<[k-_> &method.uncurry?
keen__________12 has joined #ruby
<yashinbasement> sweet
leat has quit [Remote host closed the connection]
freerobby has joined #ruby
leat has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
scottschecter has quit [Quit: Leaving]
JDiPierro has quit []
Igorshp has quit [Ping timeout: 268 seconds]
grotewold has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
CloCkWeRX has left #ruby [#ruby]
cornerman has quit [Read error: Connection reset by peer]
grotewold has quit [Max SendQ exceeded]
keen__________11 has quit [Ping timeout: 264 seconds]
cornerman has joined #ruby
bigredboots has quit [Remote host closed the connection]
Guest50 has joined #ruby
Cust0sLim3n has quit [Ping timeout: 250 seconds]
freerobby1 has quit [Client Quit]
grotewold has joined #ruby
enebo has joined #ruby
grotewold has quit [Max SendQ exceeded]
<atmosx> hm
<atmosx> Can these 2 timezones be compared? US/Eastern | EST5EDT
weemsledeux has joined #ruby
<atmosx> isn't the one just a sub-group of the other?
emilkarl has quit [Quit: emilkarl]
<jhass> I've seen neither as timezone identifiers so far tbh
<[k-_> and its offtopic!
giuseppesolinas has quit [Quit: This computer has gone to sleep]
xrlabs has quit [Quit: This computer has gone to sleep]
northfurr has joined #ruby
grotewold has joined #ruby
<atmosx> [k-_: I am offtopic?
freerobby has joined #ruby
grotewold has quit [Max SendQ exceeded]
* atmosx is hungry!
<jhass> you forgot to mention the "... using ruby"
dfhg has quit [Ping timeout: 264 seconds]
<atmosx> jhass: true, but that goes without saying :-P
s00pcan has joined #ruby
<atmosx> I'll try to feed th tzinfo see what I can meake of those
<atmosx> heh
<[k-_> research!
vyorkin has quit [Quit: WeeChat 1.2]
grotewold has joined #ruby
vyorkin has joined #ruby
Cust0sLim3n has joined #ruby
Silox| has joined #ruby
giuseppesolinas has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has quit [Ping timeout: 255 seconds]
RegulationD has joined #ruby
jgt has joined #ruby
greenbigfrog has joined #ruby
leat has quit [Remote host closed the connection]
<atmosx> they are two minutes away.
leat has joined #ruby
<atmosx> I don't even know if that would count as a diff, I think not.
lampshades has quit [Ping timeout: 272 seconds]
Coldblackice has quit [Ping timeout: 246 seconds]
<greenbigfrog> hi
<greenbigfrog> Why shouldn't I use global variables with a easy script? and if it doesn't matter, can I disable some warnings on atom with setup of linter and linter-rubocop?
<jhass> greenbigfrog: what usecase for globals do you have that no other concept can replace?
dagda1 has joined #ruby
<greenbigfrog> I'm pretty new to ruby so...
<bougyman> in a simple script global variables would generally not be necessary.
chills42 has quit [Remote host closed the connection]
sdfgsdfg has quit [Read error: Connection reset by peer]
<jhass> it's just a bad habit you shouldn't even get used to
<workmad3> greenbigfrog: chances are in a simple, single-file script, your 'globals' could be local variables
<greenbigfrog> and it's just a 26 line long script... and it won't get any longer...
<atmosx> greenbigfrog: you appear to be someone who cares to much about design (e.g. using rubocop) while at the same time doesn't wanna follow best practices (use global vars)
<jhass> you rather should get familiar with ways to replace them
<atmosx> greenbigfrog: why are you using rubocop anyway?
<greenbigfrog> ok....
<greenbigfrog> atmosx: to improve my coding style...
<atmosx> I hate the '' vs "" warnings
tonios57 has joined #ruby
<Papierkorb> atmosx: disable them
<bougyman> I never have those anymore
<atmosx> greenbigfrog: well, then improve it :-) ... don't use globals
Swappticon has joined #ruby
<bougyman> cause I always use ' unless interpolation is necessary.
<atmosx> Papierkorb: I disabled rubocop :-P
rbennacer has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
juanpablo____ has joined #ruby
shmilan has joined #ruby
kies has joined #ruby
dopamean_ has joined #ruby
vyorkin has quit [Read error: Connection reset by peer]
jonnie has joined #ruby
bronson has joined #ruby
<Sou|cutter> rubocop will fix those automatically if you want
poli has joined #ruby
<Sou|cutter> but yeah, disable cops you don't care about
<[k-_> dont allow linters to touch your code! they hardly know anything!
<bougyman> the only change I make is longer line length and dot-on-end-of-line for continuation of lines (instad of dot-on-beinning-of-next-line)
<bougyman> *changes
<[k-_> dot should be on the beginning of the lines, no one notices the dots at the end when they skim
<atmosx> Can anyone think of a better way? https://gist.github.com/anonymous/1a00e42c96b36a3c9eb3 except to_s, I think .to_s works for me.
<bougyman> if they don't notice when skimming they're blind.
<bougyman> the indentation alone is noticable.
<ljarvis> putting dots at the end means one of the chains can be commented out
<ljarvis> at the beginning breaks that
<bougyman> ^
k3asd` has quit [Ping timeout: 250 seconds]
dfinninger has quit [Remote host closed the connection]
<ljarvis> atmosx: I don't really understand what you want
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
<[k-_> i dont understand your point, illustrations please?
<jhass> they overlap largely but are not quite the same
JoshL has joined #ruby
<atmosx> jhass: yeah, that was eye-openning thanks. I'll take notes :-)
norc has quit [Ping timeout: 246 seconds]
minimuffins has joined #ruby
rushed has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
shmilan has quit [Ping timeout: 244 seconds]
vyorkin has joined #ruby
antoni1 has quit [Ping timeout: 244 seconds]
<atmosx> jhass: what system was that? in my iMac offsets are the same
emba has joined #ruby
<emba> hi everyone
reapersknight77 has joined #ruby
<Ox0dea> atmosx: Arch.
mbff has joined #ruby
<atmosx> okay
<Ox0dea> I guess not being able to splat map is the corollary of not being able to map with args without opening a block. :/
tagrudev has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<atmosx> yeah on a server running ubuntu offsets differ
<mbff> Hello and good morning for those in the U.S: Question: I get the following error when I try to build a gem I am working on. https://gist.github.com/marshallford/c6b7dfa77d361e41184e
<atmosx> hah
antoni1 has joined #ruby
rbennacer has joined #ruby
<mbff> Any ideas on what this error refrers to?
chills42 has joined #ruby
mallu has joined #ruby
<Ox0dea> mbff: I trust you know what a null byte is?
startupality has quit [Read error: Connection reset by peer]
<havenwood> >> exec "\x00"
<ruboto> havenwood # => string contains null byte (ArgumentError) ...check link for more (https://eval.in/427579)
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
reapersknight77 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
codecop has quit [Remote host closed the connection]
startupality has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
sevenseacat has quit [Quit: .]
bronson has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
bottom has joined #ruby
_0xd has joined #ruby
reapersknight77 has joined #ruby
Gnomethrower has quit [Max SendQ exceeded]
theery has joined #ruby
<havenwood> So what's the best way to find the null byte?
xrlabs has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
<jhass> .include? "\x00" ?
northfurr has quit [Quit: northfurr]
CloCkWeRX has joined #ruby
bottom has quit [Client Quit]
<jhass> I guess, "find?"
<emba> Any expert in Inheritance in Ruby, I need to understand how to override the initialize method, but I dont' fully understand super/yielder functions in the child class: https://gist.github.com/embasbm/2764f8140bdb275d9f97
chussenot has quit [Quit: chussenot]
CloCkWeRX has left #ruby [#ruby]
reapersknight77 has quit [Client Quit]
<jhass> emba: whatcha writing an Enumerator subclass for?
franckverrot has quit [Quit: WeeChat 0.4.1]
<jhass> the yielder wants the values, yielder << compute_next
reapersknight77 has joined #ruby
<emba> to create a customized one
<jhass> yeah, but why a subclass?
<emba> to use the methods from enumerator
|\|370 has quit [Remote host closed the connection]
<mbff> so can I search for a null byte in my text editor?
<emba> yielder is the mindblown for me
<jhass> do you need multiple instances or parameterize it?
<havenwood> mbff: On a GNU or BSD system?
theery has quit [Remote host closed the connection]
<mbff> Arch?
<mbff> so GNU?
riotjones has quit [Remote host closed the connection]
<jhass> emba: if you only need a single instance consider MyEnumerator = Enumerator.new { }, else consider def foos; Enumerator.new { }
<havenwood> mbff: maybe something like: grep -Pr '\x00' .
Soda has quit [Remote host closed the connection]
dopie has joined #ruby
chussenot has joined #ruby
<jhass> emba: and then iirc Enumerator's docs has a pretty decent example or two
<scpike> Ox0dea: you recommended kiba to me a while back, just want to say it's turning out to be an awesome tool. If anyone is doing ETL via ruby scripts, definitely check it out
<emba> jhass thanks, I'll keep trying
<mbff> havenwood, no dice.
<havenwood> mbff: no match? :O
<emba> where can I find examples about yield or yielder?
<apeiros> scpike: is it suitable for continuous etl?
<emba> what's the diff between yield and yielder?
<apeiros> i.e. we don't have etl "runs", we more or less stream data from system to system
<mbff> havenwood, correct. No match. No results back. I ran the command in every directory on my project.
<mbff> maybe I will start blaming rvm
<scpike> apeiros: it'd work, but it's not what we're using it for and I don't have production experience with that kind of thing
<havenwood> mbff: it's recursive so root dir should do, but i'm probably missing something
<apeiros> scpike: ok
reapersknight77 has quit [Client Quit]
<havenwood> mbff: already confirmed you're using latest RubyGems?
<mbff> havenwood, yes I did the command you suggested last night.
<havenwood> hmm
<mbff> I also updated rvm
<mbff> and updated all my gems
northfurr has joined #ruby
mary5030 has joined #ruby
Mon_Ouie has joined #ruby
<havenwood> mbff: Public gem? I'd be curious if we run into same error?
tkuchiki has quit [Remote host closed the connection]
diego_ar has quit [Remote host closed the connection]
<mbff> havenwood, https://rubygems.org/gems/strike_api/ however you won't get an error. I am made adjustments that I believe broke it.
<mbff> in other words I am working on the next release.
<havenwood> mbff: any null byte in the `git diff`? :P
<mbff> havenwood, would i pipe git diff into your grep command?
chouhoulis has joined #ruby
<sagittarian> which is more idiomatic ruby, !v or not v?
rushed has quit [Quit: rushed]
<[k-> !v
<havenwood> mbff: i don't think my grep-fu is up to this task, particularly since null bytes are funky
<adaedra> sagittarian: those are completly different things
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<sagittarian> oh really? what's the difference
dcarmich has joined #ruby
<sagittarian> i got true for both of them when i applied them to a variable whose value is nil
Rollabunna has joined #ruby
<adaedra> !v is calling the ! oprator on the value v, v? is calling the method v?
<Ox0dea> adaedra: You might've missed the `not`.
<Ox0dea> adaedra: Yep, you missed the `not`.
<adaedra> ah
Rollabunna has quit [Read error: Connection reset by peer]
<adaedra> indeed
<sagittarian> ah, i meant to ask about {!v} vs {not v}
<adaedra> :)
<havenwood> sagittarian: I'd generally prefer `!v`. There's a difference in precedence, see: http://ruby-doc.org/core/doc/syntax/precedence_rdoc.html
polysics has joined #ruby
sigurding has quit [Quit: sigurding]
reapersknight77 has joined #ruby
<eam> not v? has all kinds of crazy parsing issues
shmilan has joined #ruby
<sagittarian> are || and && likewise generally prefered to or and and (barring a need to do fancy things with precedence)?
reapersknight77 has left #ruby [#ruby]
<Ox0dea> Yep.
<eam> >> v = false; [not v]
<ruboto> eam # => /tmp/execpad-1e2bfa696019/source-1e2bfa696019:2: syntax error, unexpected tIDENTIFIER, expecting '(' ...check link for more (https://eval.in/427582)
<atmosx> I'm using backtics to connect a psql server and get hte timzone like: `psql #{db_url} -c 'show timezone'`. What is the best way to handle connection failure?
<havenwood> mbff: Does `gem build strike_api` fail or just the gem install?
<eam> sagittarian: which is an oddity of ruby, due to the parser -- they're generally NOT prefered in languages with a working parser
Rollabunna has joined #ruby
antoni1 has quit [Ping timeout: 246 seconds]
<mbff> havenwood, only installing the local build fails. I can grab the copy from rubygems just fine.
<havenwood> >> v = false; [!v]
<ruboto> havenwood # => [true] (https://eval.in/427583)
yashinbasement has quit [Quit: Leaving]
akemrir has quit [Quit: WeeChat 1.3]
<mbff> Also I found this command : grep -Par '\x00'
<mbff> which returned a bunch of stuff
bigredboots has joined #ruby
<[k-> >> v = false; [(not v)]
<ruboto> [k- # => [true] (https://eval.in/427584)
Rollabunna has quit [Remote host closed the connection]
<greenbigfrog> so I can succesfully install curb (it's a gem) with sudo but not without... if I install the gem with sudo I can't access it wothout sudo... How do I fix this?
<greenbigfrog> Btw I'm running ubuntu with jruby 9.0
Meow-J has quit [Quit: Connection closed for inactivity]
<[k-> --user-install
<headius> curb is a native extension and won't run on JRuby
<havenwood> mbff: the -a would also check in binary files
Rollabunna has joined #ruby
lele is now known as Guest24
<headius> sudo probably works because it's installing into a system-level CRuby
<mbff> havenwood, oh ok.
<mbff> Would it make sense that binary files have null bytes?
<headius> that's my guess, anyway
imanzarrabian has joined #ruby
<havenwood> mbff: equivalent to: --binary-files=text
imanzarrabian has quit [Client Quit]
hashrocket has joined #ruby
<eam> [k-: the best one is
<havenwood> mbff: If you can `gem build` your local copy and share the .gem with us we could try it.
<eam> >> def f(x); x; end; f (not true)
<ruboto> eam # => false (https://eval.in/427585)
<eam> >> def f(x); x; end; f(not true)
<ruboto> eam # => /tmp/execpad-83e573483c49/source-83e573483c49:2: syntax error, unexpected keyword_true, expecting '( ...check link for more (https://eval.in/427586)
Soda has joined #ruby
<havenwood> mbff: That is if `gem build strike_api.gemspec` works.
<havenwood> mbff: Otherwise maybe push the repo somewhere others can test?
millerti has joined #ruby
<eam> ruby's method parens aren't real precedence parens
livathinos has quit []
dionysus69 has joined #ruby
<mbff> havenwood, it does not. Same error as rake build.
<havenwood> mbff: yeah, i figured
<mbff> havenwood, I could git commit the broken code to a git branch?
rushed has joined #ruby
tkuchiki has joined #ruby
<havenwood> mbff: sure, git checkout -b broken
sigurding has joined #ruby
<havenwood> mbff: then we could at least reproduce or if we can't it'd show something
<greenbigfrog> [k-: ok... let me check that
<greenbigfrog> it says installed but I still can't access it... still saying missing gems
oo_ has joined #ruby
emba_ has joined #ruby
northfurr has quit [Quit: northfurr]
<havenwood> mbff: works on my machine
<havenwood> oh, branch
<havenwood> sec
<havenwood> silly me
<[spoiler]> eam just sat down, looked at your message and read it as "ruby's parents aren't real presidential parrots"
<havenwood> mbff: I can reproduce.
<eam> [spoiler]: can you smell toast right now
<[spoiler]> eam no, but I smell fudge
emba has quit [Read error: Connection reset by peer]
<eam> superfudge?
<[spoiler]> Yes
<havenwood> mbff: tried in a few VMs and consistently null byte
ksteck has joined #ruby
<[spoiler]> OK let me find my glasses before another incident
chadwtaylor has joined #ruby
Trynemjoel has joined #ruby
darthsidious__ has quit [Ping timeout: 246 seconds]
vyorkin has quit [Read error: Connection reset by peer]
husanu has quit [Remote host closed the connection]
<mbff> so "works on my machine" means I too got the error?
husanu has joined #ruby
atomical has joined #ruby
grenierm has quit [Quit: grenierm]
devoldmx has joined #ruby
<havenwood> mbff: found it
<greenbigfrog> ok... just installed ruby via rvm... now it should work...
arturaz has quit [Remote host closed the connection]
prestorium has joined #ruby
<havenwood> mbff: line 16 of your gemspec, double quotes around the null byte
<havenwood> mbff: success!
dfhg has joined #ruby
<mbff> havenwood, yes! Thank you
<mbff> I wonder why the greps didn't catch that?
<havenwood> mbff: you're welcome
aganov has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<havenwood> mbff: i found with grep, dunno!
<[spoiler]> The greps are rebelling
<[spoiler]> mbff: you mistreat them
<mbff> havenwood, well back to normal work. Thanks again man.
<havenwood> mbff: yw
<[spoiler]> ?guys mbff
<ruboto> mbff, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<havenwood> [spoiler]: I relate to all things
cschneid_ has joined #ruby
<havenwood> [spoiler]: :)
NeverDie has joined #ruby
dfinninger has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has joined #ruby
umgrosscol has joined #ruby
<havenwood> Well not *all* that's a bit overly broad.
devoldmx has quit [Ping timeout: 244 seconds]
* havenwood goes in search of coffee
icarus has joined #ruby
emba_ has quit [Ping timeout: 256 seconds]
dfhg has quit [Ping timeout: 265 seconds]
<[spoiler]> havenwood: hahaha :D
emba_ has joined #ruby
weemsledeux has joined #ruby
ruby-lang691 has joined #ruby
snockerton has joined #ruby
darkxploit has quit [Quit: Leaving]
darkxploit has joined #ruby
shmilan has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: Textual IRC Client: www.textualapp.com]
xrlabs has quit [Quit: This computer has gone to sleep]
Trynemjoel has quit [Ping timeout: 250 seconds]
majjoha has quit [Ping timeout: 250 seconds]
TheNet has joined #ruby
husanu has quit [Remote host closed the connection]
AllNamesTaken99 has joined #ruby
husanu has joined #ruby
IrishGringo has joined #ruby
<AllNamesTaken99> How do i convert this so it always gives 2 in the decimal place return_string += " amt:" + sprintf("%#12.2f",sub_hash[:sum_of_loans].to_f)
Trynemjoel has joined #ruby
ruby-lang691 has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
rehat has joined #ruby
<AllNamesTaken99> Does anyone know? Even if it ends up 2 0's I'm trying to make sure it always has 2 in the decimal place
<bougyman> it already does that.
jdawgaz has joined #ruby
Motoservo has quit [Read error: Connection reset by peer]
<bougyman> num = 1234; sprintf("%#12.2f", num)
<bougyman> => " 1234.00"
<AllNamesTaken99> I must be leaving some info out or something cause it doesn't do that
dstarh has joined #ruby
<AllNamesTaken99> it can go up to 2 in the decimal but most of my numbers are coming out with 1
rushed has quit [Quit: rushed]
<bougyman> what happens when you type what I just typed in an irb or pry?
startupality has quit [Read error: Connection reset by peer]
<AllNamesTaken99> exactly as you wrote 1234.00
<AllNamesTaken99> so I don't know what information I'm leaving out
<bougyman> that's what the .2f does.
dionysus69 has quit [Read error: Connection reset by peer]
dionysus70 has joined #ruby
<darix> moin bougyman
<AllNamesTaken99> yea but I must be missing some information for you, because it's not doing it
<bougyman> you just said it did it.
<bougyman> now i'm confused.
siaw has joined #ruby
<AllNamesTaken99> No it worked in IRB, but I mean along with the rest of my code
<AllNamesTaken99> everything is displaying a single 0 in decimals
startupality has joined #ruby
Azure has joined #ruby
chadwtaylor has quit [Quit: Leaving...]
dionysus70 is now known as dionysus69
allcentury has quit [Quit: WeeChat 1.2]
dgutierrez1287 has joined #ruby
Motoservo has joined #ruby
startupality has quit [Client Quit]
Azure|dc has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
<[spoiler]> AllNamesTaken99: post a gist with your code? Maybe something else is manipulating the value?
<AllNamesTaken99> You're right I might be manipulating it wrong. https://gist.github.com/Polyglotting/3c0c6f722a1a7a404666
dgutierrez1287 has quit [Ping timeout: 250 seconds]
rushed has joined #ruby
<AllNamesTaken99> I want sum of loans to show .00 instead of .0
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Queeniebee has joined #ruby
sigurding has quit [Quit: sigurding]
[Butch] has joined #ruby
Guest24 has quit [Ping timeout: 240 seconds]
darthsidious_ has joined #ruby
sigurding has joined #ruby
code1o6 has joined #ruby
Fire1o6 has joined #ruby
code1o6 is now known as earfvids---
stoodfarback has joined #ruby
<AllNamesTaken99> I gtg, you can't figure it out?
<[k-_> %d2 or something
chussenot has quit [Quit: chussenot]
Averna has quit [Quit: Ex-Chat]
freerobby has quit [Quit: Leaving.]
<AllNamesTaken99> thanks I have no clue, I typed it wrong but I'm not using it right I think
<AllNamesTaken99> I mean I typed it right*
rubie has joined #ruby
bronson has joined #ruby
nanoz has joined #ruby
lele has joined #ruby
poli has quit [Ping timeout: 246 seconds]
AllNamesTaken99 has quit [Ping timeout: 246 seconds]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sagittarian has quit [Ping timeout: 250 seconds]
poli has joined #ruby
emba_ has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 264 seconds]
majjoha has joined #ruby
emba has joined #ruby
bootstrappm has joined #ruby
riotjones has joined #ruby
cdrage has joined #ruby
Kallis has joined #ruby
<bootstrappm> morning all
Kallis has quit [Max SendQ exceeded]
<bootstrappm> is ri exiting on certain "Nothing known about..." expected behavior?
theta8 has joined #ruby
leat has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has joined #ruby
cdrage has left #ruby ["WeeChat 1.3-dev"]
Trynemjoel has quit [Ping timeout: 264 seconds]
mbff has quit [Quit: Leaving]
icarus has quit [Ping timeout: 240 seconds]
riotjones has quit [Ping timeout: 244 seconds]
Iskarlar has joined #ruby
The_Phoenix has joined #ruby
Trynemjoel has joined #ruby
freerobby has joined #ruby
hinbody has joined #ruby
rehat has quit [Read error: Connection reset by peer]
xet7_ has quit [Ping timeout: 246 seconds]
gguggi has joined #ruby
<theta8> What's a pleasent to use XML parsing gem? the standard rexml is alright but im sure there is something better to use, any favorites?
<jhass> nokogiri, probably outranked by oga in the future though
xet7_ has joined #ruby
diego_ar has joined #ruby
Kallis has joined #ruby
<theta8> jhass, i don't know why I didn't think of nokogiri. Never heard of oga though
bubbys has quit [Ping timeout: 250 seconds]
Kallis has quit [Max SendQ exceeded]
war_pigs has joined #ruby
chills42 has quit [Remote host closed the connection]
ivanskie has joined #ruby
<Sou|cutter> ox is ok too. I try to avoid nokogiri as much as possible
diego_ar has quit [Ping timeout: 246 seconds]
<bootstrappm> why's that Sou|cutter?
<[spoiler]> theta8: oga is amazeballs
jgt has quit [Ping timeout: 244 seconds]
<Papierkorb> is it a good writer too? nokogiri is quite pleasant to use for that IMO
freerobby has quit [Quit: Leaving.]
emba_ has joined #ruby
<theta8> im looking at it now, it looks similar to what i imagined i would want to use
theery has joined #ruby
<[spoiler]> only advantage nokogiri has is that is backed by libxml, which isn't really an advantage all things considered.
ofdtrinity has joined #ruby
theery has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
psy_ has joined #ruby
<Papierkorb> [spoiler]: why?
theery has joined #ruby
<[spoiler]> Papierkorb: yes you can emit/serialise xml too
psy_ has quit [Max SendQ exceeded]
<Sou|cutter> bootstrappm: it's hard to express. I've run into all sorts of problems with it over the years. libxml2 issues sometimes, encoding issues
psy_ has joined #ruby
emba has quit [Read error: Connection reset by peer]
<Sou|cutter> after burning myself so many times I just look to alternatives, even if issues have been mitigated since
<[spoiler]> Papierkorb: because it's a bit... I'm not sure what the word is that I'm looking for, but it's a cousin of "overkill" lol
meatherly has joined #ruby
<bootstrappm> got it, that general 'this sucks' feeling
AlxAltea has quit [Ping timeout: 246 seconds]
<bootstrappm> I've used it a lot and run into a bunch of issues at the beginning but mostly dependency issues and not know what i was doing. Its my goto now
<bootstrappm> not knowing*
chussenot has joined #ruby
<theta8> I've got lists of cameras in xml format i need to muck through, someone in the company is in love with spreadsheets and gave me a "tool" that is making my life worse
<Sou|cutter> I think nokogiri has some funky interfaces also, but that's mainly aesthetic
<[spoiler]> Sou|cutter: oh yes that too lol
|\|370 has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
<[spoiler]> There should just be a decent libxml2 wrapper (maybe there is?) instead of nokogiri. Not to mention there's some custom libxml patches in nokogiri
towski_ has joined #ruby
allcentury has joined #ruby
<bootstrappm> theta8: if its already a spreadsheet why not CSV -> whatever format you wish?
Ox0dea has left #ruby ["WeeChat 1.3"]
<allcentury> umm, is an attr_reader on a class inherently immutable once the class is initialized?
rushed has quit [Quit: rushed]
<theta8> bootstrappm: the data isn't in the spreadsheet, the spreadsheet is a bunch of formulas to generate data from the xml
<[spoiler]> allcentury: what do yo mean by immutable?
<Papierkorb> allcentury: it's a reader, you can never set the value through it. The @value behind it is still a free for all though
<bootstrappm> allcentury it's just a shortcut to create a method of the same name as the instance variable
<bootstrappm> to read
<[spoiler]> allcentury: it just creates a method called the same name as the symbol/s
Ox0dea has joined #ruby
gizmore has joined #ruby
<allcentury> I understand that, but let's see I set the value of that variable in the initializer. No one will be able to mutate it thereafter right?
<allcentury> I'll get no method for var_name=
<jhass> the class will
<[spoiler]> (bootstrappm: there's some more magic behind it technically)
<jhass> and well instance_variable_set but that doesn't count
<[spoiler]> all any ruby code evaluated outside of the instance won't be able to modify it
paulcsmith has joined #ruby
<bootstrappm> yeah if you do object.instance_variable_set(:@var_name, 'new value') you can pretty much modify anything
<[spoiler]> (except for what jhass said), and also instance_eval
<Ox0dea> And also Fiddle.
<[spoiler]> lol
<Ox0dea> Nothing is really off-limits in Ruby.
<Ox0dea> Except FrozenCore's singleton class in 2.1+.
rubie has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenarrow has quit [Quit: 500]
rubie has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Quit: Quitting]
howdoi has quit [Quit: Connection closed for inactivity]
andikr has quit [Remote host closed the connection]
amclain has joined #ruby
maletor has joined #ruby
rushed has joined #ruby
Trynemjoel has joined #ruby
eGGsha has joined #ruby
<allcentury> can I freeze it?
<Ox0dea> allcentury: Go for it.
<allcentury> def initialize(something); @something = something; @something.freeze; end -- like that?
DexterLB has quit [Read error: Connection reset by peer]
<jhass> no, .freeze freezes the object, not the variable
<allcentury> right
baroquebobcat has joined #ruby
<jhass> so you want to free self if anything
<jhass> *freeze
<allcentury> free thyself
<Ox0dea> >> require 'fiddle'; class Object; def thaw; Fiddle::Pointer.new(__id__ * 2)[1] &= ~8 end end; s = 'foo'.freeze; s.thaw; s.frozen?
<ruboto> Ox0dea # => false (https://eval.in/427598)
dfinninger has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
poguez_ has joined #ruby
pietr0 has joined #ruby
prosody has quit [Quit: Updating details, brb]
prosody has joined #ruby
dfockler has joined #ruby
DexterLB has joined #ruby
umgrosscol has quit [Quit: End of Line]
joonty has quit [Quit: joonty]
Timba-as has quit [Quit: Be back later ...]
rushed has quit [Quit: rushed]
fgo has quit [Ping timeout: 268 seconds]
war_pigs has quit [Quit: laters.. I'm out.]
startupality has joined #ruby
Pupeno_ has joined #ruby
atzorvas has quit [Read error: Connection reset by peer]
allomov_ has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
<Queeniebee> Hello, I'm using readlines() on a .txt file that includes prices. I get a TypeError no implicit conversion of File into Integer. Does readlnes() only work on txt files without any numeric characters?
<jhass> no, that's not the issue
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
RobertBirnie has joined #ruby
michael_mbp has quit [Excess Flood]
benlovell has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
ofdtrinity has quit [Ping timeout: 268 seconds]
<nofxx> Queeniebee, lines.each
Musashi007 has joined #ruby
<jhass> target.readlines(target) ? why would you pass it to it again? Anyway, don't use ^, Use File.readlines(filename)
leat has quit [Remote host closed the connection]
<Ox0dea> Queeniebee: The argument to #readlines specifies the size of chunks to read, not the file to read from.
ruby-lang955 has quit [Ping timeout: 246 seconds]
<Queeniebee> 0x0dea okay
leat has joined #ruby
<Ox0dea> Queeniebee: Do you want to perform some action for each line in the file, or are you just trying to get all the lines as an array of strings?
xrlabs has joined #ruby
|\|370 has quit []
michael_mbp has joined #ruby
<Queeniebee> Ox0dea: My intention is to perform an action on each line. Reading through the documentation, readlines() seemed best because it reads each line into an array
thomas has quit [Quit: leaving]
pawnbox has joined #ruby
<dzejms> Can someone walk me through installing RCM toughtbot file manager ? I've tryed to figure it out but just keep failing felling a bit frustrated atm.. :|
<jhass> File.foreach(filename) do |line|
<Ox0dea> Queeniebee: Aye, that's what it does, but that's not really what you want. You don't need to collect them all into an Array first if your intention is to act on them one-by-one.
tjohnson has joined #ruby
<Queeniebee> Ox0dea: so a foreach loop is best then?
<Ox0dea> Queeniebee: jhass's suggestion is quite good.
senayar has quit []
MVPhelp_ has quit [Ping timeout: 246 seconds]
Swappticon has joined #ruby
<Queeniebee> Ox0dea: jhass thank you and back to the original question, I am curious as to why the TypeError is thrown
<Ox0dea> Queeniebee: Because you passed in a File where a number was expected.
<Ox0dea> Observe the output of target.readlines(3), for example.
<Queeniebee> Ox0dea: understood!
xrlabs has quit [Read error: Connection reset by peer]
<Queeniebee> Ox0dea: jhass: thank you
<Ox0dea> Happy to help.
xrlabs has joined #ruby
pawnbox has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
grotewol_ has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
MVPhelp_ has joined #ruby
bricker has joined #ruby
based_p has joined #ruby
grotewold has quit [Read error: Connection reset by peer]
Igorshp has quit [Read error: No route to host]
Igorshp_ has joined #ruby
rippa has joined #ruby
<Ox0dea> There's got to be a way to splat map.
Vile` has quit [Ping timeout: 260 seconds]
sarkyniin has quit [Ping timeout: 268 seconds]
snockerton has quit [Ping timeout: 265 seconds]
grotewol_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
<canton7> as in... flat_map?
anisha has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
chussenot has quit [Quit: chussenot]
<Ox0dea> Not quite.
ghr has quit [Ping timeout: 264 seconds]
<Ox0dea> >> [1,2,3].each_cons(2).map { |ns| Rational *ns }
<ruboto> Ox0dea # => [(1/2), (2/3)] (https://eval.in/427602)
<Ox0dea> How to do that without explicitly opening a block?
jonnie_ has joined #ruby
blue_deref has joined #ruby
diego_ar has joined #ruby
pawnbox has joined #ruby
<Ox0dea> It's for, uh... a FRACTRAN interpreter.
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diego_ar has quit [Remote host closed the connection]
jonnie has quit [Ping timeout: 265 seconds]
leat has quit [Ping timeout: 250 seconds]
leafybasil has quit [Read error: Connection reset by peer]
leafybas_ has joined #ruby
jonnie_ has quit [Ping timeout: 252 seconds]
Aswebb_ has joined #ruby
agni_dev has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
leafybas_ has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
paulcsmith has joined #ruby
vayu has joined #ruby
chills42 has joined #ruby
Igorshp_ has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
Rollabun_ has joined #ruby
benlovell has joined #ruby
agni_dev has quit [Read error: Connection reset by peer]
allomov has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
pusewicz has quit [Quit: Bye! http://www.layer22.com]
jdawgaz has joined #ruby
Lucky__ has joined #ruby
arup_r has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
sarkyniin has joined #ruby
Chau has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
vayu has quit [Quit: Bye]
paulcsmith has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 244 seconds]
rcvalle has joined #ruby
jackjackdripper has joined #ruby
nzst has quit [Ping timeout: 252 seconds]
RegulationD has quit [Remote host closed the connection]
dagda1 has joined #ruby
dionysus69 has joined #ruby
agni_dev has joined #ruby
last_staff has joined #ruby
Rollabun_ has quit [Read error: Connection reset by peer]
agni_dev has quit [Client Quit]
pawnbox has joined #ruby
Rollabunna has joined #ruby
rbennacer has quit [Remote host closed the connection]
khebbie has joined #ruby
autrilla has joined #ruby
youngbaks has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
naftilos76 has quit [Ping timeout: 250 seconds]
majjoha has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
vyorkin has joined #ruby
ngscheurich has joined #ruby
pawnbox has quit [Client Quit]
allomov has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
khebbie has quit [Remote host closed the connection]
HAL2328 has joined #ruby
rakm has joined #ruby
naftilos76 has joined #ruby
grotewold has joined #ruby
dfinninger has quit [Remote host closed the connection]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Iskarlar has joined #ruby
petricore has joined #ruby
freerobby has quit [Quit: Leaving.]
petricore has quit [Client Quit]
devoldmx has joined #ruby
petricore has joined #ruby
ghr has joined #ruby
darkxploit has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
ledestin has joined #ruby
freerobby has joined #ruby
yqt has joined #ruby
youngbaks has quit [Ping timeout: 250 seconds]
dfhg has joined #ruby
Iskarlar has quit [Client Quit]
UtkarshRay has quit [Ping timeout: 246 seconds]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
pyon has quit [Quit: F...ix you, Emacs.]
khebbie has joined #ruby
Hounddog has quit [Remote host closed the connection]
Rollabunna has quit [Read error: Connection reset by peer]
Rollabun_ has joined #ruby
rbennacer has joined #ruby
Eiam_ has joined #ruby
dopamean_ has joined #ruby
pyon has joined #ruby
khebbie has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 252 seconds]
mleung has joined #ruby
damoncasale has joined #ruby
vipaca has joined #ruby
dfhg has quit [Ping timeout: 256 seconds]
shmilan has joined #ruby
wldcordeiro_ has quit [Quit: Konversation terminated!]
ghr has quit [Ping timeout: 256 seconds]
mleung has quit [Client Quit]
giuseppesolinas has left #ruby ["Leaving"]
Eiam_ has quit [Read error: Connection reset by peer]
schfkt has joined #ruby
fgo has joined #ruby
nzst has joined #ruby
cajone has quit [Remote host closed the connection]
leat has joined #ruby
icarus has joined #ruby
wldcordeiro__ has joined #ruby
chills42 has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 268 seconds]
Iskarlar has joined #ruby
Mendenhall has joined #ruby
cajone has joined #ruby
ksteck has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
Igorshp has quit [Remote host closed the connection]
jgt has joined #ruby
sigurding has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
Guest50 has joined #ruby
schfkt has quit [Quit: Leaving.]
paulcsmith has joined #ruby
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
ivanskie has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
Mendenhall has quit [Ping timeout: 246 seconds]
ksteck has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
robbyoconnor has quit [Ping timeout: 268 seconds]
BecomingCoder has joined #ruby
Jackneill has joined #ruby
DoubleMalt has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
robbyoconnor has joined #ruby
mary5030 has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
stan has quit [Ping timeout: 268 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
failshell has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
Synthead has quit [Quit: Leaving]
revoohc has quit [Quit: revoohc]
Synthead has joined #ruby
mleung has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
Pupeno_ has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
tkuchiki has joined #ruby
mleung has quit [Client Quit]
siaw_ has joined #ruby
Rollabun_ has quit [Ping timeout: 250 seconds]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
siaw has quit [Ping timeout: 244 seconds]
siaw_ is now known as siaw
sigurding has quit [Quit: sigurding]
Rollabunna has joined #ruby
xrlabs has quit [Ping timeout: 244 seconds]
xrlabs has joined #ruby
HAL2328 has quit [Quit: Leaving]
wldcordeiro__ has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
krisquigley has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
darthsidious_ has quit [Remote host closed the connection]
patrick_star has quit [Ping timeout: 264 seconds]
leat has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
siaw_ has joined #ruby
leat has joined #ruby
siaw has quit [Ping timeout: 240 seconds]
siaw_ is now known as siaw
krisquigley has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
altivection has joined #ruby
dgutierrez1287 has joined #ruby
crazydiamond has quit [Ping timeout: 244 seconds]
yqt has quit [Ping timeout: 268 seconds]
eightfold has joined #ruby
freerobby has joined #ruby
<failshell> i want to stream logs into a file. I feel File.write isnt the way to go, as it will open, write entry, close the file on each loop. how should i do it?
<radens> Will an erb file escape arbitrary inputs such that they will be safe for json files?
Aswebb_ has joined #ruby
majjoha has joined #ruby
<Ox0dea> radens: Define "JSON-safe"?
<Ox0dea> failshell: Call #write on an actual File object.
<jhass> failshell: how about logger stdlib? possibly with a custom formatter?
benlovell has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
<radens> Ox0dea: yeah. I want to take arbitrary strings and stick them in a json file with a certain structure.
Musashi007 has quit [Quit: Musashi007]
revoohc has joined #ruby
leat has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
jdawgaz has joined #ruby
sarkyniin has joined #ruby
<radens> I want to make sure the string (which is interpolated with erb) won't change the structure of the json.
leat has joined #ruby
patrick_star has joined #ruby
BecomingCoder has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
<radens> Like { "prop": "<%= some_string %> } and if some_string is 'a","some_other_prop": "value",'
<jhass> you're doing it wrong
<jhass> build a hash and .to_json it
majjoha has quit [Ping timeout: 244 seconds]
segmond has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
xrlabs has quit [Read error: Connection reset by peer]
<Ox0dea> >> require 'json'; JSON.to_json
<ruboto> Ox0dea # => "\"JSON\"" (https://eval.in/427653)
xrlabs has joined #ruby
<radens> jhass: I was thinking of trying to reuse as much yard infrastructure as possible.
<jhass> wat
<radens> But maybe you're right.
rbennacer has quit [Remote host closed the connection]
leat has quit [Ping timeout: 250 seconds]
<radens> well yard typically outputs html, but I want it to output json to feed to another system.
baweaver has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
_djbkd has joined #ruby
<radens> I basically want to create a custom json theme.
robbyoconnor has quit [Ping timeout: 260 seconds]
<jhass> well, you *could* "prop": <%= whatever.to_json %> but... it just feels wrong
<radens> I know
<allcentury> Ok, help. I am trying to send a token from a user to an external API. This API will only accept tokens that are alphanumeric. I have many tokens that already have underscores so I can't change them at this point. Can I somehow "hex" these non-alphanumeric characters or is there some kind of 2-way hash/hexencode thing I can do?
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
grotewold has joined #ruby
<Ox0dea> allcentury: Well, there's CGI.escape, but it doesn't treat underscores specially.
<Ox0dea> Is underscore the only non-alphanumeric character in your tokens?
juanpablo____ has quit [Ping timeout: 250 seconds]
juanpablo____ has joined #ruby
meatherly has quit []
segmond has joined #ruby
umgrosscol has joined #ruby
TheNet has quit [Remote host closed the connection]
dionysus69 has joined #ruby
xrlabs has quit [Ping timeout: 264 seconds]
xrlabs has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has joined #ruby
rbennacer has joined #ruby
bb010g has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
mleung has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
TheNet has joined #ruby
Guest94_ has joined #ruby
fgo has joined #ruby
mleung has quit [Client Quit]
chills42 has joined #ruby
dumdedum has quit [Quit: foo]
fschuindt has quit [Ping timeout: 246 seconds]
chrisbolton has joined #ruby
Musashi007 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<chrisbolton> Anyone aware of a fluentd plugin that will read one json log file and write each line to a specific log file based on a json field per line, json log -> {stuff: ‘things’, application_id: 123} -> 123.json ?
baweaver has joined #ruby
Valeness is now known as omfgtora
omfgtora is now known as valeness
fgo has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
dfinninger has joined #ruby
AlxAltea has joined #ruby
chills42 has quit [Ping timeout: 246 seconds]
evilthomas is now known as homas
leat has joined #ruby
RegulationD has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
<cscheib> time for today's episode of: what stupid detail am I missing: https://gist.github.com/cscheib/b9f5a523a0acf375760e
lkba has joined #ruby
<cscheib> basically, that should just count elements of an array, and output the results as a hash
mleung has joined #ruby
<tubbo> cscheib: your count() method isn't returning anything
dfinninger has quit [Ping timeout: 240 seconds]
<tubbo> well it is, but that "thing" is just an Iterator
babykosh has joined #ruby
<tubbo> cscheib: there's a count method on Array...why count thru each element yourself?
<cscheib> actually, I got it
mleung has quit [Client Quit]
<cscheib> I wasn't returning result
<cscheib> (the hash)
<eam> cscheib: much faster to not uniq, and instead array.each { |e| result[e] += 1 }
<eam> O(n) vs O(n^2)
snockerton has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
<cscheib> yea, makes sense
<baweaver> also 2 space indentation
<baweaver> how you people stand tabs
<eam> baweaver: way to keep tabs on that
<cscheib> yea, it's a problem with gist
mleung has joined #ruby
darkf has quit [Quit: Leaving]
<Ox0dea> No, it isn't.
<cscheib> yes.
<baweaver> I was going to give them some space
<cscheib> when I pasted twice
<cscheib> it interpreted as tabs
<Ox0dea> cscheib: You are pasting tabs.
<cscheib> the first time it went fine
fschuindt has joined #ruby
<cscheib> look through the revisions
* baweaver doesn't care enough to argue
<cscheib> shit, it's still tabbing
Vile` has joined #ruby
<cscheib> I have soft tabs set in atom
<cscheib> the fuck.
<cscheib> (I'm also using 2 different editors simultaneously - the inline one on the website and another)
ghr has joined #ruby
xrlabs has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
xrlabs has joined #ruby
toretore has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
<cscheib> AH, there we go
IrishGringo has quit [Ping timeout: 246 seconds]
<cscheib> I had soft tabs enabled, but tab type was set to auto...
baweaver has quit [Remote host closed the connection]
chills42 has joined #ruby
<cscheib> my bad
dfinninger has joined #ruby
<Guest94_> some ppl recommend 3 spaces
<toretore> i use 5 3/8
fschuindt has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 250 seconds]
babykosh has quit [Quit: babykosh]
<Ox0dea> I use a proportional font and modified the space glyph to be a single pixel wide.
yqt has joined #ruby
Azure has quit [Read error: Connection reset by peer]
vyorkin has quit [Quit: WeeChat 1.2]
The_Phoenix has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
Azure has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
Igorshp has joined #ruby
chrisbolton has quit [Quit: chrisbolton]
anisha has quit [Quit: Leaving]
Pathfinder has quit [Ping timeout: 246 seconds]
moeabdol has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
<cscheib> also finally figured out where they were hiding the invisibles visibility setting.
istrasci has joined #ruby
Guest_ has joined #ruby
diego_ar has joined #ruby
Guest_ is now known as tcdowney
meatherly has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<istrasci> Is there a one-liner to to an Array group_by, and then sort the groups for each key by another constraint?
TheNet has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 255 seconds]
<Ox0dea> >> Hash.instance_method(:sort_by) # istrasci
<ruboto> Ox0dea # => #<UnboundMethod: Hash(Enumerable)#sort_by> (https://eval.in/427685)
allcentury has quit [Ping timeout: 240 seconds]
jgt has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
xrlabs has quit [Quit: This computer has gone to sleep]
axilla has joined #ruby
<Ox0dea> Sorry, I misinterpreted. You'll just have to use #map on the resultant values.
lampd1 has quit [Remote host closed the connection]
<axilla> hi all i have some database values(link.access_level_id = 1, 2, or 3) I want to label the links based on wether they have access level 1, 2, or 3.. without a bunch of different if then statements, whats the easiest way to do this? link to some good reading material would be great, thanks.
<axilla> not easiest, cleanest.
<istrasci> Ox0dea: Yeah, that's what I thought. Thanks.
<Ox0dea> Sure thing.
Narzew has joined #ruby
<[spoiler]> axilla: hash or array?
mleung has quit [Quit: mleung]
lampd1 has joined #ruby
<[spoiler]> access_label[link.access_level_id]
<Ox0dea> -1
<[spoiler]> where access_label is a hash
<Ox0dea> Oh.
<Ox0dea> Hashes with sequential numeric keys are silly.
<jhass> mix them up?
shlomo has joined #ruby
TheNet has joined #ruby
<jhass> axilla: ACCESS_LEVEL_LABELS = {2 => "Mod", 1 => "Admin", 3 => "Reporter"}; def access_level_label(access_level); ACCESS_LEVEL_LABELS[access_level]; end
rushed has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanloky has joined #ruby
<axilla> i like that.
<jhass> should go into a view helper or so
<axilla> yep
<[spoiler]> Ox0dea: 0 idex could be nil tho
<[spoiler]> index
<Ox0dea> Hm?
<[spoiler]> if that's why you meant by -1
tomaz_b has joined #ruby
<Ox0dea> Yes.
<[spoiler]> aye
nucatus has joined #ruby
Mendenhall has joined #ruby
<Ox0dea> But that value would never be accessed?
<[spoiler]> assuming the ids are enumerated
grotewold has joined #ruby
mleung has joined #ruby
<[spoiler]> Ox0dea: true, but dunno doesn't seem like a big waste, although I prefer hash
<Ox0dea> Oh, sorry. I misinterpreted again.
Vile` has quit [Ping timeout: 240 seconds]
<[spoiler]> it's clearer
<[spoiler]> Ox0dea: your interpreter has a bug!
<axilla> i like the helper idea, thx! that'll do me
<Ox0dea> [spoiler]: Right?
<[spoiler]> go patch it
<[spoiler]> :D
thejamespinto has quit []
<Ox0dea> Eh, Array is basically Hash for when your keys are numeric and (even roughly) sequential, in my opinion.
<Ox0dea> Except faster and smaller.
<toretore> axilla: it would be helpful to know more details of what exactly this is to be used for
rushed has quit [Client Quit]
TheNet_ has joined #ruby
<axilla> toretore: i'm just trying to display some links that get genreated in our app when a user shares a collection.. the access_level is a freaking horrible name for it(dates back before my time with the company) and is actually just links to different resolutions of images.
<axilla> the links are based off the resolution of the images inside the collection "low, medium, high" access_level_id is the name they give the id's of each of those, which is either 1, 2, or 3
TheNet has quit [Ping timeout: 252 seconds]
<axilla> so, i'm gonna create a helper as suggested, i like it.. and feed it the id and pull the data i need.
<Ox0dea> axilla: So why not just %w[low medium high][access_level_id - 1]?
tubuliferous has joined #ruby
emba_ has quit [Remote host closed the connection]
Pumukel has joined #ruby
negev has joined #ruby
IrishGringo has joined #ruby
Narzew_ has joined #ruby
meatherly has quit []
JoshL has quit []
Igorshp has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
Igorshp has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kies has quit [Ping timeout: 244 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
jonnie has joined #ruby
dagda1 has joined #ruby
khebbie has joined #ruby
istrasci has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
revoohc has quit [Quit: revoohc]
freerobby has joined #ruby
bl4ckpajamas has joined #ruby
Guest50 has joined #ruby
devoldmx has joined #ruby
<negev> hi, i'm writing a simple webapp using rack. why is it that when i stream a file back to the browser, the browser hangs for a long time before downloading anything? i'm using Rack::File which i understand is an enumerate object that should chunk the file to the browser bit by bit
<negev> but somehow it still hangs for a long time before the browser starts downloading the file
<negev> s/enumerate/enumerable sorry
<negev> been a long day :)
crazydiamond has joined #ruby
dfhg has joined #ruby
majjoha has joined #ruby
sarkyniin has quit [Quit: Quit]
phutchins has quit [Ping timeout: 272 seconds]
sarkyniin has joined #ruby
dagda1 has quit [Ping timeout: 240 seconds]
sphex has quit [Ping timeout: 250 seconds]
renodice has joined #ruby
nucatus has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 260 seconds]
dfhg has quit [Ping timeout: 250 seconds]
dagda1 has joined #ruby
Narzew_ has quit [Quit: Leaving]
balazs has joined #ruby
aswen has joined #ruby
sphex has joined #ruby
<balazs> hi, can I run a shell command in the background and have it return immediately ? something like `foo &`
majjoha has quit [Ping timeout: 265 seconds]
eightfold has quit [Quit: eightfold]
<arup_r> bundle install is saying "Could not fetch specs from a <url>.." How can I see the details of such error in the terminal. Does bundle has any such options for long stack trace ?
emba has joined #ruby
fgo has joined #ruby
emba has quit [Remote host closed the connection]
<balazs> nm, found spawn/Process.detach
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
emba has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IrishGringo has quit [Ping timeout: 244 seconds]
TheNet_ has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
<Ox0dea> balazs: You want Process.daemon, no?
dagda1 has joined #ruby
scripore has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
emba_ has joined #ruby
<jhass> no
<jhass> nobody wants Process.daemon :P
moeabdol has joined #ruby
Igorshp has quit [Remote host closed the connection]
dmmoody has joined #ruby
meatherly has joined #ruby
jobewan has joined #ruby
emba has quit [Ping timeout: 265 seconds]
NeverDie has joined #ruby
altivection has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has joined #ruby
<arup_r> so no option with bundler
<arup_r> ok.
shlomo has quit [Quit: WeeChat 1.3]
khebbie has quit [Ping timeout: 250 seconds]
gambl0re has joined #ruby
emba_ has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
emba has joined #ruby
dotix has joined #ruby
dgutierrez1287 has joined #ruby
baweaver has joined #ruby
icarus has quit [Ping timeout: 268 seconds]
_0xd has quit [Ping timeout: 240 seconds]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
clarkenciel has joined #ruby
sphex has quit [Ping timeout: 252 seconds]
sphex has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
baweaver has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
based_p has quit [K-Lined]
mallu has quit [K-Lined]
Aswebb_ has joined #ruby
_0xd has joined #ruby
last_sta1 has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
polysics has quit []
Pathfinder has joined #ruby
Lyhue has joined #ruby
krisquigley has joined #ruby
clarkenciel has quit [Quit: Leaving]
yfeldblum has joined #ruby
bl4ckpajamas has quit [Quit: Leaving]
ledestin has joined #ruby
crankharder has joined #ruby
sphex has quit [Ping timeout: 246 seconds]
emba has quit [Read error: Connection reset by peer]
sphex has joined #ruby
emba has joined #ruby
negev has left #ruby [#ruby]
krisquigley has quit [Ping timeout: 250 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
baweaver has joined #ruby
grenierm has joined #ruby
icarus has joined #ruby
based_pdev has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dreinull75 has joined #ruby
bruno- has joined #ruby
<dreinull75> what does "ArgumentError: string contains null byte" mean when creating a Tempfile?
<tobiasvl> dreinull75: when doing what exactly?
<dreinull75> I'm trying to feed the Tempfile an image stored in my DB (jpg).
the_odin_project has joined #ruby
<tobiasvl> how are you doing that?
<tobiasvl> not as binary it seems?
moeabdol has joined #ruby
<dorei> dreinull75: i guess null byte isnt permited in a filename
rushed has joined #ruby
<dreinull75> file=Tempfile.new(DB[:fotos].where(:ID => 34).first[:Foto], '.jpg')
<atmosx> hey dorei
<dreinull75> I'm not setting a filename here, dorei
<tobiasvl> but you should
<atmosx> dreinull75: maybe post the snippet on github.
<tobiasvl> dreinull75: Tempfile.new(filename)
rushed has quit [Client Quit]
<tobiasvl> you're trying to name the file the entire contents of the photo?
<dreinull75> tobiasvl, ouch.
northfurr has joined #ruby
<dreinull75> let me try again
DoubleMalt has joined #ruby
<dorei> hey atmosx, wassup?
ndrei has quit [Ping timeout: 240 seconds]
ofdtrinity has joined #ruby
<dreinull75> ok, got it, thought the first string was supposed to be the content of the file. Misunderstanding here. Thanks for helping out.
<atmosx> lost between shitty CSS/HTML and timezone errors, you?
ofdtrinity has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
ivanskie has joined #ruby
ndrei has joined #ruby
casadei has joined #ruby
<the_odin_project> can someone help with with a TCPSocket problem
<dfockler> the_odin_project: sure, what's your problem
jgt has joined #ruby
<arup_r> atmosx: CSS is ugly :(
emba has quit [Read error: Connection reset by peer]
<arup_r> I am not able to do `bundle install` and due to this reason not able to start working on a project.
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r> :/
emba has joined #ruby
workmad3 has joined #ruby
<atmosx> arup_r: I suck at it.
<the_odin_project> thank! I am trying to set up the simple server and client exercise from theodinproject here: http://www.theodinproject.com/ruby-programming/ruby-on-the-web?ref=lnav
<atmosx> arup_r: I just removed purecss from my project and went with boostrap just to use read-made themes. I'm not capable of producing anything good looking (or I'm doing it wrong).
<atmosx> arup_r: why not?
<arup_r> If I write CSS then the page works in my browser only.. and rest browsers better not to mention.. :/
weemsledeux has quit [Remote host closed the connection]
<arup_r> because the project using some gems that hosted in their prvt network and it seems some files are deleted.
<arup_r> so bundler is failing.. and telling - "referring
<arup_r> page</a> seems to be wrong or outdated. Please inform the author of"
DCameronMauch has joined #ruby
rbennacer has quit [Remote host closed the connection]
grotewold has joined #ruby
fschuindt has joined #ruby
yfeldblu_ has joined #ruby
benlovell has joined #ruby
<the_odin_project> I have it written so far that the server creates a TCPServer object and used in a loop that it accepts the connections to the client and then gets the request from the client.
khebbie_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
weemsledeux has joined #ruby
schfkt has joined #ruby
<the_odin_project> Then it parses the request so that it sees if it is a POST or GET. Similarly the Client is written so far so when it runs it can either do a POST or GET.
yfeldblum has quit [Ping timeout: 256 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Mendenhall has quit [Ping timeout: 255 seconds]
<the_odin_project> If I do the GET as I write it, it send the request to the server and then is supposed to receive and then print the file from the server.
dmmoody has quit [Remote host closed the connection]
<dfockler> the_odin_project: can you post code on gist.github.com
DCameronMauch has quit [Quit: Leaving...]
rehat__ has joined #ruby
<the_odin_project> ok that is good idea
dmmoody has joined #ruby
Coldblackice has joined #ruby
dmmoody has quit [Remote host closed the connection]
ascarter has joined #ruby
dfinninger has quit [Ping timeout: 244 seconds]
husanu has quit [Remote host closed the connection]
husanu has joined #ruby
aaeron has joined #ruby
<the_odin_project> here is the code so far: https://gist.github.com/npresco/a7f0f93544776941ae1a
<aaeron> Is adding methods in a Rakefile recommended?
miliarch has quit [Ping timeout: 255 seconds]
IrishGringo has joined #ruby
dnewkerk has joined #ruby
emba has quit [Read error: Connection reset by peer]
<dnewkerk> I was reading a code example and came across ::File.join … what do the two colons in front of File do?
fgo has joined #ruby
<jhass> dnewkerk: ensure it's the toplevel File
emba has joined #ruby
<jhass> say you have module Foo; class File; end; class Bar; def baz; end; end; end;
<jhass> inside baz, File would be Foo::File
<jhass> ::File ensures you get the toplevel one
bb010g has quit [Quit: Connection closed for inactivity]
arup_r has quit [Quit: Leaving]
<dnewkerk> jhass: ah ok, cool makes sense
<dnewkerk> thanks
CanTonic has joined #ruby
<atmosx> the_odin_project: I made something similar some time ago. I used EM though.
freerobby has joined #ruby
emba has quit [Client Quit]
jdawgaz has quit [Quit: Textual IRC Client: www.textualapp.com]
jdawgaz has joined #ruby
HAL2328 has joined #ruby
Vile` has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
vyorkin has joined #ruby
shmilan has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
chills42 has quit [Ping timeout: 246 seconds]
vyorkin has quit [Client Quit]
northfurr has quit [Quit: northfurr]
baweaver has quit [Remote host closed the connection]
solars has quit [Ping timeout: 244 seconds]
majjoha has joined #ruby
icarus has quit [Quit: leaving]
jgpawletko has joined #ruby
baweaver has joined #ruby
fschuindt has quit [Ping timeout: 246 seconds]
<the_odin_project> EM looks pretty great, I feel like I am making some elementary error and only need to fix a small part but I will used it if need be
michael_mbp has quit [Excess Flood]
fschuindt has joined #ruby
majjoha has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
garethrees has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
michael_mbp has joined #ruby
tomaz_b has quit [Quit: Leaving]
sgambino has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
sgambino has quit [Client Quit]
krisquigley has joined #ruby
rushed has joined #ruby
sdwrage has joined #ruby
David27 has joined #ruby
garethrees has quit [Ping timeout: 240 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
craysiii has joined #ruby
leafybasil has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
mrtomme has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Remote host closed the connection]
ipstatic has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
dudedudeman_ has joined #ruby
toretore has quit [Read error: Connection reset by peer]
<dudedudeman_> it's been a hot minute. sheesh
CanTonic has quit [Quit: Textual IRC Client: www.textualapp.com]
<dfockler> the_odin_project: it looks like it has something to do with the gets('') on line 8 of simpleserver
<dudedudeman_> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
dfinninger has joined #ruby
<dudedudeman_> ah.
jenrzzz has joined #ruby
spider-mario has joined #ruby
<dudedudeman_> (sorry, wasn't saying your comment was off topic, dfockler, I just didnt' remember the actual room name..)
weemsledeux has joined #ruby
<dfockler> dudedudeman_: sounds like it was a hot minute
<dudedudeman_> sizzling
michael_mbp has quit [Excess Flood]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jardayn has joined #ruby
ipstatic has joined #ruby
razrunelord has joined #ruby
BTRE has joined #ruby
aaeron has quit [Quit: Leaving.]
<dudedudeman_> but of course
michael_mbp has joined #ruby
jdawgaz has joined #ruby
<baweaver> meta, probably, but what's ruby-pro?
dblessing has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
Yalcolo has joined #ruby
<Yalcolo> wow
<baweaver> joined either way, voice only?
<Yalcolo> I can talk in roobee again
<Yalcolo> before it was +R or registered talk only
Narzew has quit [Read error: Connection reset by peer]
<apeiros> Yalcolo: it's troll season, so we sometimes require registration
blackmesa has joined #ruby
<apeiros> it's usually announced in the topic
nofxx has joined #ruby
nofxx has joined #ruby
Narzew has joined #ruby
<baweaver> read: HS and College students don't have enough homework yet to keep them busy.
<apeiros> baweaver: yes, #ruby-pro is permanently moderated. you need somebody to vouch for you to get voice. it's currently a dead channel and as you know I'm *slightly* occupied with more pressing issues before I can get to revive it again :)
prestorium has quit [Ping timeout: 250 seconds]
<baweaver> though more offtopic than anything (#ruby-offtopic if you want to)
<the_odin_project> Excellent, that was bugging me to no end because I had it working before. The problem now is that I can't access the data after the top line in the POST request. I used the "gets(' ')" to grab everything. Any ideas?
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<the_odin_project> Thank you in any case dfockler
rushed has quit [Quit: rushed]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 240 seconds]
neanderslob has joined #ruby
dudedudeman_ is now known as dudedudeman
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<dfockler> the_odin_project: Sure thing, IO stuff is weird to wrap your head around at first
dzejms has quit [Quit: Leaving]
<apeiros> btw., if anybody has ambitions and wants to revive #ruby-pro - feel free to approach me :)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<dfockler> What do they do in #ruby-pro?
<dudedudeman> isn't that where the uber advanced ruby users talk?
<dudedudeman> and discuss issues?
benlovell has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
toretore has joined #ruby
TheNet_ has joined #ruby
<apeiros> dudedudeman: the idea was more to have a channel where you can more or less be certain that if somebody asks a question, they'll not drive you mad when you try to help them
tobiasvl has quit [Ping timeout: 246 seconds]
<craysiii> i want that
ipstatic has quit [Ping timeout: 264 seconds]
<dudedudeman> apeiros: that makes a lot of sense
tvl has joined #ruby
CanTonic has joined #ruby
tvl is now known as tobiasvl
<baweaver> most of the people in there are heavy OSS contributors
naftilos76 has quit [Remote host closed the connection]
TheNet has quit [Read error: Connection reset by peer]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
ap4y has joined #ruby
iateadonut has quit [Quit: Leaving.]
benlovell has quit [Ping timeout: 272 seconds]
aaeron has joined #ruby
codenapper has quit []
anisha has joined #ruby
ipstatic has joined #ruby
HAL2328 has quit [Quit: Leaving]
failshell has quit [Remote host closed the connection]
dblessing has joined #ruby
Narzew has quit [Quit: Leaving]
schfkt has left #ruby [#ruby]
rubie has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
benlovell has joined #ruby
anisha has quit [Client Quit]
Narzew has joined #ruby
baweaver has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
<dfockler> they're probably too busy to answer your questions
TheNet has joined #ruby
dotix has quit [Quit: Leaving]
TheNet_ has quit [Read error: Connection reset by peer]
tvw has joined #ruby
k3asd` has joined #ruby
damoncasale has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
workmad3 has joined #ruby
rubie has joined #ruby
einarj has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
rushed has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
codenapper has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
syath has quit [Quit: WeeChat 1.2]
bootstrappm has quit [Quit: bootstrappm]
razrunelord has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfhg has joined #ruby
mblagden_ has joined #ruby
razrunelord has joined #ruby
mblagden has quit [Ping timeout: 265 seconds]
Yalcolo has quit [K-Lined]
workmad3 has quit [Ping timeout: 272 seconds]
casadei has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
fschuindt1 has joined #ruby
rodfersou has quit [Quit: leaving]
grenierm has quit [Quit: grenierm]
michael_mbp has quit [Excess Flood]
fschuindt has quit [Ping timeout: 252 seconds]
ranchodev has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
dfhg has quit [Ping timeout: 240 seconds]
Aswebb_ has quit [Remote host closed the connection]
jdawgaz has joined #ruby
TheNet_ has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
TheNet has quit [Ping timeout: 246 seconds]
einarj has quit [Remote host closed the connection]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno_ has joined #ruby
gguggi has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
scripore has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
havenwood has joined #ruby
rushed has quit [Quit: rushed]
kies has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
clarkenciel has joined #ruby
tcdowney has quit [Quit: Computer has gone to sleep.]
moeabdol has quit [Ping timeout: 268 seconds]
ldnunes has quit [Quit: Leaving]
the_odin_project has quit [Ping timeout: 246 seconds]
scripore has joined #ruby
maletor has quit []
Narzew has quit [Quit: Leaving]
fschuindt1 has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
fgo has quit [Ping timeout: 268 seconds]
dagda1 has joined #ruby
aaeron has quit [Quit: Leaving.]
jonnie has quit [Read error: Connection reset by peer]
jonnie has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
bootstrappm has joined #ruby
einarj has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 260 seconds]
scripore has quit [Quit: This computer has gone to sleep]
shmilan has joined #ruby
TheNet_ has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
aaeron has joined #ruby
scripore has joined #ruby
aaeron has quit [Client Quit]
aaeron has joined #ruby
scripore has quit [Remote host closed the connection]
mac_ has joined #ruby
bubbys has joined #ruby
ngscheurich has quit [Ping timeout: 244 seconds]
jgpawletko has quit [Quit: jgpawletko]
sgambino has joined #ruby
jenrzzz has joined #ruby
TheNet has joined #ruby
sgambino has quit [Client Quit]
fschuindt1 has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BecomingCoder has joined #ruby
ordepdev has joined #ruby
Guest94_ has quit [Quit: Textual IRC Client: www.textualapp.com]
benybuds has joined #ruby
Guest50 has joined #ruby
mblagden has joined #ruby
mblagden_ has quit [Ping timeout: 264 seconds]
momo-reina has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
Aswebb_ has joined #ruby
skade has joined #ruby
benlovell has quit [Ping timeout: 265 seconds]
fschuindt1 has quit [Ping timeout: 264 seconds]
majjoha has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno__ has joined #ruby
nzst has quit [Ping timeout: 265 seconds]
Pupeno_ has quit [Ping timeout: 246 seconds]
skade has quit [Client Quit]
MasterPiece has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
majjoha has quit [Ping timeout: 246 seconds]
altivection has joined #ruby
banister has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
daed has quit [Quit: Reconnecting]
havenwood has quit [Ping timeout: 265 seconds]
daed has joined #ruby
meatherly has quit []
Pupeno__ has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
Pupeno has joined #ruby
zeroDivisible has joined #ruby
mac_ has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
mac_ has joined #ruby
razrunelord has quit []
stnly has quit [Ping timeout: 250 seconds]
stnly has joined #ruby
tkuchiki has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
Igorshp has quit [Remote host closed the connection]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has joined #ruby
last_sta1 has quit [Quit: zzzz]
paulcsmith has joined #ruby
failshell has joined #ruby
michael_mbp has quit [Excess Flood]
meatherly has joined #ruby
mary5030 has quit [Remote host closed the connection]
michael_mbp has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
meatherly has quit [Client Quit]
phutchins has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
meatherly has joined #ruby
TheNet_ has joined #ruby
casadei_ has joined #ruby
paulcsmith has quit [Ping timeout: 250 seconds]
iateadonut has joined #ruby
skade has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
TheNet has quit [Read error: Connection reset by peer]
mac_ has quit [Quit: This computer has gone to sleep]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 255 seconds]
mac_ has joined #ruby
IrishGringo has quit [Ping timeout: 246 seconds]
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
s00pcan has quit [Ping timeout: 252 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
Aswebb_ has joined #ruby
havenwood has joined #ruby
s00pcan has joined #ruby
enebo has quit [Quit: enebo]
ordepdev has quit [Remote host closed the connection]
leat has quit [Ping timeout: 246 seconds]
sarkyniin has quit [Quit: Quit]
Lyhue has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
based_pdev has quit [Quit: Leaving]
TheNet_ has quit [Quit: Leaving...]
nanoz has quit [Ping timeout: 260 seconds]
yfeldblu_ has quit [Remote host closed the connection]
dfhg has joined #ruby
yfeldblum has joined #ruby
grotewold has joined #ruby
havenn has joined #ruby
Exuma has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
Lyhue has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
dfhg has quit [Ping timeout: 260 seconds]
Lyhue has quit [Client Quit]
dopie has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
Coldblackice has joined #ruby
k3asd` has quit [Ping timeout: 272 seconds]
shadoi has joined #ruby
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Exuma has quit []
altivection has quit [Quit: Textual IRC Client: www.textualapp.com]
renodice has quit [Quit: Leaving]
_djbkd has joined #ruby
altivection has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
theery has quit [Remote host closed the connection]
hinbody has quit [Quit: leaving]
bronson has quit [Remote host closed the connection]
Jackneill has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 265 seconds]
BecomingCoder has quit [Ping timeout: 252 seconds]
lacriment has joined #ruby
iateadonut has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 252 seconds]
<lacriment> hello
<havenn> lacriment: hi
<havenn> lacriment: welcome
weemsledeux has joined #ruby
<lacriment> thanks :) I'm some ignorant about irc. I'm trying to understand what's this
grenierm has joined #ruby
Musashi007 has joined #ruby
<lacriment> you use web browser client?
<havenn> lacriment: This is a channel where we discuss the Ruby language. It's a good place to ask questions or learn while helping.
<havenn> lacriment: Most of us probably use an IRC client.
snockerton has quit [Quit: Leaving.]
leat has joined #ruby
<havenn> lacriment: There's a #ruby-offtopic channel for all sorts of discussions unrelated to Ruby, like which IRC clients folk like.
jenrzzz has joined #ruby
<havenn> lacriment: You can join it by typing: /join #ruby-offtopic
weemsledeux has quit [Client Quit]
<havenn> lacriment: Here are some IRC-related links: http://www.irc.org/links.html
freerobby has quit [Quit: Leaving.]
theery has joined #ruby
<lacriment> thanks so havenn ^^
<havenn> lacriment: you're welcome!
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aswebb_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
Encapsulation has quit [Remote host closed the connection]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
dgutierrez1287 has joined #ruby
Encapsulation has joined #ruby
nux443 has quit [Quit: leaving]
spider-mario has quit [Remote host closed the connection]
_gautam_ has joined #ruby
grotewold has joined #ruby
<bootstrappm> I asked this earlier but hopefully with new people there's an answer. When I use ri in interactive mode and enter a capitalized word that doesn't exist as a class / module (e.g. Blah) it says "nothing is known about Blah" and exists. Is that intended behavior? if I put a lowercase string it says nothing is known about it and stays alive
swgillespie has left #ruby [#ruby]
grenierm has quit [Quit: grenierm]
Pathfinder has quit [Ping timeout: 264 seconds]
neanderslob has quit [Remote host closed the connection]
Pathfinder has joined #ruby
grenierm has joined #ruby
_gautam_ has quit [Client Quit]
rehat__ has quit [Remote host closed the connection]
finisherr has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
michael_mbp has quit [Excess Flood]
dzejms has joined #ruby
dzejms_ has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
dnewkerk_ has joined #ruby
dnewkerk has quit [Ping timeout: 246 seconds]
dnewkerk_ is now known as dnewkerk
crazydiamond has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
neanderslob has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
grenierm has quit [Quit: grenierm]
Aswebb_ has joined #ruby
lacriment has quit [Quit: Page closed]
startupality has quit [Quit: startupality]
weemsledeux has joined #ruby
nertzy has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theery has quit [Remote host closed the connection]
Aswebb_ has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
northfurr has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
bigredboots has quit [Remote host closed the connection]
<drbrain> bootstrappm: it's a bug
theery has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
axilla has quit [Quit: Lost terminal]
s00pcan has quit [Remote host closed the connection]
leat has quit [Ping timeout: 272 seconds]
umgrosscol has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
cschneid_ has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
pandaant has quit [Remote host closed the connection]
northfurr has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
glenn_ has joined #ruby
michael_mbp has joined #ruby
BTRE has quit [Quit: Leaving]
Musashi007 has joined #ruby
rushed has joined #ruby
<bootstrappm> thanks drbrain, noted
dfhg has joined #ruby
neanderslob has quit [Remote host closed the connection]
Oka has quit [Quit: o/]
havenn has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has joined #ruby
mary5030 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
dfinninger has quit [Remote host closed the connection]
Oka has joined #ruby
pen has joined #ruby
symm- has joined #ruby
jesterfraud has joined #ruby
_0xd has quit [Quit: leaving]
dfockler has quit [Remote host closed the connection]
dzejms has quit [Remote host closed the connection]
dzejms_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
JoshL has joined #ruby
zenware has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 268 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
Rollabunna has joined #ruby
ghr has joined #ruby
michael_mbp has joined #ruby
leat has joined #ruby
baweaver has quit [Remote host closed the connection]
pocketprotector has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
dudedudeman has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
ghr has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
nihilistic_kant has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
rushed has joined #ruby
mprelude has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
grotewold has joined #ruby
existensil has joined #ruby
theery has quit [Remote host closed the connection]
skade has joined #ruby
RegulationD has quit [Remote host closed the connection]
fschuindt1 has joined #ruby
baweaver has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
michael_mbp has quit [Excess Flood]
Pathfinder has quit [Ping timeout: 255 seconds]
theery has joined #ruby
dfhg has quit [Ping timeout: 250 seconds]
fschuindt1 has quit [Ping timeout: 268 seconds]
Igorshp has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
einarj has joined #ruby
ngscheur1 has joined #ruby
michael_mbp has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rushed has quit [Quit: rushed]
freerobby has quit [Quit: Leaving.]
fschuindt1 has joined #ruby
al2o3-cr1 has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
Pathfinder has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meatherly has quit []
jgt has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
fschuindt1 has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
paulcsmith has joined #ruby
nzst has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
jobewan has quit [Quit: Leaving]
jdawgaz has joined #ruby
jonnie has quit [Ping timeout: 272 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
fschuindt1 has joined #ruby
meatherly has quit [Client Quit]
maletor has quit [Read error: Connection reset by peer]
nihilistic_kant has quit [Quit: Page closed]
majjoha has joined #ruby
meatherly has joined #ruby
michael_mbp has quit [Excess Flood]
failshell has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
michael_mbp has joined #ruby
tuxero has joined #ruby
existensil has joined #ruby
<radens> How do I call the method of my superclass's parent?
nzst has quit [Ping timeout: 246 seconds]
millerti has quit [Ping timeout: 246 seconds]
theery has quit [Ping timeout: 240 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<radens> I have JsonSerializer which descends from YardocSerializer from FileSystemSerializer. I want to call FileSystemSerializer#serialize from JsonSerializer#serialize
existensil has quit [Client Quit]
meatherly has quit [Client Quit]
chipotle has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
jesterfraud has joined #ruby
existensil has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
SCHAAP137 has quit [Quit: Leaving]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
majjoha has quit [Ping timeout: 246 seconds]
sdfgsdfg has joined #ruby
bronson has quit [Remote host closed the connection]
patrick_star has quit [Ping timeout: 244 seconds]
paulcsmith has quit [Quit: Be back later ...]
swills has quit [Quit: leaving]
paulcsmith has joined #ruby
aaeron has quit [Quit: Leaving.]
<drbrain> super
<radens> drbrain: how about super's super?
<drbrain> that one doesn't super?
sdfgsdfg has quit [Read error: Connection reset by peer]
<radens> it does, but I don't want to call it.
sdfgsdfg has joined #ruby
<drbrain> you might be able to do something fancy with method binding
theery has joined #ruby
<drbrain> otherwise you cut and paste
<bricker> radens: maybe add a parameter the method and check that parameter in each method override
<Ox0dea> radens: Save a reference to the super method, temporarily undefine it, invoke super, put the method back in place?
Pathfinder has quit [Ping timeout: 264 seconds]
<drbrain> Ox0dea: not thread-safe
<radens> bricker: Ox0dea those sound like good ideas but I don't own suoer or super's super. They live in library code.
robbyoconnor has joined #ruby
<Ox0dea> radens: That doesn't mean you can't get access to them?
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
<Ox0dea> drbrain: Could he store the reference in one of the "thread-global" variables?
<bricker> you'd need to synchronize to make sure nothing tries to call that method while it's undefined
<radens> Ox0dea: monkeypatch super's super to add an alias?
<drbrain> Ox0dea: if you have A < B < C, and you remove a method from B it disappears from everyone's B
<Ox0dea> drbrain: Oh, right.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
<drbrain> that might not be a consideration here, but I think method rebinding is less perilous and more robust
<Ox0dea> radens: #instance_method, #undef_method, and #define_method.
<Ox0dea> It's certainly a little crazy, mind, but it should work.
* radens sighs
ngscheur1 has quit [Quit: WeeChat 1.2]
<radens> I was hoping I could just run super.super or something
<Ox0dea> Sounds like you need `duper`.
aaeron has joined #ruby
<radens> Ox0dea: that's it!
robbyoconnor has quit [Client Quit]
<Ox0dea> Huh, I didn't know #super_method was chainable, but it makes perfect sense.
bootstrappm has quit [Remote host closed the connection]
<radens> banister: that's it. Thanks
startupality has quit [Quit: startupality]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
theery has quit [Remote host closed the connection]
zenware has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 246 seconds]
babykosh has joined #ruby
patrick_star has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
babykosh has quit [Client Quit]
Musashi007 has joined #ruby
vF3hNGxc47h8 has joined #ruby
<radens> banister: @serializer.method(:serialize).super_method.super_method.call
<radens> NoMethodError: undefined method `super_method' for #<Method: YARD::Serializers::JsonSerializer#serialize>