baweaver changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
baroquebobcat has joined #ruby
towski__ has joined #ruby
Yzguy has joined #ruby
towski_ has quit [Ping timeout: 244 seconds]
inteq has joined #ruby
fgo has joined #ruby
meatherly has quit []
Musashi007 has quit [Quit: Musashi007]
pecpec has joined #ruby
athinggoingon has joined #ruby
leat2 has quit [Remote host closed the connection]
leat2 has joined #ruby
lacrymology has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
an0ma1y has quit [Quit: Quit]
fgo has quit [Ping timeout: 250 seconds]
kfpratt has quit [Remote host closed the connection]
bmurt has joined #ruby
pecpec has quit [Ping timeout: 264 seconds]
iateadonut has joined #ruby
Porfa has quit [Quit: Porfa]
morenoh149 has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
JulioPapel has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
morenoh149 has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
leat2 has quit [Ping timeout: 246 seconds]
leat2 has joined #ruby
snockerton has quit [Quit: Leaving.]
AlexAltea has quit [Quit: ZNC - http://znc.in]
AlexAltea has joined #ruby
ReK2 has joined #ruby
CustosLimen has quit [Max SendQ exceeded]
CustosLimen has joined #ruby
ngscheurich has joined #ruby
CloCkWeRX has joined #ruby
ElSif has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dstarh has joined #ruby
vdamewood has quit [Max SendQ exceeded]
an0ma1y has joined #ruby
Rakunh0 has joined #ruby
nym has joined #ruby
weemsledeux has joined #ruby
Rollabunna has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
rubie has quit [Remote host closed the connection]
morenoh149 has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Client Quit]
duncannz has quit [Ping timeout: 268 seconds]
dstarh has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 272 seconds]
nahtnam has joined #ruby
lkba_ has joined #ruby
pocketprotector has joined #ruby
foureight84 has quit [Quit: Be back later ...]
lkba has quit [Ping timeout: 246 seconds]
justin_pdx has joined #ruby
[H]unt3r has quit [Quit: Leaving]
ladystarduust has joined #ruby
towski_ has joined #ruby
gusrub has quit [Quit: Leaving]
towski__ has quit [Ping timeout: 244 seconds]
samukasmk has joined #ruby
Igorshp has joined #ruby
morenoh149 has joined #ruby
samukasmk_ has joined #ruby
samukasmk__ has joined #ruby
samuk540 has joined #ruby
samuk899 has joined #ruby
<FernandoBasso> "You may isolate variables in a block from the outer scope by listing them following a ; in the block’s arguments. See the documentation for block local variables in the calling methods documentation for an example."
<FernandoBasso> Where is that found?
weemsledeux has joined #ruby
<Radar> FernandoBasso: Citation needed.
ndrei has joined #ruby
<FernandoBasso> I am reading this, by the way: http://ruby-doc.org/core-2.1.2/doc/syntax/assignment_rdoc.html
<morenoh149> so sinatra doesn't use rack?
<Radar> morenoh149: what makes you think that?
maletor has quit []
<morenoh149> I only see rack-test
<Radar> "runtime dependencies, rack"
oo_ has joined #ruby
<morenoh149> I guess rack-test in turn requires rack
<Radar> morenoh149: y u no read what I link you to?
<Radar> Gemfile specifically states it loads dependencies from the gemspec
ngscheurich has quit [Ping timeout: 250 seconds]
<Radar> gemspec clearly defines a dependency on Rack
samukasmk__ has quit [Remote host closed the connection]
samuk540 has quit [Remote host closed the connection]
samukasmk has quit [Remote host closed the connection]
samukasmk_ has quit [Remote host closed the connection]
samuk899 has quit [Remote host closed the connection]
turnstile has quit [Quit: Autotools exists so that you can port your programs from Unix to Unix.]
<morenoh149> I did read it. Wasn't sure what I was reading though
pawnbox has joined #ruby
Igorshp has quit [Ping timeout: 244 seconds]
athinggoingon has quit [Ping timeout: 240 seconds]
<Radar> https://rubygems.org/gems/sinatra clearly shows that rack is a runtime dependency for the sinatra gem
claw has joined #ruby
<Radar> The Gemfile doesn't explicitly state the Rack dependency because that dependency is specified in the project's gemspec, which Bundler interprets because of the "gemspec" line in the Gemfile.
<Radar> FernandoBasso: Look in the sidebar. calling_methods.rdoc
pawnbox has quit [Remote host closed the connection]
<FernandoBasso> Ah, "in the calling methods documentation"...
<FernandoBasso> Radar: silly me.
ladystarduust has left #ruby ["Leaving"]
<FernandoBasso> Thanks.
<Radar> FernandoBasso: np
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
<Ox0dea> FernandoBasso: I'm not sure why that's in the 2.1 documentation; the semicolon hasn't been necessary since 1.9.
NeverDie has quit [Quit: http://radiux.io/]
marr has quit [Ping timeout: 246 seconds]
Ketchy has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
morenoh149 has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
<Ox0dea> 18>> foo = 1; proc { |foo| foo = 2 }.call(0); foo
<ruboto> Ox0dea # => 2 (https://eval.in/430253)
<Ox0dea> 19>> foo = 1; proc { |foo| foo = 2 }.call(0); foo
claw has quit [Ping timeout: 264 seconds]
<ruboto> Ox0dea # => 1 (https://eval.in/430254)
morenoh149 has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
denisemc_ has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
Exponential has joined #ruby
<FernandoBasso> I see. Thanks.
keen__________16 has quit [Read error: Connection reset by peer]
ruurd_ has joined #ruby
abbe has quit [Read error: Connection reset by peer]
<Ox0dea> In short, feel free to pretend you never knew you could stick simicolons in block argument lists. :P
<Ox0dea> *semicolons
abbe has joined #ruby
<FernandoBasso> :p
denisemccoy has quit [Ping timeout: 268 seconds]
pietr0 has quit [Quit: pietr0]
vipaca has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
sfr^ has quit [Ping timeout: 246 seconds]
terrellt has quit [Ping timeout: 246 seconds]
Guest65722 has quit [Ping timeout: 246 seconds]
jimeh_ has quit [Ping timeout: 246 seconds]
BackEndCoder has quit [Ping timeout: 246 seconds]
LBRapid has quit [Ping timeout: 246 seconds]
larissa has quit [Ping timeout: 246 seconds]
jsrn has quit [Ping timeout: 246 seconds]
keen__________16 has joined #ruby
ruurd has quit [Ping timeout: 244 seconds]
nym has quit [Read error: Connection reset by peer]
autrilla has quit [Read error: Connection reset by peer]
EasyCo has quit [Read error: Connection reset by peer]
teotwaki has quit [Ping timeout: 246 seconds]
Derasi has quit [Quit: No Ping reply in 180 seconds.]
Liam` has quit [Quit: http://bouncer.ml]
hostess has quit [Remote host closed the connection]
aredridel has quit [Ping timeout: 246 seconds]
skarn has quit [Ping timeout: 246 seconds]
Dwarf has quit [Ping timeout: 246 seconds]
yqt has quit [Ping timeout: 255 seconds]
DarkBushido has quit [Ping timeout: 246 seconds]
Seich has quit [Ping timeout: 246 seconds]
epochwolf has quit [Ping timeout: 246 seconds]
waxjar_ has quit [Ping timeout: 246 seconds]
Shidash has quit [Ping timeout: 246 seconds]
jaxxstorm has quit [Ping timeout: 246 seconds]
catbusters has quit [Ping timeout: 246 seconds]
haraoka has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
wookiehangover has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
kfpratt has joined #ruby
asi_ has joined #ruby
autrilla has joined #ruby
arooni-mobile has quit [Ping timeout: 246 seconds]
duoi has quit [Ping timeout: 246 seconds]
CpuID has quit [Ping timeout: 246 seconds]
infernix has quit [Ping timeout: 246 seconds]
johnhamelink has quit [Ping timeout: 246 seconds]
segmond has quit [Ping timeout: 246 seconds]
lupine has quit [Ping timeout: 246 seconds]
dymk has quit [Ping timeout: 246 seconds]
cschneid- has quit [Ping timeout: 246 seconds]
Billias has quit [Ping timeout: 246 seconds]
Nightmare has quit [Ping timeout: 246 seconds]
s00pcan_ has quit [Read error: No route to host]
jonr22 has joined #ruby
wldcordeiro_ has joined #ruby
G has quit [Ping timeout: 246 seconds]
Liam` has joined #ruby
tno has quit [Ping timeout: 246 seconds]
flaf has quit [Ping timeout: 246 seconds]
SilentEcho has quit [Ping timeout: 246 seconds]
george2 has quit [Ping timeout: 246 seconds]
hydrozen has joined #ruby
nym has joined #ruby
kfpratt has quit [Remote host closed the connection]
iooner- has quit [Ping timeout: 246 seconds]
FastJack has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
<FernandoBasso> I misunderstood the docs.
G_ has joined #ruby
hostess has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<FernandoBasso> I was thinking it would be possible to make the a variable (in the example) not to "leak" into the block.
EasyCo has joined #ruby
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<FernandoBasso> What the call_method doc talks about is a way not to let outer variables interfere with block variables with the same name, it seems.
yfeldblum has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
hackerdude has joined #ruby
ruurd_ has quit [Ping timeout: 260 seconds]
claw has joined #ruby
baweaver has quit [Remote host closed the connection]
larissa has joined #ruby
wldcordeiro has quit [Ping timeout: 246 seconds]
ZeeNoodleyGamer has quit [Ping timeout: 246 seconds]
Shidash has joined #ruby
george2 has joined #ruby
FastJack has joined #ruby
lupine has joined #ruby
meatherly has joined #ruby
pyon has joined #ruby
epochwolf has joined #ruby
bf4 has joined #ruby
DarkBushido has joined #ruby
waxjar has joined #ruby
arooni-mobile has joined #ruby
dymk has joined #ruby
bf4 is now known as Guest38256
ZeeNoodleyGamer has joined #ruby
wookiehangover has joined #ruby
aredridel has joined #ruby
SilentEcho has joined #ruby
flaf has joined #ruby
iooner has joined #ruby
Nightmare has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
sfr^ has joined #ruby
tno has joined #ruby
Seich has joined #ruby
duoi has joined #ruby
cschneid has joined #ruby
jaxxstorm has joined #ruby
s00pcan_ has joined #ruby
jsrn has joined #ruby
Billias has joined #ruby
arooni-mobile has joined #ruby
teotwaki has joined #ruby
LBRapid has joined #ruby
jimeh has joined #ruby
segmond has joined #ruby
terrellt has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
dorei has quit []
BackEndCoder has joined #ruby
duoi has quit [Excess Flood]
hackerdude has quit [Client Quit]
arooni-mobile has joined #ruby
duoi has joined #ruby
skarn has joined #ruby
catbusters has joined #ruby
johnhamelink has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arooni-mobile has quit [Max SendQ exceeded]
Musashi007 has quit [Ping timeout: 264 seconds]
arooni-mobile has joined #ruby
egtann has joined #ruby
egtann has quit [Remote host closed the connection]
arooni-mobile has quit [Max SendQ exceeded]
egtann has joined #ruby
<drbrain> Ox0dea: your example shows a different thing than what block local arguments does
mordocai has joined #ruby
<drbrain> >> foo = 1; proc { foo = 2 }.call; p foo
<ruboto> drbrain # => 2 ...check link for more (https://eval.in/430255)
<drbrain> >> foo = 1; proc { |;foo| foo = 2 }.call; p foo
arooni-mobile has joined #ruby
<ruboto> drbrain # => 1 ...check link for more (https://eval.in/430256)
<Ox0dea> Oh, right.
JulioPapel has quit [Read error: Connection reset by peer]
solocshaw has quit [Read error: Connection reset by peer]
arooni-mobile has quit [Max SendQ exceeded]
enebo has quit [Quit: enebo]
<drbrain> block local arguments allow you to make arbitrary variables behave like block arguments
<drbrain> FernandoBasso: ↑
jenrzzz has quit [Ping timeout: 260 seconds]
arooni-mobile has joined #ruby
solocshaw has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
Ketchy has quit [Read error: Connection reset by peer]
<FernandoBasso> ✓
Ketchy has joined #ruby
arooni-mobile has joined #ruby
<Ox0dea> It puts me in mind of K&R-era function definition.
Exponential has joined #ruby
s00pcan_ has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
morenoh149 has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
arooni-mobile has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
fgo has joined #ruby
dfockler has joined #ruby
arooni-mobile has joined #ruby
KensoDev has quit [Remote host closed the connection]
Rurik has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby
arooni-mobile has quit [Read error: Connection reset by peer]
<FernandoBasso> Well, thanks.
arooni has joined #ruby
arooni has quit [Max SendQ exceeded]
arooni has joined #ruby
enebo has joined #ruby
moeabdol has joined #ruby
Exponential has quit [Quit: Textual IRC Client: www.textualapp.com]
denisemc_ has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
`mrspock has joined #ruby
denisemccoy has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
grenierm has quit [Client Quit]
martin_work has quit [Ping timeout: 264 seconds]
Dwarf has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
pecpec has joined #ruby
s00pcan_ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
claw has quit [Ping timeout: 250 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
infernix has joined #ruby
pecpec has quit [Ping timeout: 244 seconds]
lucyinthesky has left #ruby ["Mensagem"]
OrbitalKitten has joined #ruby
denisemccoy has quit [Remote host closed the connection]
claw has joined #ruby
chills42 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JulioPapel has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby
OrbitalKitten has quit [Client Quit]
ndrei has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 240 seconds]
opensource_ninja has joined #ruby
OrbitalKitten has joined #ruby
OrbitalKitten has quit [Client Quit]
juanpablo____ has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
siempref_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[k- has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 244 seconds]
pocketprotector has quit [Ping timeout: 256 seconds]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pyon has quit [Quit: F...ix you, Emacs!]
Rickmasta has quit [Ping timeout: 240 seconds]
sargas has quit [Quit: This computer has gone to sleep]
pyon has joined #ruby
pawnbox has joined #ruby
ScriptGeek has joined #ruby
juanpablo____ has quit [Ping timeout: 264 seconds]
Rickmasta has joined #ruby
<ScriptGeek> is there a way to make a string contain a variable reference in such a way that the string doesn't need to be reinterpolated when the value of the variable changes?
weemsledeux has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
northfurr has joined #ruby
badfish129 has quit [Quit: badfish129]
<dfockler> ScriptGeek: so you don't want "Ruby #{string_var}" ?
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
duncannz has quit [Ping timeout: 240 seconds]
<ScriptGeek> well, I want to set a string with a variable inside it so that the string doesn't need to get reassigned
<ScriptGeek> something like this
<ScriptGeek> message = "You're already in #{location}"
nofxx has joined #ruby
workmad3 has joined #ruby
davedev24 has joined #ruby
<ScriptGeek> and then if the location variable changes the string gets updated automagically
rbennacer has joined #ruby
<dfockler> oh if that's the case no probably not
<ScriptGeek> ok, thanks for the help
<dfockler> Ruby sets the value of message after interpolating the string
<ScriptGeek> yeah, I thought it would
<dfockler> but you can have a function that does that
<dfockler> and just return the built string
<ScriptGeek> hmm... that might work
<ScriptGeek> good idea
vipaca has joined #ruby
pocketprotector has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
claw has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
meph has quit [Quit: Leaving.]
G_ is now known as G
claw has joined #ruby
iandeejay has joined #ruby
Yzguy has quit [Quit: Zzz...]
troyready has quit [Remote host closed the connection]
<iandeejay> what is the best way to give restricted access to specific ruby classes/modules for a sandboxed environment?
vipaca has quit [Ping timeout: 265 seconds]
northfurr has quit [Quit: northfurr]
devoldmx has joined #ruby
Musashi007 has joined #ruby
siemprefresco has joined #ruby
<dfockler> iandeejay: only write the classes that you want the user to have access to
<dfockler> ruby's class model isn't setup in a way that allows for real restriction on access
devoldmx has quit [Ping timeout: 244 seconds]
egtann has quit []
Musashi007 has quit [Ping timeout: 246 seconds]
FernandoBasso has quit [Quit: WeeChat 1.3]
centrx has joined #ruby
towski_ has quit [Remote host closed the connection]
buttholio2099 has joined #ruby
claw has quit [Ping timeout: 265 seconds]
devbug has joined #ruby
an0ma1y has quit [Read error: Connection reset by peer]
justin_pdx has quit [Quit: justin_pdx]
icole has quit [Ping timeout: 260 seconds]
denisemccoy has joined #ruby
denisemccoy has quit [Remote host closed the connection]
an0ma1y has joined #ruby
morenoh149 has joined #ruby
<iandeejay> dflocker: this is true. good point
justin_pdx has joined #ruby
dawkirst has joined #ruby
ranchodev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sn0wb1rd has quit [Read error: Connection reset by peer]
claw has joined #ruby
maletor has joined #ruby
jonee has joined #ruby
enebo has quit [Quit: enebo]
maletor has quit [Client Quit]
jonee has quit [Client Quit]
s00pcan_ has quit [Remote host closed the connection]
Zamerick has quit [Read error: Connection reset by peer]
tjbiddle has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
rbennacer has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
iamvery has joined #ruby
bmurt has quit []
denisemccoy has joined #ruby
denisemccoy has quit [Read error: Connection reset by peer]
ruby216 has quit [Ping timeout: 246 seconds]
denisemccoy has joined #ruby
pecpec has joined #ruby
dawkirst has joined #ruby
s00pcan_ has joined #ruby
bmurt has joined #ruby
dawkirst has quit [Client Quit]
pecpec has quit [Ping timeout: 246 seconds]
saddad has joined #ruby
ebbflowgo has joined #ruby
<ebbflowgo> hi, I'm getting a type error and need help debugging it.. https://gist.github.com/ebbflowgo/f7eab9f24214b64b0059
<ebbflowgo> it breaks on the listener.sample
[k- has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
Rollabunna has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lrrr_ has joined #ruby
dfockler has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
<centrx> ebbflowgo, Seems like some problem with the twitter gem?
juanpablo____ has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 268 seconds]
<nofxx> ebbflowgo, give it a try w/o java? really need to run on jruby?
<nofxx> and file a bug on jruby tcpsocket
<ebbflowgo> centrx: not sure yet
RobertBirnie has joined #ruby
theery has joined #ruby
<ebbflowgo> nofxx: yeah this time going to use jruby and will do if I can't find a fix
iamvery has quit [Remote host closed the connection]
<shevy> long live ruby \o/
juanpablo____ has quit [Ping timeout: 252 seconds]
brunops has quit [Ping timeout: 240 seconds]
justin_pdx has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang104 has joined #ruby
Azure has joined #ruby
zenguy_pc has quit [Ping timeout: 256 seconds]
psy_ has quit [Ping timeout: 256 seconds]
zenguy_pc has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
shadoi has quit [Quit: Leaving.]
iandeejay has left #ruby [#ruby]
michael_mbp has quit [Excess Flood]
opensource_ninja has quit [Ping timeout: 268 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
amystephen has quit [Quit: amystephen]
michael_mbp has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
theery has quit [Remote host closed the connection]
nofxx has joined #ruby
barhum2013 has quit [Quit: barhum2013]
devoldmx has joined #ruby
RobertBirnie has quit [Ping timeout: 240 seconds]
darkf has joined #ruby
weemsledeux has joined #ruby
weemsledeux has quit [Client Quit]
RobertBirnie has joined #ruby
xcesariox has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
iamvery has joined #ruby
moeabdol has joined #ruby
poli has quit [Ping timeout: 240 seconds]
denisemccoy has quit [Remote host closed the connection]
weemsledeux has joined #ruby
oniMaker has joined #ruby
<oniMaker> This isn't working as I expect:
<oniMaker> map_hosts = lambda { |(_name, site)| site['site_hosts'] }
<oniMaker> _x, *child_aliases = child_sites.flat_map &map_hosts
<sevenseacat> i hate when that happens.
<oniMaker> _x becomes the first entry in child_sites, instead of just the key, which I'd like
<oniMaker> i.e. child_aliases should contain every entry
<oniMaker> sevenseacat: what's the issue?
haraoka has quit [Ping timeout: 244 seconds]
<sevenseacat> beats me.
theery has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 264 seconds]
<oniMaker> ah right, those who speak don't know
moeabdol has quit [Ping timeout: 246 seconds]
<oniMaker> forgot
nofxx has joined #ruby
rubie has joined #ruby
northfurr has quit [Quit: northfurr]
<sevenseacat> you posted a bunch of code and said 'it doesnt do what i expect'. what else is anyone supposed to say?
<oniMaker> well, someone familiar with ruby should be able to spot the mistake
<sevenseacat> not when we didnt know what you expected it to do
<oniMaker> which I explained
<sevenseacat> after I said what I said
<oniMaker> I guess you are too impatient
<sevenseacat> I guess you're too slow :P
gener1c_ has quit [Read error: Connection reset by peer]
devn_ is now known as devn
<oniMaker> you don't know the answer, so you're pretty slow too :P
* sevenseacat raises eyebrow
gener1c has joined #ruby
jonr2219 has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
theery has quit [Remote host closed the connection]
claw has quit [Ping timeout: 264 seconds]
<shevy> a cat with eyebrows!
rubie has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
claw has joined #ruby
ranchodev has joined #ruby
braincrash has quit [Quit: bye bye]
ruby-lang104 has quit [Ping timeout: 246 seconds]
<Aeyrix> Glad I reattached to this channel today.
duoi has quit [Max SendQ exceeded]
<oniMaker> ok, fixed it
<oniMaker> looks like I'm not the slow one after all
<Aeyrix> Glad you're familiar with ruby.
<Aeyrix> :^)
<oniMaker> heh, now I am
Lrrr_ has quit [Quit: Leaving]
<Aeyrix> Have you written a book yet?
saddad has joined #ruby
duoi has joined #ruby
<oniMaker> Have you?
<Aeyrix> Yes.
<oniMaker> Is it any good?
<Aeyrix> Probably not.
zenguy_pc has quit [Read error: Connection reset by peer]
<oniMaker> Don't give up.
<Aeyrix> Thanks fam.
<oniMaker> yw bro
GPrime has joined #ruby
<sevenseacat> everyone can put their claws away now.
zenguy_pc has joined #ruby
duoi has quit [Excess Flood]
duoi has joined #ruby
havenwood has joined #ruby
<oniMaker> You first kitty.
jonr2219 has quit [Remote host closed the connection]
tjbiddle has joined #ruby
braincrash has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
baweaver has joined #ruby
pecpec has joined #ruby
<shevy> writing a book takes a lot of resources... especially if you have to gather preliminary data
ekain has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has quit [Remote host closed the connection]
<Aeyrix> Anyone familiar with book writing should be able to do that quickly
oo_ has joined #ruby
aaeron has quit [Quit: Leaving.]
<shevy> you wrote books?
<Aeyrix> I have written *a* book, yes.
<Aeyrix> Not on Ruby.
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
theery has joined #ruby
zlogan has joined #ruby
* baweaver raises eyebrow
pecpec has quit [Ping timeout: 250 seconds]
JamesDH has joined #ruby
* havenwood shaves eyebrows
* Aeyrix leaves his eyebrows where they are.
<Aeyrix> I have nice eyebrows allegedly.
<havenwood> mm, now i regret that - see, don't shave your eyebrows
krz has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
bmurt has quit []
j4cknewt has joined #ruby
<shevy> man without eyebrows
zlogan has quit [Ping timeout: 255 seconds]
dopie has joined #ruby
<havenwood> the walls have ears, and they've been telling me things
arescorpio has quit [Quit: Leaving.]
<[k-> my brain has neurons, they've been telling me things that are wrong
* havenwood glares at those not being nice
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<havenwood> [k-: Aye, mine are known to do that too. Hard to ignore it too, your own brain and all.
<shevy> it's a big nuisance
<[k-> ?rimshot
fostertheweb has joined #ruby
theery has quit [Remote host closed the connection]
dopieee has joined #ruby
* baweaver polishes hammer
workmad3 has joined #ruby
jonr2219 has joined #ruby
djbkd has joined #ruby
krz has quit [Quit: WeeChat 1.2]
krz has joined #ruby
dopie has quit [Ping timeout: 268 seconds]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> there should be only one way in python: https://www.python.org/dev/peps/pep-0498/
solocshaw has quit [Remote host closed the connection]
<shevy> "Python supports multiple ways to format text strings. [...] This PEP proposed to add a new string formatting mechanism"
<Aeyrix> xkcd standards
solocshaw has joined #ruby
<shevy> it embraces ruby philosophy finally!
<havenwood> Eek, been a while apparently since I've looked at the bug tracker...
<havenwood> >> [20, 32, 32, 21, 30, 25, 29, 13, 14].min 2
krz has quit [Client Quit]
<ruboto> havenwood # => [13, 20] (https://eval.in/430306)
verdoc has quit [Remote host closed the connection]
<Aeyrix> :^)
<havenwood> 14!
<oniMaker> having only one way to do something is the dumbest idea
theery has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
<shevy> 15!!! ^^^
<havenwood> oniMaker: there is more than one way to do it
krz has joined #ruby
<havenwood> shevy: [13, 14]
<oniMaker> havenwood: not if you're a pythonista
<havenwood> oniMaker: I'm not.
j4cknewt has joined #ruby
nullwarp has quit [Ping timeout: 246 seconds]
mjmac has quit [Ping timeout: 246 seconds]
krz has quit [Client Quit]
towski_ has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
linc01n has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
<havenwood> Though that's another way to do it.
<shevy> f'input={value:#0.6x}'
<shevy> it may be my untrained eye but I find python code sorta strange
djbkd has quit [Ping timeout: 265 seconds]
<baweaver> depends on what you want to do oniMaker
sfr^ has quit [Ping timeout: 244 seconds]
universa1 has quit [Ping timeout: 244 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> when you want to wrangle a bunch of juniors with strong opinions, Python is worth a look.
verdoc has joined #ruby
pawnbox has joined #ruby
<havenwood> shevy: your and my 14 were apropos
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> shevy: it's your untrained eye
<shevy> :(
mjmac has joined #ruby
towski_ has quit [Remote host closed the connection]
zenguy_pc has quit [Read error: Connection reset by peer]
<oniMaker> baweaver: I want to skin a cat. How many ways are there?
<baweaver> treading on awfully thin ice there.
<havenwood> oniMaker: Zero. We don't do that.
<Aeyrix> 1. Skin the cat.
<havenwood> oniMaker: What kind of monster are you?
ebbflowgo has quit [Read error: Connection reset by peer]
<Aeyrix> So, one.
<oniMaker> havenwood: do you eat meat?
Igorshp has joined #ruby
<baweaver> !mute oniMaker
maletor has joined #ruby
ebbflowgo has joined #ruby
<baweaver> nope
ebbflowgo has left #ruby [#ruby]
zenguy_pc has joined #ruby
<shevy> it's hammering time for beavers \o/
<[k-> appalling :(
nullwarp has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
<Aeyrix> shevy: wew lad
Igorshp has quit [Ping timeout: 265 seconds]
justin_pdx has quit [Quit: justin_pdx]
fedexo has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
oniMaker has left #ruby [#ruby]
pontiki has joined #ruby
<pontiki> hi
<baweaver> alo'
segmond has joined #ruby
gix has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr2219 has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
sfr^ has joined #ruby
linc01n has joined #ruby
universa1 has joined #ruby
gix has joined #ruby
lokulin has quit [Ping timeout: 246 seconds]
casadei_ has quit [Remote host closed the connection]
banjara has joined #ruby
j4cknewt has quit [Remote host closed the connection]
krz has joined #ruby
fgo has joined #ruby
<havenwood> "Sort of. Maybe. It depends."
moeabdol has joined #ruby
<havenwood> And it'd be a nice thing for Ruby precompiled binaries.
opensource_ninja has joined #ruby
fedexo has quit [Ping timeout: 244 seconds]
duoi has quit [Ping timeout: 246 seconds]
<havenwood> Or a waste of time. Maybe we should focus on just getting the basics done properly.
jonr22 has quit [Remote host closed the connection]
duoi has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
<pontiki> meanwhile, we dance
moeabdol has quit [Ping timeout: 255 seconds]
<shevy> havenwood sounds like an introduction to haskell
buttholio2099 has left #ruby ["Leaving"]
lokulin has joined #ruby
<shevy> hmm
<shevy> isn't the major point of reproducible builds that it'll be guaranteed to be the same all across the board, sort of what NixOS does with their hashed directories?
pawnbox has quit [Remote host closed the connection]
<havenwood> shevy: I promise not do anything untoward with binaries I compile. It wouldn't take all that much to make them reproducible.
<havenwood> If a dependency on say TravisCI was allowed as part of reproducibility. :P
<havenwood> Nice to be able to give reproduction steps with checksums to confirm. I like that.
aaeron has joined #ruby
pawnbox has joined #ruby
<Ox0dea> ScriptGeek: Still about?
nahtnam has joined #ruby
<ScriptGeek> Ox0dea: I think so, lemme check
casadei_ has joined #ruby
<Ox0dea> ScriptGeek: Ha?
<ScriptGeek> oh, there I am. Yeah, I'm still here
<Ox0dea> Okay, good.
<ScriptGeek> what's up?
<Ox0dea> ScriptGeek: I think there might be some clever way to stick your String in a Proc in order to delay its evaluation and have these sorts of "magic strings" you're after.
<havenwood> shevy: Yeah, I guess that's a logical step.
roxtrong_ has quit [Remote host closed the connection]
<havenwood> Magical Strings? :O What'd I miss?
<ScriptGeek> Ox0dea: That would be cool, but I did find another solution for my predicament
<Ox0dea> havenwood: "the magic goes #{here}"
<Ox0dea> How to make `here` "dynamic"?
<Ox0dea> It's probably not feasible now that I actually think on it.
<ScriptGeek> #{string} didn't work
<Ox0dea> You could alias #to_s to #call or some such, but that'll still eagerly evaluate and "cement" the String.
<ScriptGeek> Another solution is to use a lambda that puts together the string on demand
<ScriptGeek> I need to pass the string in as a parameter, but the string has to be dynamic so it references live data
rubie has joined #ruby
pecpec has joined #ruby
<Ox0dea> >> loc = 'foo'; s = "you are here: #{loc}"; loc.replace 'bar'; s # ScriptGeek
<ruboto> Ox0dea # => "you are here: foo" (https://eval.in/430307)
<Ox0dea> If that doesn't do it, nothing will. :/
<Ox0dea> And, yeah, the delayed evaluation approach is a no-go without crazy hackery.
juanpablo____ has joined #ruby
jenrzzz has joined #ruby
Eiam_ has joined #ruby
<Ox0dea> ScriptGeek: Are you doing lots of these magic strings?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<ScriptGeek> 36 of them, so yeah, I guess so
<Ox0dea> ScriptGeek: You might consider using a template engine?
<ScriptGeek> I think going to replace those strings with lambdas
pecpec has quit [Ping timeout: 244 seconds]
<ScriptGeek> this is a menu system that I created
bronson has joined #ruby
<ScriptGeek> it's all test based
juanpablo____ has quit [Ping timeout: 260 seconds]
tejasmanohar has joined #ruby
<ScriptGeek> the situation in question is to modify the method that adds menu options which execute after a key press
sevenseacat has joined #ruby
<ScriptGeek> and before the option executes a custom validation check occurs to determine if the option should be executed
<ScriptGeek> that check is just a lambda that evaluates true or false
khebbie has joined #ruby
<ScriptGeek> if it evaluates false then it fails and should display a message, which is where my magic strings would be
khebbie has quit [Remote host closed the connection]
<ScriptGeek> but I could just make it use lambdas instead of strings
Rollabunna has joined #ruby
<[k-> lambdas are more expensive than strings
bronson has quit [Ping timeout: 268 seconds]
erts has joined #ruby
devoldmx has joined #ruby
<ScriptGeek> it's all good, it's just a text based video game
CloCkWeRX has left #ruby [#ruby]
Rollabunna has quit [Ping timeout: 246 seconds]
erts has quit [Quit: erts]
devoldmx_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
oo_ has quit [Remote host closed the connection]
barhum2013 has joined #ruby
GPrime has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Excess Flood]
cantaberry has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
barhum2013 has quit [Client Quit]
s00pcan_ has joined #ruby
oo_ has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
michael_mbp has joined #ruby
nofxx has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
barhum2013 has joined #ruby
roxtrongo has joined #ruby
lokulin has quit [Ping timeout: 255 seconds]
tejasmanohar has quit [Quit: tejasmanohar]
tjbiddle_ has joined #ruby
fostertheweb has joined #ruby
Igorshp has joined #ruby
mary5030 has joined #ruby
tjbiddle has quit [Ping timeout: 265 seconds]
tjbiddle_ is now known as tjbiddle
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
yfeldblum has quit [Ping timeout: 246 seconds]
lokulin has joined #ruby
Igorshp has quit [Ping timeout: 268 seconds]
fedexo has joined #ruby
chills42 has quit [Remote host closed the connection]
Eiam_ has joined #ruby
aaeron has quit [Quit: Leaving.]
arooni has quit [Ping timeout: 246 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
opensource_ninja has quit [Quit: opensource_ninja]
<shevy> \o/
iamvery has quit [Remote host closed the connection]
<Ox0dea> >> require 'objspace'; ['', ->{}].map(&ObjectSpace.method(:memsize_of))
<ruboto> Ox0dea # => [20, 52] (https://eval.in/430319)
Kellin has quit [Ping timeout: 240 seconds]
<Ox0dea> I get 40/80 on x86_64.
clarkenciel has quit [Quit: Leaving]
<Ox0dea> Wonder what that's about.
CloCkWeRX has joined #ruby
<Ox0dea> ScriptGeek: So is it that you're worried about creating too many Strings? Why not just print the error message when and as appropriate?
NeverDie has quit [Quit: http://radiux.io/]
nhhagen has joined #ruby
fgo has joined #ruby
yfeldblum has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Oka has quit [Quit: o/]
<havenwood> => [40, 104]
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
moeabdol has joined #ruby
<Ox0dea> Really?
<Ox0dea> ScriptGeek: https://eval.in/430325
<Ox0dea> But don't actually do that, obviously.
xcesariox has joined #ruby
<havenwood> heh, on FreeBSD: => [0, 72]
JohnBat26 has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> clearly this shows i am right
swills has quit [Read error: Connection reset by peer]
nhhagen has quit [Ping timeout: 256 seconds]
swills has joined #ruby
<Ox0dea> >> ObjectSpace.each_object(Class).select { |c| c.respond_to?(:new) }.max_by(&ObjectSpace.method(:memsize_of))
<ruboto> Ox0dea # => undefined method `memsize_of' for class `Module' (NameError) ...check link for more (https://eval.in/430328)
<Aeyrix> when :basement then 'on 4chan'
<Ox0dea> >> require 'objspace'; ObjectSpace.each_object(Class).select { |c| c.respond_to?(:new) }.max_by(&ObjectSpace.method(:memsize_of))
rubie has quit [Remote host closed the connection]
<ruboto> Ox0dea # => Gem::Specification (https://eval.in/430329)
<ScriptGeek> Ox0dea: that's funny hahaha
claw has quit [Read error: Connection reset by peer]
banjara has quit [Ping timeout: 246 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
acke has joined #ruby
freerobby has quit [Quit: Leaving.]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
saddad has quit [Ping timeout: 240 seconds]
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
j4cknewt has joined #ruby
banjara has joined #ruby
acke has quit [Ping timeout: 246 seconds]
davedev24 has quit []
barhum2013 has quit [Quit: barhum2013]
mary5030 has quit [Remote host closed the connection]
j4cknewt has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
fxn has joined #ruby
veg has quit [Read error: Connection reset by peer]
zlogan has joined #ruby
veg has joined #ruby
AustinMatherne has quit [Remote host closed the connection]
<ScriptGeek> well, it was tedious with that many changes, but it works now
psy_ has joined #ruby
chipotle has joined #ruby
AustinMatherne has joined #ruby
aaeron has joined #ruby
pyon has quit [Quit: F...ix you, Emacs!]
mary5030 has quit [Ping timeout: 250 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
pyon has joined #ruby
mary5030 has joined #ruby
riotjones has joined #ruby
pecpec has joined #ruby
s00pcan has quit [Remote host closed the connection]
workmad3 has joined #ruby
s00pcan has joined #ruby
mordocai has quit [Remote host closed the connection]
claw has joined #ruby
dhjondoh has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pecpec has quit [Ping timeout: 246 seconds]
dhjondoh has quit [Client Quit]
riotjones has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
dopieee has quit [Quit: This computer has gone to sleep]
tjbiddle has quit [Quit: tjbiddle]
devoldmx_ has quit [Remote host closed the connection]
barhum2013 has joined #ruby
jas02 has joined #ruby
barhum2013 has quit [Client Quit]
warreng has quit [Ping timeout: 252 seconds]
swgillespie has joined #ruby
acke has joined #ruby
<shevy> code code code
headius has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
swgillespie has quit [Client Quit]
JohnBat26 has joined #ruby
chipotle has quit [Quit: cheerio]
rubie has joined #ruby
oo_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
oo_ has joined #ruby
mary5030 has joined #ruby
warreng has joined #ruby
khebbie has joined #ruby
codecop has joined #ruby
headius has joined #ruby
tagrudev has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
RobertBirnie has joined #ruby
codenapper has joined #ruby
DeweyD has joined #ruby
aganov has joined #ruby
swgillespie has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
khebbie has quit [Remote host closed the connection]
Igorshp has joined #ruby
jackjackdripper has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Client Quit]
moeabdol has joined #ruby
postmodern has quit [Quit: Leaving]
dhjondoh has joined #ruby
acke has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has quit [Ping timeout: 260 seconds]
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
Rutix has joined #ruby
Rutix has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
shinnya has joined #ruby
DeweyD has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
DeweyD has joined #ruby
DeweyD has quit [Client Quit]
rubie has quit [Remote host closed the connection]
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
dhruvasagar has joined #ruby
mhenrixon_afk is now known as mhenrixon
nhhagen has joined #ruby
n008f4g_ has joined #ruby
zlogan has quit [Quit: Verlassend]
KensoDev has joined #ruby
KensoDev has quit [Client Quit]
TomyLobo has joined #ruby
aaeron has quit [Quit: Leaving.]
zlogan has joined #ruby
nhhagen has quit [Ping timeout: 256 seconds]
ta has quit [Remote host closed the connection]
VeryBewitching has quit [Quit: Konversation terminated!]
jonr22 has joined #ruby
oldbay has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
ht__ has joined #ruby
wildlander has joined #ruby
juanpablo____ has joined #ruby
kiki_lamb has quit [Ping timeout: 252 seconds]
badfish129 has joined #ruby
oldbay has quit [Ping timeout: 246 seconds]
jonr22 has quit [Ping timeout: 244 seconds]
kiki_lamb has joined #ruby
eGGsha has joined #ruby
badfish129 has quit [Client Quit]
s00pcan has joined #ruby
Macaveli has joined #ruby
ch0ke has quit [Read error: Connection reset by peer]
juanpablo____ has quit [Ping timeout: 268 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 250 seconds]
pecpec has joined #ruby
niemcu has joined #ruby
Mon_Ouie has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
skade has joined #ruby
riotjones has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
Alayde has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
pecpec has quit [Ping timeout: 272 seconds]
bluOxigen has joined #ruby
eightfold has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
Rollabunna has joined #ruby
mhenrixon is now known as mhenrixon_afk
andikr has joined #ruby
justin_pdx has joined #ruby
ascarter has quit [Ping timeout: 255 seconds]
khebbie has joined #ruby
blueOxigen has joined #ruby
solars has joined #ruby
firstdayonthejob has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
moeabdol has joined #ruby
astrobun_ has joined #ruby
acke has joined #ruby
krz has quit [Ping timeout: 240 seconds]
khebbie has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 268 seconds]
mooe has joined #ruby
<Ox0dea> Where else can you use :+ (without the ampersand) besides #reduce?
moeabdol has quit [Ping timeout: 268 seconds]
<majjoha> 0x0dea: You can also use it for #inject.
ohaibbq has joined #ruby
<Ox0dea> majjoha: I'm afraid I don't understand.
<apeiros> Ox0dea: afaik that's the only place
<sevenseacat> is inject not an alias of reduce?
<Ox0dea> apeiros: Any insight into why that should be?
<apeiros> majjoha: no surprise here, given that inject is an alias of reduce :)
psy_ has quit [Ping timeout: 240 seconds]
<Mon_Ouie> I think #reduce does it mostly because it did that before Symbol#to_proc was defined.
<Ox0dea> Mon_Ouie: Did it, really?
casadei_ has quit [Remote host closed the connection]
TomyLobo has quit [Ping timeout: 250 seconds]
CustosLimen has quit [Ping timeout: 250 seconds]
<apeiros> Ox0dea: not really. I guess it was enough of a common case with inject/reduce to justify the optimization
yardenbar has joined #ruby
<apeiros> and everywhere else the core team thinks you should use the explicit block
<apeiros> just a guess
last_staff has joined #ruby
<Mon_Ouie> I believe so. If you can find some place to evaluate with Ruby 1.8.6 you could check.
Igorshp has joined #ruby
CustosLimen has joined #ruby
<baweaver> On todays 'What the Function!?'...
<Ox0dea> 18>> RUBY_VERSION
<ruboto> Ox0dea # => "1.8.7" (https://eval.in/430359)
<Ox0dea> 18>> [1,2,3].reduce(:+)
<ruboto> Ox0dea # => 6 (https://eval.in/430361)
<Ox0dea> TIL.
<Mon_Ouie> Symbol#to_proc was added in 1.9 and backported to 1.8.7
theery has quit [Remote host closed the connection]
mary5030 has joined #ruby
<Ox0dea> apeiros: Aye, it's a very sensible optimization, so why not apply it wherever applicable?
<apeiros> as said, not really sure.
<Ox0dea> > insns.def (opt_send_simple): introduce new instruction used when no need to care about block and splat.
<Ox0dea> opt_send_simple has since become opt_send_without_block, but the point remains.
* baweaver really needs to read through Ruby's C code some time.
Igorshp has quit [Ping timeout: 264 seconds]
ruurd has joined #ruby
leat2 has quit [Ping timeout: 252 seconds]
Balzrael has joined #ruby
arup_r has joined #ruby
leat2 has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
JamesDH has joined #ruby
dopamean1 has joined #ruby
leat2 has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 272 seconds]
leat2 has joined #ruby
nhhagen has joined #ruby
greenarrow has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
UtkarshRay has joined #ruby
skade has joined #ruby
casadei_ has joined #ruby
amclain has quit [Quit: Leaving]
Steve_Jobs has quit [Ping timeout: 256 seconds]
lsmola has joined #ruby
workmad3 has joined #ruby
sevenseacat has quit [Quit: .]
AlphaAtom has joined #ruby
braincrash has quit [Ping timeout: 244 seconds]
Lrrr_ has joined #ruby
Lrrr_ is now known as yoloswag
yoloswag is now known as yoloswag469
ta has joined #ruby
yoloswag469 has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 246 seconds]
pecpec has joined #ruby
braincrash has joined #ruby
dopamean1 has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
irk has quit [Ping timeout: 255 seconds]
CustosLimen has quit [Read error: Connection timed out]
dopamean_ has joined #ruby
jonelf has joined #ruby
CustosLimen has joined #ruby
irk has joined #ruby
Iskarlar has joined #ruby
<majjoha> apeiros: Oh, yes, you're completely right. I forgot. :-)
lolmaus has joined #ruby
tjbiddle has joined #ruby
RTG` has joined #ruby
firstdayonthejob has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
tesuji has quit [Disconnected by services]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesuji has joined #ruby
niemcu has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
haraoka has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
axisys has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
tesuji is now known as Guest88254
Guest88254 has quit [Killed (leguin.freenode.net (Nickname regained by services))]
axisys has joined #ruby
ndrei has joined #ruby
konsolebox has joined #ruby
Spami has joined #ruby
ascarter has joined #ruby
leat3 has joined #ruby
roxtrongo has quit [Remote host closed the connection]
leat2 has quit [Ping timeout: 250 seconds]
tesuji_ has joined #ruby
tesuji_ has quit [Changing host]
tesuji_ has joined #ruby
eightfold has quit [Quit: eightfold]
moeabdol has quit [Ping timeout: 240 seconds]
dreinull75 has joined #ruby
pawnbox_ has joined #ruby
moeabdol has joined #ruby
tkuchiki has joined #ruby
leat3 has quit [Ping timeout: 268 seconds]
weemsledeux has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
casadei_ has quit [Remote host closed the connection]
moeabdol has quit [Client Quit]
zlogan85 has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
DoubleMalt has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
zlogan has quit [Ping timeout: 260 seconds]
gix has quit [Quit: Client exiting]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barhum2013 has joined #ruby
anisha has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Johnny_ has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
senayar has joined #ruby
juanpablo____ has joined #ruby
lipoqil has joined #ruby
Johnny__ has joined #ruby
JohnnyTao has joined #ruby
nhhagen has quit [Read error: No route to host]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JohnnyTao has quit [Client Quit]
Johnny_ has quit [Quit: Leaving]
Johnny__ has quit [Client Quit]
juanpablo____ has quit [Ping timeout: 265 seconds]
barhum2013 has quit [Quit: barhum2013]
nhhagen has joined #ruby
CustosLimen has quit [Ping timeout: 272 seconds]
JohnnyTao has joined #ruby
freezevee has joined #ruby
CustosLimen has joined #ruby
marr has joined #ruby
jenrzzz has joined #ruby
rdark has joined #ruby
c0m0 has joined #ruby
codecop has quit [Remote host closed the connection]
joonty has joined #ruby
nik0 is now known as niko
skade has quit [Quit: Computer has gone to sleep.]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
CustosLimen has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
mikecmpbll has joined #ruby
Iskarlar has joined #ruby
<Radar> What's a good Ruby project to start newbies off on?
<Radar> Not the koans.
moeabdol has joined #ruby
JohnnyTao has quit [Read error: Connection reset by peer]
OrbitalKitten has joined #ruby
gagrio_ has joined #ruby
gagrio_ is now known as gagrio|mtg
TheHodge has joined #ruby
JohnnyTao has joined #ruby
gagrio has quit [Ping timeout: 264 seconds]
justin_pdx has quit [Quit: justin_pdx]
skade has joined #ruby
naftilos76 has joined #ruby
<shevy> the classical one would be: "write an IRC bot in ruby"
<shevy> :D
jonelf has quit [Ping timeout: 246 seconds]
<shevy> but I think any local project that can automate creation of directories, files, removal of either, showing help options for the script etc... would be a good start. and project organization
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
michael_mbp has quit [Excess Flood]
meph has joined #ruby
michael_mbp has joined #ruby
<Radar> heh
pawnbox has joined #ruby
<yorickpeterse> morning
ohaibbq has quit [Quit: Leaving...]
<apeiros> write your own webframework is also popular I hear…
tvw has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Zai00 has joined #ruby
Hounddog has joined #ruby
<ljarvis> no wai
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
CustosL1men has joined #ruby
Rollabunna has joined #ruby
ascarter has joined #ruby
devoldmx has joined #ruby
<shevy> apeiros had one written in php
<apeiros> old story
exadeci has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
hal_9000__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
hal_9000 has quit [Ping timeout: 255 seconds]
hal_9000__ is now known as hal_9000
mrityunjay has joined #ruby
Steve_Jobs has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
ascarter has quit [Ping timeout: 240 seconds]
niemcu has joined #ruby
miguelff has joined #ruby
ascarter has joined #ruby
jgt1 has joined #ruby
roxtrongo has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
<Ox0dea> What all does instruction verification entail?
ghr has joined #ruby
<Ox0dea> It seems like all the necessary information is there in insns.def.
nym has quit [Quit: Connection closed for inactivity]
jgt1 has quit [Ping timeout: 252 seconds]
ascarter has quit [Ping timeout: 265 seconds]
roxtrongo has quit [Ping timeout: 272 seconds]
al2o3-cr has quit [Ping timeout: 244 seconds]
niemcu has quit [Ping timeout: 252 seconds]
<shevy> you are in pursuit of ko1
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has joined #ruby
arup_r has quit [Remote host closed the connection]
<yorickpeterse> you must first become oneness with Ruby
yfeldblum has quit [Ping timeout: 244 seconds]
pecpec has quit [Quit: Leaving...]
merlinp has joined #ruby
zeroDivisible has joined #ruby
mprelude has joined #ruby
j4cknewt has joined #ruby
irk has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
irk has joined #ruby
yfeldblum has joined #ruby
Igorshp has joined #ruby
pontiki has joined #ruby
ascarter has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niemcu has joined #ruby
jgt1 has joined #ruby
gagrio|mtg has quit [Ping timeout: 246 seconds]
devbug has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
ascarter has quit [Ping timeout: 240 seconds]
gagrio|mtg has joined #ruby
Zai00 has joined #ruby
drzel has quit [Quit: ZNC - http://znc.in]
ascarter has joined #ruby
unsymbol_ has quit [Quit: cheerio]
unsymbol has joined #ruby
Zai00 has quit [Client Quit]
skade has joined #ruby
jonr22 has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
platzhirsch has joined #ruby
dumdedum has joined #ruby
ascarter has quit [Max SendQ exceeded]
zeroDivisible has joined #ruby
ascarter has joined #ruby
arup_r has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
ascarter has quit [Ping timeout: 250 seconds]
ascarter has joined #ruby
OrbitalKitten has joined #ruby
Zai00 has quit [Quit: Zai00]
Gerak_ has joined #ruby
vmatiyko has joined #ruby
Zai00 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ascarter has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
astrobun_ has quit [Remote host closed the connection]
failshell has joined #ruby
krz has quit [Quit: WeeChat 1.2]
astrobun_ has joined #ruby
lacrymology has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
Ketchy has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
Gerak_ has left #ruby [#ruby]
failshell has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
yashinbasement has joined #ruby
Zai00 has quit [Quit: Zai00]
vmatiyko has quit [Quit: leaving]
charliesome has quit [Client Quit]
ScriptGeek has left #ruby [#ruby]
nofxx has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Remote host closed the connection]
sagittarian has joined #ruby
astrobun_ has joined #ruby
Zai00 has joined #ruby
roxtrongo has joined #ruby
levifig has quit [Ping timeout: 260 seconds]
levifig has joined #ruby
hyperdrive has quit [Ping timeout: 250 seconds]
unsymbol has quit [Quit: cheerio]
unsymbol has joined #ruby
zlogan85 has quit [Ping timeout: 255 seconds]
roxtrongo has quit [Ping timeout: 255 seconds]
Zai00 has quit [Quit: Zai00]
bigkevmcd has quit [Quit: Outta here...]
juanpablo____ has joined #ruby
Zai00 has joined #ruby
mrityunjay has quit [Ping timeout: 244 seconds]
mercerist has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
mrityunjay has joined #ruby
Macaveli has quit [Max SendQ exceeded]
barhum2013 has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
bigkevmcd has joined #ruby
juanpablo____ has quit [Ping timeout: 256 seconds]
Zai00 has quit [Client Quit]
jenrzzz has joined #ruby
zlogan85 has joined #ruby
Zai00 has joined #ruby
yashinbasement has quit [Quit: Leaving]
aswen has quit [Quit: WeeChat 1.3]
Zai00 has quit [Client Quit]
Unopoo has joined #ruby
PierreRambaud has joined #ruby
jlebrech has quit [Read error: Connection reset by peer]
ranchodev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
j4cknewt has quit [Remote host closed the connection]
Rurik has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
bkxd has joined #ruby
CloCkWeRX has left #ruby [#ruby]
Rurik has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doddok has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw1 is now known as solocshaw
bronson has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
dmolina has joined #ruby
j4cknewt has joined #ruby
Macaveli has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 246 seconds]
gagrio|mtg has quit [Ping timeout: 265 seconds]
Zai00 has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Quit: Outta here...]
Iskarlar has joined #ruby
_joes__ has quit [Ping timeout: 264 seconds]
gagrio|mtg has joined #ruby
Iskarlar has quit [Client Quit]
n008f4g_ has quit [Ping timeout: 246 seconds]
xcesariox has joined #ruby
stamina has joined #ruby
bigkevmcd has joined #ruby
Iskarlar has joined #ruby
yardenbar has quit [Ping timeout: 244 seconds]
AlexRussia has joined #ruby
xylotism has joined #ruby
Rickmasta has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
Zai00 has quit [Quit: Zai00]
xylotism has quit [Client Quit]
apt-get has joined #ruby
xylotism has joined #ruby
Zai00 has joined #ruby
lostinmalloc has joined #ruby
xylotism has quit [Client Quit]
xylotism has joined #ruby
merlinp has quit [Remote host closed the connection]
Porfa has joined #ruby
Rollabunna has joined #ruby
devoldmx has joined #ruby
<sagittarian> is there a set data structure built in in ruby?
<[k-> &ri Set
mercerist has quit [Ping timeout: 250 seconds]
<sagittarian> cool thanks
Zai00 has quit [Quit: Zai00]
David27 has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
devoldmx has quit [Ping timeout: 252 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
Macaveli has joined #ruby
OrbitalKitten has joined #ruby
bkxd_ has joined #ruby
Zai00 has quit [Client Quit]
bkxd has quit [Ping timeout: 246 seconds]
yardenbar has joined #ruby
robh71 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
zlogan85 has quit [Ping timeout: 250 seconds]
Lildirt|SomeoneT has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
shazaum_ has joined #ruby
Lildirt has joined #ruby
blueOxigen has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
Iskarlar has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> &ri BloomFilter
<`derpy> No results
Zai00 has joined #ruby
phutchins has joined #ruby
<sagittarian> is there a nice way to get (and maybe delete) an arbitrary element from a set?
<Ox0dea> Yes.
<sagittarian> and what would it be?
Zai00 has quit [Client Quit]
Rollabunna has joined #ruby
<Ox0dea> >> require 'set'; foo = Set.new([1,2,3]); foo -= [2]; foo
<ruboto> Ox0dea # => #<Set: {1, 3}> (https://eval.in/430496)
<sagittarian> that's if I have a specific element in mind
astrobun_ has joined #ruby
<Ox0dea> Or just Set#delete to modify the Set in-place.
<sagittarian> I just want to get some element, don't care which
<jhass> uh
<sagittarian> like python's set.pop
<sagittarian> and I'd prefer to not convert it to an array, if possible
<sagittarian> seems a waste
rodfersou has joined #ruby
mradmacher has joined #ruby
<Ox0dea> Huh?
astrobun_ has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<sagittarian> if the method were called pop it would work something like this:
<sagittarian> foo = Set.new([1,2,3])
<jhass> do you actually add duplicate elements to the set?
<sagittarian> foo.pop #=> 2
<sagittarian> I might, not sure
pontiki has quit [Quit: Lost terminal]
<jhass> might be easier to keep an array for now
<jhass> which is #pop and #sample
<jhass> *has
<jhass> (and #uniq)
<Ox0dea> >> foo = {1=>1, 2=>2, 3=>3}; [foo.delete(foo.keys.samepl), foo] # sagittarian
<ruboto> Ox0dea # => undefined method `samepl' for [1, 2, 3]:Array (NoMethodError) ...check link for more (https://eval.in/430497)
<sagittarian> I'm actually translating some python code to ruby and the python code uses a set, so I'd rather stick to the same algorithm
<Ox0dea> Grr.
<Ox0dea> >> foo = {1=>1, 2=>2, 3=>3}; [foo.delete(foo.keys.sample), foo] # sagittarian
<ruboto> Ox0dea # => [2, {1=>1, 3=>3}] (https://eval.in/430498)
<Ox0dea> In the event you actually do want a "set".
<sagittarian> okay I could fake it with a hash
<Ox0dea> sagittarian: You should probably endeavor to understand the code before translating it.
<sagittarian> but i need the set difference operation :-(
Rollabunna has quit [Ping timeout: 246 seconds]
<jhass> array provides most of them
<sagittarian> Ox0dea: i do endeavor to understand it
bmurt has joined #ruby
<Ox0dea> By translating it line-for-line?
<sagittarian> among other things, yes
Rollabunna has joined #ruby
<Ox0dea> Missed opportunity to use "inter alia".
<jhass> >> [[1, 2, 3] - [2, 3, 4], [1, 2, 3] ^ [2, 3, 4]]
<ruboto> jhass # => undefined method `^' for [1, 2, 3]:Array (NoMethodError) ...check link for more (https://eval.in/430499)
<sagittarian> i like english
shazaum_ has quit [Quit: This computer has gone to sleep]
<jhass> hrm, I always assume it has xor too :(
Rurik has quit [Read error: Connection reset by peer]
Hrorek has joined #ruby
<sagittarian> >> [1,2,3] - [2,3,4]
<ruboto> sagittarian # => [1] (https://eval.in/430502)
<Ox0dea> Vote for me?
<sagittarian> nice, maybe that's good enough
<sagittarian> >> [1,2,2,3] - [2,3,4]
<ruboto> sagittarian # => [1] (https://eval.in/430503)
bmurt has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhjondoh has quit [Quit: dhjondoh]
<Ox0dea> nobu pretty much rewrote (and, of course, improved) the whole thing, but that's just another reason for it to have gone in by now. :/
acke has quit [Quit: Leaving...]
allomov has joined #ruby
poli has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
allomov has quit [Read error: Connection reset by peer]
allomov has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
leat3 has joined #ruby
<[k-> vote for me, vote for change!
zlogan85 has joined #ruby
<[k-> empower your future!
mrityunjay has quit [Read error: Connection reset by peer]
* [k- cues music
greenarrow has quit [Quit: 500]
kamal2222ahmed has quit [Ping timeout: 246 seconds]
sevenseacat has joined #ruby
greenarrow has joined #ruby
mhenrixon_afk is now known as mhenrixon
tkuchiki has quit [Remote host closed the connection]
mhenrixon is now known as mhenrixon_afk
Rurik has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hrorek has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
meph has quit [Quit: Leaving.]
tvw has quit [Remote host closed the connection]
Iskarlar has joined #ruby
greenarrow has quit [Quit: 500]
tvw has joined #ruby
dhjondoh has joined #ruby
fgo has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ponga has joined #ruby
allcentury has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
greenarrow has joined #ruby
jgt1 has joined #ruby
northfurr has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
shinnya has quit [Ping timeout: 272 seconds]
JulioPapel has quit [Read error: Connection reset by peer]
syath has joined #ruby
athinggoingon has joined #ruby
platzhirsch has quit [Quit: Leaving.]
platzhirsch has joined #ruby
northfurr has quit [Quit: northfurr]
gagrio|mtg has quit [Ping timeout: 264 seconds]
d10n-work has joined #ruby
northfurr has joined #ruby
Macaveli has joined #ruby
failshell has quit [Ping timeout: 264 seconds]
northfurr_ has joined #ruby
jonr22 has joined #ruby
northfurr_ has quit [Client Quit]
pepperbreath1 has quit [Quit: Leaving.]
juanpablo____ has joined #ruby
mhenrixon_afk is now known as mhenrixon
ruurd has quit [Quit: ZZZzzz…]
pepperbreath has joined #ruby
Ox0dea has quit [Read error: No route to host]
Ox0dea has joined #ruby
pokmo has joined #ruby
<pokmo> hi
apt-get has quit [Ping timeout: 255 seconds]
<Ox0dea> Hello.
<pokmo> i'm very new to ruby. i've cloned a project from github and now trying to run 'bundle install'
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pokmo> but i get an error saying rbenv: version `ruby-2.1.0' is not installed i have ruby 2.2.3 on my system though
<pokmo> does anyone know why this might be happening?
<ljarvis> i reckon ruby 2.1 isn't installed
<Ox0dea> pokmo: Do you mind naming the project?
<pokmo> ljarvis: but is 2.2.3 not backward compatible?
zeroDivisible has quit [Ping timeout: 246 seconds]
<pokmo> Ox0dea: thingspeak https://github.com/iobridge/thingspeak
MeMeK has joined #ruby
<Ox0dea> pokmo: You should just be able to remove that .ruby-version file.
<Ox0dea> Or else modify it accordingly.
jonr22 has quit [Ping timeout: 265 seconds]
<pokmo> ah
<pokmo> i'll change it to 2.2.3?
<Ox0dea> Go for it.
<pokmo> looking good!
<Ox0dea> Excellent.
<pokmo> thanks
<Ox0dea> Sure thing.
<pokmo> i come from a python background. does ruby have something like python's virtualenv?
juanpablo____ has quit [Ping timeout: 246 seconds]
<Ox0dea> Gemsets, mostly.
<pokmo> i see
jenrzzz has joined #ruby
dhjondoh has quit [Remote host closed the connection]
<Ox0dea> And version managers, of course, if that's something virtualenv does.
<pokmo> does bundle install need to be run after each modification made to the source?
<Ox0dea> No.
mhenrixon is now known as mhenrixon_afk
<pokmo> good. because it's taking a long time :)
roxtrongo has joined #ruby
<Ox0dea> Well, thingspeak has quite a lot of dependencies.
northfurr_ has joined #ruby
pontiki has joined #ruby
<atmosx> I have this: a = 1.upto(4).to_a ... but then I want to prin tthis like 1 2 3 4 ... not 1, 2, 3... any ideas?
<pokmo> Ox0dea: indeed. but how do you tell?
banister has joined #ruby
<Ox0dea> pokmo: Look at its Gemfile.
<atmosx> ah .join
<ljarvis> atmosx: .join
<pokmo> ah
<atmosx> ljarvis: yeah ty
<pokmo> thanks
Asher has quit [Quit: Leaving.]
but3k4 has joined #ruby
<pontiki> hi
platzhirsch has quit [Quit: Leaving.]
ldnunes has joined #ruby
Asher has joined #ruby
<pokmo> hmm when i run bundle install, it tries to install eventmachine 1.0.3, but it isn't specified in Gemfile
platzhirsch has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<pokmo> is there a way to find out what depends on it?
<atmosx> as always, the problem is more complex than it appears to be. Hm.
<Ox0dea> pokmo: That's a dependency specified by some other dependency.
atzorvas has joined #ruby
sevenseacat has quit [Quit: .]
danieli has joined #ruby
<atmosx> bbl
<pontiki> you can look in Gemfile.lock
gagrio|mtg has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
<Ox0dea> atmosx: What's complex about #join?
<atmosx> Ox0dea: not about join, but about the my situation. I'm displaying some... you know what :-P I'd rather eat first and discuss it later. hehe brb.
morenoh149 has joined #ruby
dgutierrez1287 has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has joined #ruby
<pokmo> this is my Gemfile.lock does anyone know which package depends on eventmachine (1.0.3)?
<pokmo> because i'm on osx 10.10 and apparently i need 1.0.4 instead
joonty has quit [Quit: joonty]
yfeldblum has quit [Ping timeout: 240 seconds]
<pokmo> 1.0.4 has 2.2 compatibility and 1.0.3 doesn't
danieli has quit [Read error: Connection reset by peer]
morenoh149 has quit [Ping timeout: 252 seconds]
zlogan85 has quit [Ping timeout: 246 seconds]
<pontiki> when you say "this", i'm not sure what you mean, pokmo
<pokmo> oh sorry
MeMeK has left #ruby [#ruby]
<pokmo> forgot to paste: http://pastebin.com/Z67uTuNj
<ruboto> pokmo, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/66aed2f83a9a896d8fe1
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
xylotism has quit [Read error: Connection reset by peer]
<pontiki> if you see the number of times eventmachine is listed under another package, you can tell which need it, and follow the chain back up to the top
allcentury has quit [Ping timeout: 264 seconds]
xylotism has joined #ruby
<pontiki> so it looks like tweetstream
<pokmo> pontiki: so it's ZenTest 4.5. i wonder if there's a way to force it to take eventmachine 1.0.4?
<pokmo> oh is it?
dionysus69 has joined #ruby
<pokmo> pontiki: eventmachine (1.0.3) is under ZenTest (~> 4.5) isn't it?
<pontiki> not that i'm seeing...
zlogan85 has joined #ruby
sepp2k has joined #ruby
<pontiki> i don't see anything listed under ZenTest: https://gist.github.com/anonymous/66aed2f83a9a896d8fe1#file-ruby-rb-L36
<pokmo> pontiki: hmm i'm getting different indentation https://gist.github.com/anonymous/66aed2f83a9a896d8fe1#file-ruby-rb-L77
Kallis has joined #ruby
Porfa has quit [Quit: Porfa]
<pontiki> autotest-rails is dependent on ZenTest
Kallis has quit [Max SendQ exceeded]
dionysus69 has quit [Client Quit]
northfurr_ has quit [Quit: northfurr_]
Kallis has joined #ruby
modern has quit []
<pokmo> pontiki: so eventmachine 1.0.3 is here https://gist.github.com/anonymous/66aed2f83a9a896d8fe1#file-ruby-rb-L133 how do you tell it's tweetstream that needs it?
ayonkhan has joined #ruby
ruurd has joined #ruby
<pontiki> so eventmachine as a dependency is listed on lines 122 for em-http-request, 125 for em-socksify, and 128 for em-twitter
zlogan85 has quit [Ping timeout: 244 seconds]
Porfa has joined #ruby
<pontiki> so you look at what uses em-http-request, em-socksify and em-twitter
northfurr has quit [Quit: northfurr]
<Ox0dea> pontiki: I think it's probably just ZenTest's capitalization that's got you confused here.
<Ox0dea> >> 'Z' < 'a'
<ruboto> Ox0dea # => true (https://eval.in/430550)
<Ox0dea> pontiki: Sorry; that was for pokmo.
tagrudev has quit [Remote host closed the connection]
<pontiki> em-socksify is used by em-http-request, so that's easy. em-http-request and em-twitter are used by tweetstream
bmurt has joined #ruby
dhjondoh has joined #ruby
<pokmo> pontiki: right. but it decides to pick 1.0.3 to be installed rather than another version like 1.0.4 because it's the minimal satisfiable version, due to em-http-request's dependency on >=1.0.3?
<pontiki> yes
tagrudev has joined #ruby
ruby[bot] has joined #ruby
<pokmo> right
<pontiki> you can put eventmachine in your Gemfile with the dependency you require
<pokmo> Ox0dea: yeah, funny i see different indentation though
<pokmo> pontiki: right. i'll try that
<pokmo> i ran bundle update eventmachine
<pokmo> and that seem to have done the trick :\
<pokmo> but i'll add to Gemfile like you suggested
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat3 has quit [Remote host closed the connection]
hoey has quit [Quit: Connection closed for inactivity]
leat3 has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<pokmo> pontiki: i saw 'specs:' and 'Zentest (~> 4.5)' being on the same level
<hays> if I want to create a scanner/parser (e.g. flex-bison) in ruby is there a gem I should be looking at?
tomaz_b has joined #ruby
Ox0dea has quit [Read error: No route to host]
<pokmo> which led me to believe 'eventmachine (1.0.3)' was under Zentest (~> 4.5)
<pokmo> i don't why it happened. probably the js mucked up
<pokmo> it's ok now though
Unopoo is now known as Guest93947
Guest93947 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
Unopoo1 has joined #ruby
yqt has joined #ruby
zlogan85 has joined #ruby
timonv has joined #ruby
rbennacer has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
ItSANgo_ has quit [Quit: Leaving...]
Macaveli has joined #ruby
Rurik has joined #ruby
<pokmo> thanks. now i can get started :)
dhjondoh has quit [Read error: Connection timed out]
dhjondoh has joined #ruby
leat3 has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 265 seconds]
<freezevee> I am trying to create a script to ping sweep my subnet https://gist.github.com/chrisvel/a049139836d058a2314a and executing it with ruby 2.2 in OSX
<freezevee> although it runs, the output is strange
UtkarshRay has quit [Ping timeout: 244 seconds]
tomaz_b has quit [Quit: Leaving]
fostertheweb has joined #ruby
devoldmx has joined #ruby
CloCkWeRX has joined #ruby
<freezevee> I feel like osx opens too many connections and then fails
<freezevee> by "Too many open files"
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<freezevee> can anyone please help ?
[k-_ has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
<yorickpeterse> open less files
joonty has joined #ruby
<yorickpeterse> You have 255 threads opening sockets
<yorickpeterse> So either use less threads, or increase the maximum amount of files you can open
<yorickpeterse> IIRC you can do that using uname, but I'm not 100% sure
Iskarlar has joined #ruby
Rickmasta has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
<freezevee> yorickpeterse: how can I open less threads ?
<freezevee> loop then in chunks of 10 for example ?
<freezevee> I don't think it's a good idea to increase the amount of files I can open ?
fgo has joined #ruby
<yorickpeterse> Simply start less threads
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<yorickpeterse> You can speed things up by not using ping but just by using Ruby's Socket library
<yorickpeterse> though you'd have to connect to a specific port
code1o6 has joined #ruby
Fire1o6 has joined #ruby
j4cknewt has quit [Remote host closed the connection]
atomical has joined #ruby
Oka has joined #ruby
failshell has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fostertheweb has joined #ruby
d0p has joined #ruby
<d0p> guys how do i install gem
<d0p> ?
<d0p> command line
<d0p> centos
zeroDivisible has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d0p has left #ruby ["WeeChat 1.3"]
lostinmalloc has quit [Quit: Page closed]
failshell has quit [Ping timeout: 244 seconds]
ItSANgo has joined #ruby
<greenarrow> sudo gem install foo?
fostertheweb has quit [Client Quit]
mhenrixon_afk is now known as mhenrixon
JulioPapel has joined #ruby
rushed has joined #ruby
ruby[bot] has quit [Ping timeout: 272 seconds]
dorei has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
segfalt has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
ukd1 has quit [Ping timeout: 250 seconds]
fostertheweb has joined #ruby
ukd1 has joined #ruby
Iskarlar has joined #ruby
last_staff has quit [Quit: last_staff]
CloCkWeRX has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
decoponio has joined #ruby
hays has quit [Quit: No Ping reply in 180 seconds.]
jonr22 has quit [Remote host closed the connection]
mooe has quit [Quit: Connection closed for inactivity]
Rutix has quit []
jonr22 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
tkuchiki has joined #ruby
ayonkhan has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
<Bish> hi guys, can somebody help me with understand how celluloid is usually used?
northfurr has joined #ruby
<Bish> im trying to understand a gem for the sake of learning.. it has a server and a connection class ( which than handles the stuff ) i understand how it works, but i have no clue how i would write an adapter for that
oo_ has joined #ruby
apt-get has joined #ruby
<Bish> https://github.com/abstractive/celluloid-smtp this is the gem im talking about
<Bish> issues says he has to add documentation for adding event functions :D
tkuchiki has quit [Remote host closed the connection]
<atmosx> freezevee: https://gist.github.com/atmosx/93ac2f32587dfc8a115d I'm on OSX too. I had no problems at all.
blackjid has quit [Max SendQ exceeded]
xylotism has quit [Read error: Connection reset by peer]
blackjid has joined #ruby
xylotism has joined #ruby
Gnomethrower has joined #ruby
niko has quit [Quit: leaving]
hays has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apt-get has quit [Read error: No route to host]
apt-get has joined #ruby
rbennacer has quit [Remote host closed the connection]
niko has joined #ruby
Porfa has quit [Quit: Porfa]
niko has quit [Client Quit]
enebo has joined #ruby
danieli has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
jalljo has quit [Ping timeout: 250 seconds]
niko has joined #ruby
Porfa has joined #ruby
otherj has joined #ruby
<freezevee> atmosx: but you use NetPing
victortyau has joined #ruby
<freezevee> atmosx: thanks for the code
otherj has quit [Max SendQ exceeded]
<freezevee> atmosx: I wanted to build something from scratch to see how command output works with ruby
zlogan85 has quit [Ping timeout: 264 seconds]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
lone_stranger has joined #ruby
I has joined #ruby
centrx has joined #ruby
I is now known as Guest3285
otherj has joined #ruby
vdamewood has quit [Quit: Life beckons.]
Porfa has quit [Client Quit]
otherj has quit [Max SendQ exceeded]
sankaber has joined #ruby
otherj has joined #ruby
lone_stranger has quit [Client Quit]
northfurr has quit [Quit: northfurr]
otherj has quit [Max SendQ exceeded]
Zai00 has joined #ruby
davispuh has joined #ruby
bkxd_ has quit [Ping timeout: 256 seconds]
otherj has joined #ruby
<freezevee> however, not limiting threads doesn't seem right to me
otherj has quit [Max SendQ exceeded]
zlogan85 has joined #ruby
otherj has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
otherj has quit [Max SendQ exceeded]
otherj has joined #ruby
davispuh has quit [Remote host closed the connection]
JamesDH has quit [Quit: Textual IRC Client: www.textualapp.com]
imperator has joined #ruby
JamesDH has joined #ruby
sgambino has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
xylotism has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
charliesome has quit [Client Quit]
<Bish> fuck me, this is making me nuts
<awk> what fucking yourself?
<Bish> not literally, but yeah
<Bish> cannot be so hard to use this gem
symbol has joined #ruby
davispuh has joined #ruby
naftilos76 has quit [Ping timeout: 272 seconds]
apt-get has quit [Read error: Connection reset by peer]
<Bish> if anyone could help me, i would be grateful
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apt-get has joined #ruby
dblessing has joined #ruby
JamesDH has quit [Quit: Textual IRC Client: www.textualapp.com]
JamesDH has joined #ruby
<awk> help you with what
newbie1 has joined #ruby
charliesome has joined #ruby
<Bish> telling me how this is supposed to be used: https://github.com/abstractive/celluloid-smtp
barhum2013 has quit [Quit: barhum2013]
griffindy has joined #ruby
<Bish> there is no documentation / im not ultra-familiar with celluloid, but i think it's awesome
<Bish> i don't know how and where to overwrite those event functions
fxn has quit [Quit: zZzZzZ...]
<shevy> that dude was too lazy to write docu
zlogan85 has quit [Ping timeout: 244 seconds]
<Bish> exactly
yqt has quit [Ping timeout: 240 seconds]
<awk> why do you want to use it
<Bish> well, obviously to receive mails
<Bish> or send, whatever
unsymbol has quit [Quit: cheerio]
<awk> lol
<awk> but why this one...
symbol has quit [Quit: WeeChat 1.1]
<Bish> it has celluloid, other stuff i use uses it, i like concurrency,rbx
unsymbol has joined #ruby
JamesDH has quit [Client Quit]
<Bish> it has been good so far, and i would love to learn usage of it, im also willing to contribute to this gem.. but i cannot find a start, this never happened to me when using a gem
devoldmx has joined #ruby
<Bish> i don't know if i have to create my own connection class, or server class or anything
pawnbox_ has joined #ruby
JamesDH has joined #ruby
fostertheweb has joined #ruby
<[k-_> there are examples in the repo
<awk> I would never use that, but good luck.. i'd go with postfix and use net/smtp
<Bish> yeah the examples don't use the code
<Bish> awk doesn't help you if u want to receive mails
pawnbox has quit [Ping timeout: 264 seconds]
whippythellama has joined #ruby
<Bish> the examples don't use the code, OR are very basic
kedibasi has joined #ruby
<awk> Bish: hence I said postfix + net/smtp
zeroDivisible has quit [Quit: WeeChat 1.3]
<awk> I wouldn't trust that as a MTA... someone will exploit it
devoldmx has quit [Ping timeout: 255 seconds]
kp666 has joined #ruby
<Bish> awk, you cannot receive emails with net/smtp, am i wrong about that?
JamesDH has quit [Client Quit]
<awk> Bish: "postfix" to recieve mails...
<awk> net/smtp to speak to the MTA
<awk> I wouldn't trust some dudes 'home made MTA'...
centrx has quit [Ping timeout: 250 seconds]
<Bish> well what's the worst that can happen:3 someone spams with your mailserver
juanpablo____ has joined #ruby
NeverDie has joined #ruby
<Bish> end of list, and none will put effort into that, there are easier ways to spam, don't you think so
JamesDH has joined #ruby
mradmacher has left #ruby [#ruby]
JamesDH has left #ruby [#ruby]
FernandoBasso has joined #ruby
<[k-_> it's probably not finished
<FernandoBasso> http://sprunge.us/iaPd?ruby Shouldn't this produce an error?
denisemccoy has joined #ruby
<Mon_Ouie> It does
<FernandoBasso> >> foo = 'try me'; def show_foo; puts foo; end
<ruboto> FernandoBasso # => :show_foo (https://eval.in/430594)
<Mon_Ouie> Well executing show_foo would
<FernandoBasso> Ah!
<FernandoBasso> Damn it.
<FernandoBasso> I missed that.
jonr2219 has joined #ruby
unsymbol has quit [Quit: cheerio]
juanpablo____ has quit [Ping timeout: 265 seconds]
<Bish> [k-, why should this code tell me it's not finished, and i am willing to invest into it
denisemccoy has quit [Remote host closed the connection]
<Bish> but maybe i will just use eventmachine, it has a smtp implementation afaik
zeroDivisible has joined #ruby
<FernandoBasso> Mon_Ouie: Thanks.
unsymbol has joined #ruby
ta has quit [Remote host closed the connection]
pontiki has quit [Quit: Lost terminal]
malconis has joined #ruby
andikr has quit [Remote host closed the connection]
redmaverick has joined #ruby
malconis has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
malconis has joined #ruby
Coldblackice has quit [Ping timeout: 246 seconds]
Guest49 has joined #ruby
dionysus69 has joined #ruby
<[k-_> Bish: Extensions basically does nothing except give you logging abilities and some constants
NeverDie has quit [Quit: http://radiux.io/]
charliesome has joined #ruby
polysics has joined #ruby
joonty has quit [Quit: joonty]
roxtrongo has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
athinggoingon has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Quit: dhjondoh]
timonv has quit [Ping timeout: 268 seconds]
rbennacer has joined #ruby
failshell has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
centrx has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
failshell has quit [Remote host closed the connection]
<Bish> awk, well i have to be able to receive all emails there are , how would you do that with not controlling 100% of your mta?
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
absolutejam has quit [Ping timeout: 252 seconds]
jespada has joined #ruby
Iskarlar has joined #ruby
joonty has joined #ruby
failshell has joined #ruby
absolutejam has joined #ruby
esauOp has joined #ruby
theery has joined #ruby
jobewan has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
NeverDie has joined #ruby
iamvery has joined #ruby
theery has quit [Ping timeout: 240 seconds]
morenoh149 has joined #ruby
oo_ has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melter has joined #ruby
OrbitalKitten has joined #ruby
theery has joined #ruby
morenoh149 has quit [Ping timeout: 250 seconds]
Alayde has joined #ruby
imperator has left #ruby ["Leaving"]
aaeron has joined #ruby
krz has joined #ruby
allcentury has joined #ruby
quazimodo has joined #ruby
<quazimodo> any celluloid::io experienced people in here?
redmaverick has quit [Remote host closed the connection]
* quazimodo is trying to learn
DCameronMauch has joined #ruby
<shevy> haha
<DCameronMauch> Does anyone know how to setup fiddle to call C function that takes an array of ints?
<shevy> quazimodo and Bish are on the celluloid run!
<DCameronMauch> the Google has failed me
<Bish> haha.
<Bish> quazimodo, im experienced in not getting experience about celluloid
husanu has joined #ruby
<quazimodo> I'm curious how things work in reel if each actor lives in a native thread, and each websocket connection is handled by an actor
<quazimodo> it becomes nigh impossible to have lots of open sockets, no?
aganov has quit [Remote host closed the connection]
husanu has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
zlogan85 has joined #ruby
mary5030 has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
iamvery has quit [Remote host closed the connection]
<quazimodo> Bish: know what i'm saying?
Igorshp has quit [Remote host closed the connection]
casadei_ has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
JamesDH has joined #ruby
dopamean_ has quit [Ping timeout: 256 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gnomethrower has quit [Read error: Connection reset by peer]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<livcd> hmm should i keep using join for readibility or is it common to just use * ?
<[k-_> use join.
<[k-_> curses. who taught you * anyway
blackjid has quit [Max SendQ exceeded]
JamesDH has quit [Client Quit]
<livcd> :D
chihhsin has quit [Read error: Connection reset by peer]
<FernandoBasso> I read somewhere that Yukihiro hates Lisp. Can someone confirm that statement is true?
blackjid has joined #ruby
<quazimodo> livcd: * and join? can you paste that code line?
<shevy> FernandoBasso nope
<Bish> quazimodo, why would it? i don't get what you mean, that is also true for native programs, isn't it?
<shevy> wouldn't make sense for emacs users anyway
pyoor has quit [Ping timeout: 246 seconds]
<livcd> quazimodo: h.map { |i| i * "=" } * "n"
<[k-_> >> [%w[a b c].join, %w[a b c] * ""]
<ruboto> [k-_ # => ["abc", "abc"] (https://eval.in/430613)
aaeron has quit [Quit: Leaving.]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theery has quit [Remote host closed the connection]
pyoor has joined #ruby
freezevee has quit [Remote host closed the connection]
xcesariox has joined #ruby
Dopagod has joined #ruby
Dopagod has joined #ruby
<quazimodo> Bish: well as far as I can see, having more than 1 native thread per core is not so great
<[k-_> >> [1 * "=", "m" * "1", %w[1 1 1] * "="]
<ruboto> [k-_ # => String can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/430614)
leat3 has joined #ruby
<[k-_> >> ["m" * "1", %w[1 1 1] * "="]
<ruboto> [k-_ # => no implicit conversion of String into Integer (TypeError) ...check link for more (https://eval.in/430615)
<FernandoBasso> shevy: I even find lots of lisp ideas in ruby.
<Bish> quazimodo, you're ahving more than 1 native thread per core on the very machine you're sitting on, do you notice it?
<shevy> yeah
<[k-_> well all three of them have *
<quazimodo> Bish: they are expensive and context switching happens at the kernel level... osx doesn't even let you have more that 2000 or so in a normal machine
<livcd> guys teach me some of your best tips/tricks in ruby :D
<shevy> the only language matz disliked was C++ and only because it was unproportionally more complex than the others; linus said something similar about C++ so perhaps it is true!
kent\n has quit [Ping timeout: 252 seconds]
<Bish> quazimodo, i don't know about osx, but that would problably be a reason to ditch it
<Bish> but what you are describing is not a ruby question... since that is true for every native thread
<quazimodo> native threads kinda suck for concurrency
<[k-_> Ox0dea can teach you more
<quazimodo> yeah
<quazimodo> i honestly thought celluloid actors would have lived on fibers
<Bish> well but threads imply concurrency
<yorickpeterse> "native threads kinda suck for concurrency" what?
<Bish> what you say is not entirely true
<livcd> [k-_: i hate you now :D
joonty has quit [Quit: joonty]
<shevy> poor [k-_
MrFjords has joined #ruby
<quazimodo> yorickpeterse: yeah they do
hinbody has joined #ruby
<Bish> let's say you have 80 threads.. each of these threads is a webserver, if one of those sends data it will be some milliseconds until the data is send / the answer arrives.. that is FUKIN YEAAAARS for a cpu
<yorickpeterse> Maybe if you spawn millions of them, but that's not what you should use threads for
<shevy> hah
<[k-_> ¯\_(ツ)_/¯
<quazimodo> yeah, agreed
Rickmasta has joined #ruby
<shevy> 80 versus millions!
<Bish> so the thread just goes to sleep until the answer arrives, and another thread is able to process the next job, which is just the name
jonr2219 has quit [Remote host closed the connection]
Guest3285 has quit [Quit: This computer has gone to sleep]
<quazimodo> so how does having 50000 open websockets work if each socket lives in an actor, which is backed by a native thread?
joonty has joined #ruby
<yorickpeterse> It doesn't
Igorshp has joined #ruby
<yorickpeterse> You'd have to use a thread pool for it
<yorickpeterse> I highly doubt fibers would scale much better tbh
otherj has quit [Ping timeout: 264 seconds]
moeabdol has joined #ruby
<yorickpeterse> Ruby isn't Erlang in that regard, sadly
<Bish> that's how our cpus work nowadays, it's that simple
<Bish> imho
<Bish> yorickpeterse, what does erlang do?
<quazimodo> Bish: i highly recommend you watch this
<[k-_> you've never heard of erlang?
<[k-_> :OOOOOOO
<Bish> ofc i heard of erlang, but i never used it, never heard about how it handles lot of Shit
<yorickpeterse> Erlang basically uses fibers
iamvery has joined #ruby
<yorickpeterse> but better implemented
juanpablo____ has joined #ruby
<quazimodo> Bish: 1 native thread per core, and the program itself handles it's own soft threads
danieli has quit [Ping timeout: 265 seconds]
<yorickpeterse> Though I believe you can still use native threads if you need them
yawniek has quit [Read error: Connection reset by peer]
<shevy> whenever I read Erlang, I think of distributed immortal objects that keep on ressing
leat3 has quit [Ping timeout: 246 seconds]
<quazimodo> 'soft threads' being like fibers
Iskarlar has joined #ruby
denisemccoy has joined #ruby
terlar has joined #ruby
<quazimodo> i think, going off this dude's analysis, even erlang wouldn't be able to easily do more than a few million open connections per machine
patrick_star has quit [Ping timeout: 256 seconds]
theery has joined #ruby
<Bish> quazimodo, that's cool and all in case of research but not common, doesn't help you, threads are great
bigbadbear has joined #ruby
<quazimodo> Bish: actually it's very practical
rubie has joined #ruby
<Bish> quazimodo, if you know about it so well, why asks fukin questions
<yorickpeterse> Keep it nice people
<Bish> just confused about this guy.
<Bish> im nice, promised
<shevy> do you like cats
<Bish> :3
moeabdol has quit [Ping timeout: 244 seconds]
<quazimodo> because i'm in the process of exploring the space and learning, I came in asking why tony backed each celluloid actor onto a native thread when we know that they arent so fantastic when you use more than a handful
<quazimodo> and the thing is
<quazimodo> it's relevant
<quazimodo> rails team was discussing switching out event machine for celluloid/reel
patrick_star has joined #ruby
<shevy> is that good?
theery has quit [Remote host closed the connection]
<quazimodo> well i can't understand how it works, Surely they know something i don't so i wanna learn
otherj has joined #ruby
Outlastsheep has joined #ruby
theery has joined #ruby
<shevy> I don't know either so I wanna learn too. Who here will teach us?
<quazimodo> you can't keep thousands and thousands of websockets open 1 per native thread
<yorickpeterse> IIRC the reason for Celluloid using 1 thread per actor is because they haven't had time to change it
<yorickpeterse> I recall reading up on them wanting to move to a thread pool based setup
chihhsin has joined #ruby
<quazimodo> yorickpeterse: so that makes a lot of sense
centrx has quit [Ping timeout: 268 seconds]
<quazimodo> our company builds a lot of start up company's platforms
<quazimodo> they don't need 5 million concurrent connections any time soon
<Bish> do you have aspergers? just curious.
<quazimodo> and if the do, VC funding'll come and hire the erlang/haskell/wizardry/voodoo programmers
<quazimodo> but... we may need 50000-100000 ?
<yorickpeterse> Bish: last warning, keep it nice
<DCameronMauch> Question: Does anyone know how to setup fiddle to call C function that takes an array of ints?
<quazimodo> Bish: nah you and I ar just diametrically opposed in how we learn maybe?
<yorickpeterse> No passive aggressive bullshit either
<Bish> yorickpeterse, insulting was not my intention there, just the way he writes
<quazimodo> Bish: why can't you be more tolerant of another persons communication style?
Guest3285 has joined #ruby
<yorickpeterse> Bish: you might want to read up on aspergers
<Bish> im tolerant, i was just curious, sorry, didn't want to insult
<Bish> yorickpeterse, no worries, i did
haraoka has quit [Ping timeout: 240 seconds]
<quazimodo> you didn't, but if i say what's actually on my mind they'll be on my case
<[k-_> please be mindful of how you phrase your sentences
kent\n has joined #ruby
Ox0dea has joined #ruby
<Bish> quazimodo, no really, sorry!
<livcd> i have adhd
<quazimodo> livcd: my housemate has that, 1 working eye which is color blind and the best abs you've ever seen
<Ox0dea> >> require 'fiddle'; Fiddle::TYPE_INTPTR_T # DCameronMauch
<ruboto> Ox0dea # => 4 (https://eval.in/430628)
<Ox0dea> That should do, no?
<[k-_> aha! we found Ox0dea!
<DCameronMauch> thanks!
<[k-_> livcd: Ox0dea: livcd: Ox0dea:
<quazimodo> yorickpeterse: ok i think this makes sense that they'd use a thread pool, i wonder when that's scheduled for. Surely it'll be in the works if rails moves to use reel for it's action cable socket controllers
<Ox0dea> [k-_: I didn't even realize I'd been lost.
<Ox0dea> Why am I being highlighted with livcd?
<[k-_> he has interests in Array#*
<[k-_> and wants to learn more secrets
<[k-_> ┌(・。・)┘ ♪ └(・。・)┐ ♪ ┌(・。・)┘
<[k-_> reveal them all!
<Ox0dea> ᕕ( ᐛ )ᕗ ᕕ( ᐛ )ᕗᕕ( ᐛ )ᕗ ᕕ( ᐛ )ᕗ
timonv has joined #ruby
<adaedra> great, another yorickpeterse
morenoh149 has joined #ruby
<Bish> quazimodo, i was really curious, but im sorry
<quazimodo> Bish: take it easy it's all good man
<Ox0dea> Bish: Are you projecting, mate?
<Bish> Ox0dea, pardon?
juanpablo____ has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
<Ox0dea> With which word(s) did you have trouble?
juanpablo____ has joined #ruby
<[k-_> paaaaaaarrrrrrrdooooooooooooon
<Bish> no words, just the way he acted, asking question about something he has already an opinion on
<adaedra> >_>
<Ox0dea> <_<
kedibasi has quit [Remote host closed the connection]
<livcd> Ox0dea: so what are the secrets
<[k-_> why can't he question something he has an opinion of?
* adaedra mirrors Ox0dea
* Ox0dea mirrors adaedra
<adaedra> !!!!!ooooooon
<Bish> .. well if the questin is about something you can only have opinions about.. it's weird to ask "what's better"
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Dammit. He broke the mirror.
* [k-_ mirrors #ruby srorrsim ybur#
<adaedra> ?!enod uoy evah tahw
fgo has quit [Quit: WeeChat 1.1.1]
<Ox0dea> adaedra: Your interrobang is backward.
<Ox0dea> Do excuse me if it turns out that's how the French do it. :P
<[k-_> it's a baterrogation
<Bish> i could go in here, ask why islam is better and then tell you why it is.. ( implying we're religious )
<livcd> i am getting confused
<[k-_> livcd: drink more water
<adaedra> o_O
Soda has joined #ruby
<shevy> Bish he just writes a lot, very quickly so - some people have quick fingers, look at [k-_ on the other hand, he can not type at all on his tiny smartphone ;-)
<Bish> anyways i g2g, this is getting to weird either way :D
<Ox0dea> livcd: Are you in search of "weird" Ruby?
morenoh149 has quit [Ping timeout: 264 seconds]
patrick_star has quit [Ping timeout: 246 seconds]
<livcd> Ox0dea: i am in search of the ninja skills
<[k-_> Ox0dea: fizzbuzz!
<shevy> class Ninja; end
<Ox0dea> I was only going to post Idiosyncratic Ruby.
<Ox0dea> Ninja = Class.new
<DCameronMauch> Ox0dea, what does the call look like? can't find an example...
<[k-_> livcd: number&1 vs number.even? / number.odd?
<Ox0dea> DCameronMauch: You're invoking Fiddle::Function.new, yes?
<[k-_> ?: vs if then
<DCameronMauch> also how do you direct a comment at a specific user in IRC
<DCameronMauch> yes
<Ox0dea> &ri Fiddle::Function
<[k-_> &: vs { |x| x. }
jas02 has quit [Quit: jas02]
<quazimodo> Bish: to be fair you didn't appear aware that native threads are absolutely not the right solution for implementing concurrency at a medium to large scale, which is rookie stuff. Maybe you were aware, but it didn't appear so to me
<[k-_> Ox0dea: tell us more!
pawnbox_ has quit [Remote host closed the connection]
<DCameronMauch> I saw the general call for fiddle, but when I am passing a type INTPTR_T?
<[k-_> livcd: Ox0dea made lollipop, a superator library
<Ox0dea> DCameronMauch: In the Array of argument types.
<DCameronMauch> I'm not following
pyoor has left #ruby [#ruby]
<DCameronMauch> compute = Fiddle::Function.new(golib['compute'], [Fiddle::TYPE_INTPTR_T], Fiddle::TYPE_INT)
kent\n has quit [Ping timeout: 246 seconds]
danieli has joined #ruby
<DCameronMauch> puts compute.call([1, 2, 3, 4, 5, 6])
<DCameronMauch> no workie
<Ox0dea> Did you ensure you've got a proper handle in `golib`?
<quazimodo> I wonder if the linux kernel's thread scheduler has been fiddled with much since 2013 to make native threads more viable for more simple/naive concurrent servers
<DCameronMauch> yes
centrx has joined #ruby
<Ox0dea> It looks correct. :/
<DCameronMauch> blah.rb:6:in `call': no implicit conversion of Array into Integer (TypeError)
dopamean_ has joined #ruby
<DCameronMauch> if I change the C call to take, say, 3 ints, and pass 3 ints, it works just fine
aaeron has joined #ruby
<DCameronMauch> but the array length will be unknown
<quazimodo> hrm they must have, having epoll
jgt1 has quit [Ping timeout: 246 seconds]
theRoUS has quit [Quit: Coyote finally caught me]
moeabdol has joined #ruby
danieli has quit [Read error: Connection reset by peer]
<Ox0dea> DCameronMauch: What happens if you use TYPE_VOIDP?
<DCameronMauch> haven't tried that
<DCameronMauch> blah.rb:4:in `[]': unknown symbol "compute" (Fiddle::DLError)
n008f4g_ has joined #ruby
<DCameronMauch> uh, not sure what happened there
jgt1 has joined #ruby
<Ox0dea> Essentially, dlopen() couldn't find a matching function.
<livcd> [k-_: which one is lollipop ?
<DCameronMauch> because of the type mismatch I assume?
<DCameronMauch> this is the first time I have seen this message
<Ox0dea> Almost certainly.
<Ox0dea> It does seem Fiddle can't hand off pointers to int. :/
<Ox0dea> What made you switch from FFI, if you don't mind my prying?
<DCameronMauch> is there a way to say "pointer to this array" instead of the array itself?
chipotle has quit [Quit: cheerio]
<DCameronMauch> in the call
dopamean_ has quit [Ping timeout: 244 seconds]
<Ox0dea> Try Fiddle::Pointer.new(array.object_id * 2).
leat3 has joined #ruby
<Ox0dea> (Don't ask. :P)
<[k-_> livcd: i have no idea where Ox0dea stowed it to
<Ox0dea> [k-_: The arbitrarily chained unary operators?
<DCameronMauch> got crap for using non-standard library gem
<[k-_> do you not call that lollipop?
<Ox0dea> Can't touch the filesystem, can't use third-party gems.
<DCameronMauch> yep, they are not making this easy
<Ox0dea> [k-_: Yes, I called it Lolliops.
kent\n has joined #ruby
<DCameronMauch> getting ready to abandon this line of thought
<Ox0dea> A contraction of "lol-inducing operators", more or less.
<Ox0dea> *Lollipops
havenwood has joined #ruby
dopamean_ has joined #ruby
<[k-_> link it here!
<Ox0dea> [k-_: Tell me why you told livcd about Lollipops.
chipotle has joined #ruby
nhhagen has quit [Remote host closed the connection]
<Ox0dea> It's so ridiculous.
rbennacer has quit [Read error: Connection reset by peer]
juanpablo_____ has joined #ruby
juanpablo____ has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 246 seconds]
<[k-_> imagine -+~object to get OpenSSL::X509::Someshit#some_really_long_method_name? You save a lot of time!
<apipkin> When having keys with a boolean value in a hash, what is the convention of naming the hash key and the look up? { is_active: true } and o[:is_active] ?
rbennacer has joined #ruby
<Ox0dea> apipkin: I'd nix the prefix.
ujjain- has quit [Changing host]
ujjain- has joined #ruby
roxtrongo has quit [Remote host closed the connection]
<Ox0dea> Same goes for method names in most cases.
chipotle has quit [Client Quit]
<[k-_> (remove is_)
<apipkin> so { active: true} and o[:active] ?
<Ox0dea> LGTM.
tomchapin has joined #ruby
<apipkin> Thanks!
leat3 has quit [Ping timeout: 244 seconds]
<Ox0dea> apipkin: Happy to help. You know you're allowed to end method names with '?', yes?
<DCameronMauch> Ox0dea, no luck, giving same message about unknown symbol
<apipkin> Ox0dea: I have read/heard that, but didn't know how a hash key would translate to a method
jgpawletko has joined #ruby
* apipkin is a JavaScript developer generally
UtkarshRay has joined #ruby
<Ox0dea> apipkin: No, it won't, at least not without the proper plumbing. I was just going to mention that you should use it for methods that return simple booleans.
foureight84 has joined #ruby
casadei_ has quit [Remote host closed the connection]
Johnny__ has joined #ruby
<apipkin> Ah okay! I'll keep that in mind :)
sparr has quit [K-Lined]
Hijiri has quit [K-Lined]
larissa has quit [K-Lined]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
bigkevmcd has joined #ruby
tomchapin has joined #ruby
Hardtail has joined #ruby
JohnnyTao has quit [Ping timeout: 256 seconds]
larissa has joined #ruby
polishdub has joined #ruby
rippa has joined #ruby
zlogan85 has quit [Ping timeout: 264 seconds]
sparr has joined #ruby
sparr has quit [K-Lined]
larissa has quit [K-Lined]
patrick_star has joined #ruby
aaeron has quit [Quit: Leaving.]
larissa has joined #ruby
sparr has joined #ruby
yardenbar has quit [Quit: Leaving]
Johnny__ has quit [Ping timeout: 255 seconds]
allomov has quit [Ping timeout: 264 seconds]
miguelff has quit [Quit: miguelff]
allomov has joined #ruby
<DCameronMauch> Ox0dea, any idea where I can find out more about how to use Fiddle?
<DCameronMauch> there seems to be almost nothing on the Googles
astrobunny has quit [Quit: Leaving...]
Dopagod has quit [Ping timeout: 255 seconds]
<[k-> there is nothing on the Googles
<[k-> i tried too :'(
rubie has quit [Remote host closed the connection]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> DCameronMauch: Everything I know about it comes from random blog posts and personal tinkering.
DmitryBochkarev has joined #ruby
<DCameronMauch> okay, thanks
<Ox0dea> Sorry I couldn't be of more help in the matter. :/
<DCameronMauch> going to give this 1 more hour and give up
<DCameronMauch> no, thanks for help
anisha has quit [Quit: Leaving]
<Ox0dea> Have you considered accepting a void * and a length and plucking the ints out that way?
<Ox0dea> It'd make the Go portion less pleasant, but at least you'd get the Fiddle interplay?
nGx has joined #ruby
fostertheweb has joined #ruby
Zai00 has quit [Quit: Zai00]
pawnbox has joined #ruby
<DCameronMauch> I have no clue how to do that with Go, but I can look into it
nGx is now known as jmarrec
xylotism has joined #ruby
marr has quit []
jonr2219 has joined #ruby
deg__ has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jonr2219 has joined #ruby
jonr2219 has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
jmarrec has quit [Quit: Leaving]
rubie has joined #ruby
dseitz has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
deg_ has quit [Ping timeout: 260 seconds]
barhum2013 has joined #ruby
The_Phoenix has joined #ruby
jmarrec has joined #ruby
dman777_alter has joined #ruby
DmitryBochkarev has quit [Quit: Leaving]
nGx has joined #ruby
jmarrec has quit [Client Quit]
nGx has quit [Client Quit]
<dman777_alter> let(:api_template) { {'name' => 'My Template', 'content'=>'foobar'} } hi, how can extract this into a array ['My Template', 'foobar']?
jmarrec has joined #ruby
centrx has quit [Ping timeout: 264 seconds]
<Ox0dea> dman777_alter: Hash#values.
<dman777_alter> Ox0dea: thanks
jmarrec has quit [Client Quit]
<Ox0dea> Sure thing.
allcentury has quit [Quit: WeeChat 1.2]
karmatr0_ has joined #ruby
<[k-_> there is also Hash#keys to get just the keys
jmarrec has joined #ruby
umgrosscol has joined #ruby
jmarrec has quit [Client Quit]
bruno- has joined #ruby
<[k-_> quazimodo: your link is gold!
<[k-_> im definitely bookmarking
jmarrec has joined #ruby
Zai00 has joined #ruby
riotjones has quit [Remote host closed the connection]
ndrei has joined #ruby
devoldmx has joined #ruby
RobertBirnie has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
<quazimodo> [k-_: that lecture? it's amazing
towski_ has joined #ruby
oo_ has joined #ruby
Voker57 has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
<karmatr0_> Hello guys, Is there any chance to read a part of a stream from a TCPSocket and then clear the remaining bytes in the stream?
<Ox0dea> karmatr0_: You can tell Socket#read how many bytes you want, and it'll read to the end if you don't specify.
<Papierkorb> what link?
meatherly has joined #ruby
tkuchiki has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
David27 has joined #ruby
chipotle has joined #ruby
<Ox0dea> logs $ ag 'quazimodo.*http' irc.freenode.#ruby.weechatlog
<Ox0dea> logs $
karmatr0_ has quit []
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
xylotism has quit [Read error: Connection reset by peer]
<Papierkorb> Ox0dea: the bouncers only shows the last 50 or so lines said after I connect to it. It's gone. [k-_thanks
symbol has joined #ruby
sargas has joined #ruby
xylotism has joined #ruby
<Papierkorb> [k-_: that's a 404
karapetyan has joined #ruby
theery has quit [Remote host closed the connection]
<karapetyan> hi there
pawnbox has quit [Ping timeout: 256 seconds]
<Ox0dea> Papierkorb: [k-_ managed to paste an 0x01 byte.
<Papierkorb> interesting, Konversation shows the junk byte, but FF does not
FernandoBasso has quit [Quit: Leaving]
<karapetyan> res[:sum] += arg if arg > 0
<Ox0dea> karapetyan: Why bother with the conditional?
<Mon_Ouie> Because arg could be negative?
<Ox0dea> I bet it's not relevant here.
freerobby has joined #ruby
<Ox0dea> Eh, never mind. That was a baseless assumption.
<karapetyan> if res[:sum] == nil -- raise exception what the best way to avoid it ?
<Ox0dea> karapetyan: Hash.new(0), perhaps.
michaeldeol has joined #ruby
<Ox0dea> >> foo = Hash.new(0); foo[:bar] += 1; foo
<ruboto> Ox0dea # => {:bar=>1} (https://eval.in/430657)
stamina has quit [Quit: WeeChat 1.3]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<karapetyan> Mon_Ouie: yes, it could be negative
ndrei has quit [Ping timeout: 244 seconds]
<karapetyan> give me a second
<karapetyan> so, how to define hash element if not defined and increment if it already exist? :)
gagrio|mtg has quit [Ping timeout: 268 seconds]
<Ox0dea> karapetyan: ||=
<Ox0dea> res[:sum] ||= 0; res[:sum] += ....
<karapetyan> res[:sum] += arg if arg > 0
jmarrec has quit [Quit: Leaving]
<karapetyan> i can't do ike this res[:sum] ||+= arg if arg > 0
<Ox0dea> No.
<karapetyan> ok
<karapetyan> thanks
Johnny__ has joined #ruby
<Ox0dea> That's an interesting idea, though. :P
bluOxigen has joined #ruby
<karapetyan> :)
[Butch] has joined #ruby
jmarrec has joined #ruby
leat3 has joined #ruby
ndrei has joined #ruby
<shevy> karapetyan hah I knew a haik karapetyan once, he was from armenia
dionysus69 has joined #ruby
<karapetyan> shevy: hah may be it was my Dad? :)))
ta has joined #ruby
<shevy> nah... he should be a bit older than 30 by now
<Ox0dea> Did someone say System of a Down are getting back together?
<karapetyan> hahaha
patrick_star has quit [Ping timeout: 265 seconds]
<karapetyan> shevy: than nope cause i am 27 now :)
ReK2 has quit [Quit: Konversation terminated!]
patrick_star has joined #ruby
DCameronMauch has quit [Quit: Leaving...]
arup_r has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
mic_e_ has quit [Quit: So it has come to this.]
shinnya has joined #ruby
oo_ has quit [Remote host closed the connection]
mic_e has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Remote host closed the connection]
badfish129 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<hal_9000> For anyone interested - update on _Elixir for the Functional Rubyist_ - http://rubyhacker.com/hidden/excerpt-from-elixir4rubyists.html
pietr0 has joined #ruby
jenrzzz has joined #ruby
morenoh149 has joined #ruby
tkuchiki has joined #ruby
freezeve_ has joined #ruby
<Ox0dea> hal_9000: The Ruby AnagramFinder isn't particularly "functional"?
<Ox0dea> "Methodist" feels more appropriate. :P
centrx has joined #ruby
mwlang has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<freezeve_> I am doing a ping sweep with threads, then save results to hash and finally to json in a file. Unfortunately they are not sorted by IP address. https://gist.github.com/chrisvel/8075acd0af1978da818c
senayar has joined #ruby
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
PaulCapestany has quit [Quit: .]
<freezeve_> I tried to use "sorted_by" and I partially succeeded, they are saved but after 192.168.1.1 comes 192.168.1.10, then 192.168.1.101 etc.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> freezeve_: You're sorting using lexicographical order.
<freezeve_> any ideas how to sort them ?
<freezeve_> Ox0dea: that's true
pontiki has joined #ruby
<Ox0dea> freezeve_: You just want to sort by the last quad, yes?
<freezeve_> sure
<freezeve_> Ox0dea: should I add an id to the hash ?
<Ox0dea> No, why?
<freezeve_> Ox0dea: that's the only thing that crosses my mind
<freezeve_> 1, 192.168.1.1, "up"
Igorshp has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 264 seconds]
<Ox0dea> sort_by { |ip, _| ip[/\d+$/].to_i }
patrick_star has quit [Ping timeout: 264 seconds]
<havenwood> hal_9000: Just an aside, but File.open without a block isn't self-closing. Consider `File.read(filename).downcase.split` or `File.readlines(filename).map { |line| line.downcase.chomp }`.
<Ox0dea> freezeve_: That regular expression matches the last sequence of consecutive digits and converts it to an integer so that it gets sorted properly.
Igorshp has joined #ruby
<freezeve_> Ox0dea: I hate it when I am thinking for hours and you reply in 5 seconds
ndrei has quit [Ping timeout: 240 seconds]
<Ox0dea> <3
PaulCapestany has joined #ruby
<freezeve_> Ox0dea: I mean, when am I going to be like you ?
leat3 has quit [Remote host closed the connection]
<Ox0dea> Tomorrow.
<freezeve_> I am trying hard
<freezeve_> nope
<freezeve_> I hope so but no
<Ox0dea> > Constant vigilance!
<Ox0dea> Really, though, just always be on the lookout for something new to learn, and then make sure you get it to stick.
<hal_9000> havenwood: Thanks, I will look. I do know better :)
<havenwood> hal_9000: You could set the default value for a Hash key to an empty Array: hash = Hash.new { |h, k| h[k] = [] }
<Sou|cutter> hal_9000: Not sure why you point out setting the Hash value to an array, but it's a common pattern to condense that by using the Hash initializer that takes a block - hash = Hash.new { |h, k| h[k] = [] } (then you don't need the ||= line)
<freezeve_> Ox0dea: it worked
<freezeve_> but how ?
<Sou|cutter> havenwood: jinx
<havenwood> hal_9000: A nit, but `chars` is a bit nicer than `split("")`.
<freezeve_> Ox0dea: why | ip, _
<Ox0dea> freezeve_: Because the status is irrelevant to the sort.
<freezeve_> what is the role of underscore ?
<centrx> for great justice
<Ox0dea> freezeve_: It's meant to indicate that we need to consume a value, but we don't care what it is.
<Sou|cutter> underscore indicates an unused param
<hal_9000> Sou|cutter: havenwood yes, i do sometimes use the hash initialization
jacksonmills has joined #ruby
<Ox0dea> freezeve_: Without the _, `ip` would contain both the key and the value and that would muck things up.
<freezeve_> Ox0dea: the regEx is \d for digits, then $ for the end of the string
<Ox0dea> Yessir.
pontiki has quit [Client Quit]
<Ox0dea> Mind, it's \d+ for "repeated digits".
<havenwood> words.each_with_object(Hash.new { |h, k| h[k] = [] }) { |word, hash| hash[word.chars.sort.join] }
<freezeve_> Ox0dea: so how "192.168.1.10" becomes an integer ?
<Sou|cutter> havenwood: missed the << word
<Ox0dea> >> '192.168.1.10'][/\d+$/].to_i # freezeve_
<ruboto> Ox0dea # => /tmp/execpad-49ecdf6fdf66/source-49ecdf6fdf66:2: syntax error, unexpected ']', expecting keyword_end ...check link for more (https://eval.in/430664)
<Ox0dea> >> '192.168.1.10'[/\d+$/].to_i # freezeve_
<ruboto> Ox0dea # => 10 (https://eval.in/430665)
<Ox0dea> Like that.
<havenwood> Sou|cutter: oops! i need coffee, it's getting bad - that's it, i'm getting out of bed
<hal_9000> havenwood: yes, but this isn’t golf ;)
<Ox0dea> freezeve_: The "problem" is that you're storing IP addresses as Strings.
<freezeve_> Ox0dea: what do you suggest ?
denisemccoy has quit [Remote host closed the connection]
lacrymology has left #ruby [#ruby]
<Ox0dea> freezeve_: Well, there's a standard library?
Guest3285 has quit [Quit: This computer has gone to sleep]
<freezeve_> 4 seperate qud
<freezeve_> quads
mr_snowf1ake has joined #ruby
<freezeve_> standard library for ? sockets ?
<jacksonmills> I think there is even an IP address column type for Postgres. Not sure about other dbs.
karapetyan has quit [Remote host closed the connection]
<Ox0dea> freezeve_: No, for IP addresses.
<freezeve_> as a variable ?
rcvalle has joined #ruby
karapetyan has joined #ruby
denisemccoy has joined #ruby
newbie1 has quit [Ping timeout: 272 seconds]
<Ox0dea> >> require 'ipaddr'; IPAddr.include? Comparable # freezeve_
<ruboto> Ox0dea # => true (https://eval.in/430666)
suparel has joined #ruby
<Ox0dea> If you were using that, you could compare IP addresses in earnest.
<havenwood> hal_9000: <3 Ruby, <3 Elixir, checks out!
suparel has left #ruby [#ruby]
rbennacer has joined #ruby
mr_snowf1ake has quit [Disconnected by services]
mr_snowf` has joined #ruby
<freezeve_> Ox0dea: unbelievable
icewall has joined #ruby
<freezeve_> Ox0dea: I know, I must read more
<freezeve_> I just loved ruby a bit more
mr_snowf` has left #ruby [#ruby]
<Ox0dea> Yay!
lbwski has joined #ruby
* Ox0dea gots the warm fuzzies.
mr_snowf1ake has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
lbwski has quit [Client Quit]
<freezeve_> Ox0dea: what's the benefits of using ipaddr ?
<freezeve_> an object instead of a string ?
lbwski has joined #ruby
negev has joined #ruby
<Ox0dea> Aye, that's a big part of it.
bricker has joined #ruby
<mr_snowf1ake> hey guys, i did a scan() on some string, and am doing some computation on that. the problem is I want to go back and modify the original string in place. what's the right way of doing that? i know about gsub, but i need to take the matched results and run it through first
rodfersou has quit [Quit: leaving]
<negev> hello, why is i always 1 in the child thread? https://gist.github.com/m4rkw/fd06bd16c584632cf943
<freezeve_> Ox0dea: I suppose I save them as host_ip = IPAddr.new('192.168.1.' + host.to_s) ?
troyready has joined #ruby
<Ox0dea> freezeve_: Yep, that would do.
<mr_snowf1ake> oh, actually, can i just use gsub(pattern) { } ?
patrick_star has joined #ruby
<havenwood> hal_9000: Good luck with the book! I look forward to it.
bronson has joined #ruby
<mr_snowf1ake> s/gsub/gsub!/
j4cknewt has joined #ruby
<hal_9000> havenwood: thank you! drop me an email sometime
<Ox0dea> hal_9000: I think the dialogue is a nice touch; great for beginners.
Musashi007 has joined #ruby
<Ox0dea> mr_snowf1ake: Could you perhaps clarify your intent?
<Ox0dea> freezeve_: And because IPAddr includes Comparable, you can just use #sort on an Array of instances.
<Sou|cutter> is the whole book written as a conversation?
<hal_9000> Ox0dea that was johnny’s idea, but I am on board with it now
<freezeve_> Ox0dea: but they're a hash
<havenwood> hal_9000: Just have it in mind since it was randomly mentioned in #ruby-offtopic this morning, but I've implemented some of Elixir stdlib in Ruby hoping Rubyists would find it interesting: https://github.com/havenwood/elixir.rb#readme
<hal_9000> Sou|cutter: that is the plan, but if people hate that, it is not too late to change it
<Ox0dea> freezeve_: sort_by(&:first), then.
j4cknewt has quit [Remote host closed the connection]
<hal_9000> that sounds very interesting, will read and bookmark
<mr_snowf1ake> Ox0dea: i'm trying to take a file with lines that start with '#', modify them, and store for later use
<Ox0dea> mr_snowf1ake: You want to store the old or the new?
<mr_snowf1ake> both
<icewall> hi guys, looking for direct contact with somebody from dev team. Any active dev here ?
<Ox0dea> icewall: Try #ruby-core?
<icewall> oki
<Ox0dea> icewall: Godspeed. It's a graveyard, but many of the core devs are at least present. :/
bronson has quit [Ping timeout: 244 seconds]
kp666 has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
<negev> can anyone tell me why variables changed outside of a Thread are then changed inside the thread? i thought fork() was supposed to take an entire clone of the current context
<Ox0dea> negev: You're seeing those results because for loops leak their variables.
<freezeve_> Ox0dea: should I save a hash of object IPs or convert them back to_s ?
<negev> Ox0dea: leak their variables? what does that mean?
towski_ has joined #ruby
<Ox0dea> >> for i in 1..10; end; i # negev
<ruboto> Ox0dea # => 10 (https://eval.in/430667)
<[k-_> mailing list
<[k-_> get into the mailing list
amclain has joined #ruby
<Ox0dea> negev: More accurately, they don't introduce a new scope.
shinnya has quit [Ping timeout: 240 seconds]
tomchapin has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
<negev> Ox0dea: "they"?
<Ox0dea> negev: For loops.
<negev> ok, i don't really understand
<Sou|cutter> hal_9000: I think that could be difficult to keep up for a whole book, my 2 cents. But I think the book idea's great
SCHAAP137 has joined #ruby
xylotism has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
<negev> does Thread.new not create a new context with a copy of the parent's context?
meatherly has quit []
xylotism has joined #ruby
<Ox0dea> "Context" is a nebulous term here.
yardenbar has joined #ruby
<negev> ok well i = 1
Johnny__ has quit [Ping timeout: 240 seconds]
<negev> Thread.new
greenarrow has quit [Quit: 500]
<negev> is the i referenced in the thread block the same i as the parent block?
xylotism has quit [Max SendQ exceeded]
iamvery has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
xylotism has joined #ruby
<negev> apparently so
<negev> weird
dfockler has joined #ruby
craysiii has joined #ruby
<Ox0dea> negev: I was going to demonstrate here, but eval.in doesn't permit threading.
<negev> ok so i guess that changes my question then, if i want to create n threads and pass a 0-indexed thread_id to each thread, how can i do that?
polysics has quit []
badfish129 has quit [Quit: badfish129]
<Ox0dea> 10.times.map { |i| Thread.new.tap { self[:id] = i }
<Ox0dea> And a closing brace.
<apeiros> Array.new(10) { |i| Thread.new { your code } }
Musashi007 has quit [Quit: Musashi007]
<apeiros> how you want to assign i to thread… no idea :)
<Ox0dea> apeiros: With Thread#[]=, of course.
<apeiros> Ox0dea: yours won't work
<Ox0dea> How come not?
<apeiros> self is not the new thread there
newbie1 has joined #ruby
<apeiros> self is the same self as before the 10.times
<Ox0dea> Ah, derp.
<apeiros> Thread.current[:id] = i
<apeiros> that'd work
<Ox0dea> negev: 10.times.map { |i| Thread.new.tap { |t| t[:id] = i } }
<apeiros> could of course also add an attr_accessor to Thread
<freezeve_> Ox0dea: https://gist.github.com/chrisvel/8075acd0af1978da818c can you please take a look ?
<Ox0dea> freezeve_: I looked, but I can't meaningfully run it to verify that it's doing what it should.
<negev> thanks
<Ox0dea> Gimme your scan results? :P
djbkd has quit [Ping timeout: 244 seconds]
<Ox0dea> freezeve_: Sorry, I'm derp city right now.
timonv has quit [Ping timeout: 246 seconds]
badfish129 has joined #ruby
MichaelSmith has joined #ruby
<negev> Ox0dea: that doesn't work, `initialize': must be called with a block (ThreadError)
iateadonut has quit [Quit: Leaving.]
Musashi007 has joined #ruby
<Ox0dea> Hmm, three derps in as many minutes.
* Ox0dea goes for a coffee.
xylotism has quit [Read error: Connection reset by peer]
xylotism has joined #ruby
<freezeve_> Ox0dea: thanks!
<Ox0dea> negev: apeiros' Thread.current suggestion should do.
negev has quit [Quit: thanks guys]
<freezeve_> Ox0dea: all I get is things like {#<IPAddr: IPv4:192.168.1.1/255.255.255.255>=>"up"
<freezeve_> they don't mean to sort as they're objects
<apeiros> Ox0dea: interesting metric, derps/min :D
<Ox0dea> freezeve_: How do you mean? IPAddr has its own implementation of #<=>, so it sorts correctly against other IPAddrs.
xylotism has quit [Read error: Connection reset by peer]
xylotism has joined #ruby
krisquigley has quit [Remote host closed the connection]
<freezeve_> Ox0dea: How do you sort_by a hash of ipaddr objects ?
xylotism has quit [Read error: Connection reset by peer]
<freezeve_> Ox0dea: like hosts_sorted = @hosts.sort_by before with regEx for strings ?
krisquigley has joined #ruby
m8 has joined #ruby
<Ox0dea> freezeve_: sort_by(&:first) if the IPAddr is the key, which is the case here.
xylotism has joined #ruby
<denisemccoy> has anyone used the carrierwave-aws gem?
ruurd has joined #ruby
<freezeve_> Ox0dea: this is what I did and they are not sorted
<freezeve_> Ox0dea: {#<IPAddr: IPv4:192.168.1.1/255.255.255.255>=>"up", #<IPAddr: IPv4:192.168.1.5/255.255.255.255>=>"up",
<Ox0dea> freezeve_: Whoops. Better would be to use `@hosts.keys.sort`.
riotjones has joined #ruby
<apeiros> you can also just .sort - that is, if either no key is == another, or if the values are comparable
<freezeve_> hmm
<Ox0dea> freezeve_: Are you not interested in writing the status out to the file, then?
<freezeve_> Ox0dea: no just save them in order in .json file
<Ox0dea> Then, yeah, sorting the keys'll do.
jobewan has quit [Ping timeout: 252 seconds]
<freezeve_> Ox0dea: nope
<freezeve_> 2 then 1 then 4
<freezeve_> hosts_sorted = @hosts.keys.sort
leat3 has joined #ruby
bigredboots has joined #ruby
leat3 has quit [Remote host closed the connection]
theery has joined #ruby
karapetyan has quit [Remote host closed the connection]
pecpec has joined #ruby
pecpec has quit [Client Quit]
JohnnyTao has joined #ruby
<Ox0dea> >> require 'ipaddr'; 5.times.map { IPAddr.new Array.new(4) { rand 256 } * ?. }.sort.map(&:to_s)
<ruboto> Ox0dea # => ["49.216.130.59", "97.229.113.235", "104.237.113.83", "109.231.92.174", "226.61.217.114"] (https://eval.in/430672)
pecpec has joined #ruby
<Ox0dea> freezeve_: That demonstrates that IPAddrs really are sortable.
leat3 has joined #ruby
afrianska has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
gamename has joined #ruby
wildlander has quit [Quit: Saliendo]
<Ox0dea> You're not expecting the output from #ping_workstations to be sorted, right?
riotjones has quit [Ping timeout: 250 seconds]
<freezeve_> included the output
mleung has joined #ruby
harryk_ is now known as harryk
<freezeve_> I am sure it's something silly
fostertheweb has joined #ruby
`mrspock has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<freezeve_> the things that take the most time usually are :P
<[k-_> ?gist_usage
<ruboto> To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
youngbaks has joined #ruby
<Ox0dea> freezeve_: That output simply doesn't match that program.
<Ox0dea> @hosts is a map from IPAddr to String; calling #keys on it will give you an Array of IPAddrs.
<freezeve_> you are right
<freezeve_> I am only getting an array
<freezeve_> sorry about that
<Ox0dea> No worries.
<freezeve_> the array is sorted but the values are missing
arooni has joined #ruby
<freezeve_> also, did I ask about an array ? I am currently sorting a hash and then output to json, how did it convert to an array
<freezeve_> ?
fantazo has joined #ruby
<freezeve_> I mean, how was it done automatically ?
senayar has quit []
meatherly has joined #ruby
marr has joined #ruby
imperator has joined #ruby
siemprefresco has joined #ruby
<freezeve_> Ox0dea: changed to .sort, not .keys.sort and it appears like that [["192.168.1.1","up"],["192.168.1.2","up"]
xcesariox has quit [Read error: Connection reset by peer]
<freezeve_> what am i missing ?
fantazo has quit [Client Quit]
fantazo has joined #ruby
xcesariox has joined #ruby
<gamename> Hi Guys, I'm new to Ruby and only use it in the context of Vagrantfiles. In one file, there is a hash which has lots of repetitive entries in it. Is there any way to specify the values in, say, 'role_consul_servers' one time only? Here is the sample:https://gist.github.com/gamename/6ee23582ade298a82a34
<Ox0dea> freezeve_: The observation that a Hash is just a collection of key-value pairs, essentially.
JamesDH has joined #ruby
<freezeve_> Ox0dea: it is but why converting it .to_json didn't change the way it is stored ?
<centrx> gamename, (1..3).map { |i| "consul#{i}" }
havenwood has quit [Ping timeout: 255 seconds]
<gamename> centrx: Given the example, does that mean I'll still need to do the mapping 3 times?
jespada has quit [Quit: WeeChat 1.1.1]
JimmyNeutron has quit [Read error: Connection reset by peer]
<Ox0dea> freezeve_: I've got to step out for a bit. Judging by the various outputs you've provided, I think you're inadvertently mixing "incompatible" approaches to this problem.
<centrx> gamename, oh you can assign a variable that represents the consuls array
jobewan has joined #ruby
<freezeve_> Ox0dea: thanks, you helped a lot already
<Ox0dea> freezeve_: For starters, how come you're shelling out to `ping` and then not doing anything with the result?
<centrx> gamename, and then in places where there are additions to the array, you can do: consuls + ['es1', 'es2'] etc
<centrx> gamename, consuls + eses + logstashes
<freezeve_> Ox0dea: what do you mean ? I just want to know If a host is up or down
<gamename> centrx: ah, ok. :) thanks!
Eiam_ has joined #ruby
<Ox0dea> freezeve_: Aye, but you're not putting that information anywhere?
<freezeve_> Ox0dea: or at least If it replies to the ping
<freezeve_> Ox0dea: no, just a ping sweep
<Ox0dea> You don't want to remember what you learn?
<Ox0dea> That is, shouldn't the `ping` result go into scan_results.json?
<freezeve_> Ox0dea: I might do this with net-ping gem later
<Ox0dea> (Back in ~15.)
<freezeve_> I mean, I take one step at a time
Dzejmskrokan has joined #ruby
badfish129 has left #ruby [#ruby]
rbennacer has quit [Remote host closed the connection]
blackmesa has joined #ruby
pawnbox has joined #ruby
Jardayn has joined #ruby
Eiam_ has quit [Client Quit]
Eiam_ has joined #ruby
Guest3285 has joined #ruby
Eiam_ has quit [Client Quit]
rushed has quit [Quit: rushed]
ckinniburgh has joined #ruby
mleung has quit [Quit: mleung]
TheHodge has quit [Quit: Connection closed for inactivity]
momomomomo has quit [Ping timeout: 240 seconds]
leat3 has quit [Remote host closed the connection]
mleung has joined #ruby
dgutierrez1287 has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
ndrei has joined #ruby
theery has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
Eiam_ has joined #ruby
tkuchiki has joined #ruby
<imperator> is there anything better than the VCR gem out there?
theery has joined #ruby
<imperator> specifically, something that can deal with threaded methods?
cornerma1 has joined #ruby
leat3 has joined #ruby
Dzejmskrokan has quit [Remote host closed the connection]
shadoi has joined #ruby
deol has joined #ruby
naftilos76 has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
<ytti> [If you have a few minutes, please take our survey: "Who's Using Ruby (or Not), for What, and Why?" http://rubini.us7.list-manage.com/track/click?u=72ad4855b528b6af79bd06543&id=b4a1124956&e=1f2e1d517d
<ytti> (Signed up for rubinius X mailing list ages ago, first email today)
<ytti> but their quesionaire link is broken
<ytti> oops
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
c0m0 has quit [Ping timeout: 250 seconds]
Eiam_ has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
cornerman has quit [Ping timeout: 265 seconds]
cornerma1 is now known as cornerman
naftilos76 has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
michaeldeol has quit [Ping timeout: 250 seconds]
<Ox0dea> freezeve_: Okay, so, what do you know about Enumerable?
<freezeve_> Ox0dea: I believe I solved it https://gist.github.com/chrisvel/dcfdf4e62c9fdf36fada
<freezeve_> Ox0dea: couldn't find something better than flatten
<freezeve_> it does what it is intended to
<freezeve_> Ox0dea: but thanks
<freezeve_> !!
<Ox0dea> Sure thing.
<Ox0dea> There's still more learnin's to do if you want 'em.
lsmola has quit [Ping timeout: 260 seconds]
<Ox0dea> `hash.map {|key, value| [key, value]}` is just `hash.to_a`, for instance.
<Ox0dea> That's why I asked about Enumerable.
<gamename> centrx: followup - how would you assign (1..3).map { |i| "consul#{i}" } to a consuls var which would then be used for consuls + another_var + another_var? Or am I missing your intent?
xylotism has quit [Read error: Connection reset by peer]
<centrx> gamename, consuls = (1..3).map { |i| "consul#{i}" }
<Ox0dea> freezeve_: With the exceptions of #select and #reject, all of the methods provided to Hash by Enumerable simply convert it to an Array of key-value pairs before operating.
xylotism has joined #ruby
<gamename> centrx: ok. Got it.
UtkarshRay has quit [Remote host closed the connection]
teclator has joined #ruby
__main__ has joined #ruby
allomov has quit [Remote host closed the connection]
CustosL1men has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Remote host closed the connection]
<Ox0dea> Those are equivalent. :P
arup_r has joined #ruby
nhhagen has joined #ruby
<Ox0dea> Could even just be `@hosts.sort.to_h` as apeiros advised a while back.
ndrei has quit [Ping timeout: 244 seconds]
UtkarshRay has joined #ruby
darkf has quit [Quit: Leaving]
<atmosx> hello
saddad has joined #ruby
nhhagen has quit [Remote host closed the connection]
<atmosx> can I upload images as gists?
<[k-_> no
<atmosx> I knew it.
nhhagen has joined #ruby
<atmosx> !
quazimodo has quit [Ping timeout: 246 seconds]
<Mon_Ouie> You probably can, gists are just regular git repos that you can clone and push to
bronson has joined #ruby
minotep has joined #ruby
<[k-_> that'd be too much effort to consider as an option
<Ox0dea> atmosx: How about Base64?
<canton7> seems you can
Synthmead has quit [Read error: Connection reset by peer]
zeroDivisible has quit [Ping timeout: 264 seconds]
<Ox0dea> And then git.io for shortlinks.
<Ox0dea> New image host.
j4cknewt has joined #ruby
<canton7> it serves the raw image with the right content-type, too
<apipkin> Is there a way to do lists with Ruby i18n? Like: 'Bob'; 'Bob and Sally'; 'Bob, Sally and Joe'.
<canton7> that's nice
cajone1 has left #ruby [#ruby]
icarus has joined #ruby
gusrub has joined #ruby
dionysus69 has joined #ruby
niemcu has quit [Ping timeout: 255 seconds]
cajone has joined #ruby
terabytes has joined #ruby
postmodern has joined #ruby
<Ox0dea> apipkin: Calling that i18n is confusing.
gizmore has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
AsFelix has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-_> that isn't i18n????
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apipkin> I thought that was internationalization as opposed to localization
<apipkin> or is that globalization o_O
<Ox0dea> It's just... properly formatting a list?
<Ox0dea> Is that done vastly differently across human languages?
<apipkin> From what I remember it is. But i'll look for that too!
<[k-_> a list, you mean list in english?
firstdayonthejob has joined #ruby
<shevy> yoda would pronounce this list differently
finisherr has joined #ruby
<shevy> imperator if only I would know something about threads!
leat3 has quit [Ping timeout: 255 seconds]
<atmosx> I have this view: http://atmosx.clarify-it.com/d/hhlj2y (how it looks) and this code https://gist.github.com/atmosx/5b1612757fd0128fbd76 (controller, view, css) and I want to put a tooltip displaying the a number upon each position of line 1.
<apipkin> [k-_: yeah
<atmosx> Like I wanna have a 'dot' that I'll hove-over and display the number (position) in the line.
ndrei has joined #ruby
<imperator> shevy, ;)
<atmosx> given the fact that these are strings: https://gist.github.com/atmosx/5b1612757fd0128fbd76#file-mafftseq_protein_results-haml-L4 I'm not even sure it's possible.
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
rdark has quit [Quit: leaving]
jmarrec has quit [Quit: Leaving]
shinnya has joined #ruby
dumdedum has quit [Quit: foo]
afrianska has quit [Ping timeout: 250 seconds]
shadeslayer has quit [Ping timeout: 260 seconds]
shadeslayer has joined #ruby
xylotism has quit [Read error: Connection reset by peer]
<Ox0dea> apipkin: https://eval.in/430676
hanmac has quit [Ping timeout: 244 seconds]
xylotism has joined #ruby
<apipkin> Ox0dea: Woah! What's this??
<Ox0dea> Sparkly i18n magicks.
<PaulePanter> Hi. Is there a shorter way to replace `-1` in an array by `nil`? `a.push(nil) if a.delete(-1)`?
<Ox0dea> PaulePanter: Are there several -1s?
barhum2013 has quit [Quit: barhum2013]
<apipkin> Ox0dea: I think this is what I was thinking of http://apidock.com/rails/Array/to_sentence
<apipkin> Is this the same thing?
<Ox0dea> apipkin: More or less, but that one's actually i18n, since it properly localizes the joiners and whatnot.
enebo has quit [Quit: enebo]
symbol_ has joined #ruby
dmolina has quit [Quit: Leaving.]
NeverDie has quit [Quit: http://radiux.io/]
devoldmx has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
nizmow has quit [Ping timeout: 264 seconds]
petricore has joined #ruby
symbol has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
<Ox0dea> >> [-1, 4, 2, -1, 0, -1, 6].map { |n| n if n != -1 } # in case PaulePanter isn't dead
<ruboto> Ox0dea # => [nil, 4, 2, nil, 0, nil, 6] (https://eval.in/430677)
towski_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
bronson has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
patrick_star has quit [Quit: Leaving]
sargas has quit [Quit: This computer has gone to sleep]
patrick_star has joined #ruby
otherj has quit [Quit: .]
rubie has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpablo_____ has quit [Ping timeout: 256 seconds]
saddad has quit [Ping timeout: 244 seconds]
afrianska has joined #ruby
krisquigley has joined #ruby
pontiki has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
podman has joined #ruby
Rurik has joined #ruby
lkba_ has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
krisquigley has quit [Read error: Connection reset by peer]
otherj has joined #ruby
<shevy> PaulePanter Paulchen Panther!
krisquigley has joined #ruby
arian0n has joined #ruby
sargas has joined #ruby
nizmow has joined #ruby
hanmac has joined #ruby
<PaulePanter> Sorry to all.
mordocai has joined #ruby
<PaulePanter> There is just one `-1` in there.
sargas has quit [Client Quit]
<Ox0dea> PaulePanter: foo[foo.index -1] = nil
<PaulePanter> Ox0dea: Thank you!
Igorshp has quit [Remote host closed the connection]
<Ox0dea> PaulePanter: Happy to help.
<Ox0dea> Maybe reconsider why you're doing this, though. :)
psy has joined #ruby
<PaulePanter> Well, my colleague passes `-1` in the array to denote that objects with no relation to another object should be found.
psy has quit [Max SendQ exceeded]
<Ox0dea> Flog them.
<tobiasvl> what
ht__ has joined #ruby
<tobiasvl> magic numbers
<shevy> 42
krisquigley has quit [Ping timeout: 250 seconds]
psy has joined #ruby
momomomomo has quit [Quit: momomomomo]
nofxx has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Client Quit]
mikecmpbll has joined #ruby
<PaulePanter> Ox0dea: One last thing. There is the possibility that the array does not contain `-1`.
icarus has quit [Ping timeout: 268 seconds]
<PaulePanter> a[a.index(-1)] = nil
<PaulePanter> TypeError: no implicit conversion from nil to integer
c1v0 has joined #ruby
JohnnyTao has quit [Quit: Leaving]
<Ox0dea> PaulePanter: You'll have to be verbose, then.
<PaulePanter> Ok.
<Ox0dea> To catch up, there's only ever going to be at most one -1, but it could be anywhere?
<PaulePanter> Indeed.
<Ox0dea> How strange.
aaeron has joined #ruby
<PaulePanter> Ox0dea: Sorry, I misunderstood you. I thought I’d need to use the verbose solution.
Dzejmskrokan has joined #ruby
platzhirsch has left #ruby [#ruby]
HAL2328 has joined #ruby
<PaulePanter> [2, …, -1, …, 4] (exactly one -1) is valid, [145, 2, …, 145808] (no -1) is valid, but [145, 2, -1, …, -1, 14355] (more than one -1) is invalid.
tenderlove has quit [Remote host closed the connection]
spider-mario has joined #ruby
<Ox0dea> PaulePanter: Yes, you probably will, since you'll need to do a preliminary check. :/
yardenbar has quit [Ping timeout: 246 seconds]
JimmyNeutron has joined #ruby
iamvery has joined #ruby
<Ox0dea> There's probably some hackish slice you could use to make it a no-op if #index gives `nil`, but I can't condone such a thing.
<PaulePanter> Ox0dea: Understood. Thanks again!
<Ox0dea> Sure thing.
afrianska has quit [Ping timeout: 255 seconds]
Dzejmskrokan has quit [Ping timeout: 260 seconds]
xylotism has quit [Read error: Connection reset by peer]
casadei_ has joined #ruby
xylotism has joined #ruby
baweaver has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
deol is now known as michaeldeol
blackmesa has quit [Ping timeout: 240 seconds]
<Ox0dea> PaulePanter: Do you happen to have a variable that could be used as scratch in the vicinity of this `-1 => nil` code?
havenwood has joined #ruby
<gizmore> ah... there seems to be some char at the end!
<Ox0dea> gizmore: It's "\x01".
<gizmore> thanksalotl!
<Ox0dea> [k-_ has not yet explained how it got there.
denisemccoy has quit [Remote host closed the connection]
sagittarian has quit [Ping timeout: 268 seconds]
AlphaAtom has joined #ruby
enebo has joined #ruby
jgt1 has quit [Ping timeout: 272 seconds]
<[k-_> i can open it just fine?
<atmosx> Who is PaulePanter?
<[k-_> not you!
towski_ has joined #ruby
denisemccoy has joined #ruby
baweaver has quit [Remote host closed the connection]
newbie1 has quit [Ping timeout: 272 seconds]
Guest3285 has quit [Quit: This computer has gone to sleep]
Hounddog has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
<atmosx> she is kinda hot.
towski__ has joined #ruby
<atmosx> or is it just me.
shock_one has joined #ruby
<Ox0dea> atmosx: That thanksalotl?
weemsledeux has joined #ruby
swgillespie has joined #ruby
rubie has joined #ruby
<atmosx> Ox0dea: no, this https://twitter.com/MonicaBellucciC
<atmosx> it's a twitter profile
rbennacer has quit [Remote host closed the connection]
towski_ has quit [Ping timeout: 250 seconds]
Guest3285 has joined #ruby
<Ox0dea> !gis bellucci honey
hinbody has quit [Quit: leaving]
rbennace_ has joined #ruby
esauOp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-_> Ox0dea: your interrobang is backwards
<Ox0dea> [k-_: That is an exclamation point.
youngbaks has quit [Quit: WeeChat 1.3]
xylotism has quit [Quit: Leaving]
eightfold has joined #ruby
afrianska has joined #ruby
baweaver has quit [Remote host closed the connection]
ranchodev has joined #ruby
fostertheweb has joined #ruby
karapetyan has joined #ruby
wldcordeiro_ has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
rcoulman has joined #ruby
wldcordeiro_ has joined #ruby
icarus has joined #ruby
finisherr has quit [Quit: finisherr]
rcoulman has left #ruby [#ruby]
<dfockler> Let's just keep posting this frizzety frog
shinnya has quit [Ping timeout: 272 seconds]
<shevy> an axolotl!
banjara has joined #ruby
<shevy> it can regrow limbs
enebo has quit [Quit: enebo]
<Ox0dea> Turritopsis dohrnii can regrow its childhood.
<Ox0dea> Forever.
dravine has quit [Ping timeout: 240 seconds]
dravine has joined #ruby
<PaulePanter> Ox0dea: Sorry, I couldn’t understand your question.
wldcordeiro_ has quit [Ping timeout: 244 seconds]
<PaulePanter> Ox0dea: I could create a variable, but there is no scratch variable.
<Ox0dea> PaulePanter: Not worth it, then, in my opinion.
<Ox0dea> But if you had one around, you could say `a[i] = nil if i = a.index(-1)`.
<PaulePanter> Ox0dea: Understood.
<Ox0dea> You'll get a NameError if `i` doesn't already exist, though.
<PaulePanter> Ox0dea: Interesting. I learned a lot! Thanks!
dravine has quit [Client Quit]
The_Phoenix has quit [Read error: Connection reset by peer]
foureight84 has quit [Quit: Lingo: www.lingoirc.com]
jas02 has joined #ruby
leafybasil has quit [Remote host closed the connection]
CustosLimen has joined #ruby
leafybasil has joined #ruby
Rickmasta has joined #ruby
RobertBirnie has joined #ruby
afrianska has quit [Ping timeout: 250 seconds]
garethrees has joined #ruby
baweaver has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
Hardtail has quit [Quit: WeeChat 1.1.1]
ramfjord has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
jmignault has joined #ruby
baweaver has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 255 seconds]
j_suth has joined #ruby
Hardtail has joined #ruby
platzhirsch has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
lwu has joined #ruby
justin_pdx has joined #ruby
nanoz has joined #ruby
techminer has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jsuth_ has quit [Ping timeout: 264 seconds]
<techminer> I'm new to testing with rspec.  I have a CSV file I'm going to eventually download and import, but first I want to verify the import directory exists.  So far I'm having no luck just checking for the directory, here's my gist… https://gist.github.com/MattMencel/6b75b93f125a96a26712
konsolebox has quit [Ping timeout: 250 seconds]
<techminer> I'm doing something wrong....
eGGsha has joined #ruby
bb010g has joined #ruby
bender_unit has joined #ruby
mleung has quit [Quit: mleung]
<yxhuvud> techminer: try subject.create_import_directory instead.
<yxhuvud> or be explicit and don't try to use implicit subjects until you understand what is going on
pocketprotector has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speakingcode has quit [Remote host closed the connection]
<techminer> subject refers to the Class in my describe block then?
mleung has joined #ruby
theery has quit []
<yxhuvud> no, to an instance of it.
CustosLimen has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
lbwski has quit []
oldbay has joined #ruby
jgt1 has joined #ruby
AsFelix has left #ruby [#ruby]
Blaguvest has quit []
ricer2 has quit [Quit: Caught SystemExit exception.]
DroidBurgundy has joined #ruby
bigredboots has quit [Remote host closed the connection]
baweaver has joined #ruby
Dzejmskrokan has joined #ruby
xybre has joined #ruby
baweaver has quit [Remote host closed the connection]
saddad has joined #ruby
ricer2 has joined #ruby
bigredboots has joined #ruby
eosinx has joined #ruby
failshell has quit []
aaeron has joined #ruby
jackjackdripper has joined #ruby
baweaver has joined #ruby
jackjackdripper has quit [Client Quit]
howdoicomputer has joined #ruby
pecpec has quit [Remote host closed the connection]
oldbay has quit [Client Quit]
Hijiri has joined #ruby
rwyoung has joined #ruby
jackjackdripper1 has joined #ruby
yqt has joined #ruby
bronson has joined #ruby
Dzejmskrokan has quit [Ping timeout: 260 seconds]
alexUaN has quit [Remote host closed the connection]
jackjackdripper1 has quit [Client Quit]
CustosLimen has joined #ruby
pocketprotector has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
psy has quit [Quit: Leaving]
Dzejmskrokan has joined #ruby
<SCHAAP137> i'm writing a helper function for cinch (irc bot in Ruby), in which i'm calling a shell script with a user supplied parameter, sending output to a file, filtering that through sed, leaving me with a piece of text I'd like to reply into the channel
bruno- has quit [Ping timeout: 260 seconds]
finisherr has joined #ruby
Dzejmskrokan has quit [Client Quit]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SCHAAP137> however, i haven't found a good way yet to "slowly" make these lines appear, and the bot gets disconnected with a RecvQ exceeded server message
_mak has left #ruby [".."]
<[k-_> how 'bout a collection of links
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
ruurd has joined #ruby
snapcase has quit [Ping timeout: 246 seconds]
snapcase has joined #ruby
`derpy has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 246 seconds]
cescalante has quit [Ping timeout: 246 seconds]
aep has quit [Ping timeout: 246 seconds]
Fraeon has quit [Ping timeout: 246 seconds]
`derpy has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Guest42511 has quit [Ping timeout: 246 seconds]
`derpy is now known as Guest68297
shellie__ has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
cescalante has joined #ruby
j416 has quit [Ping timeout: 244 seconds]
IceDragon has joined #ruby
Kero has quit [Ping timeout: 246 seconds]
<SCHAAP137> [k-_, this is the helper function: http://pastebin.com/VDuxCyEb
Fraeon has joined #ruby
<ruboto> SCHAAP137, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e7d60c83c7336497a301
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
IceDragon is now known as Guest89829
pocketprotector has quit [Ping timeout: 244 seconds]
<SCHAAP137> ok, understood
aep has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
shellie__ has joined #ruby
Kero has joined #ruby
_vision has joined #ruby
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest89829 is now known as IceDragon
_vision is now known as Guest39549
pontiki has quit [Quit: Lost terminal]
<SCHAAP137> so, i'm wondering if there is a method to output "#{text}" in a better way, one line every x seconds
oldbay has joined #ruby
<[k-_> or, you could create a link that shows the content
firstdayonthejob has quit [Read error: Connection reset by peer]
j416 has joined #ruby
<Ox0dea> &ri sleep
<Guest68297> No results
<SCHAAP137> https://gist.github.com/e7d60c83c7336497a301 <<-- here it is [k-_
<Ox0dea> SCHAAP137: Did you think [k-_ couldn't see ruboto's link?
alexUaN has joined #ruby
<SCHAAP137> i could post the full .rb of the cinch bot, but it's irrelevant to the issue, Ox0dea, i thought the helper function itself would be sufficient
<[k-_> SCHAAP137: you misunderstand.
<Ox0dea> I suspect a language barrier.
<[k-_> I meant, instead of dumping so many lines in IRC, why not just have a link that shows everything?
blackmesa has quit [Ping timeout: 264 seconds]
gregf has quit [Quit: WeeChat 1.3]
oldbay has quit [Client Quit]
<Ox0dea> >> puts [*1..100] # SCHAAP137
<ruboto> Ox0dea # => 1 ...check link for more (https://eval.in/430720)
<Ox0dea> See how ruboto doesn't spam the channel with 100 lines?
lkba has joined #ruby
<SCHAAP137> hmm, interesting, i need a moment to interpret what i'm seeing, i'm quite new to Ruby
pecpec has joined #ruby
choke has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
gregf has joined #ruby
RobertBirnie has joined #ruby
denisemccoy has quit [Remote host closed the connection]
minimalism has joined #ruby
<miah> sup?
<[k-_> !haim ih
momomomomo has joined #ruby
pecpec_ has joined #ruby
pecpec has quit [Ping timeout: 255 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
minimalism has quit [Client Quit]
NeverDie has joined #ruby
minimalism has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
niemcu has joined #ruby
denisemccoy has joined #ruby
mprelude has quit [Quit: WeeChat 1.3]
gamename has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mprelude has joined #ruby
mprelude has quit [Changing host]
mprelude has joined #ruby
jsuth_ has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lwu has quit [Quit: This computer has gone to sleep]
j_suth has quit [Ping timeout: 272 seconds]
kirun has joined #ruby
TomyLobo has joined #ruby
sshuff is now known as sshuff|gone
NeverDie has quit [Quit: http://radiux.io/]
maletor has quit [Quit: Computer has gone to sleep.]
swgillespie has joined #ruby
bender_unit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamvery has quit [Remote host closed the connection]
blackmesa has joined #ruby
NeverDie has joined #ruby
havenwood has quit [Ping timeout: 265 seconds]
mordocai has quit [Quit: Getting rid of distractions]
morenoh149 has quit [Ping timeout: 246 seconds]
icarus has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
MrFjords has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
bender_unit has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mustmodify has joined #ruby
mleung has quit [Quit: mleung]
bender_unit has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
icarus has joined #ruby
eightfold has quit [Quit: eightfold]
devoldmx has joined #ruby
platzhirsch has quit [Ping timeout: 265 seconds]
<mustmodify> IIRC, according to Tell Don't Ask, if I have a Message and it may be in one of two formats, and I want it parsed, I should tell some object to do that. But according to other philosophical bits whose names I've forgotten, you should have verb-objects, just noun-objects... though I never really understood that one. So should I create a MessageHandler object that determins the format of the message and delegates to the correct parser? OR is that too much bag
bigredboots has quit [Remote host closed the connection]
ngscheurich has joined #ruby
AlphaAtom has joined #ruby
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has quit [Remote host closed the connection]
oldbay has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Alina-malina has joined #ruby
bigredboots has joined #ruby
<HAL2328> i'm on a windows, using irb. when i run long commands (that exceeds one line) it just truncates it in the buffer. i'd like to view the full command of what i ran. any ideas?
devoldmx has quit [Ping timeout: 272 seconds]
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JamesDH has joined #ruby
denisemccoy has quit [Remote host closed the connection]
Rollabunna has joined #ruby
esauOp has joined #ruby
banister has joined #ruby
CustosLimen has quit [Ping timeout: 272 seconds]
krisquigley has joined #ruby
borodin has joined #ruby
mistym has quit [Ping timeout: 256 seconds]
<imperator> HAL2328, up arrow to repeat last command, or type Readline::HISTORY.to_a
Rollabunna has quit [Ping timeout: 244 seconds]
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
pocketprotector has joined #ruby
ruurd has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
jamesaxl|2 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 250 seconds]
sargas has joined #ruby
Guest3285 has quit [Quit: This computer has gone to sleep]
icarus has quit [Ping timeout: 240 seconds]
NeverDie has joined #ruby
<HAL2328> imperator, thank you very much! the Readline::HISTORY.to_a did exactly what I wanted.
oldbay has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
<imperator> yw :)
<HAL2328> imperator, is there a reason why irb decides not to report the full command on console? im taking notes as i'm learning on a separate doc, so i like to copy and paste commands
bigredboots has quit [Remote host closed the connection]
<Ox0dea> HAL2328: irb isn't to blame here.
NeverDie has quit [Read error: Connection reset by peer]
icarus has joined #ruby
jzigmund_ has joined #ruby
NeverDie_ has joined #ruby
<HAL2328> although the up arrow look up method repeats the code, it doesn't allow me to select the entire command (cmd limitation maybe)
finisherr has quit [Quit: finisherr]
vondruch_ has joined #ruby
Rurik has quit [Quit: Leaving]
<Ox0dea> Aye, that's the much more likely culprit.
oldbay has joined #ruby
<HAL2328> example: it should scroll to get the rest, but it just won't scroll so i get partial. but the READLINE is perfect solution! :)
Zai00 has joined #ruby
jenrzzz has joined #ruby
<HAL2328> Ox0dea, good to know. i thought it was irb so i kept searching on google with no avail
mwlang has quit [Quit: mwlang]
bmurt has quit []
jzigmund has quit [Ping timeout: 246 seconds]
NeverDie_ has quit [Client Quit]
<Ox0dea> HAL2328: I propose several solutions: use Alt+Enter to go into fullscreen, change your prompt to something much shorter (and maybe forget which directory you're in), upgrade your OS.
vondruch has quit [Ping timeout: 255 seconds]
<imperator> HAL2328, get the same behavior in powershell?
CustosLimen has joined #ruby
eightfold has joined #ruby
rbennace_ has quit [Remote host closed the connection]
<HAL2328> imperator, let me try. i've been using ConEmu which has been amazing, but it's not a cmd replacement, the core behavior is still there.
NeverDie has joined #ruby
jzigmund_ has quit [Ping timeout: 244 seconds]
vondruch_ has quit [Ping timeout: 268 seconds]
rbennacer has joined #ruby
denisemccoy has joined #ruby
Iskarlar has joined #ruby
jzigmund has joined #ruby
bender_unit has joined #ruby
FreeKevi_ has joined #ruby
gamename has joined #ruby
<HAL2328> imperator, powershell worked :) no truncation! thanks again!
gamename has quit [Client Quit]
<imperator> yeah, i pretty much only use powershell now
enebo has joined #ruby
gamename has joined #ruby
<HAL2328> Ox0dea, i tried alt+enter but you can't even fullscreen cmd/powershell, it so sad. i downloaded ubuntu, been proscratinating haven't installed it yet
Soda has quit [Remote host closed the connection]
<HAL2328> Ox0dea, windows is making me a more patience person everyday lol
Iskarlar has quit [Max SendQ exceeded]
mustmodify has left #ruby [#ruby]
Iskarlar has joined #ruby
<HAL2328> imperator, yeah i think i will too.
rakm has joined #ruby
Kallis has joined #ruby
eightfold has quit [Quit: eightfold]
<imperator> can't fullscreen them? i mean, with the mouse you can
<imperator> never tried it via cmdline
Soda has joined #ruby
denisemccoy has quit [Remote host closed the connection]
<atmosx> hello
allomov has joined #ruby
ruurd has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
oldbay has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jzigmund has quit [Ping timeout: 244 seconds]
<HAL2328> imperator, yeah the most mine will expand is 2/3 of a fullscreen width
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
<imperator> oh? hm
phutchins has quit [Ping timeout: 246 seconds]
<imperator> oh, you gotta mess with the properties
jzigmund has joined #ruby
<imperator> otherwise it won't go past the max
<imperator> if i remember right
Soda has quit [Remote host closed the connection]
aredridel is now known as Aria
howdoicomputer has quit [Ping timeout: 246 seconds]
Zai00 has quit [Quit: Zai00]
Soda has joined #ruby
xtsee has joined #ruby
bender_unit has quit [Ping timeout: 264 seconds]
vondruch_ has joined #ruby
gix has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
jzigmund has quit [Read error: Connection reset by peer]
DroidBurgundy has quit [Remote host closed the connection]
<HAL2328> imperator, you're right, under layout i changed the width to 200 and it worked. really weird design, not very user friendly
roxtrongo has joined #ruby
jzigmund has joined #ruby
<Ox0dea> HAL2328: What's got you tethered to Windows?
FernandoBasso has joined #ruby
athinggoingon has joined #ruby
rwyoung has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
but3k4_ has joined #ruby
but3k4 has quit [Ping timeout: 264 seconds]
dasher00 has quit [Ping timeout: 246 seconds]
vondruch_ has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Client Quit]
DroidBurgundy has joined #ruby
Jackneill has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
dgutierrez1287 has joined #ruby
karapetyan has joined #ruby
decoponio has quit [Quit: Leaving...]
workmad3 has joined #ruby
centrx has quit [Ping timeout: 240 seconds]
VeryBewitching has joined #ruby
<HAL2328> Ox0dea, just came with my computer lol... old habit are hard to kill i guess. I had a macbook, but it's broken now. i'm just bootstrapping using my old PC laptop
<nofxx> HAL2328, from mac to gnome is way more 'home' than mac to windows
<HAL2328> windows 7, can't complain when im not developing. it's a battle as soon as i do rails console
dseitz has quit [Quit: bbl]
karapetyan has quit [Ping timeout: 250 seconds]
dgutierrez1287 has quit [Ping timeout: 265 seconds]
tejasmanohar has joined #ruby
<craysiii> dual boot master race /s
<atmosx> HAL2328: virtual machine + linux?
dasher00 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<nofxx> HAL2328, life's too short man, just use stuff as they should. windows for games, boot a good distro to work
<HAL2328> atmosx, that's the plan. someone here suggested i try ubuntu 14.04.3 LTS
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umgrosscol has quit [Quit: End of Line]
benlieb has joined #ruby
umgrosscol has joined #ruby
<atmosx> HAL2328: are you familiar with command line? if yes I'd suggest debian.
<HAL2328> nofxx, I agree. Although I was able to solve a lot of the roadblocks thanks to the generous and knowledge folks here but it ate up a lot of time and energy.
<atmosx> HAL2328: really lightweight image... or even docker
Coldblackice has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
leafybasil has joined #ruby
mleung has joined #ruby
<HAL2328> atmosx, I've always heard great things about Debian. I did hear that ubuntu is a bit bloated. since my primary os for general stuff is win7, debian for dev might be a better fit.
JamesDH has joined #ruby
<atmosx> HAL2328: just install ruby manually system wide. Don't go with the distributino's version becuase it's old.
<Ox0dea> > distributino
<Ox0dea> Sabayon is apparently of Italian origin.
momomomomo_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
rwyoung has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
vondruch_ has joined #ruby
sedevc has joined #ruby
<imperator> HAL2328, or use something like rbenv or chruby
dfockler has joined #ruby
karapetyan has joined #ruby
<Ox0dea> >> :chruby or :rbenv
<ruboto> Ox0dea # => :chruby (https://eval.in/430737)
tejasmanohar has quit [Read error: Connection timed out]
sedevc has left #ruby [#ruby]
mr_snowf1ake has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<HAL2328> thanks everyone. will try dual booting later tonight. i've had rbenv on OSX and it was beautiful. but i may try chruby to how that works. never heard of that
icarus_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
eosinx has quit [Ping timeout: 244 seconds]
icarus has quit [Ping timeout: 244 seconds]
krisquigley has joined #ruby
<atmosx> Ox0dea: how can you tell? (that it's of italian origin)
but3k4_ has quit [Read error: Connection reset by peer]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
<Ox0dea> It says it on the box.
<atmosx> what box?
<Ox0dea> *The* box, mate.
<atmosx> does sabayon come with a box now?!
<atmosx> 'mate' hahaha
<atmosx> cheer up lad
<atmosx> lol
<FernandoBasso> http://ruby-doc.org/core-2.1.2/doc/syntax/assignment_rdoc.html#label-Local+Variables+and+Methods It seems that "problem" of having to use method() or self.method does not occur if the method uses arguments.
<FernandoBasso> When you do, for instance, sum = sum, you do have to use sum() or self.sum() from that point on, but not if sum method takes args.
<atmosx> Ox0dea: I think FernandoBasso is of Italian origin
<FernandoBasso> Did I miss something?
<atmosx> FernandoBasso: nope
<Ox0dea> atmosx: Is Google blocked where you are?
<atmosx> Ox0dea: yes :-(
<Ox0dea> My condolences.
<atmosx> Ox0dea: how did you knew?
but3k4_ has joined #ruby
<imperator> because.....HE BLOCKED IT
<Ox0dea> In any case, "sabayon" is the anglicization of "zabaione", an Italian eggnog-based dessert.
<imperator> dun dun DUN!
but3k4 has quit [Read error: Connection reset by peer]
<atmosx> imperator: oh, really?
<atmosx> Ox0dea: you Italian?
<Ox0dea> atmosx: No, lad.
<atmosx> Ox0dea: where you from mate?
* imperator guess australia or nz
<Ox0dea> atmosx: Somewhere where keystrokes can be exchanged for goods and knowledge.
krisquigley has quit [Ping timeout: 250 seconds]
<atmosx> imperator: you must a psychic or something
bronson has joined #ruby
Igorshp has joined #ruby
<imperator> or something
benlieb has quit [Quit: benlieb]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
icarus_ has quit [Quit: leaving]
<atmosx> >> def sum(int); int + 2 + 2;end; sum(5)
<ruboto> atmosx # => 9 (https://eval.in/430746)
<atmosx> >> def sum; 1 + 2 + 2;end; sum
<ruboto> atmosx # => 5 (https://eval.in/430747)
<atmosx> FernandoBasso: see?
<Ox0dea> FernandoBasso: It's refreshing to see a beginner taking the time to read /doc. :)
jamesaxl has joined #ruby
kadoppe has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby
<FernandoBasso> atmosx: I think I see.
<atmosx> Ox0dea: he's a good lad.
fantazo has quit [Quit: Verlassend]
<atmosx> FernandoBasso: You don't need () but it's a good programming style as it makes methods/functions easier to read.
<FernandoBasso> atmosx: Ruby and JS area easy, nobody needs to read docs.
<FernandoBasso> s/area/are/
<Ox0dea> atmosx: You need the parentheses if you intend to invoke a method which shares its name with a local variable.
<atmosx> FernandoBasso: are easy to pick up but hard to master
<FernandoBasso> atmosx: I was joking. :)
<atmosx> Ox0dea: if that's the case, then I'll say you're stupid and you have bigger problems lying somewhere than that :-P
<FernandoBasso> People assume these are toy langs, unlike the almighty java.
jamesaxl has quit [Remote host closed the connection]
<atmosx> FernandoBasso: ah k
last_staff has joined #ruby
I has joined #ruby
rubie has quit [Remote host closed the connection]
kadoppe has joined #ruby
<atmosx> FernandoBasso: hm, people get paid to write JS and Ruby too. So there's hardly toy langs.
I is now known as Guest76077
bronson has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
<Ox0dea> atmosx: What would you name a method that sums some numbers? What would you name a variable that contains some sum? Why is it hard to imagine the two existing in the same scope?
<atmosx> truth to be told js + rails makes a very good portfolio for landing jobs
rbennacer has quit [Remote host closed the connection]
<FernandoBasso> atmosx: I agree :)
jackjackdripper has joined #ruby
<atmosx> Ox0dea: because it's stupid and confusing. Use 'number_sums' if that's the case.
<FernandoBasso> I am passionate about programming langs, and I don't understand why people say "lisp is the only one", "java is the best", "pyhton blah", "js rocks and the others suck", etc. I like them all :)
jamesaxl has joined #ruby
<atmosx> FernandoBasso: good you're in the right place then :-)
<atmosx> FernandoBasso: Sei Italiano?
<FernandoBasso> atmosx: pt-br
Igorshp has quit [Remote host closed the connection]
finisherr has joined #ruby
<atmosx> atmosx: good.
<FernandoBasso> atmosx: You?
jeaye has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
<imperator> atmosx, gotta stop talking to yourself, not healthy
yashinbasement has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
jeaye has joined #ruby
mesamoo has joined #ruby
firstdayonthejob has joined #ruby
<atmosx> FernandoBasso: gr-it
<FernandoBasso> Cool.
howdoicomputer has joined #ruby
rubie has joined #ruby
jenrzzz has joined #ruby
tvw has joined #ruby
<nofxx> FernandoBasso, Brazil here too!
<FernandoBasso> nofxx: :)
<FernandoBasso> nofxx: Long time rubist?
bb010g has quit [Quit: Connection closed for inactivity]
Guest49 has quit [Remote host closed the connection]
<nofxx> FernandoBasso, ~2008, you?
<FernandoBasso> Some days :)
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
tejasmanohar has joined #ruby
nanoz has quit [Ping timeout: 272 seconds]
<nofxx> FernandoBasso, ruby is great, you'll have fun
ruurd has quit [Quit: ZZZzzz…]
choke has joined #ruby
<nofxx> rubygems, github, stackoverflow, here... all you prob going to need. Started with chris pine learn to program?
choke has quit [Client Quit]
choke has joined #ruby
<FernandoBasso> Nope :)
<HAL2328> nofxx, i got to chapter 8 fine. after that chris killed my confidence
<FernandoBasso> I started in several different ways.
<nofxx> heh, why?
choke has quit [Client Quit]
<nofxx> FernandoBasso, also nice is _why? poingnant guide... there's a pt-br version too https://github.com/carlosbrando/poignant-br
<FernandoBasso> Thanks.
havenwood has joined #ruby
rbennacer has joined #ruby
<nofxx> but the best way to actually start, build or work on a gem
<Sou|cutter> In fairness, the practice of programming is humbling at any experience level
<nofxx> or an webapp
* imperator figures out that pt-br must be portuguese-brazilian
<HAL2328> nofxx, i really liked his writing style and the flow. but chapter 9 got real complex for me. i used other sources to learn though. i should finish his book though
catbusters has quit [Ping timeout: 246 seconds]
mprelude has quit [Ping timeout: 252 seconds]
<HAL2328> nofxx, now im learning rails,trying to build a web app. been doing some michael hartl tutorial with other materials its been a joy so far
JohnBat26 has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
<nofxx> imperator, yeah... there's actually a new agreement and the hipster new way is to merge pt-pt and pt-br
<imperator> HAL2328, give it time, you'll become jaded and cynical like me
shmilan has joined #ruby
<Ox0dea> Sick motivational skills.
<imperator> mad skillz
symbol_ has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Remote host closed the connection]
<Sou|cutter> imperator: eventually you'll come back out the other side and it will be a joy again
<HAL2328> imperator, that's like mic drop motivational
acke has joined #ruby
<Sou|cutter> see how I turned that around?
<imperator> Sou|cutter, haha, the other side is retirement at this point
<nofxx> HAL2328, I advice you to start with a ruby gem or a simpler ruby webapp framework... like sinatra
<Ox0dea> HAL2328: Do you remember where exactly you hit the wall in LtP 9?
<nofxx> or non dynamic stuff like middleman or nanoc HAL2328
catbusters has joined #ruby
casadei_ has quit [Remote host closed the connection]
yashinbasement has quit [Quit: Leaving]
<imperator> HAL2328, no problem, any time
firstdayonthejob has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 244 seconds]
<HAL2328> nofxx, note taken. if i get stuck like i did with LtP, i might take a break and attempt those. that is if don't get jaded by that time ;)
pocketprotector has quit [Ping timeout: 272 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
thezanke has joined #ruby
AlphaAtom has joined #ruby
thezanke has left #ruby ["Leaving"]
<HAL2328> Ox0dea, looking back at the table of contents, i think i actually made it to chapter 10. it might have been recursion. or maybe it seems so since i studied those from different sources.
FreeKevi_ has quit []
mib_mib has joined #ruby
benlieb has joined #ruby
workmad3 has joined #ruby
syath has quit [Quit: WeeChat 1.2]
<HAL2328> Ox0dea, don't have the book with me at the moment to really see where but i think it's a book worth finishing
maletor has joined #ruby
<mib_mib> hi - using ruby 2.1 - i have a csv file that has empty quoted fields, i.e. a field that is empty is just two quotes ("") instead of just blank - however, the default when reading the csv file seems to read this as two quotes instead of unquoting it - is there a csv option to optionally 'unquote' all fields?
jgpawletko has quit [Quit: jgpawletko]
<nofxx> mib_mib, I believe you're seeing the quotes but it's actually blank
<nofxx> puts "" vs p ""
sargas has quit [Quit: Leaving]
<mib_mib> no
<nofxx> otherwise it'll be "\"\""
<mib_mib> the field actually is two quotes
<mib_mib> maybe ur right....
<mib_mib> hmmmm i guess i was confused, thanks!
<mib_mib> =D
Alayde has quit [Ping timeout: 252 seconds]
<HAL2328> mib_mib, great community here no? can learn a lot by just lounging here, not just by asking q's.
NeverDie has quit [Quit: http://radiux.io/]
<HAL2328> that should be the benchmark for education, if you can learn when you are just lounging around, what an excellent education your getting.
fxn has joined #ruby
firstdayonthejob has joined #ruby
<Ox0dea> HAL2328: You're fooling yourself. http://i.imgur.com/Lk4iika.png
pocketprotector has joined #ruby
lolmaus has quit [Ping timeout: 244 seconds]
OrbitalKitten has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
finisherr has quit [Quit: finisherr]
NeverDie has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
<HAL2328> Ox0dea, that's very true. I meant the environment we have here in this channel. say im doing something else, e.g. not in the room. in a typical classroom i'd miss everything had i gone to the restroom.
rakm has joined #ruby
<Ox0dea> A classroom isn't inherently a place for active learning.
<nofxx> Ox0dea, who are 10% who can't learn anything by DOING a presentation? Hm, when come to think... that how stupid ppl get a job ... teatching
havenn has joined #ruby
<nofxx> teaching* ... bad teachers I mean. There are lots.
AlphaAtom has quit [Read error: Connection reset by peer]
<imperator> wow, that was harsh
<HAL2328> but here i have context since i can just trace back. some questions i probably won't ask since i haven't ran into those problems
AlphaAtom has joined #ruby
<HAL2328> but like the p vs puts behavior
AlphaAtom has quit [Max SendQ exceeded]
casadei_ has joined #ruby
phutchins has joined #ruby
<HAL2328> i learned that thanks to a question someone else. in a classroom, i woulda missed out. that's all i meant.
havenwood has quit [Ping timeout: 265 seconds]
<Ox0dea> HAL2328: Sure, passive learning is fine as a supplement.
<HAL2328> nofxx, i agree. i took c++ in high school and it was so bad i didn't pursue cs in college
<imperator> HAL2328, ... what's the "2328" ... just curious
<Ox0dea> Just mind that you don't become content with passive learning.
<HAL2328> i thought cs wasn't for me
AlphaAtom has joined #ruby
<imperator> i've tried and dropped c++ classses 3 times - the teachers were fucking horrid
djbkd has joined #ruby
<Ox0dea> > Your best teacher is your last mistake.
<Ox0dea> At least, you should strive to make it so.
Balzrael has quit [Quit: Leaving]
solars has quit [Ping timeout: 246 seconds]
banister has quit [Ping timeout: 244 seconds]
<imperator> my favorite was the dude who required a book that was out of print, and would take cell phone calls from his wife in the middle of class
mib_mib has quit [Ping timeout: 246 seconds]
niemcu has quit [Ping timeout: 250 seconds]
<HAL2328> imperator, lol my teacher would just make us do book problems and he just sat there with a book and half of the time he fell asleep
zenguy_pc has joined #ruby
<HAL2328> imperator, the entire class goofed around. we never worked
<imperator> that's bad
<HAL2328> imperator, my name is a reference to a movie character can you figure it out?
<shmilan> I cannot believe the horrible teachers you guys have had.
[Butch] has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Ping timeout: 240 seconds]
<Ox0dea> >> 9000 / 2328.0
<ruboto> Ox0dea # => 3.865979381443299 (https://eval.in/430775)
<Ox0dea> Would've been nice if that'd come out to pi.
<imperator> HAL2328, we already have hal_9000 ;)
<HAL2328> yep that's why i had to go with the hexadecimal value of hal9000 :)
blackjid has quit [Max SendQ exceeded]
<hal_9000> haha
eightfold has joined #ruby
blackjid has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
<hal_9000> actually i have an underscore because a freenode guy aready had it without
<hal_9000> btw hi imperator :)
<imperator> i vote you change your name to "bowman" ;)
<HAL2328> haha
<HAL2328> so i guess im hal 9000 the third
<imperator> heya hal
<hal_9000> i knew a Frank Poole in real life in colege :)
Guest24 is now known as lele
<hal_9000> er, college even
justin_pdx has quit [Quit: justin_pdx]
AlphaAtom has quit [Read error: Connection reset by peer]
<hal_9000> imperator: did you see my link earlier or no?
<imperator> which? don't think so
AlphaAtom has joined #ruby
<miah> nobody is ever SAL-9000
<Ox0dea> >> 'hal'.to_i(23).to_s(27)
<hal_9000> i think i tagged you on FB, not sure - link is http://rubyhacker.com/hidden/excerpt-from-elixir4rubyists
<ruboto> Ox0dea # => "cia" (https://eval.in/430779)
<Ox0dea> We've been infiltrated!
<hal_9000> miah: I don’t recognize SAL :) in the original book/movie, the whole series was named HAL
<HAL2328> Ox0dea, 9000 = 0x2328 yep! they know who we are now
blackjid has quit [Max SendQ exceeded]
<Ox0dea> HAL2328: Huh?
blackjid has joined #ruby
ldnunes has quit [Quit: Leaving]
<Ox0dea> Bases 23 and 27 are not bases 10 and 16 where I'm from.
<miah> SAL-9000 is HAL's twin
<hal_9000> Ox0dea: if you read the book, every computer of that model was named HAL
<hal_9000> miah: yes, but that is not until 2010
<imperator> hal_9000, link no work
postmodern has joined #ruby
<hal_9000> i refer to the original book/movie 2001
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<hal_9000> imperator: bah, add .html to it
<miah> ya, i just said that nobody ever picks SAL-9000, its always HAL-9000
shmilan has quit [Ping timeout: 246 seconds]
<imperator> hal_9000, no joy
<hal_9000> miah: true story! i was just saying maybe there are a bunch of purists out there like me ;)
<HAL2328> i consided SAL. but i liked my 2328 idea better. it kept me low profile til imperator decided to invade myprivacy
<hal_9000> imperator: obviously i typo’d, let me see
<Ox0dea> >> 'sal'.to_i(36).to_s(35)
<ruboto> Ox0dea # => "two" (https://eval.in/430780)
<Ox0dea> Fitting.
devoldmx has joined #ruby
<hal_9000> some days i feel like HAL 3995, marked down from 9000, act now while supplies last!
Rollabunna has joined #ruby
havenn is now known as havenwood
<HAL2328> lol
rbennacer has quit [Remote host closed the connection]
<HAL2328> IBM = HAL + 1 to each character (H -> I, A -> B, L -> M)
<imperator> hal_9000, that worked, thanks
<hal_9000> Clarke denied that was the origin, though
naftilos76 has quit [Ping timeout: 240 seconds]
<hal_9000> though one has to wonder
howdoicomputer has joined #ruby
otherj has quit [Quit: .]
juanpablo_ has joined #ruby
<miah> interesting
<hal_9000> I actually exchamged emails with ACC once — he said, “Intrigued to hear from Hal! :)”
<miah> hah
<hal_9000> in the original book, HAL stood for “Heuristically-programmed ALgoritrhms” or something
frem_ has joined #ruby
<hal_9000> on the hex topic, my fave hex number is 3735928559 decimal
devoldmx has quit [Ping timeout: 265 seconds]
<Ox0dea> >> 3735928559.to_s 16
<ruboto> Ox0dea # => "deadbeef" (https://eval.in/430783)
chouhoul_ has quit [Remote host closed the connection]
ht__ has joined #ruby
<Ox0dea> >> 0xdeadbeefcafebabed00d
<ruboto> Ox0dea # => 1051570404360395033595917 (https://eval.in/430784)
Rollabunna has quit [Ping timeout: 268 seconds]
jgt1 has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
<Ox0dea> It's not prime.
banjara has quit [Read error: Connection reset by peer]
ruby-lang260 has joined #ruby
<hal_9000> great, now i’m taking a ribbing
nhhagen has quit [Remote host closed the connection]
banjara has joined #ruby
jmignault has quit [Quit: Quittin' time, Ralph]
<ruby-lang260> I inherited some code I cannot fully make out, can I get help here
<HAL2328> >> 9000.to_s(16)
<ruboto> HAL2328 # => "2328" (https://eval.in/430785)
<ruby-lang260> def optimize(hsh) hsh.reduce({}) do |new_hsh, (k,v)| new_hsh[k.to_sym] = v.kind_of?(Hash) ? optimize(v) : v new_hsh end end
<imperator> ruby-lang260, easier and better if you use a gist
<Ox0dea> ruby-lang260: The purpose of that method is to convert all the keys of a Hash to Symbols.
<Ox0dea> It is poorly named.
bigredboots has joined #ruby
<drbrain> it may not even be an optimization
<havenwood> 912559 is Prime, but there are other reasons to dislike it.
<Ox0dea> havenwood: It sums to 31, also prime.
allomov has quit [Remote host closed the connection]
MasterPiece has joined #ruby
webopsx has joined #ruby
oldbay has joined #ruby
<ruby-lang260> <Ox0dea> thank you
<Ox0dea> Sure thing.
<craysiii> prime numbers need to check their privilege.
dgs_ has joined #ruby
<Ox0dea> craysiii: They are the minority!
symbol_ has joined #ruby
casadei_ has quit [Remote host closed the connection]
<craysiii> yes but they hold all the numerical power
<Ox0dea> >> require 'prime'; 10000.times.count(&:prime?)
<ruboto> Ox0dea # => 1229 (https://eval.in/430791)
<Ox0dea> We are the ~12.3%.
allomov has joined #ruby
<dgs_> is there anyway to have .irbrc's PROMPT setting reevaluated either periodically, or after a command has run? (I've got an app that can connect to many different databases - I'd like to have the name of the database in the irb prompt to stop me accidentally working in the wrong databsae)
karapetyan has quit [Remote host closed the connection]
roolo has joined #ruby
acke has quit [Remote host closed the connection]
frem_ is now known as frem
finisherr has joined #ruby
<eam> craysiii: primes have many powers, sure, but it's debatable whether they're number one
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dseitz has joined #ruby
<craysiii> they can't be #1 since 1 isn't prime :)
zenguy_pc has quit [Read error: No route to host]
<eam> I believe you'll find some debate upon that very issue ;-)
casadei_ has joined #ruby
arup_r has quit [Quit: Leaving]
roolo has quit [Remote host closed the connection]
bigredboots has quit [Remote host closed the connection]
<craysiii> i don't want to open pandora's box
<eam> next up: whether 0.9999 repeating is equal to one
<Ox0dea> eam: That's really not up for debate. ;)
skade has quit [Quit: Computer has gone to sleep.]
<tobiasvl> of course it's not! you can tell just by looking at the numbers!!!
dseitz has quit [Client Quit]
umgrosscol has quit [Remote host closed the connection]
<eam> that's the magical property of a debate: everything is as long as someone's willing to debate it
<eam> see also: everyone who prefers vi over emacs
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dgs_> eam: i think you have that the wrong way round
<eam> see?
<tobiasvl> emacs is a perfectly fine OS. just too bad it ships with a mediocre text editor
swills has quit [Quit: brb]
<dgs_> =p
<eam> it's true though, I like vi -- and my favorite implementation is emacs
<dgs_> emacs is okay - doesn't really deserve all the bashing it gets
<eam> I actually really do use viper-mode, not kidding
<dgs_> viper?
<dgs_> bah
<dgs_> that's horrible =p
<bougyman> emacs is fine, so long as you have 64G of memory.
rakm has joined #ruby
<eam> it's fantastic, all the vi keybindings and an editor enginge with a reasonable language
bruno- has joined #ruby
zenguy_pc has joined #ruby
<eam> *cough* vimscript
<bougyman> elips being 'reasonable' ?
<eam> vs vimscript?
<Ox0dea> eam: You don't actually have trouble with .999... = 1, right?
<eam> Ox0dea: well that's an assignment to a literal so
<nofxx> bougyman, that's not true... days open now it's eating 90M of 16gb
<wasamasa> y'all should upgrade to evil
<bougyman> elvis!
<eam> emacs uses less memory than vim in most common configurations
<nofxx> bougyman, 500m virt
<eam> both are kinda insignificant
bigbadbear has quit [Ping timeout: 246 seconds]
<eam> eclipse on the other hand
<bougyman> bougyman 2519 0.6 0.0 52272 7928 pts/3 S+ 16:38 0:00 | \_ vim app.rb
<bougyman> that's with a TON of bundles loaded
<bougyman> show me your emacs.
<nofxx> and elasticsearch doing nothing: 800mb res / 7gb virt
<eam> starting up eclipse is its own agile task
<nofxx> actually if you filter my mem you'll only see java
wldcordeiro has joined #ruby
Zai00 has quit [Quit: Zai00]
<nofxx> 100mb per chromium tab... that's huge
<wasamasa> 100mb per emacs instance here
<bougyman> you seem to have failed to see my query to show me your emacs.
<nofxx> wasamasa, use more than one?
<wasamasa> nofxx: I use two usually and sometimes spawn extra ones for testing with a clean slate
<nofxx> bougyman, a sec
momomomomo_ has joined #ruby
morenoh149 has joined #ruby
<nofxx> nofxx 11080 0.1 0.6 594176 97244 tty2 Sl+ Sep08 1:53 emacs
<Ox0dea> dgs_: Have you tried this approach? https://stackoverflow.com/a/6075985
<bougyman> that's only like 10x larger of a footpring.
<imperator> >> require 'prime'; "optimus".to_i(27).prime?
<ruboto> imperator # => true (https://eval.in/430792)
<bougyman> sure, you can 'equate' that.
<wasamasa> htop tells me it's 144M RES
<nofxx> wasamasa, cool, was going to suggest projectile/perspective ... using it for just some weeks now, very cool
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 265 seconds]
<wasamasa> and 133M RES for the other one
<Ox0dea> >> require 'prime'; 27.prime? # imperator
<ruboto> Ox0dea # => false (https://eval.in/430793)
<dgs_> Ox0dea: no! i hadn't seen that - looks promising though
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
<dgs_> I'll give it a try - thanks =)
<wasamasa> as long as I don't use it to run a webserver, I don't really care about the memory usage
<Ox0dea> dgs_: It's wonky as hell, but it oughta do.
<dgs_> yeah
<Ox0dea> Godspeed.
dopamean_ has quit [Ping timeout: 246 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
* wasamasa goes to bed
DroidBurgundy has quit []
zenguy_pc has joined #ruby
<eam> memory is what, $5/gig?
<eam> I can afford at least $5 of computing equipment to run a text editor
<eam> hell, double that
dseitz has joined #ruby
finisherr has quit [Quit: finisherr]
symbol_ has quit [Ping timeout: 264 seconds]
iamvery has joined #ruby
mary5030 has quit [Remote host closed the connection]
bruno- has joined #ruby
finisherr has joined #ruby
mary5030 has joined #ruby
<ytti> too bad it doesnt scale
zenguy_pc has quit [Read error: Connection reset by peer]
<ytti> you can throw arbitrary amount of $5 and except to always get 1GB incremenet in memory
saddad has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
petricore has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
modern has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
arooni has quit [Ping timeout: 246 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
<eam> ytti: density becomes an issue, sure, but it's still awfully cheap
<eam> my laptop has 16G and it's pretty old
<eam> two years old?
bruno- has joined #ruby
petricore has joined #ruby
<ytti> sure, but if you'd want that extra 1GB
<ytti> it wouldn't cost 5USD
<ytti> it would be like 3000USD
bricker has joined #ruby
ruby-lang260 has quit [Ping timeout: 246 seconds]
Jackneill has quit [Remote host closed the connection]
brandon has joined #ruby
momomomomo has quit [Quit: momomomomo]
jackjackdripper has quit [Quit: Leaving.]
roxtrongo has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 268 seconds]
bigredboots has joined #ruby
<eam> ytti: about $300 actually, if I wanted to go to 32G
tkuchiki has joined #ruby
jackjackdripper has joined #ruby
bruno- has joined #ruby
<eam> but it turns out 16G is plenty to run several instances of both vi and emacs
jgt1 has joined #ruby
athinggoingon has quit [Ping timeout: 272 seconds]
iamvery has quit [Remote host closed the connection]
<imperator> like 3 emacs
<eam> speaking of memory hogs, iTerm2 is using about 3x as much as any of my editors
havenwood has quit [Ping timeout: 264 seconds]
but3k4_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<imperator> eam, now try eclipse
<eam> I'd rather not
<imperator> you'll try eclipse now, and you'll like it
tkuchiki has quit [Ping timeout: 246 seconds]
apt-get has quit [Remote host closed the connection]
<eam> ok I clicked the button. I'll check back in tomorrow when it's running
bruno- has quit [Ping timeout: 260 seconds]
<imperator> i tried using it for a while, it had a neat plugin architecture, but it was just so damned heavy
<imperator> eam ;)
jenrzzz has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
victortyau has quit [Quit: Leaving]
bruno- is now known as Guest86287
mikecmpbll has quit [Quit: i've nodded off.]
imperator has quit [Quit: Leaving]
dman777_alter has quit [Quit: Lost terminal]
poli has quit [Ping timeout: 240 seconds]
symbol_ has joined #ruby
oldbay has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest86287 has quit [Read error: Connection reset by peer]
Eiam_ has joined #ruby
yfeldblu_ has joined #ruby
bruno-_ has joined #ruby
HAL2328 has quit [Quit: Leaving]
blackmesa has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
pecpec_ has quit [Quit: Leaving...]
Soda has quit [Ping timeout: 244 seconds]
pandaant has joined #ruby
krz has quit [Ping timeout: 256 seconds]
cfloare_ has quit [Ping timeout: 250 seconds]
bruno-_ has quit [Ping timeout: 246 seconds]
allomov has quit [Ping timeout: 244 seconds]
cgfbee has quit [Ping timeout: 250 seconds]
bruno-_ has joined #ruby
zenguy_pc has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m8 has quit [Quit: Sto andando via]
chouhoul_ has joined #ruby
EllisTAA has joined #ruby
bruno-_ has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EllisTAA> when i run this method i get a collection of objects back, but i only want the first object, i tried putting the object in an array and calling .first but that didn’t work
poli has joined #ruby
minotep has quit [Ping timeout: 272 seconds]
whippythellama has quit [Quit: WeeChat 1.3]
hessparker has joined #ruby
oldbay has joined #ruby
choke has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
<hessparker> hey, I was wondering if anyone knows of a good tool for profiling ruby tests
havenwood has joined #ruby
<hessparker> I am looking for something that can point me at the slowest test contexts. anyone know something like that?
pyon has quit [Quit: F...ix you, Emacs.]
benlieb has joined #ruby
pyon has joined #ruby
dmolina has joined #ruby
Soda has joined #ruby
dmolina has quit [Client Quit]
DroidBurgundy has joined #ruby
shmilan has joined #ruby
DroidBurgundy has quit [Client Quit]
blackmesa has quit [Quit: WeeChat 1.3]
workmad3 has quit [Ping timeout: 252 seconds]
lkba_ has joined #ruby
last_staff has quit [Quit: last_staff]
jenrzzz has joined #ruby
benlieb has quit [Quit: benlieb]
enebo has quit [Quit: enebo]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
fxn has quit [Quit: zZzZzZ...]
lkba has quit [Ping timeout: 246 seconds]
meph has joined #ruby
ranchodev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> eam, where can you get laptop with 32GB of memory for 300USD?
dopamean_ has joined #ruby
<craysiii> Antarctica
jenrzzz has quit [Ping timeout: 246 seconds]
polishdub has quit [Quit: Leaving]
jenrzzz has joined #ruby
rwyoung has quit [Ping timeout: 246 seconds]
freerobby has quit [Quit: Leaving.]
eightfold has quit [Quit: eightfold]
HAL2328 has joined #ruby
pandaant has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
<pipework> ytti: lul
j4cknewt has joined #ruby
jgt1 has quit [Ping timeout: 272 seconds]
weemsledeux has joined #ruby
freezeve_ has quit []
Voker57 has quit [Remote host closed the connection]
gambl0re has joined #ruby
bigredboots has quit [Remote host closed the connection]
cgfbee has joined #ruby
oldbay has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dgs_> Ox0dea: that worked =)
griffindy has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
poli has quit [Ping timeout: 255 seconds]
cfloare has joined #ruby
zlogan85 has joined #ruby
karapetyan has joined #ruby
havenn has joined #ruby
moss has quit [Ping timeout: 244 seconds]
Aria has quit [Ping timeout: 246 seconds]
tjohnson has joined #ruby
kirun has quit [Quit: Client exiting]
tvw has quit []
athinggoingon has joined #ruby
blackjid has quit [Max SendQ exceeded]
axisys has quit [Remote host closed the connection]
blackjid has joined #ruby
sevenseacat has joined #ruby
RandyT has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 244 seconds]
zlogan85 has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuxero has joined #ruby
tuxero has quit [Remote host closed the connection]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dseitz has joined #ruby
minimalism has quit [Quit: Lost terminal]
weemsledeux has joined #ruby
PaulVern has joined #ruby
esauOp has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> dgs_: Wunderbar!
<PaulVern> When running a shell command from within ruby, is there a way I can send it to the background and have my script move on?
jenrzzz has joined #ruby
<PaulVern> eg: irb(main):002:0> `sleep 10 &`
bigbadbear has joined #ruby
dgutierrez1287 has joined #ruby
nahtnam has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
<PaulVern> I've also tried irb(main):002:0> `nohup sleep 10 &`
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hekin has joined #ruby
chills42 has joined #ruby
c1v0 has quit []
Sou|cutter has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
aredridel has joined #ruby
Soda has quit [Remote host closed the connection]
dseitz has quit [Ping timeout: 255 seconds]
EasyCo has joined #ruby
banister has joined #ruby
<PaulVern> nvm, found it
<PaulVern> Process.fork
<Ox0dea> Also Process.detach.
bruno- has joined #ruby
PaulVern has quit [Quit: Leaving]
dgutierrez1287 has quit [Ping timeout: 272 seconds]
<Ox0dea> PaulVern > denvercoder9.
rwyoung has joined #ruby
michaeldeol has quit [Client Quit]
<eam> ytti: it's $300 to replace my current 16G with a new 32G
<eam> and that's on the expensive end as it's apple
<eam> memory is pretty cheap
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moss has joined #ruby
baweaver has joined #ruby
totimkopf has joined #ruby
symbol_ has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Client Quit]
<ytti> two years old mbp eats 32GB?
firstdayonthejob has quit [Ping timeout: 255 seconds]
JoL1hAHN has quit [Quit: WeeChat 1.3]
<ytti> gonna call bs on that
bruno- has joined #ruby
michaeldeol has joined #ruby
symbol_ has joined #ruby
dseitz has joined #ruby
bender_unit has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
zenguy_pc has joined #ruby
AlphaAtom has joined #ruby
benlieb has joined #ruby
justin_pdx has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
krz has joined #ruby
fierycatnet has joined #ruby
hessparker has quit [Ping timeout: 252 seconds]
fierycatnet has quit [Client Quit]
<eam> I might even be running in 1x16G so it'd be cheaper (doubt it though)
AlphaAtom has quit [Client Quit]
<ytti> oh you have MP
<ytti> i thought MBP
bruno- has quit [Ping timeout: 255 seconds]
<ytti> yeah adding 1GB to my laptop wouldn't cost 5USD
<eam> oh is that a mac pro? haha
<ytti> but more like 3000USD
rwyoung has quit [Ping timeout: 272 seconds]
<eam> ytti: I do have a mbp, I misread :)
benlieb has quit [Client Quit]
zenguy_pc has quit [Read error: Connection reset by peer]
<ytti> yeah i don't think any MBP officially eats 32GB
<ytti> the 'ECC' is kinda give away
fierycatnet has joined #ruby
<dgs_> ahhh. i have a mbp with only 8gig
<ytti> intel does not have laptop chipsets which support ECC memory
<ytti> which is damn shame
zenguy_pc has joined #ruby
<dgs_> would love to be able to upgrade it to 16G
<dgs_> =/
<dgs_> stupid apple
<eam> ytti: that's surprising - I'd expect for them to have doubled since 2013
fierycatnet is now known as _ferz
<eam> in any event, pretend I have the 8G config and I'm adding memory -still cheap :)
<eam> my bad for already having the max
<ytti> yeah i agree, if we pretend, it cost 5USD to add 1GB and it scales
_ferz is now known as ferzco
<eam> nothing scales to infinity, but it's still cheap up to 16G modules
ferzco is now known as ferz_co
<eam> but yes, density is not infinite
krz has quit [Ping timeout: 264 seconds]
juanpablo_ has quit [Quit: (null)]
ferz_co is now known as ferz_
meatherly has quit []
zenguy_pc has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
zenguy_pc has joined #ruby
spider-mario has quit [Remote host closed the connection]
baweaver has joined #ruby
devoldmx has joined #ruby
Rollabunna has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
<VeryBewitching> Having an SSD and 16GB on my workstation is happy, I'm glad technology has arrived here.
j4cknewt has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
juanpablo_ has joined #ruby
ngscheurich has quit [Ping timeout: 265 seconds]
rubie has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 252 seconds]
minimalism has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
sp4rrow has joined #ruby
j4cknewt has quit [Ping timeout: 244 seconds]
meatherly has joined #ruby
Unopoo1 is now known as Unopoo
rcvalle has quit [Quit: rcvalle]
jackjackdripper has quit [Quit: Leaving.]
shock_one has quit [Remote host closed the connection]
stardiviner has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
j4cknewt has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: http://radiux.io/]
symbol_ has quit [Quit: WeeChat 1.1]
greister has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
WillAmes has quit [Remote host closed the connection]
meatherly has quit []
jefus has joined #ruby
YuhMon has joined #ruby
<YuhMon> wah gwaan mi breddas???
dfockler has quit [Remote host closed the connection]
<Radar> What language is that?
RandyT has quit [Quit: ZNC - http://znc.in]
<YuhMon> english mon
Yzguy has joined #ruby
<YuhMon> yuh no speek english?
j4cknewt has joined #ruby
quazimodo has joined #ruby
<dgs_> hmmm. some sort of african phonetic pronouciation thing?
solocshaw has quit [Ping timeout: 250 seconds]
<YuhMon> no dont be racist mon
<YuhMon> out of many one people mi bredda
jobewan has quit [Quit: Leaving]
<dgs_> hmmm. how is that racist?
WeZZard has joined #ruby
<YuhMon> yuh a seh mi african wen i no gwaan lef a africa
Yzguy has quit [Quit: Zzz...]
SCHAAP137 has quit [Quit: Leaving]
jefus has left #ruby ["Leaving"]
frem has quit [Quit: Connection closed for inactivity]
<dgs_> right, well that's that conversation done
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
<YuhMon> i speek english and yu nuh nono cuz yu neva got da bes mark in english and fi no gud fi lief
sevenseacat has left #ruby ["."]
ranchodev has joined #ruby
NeverDie has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
shock_one has joined #ruby
pyon is now known as tem-pyon-ral
hekin has quit [Remote host closed the connection]
karapetyan has joined #ruby
Eiam_ has joined #ruby
WeZZard has left #ruby ["Textual IRC Client: www.textualapp.com"]
WeZZard has joined #ruby
pyon has joined #ruby
tokik_ has quit [Quit: leaving]
WillAmes has joined #ruby
chills42 has quit [Remote host closed the connection]
tem-pyon-ral has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
chills42 has joined #ruby
rubie has joined #ruby
tokik has joined #ruby
WeZZard has left #ruby ["Textual IRC Client: www.textualapp.com"]
<bricker> troll detected
j4cknewt_ has joined #ruby
j4cknewt has quit [Read error: Connection reset by peer]
* baweaver polishes hammer
<YuhMon> mi from da greatestcountry in da world jamaica
<YuhMon> mi ah king in mi yaad
<baweaver> !mute YuhMon no mahn, no
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgs_ is now known as metusine
Azure|dc has joined #ruby
Eiam_ has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
Azure has quit [Ping timeout: 264 seconds]
patrick_star has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
<nofxx> knew a guy from jamaica... my english is bad but, talked with lots of ppl US, UK but jamaica.. man can't understand shit.
<nofxx> and if you say "please talk slow" is worst
Jardayn has quit [Quit: Leaving]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<craysiii> nofxx its hard to understand because not only the accent, they have a unique lexicon
EllisTAA has quit [Quit: EllisTAA]
EllisTAA has joined #ruby