apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
sinequanon has quit [Remote host closed the connection]
bkxd has joined #ruby
rubie has joined #ruby
michael_mbp has quit [Excess Flood]
gambl0re has quit [Ping timeout: 256 seconds]
phizzbuzz has quit [Remote host closed the connection]
lrcezimbra has quit [Read error: Connection reset by peer]
vickleton has quit [Remote host closed the connection]
michael_mbp has joined #ruby
ddarkpassenger has joined #ruby
michaeldeol has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 256 seconds]
<_blizzy_> I love how pluralize is a method in rails.
fabrice31 has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
thiagovsk has quit [Quit: Connection closed for inactivity]
byprdct has joined #ruby
lkba_ has quit [Ping timeout: 265 seconds]
byprdct has quit [Client Quit]
marr has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
lrcezimbra has joined #ruby
<xxneolithicxx> how useful is it, doesnt that vary drastically by language/word
lrcezimbra has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
lidenskap has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
sinequanon has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
irobevjodu has quit [Remote host closed the connection]
<shevy> what is the plural of mouse in rails
sinequanon has quit [Remote host closed the connection]
<eam> what's the plural of octopus
<shevy> what is the plural of the word "greaves" in rails
<shevy> octopoda!
jottr has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 258 seconds]
arescorpio has joined #ruby
longfeet has joined #ruby
dru` has joined #ruby
<eam> are there any hybrid words (greek + latin roots like television) that end in ous?
Sembei has joined #ruby
<shevy> those are questions worthy for the million dollar show
mistergibson has joined #ruby
vaedd has joined #ruby
Brazeau has joined #ruby
sankaber has joined #ruby
thomaslnx has joined #ruby
someword has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
ChasedSpade has quit [Remote host closed the connection]
Stany has joined #ruby
ChasedSpade has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
MyMind has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
sent1nel has joined #ruby
Sembei has quit [Ping timeout: 244 seconds]
Tamae has quit [Ping timeout: 244 seconds]
someword has quit [Read error: Connection reset by peer]
someword has joined #ruby
robustus has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
thomaslnx has left #ruby ["Saindo"]
bruno- has quit [Ping timeout: 246 seconds]
seitensei has quit [Quit: No Ping reply in 180 seconds.]
coetry has quit [Ping timeout: 256 seconds]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
sent1nel has quit [Ping timeout: 245 seconds]
juanpaucar has joined #ruby
DEA7TH has quit [Ping timeout: 256 seconds]
lucyinthesky has joined #ruby
platzhirsch has quit [Quit: Leaving.]
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
bootstrappm has left #ruby [#ruby]
juanpaucar has quit [Ping timeout: 264 seconds]
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
tubuliferous has joined #ruby
commondream has quit [Remote host closed the connection]
havenwood has joined #ruby
commondream has joined #ruby
bronson has joined #ruby
Cache_Money has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
HotCoder has quit [Ping timeout: 264 seconds]
sankaber has quit [Ping timeout: 240 seconds]
commondream has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
someword has quit [Quit: Leaving.]
bronson has quit [Ping timeout: 250 seconds]
<zzak> OMG!
<zzak>
irobevjodu has joined #ruby
Shidash has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 250 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bb010g has quit [Quit: Connection closed for inactivity]
jstanton has joined #ruby
bronson has joined #ruby
deric_skibotn has joined #ruby
hardlin3r has quit [Ping timeout: 264 seconds]
rubie has quit [Remote host closed the connection]
KKKLANSMAN has joined #ruby
<shevy> am I abusing modules?
<KKKLANSMAN> anyone know how to stop ddos attacks?
<shevy> module Foo; def self.initialize
<havenwood> !mute KKKLANSMAN
<shevy> Foo.initialize
<shevy> it reminds me a lot of class Foo; def initialize
<lucyinthesky> good.
<shevy> well, except that you have to call .new actually, but the name of the method is the same
gambl0re has joined #ruby
gusrub has quit [Ping timeout: 272 seconds]
apeiros changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
yaw has joined #ruby
<xxneolithicxx> what happened to ruby-lang
<shevy> lol
yaw has quit [Max SendQ exceeded]
<shevy> first jhass, now apeiros - the #ruby-lang people are not happy! ;)
bronson has quit [Ping timeout: 272 seconds]
lucyinthesky is now known as new-moon
yaw has joined #ruby
zacts has joined #ruby
towski_ has joined #ruby
jpfuentes2 has joined #ruby
n008f4g_ has quit [Ping timeout: 265 seconds]
dfockler has joined #ruby
jmhmccr has joined #ruby
jenrzzz has joined #ruby
Shidash has joined #ruby
<apeiros> xxneolithicxx: it will be merged with #ruby. #ruby is now the official channel.
swgillespie has joined #ruby
<shevy> wow
djbkd has quit [Remote host closed the connection]
dfockler has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
Brazeau has left #ruby ["Leaving"]
Sawbones has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paradisaeidae has joined #ruby
sinequanon has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
tuelz has joined #ruby
Sawbones has quit [Ping timeout: 265 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinequanon has quit [Ping timeout: 256 seconds]
<al2o3-cr> sup! ruby :)
P1RATEZ has quit [Quit: exercise break]
KKKLANSMAN has left #ruby [#ruby]
tuelz has quit [Ping timeout: 258 seconds]
<existensil> I'm still in #ruby-lang. does that mean if I disconnect I can never join again?
<apeiros> existensil: the redirect has not yet been set up
<apeiros> once it has been set up, all users will be removed from the channel
RegulationD has joined #ruby
bogdanteleaga has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
<existensil> ok
<existensil> :'(
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
<shevy> TOTAL TERMINATION
<shevy> DOOMSDAY!!!
<al2o3-cr> shevy: :D
<shevy> we will merge with our lost brothers
<shevy> who used to be almost as dire an enemy as the zzsshhsssshshss-speaking aliens from #python
<al2o3-cr> shevy: :) lol
new-moon has left #ruby ["Leaving"]
dc has joined #ruby
serivich has joined #ruby
CustosLimen has quit [Max SendQ exceeded]
Cache_Money has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
<xxneolithicxx> does that make me harry potter if i speak both
bruno- has joined #ruby
CustosLimen has joined #ruby
bogdanteleaga has joined #ruby
bogdanteleaga has quit [Read error: Connection reset by peer]
<apeiros> whoops, I'm still op here?
<xxneolithicxx> why does ruby attract so many white power names
car has quit [Ping timeout: 264 seconds]
<xxneolithicxx> is it the same person
<apeiros> I think it's not ruby. it's 1k users.
<apeiros> yeah. banned him over in #ruby-lang. forgot the -lang at first :)
paradisaeidae has quit [Read error: Connection reset by peer]
<havenwood> xxneolithicxx: They sort by number of users in a channel and try to troll.
<apeiros> and now pillow. for reals. damit. should be asleep for 3h already :D
<havenwood> apeiros: g'night!
serivich has quit [Ping timeout: 265 seconds]
<al2o3-cr> you can't get better syntax than ruby
paradisaeidae has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
<al2o3-cr> apeiros: good night :)
duderonomy has joined #ruby
e1nh4nd3r has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Rollabunna has joined #ruby
tcrypt has quit [Remote host closed the connection]
tcrypt has joined #ruby
rubie has joined #ruby
MasterPiece has quit [Quit: Leaving]
tcrypt has quit [Ping timeout: 252 seconds]
shuber_ has quit [Remote host closed the connection]
lkba has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
kies has quit [Ping timeout: 276 seconds]
car has joined #ruby
towski_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
fabrice31 has joined #ruby
amclain has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
segfalt has joined #ruby
jpfuentes2 has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
bogdanteleaga has joined #ruby
deric_skibotn has quit [Ping timeout: 240 seconds]
bogdanteleaga has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 265 seconds]
lidenskap has joined #ruby
Tamae has joined #ruby
Stany has quit [Read error: Connection reset by peer]
kies has joined #ruby
bogdanteleaga has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
armyriad has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
DenSchub has quit [Ping timeout: 256 seconds]
DenSchub has joined #ruby
wallerdev has quit [Quit: wallerdev]
Cache_Money has quit [Quit: Cache_Money]
e1nh4nd3r has quit [Quit: Leaving.]
djbkd has quit [Ping timeout: 265 seconds]
jottr_ has joined #ruby
havenwood has quit []
havenwood has joined #ruby
vivekananda has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
Sawbones has joined #ruby
oo_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lidenskap has quit [Remote host closed the connection]
juanpaucar has joined #ruby
alxndr has joined #ruby
pontiki has joined #ruby
<pontiki> hi
dorei has quit []
mrsolo has joined #ruby
<al2o3-cr> pontiki: o/
nobitanobi has joined #ruby
<havenwood> pontiki: \o
jottr_ has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Ping timeout: 265 seconds]
davedev24_ has quit [Ping timeout: 272 seconds]
tubuliferous has joined #ruby
bruno- has joined #ruby
Agoldfish has quit [Quit: G'Bye]
keen________ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
<al2o3-cr> #=> pong ( •_•)O*¯`·.¸.·´¯`°Q(•_• )
<pontiki> o/
tds5016 has joined #ruby
keen________ has joined #ruby
<tds5016> hi all. What's the best way to get a hash with only the keys listed in an array?
<tds5016> I don't want to use delete_if, because I don't want to mutate the original array.
<havenwood> tds5016: A Hash's keys? #keys
tubuliferous has quit [Ping timeout: 244 seconds]
<zenspider> subset of a hash given an array of keys? select is one
<al2o3-cr> tds5016: delete_if won't mutate the original array
<zenspider> #values_at is another
<havenwood> tds5016: Oh, seems I misunderstood the question.
<zenspider> tho that returns an array
bruno- has quit [Ping timeout: 250 seconds]
davedev24_ has joined #ruby
<zenspider> h.select { |k,_| keys.include? k }
<zenspider> tds5016: what are you actually trying to do?
<tds5016> so I have something like {foo: 1, bar: 2}
zz_barkerd427 is now known as barkerd427
<zenspider> don't want to mutate the array or the hash?
<tds5016> and I have an array [:foo]
<tds5016> I want to get the object {foo: 1}
<tds5016> er the hash {foo :1}
<tds5016> sorry.
scripore has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 264 seconds]
<havenwood> >> {foo: 1}.values_at *[:foo]
<ruboto> havenwood # => [1] (https://eval.in/368958)
sankaber has joined #ruby
CustosLimen has quit [Max SendQ exceeded]
<zenspider> tds5016: if you don't mind mutating the hash, reject is another possibility
<pontiki> hash.slice(*keys) ?
<tds5016> I don't wanna mutate the has.
<pontiki> or is .slice Rails?
<zenspider> that's an array & string method, no?
<al2o3-cr> havenwood: does that need []?
<tds5016> hash*
GriffinHeart has quit []
davedev24_ has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
pdoherty has quit [Quit: Leaving]
davedev24_ has joined #ruby
<havenwood> al2o3-cr: could drop the splat and Array, but i was just trying to represent an Array as the presumed parameter
<al2o3-cr> hehe ok :)
<zenspider> ok. I'm out. poker night.
<tds5016> good luck.
<pontiki> know when to hold 'em
<al2o3-cr> no when to fold 'em
<havenwood> fold! fold!
darkf has joined #ruby
<tds5016> how would I do something like x=:foo; bar = {} bar.merge{x =? 3}
<tds5016> =>
<tds5016> rather
<tds5016> I want to set the value of x as a key in the bar hash.
arescorpio has quit [Quit: Leaving.]
speakingcode has joined #ruby
shuber_ has joined #ruby
xfumihiro has joined #ruby
<havenwood> tds5016: have you tried it as you propose?
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
P1RATEZ has joined #ruby
yh__ has quit [Ping timeout: 258 seconds]
CustosLimen has quit [Read error: Connection timed out]
shuber_ has quit [Ping timeout: 255 seconds]
icebourg has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
CustosLimen has joined #ruby
<al2o3-cr> tds5016: elaborate with a bit concision
evlute has joined #ruby
<al2o3-cr> my typing foo as gone out of the window
<evlute> hello :)
<havenwood> evlute: hi
<evlute> i have a strange problem. i'm using dnat to my sinatra server vm. and i see everything but the pictures won't get loaded. any ideas why? :)
banister has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
DynamicMetaFlow has joined #ruby
braincrash has quit [Quit: bye bye]
jpfuentes2 has joined #ruby
macmarti_ has quit [Remote host closed the connection]
* al2o3-cr know when to hold 'em, know when to fold 'em listening to bit of kenny rogers :)
dingus_khan has joined #ruby
Sawbones has quit [Remote host closed the connection]
* al2o3-cr can't beat country 'n weston
<al2o3-cr> *ern hehe
braincrash has joined #ruby
tuelz has joined #ruby
Notte has joined #ruby
<al2o3-cr> lyrical genius :)
macmartine has joined #ruby
al2o3-cr is now known as gr33n7007h
tuelz has quit [Ping timeout: 272 seconds]
gr33n7007h is now known as al2o3-cr
sent1nel has joined #ruby
RegulationD has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
shuber_ has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
ChasedSpade has quit [Quit: No reason specified.]
ChasedSpade has joined #ruby
<al2o3-cr> oh and matz :)
<al2o3-cr> DeBot: hangman gems
<al2o3-cr> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr> DeBot: a
<DeBot> ␣␣␣␣␣␣␣A␣␣␣␣␣␣␣␣ [] 0/12
evlute has quit [Quit: WeeChat 1.2]
<al2o3-cr> DeBot: e
<DeBot> ␣␣␣␣␣␣␣A␣␣␣␣␣␣e␣ [] 0/12
<al2o3-cr> DeBot: i
<DeBot> ␣␣I␣␣␣␣A␣␣␣i␣␣e␣ [] 0/12
<al2o3-cr> DeBot: t
<DeBot> ␣␣I␣␣␣␣A␣␣␣i␣te␣ [] 0/12
ChasedSpade has quit [Client Quit]
<al2o3-cr> DeBot: s
<DeBot> ␣␣I␣␣␣␣A␣␣␣i␣te␣ [s] 1/12
<al2o3-cr> DeBot: d
<DeBot> ␣␣I␣␣␣DA␣␣␣i␣te␣ [s] 1/12
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> DeBot: s
<DeBot> ␣␣I␣␣␣DA␣␣␣i␣te␣ [s] 1/12
<al2o3-cr> DeBot: r
<DeBot> ␣RI␣␣␣DA␣␣␣i␣ter [s] 1/12
<al2o3-cr> DeBot: u
<DeBot> URI␣␣␣DA␣␣␣i␣ter [s] 1/12
<al2o3-cr> DeBot: _
<DeBot> URI␣␣␣DA␣␣␣i␣ter [s_] 2/12
<al2o3-cr> DeBot: :
<DeBot> URI::␣DA␣␣␣i␣ter [s_] 2/12
Notte has quit [Remote host closed the connection]
<al2o3-cr> DeBot: l
<DeBot> URI::LDA␣␣␣ilter [s_] 2/12
ChasedSpade has joined #ruby
<al2o3-cr> DeBot: d
<DeBot> URI::LDA␣␣␣ilter [s_] 2/12
<al2o3-cr> oops
<al2o3-cr> DeBot: p
<DeBot> URI::LDAP␣␣ilter [s_] 2/12
<al2o3-cr> DeBot: .
<DeBot> URI::LDAP␣␣ilter [s_.] 3/12
Sawbones has joined #ruby
<al2o3-cr> DeBot: ?
<DeBot> URI::LDAP␣␣ilter [s_.?] 4/12
<al2o3-cr> DeBot: f
<DeBot> URI::LDAP␣filter [s_.?] 4/12
<ebonics> apeiros
weemsledeux has joined #ruby
bruno- has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
nobitanobi has quit [Remote host closed the connection]
zreisman has joined #ruby
shuber_ has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc has quit [Remote host closed the connection]
paradisaeidae has quit [Ping timeout: 256 seconds]
<al2o3-cr> jhass: what else can DeBot do?
bruno- has quit [Ping timeout: 264 seconds]
tds5016 has quit [Quit: Page closed]
<al2o3-cr> DeBot: #
<DeBot> URI::LDAP#filter [s_.?] 4/12 You won!
<al2o3-cr> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr> DeBot: a
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [a] 1/12
<al2o3-cr> DeBot: e
<DeBot> ␣␣e␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣e␣ [a] 1/12
<al2o3-cr> DeBot: i
<DeBot> ␣␣e␣␣␣␣␣␣␣␣␣␣i␣␣␣␣e␣ [a] 1/12
<al2o3-cr> DeBot: o
<DeBot> O␣e␣␣␣␣␣␣␣o␣␣i␣␣␣␣e␣ [a] 1/12
<al2o3-cr> DeBot: u
<DeBot> O␣e␣␣␣␣␣␣␣o␣␣i␣␣␣␣e␣ [au] 2/12
<al2o3-cr> DeBot: :
<DeBot> O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au] 2/12
fabrice31 has joined #ruby
<al2o3-cr> DeBot: #
<DeBot> O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au#] 3/12
<al2o3-cr> DeBot: t
<DeBot> O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au#t] 4/12
<al2o3-cr> DeBot: r
<DeBot> O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au#tr] 5/12
<al2o3-cr> DeBot: f
<DeBot> O␣e␣␣␣␣::␣o␣fi␣::␣e␣ [au#tr] 5/12
<al2o3-cr> DeBot: n
<DeBot> O␣en␣␣␣::␣onfi␣::ne␣ [au#tr] 5/12
car has quit [Ping timeout: 256 seconds]
<al2o3-cr> DeBot: p
<DeBot> Open␣␣␣::␣onfi␣::ne␣ [au#tr] 5/12
<al2o3-cr> DeBot: w
<DeBot> Open␣␣␣::␣onfi␣::new [au#tr] 5/12
<al2o3-cr> DeBot: g
<DeBot> Open␣␣␣::␣onfig::new [au#tr] 5/12
<al2o3-cr> DeBot: s
<DeBot> OpenSS␣::␣onfig::new [au#tr] 5/12
<al2o3-cr> DeBot: l
<DeBot> OpenSSL::␣onfig::new [au#tr] 5/12
<al2o3-cr> DeBot: c
<DeBot> OpenSSL::Config::new [au#tr] 5/12 You won!
vaedd has left #ruby [#ruby]
<adam12> I think I already know the answer to this but does anybody know if you can swap out the entire object passed to a block for another like-object?
Joufflu has joined #ruby
<pipework> Isn't that just wonderful.
<al2o3-cr> adam12: how'd you think you would do it?
jpfuente_ has joined #ruby
baweaver has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<adam12> al2o3-cr: I'm not sure...
<al2o3-cr> adam12: but you said I think I already know
<adam12> al2o3-cr: Yeah, as in 'not possible' :)
speakingcode has quit [Ping timeout: 272 seconds]
coetry has joined #ruby
<pipework> I'm not sure about what you mean, exactly.
<pipework> What kind of swapping? Where?
commondream has joined #ruby
jpfuentes2 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
<al2o3-cr> adam12: an an example of what you're really try to do would help:)
cht has joined #ruby
<adam12> New HTTP wrapper client by technoweenie called Hurley. Need to add Digest Auth :\. I figured I would use the callbacks offered before and after the request to determine if the request was 401, and if so, retry with Auth digest.
mary5030 has joined #ruby
<adam12> When I make a new request inside that callback, I receive a valid response object, the same type yielded to the callback in the first place. Trying to return the new one instead.
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
shuber_ has joined #ruby
<al2o3-cr> adam12: why would you need to?
Sawbones has quit [Remote host closed the connection]
<adam12> Because the original request is 401, the subsequent request is (hopefully) 20x.
bronson has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
Evidlo has left #ruby ["WeeChat 1.0.1"]
mary5030 has joined #ruby
<al2o3-cr> adam12: why would it be giving you a 401 in the first place?
mrdmi_ is now known as mrdmi
<zotherstupidguy> vg
<adam12> al2o3-cr: I'm fairly sure that's always how Digest auth works? To prevent replay attacks.
<al2o3-cr> adam12: yeah generally wrong credentials
<al2o3-cr> but not always
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shuber_ has quit [Remote host closed the connection]
macmartine has quit [Ping timeout: 264 seconds]
mary5030_ has joined #ruby
shuber_ has joined #ruby
jayeshsolanki has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
<al2o3-cr> adam12: but i'm now familiar with hurley so
dingus_khan has quit [Remote host closed the connection]
<al2o3-cr> adam12: so re-ask your question in the channel hopefully someone knows :)
zubov has joined #ruby
Channel6 has joined #ruby
paradisaeidae has joined #ruby
guardianx has joined #ruby
shuber_ has quit [Remote host closed the connection]
macmartine has joined #ruby
shuber_ has joined #ruby
<al2o3-cr> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr> DeBot: A
<DeBot> A␣␣a␣␣␣␣a␣␣␣␣␣␣ [] 0/12
<al2o3-cr> DeBot: u
<DeBot> A␣␣a␣␣␣␣a␣␣␣␣␣␣ [u] 1/12
<al2o3-cr> DeBot: i
<DeBot> A␣␣a␣␣␣␣a␣␣␣␣␣␣ [ui] 2/12
<al2o3-cr> DeBot: o
<DeBot> A␣␣a␣␣␣␣a␣␣␣o␣␣ [ui] 2/12
<al2o3-cr> DeBot: e
<DeBot> A␣␣a␣␣␣␣a␣␣␣o␣e [ui] 2/12
jayeshsolanki has quit [Ping timeout: 258 seconds]
<al2o3-cr> DeBot: t
<DeBot> A␣␣a␣␣t␣a␣␣␣o␣e [ui] 2/12
<al2o3-cr> DeBot: h
<DeBot> A␣␣a␣␣t␣a␣␣␣o␣e [uih] 3/12
<al2o3-cr> DeBot: r
<DeBot> Arra␣␣tra␣␣␣o␣e [uih] 3/12
<al2o3-cr> DeBot: y
<DeBot> Array␣tra␣␣␣o␣e [uih] 3/12
<al2o3-cr> DeBot: :
<DeBot> Array␣tra␣␣␣o␣e [uih:] 4/12
<al2o3-cr> DeBot: s
<DeBot> Array␣tra␣s␣ose [uih:] 4/12
<al2o3-cr> DeBot: p
<DeBot> Array␣tra␣spose [uih:] 4/12
<al2o3-cr> DeBot: n
<DeBot> Array␣transpose [uih:] 4/12
<al2o3-cr> DeBot: #
<DeBot> Array#transpose [uih:] 4/12 You won!
lolmaus has quit [Ping timeout: 256 seconds]
mary5030_ has quit [Remote host closed the connection]
<al2o3-cr> >> {a: 1, b: 2, c: 2}.to_a.transpose
<ruboto> al2o3-cr # => [[:a, :b, :c], [1, 2, 2]] (https://eval.in/368959)
mary5030 has joined #ruby
tuelz has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
braincra- has joined #ruby
<al2o3-cr> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr> DeBot: a
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [a] 1/12
<al2o3-cr> DeBot: e
<DeBot> ␣␣␣␣␣␣␣␣␣e␣␣␣e␣␣␣ [a] 1/12
<al2o3-cr> DeBot: i
<DeBot> ␣␣␣␣␣i␣␣␣e␣i␣e␣␣␣ [a] 1/12
<al2o3-cr> DeBot: o
<DeBot> ␣␣␣␣␣i␣␣␣e␣i␣e␣␣␣ [ao] 2/12
<al2o3-cr> DeBot: u
<DeBot> ␣␣␣␣␣i␣␣␣e␣i␣e␣␣␣ [aou] 3/12
<al2o3-cr> DeBot: t
<DeBot> ␣␣␣␣␣i␣␣␣e␣i␣e␣␣␣ [aout] 4/12
<al2o3-cr> DeBot: s
<DeBot> ␣␣␣␣si␣␣␣e␣i␣e␣␣␣ [aout] 4/12
commondream has quit [Remote host closed the connection]
<al2o3-cr> DeBot: :
<DeBot> ␣␣::si␣␣␣e␣i␣e␣␣␣ [aout] 4/12
<al2o3-cr> DeBot: #
<DeBot> ␣␣::si␣␣␣e␣i␣e␣␣␣ [aout#] 5/12
xcesariox has joined #ruby
<al2o3-cr> DeBot: _
<DeBot> ␣␣::si␣␣␣e␣i␣e_␣␣ [aout#] 5/12
<al2o3-cr> DeBot: g
<DeBot> ␣␣::si␣g␣e␣i␣e_␣␣ [aout#] 5/12
<al2o3-cr> DeBot: n
<DeBot> ␣␣::sing␣e␣ine_␣␣ [aout#] 5/12
<al2o3-cr> DeBot: l
<DeBot> ␣␣::singleline_␣␣ [aout#] 5/12
<al2o3-cr> DeBot: give me a clue?
mary5030 has quit [Ping timeout: 272 seconds]
<al2o3-cr> DeBot: f
<DeBot> ␣␣::singleline_␣␣ [aout#f] 6/12
tuelz has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 264 seconds]
<al2o3-cr> DeBot: y
<DeBot> ␣␣::singleline_␣␣ [aout#fy] 7/12
<al2o3-cr> DeBot: c
<DeBot> ␣␣::singleline_␣␣ [aout#fyc] 8/12
<al2o3-cr> DeBot: w
<DeBot> ␣␣::singleline_␣␣ [aout#fycw] 9/12
<al2o3-cr> DeBot: q
<DeBot> ␣␣::singleline_␣␣ [aout#fycwq] 10/12
<al2o3-cr> DeBot: h
<DeBot> ␣␣::singleline_␣␣ [aout#fycwqh] 11/12
<al2o3-cr> DeBot: j
<DeBot> PP::singleline_pp [aout#fycwqhj] 12/12 You lost!
phutchins has quit [Ping timeout: 276 seconds]
<al2o3-cr> just checking if DeBot works :) lol
commondream has joined #ruby
juanpaucar has joined #ruby
<al2o3-cr> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr> DeBot: a
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣A␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr> DeBot: e
<DeBot> ␣␣e␣␣␣␣␣␣␣␣e␣␣␣␣␣A␣␣␣␣␣e␣ [] 0/12
<al2o3-cr> DeBot: i
<DeBot> ␣␣e␣␣␣␣␣␣␣␣e␣␣␣␣␣A␣␣␣␣␣e␣ [i] 1/12
<hanmac> DeBot: #:
<DeBot> ␣␣e␣␣␣␣::␣␣e␣::␣␣A#␣␣␣␣e␣ [i] 1/12
<al2o3-cr> DeBot: o
<DeBot> O␣e␣␣␣␣::␣␣e␣::␣␣A#␣o␣␣e␣ [i] 1/12
<al2o3-cr> DeBot: u
<DeBot> O␣e␣␣␣␣::␣␣e␣::␣␣A#␣o␣␣e␣ [iu] 2/12
<hanmac> Debot: OpenSSL
jpfuente_ has quit [Ping timeout: 246 seconds]
<al2o3-cr> hanmac: always that :)
<al2o3-cr> DeBot: p
<DeBot> Ope␣␣␣␣::P␣e␣::␣␣A#␣o␣␣e␣ [iu] 2/12
<al2o3-cr> DeBot: s
<DeBot> Ope␣SS␣::P␣e␣::␣SA#␣o␣␣e␣ [iu] 2/12
<hanmac> you mean that its from OpenSSL or that i got the bot hanging?
<al2o3-cr> hanmac: from openssl
<al2o3-cr> DeBot: l
<DeBot> Ope␣SSL::P␣e␣::␣SA#␣o␣␣e␣ [iu] 2/12
<hanmac> hm what i did wrong that the bot did not take my keys?
<al2o3-cr> DeBot: n
<DeBot> OpenSSL::P␣e␣::␣SA#␣o␣␣e␣ [iu] 2/12
<al2o3-cr> DeBot: l
<DeBot> OpenSSL::P␣e␣::␣SA#␣o␣␣e␣ [iu] 2/12
<al2o3-cr> DeBot: d
<DeBot> OpenSSL::P␣e␣::DSA#␣o␣de␣ [iu] 2/12
<al2o3-cr> DeBot: _
<DeBot> OpenSSL::P␣e␣::DSA#␣o_de␣ [iu] 2/12
<al2o3-cr> DeBot: k
<DeBot> OpenSSL::PKe␣::DSA#␣o_de␣ [iu] 2/12
<hanmac> DeBot: y
<DeBot> OpenSSL::PKey::DSA#␣o_de␣ [iu] 2/12
<al2o3-cr> DeBot: s
<DeBot> OpenSSL::PKey::DSA#␣o_de␣ [iu] 2/12
juanpaucar has quit [Ping timeout: 240 seconds]
<hanmac> DeBot: t
<DeBot> OpenSSL::PKey::DSA#to_de␣ [iu] 2/12
tubuliferous has joined #ruby
<hanmac> DeBot: x
<DeBot> OpenSSL::PKey::DSA#to_de␣ [iux] 3/12
<hanmac> DeBot: c
<DeBot> OpenSSL::PKey::DSA#to_de␣ [iuxc] 4/12
<al2o3-cr> DeBot: t
<DeBot> OpenSSL::PKey::DSA#to_de␣ [iuxc] 4/12
<al2o3-cr> to_de ? wtf
<al2o3-cr> got me
<hanmac> DeBot: r
<DeBot> OpenSSL::PKey::DSA#to_der [iuxc] 4/12 You won!
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<al2o3-cr> der ... lol
dingus_khan has joined #ruby
jenrzzz has joined #ruby
<al2o3-cr> DeBot: !hangman
<DeBot> ␣␣␣␣ [] 0/12
charliesome has joined #ruby
<al2o3-cr> DeBot: a
<DeBot> ␣␣␣␣ [a] 1/12
<al2o3-cr> DeBot: e
<DeBot> ␣␣␣e [a] 1/12
<al2o3-cr> DeBot: t
<DeBot> ␣␣␣e [at] 2/12
<al2o3-cr> DeBot: r
<DeBot> ␣␣␣e [atr] 3/12
<al2o3-cr> DeBot: i
<DeBot> ␣i␣e [atr] 3/12
jayeshsolanki has joined #ruby
<al2o3-cr> DeBot: r
<DeBot> ␣i␣e [atr] 3/12
<al2o3-cr> der just did r my god
tubuliferous has quit [Ping timeout: 244 seconds]
longfeet has quit [Ping timeout: 255 seconds]
<al2o3-cr> DeBot: m
<DeBot> ␣i␣e [atrm] 4/12
<al2o3-cr> DeBot: l
<DeBot> ␣i␣e [atrml] 5/12
<al2o3-cr> DeBot: n
<DeBot> ␣i␣e [atrmln] 6/12
Joufflu has quit [Read error: Connection reset by peer]
commondream has quit [Remote host closed the connection]
<al2o3-cr> DeBot: h
<DeBot> ␣i␣e [atrmlnh] 7/12
sevvie has joined #ruby
Der_Fuhrer has joined #ruby
<al2o3-cr> DeBot: v
<DeBot> ␣i␣e [atrmlnhv] 8/12
Ox0dea has joined #ruby
<al2o3-cr> DeBot: d
<DeBot> ␣i␣e [atrmlnhvd] 9/12
<Der_Fuhrer> 0/
<al2o3-cr> DeBot: j
<DeBot> ␣i␣e [atrmlnhvdj] 10/12
<al2o3-cr> DeBot: c
<DeBot> ␣i␣e [atrmlnhvdjc] 11/12
<al2o3-cr> DeBot: cp
<DeBot> pipe [atrmlnhvdjc] 11/12 You won!
<Der_Fuhrer> anyone else love hitler?
<al2o3-cr> Der_Fuhrer: ?
<al2o3-cr> oh yeah web/freenode
<Der_Fuhrer> i'm making a rails app commemorating hitler and the jew holocaust lie
<pipework> apeiros, Radar: Can you take take of all of the above?
jayeshsolanki has quit [Quit: bye!]
<Der_Fuhrer> it's going to be an interactive app that shows why hitler was great and how jews lied about the holocaust
<Der_Fuhrer> educating people in the truth is very important
<al2o3-cr> !ops
<ruboto> sepp2k, fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, Karpah, workmad3, miah, Coraline, drbrain, zenspider, slyphon, Aria, rubyhacker1, ljarvis
Spami has quit [Quit: This computer has gone to sleep]
<Der_Fuhrer> al2o3-cr: why are you calling ops?
<Der_Fuhrer> do you have any physical evidence that proves the holocaust happened?
<Der_Fuhrer> the holocaust is a giant zog lie
psy_ has quit [Read error: Connection reset by peer]
<al2o3-cr> Der_Fuhrer: please preach else where
<Der_Fuhrer> did you know that there were jews in nazi government when hitler was "exterminating" them?
paradisaeidae has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
jfarmer has joined #ruby
dc has joined #ruby
Joufflu has joined #ruby
duderonomy has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
shuber_ has quit [Remote host closed the connection]
dc has quit [Ping timeout: 246 seconds]
shuber_ has joined #ruby
Sawbones has joined #ruby
aristocat456 has joined #ruby
aristocat456 has left #ruby [#ruby]
hsps_ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
scuey has joined #ruby
bkxd has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
Ropeney has joined #ruby
zubov has quit [Quit: Leaving]
paradisaeidae has joined #ruby
RegulationD has joined #ruby
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
shuber_ has quit [Remote host closed the connection]
guardianx has quit [Remote host closed the connection]
CustosLimen has quit [Max SendQ exceeded]
neohunter has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
guardianx has joined #ruby
macmartine has quit [Remote host closed the connection]
guardianx has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
guardianx has joined #ruby
shuber_ has joined #ruby
sent1nel has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 245 seconds]
psyprus has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
Spami has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
Der_Fuhrer was kicked from #ruby by miah [Der_Fuhrer]
CustosLimen has joined #ruby
dingus_khan has quit [Remote host closed the connection]
sent1nel has joined #ruby
lolmaus has joined #ruby
psyprus has joined #ruby
<miah> sup?
codecop has joined #ruby
guardianx has quit [Remote host closed the connection]
<miah> messing around with net-ldap some more
<miah> i swear everybody hates ldap but its not that bad
guardianx has joined #ruby
<miah> though i still havent gotten the hang of writing schemeas
<miah> need to dedicate a week to that soon
seitensei has quit [Ping timeout: 272 seconds]
CodeGnome2 has joined #ruby
<al2o3-cr> sup miah :)
<miah> spent some time trying to get my thinkpad/linux setup usable again too.. spent too long on osx. its made me dumb.
<al2o3-cr> lol
mary5030 has joined #ruby
<miah> having a hell of a time getting urxvt to come up with the color scheme i've defined in .Xresources.
iwishiwerearobot has quit [Ping timeout: 240 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ox0dea has left #ruby ["WeeChat 1.2-rc1"]
iwishiwerearobot has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
Ropeney has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
guardianx has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 265 seconds]
lolmaus has joined #ruby
Papierkorb has joined #ruby
CodeGnome2 has quit [Quit: -a- IRC for Android 2.1.20]
_seanc_ has joined #ruby
Sawbones has joined #ruby
commondream has joined #ruby
jfarmer has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has joined #ruby
shuber_ has quit [Remote host closed the connection]
lavros has joined #ruby
commondream has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Joufflu has quit [Quit: Peace]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
swgillespie has quit [Client Quit]
bb010g has joined #ruby
cht has quit []
sent1nel has quit [Remote host closed the connection]
sinequanon has joined #ruby
icebourg has quit []
speakingcode has joined #ruby
bkxd has joined #ruby
JamesRichards has joined #ruby
<JamesRichards> why is the ruby community filled with jerks?
<mozzarella> is it?
<JamesRichards> yes it is
<JamesRichards> especially the ops of this channel are huge assholes
_blizzy_ has joined #ruby
sre-su has joined #ruby
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
<zenspider> hahaha
<baweaver> Oh hey zenspider
shuber_ has joined #ruby
<baweaver> Care to do the honors?
<zenspider> baweaver: DO NOT TALK TO ME I AM A HUGE ASSHOLE
tuelz has joined #ruby
<zenspider> :P
<baweaver> Well yes, that's established
<baweaver> :P
<al2o3-cr> it's about time this channel gets a +r or ban all web gateways and get a real irc client
<zenspider> oh god. you're not referring to JamesRichards are you?
<baweaver> Radar wants to, apeiros is against it last I knew
affenhoden has quit [Remote host closed the connection]
rager has quit [Ping timeout: 252 seconds]
<al2o3-cr> +1 Radar
<baweaver> Batters up
<zenspider> well... Der_Fuhrer fucked off... anything else?
<zenspider> he's on a web gateway and isn't registered, so there's little (effective) I can do at this point.
<miah> ya
<miah> i booted them
<miah> and banned the nick
ramfjord has joined #ruby
<zenspider> kk. my proxy doesn't update me on that stuff when I come back
<miah> np
<baweaver> Ah, miah's an op too?
<zenspider> wow. the aryan nation has been on a roll the last couple days
diegoviola has quit [Remote host closed the connection]
<hanmac> JamesRichards: what is your personal problem with the ops in this channel?
<miah> baweaver: yes
<baweaver> I lose track.
<miah> did ruby do something to them?
<zenspider> swastika, ARYAN_NATIONS, KKKLANSMAN, der_fuhrer... prolly all the same person, no?
<baweaver> miah: So what's your story? Curious.
_blizzy_ has quit [Ping timeout: 265 seconds]
<zenspider> miah: you mean...besides us ops being HUGE ASSHOLES?
<miah> lol.
<zenspider> or was it giant?
<miah> gaping
Guest27857 has joined #ruby
<zenspider> um. I hope not.
tuelz has quit [Ping timeout: 272 seconds]
sandelius has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
<miah> story? its long. i work as a operations engineer by day at simple.com.
<baweaver> Oh hey, more ops types!
<miah> and 'learned' ruby a few years ago because of chef stuff
<miah> well puppet really
<miah> but chef gave me the final push
juanpaucar has joined #ruby
<zenspider> I can't believe we banned unclebob... we really ARE assholes
diegoviola has joined #ruby
<miah> lol
<baweaver> DevOps myself, Infrastructure Administration
<miah> ya
bronson has joined #ruby
<miah> i do that stuff i have just been doing it way longer than the term =)
<miah> i just call it operations engineering because ive had too many titles
<baweaver> Ha, I came in right around when the term came up.
<miah> i started working in IT doing consulting for netware, sco, and linux stuff in '97
<xxneolithicxx> OG IT in the house
<baweaver> Ah, so pretty close to my mentor actually. He's down in Santa Monica / LA area as a Cloud Ops lead
<miah> worked all sorts of places doing ops and security type work
car has joined #ruby
scuey has quit [Quit: Lost terminal]
<miah> cool
Channel6 has quit [Remote host closed the connection]
<miah> all my infrastructure is cloud based now. its great never having to rack gear now.
<baweaver> Don't I know it....
<miah> especially sun gear.. heavy stuff.
P1RATEZ has quit [Read error: Connection reset by peer]
<baweaver> If I never have to run shielded ethernet again
<miah> had to get a special mount for my v890
<baweaver> ah that'd be great
<Aeyrix> >cloud based
<Aeyrix> >:(
rubie has quit [Remote host closed the connection]
<miah> when we had bigger stuff i worked elsewhere and we had dc techs =)
<baweaver> Used to work at a Wireless ISP, had to run 25 strands of heavy shield up a water tower
juanpaucar has quit [Ping timeout: 250 seconds]
<baweaver> don't miss that.
<miah> oh wow. that sounds not fun.
<baweaver> Crimping that stuff was a beast.
<baweaver> Now working a lot of AWS automation
<miah> i jumped out of an airplane once. that was enough. i still dont like heights.
tubuliferous has joined #ruby
<baweaver> probably because default console is very much not friendly to specific permissioning of items.
bronson has quit [Ping timeout: 276 seconds]
<miah> ya, we use aws a ton. we have some writings about our stuff (its all python though) https://www.simple.com/engineering/infrastructure-as-code
<baweaver> We still need to write up on ours
<miah> when i worked at salesforce it took us months to go from gear arrival in dc to in production
<baweaver> But legal is still slow on giving us permissions to opensource things
<miah> now i roll entire stacks multiple times per day
<Aeyrix> baweaver: lol, sorry about that :(
<Aeyrix> that would've been part of my work had I moved to Seattle.
<Aeyrix> "now i roll stacks"
<Aeyrix> sounds illegal
<miah> i have a card
<baweaver> Sony as of now, PS4 runs a ton of stuff on AWS
<miah> ;)
<Aeyrix> I don't. :(
<baweaver> miah: So you're over in DC then?
<Aeyrix> baweaver: tbh that surprises me
<JamesRichards> hanmac: the ops are NIGGERS
<Aeyrix> Sony on AWS
<miah> i am in san francisco bay
<Aeyrix> JamesRichards: brool story co
JamesRichards was banned on #ruby by zenspider [*!d475b56b@gateway/web/freenode/ip.212.117.181.107]
JamesRichards was kicked from #ruby by zenspider [Kicked]
<baweaver> Ah, same. Soma
<zenspider> done
rippa has joined #ruby
<Aeyrix> Thank @zenspider
<baweaver> Home run!
<Aeyrix> r e k t
diegoviola has quit [Remote host closed the connection]
<miah> no hesitation
<zenspider> I tolerate a lot of bullshit. that ain't one of them
<miah> ya
<baweaver> Still interesting how many on this channel are in the Bay area
<Aeyrix> >made it to zen's ignore list
<miah> my job is in portland so i go up there every few months
<Aeyrix> >apparently i'm as much bullshit as that guy
<miah> otherwise i dont leave my island / house very often
<Aeyrix> Heh.
<zenspider> baweaver: I'm in seattle, so no. I like visiting the bay, but I could never live there
<zenspider> miah: simple is in pdx??
<miah> its different if you dont live in the city proper
tubuliferous has quit [Ping timeout: 244 seconds]
<miah> zenspider: yes
<miah> in the pearl
<baweaver> East Bay, Dublin area.
<Aeyrix> Dublin as in Ireland?
<baweaver> I just work downtown
<baweaver> California
<Aeyrix> Or have you lot stolen a UK city name again?
<miah> affordable housing == not living in san francisco
abuzze has joined #ruby
<zenspider> baweaver: you're near one of my favorite restaurants
<baweaver> Oh? In Dublin or Soma?
<baweaver> 21st Amendment if I had to guess.
<zenspider> baweaver: Trattoria La Siciliana in rockridge
<miah> we do a ton of cooking at home
<baweaver> miah: No kidding mate. 2500 for a studio is insane
<zenspider> wait. I may have flipped my map again. is dublin up towards pittsburg or is it south?
diegoviola has joined #ruby
<miah> i have a 3 bedroom house for that rate
<Aeyrix> miah: 2.5/mo?
<miah> ya
<baweaver> Towards Pleasanton
<miah> alameda island ftw
<Aeyrix> miah: lmao
<Aeyrix> I pay
<Aeyrix> Half that for a 3 bed, 2 storey house
<miah> we got in 2 years ago when my roomate died and we got ellis acted
<Aeyrix> 350/wk: $1200/mo.
<miah> ya
<miah> so i owned a house in houston for a short time
<Aeyrix> Granted it's upside down so
<miah> well.. i made payments on a house in houston =)
<Aeyrix> I guess that devalues it.
<miah> im aware of the insane cost of living here.. my kids live in the city though so its really difficult for me to move
<Aeyrix> I live in Australia, so I have no idea of the market around you. :P
<miah> ya
<miah> check this out
yaw has joined #ruby
<miah> sums up our situation
<zenspider> hahaha
yaw has quit [Read error: Connection reset by peer]
<baweaver> Also, Maui and Honolulu are cheaper
<al2o3-cr> wow, just wow
<baweaver> It's not the area I like as much as the people and the challenges
<miah> stat i heard the other day; 100k new jobs per year, but only 8000 new housing units
* baweaver pays $2100/mn for a 700 sqft 1 bed 45 minutes out of town
<miah> there are a bunch of nimbys that prevent construction
<miah> so we dont have the housing to match the demand
<miah> and also sf being a peninsula doesnt help
<miah> only way that we can build is up and people dont want skyscrapers to ruin their view
<zenspider> the bay area really needs to own the shift to virtual offices / teams
<miah> agreed
<baweaver> agreed
<miah> i wfh =)
rubie has joined #ruby
<baweaver> tried to here
<miah> but i live in the bay so lulz
amclain has quit [Quit: Leaving]
<miah> if only i could telecommute to my daughters
<baweaver> but they're stuck on people have to be in office
<miah> so many corps are ya
<zenspider> just imagine how much they'd save if they ditched that idea
<zenspider> even if you were 20% less efficient, they'd save 80% of their bullshit overheads
<miah> because trust and discipline are in low quanities in most orgs
<baweaver> They're stuck on it
<baweaver> Lord knows I've tried and made cases for it.
<miah> same
<zenspider> so rent some cheap ass place for an allhands and fly everyone there every 6 months... still cheaper
<miah> my first wfh job was in 2000 during the other bubble
<miah> and i've had a few others since, but 90% of the time its 'in the office daily by 9am'
<zenspider> makes even less sense if you're an admin, since you remote into all the boxen
<miah> yup
AlexRussia has joined #ruby
<baweaver> But Scrum!
<miah> our infrastructure is 100% cloud. none of engineering needs to be in the office.
<baweaver> and now this odd SAFe
<baweaver> miah: We could make a startup that facilitates making remote work easier :P
<miah> ive never worked anywhere that implemented scrum the same way
<baweaver> After all, it is the land of too many startups
<miah> i work for such a startup
diegoviola has quit [Quit: WeeChat 1.2]
<miah> where ops is 90% remote =)
cosmicexplorer has joined #ruby
wallerdev has quit [Quit: wallerdev]
<baweaver> Never said it was a bad thing :D
<baweaver> Just funny
<miah> ya
<miah> i will say, its nice to go into the office every few months and hang out
i8igmac has quit [Ping timeout: 256 seconds]
<baweaver> Indeed
<baweaver> That part is nice
<baweaver> I've noticed though that remote tends to weed out less than optimal engineers a lot faster though
<miah> ya
<baweaver> Some people just aren't cut out for it.
<zenspider> my guess is it biases towards introverts so the extroverts burn out faster
<baweaver> and honestly I wouldn't hire a remote without at least 3-5 years experience or something impressive in lieu
<miah> ah, i find the extrovert people on my team seem to chat more on irc and github and do more video hangouts
<miah> the introverts quietly close issues =)
<miah> guess which one i am?
tejasmanohar has left #ruby ["WeeChat 1.1.1"]
<baweaver> >> rand(2) == 0 ? :extrovert : :introvert
<ruboto> baweaver # => :extrovert (https://eval.in/368979)
<baweaver> ?
<zenspider> you can put the ? on the symbol :P
<baweaver> true
* baweaver has a very serious repl addiction
<zenspider> >> %i[introvert? extrovert?].sample
<ruboto> zenspider # => :extrovert? (https://eval.in/368980)
abuzze_ has joined #ruby
<zenspider> got it twice, must be true
<baweaver> must be
<miah> lollllll
<miah> only on irc
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> <3
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jarboe has quit []
abuzze has quit [Ping timeout: 256 seconds]
cosmicexplorer has quit [Remote host closed the connection]
<baweaver> Ah, and miah, if you're ever hacking over the weekend feel free to ping me some time. I tend to frequent coffee shops up and down the bay
<zenspider> baweaver: which ones?
bkxd_ has joined #ruby
<baweaver> There's a Five Barrel right down 2nd I tend to go to a lot as a default since it's on the way to work.
<miah> im always hacking. but i rarely leave my house.
<miah> i would be up to meeting up though
sandelius has joined #ruby
<baweaver> *Four Barrel
<miah> ya i used to work in that area of soma
Ropeney has joined #ruby
<baweaver> We're over on 2nd and Harrison, so right by 21st Amendment
<miah> cool
bkxd has quit [Ping timeout: 264 seconds]
<baweaver> Have a friend that just moved up from KC and another friend that moved up a while back working for Google that just emerged to the light of day again I'm catching up with this weekend.
<zenspider> I would like to find some places in the bay area that have the taste of blue bottle but without the snobbery
<baweaver> Yeah, I need to try that
<baweaver> I keep getting teas from Spicely, need to find some other good shops around there.
<zenspider> blue bottle is very very good. just... asshats
<zenspider> come up to seattle and I'll buy you the best cappuccino you'll ever have
paradisaeidae has joined #ruby
<baweaver> I might actually be up there in July
<baweaver> My Dad is from Centralia
<baweaver> so he makes a point of going up for Seahawks games all the time, sometimes tries to fly me out too
<zenspider> I've worked in centralia
<baweaver> Still reeling from that Greenbay game
<baweaver> Even though I rarely if ever watch football
Jackneill has joined #ruby
* baweaver doesn't want to mention the superbowl
Xiti has quit [Read error: Connection reset by peer]
<miah> mmm a super bowl of ceral. good idea.
krz has joined #ruby
<miah> cereal too =)
<baweaver> Heh
<baweaver> I could do without the Giants games clogging BART though
<musty> I'm no rubyist, but this is hideous Ruby. http://www.scs.stanford.edu/brop/braille.rb
towski_ has joined #ruby
<baweaver> Someone was a Java programmer
RegulationD has joined #ruby
coetry has quit [Quit: leaving]
<baweaver> musty: how'd you stumble on that one?
Sawbones has quit [Remote host closed the connection]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
sinequanon has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 258 seconds]
<zenspider> daaamn that's impressive
<miah> just went to that instead of reading that source
<baweaver> Well, yeah, that, but deeper
<baweaver> as in how in the world do you stumble upon something like that in general
zotherstupidguy has quit [Quit: WeeChat 1.2]
<zenspider> data << "A" * 0
<zenspider> and all the separate packs being appended on... just... wow
<miah> researching exploit techniques and so forth?
* baweaver isn't resisting refactoring urge well
pcspecs1 has joined #ruby
ahmetkapikiran has joined #ruby
<miah> lol
pcspecs1 has left #ruby [#ruby]
<zenspider> abort("damn dude you suck")
<zenspider> bout sums it up
ahmetkapikiran has quit [Client Quit]
<musty> baweaver, you don't.
<paradisaeidae> is rake broken in ruby-2.2.2 or is it just moi?
dingus_khan has joined #ruby
<baweaver> define broken
<baweaver> error messages help :)
<paradisaeidae> Cannot require gem in rakefile.
<musty> zenspider, baweaver, miah, it looks like a disaster.
<baweaver> try rake -v
<musty> Made me stop reading my book.
<baweaver> musty: It is
diegoviola has joined #ruby
atmosx has quit [Quit: WeeChat 0.4.4-dev]
<baweaver> We could remake it!
* baweaver needs to stop this madness before he burns a weekend again
<zenspider> paradisaeidae: if you're IN the rakefile, you've already loaded rake to some extent...
<duderonomy> i'm interested in the highend coffee meetup; when/where? I haven't been to SightGlass on 7th since they completed that project, yrs ago
<paradisaeidae> My Gem.path looks fine.
<zenspider> paradisaeidae: what's the line in the rakefile?
<paradisaeidae> require 'active_record_migrations'
<miah> most 'exploit' code is so poc it hurts
<zenspider> poc?
<miah> proof of concept
<zenspider> derp
<miah> its late =)
<zenspider> paradisaeidae: so, you're trying to load active_record_migrations and it is blowing up. why are you pointing at rake?
dingus_khan has quit [Ping timeout: 240 seconds]
<miah> its kind of the irony of the security industry
<paradisaeidae> rake is rake, version 10.4.2
<miah> most code that comes out of it is horrible =)
atmosx has joined #ruby
<paradisaeidae> Was working fine with ruby-2.2.1
<atmosx> hello
<zenspider> again, why are you blaming rake? is it saying anything to hint that?
jenrzzz has quit [Read error: Connection reset by peer]
<paradisaeidae> Fair q. Though other processes work fine finding gems.
<zenspider> `ruby -ractive_record_migrations -e 0`
<zenspider> what's that do?
* baweaver needs to do more security research later for kicks
abuzze_ has quit []
<paradisaeidae> t/kernel_require.rb:54:in `require': cannot load such file -- active_record_migrations (LoadError)
<zenspider> there you go. it's not rake
<paradisaeidae> hrrrmpph... thanks.!
<zenspider> `gem which active_record_migrations` is probably also an error
<miah> maybe you used bundler to install the gems to a different location and not in your system gems?
<paradisaeidae> nope..
<paradisaeidae> GEMSR2/2.2.0/gems/active_record_migrations-4.2.1.2/lib/active_record_migrations.rb
<paradisaeidae> don't use bundler...
<miah> ok
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
<zenspider> `which ruby`
<zenspider> `which gem`
<zenspider> `which rake`
<zenspider> `head -1 $(which gem)`
<zenspider> `head -1 $(which rake)`
woodruffw has quit [Read error: Connection reset by peer]
<zenspider> guessing they're pointing at different things
<paradisaeidae> Both pointing at.... RUBY/2.2.2/bin/ruby-2.2.2
hanmac has quit [Ping timeout: 256 seconds]
<zenspider> mmmmm
<paradisaeidae> Which is compiled from source.
<zenspider> `env | egrep -i "ruby|gem"`
<zenspider> that might be messy. drop -i and cap ruby|gem
<musty> baweaver, are you re-coding it?
<baweaver> .....maybe
* baweaver should really go to bed.
<zenspider> baweaver: don't do it until you have a contract in hand
<baweaver> heh
<miah> hah
<zenspider> code that bad? good chance they won't even read or learn from your rewrite. make em pay
<paradisaeidae> so...env | egrep cap ruby|gem ?
fabrice31 has joined #ruby
woodruffw has joined #ruby
<paradisaeidae> Sorry zenspider... what are you looking for?
<paradisaeidae> I have a local /bin which has links to the ruby directory.
pontiki has joined #ruby
<paradisaeidae> This /bin is in my load path.
bosma is now known as bosnia
fabrice31 has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
User458764 has joined #ruby
<zenspider> paradisaeidae: I'm trying to see if you have any env vars that might be fucking anything up
<paradisaeidae> yepYup.
diegoviola has quit [Quit: WeeChat 1.2]
<zenspider> RUBYOPT or GEM_HOME or GEM_PATH or... I have no idea. I'm fishing at this point
hanmac has joined #ruby
<zenspider> paradisaeidae: wait a sec
<zenspider> you said everything is pointing at RUBY/2.2.2/bin/ruby-2.2.2
<paradisaeidae> Hang on... I've got it.
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> but you also said GEMSR2/2.2.0/gems/active_record_migrations-4.2.1.2/lib/active_record_migrations.rb
<zenspider> 2.2.0 != 2.2.2
<paradisaeidae> I know ... though they are correct... the leading part I dropped...
<zenspider> which means `gem` is pointed at the right thing, but ruby and rake are not
<paradisaeidae> but the issue is that I have a chruby which selects the ruby version.
<paradisaeidae> And init's the Gem dirs.
<miah> chruby doesnt use .ruby_version by default iirc
<zenspider> ugh
bkxd_ has quit [Ping timeout: 272 seconds]
<paradisaeidae> It was not ruby for some reason.
<zenspider> I thought chruby didn't do gemset crap?
rubie has quit [Remote host closed the connection]
<paradisaeidae> (run).
<zenspider> guess I'm sticking w/ rbenv + omg
kenndel has joined #ruby
<miah> iirc its optional behavior
<paradisaeidae> Well... disclosure....
<paradisaeidae> I 'modified' my chruby.... a bit...
<miah> ah
<paradisaeidae> Whilst upgrading ruby...
<miah> and you may be using source /usr/local/share/chruby/auto.sh?
<miah> hopefully your modifications to chruby are not the cause? =)
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
charliesome has quit [Quit: zzz]
<paradisaeidae> Not using auto...
<miah> then .ruby_version probably isn't respected
<paradisaeidae> ..phew...!!
<paradisaeidae> Thanks for everyting!
DynamicMetaFlow has quit [Ping timeout: 265 seconds]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
zotherstupidguy has joined #ruby
bosnia is now known as InlandBosnia
zotherstupidguy has quit [Client Quit]
sre-su has quit [Read error: Connection reset by peer]
chishiki has quit [Quit: WeeChat 1.1.1]
Alina-malina has quit [Read error: Connection reset by peer]
InlandBosnia is now known as Bosnia
Alina-malina has joined #ruby
bruno- has joined #ruby
darkf_ has joined #ruby
bruno- is now known as Guest7879
bMalum has joined #ruby
zotherstupidguy has joined #ruby
sinequanon has joined #ruby
Oka has quit [Quit: さようなら]
darkf has quit [Ping timeout: 256 seconds]
sinequanon has quit [Remote host closed the connection]
ebonics has quit [Quit: Leaving]
Guest7879 has quit [Ping timeout: 256 seconds]
DynamicMetaFlow has joined #ruby
<paradisaeidae> ThanksAgain.... gottAgo..
tuelz has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
charliesome has joined #ruby
Sawbones has joined #ruby
tuelz has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
juanpaucar has joined #ruby
bkxd has joined #ruby
bronson has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
WildBamboo-Josh has quit [Read error: Connection reset by peer]
WildBamboo-Josh has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
DerisiveLogic has quit [Remote host closed the connection]
tubuliferous has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
tubuliferous has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
P1RATEZ has joined #ruby
dingus_khan has joined #ruby
chishiki has joined #ruby
zreisman has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Ping timeout: 258 seconds]
doublemalt_ has joined #ruby
chishiki has quit [Quit: WeeChat 1.2]
SparklingWiggles has joined #ruby
<SparklingWiggles> hi guys
<SparklingWiggles> any fun ruby challenges that are offline?
tkuchiki has joined #ruby
<wasamasa> the ruby sources of your installation
* pontiki wonders how you'd get them if they were not online
<wasamasa> at least I have these on disk
scripore has joined #ruby
hardlin3r has joined #ruby
dfockler has joined #ruby
P1RATEZ has quit []
<wasamasa> and having ruby installed for "challenges" should be a reasonable precondition, no :P
towski_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
<jhass> al2o3-cr: here, nothing
Jackneill has quit [Quit: Leaving]
SparklingWiggles has quit [Remote host closed the connection]
<wasamasa> from this I've learned that there is a shorter incantation to boot up webrick
<wasamasa> ruby -run -e httpd -- --port=8000 .
dfockler has quit [Ping timeout: 272 seconds]
leafybasil has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 256 seconds]
<pontiki> the un library is a little odd
irobevjodu has quit [Ping timeout: 272 seconds]
cryptohacker has joined #ruby
<cryptohacker> Hi all!
_seanc_ has quit [Quit: _seanc_]
mandarinkin has joined #ruby
<cryptohacker> HI
<pontiki> hi
DexterLB has quit [Ping timeout: 240 seconds]
<cryptohacker> How are you?
DexterLB has joined #ruby
<cryptohacker> I see nothing here
tkuchiki has quit [Ping timeout: 265 seconds]
cryptohacker has left #ruby [#ruby]
Pupeno has joined #ruby
arietis has joined #ruby
arietis has quit [Client Quit]
<mandarinkin> whats up
jgt1 has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
parduse is now known as Guest93059
Guest93059 has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
pardusf has joined #ruby
Pupeno has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
bkxd_ has quit [Ping timeout: 245 seconds]
chinmay_dd has joined #ruby
chishiki has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
sent1nel has joined #ruby
<atmosx> Time Machine automatic backup scheme saved me more than once..
bkxd has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
m8 has joined #ruby
yh__ has joined #ruby
centrx has joined #ruby
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
sent1nel has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Ping timeout: 272 seconds]
HotCoder has joined #ruby
chinmay_dd has quit []
chishiki has quit [Quit: WeeChat 1.2]
Sawbones has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
chishiki has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
zotherstupidguy has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
Bermulium has joined #ruby
sevenseacat has joined #ruby
dru` has quit [Ping timeout: 258 seconds]
zotherstupidguy has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
exadeci has joined #ruby
<Bermulium> What are Enumerables ?
<jhass> Bermulium: classes that include the Enumerable module
<jhass> the requirement of that module is that they define an each method
<jhass> it provides allot of functionality on top of that
<Bermulium> hm why an each method only?
<centrx> Bermulium, The distinctive quality of an Enumerable is that it can be iterated
<zenspider> Bermulium: `ri Enumerable`
<centrx> Bermulium, #each is the basic mechanism of iteration
bkxd_ has joined #ruby
<Bermulium> I see. And then there are enumerable methods?
dingus_khan has joined #ruby
Jackneill has joined #ruby
<centrx> What does that mean
<Bermulium> centrx, ?
<centrx> exactly
bkxd has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
<Bermulium> What exactly, what don't you understand?
DynamicMetaFlow has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
<centrx> "there are enumerable methods" - what does this mean
<centrx> It is what you said
<Bermulium> What you think it means?
<centrx> What do you think you meant when you said it?
<Bermulium> It can only mean one thing
<Bermulium> methods such as map etc
DLSteve has joined #ruby
<centrx> Bermulium, Yes, those are methods on http://ruby-doc.org/core-2.2.2/Enumerable.html
shuber_ has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 250 seconds]
<Bermulium> jhass, lol
<jhass> what's funny?
<centrx> must be one of those kids born after Sept 11
zotherstupidguy has quit [Ping timeout: 264 seconds]
<centrx> everything changed
fabrice31 has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
sandelius has joined #ruby
zotherstupidguy has quit [Client Quit]
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
leafybasil has joined #ruby
<al2o3-cr> oh, ok. only just seen what you said :)
leafybasil has quit []
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
spider-mario has joined #ruby
hardlin3r has quit [Ping timeout: 246 seconds]
iwishiwerearobot has quit [Ping timeout: 256 seconds]
ljarvis has joined #ruby
bkxd_ has quit [Quit: Reconnecting]
bkxd has joined #ruby
iwishiwerearobot has joined #ruby
bMalum has quit [Quit: bMalum]
mandarinkin has quit [Remote host closed the connection]
mandarinkin has joined #ruby
mandarinkin has quit [Read error: Connection reset by peer]
mandarinkin has joined #ruby
data-cat has joined #ruby
arietis has joined #ruby
tuelz has joined #ruby
<data-cat> How can I do the opposite of Hash.inspect? So like, turn a string back in to a hash.
arietis has quit [Client Quit]
<apeiros> data-cat: that bears the question: why?
<apeiros> data-cat: take a look at literal_parser gem. it does that without eval.
<jhass> data-cat: but do not just proceed, the why is important here, there's likely a better alternative to what you're doing
arietis has joined #ruby
<data-cat> I have some hacky code that stores a simple hash in our database by turning it in to a string first.
<jhass> serialize to yaml or json then
zotherstupidguy has joined #ruby
<data-cat> ahh, I didn't think of that
<data-cat> Thanks
<data-cat> that will be much better, and easier to work with
<apeiros> + or marshal
<apeiros> (as another option)
kraljev11 has joined #ruby
<apeiros> personally I'd probably go with json if its data types suffice, yaml otherwise.
<apeiros> marshal only if performance matters
mandarinkin has quit [Ping timeout: 255 seconds]
<data-cat> Yea, json will work perfectly here.
n008f4g_ has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
multiscan has joined #ruby
juanpaucar has joined #ruby
bronson has joined #ruby
jottr_ has joined #ruby
jayeshsolanki has joined #ruby
platzhirsch has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
jayeshsolanki has quit [Max SendQ exceeded]
bkxd_ has joined #ruby
bkxd_ has quit [Client Quit]
P1RATEZ has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
jayeshsolanki has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
zotherstupidguy has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
jayeshsolanki has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 245 seconds]
tubuliferous has joined #ruby
bMalum has joined #ruby
jayeshsolanki has joined #ruby
zotherstupidguy has quit [Client Quit]
bkxd_ has quit [Ping timeout: 245 seconds]
AlphaAtom has joined #ruby
<atmosx> Anyone knows how to run this 'R' script? http://pastebin.com/pgZVC6N1 - I'm kinda stuck with the syntax.
<ruboto> atmosx, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<atmosx> ruboto: okay sure
<atmosx> ah n/m just made executable.
tubuliferous has quit [Ping timeout: 244 seconds]
kurtec has joined #ruby
<zenspider> atmosx: is the question about how to run R scripts and pass args?
<atmosx> zenspider: it was yes, but making the script +x solved the issue.
jgt1 has quit [Ping timeout: 272 seconds]
<zenspider> atmosx: and running with `R script.R` args didn't?
<zenspider> oops. `R script.R args`
ramfjord has quit [Ping timeout: 272 seconds]
zotherstupidguy has joined #ruby
duncannz has quit [Ping timeout: 265 seconds]
<atmosx> zenspider: nope, didn't work for me. Not even after adding --no-save ... It was the first thing I've tried, since it's the std way or running script under nix
<zenspider> oh looks like it should prolly be `R batch script.R args`
DynamicMetaFlow has joined #ruby
<atmosx> I've seen that too on SO after a google search... But I thought that it was a windows-specific flag.
nfk has joined #ruby
<atmosx> hm, my bad.
kurtec has quit [Client Quit]
Sawbones has joined #ruby
<zenspider> *shrug* I try to avoid R... I was just looking at `R --help`
multiscan has quit [Remote host closed the connection]
sdothum has joined #ruby
multiscan has joined #ruby
arietis has quit [Quit: Leaving.]
kurtec has joined #ruby
arietis has joined #ruby
Bermulium has quit [Quit: Leaving]
wjimenez5271 has quit [Ping timeout: 252 seconds]
<atmosx> zenspider: I'm still trying to run this thing, but doesn't produce an output. http://www.spinellis.gr/blog/20150113/index.html I thought the 2nd arg should be a directory where data will be exported, but hm it's not.
Sawbones has quit [Ping timeout: 256 seconds]
multiscan has quit [Ping timeout: 250 seconds]
<zenspider> 2nd arg is "name"... looks like it is only for the labels
<atmosx> ah my bad it works
bMalum has quit [Quit: bMalum]
mercerist has joined #ruby
dingus_khan has joined #ruby
jbomo has quit [Ping timeout: 240 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
shuber_ has joined #ruby
dingus_khan has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
shuber_ has quit [Ping timeout: 244 seconds]
kurtec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
kamichi has joined #ruby
data-cat has quit [Quit: leaving]
ponga has quit [Quit: Leaving...]
kurtec has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 250 seconds]
Alina-malina has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
bMalum has joined #ruby
zotherstupidguy has joined #ruby
DynamicMetaFlow has joined #ruby
arietis has quit [Quit: Leaving.]
RegulationD has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
pandaant has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
RegulationD has quit [Ping timeout: 276 seconds]
hardlin3r has joined #ruby
Notte has joined #ruby
Alina-malina has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
arup_r has joined #ruby
kurtec has quit [Quit: Textual IRC Client: www.textualapp.com]
Alina-malina has joined #ruby
platzhirsch has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 256 seconds]
phutchins has joined #ruby
wildroman2 has joined #ruby
xfumihiro has quit [Quit: Connection closed for inactivity]
DEA7TH has joined #ruby
dc has joined #ruby
pandaant has quit [Remote host closed the connection]
commondream has joined #ruby
atmosx has quit [Quit: Lost in trance]
Solsist has joined #ruby
jgt1 has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
jgt1 has quit [Ping timeout: 264 seconds]
_blizzy_ has joined #ruby
hectortrope has joined #ruby
bruno- has joined #ruby
fabrice31 has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
darkf_ is now known as darkf
hectortrope has quit [Client Quit]
bronson has joined #ruby
AlphaAtom has joined #ruby
jenrzzz has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
serivichi has joined #ruby
serivich has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
pardusf has quit []
<adaedra> Hello
DynamicMetaFlow has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
Hounddog has joined #ruby
sgambino has joined #ruby
wildroman2 has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shuber_ has joined #ruby
bMalum has quit [Quit: bMalum]
kraljev11 has quit [Quit: kraljev11]
tkuchiki has quit [Ping timeout: 258 seconds]
kraljev11 has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kamichi has quit [Quit: Lost terminal]
kamichi has joined #ruby
sigurding has joined #ruby
<HotCoder> who here uses ruby on vim? report to me please
<sevenseacat> report? lol
bMalum has joined #ruby
<apeiros> probably just not english as mother tongue
<apeiros> HotCoder: it's better if you ask a specific question instead of asking for people
<apeiros> when/if somebody can help you, they will
<HotCoder> sevenseacat, lol ye
<HotCoder> i dont have a specific question
<HotCoder> i just want to learn ruby
<sevenseacat> so why do you need vim users?
<HotCoder> and i am trying to ask vim users why they think vim is better
* apeiros steals wizard hats again
<sevenseacat> whats that got to do with learning ruby?
<HotCoder> what is the advantage of vim over sublime in regards to learning ruby
<HotCoder> is my question
shuber_ has quit [Ping timeout: 265 seconds]
<sevenseacat> editors are about personal preference
<jhass> none
<apeiros> "in regards to learning ruby" probably none
<jhass> move on
<HotCoder> welp, moving on is my thing so..
jstanton has quit [Ping timeout: 252 seconds]
<sevenseacat> if you dont already use vim, its just another thing to learn before you can do what you actually want to do
<wasamasa> HotCoder: using vim or emacs won't magically make you a better programmer
<HotCoder> sevenseacat, yea i agree. but im trying to learn as much as i can
<HotCoder> so i guess i'll learn vim along the way too
<HotCoder> wasamasa, it wont. but im trying to find out which is more powerful
<wasamasa> HotCoder: knowing either of them however can make for a nicer editing experience
<wasamasa> HotCoder: that question doesn't make much sense
<DLSteve> I use a bloated IDE :P
<sevenseacat> and then you'll spend the next week learning vim, then the week after that choosing extensions and plugins, and then you still wont know ruby
Ropeney has joined #ruby
kirun has joined #ruby
<HotCoder> lol
<jhass> I think we cleared that up, next topic please!
<HotCoder> i've been putting it off for months now. still dont know ruby
<wasamasa> then you might have greater problems than choosing a text editor
<sevenseacat> ah, so we're into 'looking for excuses not to do it' phase?
<HotCoder> i love how this channel comes with a free therapy session :D
<wasamasa> it sure sounds that way :P
<sevenseacat> in that case, let me point towards this list of editors, or even this list of alternate languages!
<wasamasa> HotCoder: don't worry, we're experts on this topic
<HotCoder> wasamasa, the therapy? ruby? or vim?
<sevenseacat> i'm learning elixir atm. i quite like it.
<wasamasa> HotCoder: procrastination
<HotCoder> sevenseacat, do you now? i'm originally a java coder. its a little lengthy, little painful, little slow
<HotCoder> in ways its just like me
<wasamasa> lol
<sevenseacat> btw, do you have a favorite colour scheme or theme for your editor? what about a font? :)
<HotCoder> red and comic sans!
<wasamasa> red is not a color scheme
<HotCoder> sigh
<HotCoder> orchard wonders
<HotCoder> thats my favorite colour scheme
tuelz has joined #ruby
<sevenseacat> I'm a Dobdark kind of woman.
<wasamasa> I'm still hung up on solarized dark
<sevenseacat> never liked solarized
<wasamasa> since it avoids making my eyes hurt when staring on it for prolonged times
<HotCoder> sevenseacat, and you know what they say about dobdark women
<wasamasa> I assume the same goes for zenburn users
<sevenseacat> HotCoder: we're awesome programmers? :)
<HotCoder> "whips and chainz may break my bones but words can never hurt me"
<wasamasa> still need a good light theme though, solarized light is looking like code on a pee-colored background
<sevenseacat> shun the light themes
<HotCoder> wasamasa, so its kinda like you then?
<wasamasa> HotCoder: leave my pissiness alone
<HotCoder> wasamasa, how about no
* wasamasa sighs
<sevenseacat> err
banister has joined #ruby
<HotCoder> vim is actually a detergent brand
banister has quit [Max SendQ exceeded]
<HotCoder> in india
<HotCoder> did you know that?
<sevenseacat> HotCoder: there's joking, and then there's verging on rude
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
<HotCoder> sevenseacat, the vim thing? there actually is a detergent
<HotCoder> tide's much better tho
djbkd has joined #ruby
kraljev11 has quit [Ping timeout: 258 seconds]
<DLSteve> Tide is the #1 selling brand.
jenrzzz has quit [Ping timeout: 252 seconds]
tuelz has quit [Ping timeout: 276 seconds]
sivoais has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
sigurding has quit [Quit: sigurding]
<HotCoder> it is
juanpaucar has joined #ruby
Takle has joined #ruby
Rickmasta has joined #ruby
<Aeyrix> wtf am i reading
<Aeyrix> I'm lucky nobody at work can see my IRC screen
<Aeyrix> they'd wonder if I was okay
djbkd has quit [Ping timeout: 265 seconds]
<wasamasa> guess I'll eventually make a light greyscale theme with one or two colors as highlight
<HotCoder> its not hard to understand
<HotCoder> Aeyrix, just playful banter
<sevenseacat> Aeyrix: why are you at work on a saturday night
<HotCoder> liar detected
<Aeyrix> sevenseacat: Hahahahahahaha
<Aeyrix> Oh you people with your 35hr weeks are so cute.
<HotCoder> i dont even have a job
<HotCoder> i freelance
<Aeyrix> You people with your 0 hour jobs are cuter.
<sevenseacat> i <3 my 9-5
<Aeyrix> I work a 8:30-6:30 atm.
<Aeyrix> I'm not *at work* right now, but I am writing a report.
<Aeyrix> I just want to get it out of the way mostly.
bMalum has quit [Quit: bMalum]
<sevenseacat> well, i do 8-4, but same thing
<Aeyrix> Yeah.
<Aeyrix> My old job was like
<Aeyrix> 8:30 - 7:30 expectation
<sevenseacat> bugger that
<Aeyrix> Yeah I generally left at 5.
<sevenseacat> i'm an employee, not a slave
<ytti> anything more than 8h day here would mean overtime
<Aeyrix> My current job I actively stay back tbh.
juanpaucar has quit [Ping timeout: 255 seconds]
<Aeyrix> ytti: Same
<Aeyrix> But it was like, an unspoken expectation.
<Aeyrix> My current job 'expects' 9-5 just like anywhere else.
<Aeyrix> But I'm generally 8 to 6, sometimes 8 - 8
tubuliferous has joined #ruby
<Aeyrix> just because i don't have anywhere to be and i enjoy my jon
<sevenseacat> yeah no i dont do 'unspoken' things anymore
<Aeyrix> my job too
<ytti> we don't have enough seats at the office for all employees
* Aeyrix lives alone. ( ._.)
<ytti> telecommuting is expected
<ytti> i usually go to the office for meetings
<Aeyrix> I like my office. I have an awesome view of the harbour.
bMalum has joined #ruby
spider-mario has quit [Ping timeout: 265 seconds]
banister has joined #ruby
<HotCoder> you people with your jobs so lucky
<ytti> i used to have view to the sea, but not for few years time
<Aeyrix> HotCoder: Getting a job isn't difficult.
<HotCoder> no degree?
<Aeyrix> I don't have a degree.
<Aeyrix> I'm working towards one, but only because I've gone too far to drop out now.
<Aeyrix> My professional summary makes no mention of a degree.
<ytti> gteting job today is LOT harder than it was in mid-late 90s
sivoais has joined #ruby
<HotCoder> Aeyrix, where do you work
<ytti> then literally no qualifications was required
* Aeyrix shrugs.
<Aeyrix> Maybe I'm lucky.
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> after that you have experience
<ytti> and you're employable
<ytti> but landing that first job is very market dependent
<Aeyrix> Yeah I kind of cheated.
<Aeyrix> My first job was a fortune 100.
<Aeyrix> So after that I can go anywhere.
<ytti> if you graduate to bear market, you're fucked
<ytti> because if you won't find job in first year, you're someone who was unemloyed for a year
<ytti> competeting with someone who jsut graduated
<Aeyrix> HotCoder: Without giving specifics, I work for an information security firm that is quite well known in the field.
<ytti> you're much less favorable hire
tubuliferous has quit [Ping timeout: 244 seconds]
<ytti> if your university permits it, don't graduate until you have job
<ytti> so then you can at least say you're studying
<Aeyrix> I work full-time and study full-time at the moment.
<wasamasa> two full times?
<Aeyrix> Mhm.
<wasamasa> how does that even work
<Aeyrix> Stubbornness.
* wasamasa studies for half a semester, then works for the other half full time
<Aeyrix> That word looks incorrect..
<ytti> it's right
<Aeyrix> wasamasa: I just want my degree to be over.
<Aeyrix> So I just do both full time.
<Aeyrix> I don't really have a social life, but I don't have the time to regret not having one.
<wasamasa> lol
<HotCoder> Aeyrix, nice nice. pays well?
<wasamasa> not even on the weekend?
<Aeyrix> I just moved interstate anyway, so it's not like I have any friends. :P
bMalum has quit [Client Quit]
<Aeyrix> HotCoder: Very.
<Aeyrix> wasamasa: Rarely.
<wasamasa> I sometimes do
<Aeyrix> In between semesters yes, but all of my friends also work full-time.
woodennails has joined #ruby
<ytti> hey we are all on irc, let's not kid ourself not having extra time :)
<HotCoder> Aeyrix, :O nice
<HotCoder> congrats man
<Aeyrix> ytti: I'm reporting right now yo. :P
<Aeyrix> Two screens.
* wasamasa uses IRC for work communication
<Aeyrix> Same.
<wasamasa> so convenient
<Aeyrix> We have an internal IRC server.
<Aeyrix> I'm trying to convince people to move to Slack because it's nicer for teams.
<wasamasa> it's just annoying when the trainees don't respond in a timely manner when pinging them
<wasamasa> Aeyrix: lol, last thing I've heard of slack is that their IRC implementation is hacky
<Aeyrix> It is.
<Aeyrix> It's an endpoint. I've done... more research than I should've about them.
nfk has quit [Quit: yawn]
<wasamasa> "Slack forgets to add a colon to indicate the last argument in the RPL_WELCOME message"
<Aeyrix> I don't use their IRC endpoint.
<Aeyrix> Their web UI works well enough for me.
<Aeyrix> I quite like it.
AlphaAtom has joined #ruby
<Aeyrix> My only issue is that it's hosted in the USA.
psy_ has quit [Ping timeout: 252 seconds]
Jackneill has quit [Quit: Leaving]
<Aeyrix> sevenseacat: You don't use a BNC do you?
* wasamasa shakes fist at these slackers
<Aeyrix> wasamasa: I solved the USA thing by just writing an alternative. ^_^
<Aeyrix> rails + websockets + redis + postgre
bruno- has quit [Ping timeout: 252 seconds]
platzhirsch has joined #ruby
Jackneill has joined #ruby
jgt1 has joined #ruby
bMalum has joined #ruby
bruno- has joined #ruby
davispuh has joined #ruby
atmosx has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
jgt1 has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
psy_ has joined #ruby
<bkxd> the things that scares me about that stack for example, is that all these bespoke techs are probably not going to be around indefinitely
irobevjodu has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
yh__ has quit [Ping timeout: 240 seconds]
<sevenseacat> Aeyrix: i dont know what that is, so ill say no.
<Aeyrix> Bouncer.
<sevenseacat> ah. nope.
<Aeyrix> I wondered if you saw my question in #ror earlier. Evidently not.
<Aeyrix> Was hunting an Australian who knew about licensing in Australia.
<sevenseacat> was it a good one?
<Aeyrix> wow rude :(
<sevenseacat> um, a little.
aryaching has joined #ruby
<sevenseacat> (as in, i know a little)
qwertme has joined #ruby
* sevenseacat doesn't have a full license
ndrei has joined #ruby
<Aeyrix> I mean software licensing.
<sevenseacat> um, then i know even less
<Aeyrix> Ah okay.
<Aeyrix> I might just contact a damn lawyer.
<Aeyrix> tl;dr there's a discussion as to whether or not you can disclaim liability in Australia.
<Aeyrix> As in, someone could *actually* sue you if they use your MIT licensed code and break their legs or something.
<Aeyrix> (successfully)
<sevenseacat> ah. nfi.
<Aeyrix> :x
<Aeyrix> It's an interesting discussion though, although I seriously doubt it's true.
car has quit [Ping timeout: 272 seconds]
yh__ has joined #ruby
bruno- has quit [Quit: Lost terminal]
bruno- has joined #ruby
arietis has joined #ruby
shuber_ has joined #ruby
bruno- has quit [Client Quit]
serivichi has quit [Quit: Leaving]
dorei has joined #ruby
arietis has quit [Client Quit]
shuber_ has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
chinmay_dd has joined #ruby
Leef_ has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 265 seconds]
tuelz has joined #ruby
lolmaus has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
webguynow has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
towski_ has joined #ruby
tuelz has quit [Ping timeout: 264 seconds]
Takle_ has joined #ruby
spider-mario has joined #ruby
edwinvdgraaf has joined #ruby
jottr_ has joined #ruby
towski_ has quit [Ping timeout: 244 seconds]
<HotCoder> question. i cant get rvm to install on my linux system
<HotCoder> how can i do so?
<HotCoder> i used these commands right here
<sevenseacat> go to the rvm website and follow the instructions?
Takle_ has quit [Ping timeout: 255 seconds]
jgt1 has joined #ruby
<HotCoder> rvm.io/rvm/install
<HotCoder> thats literally what i did
<HotCoder> \curl -sSL https://get.rvm.io | bash
<sevenseacat> and why didnt it install?
<HotCoder> \curl -sSL https://get.rvm.io | bash -s stable --ruby
<HotCoder> it installed
<HotCoder> but then i did rvm -v
<HotCoder> and it dont detect
<sevenseacat> so the problem is?
<HotCoder> the problem is
<sevenseacat> "it dont detect"?
<HotCoder> that i "installed" but it dont recognize the rvm command
<sevenseacat> what os are you on?
<HotCoder> rvm: command not found
<HotCoder> raspbian
coventry` has quit [Ping timeout: 272 seconds]
<HotCoder> so a variation of linux
<HotCoder> do i have to set the default?
<sevenseacat> is your terminal a login terminal?
<sevenseacat> if not, you'll need to set it as one
<HotCoder> then install again? or?
<sevenseacat> no, then it will work
<jhass> personally I just add the source line to the .$SHELLrc
<HotCoder> jhass, how do i do that then?
* sevenseacat shrugs
<jhass> look at the profile, transfer that line to the rc
<sevenseacat> I dont even use rvm
<jhass> well, same for the other things
<HotCoder> sevenseacat, yeah it works for the login terminal
<HotCoder> i had the same problem with node
<sevenseacat> :)
<HotCoder> but i had to set the defaults or something
<HotCoder> i need to know how to make it available to all terminals :P
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Pupeno has joined #ruby
diegoviola has joined #ruby
<sevenseacat> uh... you configure your terminal to be a login terminal
<sevenseacat> which is what i just said
<jhass> or transfer the source line to the rc
<jhass> which is what I just said
<sevenseacat> either will work :)
<HotCoder> jhass, how to transfer source line
<jhass> you open both files in your editor and do it
<sevenseacat> you need to know how to edit a file?
<shevy> you shout Cthulhu three times
<HotCoder> what files
<HotCoder> what files do i edit and what line do i put on there
<shevy> lol
<jhass> the profile your shell reads and the rc your shell reads
fabrice31 has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
<HotCoder> i have no idea what this is
<HotCoder> anyone got a link that explains
<HotCoder> how to do this
<sevenseacat> i guess thats a yes
bronson has joined #ruby
<sevenseacat> you know the instructions that told you to put some lines in .bash_profile? do that, except for .bashrc
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
Alina-malina has joined #ruby
rodfersou has joined #ruby
<shevy> anyone has an idea why this does not work? https://gist.github.com/shevegen/3acd16d8a92c6216253f the part "alias e puts" does not seem to work when it is put inside the module; it works when I put it on top outside the module
bkxd has quit [Ping timeout: 256 seconds]
<shevy> hmm it does work when it is an instance method...
<apeiros> shevy: alias aliases instance methods
<shevy> aaaaaah
<apeiros> shevy: you must put it into a self << class; end
<shevy> cool, thanks
<apeiros> if SOME_VALUE; class << self; alias e puts; end; end
bronson has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
DynamicMetaFlow has quit [Read error: Connection reset by peer]
Leef_ has quit [Quit: Leaving]
bkxd has quit [Client Quit]
pwattstbd has joined #ruby
bkxd has joined #ruby
pontiki has joined #ruby
michael_mbp has quit [Excess Flood]
DexterLB has quit [Read error: Connection reset by peer]
Alina-malina has quit [Ping timeout: 265 seconds]
Alina-malina has joined #ruby
michael_mbp has joined #ruby
wildroman2 has joined #ruby
DexterLB has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dingus_khan has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
c355E3B has joined #ruby
Alina-malina has quit [Ping timeout: 272 seconds]
_blizzy_ has quit [Ping timeout: 265 seconds]
dingus_khan has quit [Ping timeout: 265 seconds]
shuber_ has joined #ruby
Solsist has quit [Ping timeout: 240 seconds]
e1nh4nd3r has joined #ruby
giuseppesolinas has joined #ruby
shuber_ has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Client Quit]
RegulationD has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
juanpaucar has joined #ruby
Alina-malina has joined #ruby
djbkd has joined #ruby
scripore has joined #ruby
michael_mbp has quit [Excess Flood]
<zotherstupidguy> /away
RegulationD has quit [Ping timeout: 265 seconds]
juanpaucar has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
doodlehaus has joined #ruby
Pupeno has quit [Quit: Leaving...]
djbkd has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
merceris_ has joined #ruby
irobevjodu has quit [Remote host closed the connection]
irobevjodu has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
mercerist has quit [Ping timeout: 276 seconds]
<shevy> /I do not believe zotherstupidguy
e1nh4nd3r has quit [Quit: Leaving.]
scripore has quit [Quit: This computer has gone to sleep]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
mercerist has joined #ruby
dstarh has joined #ruby
wildroman2 has quit [Remote host closed the connection]
merceris_ has quit [Ping timeout: 240 seconds]
irobevjodu has quit [Remote host closed the connection]
bitch has joined #ruby
<pontiki> morning
<apeiros> moin pontiki
<adaedra> hi
dopie has quit [Quit: This computer has gone to sleep]
Notte has quit [Remote host closed the connection]
<shevy> king pontiki has arrived
<pontiki> what mischief today, mavens of the gem?
bruno- has joined #ruby
<pontiki> :/
<pontiki> not king
bitch has quit [Remote host closed the connection]
<shevy> hehe
prostitute has joined #ruby
sandelius has joined #ruby
coderhs has joined #ruby
c355E3B has quit [Quit: Leaving]
coderhs has quit [Client Quit]
arietis has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
bronson has joined #ruby
platzhirsch has quit [Quit: Leaving.]
<HotCoder> sevenseacat, you seem to know a lot about this matter. what is the latest version of rvm?
Takle has joined #ruby
dfockler has quit [Ping timeout: 265 seconds]
<jhass> HotCoder: the one you just installed
<HotCoder> how do u kno
<HotCoder> ok
<jhass> magic
<HotCoder> got it
bronson has quit [Ping timeout: 276 seconds]
<jhass> HotCoder: please also see channel rule 2.7 http://ruby-community.com/pages/user_rules
arietis has quit [Quit: Leaving.]
<HotCoder> nice
<apeiros> I think I'll add anchors + highlights on anchor to rules in the next release too.
<adaedra> <shevy> king pontiki has arrived
<adaedra> ah, this explains why I want to cut some heads off
<apeiros> adaedra: you're queen pontiki's henchman?
<adaedra> no, French.
<adaedra> and he's a king.
<adaedra> Where's my guillotine?
<apeiros> who "he"?
<adaedra> or she
<adaedra> man, one day I'll learn to read.
bMalum has quit [Quit: bMalum]
Serifion has joined #ruby
seitensei has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
wildroman2 has joined #ruby
FernandoBasso has joined #ruby
chinmay_dd has quit []
macmartine has joined #ruby
tubuliferous has joined #ruby
dopie has joined #ruby
dingus_khan has joined #ruby
macmartine has quit [Remote host closed the connection]
bMalum has joined #ruby
arietis has joined #ruby
tuelz has joined #ruby
Juanchito has joined #ruby
dingus_khan has quit [Ping timeout: 276 seconds]
segfalt has quit [Quit: segfalt]
shuber_ has joined #ruby
Meow-J has joined #ruby
<shevy> gnome3 now has a download directory for a program called "gtk-mac-integration"
tuelz has quit [Ping timeout: 264 seconds]
shuber_ has quit [Ping timeout: 256 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.2]
<HotCoder> apeiros, so i have a question. if i upgrade my ruby to 2.2.2 do the previous versions get removed?
<HotCoder> apeiros, i did this command like this rvm install ruby2.2.2
<HotCoder> apeiros, my previous version was 1.9.3
<HotCoder> what do you think?
<diegoviola> I don't think rvm will remove your previous install
zotherstupidguy has joined #ruby
Notte has joined #ruby
zotherstupidguy has quit [Client Quit]
bmurt has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
<sevenseacat> you didnt upgrade anything, you installed a new ruby
zotherstupidguy has joined #ruby
cajone has left #ruby [#ruby]
<HotCoder> sevenseacat, cool. so do you know how to remove the previous one? i want to save space
hardlin3r has quit [Ping timeout: 265 seconds]
<sevenseacat> `rvm uninstall` ? :)
kamichi has quit [Quit: leaving]
pengin has joined #ruby
pcspecs1 has joined #ruby
mercerist has quit [Ping timeout: 240 seconds]
<HotCoder> sevenseacat, wouldnt that uninstall rvm?
<sevenseacat> no
<HotCoder> i want to uninstall ruby 1.9.3
<sevenseacat> read the rvm docs, they will help you.
pcspecs1 has quit [Remote host closed the connection]
<HotCoder> so rvm uninstall 1.9.3
<HotCoder> got it
<HotCoder> thakn u
Spami has joined #ruby
bMalum has quit [Quit: bMalum]
dopie has quit [Quit: This computer has gone to sleep]
fabrice31 has joined #ruby
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
longfeet has joined #ruby
bMalum has joined #ruby
byprdct has joined #ruby
<pontiki> anything to avoid reading, or even trying, or maybe making a mistake
pengin has quit [Remote host closed the connection]
mercerist has joined #ruby
rodfersou has quit [Quit: leaving]
bMalum has quit [Client Quit]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno-_ has joined #ruby
bruno-_ has quit [Client Quit]
Goldfish has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
Goldfish is now known as Guest83781
Guest83781 is now known as Agoldfish
hardlin3r has joined #ruby
aphprentice has joined #ruby
ismaelga has joined #ruby
iasoon has joined #ruby
bruno-_ has joined #ruby
bruno-_ has quit [Client Quit]
<HotCoder> :O
ismaelga has quit [Client Quit]
sinequanon has joined #ruby
woodennails has joined #ruby
sandelius has joined #ruby
djbkd has joined #ruby
dopie has joined #ruby
<shevy> HotCoder which ruby do you use now?
claptor has joined #ruby
Havenn has joined #ruby
<HotCoder> 2.2.2
wildroman2 has quit [Remote host closed the connection]
scripore has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<HotCoder> i updated ruby
<HotCoder> but when i do ruby -v it doesnt register
<HotCoder> shows the older one still
<HotCoder> what do
<pontiki> which ruby did you select with rvm?
<sevenseacat> the older one you uninstalled?
<HotCoder> 1.9.3
<pontiki> you seem a lot colder than hot
arietis has quit [Read error: Connection reset by peer]
<HotCoder> pontiki, how to select with rvm. i installed ruby 2.2.2. idk how to select one per se
arietis has joined #ruby
<pontiki> no
<sevenseacat> do we have to tell you every single thing?
<jhass> HotCoder: how much time did you spent with rvm help prior asking this question?
<Aeyrix> HotCoder: `rvm list rubies`
<Aeyrix> then
<Aeyrix> `rvm use <version>`
<HotCoder> sevenseacat, no
<HotCoder> im just confused
<HotCoder> where is list of all these rudimentary commands
chishiki has left #ruby ["WeeChat 1.2"]
<HotCoder> basic stuff
<sevenseacat> in the rvm docs that you wont read
<Aeyrix> On the right hand side, under "Rubies", is where you'll find most of the stuff you need.
<Aeyrix> But the commands I listed above are what you want
<HotCoder> thank you so much Aeyrix
varunwachaspati has joined #ruby
<Aeyrix> np
FernandoBasso has quit [Quit: leaving]
<HotCoder> im looking at it
<HotCoder> thanks jhass
<HotCoder> i first glanced at the end of the arrow, thought you were telling me to donate hahah
<Aeyrix> Do that too.
<Aeyrix> If it helps.
<HotCoder> if i use ruby one day and make dough
<HotCoder> then i will return the favor
<HotCoder> for now i will learn
<Aeyrix> Good choices.
<sevenseacat> i sincerely hope that happens.
<HotCoder> i know people love when guys reciprocate
ctrlrsf has quit [Read error: Connection reset by peer]
vickleton has joined #ruby
<Aeyrix> That took me longer than it should've.
<HotCoder> but you know what else takes longer than it should've?
<HotCoder> ;)
<HotCoder> me getting ruby running on my pi
dopie has quit [Quit: This computer has gone to sleep]
darkf has quit [Quit: Leaving]
tkuchiki has quit [Ping timeout: 264 seconds]
<sevenseacat> pontiki: awesome
<pontiki> pugsitential agnsty pug
<pontiki> angsty*
<HotCoder> didnt choose the pug life
<HotCoder> the pug life chose him
<Aeyrix> I did.
jpfuentes2 has joined #ruby
mercerist has quit [Ping timeout: 258 seconds]
tubuliferous has quit [Quit: ZNC - http://znc.in]
arietis1 has joined #ruby
<jhass> pontiki: mmh, nice one
<jhass> !fact mk learning How learning something works: http://i.imgur.com/l2mInq8.webm
<ruboto> jhass, I will remember that learning is How learning something works: http://i.imgur.com/l2mInq8.webm
<Aeyrix> !learning
<Aeyrix> jhass pls
<shevy> lol
<jhass> Aeyrix: ?
<jhass> (instead of !)
<Aeyrix> o
<Aeyrix> Radicool.
<shevy> are you guys having a dog as tutor for #ruby now
<Aeyrix> I vote.
<HotCoder> ok i got it all running
<HotCoder> thanks to you guys
<pontiki> consider the dog a model for learning how to do something
<Aeyrix> woot
<HotCoder> thank you all
<shevy> HotCoder until that dog starts to write ruby code!
<HotCoder> yeye im stupid
<HotCoder> i got it
<HotCoder> geez
someword has joined #ruby
<pontiki> it's not the knowledge
<shevy> we can't let the dogs get away with it
<shevy> we need cats as alternative model
arietis has quit [Ping timeout: 256 seconds]
<HotCoder> i let the dogs out
<HotCoder> sorry about that guys
<Aeyrix> Didn't you ever see cats vs dogs?
<Aeyrix> The cats were the bad guys.
dr_bob has joined #ruby
kamichi has joined #ruby
<HotCoder> have you seen that cartooon show where theres a cat head on one side and a dog head on the other
<HotCoder> i forgot waht its called
<Aeyrix> CatDog.
<HotCoder> oh
<HotCoder> ok
<shevy> awww too many too choose http://giphy.com/search/smart-cat
<HotCoder> i forgot lol
<HotCoder> ye it creeped me out as a child
<shevy> and to find one that makes the dog look dumb will be hard
dr_bob has left #ruby [#ruby]
<HotCoder> i like cats over dogs
<HotCoder> much cuter
<HotCoder> have an attitude
<shevy> Aeyrix cats are bad, we know that
Zamyatin has joined #ruby
someword has quit [Client Quit]
<shevy> a dog obeys, a cat can not want to be bothered to
doodlehaus has quit [Remote host closed the connection]
qwertme has joined #ruby
multiscan has joined #ruby
lele is now known as Guest24
xxneolithicxx has quit [Ping timeout: 255 seconds]
wildroman2 has joined #ruby
RegulationD has joined #ruby
juanpaucar has joined #ruby
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dingus_khan has joined #ruby
kamichi has quit [Quit: leaving]
woodennails has joined #ruby
mercerist has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
juanpaucar has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 272 seconds]
tubuliferous has joined #ruby
dingus_khan has quit [Ping timeout: 265 seconds]
shuber_ has joined #ruby
multiscan has quit [Ping timeout: 256 seconds]
tubuliferous has quit [Ping timeout: 246 seconds]
hasan has joined #ruby
<hasan> hi :) is there any one know how can i disable query cach in rails 4.x?
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
<jhass> ?rails hasan
<ruboto> hasan, Please join #RubyOnRails for Rails questions.
<apeiros> hasan: #rubyonrails
Hounddog has quit [Read error: Connection reset by peer]
<apeiros> oh, we have ?rails. good :D
<jhass> you know you're allowed to create these too? :P
<apeiros> ooooh, I am?
* apeiros does the happy dance
shuber_ has quit [Ping timeout: 246 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<HotCoder> lele pons
<hasan> ruboto , apeiros : thank you :) i will ask this question in #rubyonrails :)
shuber_ has joined #ruby
sinequanon has quit [Ping timeout: 265 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubie has joined #ruby
bluOxigen has joined #ruby
amclain has joined #ruby
bmurt has quit []
banister has quit [Read error: Connection reset by peer]
arietis has joined #ruby
bmurt has joined #ruby
arietis1 has quit [Read error: Connection reset by peer]
vickleton has quit [Quit: Ex-Chat]
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tautvydas has joined #ruby
QpQ4 has joined #ruby
woodennails has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
gizmore has quit [Ping timeout: 245 seconds]
cats has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
bmurt has quit []
hardlin3r has quit [Quit: Leaving]
bronson has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
ragingcake has joined #ruby
longfeet has quit [Ping timeout: 244 seconds]
hololeap has quit [Quit: Leaving]
DenSchub has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
Hirzu has joined #ruby
gizmore has joined #ruby
DenSchub has joined #ruby
cats has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
vickleton has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
IrishGringo has joined #ruby
devoldmx has joined #ruby
Deele has joined #ruby
devoldmx has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 265 seconds]
Hirzu_ has quit [Ping timeout: 245 seconds]
<apeiros> any volunteer to write an article for ruby-community.org about nickname registration and identification (bonus points for mentioning sasl and showing config of some major clients)?
<apeiros> the format would be .markdown
jottr_ has joined #ruby
devoldmx_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
mosheee has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby
Havenn is now known as havenwood
jstanton has joined #ruby
jpfuentes2 has joined #ruby
shuber_ has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
arietis1 has joined #ruby
arietis has quit [Read error: Connection reset by peer]
Notte has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
Notte has quit [Remote host closed the connection]
<zotherstupidguy> apeiros i may kickstart it, and others may fine-tune it
<apeiros> sure
macmartine has joined #ruby
<apeiros> I'm a fan of kaizen
<zotherstupidguy> yeah
gizmore has quit [Ping timeout: 276 seconds]
<zotherstupidguy> apeiros i'm forking the repo, where should i put it?
gizmore has joined #ruby
<apeiros> zotherstupidguy: you don't need to fork the repo. you can just write a .markdown file and gist that
<apeiros> but if you want to go via repo fork… let me see…
vivekananda has joined #ruby
<apeiros> app/views/pags/_registration_and_authentication.html.slim
Cache_Money has joined #ruby
<apeiros> you can the markdown filter
<zotherstupidguy> ok, thanks
rgb-one has joined #ruby
ragingcake has quit [Quit: ragingcake]
<apeiros> +use
<apeiros> I accidentally a word
<apeiros> zotherstupidguy: thank you very much! :)
felixjet has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dingus_khan has joined #ruby
charliesome has quit [Quit: zzz]
felixjet has joined #ruby
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
jstanton has quit [Remote host closed the connection]
affenhoden has joined #ruby
jstanton has joined #ruby
IrishGringo has quit [Read error: Connection timed out]
jottr_ has joined #ruby
dingus_khan has quit [Ping timeout: 256 seconds]
jstanton has quit [Remote host closed the connection]
jstanton has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
IrishGringo has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Ping timeout: 272 seconds]
<zotherstupidguy> apeiros my pleasure! btw shouldn't the channel msg logging info url be http://irclog.whitequark.org/ruby/ instead of just http://irclog.whitequark.org
fabrice31 has joined #ruby
devoldmx has quit [Client Quit]
bMalum has quit [Quit: bMalum]
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> zotherstupidguy: it is?
<zotherstupidguy> to me it appears like this
<zotherstupidguy> Welcome to the ruby channel. Please be nice. http://ruby-community.com || https://ruby-lang.org || Paste │ akkad
<zotherstupidguy> | >3 lines: https://gist.github.com || Ask good questions: http://www.mikeash.com/getting_answers.html || log @ │ al2o3-cr
<zotherstupidguy> | http://irclog.whitequark.org
<apeiros> it's mingled with nicknames?
fabrice31 has quit [Ping timeout: 265 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<zotherstupidguy> oh, ok
<apeiros> maybe your client truncates the topic
<apeiros> try /topic
<apeiros> Topic: Welcome new users migrating from #ruby-lang! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<apeiros> ooooh
<apeiros> sorry, misread
<apeiros> channel welcome message - not topic
<zotherstupidguy> good! :)
someword has joined #ruby
<apeiros> changed. thanks zotherstupidguy.
Papierkorb has joined #ruby
thiagovsk has joined #ruby
_seanc_ has joined #ruby
jayeshsolanki has quit [Quit: bye!]
codecop has joined #ruby
macmartine has quit [Remote host closed the connection]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 265 seconds]
wildroman2 has quit [Remote host closed the connection]
<arietis1> hello guys
shuber_ has joined #ruby
<arietis1> anyone knows of any good state machine gem not tied to data model?
arietis1 is now known as arietis
bronson has joined #ruby
<arietis> so i just create machine object, add states, events and callbacks
tuelz has quit [Ping timeout: 272 seconds]
affenhoden has quit [Remote host closed the connection]
rippa has joined #ruby
rgb-one has left #ruby [#ruby]
bronson has quit [Ping timeout: 246 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
FernandoBasso has joined #ruby
Hirzu_ has joined #ruby
konsolebox has joined #ruby
Hirzu has quit [Ping timeout: 256 seconds]
greenbagels has joined #ruby
jottr_ has joined #ruby
<arietis> aasm looks good for my needs
cirn0 has joined #ruby
crdpink has joined #ruby
RegulationD has joined #ruby
juanpaucar has joined #ruby
crdpink2 has quit [Ping timeout: 265 seconds]
pwattstbd has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
commondream has joined #ruby
cirn0 has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 252 seconds]
commondream has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
nfk|laptop has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
commondream has joined #ruby
mloveless has joined #ruby
nfk has joined #ruby
hackeron has quit [Ping timeout: 258 seconds]
hackeron has joined #ruby
shuber_ has quit [Remote host closed the connection]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mtakkman has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
goodcodeguy has joined #ruby
horsecowdog has joined #ruby
Cache_Money has joined #ruby
rhg135 has quit [Ping timeout: 255 seconds]
shuber_ has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
tubuliferous has joined #ruby
bmurt has joined #ruby
DerisiveLogic has joined #ruby
P1RATEZ has quit []
zotherstupidguy has quit [Quit: WeeChat 1.2]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
ramfjord has joined #ruby
Notte has joined #ruby
nfk|laptop has quit [Quit: yawn]
dfockler has joined #ruby
baweaver has joined #ruby
havenwood has joined #ruby
<konsolebox> if callcc is deprecated, how do we do long jumps now (multi-level loop breaks / continuations)?
bronson has joined #ruby
<apeiros> multi-level "breaks": throw/catch
zotherstupidguy has joined #ruby
<konsolebox> apeiros: slow
<apeiros> callcc is still available via require 'continuation'
zotherstupidguy1 has joined #ruby
hasan1 has joined #ruby
<apeiros> konsolebox: are you sure you're using the right language?
dfockler has quit [Ping timeout: 258 seconds]
<konsolebox> apeiros: continuation?
<apeiros> I can write it again if that helps…
bmurt has quit []
n008f4g_ has joined #ruby
rodferso1 has joined #ruby
<konsolebox> apeiros: that feature shouldn't really be necessarily hacked.. ok i get it. too bad really how a simple necessary feature has never been added
hasan has quit [Ping timeout: 252 seconds]
hasan1 has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
<jhass> I gather you worked with C for a long time? :P
<zotherstupidguy1> apeiros please review this https://gist.github.com/zotherstupidguy/6328c832c578a9ab9965
<apeiros> "hacked"? what are you talking about?
<apeiros> and "never been added"? are you high or something?
diegoviola has joined #ruby
<apeiros> zotherstupidguy1: cooking. will take a look in a bit! thanks!
<zotherstupidguy1> apeiros enjoy it :)
Meow-J has quit [Quit: Connection closed for inactivity]
dru` has joined #ruby
commondream has quit [Remote host closed the connection]
dc has quit [Disconnected by services]
dc__ has joined #ruby
goodcodeguy has quit [Read error: Connection reset by peer]
<konsolebox> jhass: how can you? C doesn't even have that. nice try.
mtakkman has quit [Remote host closed the connection]
welsch4 has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
<konsolebox> apeiros: cooking a function exploiting throw/catch to have a break 2+'
<konsolebox> apeiros: / 'continue 2+' functionality obviously is a hack
casadei has joined #ruby
dopie has joined #ruby
<konsolebox> apeiros: "and "never been added"?" -> yes, is there a 'continue n' / 'break n' functionality in Ruby?
mjuszczak has joined #ruby
<apeiros> konsolebox: ok. so it's not being high but ignorance.
mjuszczak has quit [Max SendQ exceeded]
<konsolebox> apeiros: ok, what part this shows that i'm being ignorant?
varunwachaspati has quit [Ping timeout: 258 seconds]
<apeiros> konsolebox: I assume you're confusing ruby's throw/catch with other language's throw/catch
<apeiros> throw/catch in ruby is NOT exception handling. raise/rescue is
mjuszczak has joined #ruby
<apeiros> so there's no "cooking" about using throw/catch. that's *precisely* its intended purpose.
<konsolebox> apeiros: lol. how have you assumed that i didn't know that?
<konsolebox> apeiros: anything you can add?
<apeiros> so again: "is there break n in ruby" -> yes: throw/catch.
lidenskap has joined #ruby
<apeiros> and as an additional feature it has the benefit of being able to return a value too.
arescorpio has joined #ruby
Alina-malina has quit [Ping timeout: 265 seconds]
wildroman2 has joined #ruby
Alina-malina has joined #ruby
rodferso1 has quit [Quit: leaving]
Takle has quit [Remote host closed the connection]
pontiki has joined #ruby
welsch4 has left #ruby ["Textual IRC Client: www.textualapp.com"]
hasan has joined #ruby
Notte has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
commondream has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
mjuszczak has quit []
wildroman2 has quit [Ping timeout: 250 seconds]
commondream has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 245 seconds]
sandelius has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
finisherr has joined #ruby
rubie has quit [Remote host closed the connection]
mloveless has quit []
zotherstupidguy has joined #ruby
dopie has joined #ruby
yh__ has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Takle has joined #ruby
davispuh has quit [Remote host closed the connection]
<jhass> zotherstupidguy1: s/requires a/allows/
RegulationD has quit [Ping timeout: 276 seconds]
<konsolebox> apeiros: i see you're actually trying to avoid something. so how would you directly implement 'continue n'? i'll let you go with the 'break n' for now as my current 'hack' makes use of throw for breaking.
hololeap has joined #ruby
<hololeap> what would the yard documentation look like for a method with a "splat" parameter: def my_method(*args); p args; end
<zotherstupidguy1> jhass?
<jhass> I usually take the opportunity to extract into a small method and use return
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass> zotherstupidguy1: first sentence in your gist ;)
<apeiros> konsolebox: `ri Kernel#catch` in your console (assuming you have docs installed)
shuber_ has quit [Remote host closed the connection]
<konsolebox> apeiros: i could give Ruby's actual implementation a chance but I find it likely that throw/catch is nothing like break -> but more of an exception handler (just a little faster maybe).
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
shuber_ has joined #ruby
finisherr has quit [Quit: finisherr]
Papierkorb has quit [Ping timeout: 245 seconds]
<jhass> hololeap: you just make it part of the name
Papierkorb has joined #ruby
Takle has quit [Remote host closed the connection]
<hololeap> jhass: could you give me an example?
weaksauce has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
zotherstupidguy1 has quit [Quit: WeeChat 1.2]
ndrei has quit [Ping timeout: 240 seconds]
<hololeap> the method i'm trying to document should take 1-inf parameters
zotherstupidguy has joined #ruby
zotherstupidguy1 has joined #ruby
Pisuke has joined #ruby
davispuh has joined #ruby
<konsolebox> "If +throw(tag2, val)+ is called, Ruby searches up its stack for a catch block whose tag has the same object_id as tag2. When found, the block stops executing and returns val (or nil if no second argument was given to throw)."
<konsolebox> Mind the "searches"
sinequanon has joined #ruby
pwattstbd has quit [Remote host closed the connection]
<zotherstupidguy1> jhass thanks, apeiros was that what you had in mind?
MyMind has quit [Ping timeout: 240 seconds]
<apeiros> zotherstupidguy1: currently reading
<jhass> hololeap: I just @param *args You pass this and that here
<apeiros> zotherstupidguy1: so far looks good
<konsolebox> apeiros: I've seen the manual. There's never a part that makes it continue. I could create a hack for it of course. But that's nowhere near a Ruby feature for 'continue n'.
sinequanon has quit [Client Quit]
<hololeap> jhass: ok. wasn't sure if that was the "proper" way to do it
<zotherstupidguy1> apeiros best writing is re-writing
<zotherstupidguy1> its a kickstart
<jhass> hololeap: I didn't find anything at least
Channel6 has joined #ruby
lidenskap has quit [Remote host closed the connection]
<hololeap> jhass: the closest thing i found was yard's @overload tag
fabrice31 has joined #ruby
QpQ4 has quit []
<jhass> konsolebox: if you share your code that needs it we may be able to suggest an idiomatic alternative
CustosLimen has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
dingus_khan has joined #ruby
<apeiros> konsolebox: if by `continue n` you mean in the sense of a continuation, then I again refer you to `require 'continuation'` and callcc. additionally also see Fiber.
<konsolebox> jhass: yeah, using a yielding function. that's a hack, not an idiomatic alternative.
Soda has quit [Read error: Connection reset by peer]
Pisuke has quit [Max SendQ exceeded]
Cache_Money has joined #ruby
iwishiwerearobot has joined #ruby
<jhass> hololeap: mmh, no, @overload I'd only use if behavior differs
<hololeap> jhass: ok
<konsolebox> apeiros: duh!!!!!!!!! didn't you see my first question????
<apeiros> konsolebox: you can stop that attitude right now or go.
<apeiros> konsolebox: and to remind you - I gave you that answer right with your first question
<konsolebox> apeiros: callcc is deprecated referring to Fiber now as the preferred solution. And Fiber does not have that kind of feature.
codecop has quit [Remote host closed the connection]
<apeiros> konsolebox: then amend your question accordingly.
Pisuke has joined #ruby
<baweaver> konsolebox: probably not a good way to make friends
<konsolebox> apeiros: there's nothing to be amended. it's pretty clear.
d1n has quit [Read error: Connection reset by peer]
<konsolebox> baweaver: would you make friend with people judging you quickly as ignorant?
zotherstupidguy1 has quit [Ping timeout: 272 seconds]
f3lp has joined #ruby
<baweaver> I could care less, but you've not exactly been a saint yourself.
zotherstupidguy1 has joined #ruby
<jhass> baweaver: please just leave it
fabrice31 has quit [Ping timeout: 276 seconds]
<apeiros> konsolebox: I refer you to jhass' suggestion. "jhass: konsolebox: if you share your code…"
dingus_khan has quit [Ping timeout: 250 seconds]
hasan has quit [Ping timeout: 246 seconds]
rubie has joined #ruby
CustosLimen has joined #ruby
<konsolebox> baweaver: i don't think the one you should say that to is the one that hasn't started it
iwishiwerearobot has quit [Ping timeout: 272 seconds]
<apeiros> konsolebox: I apologize for my aggressive behavior. What I said with regards to your behavior still stands, though.
shuber_ has quit [Remote host closed the connection]
shuber_ has joined #ruby
A205B064 has joined #ruby
<apeiros> and to me, that marks the end of that branch of the discussion. I prefer on focusing on the problem at hand.
Sembei has joined #ruby
lavros has quit [Quit: leaving]
Pisuke has quit [Ping timeout: 255 seconds]
welsch4 has joined #ruby
welsch4 has quit [Client Quit]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
tuelz has joined #ruby
<apeiros> zotherstupidguy: the part about sasl is irssi or weechat specific? or does it work the same for both?
Channel6 has quit [Quit: Leaving]
<konsolebox> This is my solution using callcc: https://bpaste.net/show/0077fe881453. If I'd like to continue the loop, I'd call call() with object generated by callcc. If I'd like to break the loop, I'd throw the object. Now I need another good solution for that as callcc is already deprecated.
<zotherstupidguy> apeiros about ssl?
<apeiros> well, yes
spider-mario has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
<zotherstupidguy> i checked it both on irssi and weechat and it seems it works for both. however the /save seems not to be really required by weechat, maybe someone with more experiance with weechat might wave in
<jhass> konsolebox: idiomatic alternatives only work for specific code/usage
<jhass> not for general things you deem missing
<apeiros> zotherstupidguy: ok
<jhass> zotherstupidguy: weechat autosaves every 10 minutes or so
<apeiros> zotherstupidguy: I think we'll not get around to do the SSL/SASL part per client. so yes, looks great. I'll take the upper part for the generic article and put the bottom part into weechat/irssi specific articles
QpQ4 has joined #ruby
<jhass> so it doesn't hurt
<konsolebox> jhass: are you planning using another function to wrap-up code so you could "continue" it again if necessary? or you planning to use yet another outer loop for that?
tuelz has quit [Ping timeout: 276 seconds]
<jhass> konsolebox: I do not plan anything, beyond looking if there's a way to restructure your code that doesn't need the functionality you desire in the first place
<zotherstupidguy> great!
<zotherstupidguy> it could be better, but its a start!
DexterLB has joined #ruby
michaeldeol has joined #ruby
<konsolebox> zotherstupidguy: if you're talking to me, it doesn't always get better. most of the time it actually gets worse - the code's logic gets broken just to keep-up with these "idiomatic hacks"
umby24|offline is now known as umby24
shuber_ has quit [Remote host closed the connection]
<jhass> konsolebox: if you want to rant, please do not direct it at people
doodlehaus has joined #ruby
shuber_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<konsolebox> jhass: if people would stop the * sarcasm perhaps. am i the only one to be told unto here?
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
<apeiros> I haven't seen anybody be sarcastic towards you, konsolebox.
<apeiros> and zotherstupidguy didn't even talk to you.
<jhass> I don't see any sarcasm either, I suggest you step back, cool down and then take another look at it then. If you stay inpolite I have to force that you do that
* zotherstupidguy thinks he is a good person, in theory!
<jhass> see the channel rules http://ruby-community.com/pages/user_rules
<atmosx> anyone familiar with middleman blog?
doodlehaus has joined #ruby
<apeiros> ?anyone atmosx
<ruboto> atmosx, Just ask your question, if anyone has, they will respond.
<atmosx> I'm having a hard-time placing tag.haml and calendar.haml ... they don't seem to work. I have gave a 'blog' prefix in the config.rb ... If I put them into blog/ dir middleman comes up with an error while if I put them in the source/ dir the sitemap clearly ingnores them...
<atmosx> ah n/m there's a forum.
zotherstupidguy1 has left #ruby ["WeeChat 1.2"]
hasan has joined #ruby
<konsolebox> jhass: btw, restructuring code would not apply to every code. continue 2 is a necessity. the alternative for it is using functions to wrap-up code, and sometimes even end up having unnecessary "recursive" calls. functions that only clutter-up the source file or the source tree which shouldn't have been necessary.
<jhass> you're experience and mine differ there. If you can't accept that there's nothing to be said anymore
<jhass> your*
bronson has quit [Remote host closed the connection]
<konsolebox> jhass: i have enough experience to realize this. the one who thought he should always wrap-up code in functions - i've been there. only newcomers would do that.
<jhass> (I did start with a programming language that provided that constructed, moved to python which doesn't have it and then to ruby that doesn't have it. I missed it in neither because both provide idiomatic alternatives to the usecases I had
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
doodlehaus has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
<jhass> and on the risk of you interpreting that as insult, I think another point that differentiates us that I don't interpret my opinion as fact
<konsolebox> jhass: if you try to balance efficiency and readability - you could be near there. but some only care about "false?" readability
<apeiros> konsolebox: the experience you gained in another language does not necessarily port over to ruby
<konsolebox> jhass: i'm not telling that it's you. i just met some
juanpaucar has joined #ruby
<jhass> if you allow me to suggest something more on the meta level, maybe try to be less absolutistic (is that English?) about your opinion, voice and argue yours, but accept if somebody has a different opinion on a subject, let them make their own mistakes if you think they're wrong
<jhass> I had to learn that too, language matters here, a "in my opinion/in my experience" in front of your argument helps a lot to keep a civil conversation
pokui has joined #ruby
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
hector__ has joined #ruby
tubuliferous_ has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
bronson has joined #ruby
pokui has quit [Read error: Connection reset by peer]
hasan2 has joined #ruby
lidenskap has joined #ruby
vickleton has quit [Ping timeout: 272 seconds]
CustosLimen has quit [Ping timeout: 252 seconds]
ziprar has quit [Ping timeout: 255 seconds]
dopie has quit [Quit: This computer has gone to sleep]
iasoon has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
lidenskap has quit [Remote host closed the connection]
iasoon has quit [Client Quit]
serivich has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
iasoon has joined #ruby
hasan has quit [Ping timeout: 272 seconds]
CustosLimen has joined #ruby
hasan2 has quit [Ping timeout: 258 seconds]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sent1nel has joined #ruby
aryaching has quit []
zotherstupidguy has quit [Ping timeout: 255 seconds]
QpQ4 has quit [Ping timeout: 265 seconds]
zotherstupidguy1 has joined #ruby
Takle has joined #ruby
zotherstupidguy1 has left #ruby [#ruby]
jstanton has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
iwaffles has joined #ruby
claw_ has quit [Ping timeout: 240 seconds]
arescorpio has quit [Read error: Connection reset by peer]
claw has joined #ruby
swgillespie has joined #ruby
jottr_ has joined #ruby
cek has joined #ruby
bronson has quit [Remote host closed the connection]
<cek> is sslsocket .syswrite mri thread-safe?
mroark has joined #ruby
bronson has joined #ruby
iasoon has quit [Quit: WeeChat 1.2]
iasoon has joined #ruby
_seanc_ has quit [Quit: _seanc_]
finisherr has joined #ruby
dstarh has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
pipework is now known as grumpowl
mwlang has joined #ruby
<mwlang> how do you write rspec scenarios for async interactions with external servers?
diegoviola has quit [Remote host closed the connection]
finisherr has quit [Client Quit]
<baweaver> promises probably
<mwlang> or in other words, I know that when I send an outgoing call to an external server, it’s eventually going to send a response back.
<baweaver> Opal talked about something similar at least.
<mwlang> right now, I just keep querying the database and sleeping until I detect a record’s inserted into the table (which I know my app’s going to do when it gets that response back)
<apeiros> mwlang: stub external dependencies
dingus_khan has joined #ruby
<grumpowl> mwlang: You don't make requests in tests.
<apeiros> unless you explicitly want to test the external server
<baweaver> You don't make requests in /unit/ tests. #ftfy
iasoon has quit [Ping timeout: 265 seconds]
<baweaver> There are occasions by which you want integration testing on more critical calls
<mwlang> so, what about integration tests to ensure what we’ve built really works as intended?
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<mwlang> baweaver: I’m mostly concerned about more critical calls here.
<apeiros> you'll probably block your test until the async call returns
<grumpowl> I don't make external requests in the normal test suite. But I might with a double server implementation to ensure the double still acts like the real server.
<mwlang> apeiros: so is there a way to detect that async call returns other than watching for side-effects in the db?
UnKnOwN| has joined #ruby
<baweaver> Still hunting about
<baweaver> but it'll be some combination of callbacks or promises
<apeiros> mwlang: uh, an async call usually means you have a callback which is invoked when data is ready
<apeiros> so you'll hook into that
balazs has joined #ruby
<apeiros> if you can't, you probably have a case of bad coupling at hand
<mwlang> apeiros: ah. now we’re getting to the meat of it. so I guess that brings up the next question: how to “hook into it” — it’s probably less that “I can’t” as “I’m not sure how to go about it"
goodcodeguy has quit [Quit: Textual IRC Client: www.textualapp.com]
dingus_khan has quit [Ping timeout: 244 seconds]
<eam> mwlang: you have a call that listens for a response, right?
<mwlang> yup
<eam> and a call to block until the next response?
<mwlang> well, I have a call that is “fire and forget"
<baweaver> async 'example do ... end
<baweaver> async 'example' do ... end
<UnKnOwN|> Hello all, anyone mind taking a quick look at an exercise I'm working on to see if the code example is valid, or if this was based on an old version of ruby and its no longer valid: 'http://tryruby.org/levels/4/challenges/1' at the very bottom of this where: books = {} makes the hash then the NEXT page has you assign values to the hash, but it says use: 'books["Gravity's Rainbow"] = :splendid', doesnt seem to work, and ruby2.2.2 m
<eam> mwlang: fire_and_forget; poll_until_satisfied_it_worked()
<UnKnOwN|> 'books[:splendid] = "Gravity's Rainbow"
<UnKnOwN|> '
<jhass> >> books = {}; books[:splendid] = "Gravity's Rainbow"; books
<ruboto> jhass # => {:splendid=>"Gravity's Rainbow"} (https://eval.in/369155)
<jhass> seems to work fine
ebonics has joined #ruby
<mwlang> eam: yeah, that’s what I’m doing…except my polling is against the database. this was fine until latest scenario in which the external server responded in an unexpected way.
hectortrope has joined #ruby
<baweaver> mwlang: promises
<mwlang> baweaver: thanks! this kind of structure is what I was mentally picturing.
<mwlang> baweaver: is promises part of opal as well?
hasan has joined #ruby
shuber_ has quit [Remote host closed the connection]
<baweaver> not necessarily
shuber_ has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
<baweaver> a promise is an async concept that something promises to eventually return a value
<jhass> UnKnOwN|: did I answer your question? If not could you go into why it doesn't work?
yokel has quit [Ping timeout: 244 seconds]
genpaku has quit [Ping timeout: 250 seconds]
hectortrope has quit [Changing host]
hectortrope has joined #ruby
<baweaver> Opal is Javascript in Ruby
<UnKnOwN|> jhass, your answered my question, seems this IDE the tutorial wrongs on is just buggy
genpaku has joined #ruby
<baweaver> I just figured they'd have RSPEC helpers for testing it
yokel has joined #ruby
<UnKnOwN|> iit atfirst did not work, then with the given example, does, then if you add a non-given example, it no longer works...
tuelz has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang> ah…opal more or less solves the problem the same way I did…running a rack-up server for testing purposes, but their async block syntax dries up the specs a good bit.
<grumpowl> Opal is a ruby to JS transpiler, no?
<baweaver> yeah
dingus_khan has joined #ruby
<baweaver> I just thought that since it was ruby syntax they probably made RSPEC helpers for Javascript-ish concepts like promises and async
<ebonics> is opal better than coffeescript ;o
tuelz has quit [Ping timeout: 252 seconds]
<baweaver> Never tried it
<jhass> ?best
<ruboto> "Best" and "better" are subjective. Try to use a different term.
<baweaver> I just write straight JS
RegulationD has joined #ruby
<ebonics> best and better arent subject
<ebonics> ive
* baweaver grabs popcorn
<ljarvis> ?help
<ruboto> I don't know anything about help
<jhass> ebonics: let's say whether they are subjective is subjective then ;)
<ebonics> no
<ljarvis> is ruboto apeiros'?
<baweaver> meta
goodcodeguy has joined #ruby
Solsist has joined #ruby
<jhass> ljarvis: yeah
<ebonics> i have some problems with js
<ebonics> i mean coffeescript
<ebonics> ffs
<ljarvis> everyone has problems with js
<ebonics> it does like absolutely no type analysis
<apeiros> ljarvis: I run it. and at the moment it's fully closed source. but it'll eventually be mostly open sourced (mostly because it runs opper tasks and I want to keep those parts closed)
<ljarvis> apeiros: makes sense
bruno- has joined #ruby
<mwlang> ok, I think I’m just going to keep on with the test suite I’ve been working on but set up some rspec around filters to get rid of the tedious setup/wait code I’m repeating in the tests. i.e. as described here http://arjanvandergaag.nl/blog/using-abusing-rspec-metadata.html
* baweaver actually likes Javascript
<ebonics> in coffeescript
jottr_ has joined #ruby
<ebonics> for index in [0..(aList.length-1)] <- that
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ebonics> gets converted to this -> for (index = _i = 0, _ref = aList.length - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; index = 0 <= _ref ? ++_i : --_i) {
<ebonics> like :|
_seanc_ has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
<ebonics> well i should be more clear, even this does too: for index in [0..aList.length]
grumpowl is now known as pipework
RegulationD has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
<ljarvis> lgtm
balazs has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<balazs> anyone knows how to change the default port for dashing ?
zotherstupidguy1 has joined #ruby
<ljarvis> balazs: dashing start -p [port]
finisherr has joined #ruby
hackeron has quit [Ping timeout: 272 seconds]
hackeron has joined #ruby
zotherstupidguy1 has left #ruby [#ruby]
_blizzy_ has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
<zotherstupidguy> balazs dashing is just a sinatra app, same rules apply
<balazs> ljarvis: thanks !
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> balazs i thought it was discountined?
finisherr has quit [Client Quit]
<zotherstupidguy> or was that batmanjs
Solsist has quit []
<balazs> hmm, haven't heard. Any recommendation to use something instead ?
<zotherstupidguy> whats your project about?
<mwlang> jhass / baweaver - thanks for your feedback. I think I have a good plan of attack now that will reduce my spec authoring burden.
<ljarvis> the last dashing update was less than 20 days ago
<balazs> zotherstupidguy: displaying system monitoring info
<zotherstupidguy> i played with dashing and gridsterjs to do some cool server monitoring stuff, but that was like 2 years ago
<zotherstupidguy> yeah its perfect for that
<zotherstupidguy> ljarvis then batmanjs is the one discounined
gusrub has joined #ruby
<zotherstupidguy> let me check
<zotherstupidguy> Batman.js is no longer in production at Shopify and is not actively developed. :(
<mwlang> dang!…dashing is nice.
dopie has joined #ruby
<zotherstupidguy> one of the coolest featuers of dashing that never got picked with other frameworks the that compnent thingy.
<mwlang> has anybody hooked up dashing to system monitoring? cpu, memory, page requests, etc.
<zotherstupidguy> its like aspx web components, but better ofcourse
<zotherstupidguy> nwlang i used it for api monitoring
<mwlang> zotherstupidguy: yeah..I liked it. The first thing popping into my mind is to have a sidebar of widget names…as soon as you drag from the sidebar to the main area, you get a full sized widget for dropping somewhere in the layout.
<zotherstupidguy> dashing got this right, and no other framework picked it up
<zotherstupidguy> the only cruel thing was they used batmanjs which is not widely used
Rickmasta has joined #ruby
<zotherstupidguy> also it really takes a js guy to play around comfortably with all the scss stuff and widgets, i hacked a lot
<mwlang> zotherstupidguy: I thought batmanjs lived and died an early death…kinda surprised it’s still around.
<zotherstupidguy> its not
konsolebox has quit [Quit: Leaving]
<mwlang> can they be built with coffeescript?
<zotherstupidguy> but dashing still use it, i think
<zotherstupidguy> i belive dashing uses coffeescript by default,
rodfersou has quit [Remote host closed the connection]
<mwlang> zotherstupidguy: its still using batman bindings.
<zotherstupidguy> i also remmber there was a widget compitetion once by shopify
<baweaver> Any more we tend to use Graphite here: https://github.com/graphite-project/graphite-web
<mwlang> hmmm…I’m going to look more into it.
<zotherstupidguy> mwlang it will take some effort to fork dashing into using another jsframework
Rollabunna has joined #ruby
<zotherstupidguy> but it will be a kickass project...
<mwlang> zotherstupidguy: hmmm….mustache and handlebars…. :-)
<zotherstupidguy> i really dont have a preference there, not a js guy, but anything backbone might tract attention
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang> baweaver: ah….a dependency there called “whisper” has my attention…I’ve been exploring rdd some — don’t really like how hard it is to use.
Beoran_ has quit [Ping timeout: 272 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
Hijiri has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
<al2o3-cr> Is there a method in JSON to make the keys symbols or was I dreaming?
tobyx has joined #ruby
doodlehaus has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
<zotherstupidguy> i really like the design of the faq on the channel's website http://www.ruby-community.org/faq
hector__ has quit [Read error: Connection timed out]
<ljarvis> al2o3-cr: parse takes a symbolize_names option
<al2o3-cr> ljarvis: oh let me check
hector__ has joined #ruby
<zzak> ljarvis: dont tell me what to do
<zzak> :D
<ljarvis> zzak: NO U
<ljarvis> <3
<zzak> HELLO!
dingus_khan has quit [Remote host closed the connection]
<zzak>
fabrice31 has joined #ruby
<ljarvis> How's your ramen?
<zzak> Always good bro
<al2o3-cr> res = JSON.parse(json, symbolize_name: true) # not working still strings
mjuszczak has joined #ruby
<ljarvis> >> require 'json'; JSON.parse('{"foo":"bar"}', symbolize_names: true)
<ruboto> ljarvis # => {:foo=>"bar"} (https://eval.in/369160)
mwlang has quit [Quit: mwlang]
iwishiwerearobot has joined #ruby
<al2o3-cr> oh names ok thanks ljarvis
<al2o3-cr> ah thanks works
Ilyes512 has joined #ruby
commondream has joined #ruby
dopie has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 244 seconds]
lolmaus has quit [Quit: Konversation terminated!]
iwishiwerearobot has quit [Ping timeout: 265 seconds]
Beoran_ has joined #ruby
horsecowdog has quit [Remote host closed the connection]
dopie has joined #ruby
swgillespie has joined #ruby
commondream has quit [Ping timeout: 256 seconds]
doodlehaus has quit [Remote host closed the connection]
MasterPiece has joined #ruby
mroark has quit [Ping timeout: 258 seconds]
macmartine has joined #ruby
mjuszczak has quit []
lidenskap has joined #ruby
rubie has quit [Read error: Connection reset by peer]
macmartine has quit [Remote host closed the connection]
rubie has joined #ruby
<ducklobster> is there a syntactically nicer way to do the following? https://gist.github.com/anonymous/a350b14208cb74a5224d
<jhass> exactly the same probably not
doodlehaus has joined #ruby
<jhass> Hash.new {|h, k| h[k] = {} } would create a hash which would automatically vivid a nested hash for any (missing) key
tuelz has joined #ruby
<ducklobster> ahh i see
<ducklobster> thanks!
<baweaver> or this is fun too
hasan has left #ruby [#ruby]
<baweaver> >> h = Hash.new { |h, k| h(&:default_proc) }; h[:a][:b][:c] = 1; h
<ruboto> baweaver # => undefined method `h' for main:Object (NoMethodError) ...check link for more (https://eval.in/369163)
<baweaver> ah
doodlehaus has quit [Remote host closed the connection]
<jhass> h[k] = Hash.new(&h.default_proc) ;)
<baweaver> >> h = Hash.new { |h, k| Hash.new(&h.default_proc) }; h[:a][:b][:c] = 1; h
<ruboto> baweaver # => {} (https://eval.in/369164)
iamninja has quit [Ping timeout: 256 seconds]
<baweaver> >> h = Hash.new { |h, k| h[k] = Hash.new(&h.default_proc) }; h[:a][:b][:c] = 1; h
<ruboto> baweaver # => {:a=>{:b=>{:c=>1}}} (https://eval.in/369165)
<baweaver> I can never remember that one off the top of my head
tuelz has quit [Ping timeout: 258 seconds]
Jackneill has quit [Read error: Connection reset by peer]
<ducklobster> is there any downside to having these auto populated hashes?
<ducklobster> i can see accidentally addressing / populating some fields as the only real downside
<jhass> allocation on missing key access perhaps
bruno- has joined #ruby
Notte has joined #ruby
towski_ has joined #ruby
tautvydas has quit [Remote host closed the connection]
rodfersou has joined #ruby
<balazs> anyone know how a job in dashing can see information on the request ? Like parameters. Looks like "request" is not available
juanpaucar has joined #ruby
segfalt has joined #ruby
tubuliferous_ has joined #ruby
lidenskap has quit [Remote host closed the connection]
<FernandoBasso> a = 10, b = 20, c = 30; puts a; puts b; puts c; What is the output?
juanpaucar has quit [Ping timeout: 264 seconds]
<FernandoBasso> 10\n20\n30\n20\n30 here.
<FernandoBasso> a.class is Array. OK. Why don't b.class is not Array as well then, which would be [20, 30] ?
Takle has quit [Remote host closed the connection]
<weaksauce> >> a = 10, b = 20, c = 30; puts a; puts b; puts c;
<ruboto> weaksauce # => 10 ...check link for more (https://eval.in/369166)
<jhass> because the , binds to the array a is assigned
claptor has quit [Quit: this channel is bakas]
lidenskap has joined #ruby
<jhass> you probably seek a, b, c = 10, 20, 30
<FernandoBasso> jhass: So, a receives the value of b and c which were assigned 20 and 30?
<FernandoBasso> jhass: I am aware of that syntax. Just that I tried this other one and was surprised by the result.
<jhass> not quite, it receives the value of the assignment expression, which its rhs
lidenskap has quit [Remote host closed the connection]
<FernandoBasso> But why isn't b assigned [20, 30] if a was [10, 20, 30] ?
<jhass> a = [(10), (b = 20), (c = 30)]
<atmosx> Guys any quick way to turn this string -> 2015-04-18 12:01:05 into this "201504181201.05" I manage to do it, but the code is ugly as hell. I call gsub 3 times..
<jhass> strptime().strftime?
tubuliferous_ has quit [Ping timeout: 272 seconds]
c_nick has joined #ruby
dingus_khan has joined #ruby
<atmosx> strptime >
<atmosx> let me check it
<jhass> or .sub(/:(?=\d{2}$)/, ".").delete("-: ") I guess
<c_nick> How can i achieve this is a better coding way .. if obj.nil? == true #set default value else #set given value
bronson has quit [Remote host closed the connection]
<FernandoBasso> Ah, I remember reading something that doing `myvar = a, b, c` creates an array.
<jhass> c_nick: obj ||= "default" ?
<FernandoBasso> Thanks for all clarification.
<c_nick> jhass: ok so there is an OR and || (like C)
segfalt has quit [Quit: segfalt]
Ox0dea has joined #ruby
<baweaver> careful though as one has much lower priority (or)
<c_nick> jhass: no i think in my case archive_name.nil? ? @archive_name = 'Run' : @archive_name = archive_name
UnKnOwN| has quit [Quit: Page closed]
<baweaver> @archive_name = archive_name || 'Run'
<jhass> ^
<c_nick> i am setting the class variables based on the arguments passed in the contructor
<baweaver> then put it in the constructor as a default
<jhass> def initialize(archive_name="Run")
<baweaver> ninja'd
_seanc_ has quit [Quit: _seanc_]
segfalt has joined #ruby
dc__ has quit [Remote host closed the connection]
maletor has joined #ruby
<c_nick> whats the difference between OR and ||
multi_io has quit [Ping timeout: 246 seconds]
<jhass> different precedence rules
<atmosx> jhass: wow that regex was impressive, thanks.
<baweaver> and/or are much lower than &&/||
multi_io has joined #ruby
<jhass> >> a = false || :c; b = false or :c; [a, b]
<ruboto> jhass # => [:c, false] (https://eval.in/369167)
<baweaver> Anyone know who heads the Ruby Meetup around SF?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
segfalt has quit [Client Quit]
<baweaver> I'd think Carina Zona is up there on the list.
AlphaAtom has quit [Ping timeout: 256 seconds]
<c_nick> strange although i set the values in my initializer i dont get them in my other functions
<Ox0dea> c_nick: Post code?
jalcine has quit [Quit: ZNC - http://znc.in]
<atmosx> How can I pass arguments to FileUtils.touch ? I wanna pass the equivalent of "-t <string>"
<atmosx> ah k
<atmosx> found it
strendom has joined #ruby
<jhass> mtime: xxx from the looks of it
<jhass> atmosx: seems to expect a Time, so you can throw away the string munging and go for strptime straight :P
<c_nick> why do i get temp_dir_loc as nil
<c_nick> in make dir fn
<atmosx> jhass: hm. right
<baweaver> Sent a suggestion to the meetup group to get some casual coffee meetups around later. cc miah dudedudeman eam / anyone else in SF
mjs2600_ has joined #ruby
<Ox0dea> c_nick: You're using "temp" in some places and "tmp" in others.
EllisTAA has joined #ruby
<jhass> c_nick: also please work on your indention (ruby community standard is two spaces btw)
ebonics has quit [Quit: Leaving]
<c_nick> Ox0dea: Shit your right .. my bad.. i never realized it
<jhass> a classes methods should be indented a level towards the class definition
lidenskap has joined #ruby
<c_nick> jhass: oh its the ubuntu Pastebin when i copy code it goes bizzare !
<jhass> then use gist ;P
<Ox0dea> c_nick: You
<Ox0dea> are using hard tabs.
<EllisTAA> can anyone link me to code that is a good example of recursion, i’m trying to get better at thinking recursively
<c_nick> Ox0dea: hehe yeah :P Scite And i guess thats the reason why it got such an indent in paste.ubuntu
<atmosx> jhass: I should really buy you a beer at some point in time (maybe via paypal)
<c_nick> I will customize it to two spaces
lidenskap has quit [Remote host closed the connection]
<jhass> EllisTAA: I can give you a nice exercise: you have a hash of hashes and other values, nested arbitrarily, you don't know how deep. Open the Hash class and add a method recursive_each that yields all key/value pairs whose values are not hashes
jpfuentes2 has joined #ruby
<c_nick> Thanks all works fine now
michael_mbp has quit [Excess Flood]
bronson has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<EllisTAA> jhass: so i have a hash of hashes and those nested hashes can have more hashses but they can also not have more hashes?
<jhass> yes
<EllisTAA> jhass: cool ill brb
<jhass> EllisTAA: to clarify http://paste.mrzyx.de/p3ls5km2y
kadoppe has quit [Ping timeout: 272 seconds]
michael_mbp has joined #ruby
wildroman2 has joined #ruby
kadoppe has joined #ruby
RegulationD has joined #ruby
mandarinkin has joined #ruby
vickleton has joined #ruby
<jhass> does it work?
<EllisTAA> ill try it
doodlehaus has joined #ruby
c_nick has left #ruby [#ruby]
<miah> sup
e1nh4nd3r has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
<eam> EllisTAA: towers of hanoi is a good recursive exercise
<EllisTAA> i guess my problem is i want to be able to identify when recursion might be a good solution … any tips on how to spot recursive problems?
<jhass> EllisTAA: well, the idea is there, it's missing passing around the block you should yield to, but for the recursive part that was too easy I guess :P
<eam> at the risk of sounding flippant, any algorithm that repeats itself
<EllisTAA> jhass: what do u mean “itsmissing passing around the block you should yield to”?
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> EllisTAA: http://carc.in/#/r/eu
towski_ has quit [Remote host closed the connection]
vsipuli has joined #ruby
<eam> EllisTAA: often applications are in the form of traversing a linked structure, or anywhere else you might use a while loop and state variables
<EllisTAA> jhass: what does the &block refer to? why not just calli it hash?
<EllisTAA> eam: thanks ill look more into that
<jhass> &block refers to the passed block
<EllisTAA> jhass: but aren’t we passing it a hash?
<jhass> no, I reopened Hash there ;)
<EllisTAA> haha im confused but thanks for helping
doodlehaus has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 264 seconds]
<eam> while (condition) { state = do_thing(state_change) } => def f(state) { if condition; return []; else return do_thing(state - state_change) }
wildroman2 has quit [Remote host closed the connection]
<eam> to use a super generic pseudocode example
<vsipuli> When packaging a Ruby application that depends on Gems, but is itself not supposed to be a reusable Ruby library, does it make sense to package the Ruby application as a Gem itself? (A Bundler Gemfile takes care of the application Gem dependencies)
mercerist has quit [Quit: Computer has gone to sleep.]
hector__ has quit [Quit: Leaving]
<apeiros> vsipuli: yes
wildroman2 has joined #ruby
<eam> EllisTAA: the state could be a linked list, it could be a chess board representing pieces, it could be an integer
<apeiros> gem with an executable in bin and dependencies
lidenskap has joined #ruby
<eam> do_think could be "next element", or it could be "next move" or some math function
<EllisTAA> eam: 0_o i think i’m going to have to look into linked lists. thanks for helping me out
<Ox0dea> >> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<$___+_*__*__<<@__+__*(_+@_)<<@__+_<<@__+@_*@_<<$-_<<$___-__<<$-_<<$___-$_<<$-_+_*__*__+$__
<ruboto> Ox0dea # => "Ruby = <3" (https://eval.in/369173)
<Ox0dea> Tee-hee.
strendom has quit [Remote host closed the connection]
Takle has joined #ruby
baweaver has quit [Remote host closed the connection]
bb010g has joined #ruby
wildroman2 has quit [Ping timeout: 245 seconds]
tuelz has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Channel6 has joined #ruby
segfalt has joined #ruby
cranq has quit [Ping timeout: 264 seconds]
DerisiveLogic has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
<existensil> did you hand obfuscate that?
<vsipuli> Why does invoking a function like "foo" work, but "Bar.foo" gives an error about an undefinedmethod "foo" on module "Bar"? (Invoking with "Bar.foo()" works though)
<jhass> code to reproduce?
gusrub has quit [Quit: Leaving]
fabrice31 has joined #ruby
iwishiwerearobot has joined #ruby
<vsipuli> apeiros: What added value does packaging a Ruby application as a proper Gem provide compared to just using a Bundler Gemfile, in your opinion?
phutchins has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
<Ox0dea> existensil: Maybe...
<apeiros> vsipuli: makes it easy to share and install.
<vsipuli> jhass: Sorry, can't reproduce it. Seems like I had messed up my IRB environment somehow.
<jhass> would've surprised me otherwise :P
<apeiros> vsipuli: you don't need any custom instructions.
pontiki has joined #ruby
iwishiwerearobot has quit [Ping timeout: 255 seconds]
ebonics has joined #ruby
horsecowdog has joined #ruby
<ebonics> how do you guys usually track where classes, methods, etc are in a big ruby application?
<Ox0dea> ebonics: Method#source_location is pretty great.
crdpink2 has joined #ruby
<ebonics> Ox0dea, so you run code to find out where stuff is? :o
lidenskap has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<apeiros> ebonics: conventions
<apeiros> ebonics: always map class names to filenames
decoponio has joined #ruby
<apeiros> ebonics: Foo::BarBaz --> foo/bar_baz.rb
crdpink has quit [Ping timeout: 265 seconds]
<ebonics> apeiros, i'm working with a pretty massive ruby applicaiton with many dependencies and hierarchies etc
<apeiros> s/class names/constants/ (classes and modules are usually assigned to constants)
<ebonics> it's basically a nightmare trying to find stuff
<ebonics> current i'm using grep lol
<apeiros> ebonics: why?
<apeiros> did they not follow the above convention? most ruby code bases do…
Rollabunna has quit [Ping timeout: 265 seconds]
<apeiros> also when in pry, I simply use $ and ?
marr has joined #ruby
<ebonics> apeiros, like there's a method called log_call in this class
<ebonics> and it's no where to be find inside that class
<ebonics> so what's your process for finding where it is
<apeiros> ebonics: check the ancestors
<ebonics> there's like a huge hierarchy
<apeiros> ebonics: why don't you generate the API docs?
<apeiros> ebonics: that's uncommon
<ebonics> that would probably help
<ebonics> apeiros, not specifically for this class
<apeiros> I've rarely ever seen more than 2 levels of inheritance (except rails, rails is crazy in that regard)
<ebonics> but there are classes that have like 10+ super classes
horsecowdog has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
<apeiros> ebonics: anyway, without api docs - fire up pry and introspect the class. $/? are a huge help.
<ebonics> apeiros, it's pretty well documented actually
<ebonics> i will generate them now
maletor has quit [Quit: Computer has gone to sleep.]
lidenskap has quit [Remote host closed the connection]
<Ox0dea> ebonics: Did you not try `Foo.method(:log_call).source_location`?
<ebonics> Ox0dea, i could do that, but that would require me to run the application whenever i wnated to trace something
<ebonics> which is bad
<Ox0dea> It would nevertheless help you to better understand the structure of the project.
mary5030 has joined #ruby
swgillespie has joined #ruby
<ebonics> i hate global namespaces
<ebonics> it's actually pretty cancerous
<ebonics> lucky for me there's good docs
cranq has joined #ruby
Palmer11 has joined #ruby
Matachines has joined #ruby
dru` has quit [Ping timeout: 244 seconds]
macmartine has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
Notte has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dingus_khan has quit []
kirun has quit [Quit: Client exiting]
beltranzz3 has joined #ruby
_seanc_ has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
zotherstupidguy1 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has quit [Quit: WeeChat 1.1.1]
juanpaucar has joined #ruby
doodlehaus has joined #ruby
tubuliferous has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
beltranzz3 has quit [Ping timeout: 265 seconds]
MasterPiece has quit [Read error: Connection reset by peer]
mordof has joined #ruby
tubuliferous has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
<mordof> i know of find, and find_all... but i'm not sure if either of those work in this scenario. I have an array of hashes, and inside about 8 keys in each hash. then I have another hash which contains say, 6 out of 8 of those keys. What's the best way to find a match between those keys that exist?
<mordof> i can iterate over them inside the find if i have to, just wondering if there's a better way
macmartine has quit [Remote host closed the connection]
<jhass> mordof: yeah, nest .all? inside .find
zotherstupidguy1 has quit [Ping timeout: 255 seconds]
macmartine has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
zotherstupidguy1 has joined #ruby
<mordof> does .all work on hashes?
<jhass> sure, it's in Enumerable
<mordof> ah. so it's just {}.all? {|k,v| }.. alright, thanks :)
sent1nel has quit [Remote host closed the connection]
platzhirsch has quit [Client Quit]
macmartine has quit [Remote host closed the connection]
macmartine has joined #ruby
doodlehaus has joined #ruby
jottr_ has joined #ruby
Palmer11 has quit [Quit: Palmer11]
tcrypt has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<apeiros> mordof: you can gist your code. depending on what you do, there might be a more efficient way.
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mroark has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof> ok. one sec
vickleton has quit [Quit: Ex-Chat]
iasoon has joined #ruby
<mordof> https://gist.github.com/gshiftlabs-mwinger/07a29a582c6b437b5309 ... i think that appropriately represents what i'm doing
<mordof> close enough anyway
swgillespie has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
vsipuli has quit []
swgillespie has quit [Max SendQ exceeded]
<mordof> apeiros, -^
swgillespie has joined #ruby
jenrzzz has joined #ruby
dfockler has joined #ruby
<mordof> I want to find the hash inside of the critical_of_type array that matches all of the contents of the item hash
swgillespie has quit [Client Quit]
bluOxigen has quit [Ping timeout: 258 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
rubie has quit [Remote host closed the connection]
x3cion has joined #ruby
Channel6 has quit [Remote host closed the connection]
<apeiros> mordof: could do: keys = item.keys; values = item.values; … { |crit_item| crit_item.values_at(*keys) == values }
dfockler has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Ping timeout: 250 seconds]
yh__ has joined #ruby
<mordof> hmmm
<mordof> 2 enumerables vs creating 3 new arrays..
<mordof> and then doing a full array comparison
Xiti has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
<mordof> i'm not sure which would be more efficient, but i think the first is easier to read anyway.
doodlehaus has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
zotherstupidguy1 has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
<mordof> oh .. the values_at essentially does the same amount of hash lookups also. wow that's a heavy operation, heh
xxneolithicxx has quit [Ping timeout: 255 seconds]
zotherstupidguy1 has joined #ruby
tjbiddle has joined #ruby
coderhs has joined #ruby
ItSAN____ has joined #ruby
mroark has quit [Ping timeout: 265 seconds]
ItSANgo_ has quit [Ping timeout: 276 seconds]
kobain has joined #ruby
phutchins has joined #ruby
lidenskap has joined #ruby
Olipro_ has joined #ruby
Olipro_ is now known as Guest70052
<jhass> it has less transitions between ruby and c land
RegulationD has joined #ruby
m8 has quit [Quit: Sto andando via]
phutchins has quit [Ping timeout: 245 seconds]
lidenskap has quit [Ping timeout: 252 seconds]
<atmosx> jhass: what are you working on?
<jhass> nothing, built carc.in the last days
<mordof> jhass, the way apeiros did it?
<jhass> mordof: yeah
AlphaAtom has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
<apeiros> it also has less hash lookups
<apeiros> but given your dataset, I doubt it'll matter anyway
<apeiros> so go with what you find more readable
<mordof> apeiros, given a large dataset, would the way you wrote it actually be faster?
Juanchito has quit [Quit: Connection closed for inactivity]
RegulationD has quit [Ping timeout: 245 seconds]
<mordof> i suppose i'll have to benchmark it to find out
<apeiros> I'm not quite sure how ruby does argument passes. but I could imagine that every iteration in all? { |k,v| will actually create an array.
<apeiros> mordof: I'm convinced. but a good benchmark tells you the truth.
bronson has joined #ruby
<atmosx> jhass: crystal as a new programming language?
<jhass> as a=is a ?
<atmosx> yes
<mordof> apeiros, oh right - because it's doing [k,v] and passing that into the block?
<jhass> then yeah
<atmosx> never have to specify a type of variable and Have compile-time evaluation?
<jhass> that are the goals, not quite achieved yet, but close ;)
<atmosx> ah k, so you're one of the devs? and apeiros too?
<jhass> uh? no
<apeiros> I'm not, no
dseitz has joined #ruby
<jhass> well, I contributed a bit to its stdlib, yet have to touch parser/codegen/semantic phase
umby24 is now known as umby24|offline
<apeiros> mordof: yes. but as said, I actually never bothered to figure how ruby does argument passing.
<apeiros> could easily check using the new GC stats tools
spider-mario has quit [Read error: Connection reset by peer]
<mordof> apeiros, *nods* noted. that's an interesting though. i haven't looked under the hood very much at all now that i think about it
<apeiros> mordof: anyway, such things going on under the hood can easily turn something which theoretically *should* be faster into something which is in truth slower. hence always bench if performance matters.
<apeiros> and if performance doesn't matter - don't prematurely optimize :) optimize for readability instead.
<mordof> indeed :)
<balazs> does anyone have experience with dashing where the widgets pull the data, and not the jobs push it ?
<apeiros> or clarity
bronson has quit [Ping timeout: 245 seconds]
<mordof> apeiros, i like to think about it just in case, but usually until something actually becomes noticably slow i don't try and optimize
<mordof> however i aim to learn how to do things with speed+readability to begin with.. if that makes sense
* mordof shrugs
<apeiros> sure
<apeiros> makes sense. I do the same.
<apeiros> if I know A will be faster than B and is similarly readable, of course I'll choose A. and in order to know that, I have had to do research first.
<ebonics> i think if you need to worry too much about that stuff for your use case then youre using the wrong language
<ebonics> :p
<apeiros> ebonics: nah
_seanc_ has quit [Quit: _seanc_]
<ebonics> im not saying thats true in cases where you just want to learn or improve yourself
phizzbuzz has joined #ruby
<ebonics> but if youre constantly having to optimize your code because its too slow, even before you start writing any code.. then yeah you should consider another language
<ebonics> ruby is pretty slow
_seanc_ has joined #ruby
<apeiros> ok. if that's what you're saying, then I agree.
<apeiros> constantly having to optimize is indeed a symptom of "wrong tool for the task".
<apeiros> (or for you needing a serious beef up in basic CS)
<mordof> yeah - the other side of that is, for example, when i first started writing active record stuff
<mordof> and i'd write queries that were readable, but just spammed the DB like mad, lol
<ebonics> that's when you rm -rf and chalk it up as a learning experience :D
<mordof> xD
<ebonics> then rewrite it
<ebonics> honestly its pretty bad when youre forced into a project where you know very little, and you keep getitng progressively better at the concept/language
<ebonics> then you have to look back at the ass code you wrote
<mordof> haha, yeah i always hate the looking back
<ebonics> and probably rig it to work properly, compounding the problem
bronson has joined #ruby
<mordof> i started learning ruby/rails when i began my job a year ago. i'd hate to go back to the first project i did
<mordof> i know it was terrible :/
scripore has joined #ruby
<ebonics> like idk, you see the ridiculous chaining and filtering you do with ruby... it's pretty intuitive to realise youre not being memory efficient :p
xxneolithicxx has joined #ruby
<ebonics> but it's fun and pretty rapid, thats why i like using it
<ebonics> the only nitpick i have is it needs namespaces badly
<ebonics> and maybe ease up on the attr_accessor boiler plate
iasoon has quit [Ping timeout: 272 seconds]
<mordof> aren't modules there for namespaces?
<apeiros> yes
<mordof> they aren't quite the same thing i guess
<ebonics> i mean as a legitimate language feature
<apeiros> that's one of their purposes
<mordof> alright
<ebonics> that's not a true solution for namespaces
f3lp has quit [Ping timeout: 272 seconds]
<apeiros> what would be a true solution?
Nedfo has joined #ruby
<Nedfo> map and collect are the same?
bronson has quit [Ping timeout: 255 seconds]
<apeiros> Nedfo: usually
<Nedfo> usually?
<apeiros> Nedfo: anybody can implement any method with any name.
<ebonics> like, i define a namespace at the top of my code and any modules that are defined there are inaccessible to other namespaces unless specified, not just by including the rb file
<mordof> Nedfo, collect is an alias for map, yes (or the other way around, i forget)
<apeiros> but core's Enumerable#map and #collect are aliases.
<ebonics> atm it's too much like php or something pre psr
<apeiros> ebonics: private_constant. though I don't see the need.
<apeiros> ebonics: that's hand-holding developers. and I'm very grateful ruby doesn't do that.
mjuszczak has joined #ruby
<ebonics> that's hardly handholding, it's a good idiom
<apeiros> e.g. it doesn't do it either with regards to private/protected. you can always send
<apeiros> putting up "you shall not pass!" shields? yeah, that's hand-holding.
<ebonics> that's hyperbole
<apeiros> no
<apeiros> if you think I should not use some of your code, document that.
<ebonics> can you explain what you just said
<apeiros> but don't force me off your code. that's just silly.
mjuszczak has quit [Client Quit]
<ebonics> why?
<apeiros> because I'm a grown up and will decide on my own what I want to use?
<apeiros> and you're not my mom or dad to tell me what I can and can't use
<ebonics> it requires you to know exactly how to use it, that would be the point of using a namespace
<ebonics> if you want to use it you just include the namespace
<ebonics> otherwise you use it passively
<apeiros> you can tell me about the risks. as in "this is internal, don't go here". and I decide whether I take it.
davispuh has quit [Remote host closed the connection]
<ebonics> yeah good luck reading through a whole codebase that isn't trivially small before you decide which classes you want to use
leafybasil has joined #ruby
shuber_ has quit [Remote host closed the connection]
bogdanteleaga has quit [Ping timeout: 256 seconds]
<ebonics> you're going to document every method that has side effects? "this method calls this method which calls this method which has this side effect"
<mordof> I think the two of you are talking about different cases...
<mordof> somewhat
<jhass> mordof: I think both are bound to the same C function, so it's really two names for the same thing, hard to say one is an alias for the other (real) one
<mordof> jhass, ah, true
20WABBVY2 has joined #ruby
<apeiros> ebonics: I don't see how that's related
<mordof> ebonics, if you want it in a namespace, put it in a module. then it's ModuleName::ClassName unless you've included the module in your current class
lidenskap has joined #ruby
shuber_ has joined #ruby
<ebonics> apeiros, it's relevant in that you're forced to make the decision of putting your code in that namespace or not
<apeiros> I don't follow
<ebonics> otherwise you can have your little enclosed pod where nothing is redefined and you can be completely safe from side effects
<apeiros> o0
<apeiros> how does making stuff hidden change anything about side-effects?
ItSAN____ has quit [Ping timeout: 244 seconds]
<apeiros> that doesn't make sense
<ebonics> that's the whole reason for namespaces
<ebonics> you either have to put your code in it to use everything in it
<ebonics> or you have to delegate to it
<ebonics> with limited access
<ebonics> brb need food
<apeiros> maybe make an example. either I'm misunderstanding you, or you're really not making sense. atm I hope for the former :)
<ebonics> okay, well. i think that it's a pointless discussion first of all ebcause as you said there's no real encapsulation in ruby
<apeiros> i.e. start with how you'd do it in ruby without the namespaces, and then where/how you'd add namespaces and what that'd achieve
fabrice31 has joined #ruby
<apeiros> there is
<ebonics> but the point would be you either include the namespace, where you can have only redefined methods apply directly to what you apply to it
<ebonics> ie. myvarr = somethirdpartyshit.mymethod
<ebonics> where mymethod does a !
<apeiros> the encapsulation just isn't one which hides stuff from you or prevents access. but that's not vital to encapsulation.
lidenskap has quit [Remote host closed the connection]
<ebonics> you know what i meant
<apeiros> but that's the point - I'm not sure I know what you meant
<apeiros> because what I think you meant doesn't make sense to me
<ebonics> i meant that there's no concept of private
<apeiros> correct
iwishiwerearobot has joined #ruby
<ebonics> actually there is for field members
<apeiros> and (true) private is handholding.
<ebonics> it's implicit
<apeiros> you can reach those through ivar_get
<apeiros> and _set
rubie has joined #ruby
<ebonics> is that reflection
<apeiros> so neither are they truly hidden
<ebonics> reflection doesnt count
<ebonics> but anyway
bogdanteleaga has joined #ruby
<apeiros> it's no different from using an accessor
<ebonics> the point is namespaces allow you to encapsulate your code to avoid other code's side effects
<ebonics> im super hungry though
<apeiros> go eat :D
<ebonics> ill fight you later m8 ill git u gud and ur mum 2
<apeiros> we can continue that anytime
<apeiros> bon apps
<apeiros> I'll probably be away in a bit too. nighttime here.
baweaver has joined #ruby
shuber_ has quit [Remote host closed the connection]
mjs2600_ has quit [Quit: Connection closed for inactivity]
shuber_ has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<Nedfo> Also size and length are aliases?
<apeiros> Nedfo: you can check those things yourself
<apeiros> Nedfo: just look up in the documentation
<Nedfo> I do I just want to be sure. Stop bitching about it
iwishiwerearobot has quit [Ping timeout: 272 seconds]
dc has joined #ruby
horsecowdog has joined #ruby
<apeiros> Nedfo: watch your language.
<apeiros> Nedfo: so if you're not sure - how do you look it up in the documentation?
SushiMonster has joined #ruby
<gizmore> the docs are the best way to be sure, beside the source
<gizmore> all other sources should be treated as rumors and/or inspiration :p
<Nedfo> Is it even necessary to check the source to understand the language?
<apeiros> gizmore: hearsay :D
<apeiros> Nedfo: no. but answer my question please.
<jhass> Nedfo: for daily usage, no. For some edge case it may help
<gizmore> Nedfo: length and size are actually replaced to ##len in ruby! *KIDDINGS*
tubuliferous has joined #ruby
<Nedfo> jhass, Do you think it would be necessary if I'm heading to Rails?
<jhass> probably not
<jhass> I'm interested on your answer to apeiros question too btw, the docs are very clear on your question
Soda has joined #ruby
<SushiMonster> why is django superior to rails?
<apeiros> Nedfo: look, if you don't know - we don't bite your head off. it'd just make sense if you'd actually ask how to do it then.
horsecowdog has quit [Ping timeout: 264 seconds]
<SushiMonster> join django
<apeiros> SushiMonster: are you trying to incite some flamewar?
<Nedfo> apeiros, Huh? I just asked to be sure I understood the concept correctly.
<apeiros> Nedfo: and you still didn't answer my question.
<Nedfo> I don't have to.
SushiMonster has quit [Disconnected by services]
<apeiros> no. but if you think it's ok to abuse this channel as your personal docs, I'll remove you from it.
sushimonster_ has joined #ruby
<jhass> "Disconnected by services" now I'm curious :D
<ebonics> gh0sted
<jhass> maybe
sushimonster_ is now known as sushimonster
kstuart has joined #ruby
<sushimonster> so why is django superior to rails?
<apeiros> kick?
<sushimonster> who?
<Nedfo> <sushimonster> why is rails superior to django?
<Nedfo> in ##django
<sushimonster> lel
Rollabunna has joined #ruby
<apeiros> almost expected that with that "join django"
<jhass> sushimonster: bored?
<ebonics> siq troll m8
<ebonics> original as fu
<gizmore> actually django has a long history of security problems!
<apeiros> sushimonster: we don't want trolls here. so either you ask a non-inflammatory question or you go.
<ebonics> gizmore, does it actually?
<gizmore> no
<ebonics> o
<gizmore> it was used in some CTF once
<sushimonster> inflammatory means racist and i'm not racist
<ebonics> ive only heard good things about django
<apeiros> sushimonster: check your dictionary
<shevy> django sucks
<ebonics> and no vulnerabilities to speak of
<shevy> there! bad thing about it
<gizmore> rails has had security problems too... like every code has
<apeiros> shevy: please. that's not necessary.