apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
levisba__ has joined #ruby
levisba__ has quit [Client Quit]
OffTheRails has quit [Ping timeout: 272 seconds]
rockdon_ has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
agjacome has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
kireevco has joined #ruby
SilkFox has joined #ruby
linojon has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Jarboe has joined #ruby
skolman_ has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
skolman has joined #ruby
M3M0CooL has joined #ruby
psykotron has joined #ruby
banister has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
{xenomorph} has joined #ruby
kireevco has quit [Quit: Leaving.]
kies has joined #ruby
mikepack has joined #ruby
i_s has quit [Ping timeout: 245 seconds]
zeroNones has joined #ruby
skolman has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
banister has quit [Client Quit]
spacemud has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
<pontiki> i think it'd be difficult to find a case for Foo::Foo
nfk has quit [Quit: yawn]
mikepack has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Remote host closed the connection]
<pontiki> but i'm sure someone would come up with one
robustus|Off has quit [Ping timeout: 255 seconds]
diegovio1 has joined #ruby
nfk has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
Rollabunna has joined #ruby
gauke has quit [Quit: gauke]
diegoviola has quit [Ping timeout: 258 seconds]
timonv_ has quit [Ping timeout: 260 seconds]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
diegovio1 is now known as diegoviola
robustus|Off has joined #ruby
ixti has quit [Quit: WeeChat 1.0.1]
graft has quit [Ping timeout: 255 seconds]
robustus|Off is now known as robustus
thagomizer has quit [Quit: Leaving.]
iamjarvo has joined #ruby
larsam has quit [Quit: No Ping reply in 60 seconds.]
<shevy> oh I have one
<shevy> you simply put a standalone class into a namespace
jlast has quit [Ping timeout: 265 seconds]
<shevy> so that we don't pollute the main one with stuff like class FindVideoFiles
<shevy> class Backup
mistermocha has joined #ruby
<shevy> class Wallpaper
<shevy> damn, I wrote a lot of crap over the years
fabrice31 has joined #ruby
SilkFox_ has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
<apeiros> shevy: and why not use class Foo as the namespace?
zaid_h has joined #ruby
SilkFox has quit [Ping timeout: 255 seconds]
sepp2k1 has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
livingstn has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd has joined #ruby
prasselpikachu has joined #ruby
nfk has quit [Quit: yawn]
Snowstormer has joined #ruby
mpistone has quit [Remote host closed the connection]
Kilo`byte has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
djbkd has quit [Quit: My people need me...]
mistermocha has joined #ruby
drawingthesun has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> it could conflict with another one there
duncannz has quit [Read error: Connection reset by peer]
KC9YDN has quit [Ping timeout: 258 seconds]
tokik has quit [Ping timeout: 260 seconds]
martin_work has quit [Quit: martin_work]
Snowstormer has quit [Ping timeout: 246 seconds]
prasselpikachu has quit [Ping timeout: 250 seconds]
Kilo`byte has quit [Ping timeout: 260 seconds]
duncannz has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
t_mmyv has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
agrinb has joined #ruby
melik has quit [Quit: (null)]
jhass is now known as jhass|off
melik has joined #ruby
netmask has joined #ruby
Soda has quit [Remote host closed the connection]
netmask has quit [Remote host closed the connection]
netmask has joined #ruby
prasselpikachu has joined #ruby
coderdad has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
t_mmyv has quit [Client Quit]
Channel6 has joined #ruby
Snowstormer has joined #ruby
havenwood has quit []
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
entrenador has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
duncannz has quit [Quit: Leaving]
duncannz has joined #ruby
spacemud has joined #ruby
melik has quit [Ping timeout: 272 seconds]
Takle has quit []
duncannz has quit [Remote host closed the connection]
coderdad has quit [Ping timeout: 244 seconds]
Kilo`byte has joined #ruby
coderdad has joined #ruby
M3M0CooL has quit []
martin_work has joined #ruby
xymbol has joined #ruby
cndiv has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
klaut has quit [Remote host closed the connection]
duncannz has joined #ruby
x77686d has quit [Quit: x77686d]
Hobogrammer has joined #ruby
ghostmoth has joined #ruby
duncannz has quit [Remote host closed the connection]
Asher has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
ooloo has joined #ruby
mary5030 has quit [Remote host closed the connection]
ghostmoth has quit [Client Quit]
ringaring has joined #ruby
gccostabr has quit [Quit: See you later!]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Remote host closed the connection]
iamjarvo has joined #ruby
nobitanobi has quit []
ringaroses2 has quit [Ping timeout: 255 seconds]
spyderman4g63 has joined #ruby
larsam has joined #ruby
mistermocha has quit [Remote host closed the connection]
iamjarvo has quit [Read error: Connection reset by peer]
nfk has joined #ruby
iamjarvo has joined #ruby
rockdon_ has joined #ruby
i_s has joined #ruby
Lewix has joined #ruby
ringaring has quit [Ping timeout: 265 seconds]
gbchaosmaster has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Ping timeout: 245 seconds]
rockdon_ has quit [Client Quit]
x77686d has joined #ruby
sevvie has joined #ruby
duncannz has joined #ruby
i_s has quit [Ping timeout: 245 seconds]
Mia has quit [Read error: No route to host]
livingstn has quit [Ping timeout: 256 seconds]
Mia has joined #ruby
manzo has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
wallerdev has quit [Quit: wallerdev]
jlast has joined #ruby
martin_work has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
hackeron has quit [Ping timeout: 265 seconds]
hackeron has joined #ruby
hackeron has joined #ruby
hackeron has quit [Changing host]
vincent1 has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
entrenador has quit [Quit: Textual IRC Client: www.textualapp.com]
lbwski has joined #ruby
yetanotherdave has quit [Ping timeout: 265 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
aspires has quit []
msx has quit [Ping timeout: 258 seconds]
Spami has joined #ruby
coderdad has quit [Remote host closed the connection]
matchaw has quit [Remote host closed the connection]
msx has joined #ruby
aspires has joined #ruby
_lexjm has joined #ruby
nonks has quit [Ping timeout: 258 seconds]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
aspires has quit [Ping timeout: 260 seconds]
vincent1 has quit [Ping timeout: 244 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zaid_h has quit [Quit: ZZZzzz…]
bigmac is now known as i8igmac
aspires has joined #ruby
njames has joined #ruby
aspires has quit [Client Quit]
duncannz has quit [Remote host closed the connection]
agjacome_ has joined #ruby
duncannz has joined #ruby
melik has joined #ruby
agjacome has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
netmask has quit []
jack_rabbit has quit [Ping timeout: 272 seconds]
godd2 has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
agjacome has joined #ruby
agjacome_ has quit [Ping timeout: 244 seconds]
tanema has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
melik has quit [Quit: (null)]
aCicloid is now known as cicloid
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
programmerq has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
matchaw has joined #ruby
tkuchiki has joined #ruby
diegoviola has joined #ruby
melik has joined #ruby
boombadaroomba has joined #ruby
thsig has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 240 seconds]
thsig has joined #ruby
matchaw has joined #ruby
thsig_ has joined #ruby
tjsousa has joined #ruby
Photism has quit [Quit: Leaving]
boombadaroomba has quit [Ping timeout: 245 seconds]
thsig has quit [Ping timeout: 265 seconds]
<shevy> oh man
cicloid is now known as aCicloid
<shevy> rewriting code is no fun
elektronaut has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
matchaw has quit [Ping timeout: 250 seconds]
drPoggs has joined #ruby
echevemaster has joined #ruby
xymbol has quit [Quit: Lingo: www.lingoirc.com]
xymbol has joined #ruby
goshdarnyou has joined #ruby
tyll_ has joined #ruby
njames has quit [Remote host closed the connection]
emmesswhy has joined #ruby
otakbeku has quit [Quit: leaving]
speaking1ode has joined #ruby
tyll has quit [Ping timeout: 245 seconds]
toretore has quit [Quit: This computer has gone to sleep]
xymbol has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
xymbol has joined #ruby
spastorino has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
jnollette has joined #ruby
oleo is now known as Guest93539
oleo__ has joined #ruby
jlast has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
xaxisx has joined #ruby
spicerack has joined #ruby
Rollabunna has joined #ruby
coderdad has joined #ruby
programmerq has joined #ruby
Guest93539 has quit [Ping timeout: 272 seconds]
xaxisx has quit [Client Quit]
jlast has quit [Ping timeout: 265 seconds]
luckyruby has joined #ruby
xaxisx has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
Rollabunna has quit [Ping timeout: 255 seconds]
hellangel7 has quit [Read error: Connection reset by peer]
threesixes has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
lbwski has quit []
gtrak has joined #ruby
maestrojed has joined #ruby
nonks has joined #ruby
speaking1ode has quit [Ping timeout: 260 seconds]
joast has quit [Ping timeout: 246 seconds]
matchaw has joined #ruby
timonv_ has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
gsd has joined #ruby
nonks has quit [Ping timeout: 272 seconds]
spacemud has quit [Quit: ZNC - http://znc.in]
matchaw has quit [Ping timeout: 250 seconds]
timonv_ has quit [Ping timeout: 255 seconds]
drkyro has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Cache_Money has joined #ruby
dopie has joined #ruby
nateberkopec has joined #ruby
Cache_Money has quit [Client Quit]
matchaw has joined #ruby
matchaw has quit [Client Quit]
luckyruby has quit [Ping timeout: 255 seconds]
melik has quit [Quit: (null)]
soulcake has quit [Quit: Quack.]
matchaw has joined #ruby
soulcake has joined #ruby
ghr has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
matchaw has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
matchaw has joined #ruby
postmodern has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 246 seconds]
maestrojed has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
psykotron has quit [Quit: Connection closed for inactivity]
SilkFox_ has joined #ruby
speaking1ode has joined #ruby
coderdad has quit [Remote host closed the connection]
joast has joined #ruby
vincent1 has joined #ruby
stretchlimo has joined #ruby
parduse is now known as Guest54240
Guest54240 has quit [Killed (asimov.freenode.net (Nickname regained by services))]
iamjarvo has joined #ruby
jobewan has joined #ruby
shosti has joined #ruby
parduse has joined #ruby
i_s has joined #ruby
stretchlimo has quit [Client Quit]
vincent1 has quit [Ping timeout: 258 seconds]
zorak8 has quit [Ping timeout: 240 seconds]
xaxisx has quit [Quit: xaxisx]
alvaro_o has quit [Quit: Ex-Chat]
i_s has quit [Ping timeout: 250 seconds]
SilkFox_ has quit [Ping timeout: 265 seconds]
larissa has joined #ruby
spyderman4g63 has joined #ruby
charliesome has joined #ruby
braincrash has quit [Quit: bye bye]
tanema has quit []
zorak8 has joined #ruby
shosti has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
hackeron has quit [Ping timeout: 250 seconds]
spyderman4g63 has quit [Ping timeout: 260 seconds]
hackeron has joined #ruby
livingstn has joined #ruby
braincrash has joined #ruby
thsig_ has quit []
mpistone has joined #ruby
yfeldblum has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
rshetty has quit [Remote host closed the connection]
livingstn has quit [Ping timeout: 256 seconds]
livingstn has joined #ruby
jlast has joined #ruby
charliesome has quit [Quit: zzz]
thsig has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
jlast has quit [Ping timeout: 260 seconds]
hiyosi has quit [Quit: WeeChat 1.0]
c107 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
chinaski has quit [Remote host closed the connection]
narcan has joined #ruby
_lexjm has quit [Read error: Connection reset by peer]
tjsousa has quit [Quit: (null)]
gtrak has quit [Ping timeout: 272 seconds]
_lexjm has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
Mia has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
larissa has quit [Quit: Leaving]
<shevy> why does puts actually append a newline to input?
weemsledeux has quit [Client Quit]
<dr_toboggan> shevy: convenience
kaspergrubbe has joined #ruby
rshetty has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
tier has joined #ruby
tier has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
endash has quit [Quit: endash]
kaspergrubbe has quit [Ping timeout: 260 seconds]
Scotteh_ has joined #ruby
mpistone has quit [Remote host closed the connection]
gusblan has joined #ruby
zorak8 has joined #ruby
Scotteh has quit [Ping timeout: 246 seconds]
skolman_ has joined #ruby
<eam> because otherwise it would be print?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rcs has quit [Excess Flood]
BadQuanta has joined #ruby
ghr has joined #ruby
<shevy> well
<shevy> >> puts "foo"
<eval-in__> shevy => foo ... (https://eval.in/207394)
rshetty has quit [Remote host closed the connection]
<shevy> and puts "foo\n" one \n is ignored
<shevy> that confused me the first time I saw it
<shevy> I always thought that puts was chosen because it means "put string"
<shevy> but the newline still confuses me
<eam> that's pretty odd, looks like a bug to me
ghr has quit [Ping timeout: 260 seconds]
<eam> shouldn't puts() append $\ ? it doesn't seem to
<arrubin> "Writes a record separator (typically a newline) after any that do not already end with a newline sequence."
mattmcclure has quit [Quit: Connection closed for inactivity]
rcs has joined #ruby
<eam> $\ is the output record separator, and is typically \n
<eam> actually ruby does it like perl, it's nil by default
<eam> does ruby ever use $\?
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<eam> ah, it's only used for print
<eam> puts ignores $\
<eam> that's .... odd
narcan has joined #ruby
<eam> rb_rs = rb_default_rs = rb_usascii_str_new2("\n");
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> it's hardcoded, it doesn't refer to $\
<eam> it probably should
nonks has joined #ruby
<eam> print() does the right thing at least
<eam> if (RSTRING_LEN(line) == 0 ||
<eam> !str_end_with_asciichar(line, '\n')) {
<eam> hardcodes it in two places =/
<shevy> hehehe
<shevy> so puts calls #to_s on an object?
<eam> rb_define_hooked_variable("$\\", &rb_output_rs, 0, rb_str_setter);
<eam> so rather than use $\ it makes a copy of the default value and only ever uses that
shosti has joined #ruby
luckyruby has joined #ruby
<arrubin> eam: Not only is $/ not undef by default in Perl, but it changes for each platform.
dreamfighter has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
<eam> $\, not $/
<eam> we're talking about the output record separator
<arrubin> $\ rather.
<eam> and it is
fabrice31 has joined #ruby
dreamfighter has quit [Changing host]
dreamfighter has joined #ruby
<shevy> haha
<eam> $ perl -we'print $\'
<eam> Use of uninitialized value $\ in print at -e line 1.
<eam> I assure you
<shevy> see what happens when you use short variables like that
<shevy> people confuse them!
<eam> IFS is set, OFS is not
<arrubin> Sorry, I am thinking about the fact that \n changes for each platform.
<eam> arrubin: yeah, agree
<eam> however in ruby it does not!
<eam> it's hardcoded '\n' all over io.c
<arrubin> eam: It is actually a pain that it does.
<arrubin> In Perl.
<eam> no?
<eam> it's really important that it changes
dreamfighter has left #ruby [#ruby]
<eam> that's how you write portable code
<eam> IFS changes in ruby too
nonks has quit [Ping timeout: 272 seconds]
<shevy> but if you use puts in ruby, it works on windows too
<eam> it looks like just OFS that's busted
<arrubin> eam: Not when you are dealing with things like network protocols that do not change between platforms and people use \n which works on some platforms but not others.
<eam> when you're dealing with network protocols you use \r\n because the network protocol is often different than what your platform uses
<arrubin> eam: No, you cannot.
<eam> (\r\n or whatever the spec is)
<arrubin> Because \n changes.
mary5030 has quit [Remote host closed the connection]
<eam> arrubin: no
<eam> \n never changes
<arrubin> In Perl it does.
<eam> wrong
<arrubin> It is CRLF on Windows.
<eam> no, $\ and $/ change
<arrubin> And LF on UNIX-like OSes.
<eam> \n and \r never change
emmesswhy has quit [Quit: Leaving]
<eam> they always represent a single byte
shosti has quit [Ping timeout: 250 seconds]
<eam> it's the same in ruby, the only difference appears to be there's some unix brain damage in io.c and $\ is assumed to be \n in a few areas
<eam> and that's the C \n btw
gusblan has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<eam> as in 0x0a
livingstn has joined #ruby
gusblan has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<arrubin> C and Perl both translate on write, which makes it unacceptable for network protocols on Windows.
<eam> oh holy cow
<eam> you're right, that's insane (looks like you disable it with binmode)
<arrubin> I only know this because I used to work on TCP/IP programs on Windows in Perl.
<eam> is ... that new? I guess it's been a very long time since I've used perl/windows
<arrubin> It is not new.
yfeldblum has joined #ruby
<eam> I mean like last two decades new
<arrubin> That I do not know.
<arrubin> I have only been programming slightly longer and do not remember.
<eam> $^I disables it, looks like
<arrubin> Windows did not really matter two decades ago though.
<shevy> oh damn
<shevy> you fossil programmers you
<eam> I haven't used it since 2000
<eam> 1.5 I suppose
<shevy> you are the new COBOL hackers!
<eam> well that's super dumb
<eam> I'm disappointed in perl
<shevy> \o/
<shevy> I SHALL RECORD THIS IN MY IRC LOG FILE
<arrubin> eam: So are many Perl programmers at this point, which is why we are moving to Ruby. =P
<eam> for C I assume that's done in the stdio layer, which you wouldn't be using for the network anyway
<eam> arrubin: well ruby hardcodes \n which is even worse
<shevy> arrubin yay \o/
<eam> or at least, equally problematic
<eam> arrubin: and to be fair, you wouldn't use print for network i/o anyway
<eam> that's what sysread/write is for
<eam> print is also unsuitable for the network because it masks write errors
ghostmoth has joined #ruby
<eam> still nuts though, io layers are gross
luckyruby has quit [Ping timeout: 255 seconds]
<arrubin> eam: We did use sysread/write. The problem remained.
<arrubin> And binmode just prevented Perl from attempting to translate it.
<arrubin> Which we needed because HL7 uses CR as a segment separator.
<arrubin> And we did not want them translated to CRLF.
<eam> if you use sysopen/read/write you should bypass the perlio layer (similar setup in ruby)
<eam> the convenience i/o layers aren't suitable for anything other than casual printing to consoles
<eam> they have crap like mutexes in them and all sorts of crazy problems (including C stdio)
<eam> I'm going to only say "should" since I apparently don't know the state of this on windows
<eam> but if it does otherwise it's totally a bug
freezey has joined #ruby
ylluminarious has quit [Quit: Leaving...]
sepp2k1 has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
qmfnp has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby
IcyDragon has quit [Quit: Space~~~]
aCicloid is now known as cicloid
<shevy> <eam> I'm disappointed in perl
<eam> shevy: it's true
<shevy> I'm gonna print this out and put it on a wall in bright pink surrounding borders
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
jason__ has joined #ruby
<eam> disappointment is pretty much an integral part of using software
codeFiend has quit [Quit: codeFiend]
jason__ has quit [Client Quit]
gusblan has quit [Remote host closed the connection]
jlast has joined #ruby
Rollabunna has joined #ruby
freezey has quit [Ping timeout: 272 seconds]
<shevy> yeah
<shevy> and using computers
<shevy> I am constantly being called to help fix a windows machine for my mother
<arrubin> I escaped the family IT business long ago.
<arrubin> I told them to buy computers from some company that would provide them with (bad) support.
<arrubin> Then I stopped using Windows at home and told them that I did not know how to help them anymore.
<shevy> lol
<shevy> in my case it is true, I forgot so much... respectively, I never learned to deal with vista/win 7 and beyond
<eam> I used to work for microsoft
<shevy> it all feels that they have added lots of layers of useless restrictions for no real purpose or functional gains
<eam> don't know windows though
skolman_ has quit [Ping timeout: 265 seconds]
<arrubin> I am actually forced to use Windows at work right now, but I attempt to remain as ignorant as possible.
livingstn has quit []
jlast has quit [Ping timeout: 255 seconds]
<shevy> lol
Rollabunna has quit [Ping timeout: 246 seconds]
<shevy> well
<shevy> at least ruby works on windows
<shevy> so I think about 80% of my scripts should work too
ARCADIVS has joined #ruby
Nieralyte has joined #ruby
Atttwww has quit [Ping timeout: 260 seconds]
CodeBunny has joined #ruby
inspectah_stack has joined #ruby
almostworking has joined #ruby
agjacome has quit [Quit: leaving]
almostworking has left #ruby [#ruby]
mityaz has joined #ruby
fuhgeddaboudit has joined #ruby
vincent1 has joined #ruby
benzrf is now known as benzrf|offline
<eam> wow, so rb_default_rs basically means hardcoded \n
<eam> assumptions everywhere that it's \n for both input/output
luckyruby has joined #ruby
cicloid is now known as aCicloid
ghr has joined #ruby
mercwithamouth has joined #ruby
goodenough has joined #ruby
i_s has joined #ruby
atmosx has quit [Remote host closed the connection]
atmosx has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
diegovio1 has joined #ruby
kobain has joined #ruby
Biohazard has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
i_s has quit [Ping timeout: 244 seconds]
rshetty has quit [Remote host closed the connection]
mary5030 has joined #ruby
maestrojed has joined #ruby
zeroNones has quit [Ping timeout: 272 seconds]
vincent1 has quit [Ping timeout: 265 seconds]
zeroNones has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby
Blizzy has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
nonks has joined #ruby
robbyoconnor has joined #ruby
Nieralyte has quit [Quit: Nieralyte]
Nieralyte has joined #ruby
Biohazard has quit [Quit: tropicraft.net]
Rollabunna has joined #ruby
nonks has quit [Ping timeout: 244 seconds]
spyderman4g63 has joined #ruby
hackeron has quit [Ping timeout: 260 seconds]
gsd has joined #ruby
Darryl has joined #ruby
zeroNone_ has joined #ruby
hackeron has joined #ruby
spyderman4g63 has quit [Ping timeout: 260 seconds]
zeroNones has quit [Ping timeout: 265 seconds]
c107 has joined #ruby
psykotron has joined #ruby
gsd has quit [Client Quit]
Gabri has joined #ruby
renderful has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
Gabri has quit [Client Quit]
jlast has joined #ruby
renderful has quit [Ping timeout: 272 seconds]
Jarboe has quit []
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
MasterPiece has joined #ruby
mistermocha has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jlast has quit [Ping timeout: 265 seconds]
a_ has joined #ruby
timonv_ has joined #ruby
maletor has joined #ruby
ndrei has joined #ruby
SilkFox has joined #ruby
timonv_ has quit [Ping timeout: 258 seconds]
fantazo has joined #ruby
thsig has quit [Remote host closed the connection]
Morkel has joined #ruby
zeroNone_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodenough has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
goodenough has joined #ruby
aspires has joined #ruby
gsd has joined #ruby
hiyosi has joined #ruby
govg has quit [Quit: leaving]
vic has joined #ruby
SilkFox has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
<vic> hi guys! can anyone help me with a word problem that is giving me a lot of trouble?
linojon has quit [Quit: linojon]
goodenough has quit [Ping timeout: 255 seconds]
gsd has quit [Client Quit]
<vic> anyone? :O so many people here
fabrice31 has joined #ruby
<Nilium> No.
Brando753 is now known as Anon827812
<vic> Thanks Nilium. Super nice.
Eiam has joined #ruby
mpistone has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
Anon827812 is now known as Brando753
<pontiki> vic: !ask2ask
<helpa> vic: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<Nilium> I remember word problems from early math books. I ain't going back there, man.
<Nilium> It's hell, man.
<vic> Alright. Here's the world problem: http://pastebin.com/nB39ZTFv
<vic> And here's my solution so far: http://pastebin.com/0ppjMpS8
<vic> I'm stuck on figuring out how to make an algorithm to figure out what ingredients to combine/create to maximize the number of potions
lolmaus has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
fabrice31 has quit [Ping timeout: 258 seconds]
<vic> And i've assumed so far that I should just make as many potions as possible with the initial ingredients, but that might not be the case at all now that I think about it
mpistone has quit [Client Quit]
lolmaus has joined #ruby
nonks has joined #ruby
boombadaroomba has joined #ruby
<vic> hmm so now I see EON and WOB are useless as they're not used in the potion, so those can all be converted at any point to AF and TOW
a_ has quit [Ping timeout: 245 seconds]
SilkFox_ has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
abuzze_ has quit [Ping timeout: 265 seconds]
<pontiki> vic, it's not actually a #ruby problem; it's a maths problem
tokik has joined #ruby
boombadaroomba has quit [Ping timeout: 272 seconds]
nonks has quit [Ping timeout: 272 seconds]
<waxjar> doesnt the book give any clue as to what type of problem it is?
alem0lars has joined #ruby
<pontiki> and, frankly, i'm with Nilium on this; i'm not interested in wrapping my head around figuring that out
<vic> @waxjar, it's under the chapter on arrays and hashes, which I am using to solve it
<vic> hashes mostly
<vic> and no problem, appreciate you taking the time to look at it
<vic> seems like the end of every chapter in this book likes to challenge using newly learned concepts to solve/create algorithms
crazed has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 272 seconds]
decoponio has joined #ruby
emmesswhy has joined #ruby
ferr has quit [Ping timeout: 260 seconds]
mmochan_ has joined #ruby
htmldrum has joined #ruby
crazed has joined #ruby
threesixes has joined #ruby
<waxjar> maybe try stack overflow, they're usually good with those type of questions
<pontiki> vic: in general, thought, approaching this, first i'd write a set of tests that test the conversion formulae, then write the methods that do the conversion formulae
alem0lars_ has joined #ruby
alem0lars_ has quit [Client Quit]
Rahul_Roy has joined #ruby
<pontiki> then i'd write some tests that test a class that deals with changing inventories based on the conversion forumlae
<pontiki> and write the class that deals with that
<vic> hmmm thanks, I just started doing the tests/conversions
<pontiki> then i'd write an integration test that combines those two
<pontiki> and so on
<pontiki> the idea being: break everything down into minute, testable and implementable bits
<pontiki> and, also, frankly, i wouldn't do any sort of user i/o at all
jY has joined #ruby
<vic> hmm ok!
<vic> was just trying to make it feel more like an actual program lol
<pontiki> everything i just described is actual programming
<jY> is there like a one liner to do like one item in an array is in a string like if ['foo','baz'] in 'foobar'
<vic> ok, thanks a ton pontiki, i will start hacking at it further
<pontiki> jY: absolutely only one, or at least one?
<jY> pontiki: at least 1
<waxjar> >> ["foo", "baz"].include? "foo"
<eval-in__> waxjar => true (https://eval.in/207398)
<pontiki> >> %w[foo bar].any? {|w| 'foobar'.include? w}
<eval-in__> pontiki => true (https://eval.in/207399)
<jY> thanks
<pontiki> >> %w[foo bar baz quxx].any? {|w| 'foobar'.include? w}
<eval-in__> pontiki => true (https://eval.in/207400)
<pontiki> >> %w[foo bar baz quxx].any? {|w| 'blinkin'.include? w}
<eval-in__> pontiki => false (https://eval.in/207401)
AndChat| has quit [Ping timeout: 265 seconds]
c107 has quit [Ping timeout: 245 seconds]
goodenough has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> I'm not listening to the Bayonetta soundtrack. This needs to be fixed.
starkhalo has quit [Ping timeout: 246 seconds]
muzik has joined #ruby
Nieralyte has quit [Quit: Nieralyte]
c107 has joined #ruby
zorak8 has quit [Ping timeout: 260 seconds]
jlast has joined #ruby
crazydiamond has quit [Ping timeout: 255 seconds]
vic has quit [Quit: Page closed]
lkba has joined #ruby
i8igmac has quit [Ping timeout: 240 seconds]
Nieralyte has joined #ruby
yfeldblum has quit [Remote host closed the connection]
_lexjm has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
kenndel_ has quit [Quit: Leaving]
eka has joined #ruby
nonks has joined #ruby
dopiee has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
i_s has joined #ruby
mary5030 has quit [Remote host closed the connection]
suffice has quit [Quit: Lost terminal]
vincent1 has joined #ruby
suffice has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: No route to host]
i_s has quit [Ping timeout: 255 seconds]
<pontiki> by listening to it?
Nieralyte has quit [Quit: Nieralyte]
lolmaus has joined #ruby
ghr has joined #ruby
<pontiki> good grief, recruiter email that starts with "Hi Job, I hope your day is going well."
<pontiki> "Job" ?
regexhelp has quit [Ping timeout: 246 seconds]
JBreit has left #ruby ["Leaving"]
ghr has quit [Ping timeout: 255 seconds]
Deejay_ has joined #ruby
SilkFox_ has joined #ruby
KC9YDN has joined #ruby
diegovio1 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
timonv_ has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
mercwithamouth has quit [Ping timeout: 246 seconds]
<muzik> as long as your name isnt job
jwalker38 has joined #ruby
muzik has quit [Quit: Leaving]
tokik has quit [Ping timeout: 265 seconds]
jwalker38 has left #ruby [#ruby]
vic has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
<vic> http://pastebin.com/JGfnCvj8 can someone explain to me why this breaks when ingredients["EON"] = 4 and ingredients["WOB"] = 2?
timonv_ has quit [Ping timeout: 272 seconds]
aspires has quit []
mercwithamouth has joined #ruby
relix has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codecop has joined #ruby
spyderman4g63 has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
spyderman4g63 has quit [Ping timeout: 240 seconds]
drawingthesun has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
anaeem1 has joined #ruby
User458764 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
jlast has joined #ruby
drawingthesun has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
kenndel has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
jlast has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
Deejay_ has quit [Quit: Computer has gone to sleep.]
abuzze has joined #ruby
ferr has joined #ruby
kaspergrubbe has joined #ruby
ndrei_ has joined #ruby
anaeem1_ has joined #ruby
ndrei has quit [Quit: Lost terminal]
fabrice31 has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
<vic> http://pastebin.com/JGfnCvj8 can someone explain to me why this breaks when ingredients["EON"] = 4 and ingredients["WOB"] = 2?
ferr has quit [Ping timeout: 272 seconds]
Morkel has quit [Quit: Morkel]
fabrice31 has quit [Ping timeout: 260 seconds]
psykotron has quit [Quit: Connection closed for inactivity]
ferr has joined #ruby
oo_ has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 255 seconds]
jobewan has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
<Emmanuel_Chanel> Hello!
oo_ has joined #ruby
<Emmanuel_Chanel> こんばんは。
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<Hanmac> vic what is the error?
ghr has joined #ruby
luckyruby has quit [Ping timeout: 255 seconds]
oo_ has quit [Ping timeout: 245 seconds]
CodeGnome has joined #ruby
oo_ has joined #ruby
<vic> hanmac: actually it was a couple of lines later.. oops
mercwithamouth has quit [Ping timeout: 240 seconds]
<vic> there was no else break condition for an if statement inside of a while loop, so the code was looping infinitely
oo_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 260 seconds]
Deejay_ has joined #ruby
yfeldblum has joined #ruby
vic has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sigurding has joined #ruby
keen______ has joined #ruby
keen_____ has quit [Ping timeout: 250 seconds]
siwica has joined #ruby
ferr has quit [Ping timeout: 272 seconds]
<Emmanuel_Chanel> Is there a library to make a ruby IRC bot have multiple server connections?
mercwithamouth has joined #ruby
bMalum has joined #ruby
ndrei_ has quit [Quit: Lost terminal]
emmesswhy has quit [Quit: Leaving]
CodeGnome has quit [Remote host closed the connection]
goshdarnyou has quit [Quit: Connection closed for inactivity]
c107 has quit [Remote host closed the connection]
fandi has joined #ruby
c107 has joined #ruby
Jackneill has joined #ruby
fandi has quit [Max SendQ exceeded]
lolmaus has quit [Ping timeout: 240 seconds]
fandi has joined #ruby
rbrs has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
ta has joined #ruby
rshetty has joined #ruby
bMalum has quit [Quit: bMalum]
<pontiki> .
<pontiki> oops
mercwithamouth has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
ndrei has quit [Client Quit]
drawingthesun has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
fandi has quit [Max SendQ exceeded]
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
jlast has joined #ruby
fandi has joined #ruby
<hmsimha> alright, I'm stumped here... data = JSON.parse("[{\"id\": 0}, {\"id\":1}]") gives me the right decoded array... but then I can't do each on that array such as data.each {|x| puts x['id']}
timonv_ has joined #ruby
i_s has joined #ruby
Deejay_ has joined #ruby
fandi has quit [Max SendQ exceeded]
kaspertidemann has joined #ruby
fandi has joined #ruby
<apeiros> hmsimha: and you can't do that because…?
<hmsimha> I'm using a toy example.. and it actually does work on that example, but for some reason it's not working with the large dataset I have
<hmsimha> hold on, I'm paste-binning
jlast has quit [Ping timeout: 260 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
fandi has quit [Max SendQ exceeded]
<hmsimha> apeiros: http://pastebin.com/7Ne2bq4s
timonv_ has quit [Ping timeout: 255 seconds]
BadQuanta has quit [Ping timeout: 260 seconds]
<hmsimha> (I made it an unlisted bin, but it's using public data from github's api)
fandi has joined #ruby
lxsameer has quit [Remote host closed the connection]
<apeiros> hmsimha: you do realize that this is not an actual answer to my question?
i_s has quit [Ping timeout: 255 seconds]
ht__th has joined #ruby
<apeiros> I mean, it's good that you paste the data you work with. but that was not what I asked for.
<hmsimha> apeiros: if I do JSON.parse(giantstring).each {|x| puts x['id']} I get more than just the IDs
<hmsimha> and I don't know why
sandelius has joined #ruby
<hmsimha> if I do JSON.parse(giantstring)[0]['id'] it works
fandi has quit [Max SendQ exceeded]
<pontiki> hmsimha: try something like this: data.map{|x| x['id]}
fandi has joined #ruby
<rpag> that'd print the first ID, .each will print them all
<pontiki> with the proper closed string key ofc
Takle has quit [Read error: Connection reset by peer]
amundj has joined #ruby
<hmsimha> rpag: I'm trying to get all the ids
<apeiros> hmsimha: for me, it only prints the id's
<apeiros> hmsimha: are you confusing return value and output?
anaeem1_ has quit [Remote host closed the connection]
<apeiros> hmsimha: remember, obj.each returns obj. which in your case is your full dataset.
<hmsimha> oh! it's echoing the return after printing
<hmsimha> apeiros: Thanks!
lxsameer has joined #ruby
fandi has quit [Read error: Connection reset by peer]
goodenough has quit [Remote host closed the connection]
Akagi201 has joined #ruby
ferr has joined #ruby
mercwithamouth has joined #ruby
siwica1 has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
heftig has quit [Read error: Connection reset by peer]
mxrguspxrt has joined #ruby
toretore has joined #ruby
siwica has joined #ruby
andrewlio has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
siwica1 has joined #ruby
ghr has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
Vile` has joined #ruby
siwica1 has quit [Ping timeout: 240 seconds]
c107 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
hellangel7 has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
goodniceweb_ has joined #ruby
vinleod has joined #ruby
siwica has joined #ruby
kaspertidemann has quit []
mercwithamouth has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
goodniceweb_ has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 265 seconds]
ptrrr has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
mxrguspxrt has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
spyderman4g63 has joined #ruby
jack_rabbit has joined #ruby
charliesome has joined #ruby
mdw has joined #ruby
spyderman4g63 has quit [Ping timeout: 245 seconds]
Darryl has quit [Quit: Connection closed for inactivity]
hackeron has quit [Ping timeout: 255 seconds]
hackeron has joined #ruby
tlarevo has joined #ruby
earfin has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
Soda has joined #ruby
timonv_ has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
rshetty has quit [Remote host closed the connection]
mxrguspxrt has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
spider-mario has joined #ruby
timonv_ has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
DLSteve has quit [Quit: Leaving]
vincent1 has quit [Ping timeout: 250 seconds]
max96at|off is now known as max96at
User458764 has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x77686d has quit [Quit: x77686d]
jlast has quit [Ping timeout: 250 seconds]
Darryl has joined #ruby
startupality has joined #ruby
threesixes has quit [Ping timeout: 258 seconds]
zaid_h has joined #ruby
User458764 has joined #ruby
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
hackeron has quit [Ping timeout: 272 seconds]
hackeron has joined #ruby
marr has joined #ruby
marr has quit [Remote host closed the connection]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhass|off is now known as jhass
siwica1 has joined #ruby
siwica has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
kaspertidemann has joined #ruby
timonv_ has joined #ruby
ghr has joined #ruby
Lewix has quit [Remote host closed the connection]
dawkirst has joined #ruby
carraroj has joined #ruby
regedarek has quit [Read error: Connection reset by peer]
siwica has joined #ruby
dawkirst has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
carraroj has quit [Client Quit]
siwica1 has quit [Ping timeout: 246 seconds]
siwica1 has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
az7ar has joined #ruby
SilkFox_ has joined #ruby
atomi has quit [Remote host closed the connection]
nonks has quit [Quit: WeeChat 1.0]
max96at is now known as max96at|off
duncannz has quit [Remote host closed the connection]
JBreit has joined #ruby
OffTheRails has joined #ruby
startupality has quit [Quit: startupality]
SilkFox_ has quit [Ping timeout: 260 seconds]
az7ar has quit [Ping timeout: 272 seconds]
earfin has quit [Ping timeout: 255 seconds]
last_staff has joined #ruby
OffTheRails has quit [Ping timeout: 255 seconds]
max96at|off is now known as max96at
jack_rabbit has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
kirun has joined #ruby
nhhagen has joined #ruby
panini has joined #ruby
i_s has joined #ruby
az7ar has joined #ruby
shelling_ has joined #ruby
hedin has quit [Remote host closed the connection]
heftig has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
robustus is now known as robustus|Off
jds has quit [Quit: Connection closed for inactivity]
Mia has joined #ruby
Mia has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
startupality has joined #ruby
rshetty has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
zeroNones has joined #ruby
banister has joined #ruby
startupality_ has joined #ruby
startupality has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
sigurding has joined #ruby
bMalum has joined #ruby
banister has quit [Ping timeout: 245 seconds]
startupality_ has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
anaeem1 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carraroj has joined #ruby
OffTheRails has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
panini has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
anaeem1 has quit [Remote host closed the connection]
zeroNones has quit [Ping timeout: 272 seconds]
zeroNones has joined #ruby
banister has joined #ruby
Kilo`byte has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 272 seconds]
mxrguspxrt has quit [Remote host closed the connection]
Kilo`byte has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
panini has joined #ruby
ghr has joined #ruby
klmlfl has joined #ruby
mxrguspxrt has joined #ruby
nhhagen has quit []
ghr has quit [Ping timeout: 272 seconds]
adac has joined #ruby
Tony_ruby has joined #ruby
<Tony_ruby> hi,all,i am new here
panini has quit [Ping timeout: 240 seconds]
hiyosi has quit [Quit: WeeChat 1.0]
<Tony_ruby> and i have a problem about accessing mysql server with ruby
<Tony_ruby> can anyone help me?
<Tony_ruby> thank you
hiyosi has joined #ruby
robustus|Off is now known as robustus
hiyosi has quit [Client Quit]
mxrguspxrt has quit []
hiyosi has joined #ruby
* wasamasa lunges for a crystal ball
Dude007 has joined #ruby
<wasamasa> Tony_ruby: the crystal ball is telling me either you be a lot more specific or abandon mysql, ruby or both
<Emmanuel_Chanel> Tony_ruby: I don't really know Ruby well. But if you wanna help, you need to park this channel for a long time.
siwica has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
klmlfl has quit [Remote host closed the connection]
siwica1 has quit [Ping timeout: 255 seconds]
SilkFox_ has joined #ruby
lkba has joined #ruby
kenneth has quit [Ping timeout: 255 seconds]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
Soda has quit [Remote host closed the connection]
fantazo has joined #ruby
<Tony_ruby> I am not sure which gem to install for accessing the mysql and failed to intall the mysql DBD for ruby
mbwe has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
<Tony_ruby> error message:/Library/Ruby/Gems/2.0.0/gems/dbi-0.4.5/lib/dbi.rb:300:in `block in load_driver': Unable to load driver 'Mysql' (underlying error: uninitialized constant DBI::DBD::Mysql) (DBI::InterfaceError)
<Tony_ruby>
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has quit [Ping timeout: 240 seconds]
<Tony_ruby> My computer is OSX 10.9.5.Is there a proper adapter for mysql?
livathinos has joined #ruby
jnollette has quit [Remote host closed the connection]
livathin_ has joined #ruby
jnollette has joined #ruby
<Tony_ruby> thank u for your advice ,wasaamasa
joined has joined #ruby
spyderman4g63 has joined #ruby
DLSteve has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
threesixes has joined #ruby
Snowstormer has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 265 seconds]
siwica1 has joined #ruby
almostworking has joined #ruby
panini has joined #ruby
siwica has quit [Ping timeout: 245 seconds]
<sigurding> is it possible to include a local gem into a gem and reference it?
almostworking has left #ruby [#ruby]
zaid_h has quit [Quit: ZZZzzz…]
jnollette has quit [Ping timeout: 250 seconds]
Left_Turn has joined #ruby
adac has quit [Ping timeout: 260 seconds]
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
spyderman4g63 has quit [Ping timeout: 258 seconds]
mmochan_ has quit [Quit: Connection closed for inactivity]
hiyosi has quit [Quit: WeeChat 1.0]
kenneth has joined #ruby
hiyosi has joined #ruby
govg has joined #ruby
renderful has joined #ruby
zeroNone_ has joined #ruby
robustus is now known as robustus|Off
OffTheRails has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
kenneth has quit [Ping timeout: 246 seconds]
renderful has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
OffTheRails has joined #ruby
otakbeku has joined #ruby
jlast has joined #ruby
panini has quit [Quit: Leaving]
<tmoore> sigurding: what do you mean?
<sigurding> I have a local gem, which is a specifc fix for a public gem
<sigurding> and when running bundle install, I want bundler to use a gem which comes a long with my gem
evlute has joined #ruby
<evlute> hallo
<sigurding> instead of pulling it from the public repository
adac has joined #ruby
<rpag> sigurding, add the gem as a runtime dependency? there's no way to "reference another gem" unless you add it as a dependency or just bundle the source into your gem
OffTheRails has quit [Ping timeout: 250 seconds]
jlast has quit [Ping timeout: 260 seconds]
<sigurding> rpag: is it possible to bundle it as dependency by saying I put it into lib/patch/
<sigurding> and then in my gemfile with
startupality has joined #ruby
<sigurding> gem “customGem”, path: "/patch/customGem-0.7.2.gem"
<rpag> what are you doing exactly?
nfk has joined #ruby
<rpag> path: expects a path to a directory that has a .gemspec
<evlute> i wanna use green_shoes. i read there ideas are inspired by html. so do i have the possibility to divide the form into several pieces?
<tmoore> path expects an unpacked gem directory, not a gem file
<evlute> i read about stacks and flows but i did not check what this is about
<rpag> it sounds like you're doing something unusual though and there could be a better way than the solution you imagined
joined has quit [Ping timeout: 260 seconds]
<sigurding> rpag: I guess so and I am open for suggestions
<sigurding> :)
<tmoore> OK let's start at the beginning then :-)
<tmoore> you've forked a gem
<tmoore> normally, the way you would use your fork in a project is with a git gem in your Gemfile
<sigurding> tmoore: yes, in fact we have added the CPU tracking in: https://github.com/hyperic/sigar/tree/master/bindings/ruby
<rpag> I don't understand the "I want bundler to use a gem which comes a long with my gem" part
existensil has quit [Ping timeout: 255 seconds]
<sigurding> so I am using it with: spec.add_dependency("sigar", "~> 0.7")
otakbeku has quit [Quit: leaving]
<sigurding> but the issue here is, that it is always pulling the remote gem
kaspertidemann has quit []
Snowstormer has joined #ruby
<sigurding> and what I want to do is: using the version we patched with additional functionality
olivier_bK has joined #ruby
wlanboy has quit [Ping timeout: 240 seconds]
<tmoore> OK so in your Gemfile, use git to point to your fork
<tmoore> There's no way in a gemspec to say that you depend on a git or path gem
<tmoore> So the project that uses gem A would also need to declare a dependency on gem B
User458764 has joined #ruby
zeroNone_ has quit [Ping timeout: 250 seconds]
<tmoore> Am I understanding right? You have two gems that you've patched, and one depends on the other?
<wasamasa> evlute: have you read the original documentation of shoes?
wlanboy has joined #ruby
<sigurding> tmoore: no there is only one I have patched
<tmoore> OK. Then put that in your Gemfile as a git gem
<sigurding> and in my application which will be a gem, the patched one should be used
<tmoore> oh I see so you are developing a new gem that depends on that fork
<sigurding> yes
x77686d has joined #ruby
Tony_rub` has joined #ruby
<tmoore> well then your best bet is to release the fork with a new name and push it to rubygems.org
joined has joined #ruby
<sigurding> sounds like the best idea
evlute has quit [Ping timeout: 255 seconds]
<sigurding> and the most obvious as well ;)
<sigurding> thanks
jnollette has joined #ruby
patteh has left #ruby [#ruby]
tonini has quit [Quit: leaving]
tonini has joined #ruby
Tony_ruby has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
az7ar has quit [Quit: az7ar]
x77686d has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 255 seconds]
mchelen has joined #ruby
yfeldblum has joined #ruby
wlanboy has quit [Quit: ZNC - http://znc.in]
sigurding has quit [Quit: sigurding]
sandelius has joined #ruby
jnollette has quit [Ping timeout: 240 seconds]
livathin_ has quit [Remote host closed the connection]
wlanboy has joined #ruby
ghr has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rshetty has quit [Remote host closed the connection]
joined has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
rshetty has joined #ruby
schaerli has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
schaerli has quit [Remote host closed the connection]
timonv_ has quit [Read error: Connection reset by peer]
SouL_ has quit [Ping timeout: 258 seconds]
bMalum has joined #ruby
i_s has joined #ruby
SilkFox_ has joined #ruby
claw_ has quit [Ping timeout: 260 seconds]
codezomb has quit [Ping timeout: 255 seconds]
luckyruby has joined #ruby
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
tlarevo has quit [Ping timeout: 246 seconds]
i_s has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 255 seconds]
a___ has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
dawkirst has joined #ruby
spacemud has joined #ruby
OffTheRails has joined #ruby
rshetty_ has quit [Remote host closed the connection]
Squarepy has joined #ruby
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
manzo has joined #ruby
freerobby has joined #ruby
oleo__ has quit [Quit: Verlassend]
startupality has quit [Quit: startupality]
evlute has joined #ruby
OffTheRails has quit [Ping timeout: 265 seconds]
startupality has joined #ruby
jlast has joined #ruby
jacobat has joined #ruby
startupality has quit [Client Quit]
Xeago has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
startupality has quit [Client Quit]
nrsk has joined #ruby
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
parus has quit [Quit: Lost terminal]
weemsledeux has quit [Client Quit]
parus has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
oleo has joined #ruby
autonomousdev has joined #ruby
yfeldblum has quit [Remote host closed the connection]
startupality has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
banister has joined #ruby
havenwood has joined #ruby
yfeldblum has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
startupality has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
TwinkleHood has joined #ruby
startupality has joined #ruby
<TwinkleHood> Hey, I'm a bit confused about one thing - should i include my test dependency (minitest) in my gemspec for a gem?
<TwinkleHood> like, spec.add_development_dependency
<apeiros> yes
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
evlute has quit [Quit: WeeChat 1.0.1]
<TwinkleHood> Okies, thanks :)
<apeiros> all the things your gem needs during dev should be in add_development_dependency
<apeiros> all the things your gem needs for production use should be in add_dependency
<TwinkleHood> Luckily, it relies on nothing else :)
<TwinkleHood> Oh, wait, what about rake?
Juanchito has joined #ruby
kayloos has joined #ruby
rshetty has quit [Remote host closed the connection]
<TwinkleHood> Can you see any immediate problems with this gemspeck? https://github.com/kholbekj/bencoder
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
startupality has quit [Client Quit]
<rpag> 'minitest' not 'Minitest'
x77686d has joined #ruby
rshetty has joined #ruby
<TwinkleHood> ah, whoops
ghr has joined #ruby
<TwinkleHood> thanks
<TwinkleHood> fixd
<apeiros> wait, what? how could I not know that Dir[]/glob accepts multiple arguments (or an array respectively)? darn!
<apeiros> TIL
<apeiros> thanks TwinkleHood :D
<TwinkleHood> Haha, no problem :D
adac has quit [Ping timeout: 260 seconds]
Tony_rub` has quit [Ping timeout: 255 seconds]
lukevinc has joined #ruby
klmlfl has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<multi_io_> is there a gem or something for writing unix filters that use stdin/out by default and may be retargeted to a file and possible in-place modification?
<apeiros> multi_io_: see ARGF
<multi_io_> kinda like perl -i -e '<code>' file
bMalum has quit [Quit: bMalum]
<multi_io_> apeiros: yeah I've seen that, but it only handles input, not output afaics
x77686d has quit [Ping timeout: 260 seconds]
<apeiros> ruby -i -e exists too
<multi_io_> oh
luckyruby has quit [Quit: Leaving...]
KC9YDN has quit [Read error: Connection reset by peer]
<apeiros> TwinkleHood: re your question - afair drbrain (maintainer of rubygems) once said on irc not to set spec.date manually. just leave it away.
WormDrink has quit [Ping timeout: 260 seconds]
<apeiros> other than that, I see nothing wrong with it
<multi_io_> ok thanks, I didn't know that. Now it would still be nice if there was a gem that did the same thing, so you could provide this functionality in your own scripts
jacobat has quit [Ping timeout: 240 seconds]
robustus|Off is now known as robustus
<TwinkleHood> apeiros: alright, sounds like a good idea.
SilkFox_ has joined #ruby
<multi_io_> maybe I'm going to write one, then.
rshetty has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<multi_io_> or something
carraroj has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
rshetty_ has joined #ruby
KC9YDN has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
rshetty_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
ferr has joined #ruby
spyderman4g63 has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
IceDragon has joined #ruby
KC9YDN has joined #ruby
jnollette has joined #ruby
spyderman4g63 has quit [Ping timeout: 260 seconds]
claw_ has joined #ruby
klmlfl has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
jnollette has quit [Ping timeout: 244 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
ndrei has joined #ruby
ndrei has quit [Client Quit]
ndrei has joined #ruby
robustus is now known as robustus|Off
rshetty has joined #ruby
SouL_ has joined #ruby
chorkpop has joined #ruby
chorkpop has quit [Client Quit]
bMalum has joined #ruby
_bruno has joined #ruby
jlast has joined #ruby
klmlfl has joined #ruby
_bruno has quit []
_bruno has joined #ruby
jonr22 has joined #ruby
pyreal has joined #ruby
Drakevr has quit [Quit: demons to some, angels to others]
rshetty has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
Cheezebox has joined #ruby
pyreal has quit [Client Quit]
Cheezebox has quit [Client Quit]
nrsk has quit [Ping timeout: 256 seconds]
Deejay_ has joined #ruby
Atttwww has joined #ruby
rshetty has quit [Ping timeout: 265 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
max96at is now known as max96at|off
AlexRussia has joined #ruby
mercwithamouth has joined #ruby
M3M0CooL has joined #ruby
M3M0CooL has quit []
yeticry has quit [Ping timeout: 240 seconds]
zeroNones has joined #ruby
OffTheRails has joined #ruby
az7ar has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
SilkFox_ has joined #ruby
Drakevr has joined #ruby
Guest62565 has joined #ruby
Guest62565 has left #ruby [#ruby]
awestroke has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
robustus|Off is now known as robustus
i_s has joined #ruby
sandelius has joined #ruby
BadQuanta has joined #ruby
VBlizzard has joined #ruby
ghr has joined #ruby
jonr22 has quit [Remote host closed the connection]
AFKGeek has joined #ruby
i_s has quit [Ping timeout: 260 seconds]
AFKGeek has quit [Client Quit]
ghr has quit [Ping timeout: 255 seconds]
AFKGeek has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
Drakevr has quit [Quit: (sorry for the quit/connection spam doing/tests changes in my new client)]
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
claw__ has joined #ruby
claw_ has quit [Ping timeout: 260 seconds]
awestroke has quit [Remote host closed the connection]
awestroke has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
coderdad has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
codecop has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 265 seconds]
Deejay_ has quit [Quit: Computer has gone to sleep.]
devdazed has joined #ruby
AlexRussia_ has joined #ruby
az7ar has quit [Quit: az7ar]
xymbol has quit [Read error: Connection reset by peer]
Drakevr has quit [Quit: demons to some, angels to others]
xymbol has joined #ruby
Drakevr has joined #ruby
Guest5374 has joined #ruby
Atttwww has quit [Ping timeout: 260 seconds]
robustus is now known as robustus|Off
yfeldblum has quit [Remote host closed the connection]
Drakevr has quit [Quit: hope this is the last restart]
Drakevr has joined #ruby
az7ar has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
BadQuanta1 has joined #ruby
abuzze has joined #ruby
DLSteve has joined #ruby
AFKGeek has quit [Quit: Leaving]
neoxquick has joined #ruby
fuhgeddaboudit has joined #ruby
BadQuanta has quit [Ping timeout: 265 seconds]
az7ar has left #ruby [#ruby]
jlast has joined #ruby
oleo__ has joined #ruby
oleo is now known as Guest1129
WormDrink has joined #ruby
abuzze_ has joined #ruby
Guest1129 has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 272 seconds]
abuzze has quit [Ping timeout: 240 seconds]
coderdad has quit []
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Squarepy has quit [Quit: Leaving]
MasterPiece has quit [Quit: Leaving]
MasterPiece has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 250 seconds]
abuzze has joined #ruby
sepp2k has joined #ruby
AlexRussia_ has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Drakevr has quit [Quit: demons to some, angels to others]
Drakevr has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
AlexRussia_ has joined #ruby
abuzze_ has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
kireevco has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
kireevco has quit [Client Quit]
anaeem1 has joined #ruby
oleo__ has quit [Quit: Verlassend]
threesixes has quit [Remote host closed the connection]
oleo__ has joined #ruby
oleo__ is now known as oleo
zaid_h has joined #ruby
dangerousdave has joined #ruby
mary5030 has joined #ruby
earfin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ta has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
carif has joined #ruby
zeroNones has quit [Read error: Connection reset by peer]
zaid_h has quit [Client Quit]
i_s has joined #ruby
fabrice31 has joined #ruby
bMalum has quit [Quit: bMalum]
zeroNones has joined #ruby
ghr has joined #ruby
Lewix has joined #ruby
anaeem1 has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
rbrs has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
mrbrdo has joined #ruby
rshetty has joined #ruby
endash has joined #ruby
endash has quit [Client Quit]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbrs has joined #ruby
dangerousdave has joined #ruby
klmlfl has quit [Remote host closed the connection]
manzo has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
claymore has joined #ruby
ylluminarious has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
kotk has joined #ruby
<mrbrdo> hey guys
ctp has joined #ruby
<mrbrdo> I don’t wanna bother Matz too much with this, is anyone able to explain this https://gist.github.com/mrbrdo/fd3915dcb9213219ec55
<mrbrdo> I’m guessing it’s supposed to be a consequence of class hierarchy I just don’t get how exactly it comes to be :)
spyderman4g63 has joined #ruby
ndrei has joined #ruby
<Hanmac> mrbrdo: each class is a instance of Class with inherits from Module and this does from Object
Channel6 has joined #ruby
<jhass> mrbrdo: that's because Object.class #=> Class and Class.ancestors.include? Object
gheegh has joined #ruby
<Hanmac> so each class is an instance of Object, means what you define in the class Object is available in (nearly) each other Object
linojon has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
<mrbrdo> Hanmac: that last line explains it perfectly :)
<mrbrdo> thanks.. I guess I knew that before just wasn’t able to connect things together in my head
jnollette has joined #ruby
moritzs has joined #ruby
spyderman4g63 has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
<mrbrdo> so when you call Object.test1 it actually searches like this right: Class, Module, Object <- aha it’s defined in Object
<mrbrdo> rather than immediately finding it in Object
<jhass> yes
<mrbrdo> cool
<jhass> SomeClass.test1 will work too in your example
<jhass> in exactly the same way
<mrbrdo> yeah just wanted to illustrate that Object’s instance methods are class methods too in contrast to that :)
<jhass> well, while we're at it, Ruby has no class methods :P
<mrbrdo> yeah just conceptually
<mrbrdo> but yeah, it’s clear now what is going on
jnollette has quit [Ping timeout: 240 seconds]
Stuffness has joined #ruby
<Stuffness> hi. is there any reason each_with_index isn't implemented for Array in ruby?
hellangel7 has joined #ruby
<Stuffness> it seems like it should be
<Stuffness> er
<Stuffness> sorry, each_with_object
hellangel7 has quit [Max SendQ exceeded]
<Stuffness> as it stands you have to do array.each.each_with_object which looks silly
ndrei has quit [Ping timeout: 245 seconds]
anaeem1_ has joined #ruby
carraroj has joined #ruby
<Mon_Ouie> It is implemented
<Mon_Ouie> it is implemented for anything that includes Enumerable, actually
ndrei has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Remote host closed the connection]
<mrbrdo> I usually use each.with_index
poulet_a has joined #ruby
mrbrdo has quit [Quit: mrbrdo]
rippa has joined #ruby
anaeem1 has joined #ruby
jottr has joined #ruby
jlast has joined #ruby
jacobat has joined #ruby
ptrrr has quit [Quit: ptrrr]
ptrrr has joined #ruby
nateberkopec has joined #ruby
threesixes has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
MasterPiece has quit [Quit: Leaving]
fandi has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
sevvie has joined #ruby
lkba has joined #ruby
Roa has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
<Stuffness> Mon_Ouie, [5,4,4,2,2­,2,2].each­_with_obje­ct(Hash.ne­w 0) { |n, h| h[n] += 1 } returns NoMethodError but if I insert a ".each" in there, it works
<Stuffness> sans extra "-" up there
thsig has joined #ruby
<havenwood> >> [5,4,4,2,-2,2,2].each_with_object(Hash.new 0) { |n, h| h[n] += 1 }
<eval-in__> havenwood => {5=>1, 4=>2, 2=>3, -2=>1} (https://eval.in/207493)
<havenwood> Stuffness: ^
poulet_a has quit [Remote host closed the connection]
thsig_ has joined #ruby
<Stuffness> weird it causes nomethod error both on tryruby and codewars
<Stuffness> perhaps a version thing
larissa has joined #ruby
<jhass> 18>> [1,2,3].each_with_object("foo")
<eval-in__> jhass => undefined method `each_with_object' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/207494)
<jhass> probably
<havenwood> Stuffness: 1.8 is past end-of-lief.
<havenwood> life even*
yfeldblum has joined #ruby
<Hanmac> Ha! i now i know why yard does not like my code ... it cant life with namespaces ;P
nrsk has joined #ruby
Alx08-ru has joined #ruby
AlexRussia_ has quit [Ping timeout: 244 seconds]
zeroNones has quit [Ping timeout: 240 seconds]
zeroNones has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
tyll_ has quit [Ping timeout: 250 seconds]
pandaant has quit [Remote host closed the connection]
thsig_ has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
tyll has joined #ruby
anaeem1 has quit [Remote host closed the connection]
rkalfane has joined #ruby
freerobby has joined #ruby
HelloFred has joined #ruby
schaerli has joined #ruby
<havenwood> ahh, tryruby.org's RUBY_VERSION is "1.9.3" but its RUBY_PLATFORM is "java"
ghr has joined #ruby
earfin_ has joined #ruby
imz has joined #ruby
andrewlio has quit [Quit: Leaving.]
<havenwood> they just need to update their JRuby
imz has quit [Max SendQ exceeded]
earfin__ has joined #ruby
imz has joined #ruby
imz has quit [Max SendQ exceeded]
sepp2k has quit [Read error: Connection reset by peer]
imz has joined #ruby
imz has quit [Changing host]
imz has joined #ruby
imz has quit [Max SendQ exceeded]
imz has joined #ruby
imz has quit [Max SendQ exceeded]
earfin has quit [Ping timeout: 255 seconds]
imz has joined #ruby
imz has quit [Changing host]
imz has joined #ruby
klmlfl has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 265 seconds]
earfin_ has quit [Ping timeout: 246 seconds]
HelloFred has left #ruby ["Saliendo"]
multi_io has joined #ruby
andrewlio has joined #ruby
Soda has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
x77686d has joined #ruby
ege6a has joined #ruby
multi_io_ has quit [Ping timeout: 260 seconds]
dawkirst has quit [Remote host closed the connection]
ktun has joined #ruby
imz has quit [Quit: Leaving]
ktun is now known as davidhq
schaerli has quit [Remote host closed the connection]
bluOxigen has joined #ruby
abuzze has quit []
thsig has joined #ruby
rocknrollmarc has quit [Ping timeout: 260 seconds]
melik has joined #ruby
ghr has joined #ruby
abuzze has joined #ruby
ndrei has joined #ruby
Channel6 has quit [Quit: Leaving]
obs has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
agjacome has joined #ruby
az7ar has joined #ruby
BadQuanta1 has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: zzz]
ValicekB has joined #ruby
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
kayloos has quit []
HelloFred has joined #ruby
_lexjm has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
linojon has quit [Quit: linojon]
HelloFred has quit [Changing host]
HelloFred has joined #ruby
sigurding has joined #ruby
Xeago has quit [Remote host closed the connection]
tylersmith has joined #ruby
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
elaptics`away is now known as elaptics
jlast has joined #ruby
ptrrr has quit [Quit: ptrrr]
Xeago has joined #ruby
az7ar has quit [Disconnected by services]
nobitanobi has joined #ruby
elaptics is now known as elaptics`away
jlast has quit [Ping timeout: 272 seconds]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica has joined #ruby
siwica1 has quit [Ping timeout: 260 seconds]
az7ar has joined #ruby
billy_ran_away has quit [Ping timeout: 240 seconds]
matthewhill has joined #ruby
thsig has joined #ruby
bsegovia has joined #ruby
siwica1 has joined #ruby
ege6a has quit [Remote host closed the connection]
koi has joined #ruby
siwica has quit [Ping timeout: 272 seconds]
<bsegovia> hi everyone. I’m using ransack’s “sort_link” method to sort search results and it seems to add a glyph arrow (down or up). Is there a way to edit that glyph. I cant seem to find anything about it.
<bsegovia> The glyph is on the table header label btw
elaptics`away is now known as elaptics
i_s has joined #ruby
<bsegovia> just trying to edit the resulting html. Currently it appears as “HEADER NAME&nbsp;▼”
Azure has quit [Quit: Blue Sky Fish]
<bsegovia> trying to make it “HEADER NAME<span>▼</span>” instead
bsegovia has left #ruby [#ruby]
zeroNone_ has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
zeroNones has quit [Ping timeout: 258 seconds]
Mia has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
<havenwood> >> ?▼.next
bsegovia has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
<bsegovia> anyone around?
<bsegovia> i feel like this should be simple but im not sure how to configure this in ransack
<havenwood> bsegovia: I've never heard of ransack. Maybe try: #rubyonrails
<bsegovia> thanks!
<bsegovia> havenwood: it’s a search gem btw
<bsegovia> aparently fairly popular
<bsegovia> im just following tutorials at this point so certainly no master of it
_lexjm has joined #ruby
rockdon_ has joined #ruby
Snowstormer is now known as LikeGecko
thsig_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
_lexjm has quit [Client Quit]
<havenwood> bsegovia: ha, looks like they're coming after Rails with a hatchet!: https://github.com/activerecord-hackery
<havenwood> Run Rails, run!
Azure has joined #ruby
<bsegovia> haha
<bsegovia> what is this page?
<pontiki> i think ransack is something that grew out of spree
<pontiki> anyway, it's one of radar's babies
sepp2k has joined #ruby
_lexjm has joined #ruby
justin_pdx has joined #ruby
earfin_ has joined #ruby
Xeago has quit [Remote host closed the connection]
_bruno has quit []
thsig has quit [Ping timeout: 260 seconds]
_bruno has joined #ruby
zeroNone_ has quit [Read error: Connection reset by peer]
gsd has joined #ruby
livathinos has joined #ruby
OffTheRails has quit [Ping timeout: 260 seconds]
aCicloid is now known as cicloid
matthewhill has quit [Quit: Lingo: www.lingoirc.com]
livathin_ has joined #ruby
earfin__ has quit [Ping timeout: 246 seconds]
zeroNones has joined #ruby
maletor has joined #ruby
twistedpixels has joined #ruby
koi has quit [Quit: Leaving...]
livathinos has quit [Ping timeout: 245 seconds]
nrsk has quit [Ping timeout: 256 seconds]
klmlfl has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
manzo has joined #ruby
sigurding has quit [Quit: sigurding]
az7ar has quit [Remote host closed the connection]
x77686d has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mike32 has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
koi has joined #ruby
pandaant has joined #ruby
Naeblis has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<Naeblis> hello
bhaveshletter has joined #ruby
cicloid is now known as aCicloid
bhaveshletter has quit [Client Quit]
<Naeblis> thinking about learning Ruby after 2-3 years of Python. Good recommendations?
pu22l3r has quit [Remote host closed the connection]
rkalfane has joined #ruby
yxhuvud has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
<havenwood> Naeblis: If you haven't checked it out yet, here's a quick intro for a Pythonista: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-python/
<havenwood> Naeblis: There're some good resources here: https://www.ruby-lang.org/en/documentation/
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
<rpag> tbh i'd recommend learning something else, python and ruby aren't that far apart
<Naeblis> checked that out yeah, and I basically am aware of the key differences.
<havenwood> Naeblis: The Ruby Programming Language is a good book (the Sparrows on the cover).
yxhuvud has joined #ruby
<Naeblis> but I'd like a good book that treats the reader as intermediate and not beginner
lxsameer has quit [Quit: Leaving]
SilkFox_ has joined #ruby
<rpag> The Ruby Programming Language is good for that
koi has quit [Quit: Leaving...]
linguini has joined #ruby
<Naeblis> Thanks. How do I quickly learn about the tooling?
<havenwood> Naeblis: Or Well-Grounded Rubyist, Second Edition
<Hanmac> i always say ruby is like pythons evil twin sister ;P
<linguini> Is there a ruby idiom for this:
<linguini> class X; def self.meth() end; def meth() self.class.meth; end; end
<havenwood> Naeblis: RubyGems ships with Ruby and provides the `gem` command, etc: http://guides.rubygems.org
<havenwood> Naeblis: Bundler is quite popular: http://bundler.io
_bruno has quit []
User458764 has quit [Ping timeout: 245 seconds]
<havenwood> Naeblis: You can use the Ruby Toolbox to help you find other gems: https://www.ruby-toolbox.com
bsegovia has left #ruby [#ruby]
<Naeblis> Awesome. Thanks havenwood! :)
_bruno has joined #ruby
x45t has quit [Read error: Connection reset by peer]
<Naeblis> is there something like virtualenv for Ruby?
<rpag> there's many virtualenvs for ruby :-P
<havenwood> Naeblis: check out chruby: https://github.com/postmodern/chruby#readme
kaspergrubbe has quit [Read error: Connection reset by peer]
<Hanmac> Naeblis: rvm is you want the full suite with different ruby versions and gemsets
<havenwood> Naeblis: I install Rubies with ruby-install and switch with chruby. Another popular option that does a lot more that just that is RVM: http://rvm.io
kaspergrubbe has joined #ruby
spyderman4g63 has joined #ruby
<havenwood> I avoid gemsets.
<havenwood> Too much overlap with Bundler's domain for my taste.
<rpag> gemsets were cool before bundler arrived, yeah
schaerli has joined #ruby
<havenwood> rpag: No doubt they served a purpose pre-bundler, and i'm guessing were something of an inspiration.
<Naeblis> [22:34:59] <rpag> tbh i'd recommend learning something else, python and ruby aren't that far apart
<linguini> http://ix.io/eOV # a more complete example of the constructs for which I'm seeking idioms
<Naeblis> yeah I know, which is why I've avoided it so far
SilkFox_ has quit [Ping timeout: 245 seconds]
<Naeblis> but eeh, I tried out Go, which was a bit boring. I wanna try Rust, which is still too immature. Haskell, which I just don't get. :(
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
Guest5374 has quit [Remote host closed the connection]
<havenwood> Naeblis: The usual suspects... You forgot Clojure and Elixir. :P
<Naeblis> I do know some Racket though
<havenwood> Naeblis: Learn Ruby, Clojure and Elixir. :)
MinasMazar has joined #ruby
<Naeblis> just need something to get me excited about languages again...
schaerli has quit [Remote host closed the connection]
<rpag> and JavaScript
<havenwood> noooo :P
Channel6 has joined #ruby
<Naeblis> doing python/node as my day job is slowly killing me
<Naeblis> ;_;
<rpag> how come?
<havenwood> Opal and ClojureScript please save us!
<rpag> opal does look great
weaksauce has joined #ruby
<havenwood> rpag: practically probably a really good suggestion to learn javascript, just makes me cringe a little
spyderman4g63 has quit [Ping timeout: 244 seconds]
jnollette has joined #ruby
<Naeblis> oh yeah
<Naeblis> had to finally bite the bullet
<Naeblis> and learn js
<rpag> thats alright, JVM languages usually do the same for me :P
<havenwood> rpag: hehehe
<havenwood> <3 JRuby!
jxf has quit [Ping timeout: 265 seconds]
az7ar has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
<rpag> i just use cruby nowadays, don't really play with alternative implementations anymore
<MinasMazar> JRuby + Android = Ruboto & IRB. Wonderful tool!
tylersmith has joined #ruby
tyll has quit [Ping timeout: 255 seconds]
<jhass> rpag: look at crystal :P
renderful has joined #ruby
<rpag> whats crystal?
<jhass> crystal-lang.org
MinasMazar has left #ruby [#ruby]
goshdarnyou has joined #ruby
tyll has joined #ruby
jottr_ has joined #ruby
jnollette has quit [Ping timeout: 240 seconds]
KC9YDN has joined #ruby
govg has quit [Quit: leaving]
<rpag> certainly looks neat
jottr has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 258 seconds]
cashnguns has joined #ruby
<Hanmac> hm yeah crystal looks nice but the C-API is not funky enough for me ...
HelloFred has left #ruby ["Saliendo"]
justin_pdx has quit [Quit: justin_pdx]
<jhass> what's missing?
<jhass> they're still in the language design phase and very open to suggestions
<Morrolan> Noooo
<Morrolan> Don't let Hanmac influence the design of a new language. D:
<Naeblis> gem comes installed with ruby right?
<jhass> I'll make sure to weed out the bad stuff :P
<rpag> Naeblis, since 1.9, yup
<rpag> and if you're not on a Linux distribution that changes that
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
<Naeblis> I'm on OS X
skolman_ has joined #ruby
mike32 has quit [Quit: Leaving]
<rpag> if ruby -v prints 2.X.X, then yeah 'gem' should be available too
payne has joined #ruby
az7ar has quit [Remote host closed the connection]
jlast has joined #ruby
<Naeblis> cool
az7ar has joined #ruby
<Hanmac> jhass: for sample i have a WX::FileCtrl#filter_index= which does more than just call the C++ function wxFileCtrl#SetFilterIndex, it also does check if the setting index is in a specific range
yxhuvud has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<jhass> Hanmac: you would write a wrapper class around the C function in crystal anyway
<jhass> there's not that performance gap in writing a crystal wrapper class that you know from writing a Ruby wrapper class
az7ar has quit [Read error: Connection reset by peer]
<rpag> crystal is a compiled language? neat
<jhass> yep
<jhass> with a very powerful macro language
skolman_ has quit [Remote host closed the connection]
<rpag> mhm
<Hanmac> hm maybe i will look later on it when my rwx is finish ...
<rpag> just got even more interested
<jhass> Hanmac: I know that's your way to say "never" :P
skolman_ has joined #ruby
<Hanmac> hey! i also did say that i will once publish rwx as gem and it did happen last weekend ... even its version 0.0.1.dec
<Hanmac> dev
jlast has quit [Ping timeout: 272 seconds]
max96at|off is now known as max96at
yfeldblum has quit [Ping timeout: 250 seconds]
payne has quit [Remote host closed the connection]
<Hanmac> maybe this weekend i will push the next version like 0.0.1.1.dev ;P
codezomb has joined #ruby
<havenwood> and you can do stuff like: [1, 20, 300].map &.to_s(2).length #=> [1, 5, 9]
sinkensabe has joined #ruby
<Hanmac> havenwood: where?
<havenwood> Hanmac: Crystal
skolman_ has quit [Ping timeout: 265 seconds]
<jhass> yeah, & is just a compile time syntax rewrite to {|x| x<code> }
payne has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gaganjyot has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
IcyDragon is now known as IceDragon
<Hanmac> jhass: i have a ruby gist with i can do that nearly too
Cache_Money has quit [Quit: Cache_Money]
<Hanmac> for me it would look like that: [1, 20, 300].map &:to_s.(2).length
rockdon_ has joined #ruby
michele has joined #ruby
<michele> hi there
<jhass> Hanmac: have a look at some benchmarks https://github.com/kostya/benchmarks
jacobat has quit [Ping timeout: 240 seconds]
msmith_ has joined #ruby
<michele> I have an if branch that is: if <some conditions> && ! __FILE__ == $PROGRAM_NAME
<michele> ruby says: myprog.rb:176: warning: string literal in condition
<michele> what's wrong?
ghr has joined #ruby
Liendre has joined #ruby
az7ar has joined #ruby
<Hanmac> jhass: the language statistics for that is so colorful ;P
ringarin has joined #ruby
<rpag> it means you have said something like: if "foo"; end.
az7ar has quit [Read error: Connection reset by peer]
<jhass> >> ! __FILE__
<eval-in__> jhass => /tmp/execpad-2d7625fbd015/source-2d7625fbd015:2: warning: string literal in condition ... (https://eval.in/207533)
gaganjyot has quit [Ping timeout: 255 seconds]
<jhass> michele: ! binds not like you think it does
<jhass> use != instead
<michele> jhass: if i use not it does not work either
ferr has quit [Ping timeout: 240 seconds]
<jhass> "does not work"
<michele> jhass: ok, good idea. how do i know what ! binds to ?
<jhass> precedence rules
<michele> so if i wanted to use !, I should have written: && !(__FILE__ == $PROGRAM_NAME)
<michele> correct?
<jhass> correct
<jhass> but just use != instead
<michele> yep, done it and works
<michele> thanks.
<jhass> or depending on <some condition> unless instead of if
spicerack has joined #ruby
<rpag> jhass, crystal really does seem awesome, thanks for linking it
<rpag> i just downloaded it
<jhass> yeah, I want it to succeed, gotta build a community :P
<jhass> I think it's a great extension to ruby for performance critical stuff
<rpag> i'm looking for an emacs mode for it but so far nothing :(
mistermocha has joined #ruby
<jhass> I can imagine a nice ruby c-api binding ;)
<jhass> well, it's a very young language ;)
<Naeblis> Hmm. Why two channels? #ruby and #ruby-lang
<jhass> because reasons
<Naeblis> :p
michele has left #ruby [#ruby]
<jhass> rpag: not an emacs user but so far the ruby modes of stuff worked quite well for me
rshetty has quit [Remote host closed the connection]
Cache_Money has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag> indeed, ruby-mode should work
lw has joined #ruby
justin_pdx has joined #ruby
<Hanmac> Naeblis: you need registered name for #ruby-lang and its also a bit more about developing ruby itself (or was that a third channel?)
<Naeblis> ah
<havenwood> Hanmac: #ruby-core
<havenwood> Hanmac: and they dropped the nick reg req
<Hanmac> ah ok
Cache_Money has quit [Quit: Cache_Money]
<Nilium> I hang out in here because it got tedious having two ruby channels open
payne has quit [Read error: Connection reset by peer]
32NAAM3U1 has joined #ruby
<wasamasa> rpag: are there any syntax and indentation changes over ruby?
<Hanmac> jhass: rwx now got the first rspec spec in addition to test-unit TestCase ;P
agjacome_ has joined #ruby
<jhass> wasamasa: indentation and base syntax is the same but they're not afraid to change stuff
32NAAM3U1 has quit [Client Quit]
<wasamasa> jhass: yeah, this is what I've got out from reading a few blog posts by their team
<jhass> wasamasa: it's compiled and with Ruby like syntax type interference can only so far, so there's (mostly optional) type annotations for starters
agjacome has quit [Ping timeout: 240 seconds]
<wasamasa> jhass: hmk
payne has joined #ruby
bw_ has joined #ruby
boombadaroomba has joined #ruby
<rpag> there also seems to be attribute syntax that's unique to crystal
<jhass> yeah, attr_reader/write/accesor are implemented as macro's and named getter/setter/property
<jhass> and yeah and that
<jhass> also you can do def initialize(@foo) to save the @foo = foo boilerplate in constructors
banister has joined #ruby
jxf has joined #ruby
<jhass> beyond the thread locals the attribute syntax is only used in the C binding stuff
<pontiki> something i'm not getting about ruby-install: i doesn't show the latest versions of ruby or jruby in the list
Cache_Money has joined #ruby
agjacome has joined #ruby
boombadaroomba has quit [Ping timeout: 246 seconds]
anaeem1_ has joined #ruby
carraroj has joined #ruby
cashnguns has quit [Ping timeout: 265 seconds]
zorak8 has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
agjacome_ has quit [Ping timeout: 260 seconds]
Azure has quit [Quit: Blue Sky Fish]
SilkFox_ has joined #ruby
tylersmith has joined #ruby
<pontiki> ah ha
<Nilium> Also pontiki's in here so this is automatically the better channel despite shevy
naw_ has quit [Remote host closed the connection]
agjacome_ has joined #ruby
agjacome_ has quit [Client Quit]
<pontiki> don't want to make shevy jealous...
cashnguns has joined #ruby
<Nilium> This is where everyone should start chanting "fight fight fight"
<pontiki> i'm a coder, not a fighter
payne has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ta has quit [Ping timeout: 255 seconds]
naw_ has joined #ruby
<jhass> write a program that chants it then
Xiti has quit [Ping timeout: 240 seconds]
agjacome has quit [Ping timeout: 272 seconds]
<Nilium> loop { puts 'fight' }
SilkFox_ has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
naw_ has quit [Client Quit]
payne has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
payne has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 260 seconds]
ta has joined #ruby
DEERhunter has joined #ruby
rockdon_ has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
thsig_ has quit [Remote host closed the connection]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> shevy & apeiros look i added rspec stuff to rwx too: https://github.com/Hanmac/rwx/blob/master/spec/color_spec.rb
DEERhunter has left #ruby [#ruby]
agent_white has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
<agent_white> Afternoon folks
tomgavin has quit [Ping timeout: 240 seconds]
manzo has quit [Ping timeout: 260 seconds]
aspires has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
volk_ has joined #ruby
<volk_> hey guys, anybody here use omniauth for facebook? all of a sudden my app is getting SSL3 handshake failures. i have no idea whats going on, i accidentally stumbled upon a tweet that said it might have to do with the poodle vulnerability or something.
benzrf|offline is now known as benzrf
t0rc has joined #ruby
t0rc has left #ruby [#ruby]
maletor has joined #ruby
banister has joined #ruby
coderhs has joined #ruby
naw_ has joined #ruby
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
m8 has joined #ruby
i_s has joined #ruby
fabrice31 has joined #ruby
jlast has joined #ruby
kobain has joined #ruby
<arrubin> volk_: Many companies have disabled SSL3.
rockdon_ has quit [Ping timeout: 240 seconds]
melik has quit [Quit: (null)]
atomi has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
mistermocha has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
<arrubin> The solution appears to be upgrading httpclient in many cases.
<volk_> arrubin: thats what i thought
<volk_> the problem im having is
<volk_> i use httparty
<volk_> should i switch?
<arrubin> I do not know.
<volk_> hmm alright
fantazo has quit [Quit: Verlassend]
mistermocha has quit [Ping timeout: 246 seconds]
ringaring has joined #ruby
<arrubin> I am sure that there is a way to tell httparty to not use SSLv3.
shevy has quit [Ping timeout: 255 seconds]
<havenwood> require 'open-uri'; require 'json'; JSON.parse(open("https://www.howsmyssl.com/a/check").read)
jacobat has joined #ruby
whatasunnyday has joined #ruby
arescorpio has joined #ruby
ringarin has quit [Ping timeout: 272 seconds]
* apeiros hits havenwood with a large trout for open.read
weeb1e has joined #ruby
* apeiros shows havenwood the light of open(…, &:read)
<havenwood> apeiros: :)
ghr has joined #ruby
psykotron has joined #ruby
<havenwood> volk_: require 'openssl'; OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.merge!(ssl_version: 'TLSv1_2', ciphers: 'TLSv1.2:!aNULL:!eNULL', options: OpenSSL::SSL::OP_NO_COMPRESSION)
HelloFred has joined #ruby
ndrei has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
ctp has joined #ruby
<havenwood> volk_: then note: require 'open-uri'; require 'json'; JSON.parse(open('https://www.howsmyssl.com/a/check', &:read))['rating']
<havenwood> apeiros: ^ fixed :)
elaptics is now known as elaptics`away
<havenwood> volk_: or use 2.2.0-preview1 where it's fixed ;D
<havenwood> saw a writeup on this but now i can't find it
justin_pdx has joined #ruby
<volk_> havenwood: i followed what you said
<volk_> says “Probably Okay"
<volk_> but now im getting this error
elaptics`away is now known as elaptics
<volk_> SSL_connect returned=1 errno=0 state=SSLv3 write client hello A: no ciphers available
<havenwood> volk_: lovely, hahaha
<volk_> if only i knew what that meant
justin_pdx has quit [Client Quit]
Zettam has joined #ruby
Axy has quit [Read error: Connection reset by peer]
<jnylen> I have an issue with passenger where it says a gem is missing but it is installed. Running rails server and it works. => https://gist.github.com/jnylen/060b7192d36c07b62f72
<jhass> there's #passenger
<jnylen> oh
<volk_> havenwood: was this correct? “ciphers: 'TLSv1.2:!aNULL:!eNULL’”
<havenwood> volk_: So the goal is to limit bad ciphers but still be left with a good cipher that's supported.
<volk_> so there are certain ciphers for a certain ssl version?
jcdesimp has joined #ruby
<havenwood> volk_: what are you hitting with HTTP requests?
anaeem1_ has quit [Remote host closed the connection]
<havenwood> volk_: your service or something you don't control?
<volk_> havenwood: facebook
<volk_> yeah
thsig has joined #ruby
<volk_> i use omniauth-facebook
<volk_> literally today maybe yesterday logins stopped working
<volk_> handshake failures
<volk_> i assume cause of the poodle vuln and services dropping sslv3
<volk_> but i dont know much about ssl to know what the fix is
HelloFred has quit [Read error: Connection reset by peer]
shevy has joined #ruby
pasties has quit [Ping timeout: 265 seconds]
payne has joined #ruby
<havenwood> volk_: I don't know what ciphers they allow.
pasties has joined #ruby
tylersmith has joined #ruby
<havenwood> volk_: it *seems* that disabling insecure ones left us with nothing :P
<havenwood> volk_: I'm curious if they'd allow?: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.merge!(options: OpenSSL::SSL::OP_NO_SSLv3)
lw has quit [Quit: s]
mikepack has joined #ruby
Xiti has joined #ruby
<havenwood> volk_: Also curious if ruby-2.2.0-preview1 works, if so that'd give good clues.
marr has joined #ruby
<volk_> lemme try
<volk_> so “ OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.merge!(options: OpenSSL::SSL::OP_NO_SSLv3)"
<volk_> basically says use any except ssv3 right?
zeroNones has quit [Ping timeout: 260 seconds]
ooloo has quit [Read error: Connection reset by peer]
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
<volk_> damn..no cipher match
<volk_> rails error
sinkensabe has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has joined #ruby
<havenwood> volk_: What's the URL you're hitting?
<havenwood> volk_: ask it what it supports
<volk_> how can i do that
<havenwood> tell me the url
oso96_2000 has quit [*.net *.split]
ddd has quit [*.net *.split]
<havenwood> or learn openssl
oso|away has joined #ruby
oso|away is now known as oso96_2000
<volk_> havenwood: so i use omniauth-facebook gem
maletor has quit [Quit: Computer has gone to sleep.]
<volk_> so it does everything for me haha
<volk_> but let me see
zlude_ has joined #ruby
banister has joined #ruby
<zlude_> Hello friends! someone can help me with that question? http://pastie.org/9659573
tylersmith has quit [Read error: Connection reset by peer]
<volk_> its just graph.facebook.com havenwood
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
tylersmith has joined #ruby
cibs has quit [*.net *.split]
eshy has quit [*.net *.split]
zeroNones has joined #ruby
HelloFred has joined #ruby
HelloFred has joined #ruby
x77686d has quit [Quit: x77686d]
<jhass> zlude_: which ruby versions do you want to support?
<havenwood> volk_: so yeah, they've properly disabled SSL3, try: openssl s_client -connect facebook.com:443 -ssl3
<havenwood> graph.facebook.com*
<volk_> handshake failure
c107 has joined #ruby
<zlude_> jhass, i'm using ruby 2.1.3, i'm newbie yet. I see peoples using things like i do using Hashes, so i try to pass the values as hashes but don't works
ringaroses2 has joined #ruby
<jhass> you can use required named arguments in 2.1: def initialize(name:, age:)
<zlude_> jhass,just works if i do me = Adult.new('Filipe', '19').say_hi but i want to use lilke it me = Adult.new(:age => '19', :name => 'Filipe').say_hi (don't work)
<volk_> so i did that command without sslv3 and i got “New, TLSv1/SSLv3, Cipher is RC4-SHA” havenwood if that helps you help at all
<havenwood> volk_: Just curious but what's your Ruby's OpenSSL version?: require 'openssl'; OpenSSL::OPENSSL_VERSION
eshy has joined #ruby
<jhass> zlude_: if you want to pass a hash you need to accept a hash
cibs has joined #ruby
<volk_> havenwood: "OpenSSL 1.0.1f 6 Jan 2014"
<volk_> is that old?
Fire-Dragon-DoL has joined #ruby
<jhass> zlude_: def initialize(args); @name = args.fetch(:name); @age = args.fetch(:age); end
OffTheRails has joined #ruby
ringaring has quit [Ping timeout: 255 seconds]
<havenwood> volk_: Update to OpenSSL 1.0.1j
<zlude_> jhass,thank you!
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
Xeago has joined #ruby
<volk_> havenwood: if only i knew how..just a new ruby version ?
<havenwood> volk_: OS/Distro? How'd you install Ruby?
Timgauthier has joined #ruby
<volk_> havenwood: i have 2.1 , i just use rbenv
<volk_> on osx
<havenwood> volk_: mm, rbenv's ruby-build is not security conscious
cashnguns has quit [Ping timeout: 244 seconds]
spyderman4g63 has joined #ruby
<Timgauthier> wewt!
<volk_> havenwood: what do you mean
it0a has joined #ruby
<volk_> like i cant use it to update ssl
<volk_> openssl
<volk_> *
<Hanmac> hey there is my first rspec if somone is interested: https://github.com/Hanmac/rwx/blob/master/spec/color_spec.rb
<havenwood> volk_: well, in general they do silly things, like add ./bin to the PATH, but specifically here they install their own OpenSSL package instead of linking to the system package.
mistermocha has joined #ruby
<volk_> oh great
<volk_> i think im going to attempt a different solution
<Fire-Dragon-DoL> are there any gem/very-easy-way to have Struct class initialize method use a hash instead of simple positional arguments?
<volk_> not use omniauth
<volk_> and just use Koala gem for facebook
<jhass> Hanmac: one of your examples doesn't contain an expectation
<havenwood> volk_: i don't know if they've included updated packages in latest ruby-build
<havenwood> volk_: i'd suggest switching to chruby/ruby-install or RVM
<volk_> dang
<havenwood> volk_: first: brew update && brew upgrade
<Hanmac> jhass: yes the "start app" is currently only used as seperator ...
<havenwood> volk_: brew install openssl
<jhass> Hanmac: ugh, don't write order dependent tests
<jhass> use a context with a before block
<Hanmac> Fire-Dragon-DoL: use OpenStruct?
<Fire-Dragon-DoL> Hanmac: I need fixed fields ::S
<Hanmac> jhass: hm ok never did see before block ...
starkhalo has joined #ruby
<volk_> havenwood: so basically when i install ruby with rvm or ruby-install, it will use openssl from my system
ta has quit [Ping timeout: 260 seconds]
thsig has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<havenwood> volk_: then my preference would be: brew uninstall rbenv ruby-build && brew install chruby ruby-install --HEAD
OffTheRails has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
<havenwood> volk_: In the case of ruby-install a plain yes. With RVM there're multiple paths but default yes, I belive.
spyderman4g63 has quit [Ping timeout: 250 seconds]
dangerousdave has joined #ruby
<volk_> gotcha
jnollette has joined #ruby
blz37 has quit [Quit: WeeChat 0.4.3]
<havenwood> volk_: yeah, look, they updated all their custom openssls: https://github.com/sstephenson/ruby-build/tree/master/share/ruby-build
<havenwood> volk_: ruby-install uses your package manager for dependencies
<volk_> ah
<havenwood> volk_: it will dynamically link Ruby against your Brew openssl
<havenwood> or for example if you used Macports, against Macport's openssl
livathin_ has quit []
anaeem1 has joined #ruby
<jhass> Hanmac: and ideally the examples expecting the app not to be yet started could also be run after a context for the examples that expect the app to be started, so ideally you would have something to reset to a clean state
<Hanmac> Fire-Dragon-DoL: like that:
<Hanmac> >> Person = Struct.new(:name,:age) do; def initialize(options); super(*options.values_at(*self.class.members));end;end;Person.new(:name=> "abc", :age => 23 )
<eval-in__> Hanmac => #<struct Person name="abc", age=23> (https://eval.in/207548)
<Hanmac> jhass: reset zo a clean state does not work that way
yfeldblum has quit [Ping timeout: 272 seconds]
<volk_> havenwood: okay i’ll look into it. thanks a ton for your help man
<havenwood> volk_: no prob, good luck!
jnollette has quit [Ping timeout: 246 seconds]
<jhass> Hanmac: I guess the question is it important that the constants are not there prior bootup, or do you actually just care they're there after it
<jhass> *is it
<Hanmac> yes i tihkn it is
<jhass> why?
carraroj has joined #ruby
<Hanmac> for you see WX::Color::RED do you think its available every time? directly after require? as you can see it isnt ... and so that i do describe it
yfeldblum has joined #ruby
<jhass> but why is that an important aspect of your library, what feature does that behavior give me that you need to ensure it stays that way
DarthGandalf has quit [Ping timeout: 260 seconds]
HelloFred has quit [Read error: Connection reset by peer]
HelloFred has joined #ruby
<Hanmac> its because the constants i bind from wx like wxRED are not available before so i cant just do rb_define_const
<jhass> you didn't answer my question
<jhass> as a user I don't care much that they're not defined when I require them, I only care that they are defined after I booted the app
<jhass> whether they were defined prior to booting the app or not is not important at all
jlast has joined #ruby
ringaring has joined #ruby
<jhass> nor is it really important for the behavior of library
jordsmi has joined #ruby
jordsmi has left #ruby [#ruby]
byte48 has quit [Ping timeout: 258 seconds]
cleopatra has joined #ruby
mistermocha has quit [Remote host closed the connection]
ringaroses2 has quit [Ping timeout: 246 seconds]
Photism has joined #ruby
mistermocha has joined #ruby
<havenwood> volk_: not the post i was looking for but seemed worth throwing this out there: https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
<jhass> I always follows mozillas recommendations
jordsmi has joined #ruby
rocknrollmarc has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
<havenwood> jhass: interesting
<Fire-Dragon-DoL> Hanmac: thanks, creating a lib and eventually a gem, lol
russt has joined #ruby
russt has quit [Client Quit]
tlarevo has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
scruple has quit [Ping timeout: 255 seconds]
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
jacobat has quit [Ping timeout: 260 seconds]
Jackneill has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
wald0 has joined #ruby
lagweezle has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
ringaring has quit [Ping timeout: 265 seconds]
lagweezle is now known as Guest51014
Guest51014 has quit [Changing host]
Guest51014 has joined #ruby
moritzs has quit [Remote host closed the connection]
Guest51014 is now known as lagweezle
wald0 has quit [Client Quit]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
banister is now known as banisterfiend
HelloFred has quit [Quit: Saliendo]
<mchelen> can i creat a .ruby-version file with wildcards, for example 2.1.* ?
<apeiros> mchelen: no. and iirc the .ruby-version file is interpreted differently by the different ruby version managers.
<banisterfiend> apeiros wassup
<banisterfiend> apeiros have you ever done autocomplete/typeahead stuff?
thsig has joined #ruby
<mchelen> apeiros: hmm ok, so should i just remove it completely? if someone wants to run this project with 2.1.2 or 2.1.1 it doesn't really matter
Azure has joined #ruby
obs has quit [Remote host closed the connection]
obs has joined #ruby
obs_ has joined #ruby
lagweezle has quit [Quit: leaving]
obs_ has quit [Client Quit]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lagweezle has joined #ruby
lagweezle is now known as Guest57974
Guest57974 has quit [Changing host]
Guest57974 has joined #ruby
Guest57974 is now known as lagweezle
<apeiros> banisterfiend: sure
rkalfane has joined #ruby
codecop has joined #ruby
<apeiros> banisterfiend: nowadays I just use a plain controller which only returns json
<banisterfiend> apeiros do you do anything fancy to make it fast? cos the standard way is just to have the javascript query the server for every single key press
lw has quit [Quit: s]
<apeiros> mchelen: if someone wants to run your project with another ruby, they can. no need to remove the .ruby-version
<banisterfiend> apeiros i thought about caching + a rack app forced into the start of the rack chain but was curious if you have any 31337 techniques
<apeiros> banisterfiend: only when necessary
x77686d has joined #ruby
<apeiros> banisterfiend: in earlier rails' I used metalcontrollers. but since 3.2 I just use a plain controller. I get 5ms responses
<banisterfiend> apeiros but it depends on how large the autocompletion is right
<banisterfiend> i have 1000s of elements
<apeiros> banisterfiend: more than ~20 items in autocomplete don't make sense
<mchelen> apeiros: the "bundle install" is failing
<apeiros> I always limit
NoNMaDDeN has joined #ruby
<apeiros> banisterfiend: remember, you autocomplete to make the user faster. if the user has to choose from a list of 1000 items, they are not faster.
Hobogrammer has joined #ruby
<apeiros> mchelen: and?
<mchelen> apeiros: the .ruby-version says "2.1.2" while user has "2.1.3" and i don't want "bundle install" to fail. remove .ruby-version?
<apeiros> mchelen: why do you think that's related?
<banisterfiend> apeiros do u have epxerience with twitter's typeahead.js ?
<apeiros> banisterfiend: nope
<zlude_> Guys, can i write a email validation using just Ruby? i search in web about it but i see a lot of things related to Rails, But i'm not using Rails, i'm just kidding a little bit with Ruby, and i'm curious how to validade a email using a if for example, someone can help me?
<apeiros> banisterfiend: I find autocomplete trivial enough to roll my own
<gizmore> zlude: i have a snippet if you like
<mchelen> apeiros: because its an rbenv error, and changing that file stops the error
klmlfl has joined #ruby
<Xeago> zlude_: don't validate e-mails by format
<Xeago> send an e-mail instead
<apeiros> zlude_: proper email validation is quite difficult
<banisterfiend> apeiros can i pm u
<apeiros> banisterfiend: yupp. no longer in ibiza on hotel wifi :-p
<jhass> mchelen: if you leave of the last digit RVM and chruby will happily pick the latest version available. Rbenv will fail
<Xeago> banisterfiend: if it's related to autocomplete, please continue in here :>
<banisterfiend> wow ibiza
<banisterfiend> Xeago haha y lol
<apeiros> zlude_: we test whether the domain has an MX entry, and a minimal sanity check on the format
<Xeago> ibiza, shit
<Xeago> looks fancy
<jhass> mchelen: however there's a rbenv plugin to support it
<mchelen> jhass: ah well, i guess either .ruby-version or rbenv have to go then
<Xeago> apeiros: but MX is optional
<apeiros> Xeago: even more fancy when you're there with 11 pole dancers :-p
<mchelen> jhass: hmm ok i might try that, thanks
ghr has quit []
ghr_ has joined #ruby
<Xeago> apeiros: emailing to a domain that lacks a MX record should be delivered to the A record instead
mary5030 has quit [Remote host closed the connection]
rbrs has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
drjfreeze has quit [Remote host closed the connection]
drjfreeze has joined #ruby
<apeiros> Xeago: seriously?
<Hanmac> banisterfiend: didnt you use rspec too sometimes? what do you think for my first rspec? https://github.com/Hanmac/rwx/blob/master/spec/color_spec.rb
<apeiros> got to extend our verifier then :)
klmlfl has quit [Ping timeout: 250 seconds]
<apeiros> and I'll want to log number of occurrences of that
<zlude_> jhass,thank you!
<zlude_> apeiros, thx
zlude_ has quit [Quit: Page closed]
<jhass> apeiros: I bet you won't find any that also has an SPF record :P
Hobogrammer has quit [Read error: Connection reset by peer]
zeroNone_ has joined #ruby
i_s has joined #ruby
zeroNones has quit [Read error: Connection reset by peer]
sandelius has joined #ruby
manzo has joined #ruby
<tekacs> ... question
<jhass> where?
<tekacs> rb_thread_wait_fd(fd) in C is a no-op if there exists only a main thread
<tekacs> if there's multiple threads, it selects on the fd and _may_ trigger the thread upon select's return
<Xeago> apeiros: the reason for mx records was to offload the main server in the first place :)
<tekacs> with just a main thread, a C library using just wait_fd takes 100% CPU
<Xeago> MX records were a addition
<tekacs> ... but I can't seem to convince the scheduler to _ever_ trigger the original thread if I add an extra one
<tekacs> any suggestions?
<Xeago> a hacky one at that, it should've just been an srv field
qmfnp is now known as qmfnp-brb
<jhass> isn't SRV a newer thing?
<Xeago> jhass: correct
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago> jhass: MX records were a hacky addition, it should've been an addition for SRV instead :)
fabrice31 has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
<Xeago> looking back, that is the 'scalable' way of adding information where to obtain services
<Xeago> adding record types didn't scale
<tekacs> ... or should I be asking in #ruby-lang?
<jhass> looks like MX was a replacement for an earlier solution even
<jhass> rfc973
goshdarnyou has quit [Quit: Connection closed for inactivity]
<jhass> 1986
<jhass> SRV rfc2052 1996
<Xeago> jhass: Correct again :)
<jhass> I think we can forgive 1986 there
nobitanobi has quit [Remote host closed the connection]
bMalum has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
<Xeago> yea, BGP routing table size is a bigger problem :)
schaerli has joined #ruby
<Xeago> there literally are limits to expanding the internet :>
aspires has quit []
havenwood has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 260 seconds]
schaerli has quit [Remote host closed the connection]
aspires has joined #ruby
havenwood has joined #ruby
ptrrr has joined #ruby
schaerli has joined #ruby
bMalum has quit [Client Quit]
Azure has joined #ruby
JoshGlzBrk has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has quit [Client Quit]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gregf has quit [Quit: WeeChat 1.0.1]
jlast has joined #ruby
relix has joined #ruby
M3M0CooL has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
gsd has joined #ruby
aspires has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has quit [Client Quit]
gr33n7007h has joined #ruby
linojon has joined #ruby
Hobogrammer has joined #ruby
pytads has joined #ruby
Scotteh has joined #ruby
Scotteh has quit [Read error: Connection reset by peer]
Scotteh_ has quit [Ping timeout: 246 seconds]
Scotteh has joined #ruby
jnollette has joined #ruby
anaeem1 has quit [Remote host closed the connection]
bMalum has joined #ruby
elaptics is now known as elaptics`away
aspires has quit []
yfeldblum has quit [Ping timeout: 245 seconds]
qmfnp-brb is now known as qmfnp
<Fire-Dragon-DoL> Hanmac: https://github.com/Fire-Dragon-DoL/hashed_struct thanks for your help, finally can use it everywhere :P
psy_ has joined #ruby
anaeem1_ has joined #ruby
schaerli has quit [Remote host closed the connection]
volk_ has quit [Quit: volk_]
Xeago has quit [Remote host closed the connection]
Scotteh_ has joined #ruby
spastorino has joined #ruby
schaerli has joined #ruby
jcp has joined #ruby
jcp is now known as Guest8323
Kruppe has quit [Read error: Connection reset by peer]
Scotteh has quit [Ping timeout: 246 seconds]
alem0lars has quit [Quit: Quit!]
<apeiros> Fire-Dragon-DoL: hint - Struct.new already accepts a block which is class eval'ed
<apeiros> no need for that tap thingy
<Fire-Dragon-DoL> apeiros: ARGH! updating
zeroNones has joined #ruby
nuck has quit [Ping timeout: 250 seconds]
<apeiros> personally I just added Struct::from_hash
<apeiros> and Struct#to_h ;-)
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fire-Dragon-DoL> wait, why struct to_h, if I'm not wrong you can access it with []
kyb3r_ has joined #ruby
<Fire-Dragon-DoL> oh looks like you can't weird
<apeiros> Fire-Dragon-DoL: because I want to convert my struct to a hash
<apeiros> yes, you can access with []
zeroNone_ has quit [Ping timeout: 255 seconds]
<apeiros> even by index, string name or symbol name
Guest8323 is now known as Kruppe
<apeiros> but e.g. I want to do: Person.from_hash(some_person.to_h.merge(changed: "attribute"))
<apeiros> also to_h allows me to convert a struct to json trivially
vyorkin has joined #ruby
<Fire-Dragon-DoL> mh ok
<Fire-Dragon-DoL> I'll consider it later on, currently I didn't want to use it for complex things, mostly is a "transport data container"
<apeiros> ah, right, Struct#to_h is part of ruby for newer versions
psykotron has quit [Quit: Connection closed for inactivity]
ringarin has joined #ruby
<Hanmac> apeiros: i still giggle that they changed "spermy_recommendation" to "approximate_recommendation" for newer versions ;P
<apeiros> heh
Asher has quit [Quit: Leaving.]
<apeiros> probably not a bad decision
KanKava has joined #ruby
schaerli has quit [Remote host closed the connection]
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
_bruno has quit []
yxhuvud has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
Vile` has quit [Ping timeout: 272 seconds]
ringarin has quit [Ping timeout: 240 seconds]
Nieralyte has joined #ruby
SilkFox_ has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
spyderman4g63 has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
Vile` has joined #ruby
m8 has quit [Quit: Sto andando via]
hackeron has quit [Ping timeout: 258 seconds]
hackeron has joined #ruby
bmurt has joined #ruby
spyderman4g63 has quit [Ping timeout: 246 seconds]
justinsmestad has joined #ruby
pork_clips has joined #ruby
renderful has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
pork_clips is now known as _cake
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has quit [Quit: WeeChat 1.0.1]
vyorkin has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
rkalfane has joined #ruby
<zeroNones> can someone in the rails channel please ask radar if I was banned or something I cant get it
spider-mario has quit [Remote host closed the connection]
<zeroNones> or whoever's moderating
ht__th has quit [Read error: Connection reset by peer]
<havenwood> zeroNones: register your nick to get in
<zeroNones> it says its already registered havenwood
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
it0a has quit [Ping timeout: 255 seconds]
<M3M0CooL> try to change it :)
<havenwood> zeroNones: tells me you haven't: zeroNones has NOT COMPLETED registration verification
qmfnp has joined #ruby
<havenwood> zeroNones: /msg nickserv help register
<zeroNones> ok thanks havenwood
<havenwood> zeroNones: check your email
yfeldblum has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
hakanensari has joined #ruby
hakanensari has left #ruby [#ruby]
jlast has joined #ruby
obs has quit [Quit: Saliendo]
Channel6 has quit [Quit: Leaving]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
claymore has quit [Quit: Leaving]
ta has joined #ruby
byprdct has joined #ruby
Lewix has joined #ruby
manzo has quit [Ping timeout: 260 seconds]
jlast has quit [Ping timeout: 265 seconds]
jxf has quit [Ping timeout: 240 seconds]
HelloFred has joined #ruby
jeanlinux has joined #ruby
<AlexRussia> shevy what is on create objects of Proc class?(or Thread, i can't remember which about parallel execution code....
anaeem1_ has joined #ruby
<AlexRussia> limit on*
VictorSK has joined #ruby
VictorSK has left #ruby [#ruby]
klaut has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
kirun has quit [Quit: Client exiting]
starless has joined #ruby
whatasunnyday has joined #ruby
lw has joined #ruby
davidhq has joined #ruby
LikeGecko has quit [Ping timeout: 244 seconds]
byprdct_ has joined #ruby
b-jazz has joined #ruby
Takle has joined #ruby
byprdct has quit [Ping timeout: 255 seconds]
bMalum has quit [Quit: bMalum]
codecop_ has joined #ruby
Snowstormer has joined #ruby
ghr_ has quit []
codecop_ has quit [Remote host closed the connection]
bmurt has quit []
existensil has joined #ruby
justinsmestad has quit [Quit: Linkinus - http://linkinus.com]
bmurt has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Ping timeout: 272 seconds]
codecop has quit [Ping timeout: 260 seconds]
pandaant has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
mercwithamouth has joined #ruby
JoshGlzBrk has joined #ruby
zwischenzug2 has quit [Remote host closed the connection]
zwischenzug2 has joined #ruby
boombadaroomba has joined #ruby
postmodern has joined #ruby
HelloFred has quit [Remote host closed the connection]
i_s has joined #ruby
HelloFred has joined #ruby
HelloFred has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
decoponio has joined #ruby
boombadaroomba has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Ping timeout: 258 seconds]
F1skr has joined #ruby
OffTheRails has joined #ruby
fabrice31 has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
<VBlizzard> hello. everytime I try to install eventmachine or websocket, I get this error. http://pastebin.com/srd2cxDx
weeb1e has quit [Ping timeout: 246 seconds]
it0a has joined #ruby
Lewix has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yfeldblum has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
larissa has quit [Quit: Leaving]
OffTheRails has quit [Ping timeout: 250 seconds]
mercwithamouth has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
siwica1 has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
cleopatra has quit [Ping timeout: 255 seconds]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nieralyte has quit [Quit: Nieralyte]
thedonvaughn has joined #ruby
<havenwood> VBlizzard: For quite a few gems you'll need to be able to build native extensions. The usual build tool package Win folk install is called Ruby DevKit. On Chocolatey: choco install ruby.devkit
<VBlizzard> thanks.
hackeron has quit [Ping timeout: 260 seconds]
Timgauthier has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DarthGandalf has joined #ruby
jlast has joined #ruby
gsd has joined #ruby
<gizmore> VBlizzard: It might also be a nice start to look at some small gems that use native build
einarj has joined #ruby
justinmburrous has joined #ruby
hackeron has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
jxf has joined #ruby
einarj has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
SilkFox_ has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
SilkFox_ has quit [Ping timeout: 265 seconds]
linojon has quit [Quit: linojon]
Cache_Money has quit [Quit: Cache_Money]
Liendre has quit [Read error: Connection reset by peer]
<shevy> AlexRussia wat
mary5030 has joined #ruby
justinmburrous has quit []
<shevy> AlexRussia both Proc.new and Thread.new works
<shevy> but those objects are rather different man
mmochan_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
<VBlizzard>
nuck has joined #ruby
einarj has joined #ruby
<VBlizzard> so, I install ruby.devkit through Chocolatey, yet I still have an error when I try to install a gem.
bmurt has quit []
thedonvaughn has quit [Quit: WeeChat 1.0.1]
bmurt has joined #ruby
yfeldblum has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
volty has joined #ruby
<havenwood> VBlizzard: is your Ruby installed through Chocolatey?
andrewlio has quit [Quit: Leaving.]
F1skr has quit [Quit: WeeChat 1.0.1]
<VBlizzard> havenwood, no.
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
<havenwood> VBlizzard: Standalone DevKit ^ if you used RubyInstaller, though you might just consider using Chocolatey as your package manager.
emmesswhy has joined #ruby
<havenwood> VBlizzard: Having a package manager is nice, though I'm not on Win to give any first hand advice.
<VBlizzard> well, I wanted to use an 'official' installer for Ruby.
billy_ran_away has joined #ruby
<havenwood> then build from source :P
JoshGlzBrk has joined #ruby
Takle has quit [Remote host closed the connection]
<VBlizzard> it's not that, it's DevKit I'm having a problem with.
<VBlizzard> I can't get it to install.
<havenwood> ah
<VBlizzard> I'm going to remove Ruby
<VBlizzard> and reinstall from scratch.
ptrrr has quit [Quit: ptrrr]
<havenwood> VBlizzard: ah, i misled you on package name :(
Spami has joined #ruby
<havenwood> VBlizzard: choco install ruby ruby2.devkit
namnamnam has joined #ruby
<havenwood> `ruby1.9 ruby.devkit` and `ruby ruby2.devkit` >.>
<havenwood> not how i'd have named em, oh well
arescorpio has joined #ruby
jxf has joined #ruby
spyderman4g63 has joined #ruby
Snowstormer has quit [Ping timeout: 245 seconds]
skolman_ has joined #ruby
russt has joined #ruby
<AlexRussia> shevy: no, i mean, how many objects of this classes i can create? exist there some limit or no?
M3M0CooL has quit []
Snowstormer has joined #ruby
<havenwood> AlexRussia: See how many sleeping Threads you can spawn in irb/Pry?: 0.upto(Float::INFINITY) { |n| puts n; Thread.new { sleep } }
lxsameer has quit [Quit: Leaving]
neoxquick has quit [Ping timeout: 260 seconds]
<AlexRussia> havenwood: hm
<havenwood> AlexRussia: then see how many Procs you can spawn :P
spyderman4g63 has quit [Ping timeout: 260 seconds]
<havenwood> AlexRussia: just replace `Thread` with `Proc`
<AlexRussia> havenwood: thanks, i am not so stupid for not understand that ;)
<AlexRussia> havenwood: lol, seems like it -> inf
<havenwood> AlexRussia: Depending on the system the thread limits vary.
<AlexRussia> havenwood: and where i can get this limit in linux? :D
<havenwood> AlexRussia: cat /proc/sys/kernel/threads-max
<volty> what have ruby thread sto do with system limits? they aren't real thread, are they?
<volty> what have ruby threads to do with system limits? they aren't real threads, are they?
mgberlin has joined #ruby
mercwithamouth has joined #ruby
it0a has quit [Ping timeout: 240 seconds]
zaid_h has joined #ruby
<havenwood> volty: In Ruby's dark past there were days of green threads.
<VBlizzard> ERROR: Failed to build gem native extension. << is the error I keep getting.
lw has quit [Quit: s]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
freezey has joined #ruby
<havenwood> volty: Now they're mapped to real live native threads.
<AlexRussia> havenwood: it was something around 30209 when i killed process cause was hell lags.it eat something around 20% of ~ 3800 MiB RAM
<AlexRussia> havenwood: red divide is 61644
<volty> havenwood: nice to hear, nice to know. So my 2.2.0 should have them already, right away?
govg has joined #ruby
a___ has quit [Ping timeout: 240 seconds]
<havenwood> volty: yup, good to go
<havenwood> volty: 1.9+
<AlexRussia> what is a green threads
<AlexRussia> ?
<VBlizzard> *^* this is getting stupid. I can install many gems.
<VBlizzard> however, I can't install eventmachine.
NoNMaDDeN has quit [Remote host closed the connection]
<havenwood> VBlizzard: EventMachine has native extensions.
freezey has quit [Ping timeout: 240 seconds]
<VBlizzard> so, what do I do then?
agjacome has joined #ruby
<AlexRussia> hm
<havenwood> AlexRussia: scheduled by the Ruby vm rather than by the system
<AlexRussia> havenwood: hm, then i should let vm management the system threads?
<havenwood> AlexRussia: don't use threads unless you must
<AlexRussia> havenwood: and if vm unsupport it enough, i could get little fail in usage hardware?
<VBlizzard> havenwood: what do I do then?
jlast has joined #ruby
Inoperable has joined #ruby
<VBlizzard> wait, does eventmachine work on Ruby 2?
<VBlizzard> and up?
M3M0CooL has joined #ruby
<AlexRussia> VBlizzard: did you check information from their sources before write? i guess they could write something about supported version ruby etc
a____ has joined #ruby
NullEntity has quit [Read error: Connection reset by peer]
agjacome has quit [Ping timeout: 260 seconds]
<havenwood> AlexRussia: Rules for Threading: 1) Don't do it; 2) If you must do it, don't share data between Threads; 3) If you must share data between Threads, don't share mutable data; and 4) If you must share mutable data between Threads, synchronize access to that data.
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AlexRussia> havenwood: fun.not one word about prefomance :D
mercwithamouth has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 265 seconds]
<havenwood> AlexRussia: The current rough plan is for Ruby in the future to give a warning if you directly use a Thread, once there's a more advanced concurrency primitive in place as an alternative.
mgberlin has quit [Remote host closed the connection]
xenogis has quit [Ping timeout: 272 seconds]
<havenwood> AlexRussia: For now you might take a look at the Celluloid or Agent gems or there's a lot of interesting stuff in the Concurrent Ruby gem: https://github.com/ruby-concurrency/concurrent-ruby#readme
Alx08-ru has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
zenojis has joined #ruby
Alx08-ru has joined #ruby
AlexRussia has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
<AlexRussia> laggs
<AlexRussia> havenwood: ok
<havenwood> AlexRussia: Start of a good series if you want to read up on MRI and the GIL: http://www.jstorimer.com/blogs/workingwithcode/8085491-nobody-understands-the-gil
<AlexRussia> havenwood: lol
<AlexRussia> havenwood: girls*
<AlexRussia> :D
<AlexRussia> ops
<AlexRussia> lol
<havenwood> AlexRussia: Jesse Storimer, its author ^, did a nice intro book on Threads.
<AlexRussia> i've read gil as girl :/
<havenwood> AlexRussia: GVL really :P Global VM Lock
max96at is now known as max96at|off
machete has quit [Ping timeout: 260 seconds]
namnamnam has left #ruby [#ruby]
pytads has quit [Quit: Leaving]
zenojis has quit [Ping timeout: 260 seconds]
klaut has quit [Remote host closed the connection]
i_s has joined #ruby
machete has joined #ruby
b-jazz has left #ruby [#ruby]
Stalkr_ has joined #ruby
<VBlizzard> yeah, I just install Ruby 1.9
<VBlizzard> and it works.
<VBlizzard> thanks for the help, havenwood.
AlexRussia has quit [Ping timeout: 272 seconds]
Alx08-ru has quit [Ping timeout: 260 seconds]
<havenwood> VBlizzard: you're welcome. too bad win support lags, can make newer versions not fun.
banister has joined #ruby
fabrice31 has joined #ruby
<havenwood> VBlizzard: just 201 open issues on EM's githubs :O
<havenwood> yay for Celluloid::IO \o/ https://github.com/celluloid/celluloid-io#readme
i_s has quit [Ping timeout: 272 seconds]
<havenwood> (not that it doesn't have its share of issues)
<havenwood> but nio4r is pretty simple
goshdarnyou has joined #ruby
kenneth has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zenojis has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
siwica has joined #ruby
<siwica> given an array [1, 2, 3,] what is the best method to add a "0" after each element, e.g. [1, 0, 2, 0, 3, 0]?