willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hanu_ has joined #ruby-lang
rsl has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
rsl has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
relix has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.3]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
Raycaster has quit [Quit: Leaving.]
vintik has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ddv has quit [Changing host]
ddv has joined #ruby-lang
banister has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
skade has joined #ruby-lang
heftig has quit [Ping timeout: 272 seconds]
dik_dak has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
vintik has joined #ruby-lang
heftig has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
saarinen has quit [Quit: saarinen]
arBmind has joined #ruby-lang
gix has quit [Ping timeout: 250 seconds]
gix has joined #ruby-lang
apeiros has joined #ruby-lang
arBmind1 has joined #ruby-lang
AKASkip has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
arBmind has quit [Ping timeout: 256 seconds]
solars has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
ruby-lang042 has joined #ruby-lang
tomkadwill has joined #ruby-lang
<ruby-lang042>
hi i got this error when try to compass watch "LoadError on line ["1637"] of /usr/lib/ruby/1.9.1/rubygems/specification.rb: Unable to activate toolkit-2.0.0, because sass-3.2.19 conflicts with sass (~> 3.3.0)"
<ruby-lang042>
can u please help me
Benny1992 has quit [Quit: leaving]
Benny1992 has joined #ruby-lang
Benny1992 has quit [Client Quit]
Benny1992 has joined #ruby-lang
brianpWins has joined #ruby-lang
hanu_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
ruby-lang042: what'd you change?
danijoo_ has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
Averna has quit [Quit: Leaving.]
spuk has joined #ruby-lang
vvikus has quit [Quit: WeeChat 0.4.2]
relix has joined #ruby-lang
simple-user has quit [Ping timeout: 255 seconds]
<ruby-lang042>
i've changed nothing
wallerdev has quit [Quit: wallerdev]
<ruby-lang042>
compass watch and press enter i've got this error
<zenspider>
cmon...
<ruby-lang042>
zenspider
<zenspider>
you changed something
<zenspider>
shit doesn't just break out of the blue
mikecmpbll has joined #ruby-lang
<ruby-lang042>
thats y i'm asking...
skade has joined #ruby-lang
<zenspider>
and so I'm asking what you changed... this isn't hard, is it?
<ohsix>
unpack it again and diff :]
skade_ has joined #ruby-lang
<ruby-lang042>
see, i've given a pre-setup site to do some css change, it has been using sass, so i've installed ruby and gems(compass, sass..) after that when i enter the "compass watch" command i've got this
<zenspider>
they didn't provide a Gemfile.lock?
skade has quit [Ping timeout: 250 seconds]
fullybaked has joined #ruby-lang
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
elia has joined #ruby-lang
<ruby-lang042>
just a Gemfile
<yorickpeterse>
morning fleshlings
<zenspider>
and the gemfile prolly has bad dependencies
<zenspider>
you should have them provide a Gemfile.lock
diegoviola has joined #ruby-lang
<zenspider>
or otherwise fix their deps
<yorickpeterse>
ruby-lang042: `bundle install`, then run `bundle exec compass watch` and see if that works
skade_ has quit [Quit: Computer has gone to sleep.]
<ruby-lang042>
yorickpeterse thanks will try
vintik has quit [Ping timeout: 264 seconds]
<ruby-lang042>
yorickpeterse thanks man. it works!
<yorickpeterse>
np
Atttwww has quit [Ping timeout: 240 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
kek has joined #ruby-lang
michd is now known as MichD
hanu_ has joined #ruby-lang
hanu___ has joined #ruby-lang
hanu_ has quit [Read error: Connection reset by peer]
ssam2 has joined #ruby-lang
sferik has joined #ruby-lang
Ainieco has joined #ruby-lang
<Ainieco>
hello
<Ainieco>
what's the difference between string.unpack("M*") and string.unpack("M")?
<yorickpeterse>
Ainieco: `ri String#unpack` shows the formats you can use
<Ainieco>
tough question sicne docs lacking of "M*" but i found references to it accross internet
<yorickpeterse>
it consumes the remainder of the void
* yorickpeterse
said that with a scary voice
<Ainieco>
also got small question about decoding unpacked things. "=E2=80=99".unpack("M*").first => "\xE2\x80\x99", how can i decode it further so it'll return "’"?
nofxx has quit [Ping timeout: 250 seconds]
Lewix has quit [Remote host closed the connection]
<Ainieco>
>> "=E2=80=99".unpack("M*").first.encode('UTF-8') # too bad it fails here
<Mon_Robot>
Ainieco: => Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8 (https://eval.in/173595)
<Ainieco>
there must be a reason tho, /me is to dumb to know which one
<yorickpeterse>
well, the resulting string of unpack() in this case is basically garbage
<yorickpeterse>
Also, if the original input wasn't UTF8 forcing it to UTF8 won't always work
<Ainieco>
yorickpeterse: yep, that makes sense
workmad3 has joined #ruby-lang
skade has joined #ruby-lang
Ainieco has quit [Quit: leaving]
Ainieco has joined #ruby-lang
<Ainieco>
thank you guys for the help!
<yorickpeterse>
np
ikrima has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 250 seconds]
Cakey has quit [Ping timeout: 250 seconds]
skade has quit [Read error: Connection reset by peer]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
symm- has joined #ruby-lang
jxie has joined #ruby-lang
ruby-lang583 has joined #ruby-lang
<ruby-lang583>
when installing bundle i've got this error "Gem::InstallError: celluloid requires Ruby version >= 1.9.2. An error occurred while installing celluloid (0.15.2), and Bundler cannot continue. Make sure that `gem install celluloid -v '0.15.2'` succeeds before bundling." my ruby version is 1.9.3
ssam2 has quit [Remote host closed the connection]
ssam2 has joined #ruby-lang
robmiller has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
vintik has quit [Remote host closed the connection]
jxie has joined #ruby-lang
vintik has joined #ruby-lang
<yorickpeterse>
run `ruby --version`, what is the output?
robmiller has quit [Client Quit]
robmiller has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<workmad3>
ruby-lang042: remove and re-install bundler... I've had that sort of thing happen at times, generally because the 'bundle' executable ended up with a hardcoded path to the wrong ruby
<yorickpeterse>
gem pristine --all --env-shebang
Ainieco has quit [Quit: leaving]
<yorickpeterse>
^ run that
<workmad3>
^^ that would be better (I'm useless as remembering that command :) )
<workmad3>
*at
<ruby-lang583>
will try
ruby-lang042 has quit [Ping timeout: 246 seconds]
stef_204 has joined #ruby-lang
bin7me has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
AKASkip has quit [Read error: No route to host]
stamina has joined #ruby-lang
AKASkip has joined #ruby-lang
vikasyaligar has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
saltsa has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 255 seconds]
tkuchiki_ has quit [Ping timeout: 240 seconds]
Fushi has joined #ruby-lang
vintik has joined #ruby-lang
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
ironhide_604 has joined #ruby-lang
elia has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
vintik has quit [Ping timeout: 255 seconds]
davispuh has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
dangerousdave has joined #ruby-lang
matp has quit [Quit: ZZZzzz…]
Cakey has joined #ruby-lang
relix has quit [Ping timeout: 260 seconds]
relix has joined #ruby-lang
sarkyniin has joined #ruby-lang
thang_ has joined #ruby-lang
mehlah has joined #ruby-lang
thang has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
Miphix has joined #ruby-lang
thang_ has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby-lang
katlogic has quit [Read error: Connection reset by peer]
Forgetful_Lion has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
malconis has joined #ruby-lang
vondruch has quit [Ping timeout: 245 seconds]
hanu____ has left #ruby-lang [#ruby-lang]
apeiros is now known as officialbot
officialbot is now known as apeiros
stef_204 has quit [Remote host closed the connection]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3_ has joined #ruby-lang
HammyJammy has joined #ruby-lang
tomkadwi_ has joined #ruby-lang
Squarepy has joined #ruby-lang
eval-in has joined #ruby-lang
centrx has joined #ruby-lang
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby-lang
Mellett68_ has joined #ruby-lang
Rubennn_ has joined #ruby-lang
Mon_Robot_ has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 245 seconds]
tomkadwill has quit [Ping timeout: 245 seconds]
lguardiola has quit [Ping timeout: 245 seconds]
`micro_ has quit [Ping timeout: 245 seconds]
Soilent__ has quit [Ping timeout: 245 seconds]
dostoyevsky has quit [Ping timeout: 245 seconds]
GitNick has quit [Ping timeout: 245 seconds]
Mon_Robot has quit [Ping timeout: 245 seconds]
mfn has quit [Ping timeout: 245 seconds]
Mellett68 has quit [Ping timeout: 245 seconds]
hachiya has quit [Read error: Connection reset by peer]
dostoyevsky has joined #ruby-lang
sharpmac_ has joined #ruby-lang
aledovsky has quit [Ping timeout: 240 seconds]
fullybaked has quit [Ping timeout: 240 seconds]
fumduq has quit [Ping timeout: 240 seconds]
Maitiu has quit [Ping timeout: 240 seconds]
zz_sMecKs has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
rsl has quit [Ping timeout: 240 seconds]
levifig has quit [Ping timeout: 240 seconds]
Rubennn has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
t_ has quit [Ping timeout: 240 seconds]
sharpmachine has quit [Ping timeout: 240 seconds]
nino has joined #ruby-lang
sMecKst has joined #ruby-lang
ssam2 has quit [Ping timeout: 245 seconds]
Rylee has quit [Ping timeout: 245 seconds]
sirene has quit [Ping timeout: 245 seconds]
jtperreault has quit [Ping timeout: 245 seconds]
PaulePanter has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
JammyHammy has quit [Ping timeout: 240 seconds]
queue has quit [Ping timeout: 240 seconds]
cid404 has quit [Ping timeout: 240 seconds]
jamooo has quit [Ping timeout: 240 seconds]
PaulePanter has joined #ruby-lang
lguardiola has joined #ruby-lang
Rylee has joined #ruby-lang
queue has joined #ruby-lang
ssam2 has joined #ruby-lang
sirene has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 250 seconds]
`micro has joined #ruby-lang
cid404 has joined #ruby-lang
rsl has joined #ruby-lang
levifig has joined #ruby-lang
fumduq has joined #ruby-lang
aledovsky has joined #ruby-lang
GitNick has joined #ruby-lang
`micro is now known as Guest46876
GaelanAintAround has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
jtperreault has joined #ruby-lang
t_ has joined #ruby-lang
mfn has joined #ruby-lang
hachiya has joined #ruby-lang
marr has quit [Ping timeout: 256 seconds]
ironhide_604 has joined #ruby-lang
Maitiu has joined #ruby-lang
Soilent__ has joined #ruby-lang
torrieri has joined #ruby-lang
torrieri has quit [Client Quit]
karamazov has joined #ruby-lang
jamooo has joined #ruby-lang
nathanstitt has joined #ruby-lang
apeiros_ has joined #ruby-lang
fullybaked has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 250 seconds]
nathanstitt has quit [Client Quit]
apeiros has quit [Ping timeout: 264 seconds]
rcvalle has joined #ruby-lang
ironhide_604 has joined #ruby-lang
charliesome has quit [Ping timeout: 240 seconds]
jxie has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
torrieri has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
K3dare has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 250 seconds]
jgpawletko has quit [Quit: jgpawletko]
charliesome has joined #ruby-lang
mehlah has joined #ruby-lang
mehlah has quit [Client Quit]
mehlah has joined #ruby-lang
ruby-lang583 has quit [Ping timeout: 246 seconds]
JohnFord has joined #ruby-lang
skade has joined #ruby-lang
apeiros_ has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
kith_ has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 255 seconds]
kith has quit [Ping timeout: 250 seconds]
alekst has joined #ruby-lang
loincloth has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby-lang
Yulli has joined #ruby-lang
relix has joined #ruby-lang
Yulli has left #ruby-lang ["Bye"]
relix_ has quit [Ping timeout: 255 seconds]
nathanstitt has joined #ruby-lang
kith_ is now known as kith
diegoviola has joined #ruby-lang
davidfrey has joined #ruby-lang
Xzyx987X has joined #ruby-lang
agarie has joined #ruby-lang
tkuchiki has joined #ruby-lang
agrinb has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #ruby-lang
Mon_Robot_ has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
mistym has joined #ruby-lang
workmad3_ is now known as workmad3
tomkadwi_ has quit [Remote host closed the connection]
tomkadwill has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 255 seconds]
marr has joined #ruby-lang
mistym has quit [Remote host closed the connection]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
nofxx has joined #ruby-lang
bruno- has joined #ruby-lang
bruno- has quit [Remote host closed the connection]
sferik has joined #ruby-lang
sferik has quit [Client Quit]
davidfrey has quit [Remote host closed the connection]
davidfrey has joined #ruby-lang
bruno- has joined #ruby-lang
jlovick has joined #ruby-lang
mistym has joined #ruby-lang
chouhoulis has joined #ruby-lang
davidfrey has quit [Ping timeout: 272 seconds]
<karamazov>
I've finished POODOR but still don't feel like I fully understand how to actually implement OOD.
<centrx>
karamazov, What's the confusion?
davidfrey has joined #ruby-lang
<karamazov>
centrx: I understand the concepts and get the idea behind TRUE. I'm trying to test my knowledge out by doing TicTacToe and don't really feel like I know what I'm doing.
<karamazov>
Sandi talked about interfaces but didn't really show how to implement them
davidfrey has quit [Remote host closed the connection]
davidfrey has joined #ruby-lang
<centrx>
I assume there's a chapter on each one of those? Who can argue with "Reasonable" and "Usable"
symm- has quit [Ping timeout: 255 seconds]
AKASkip has quit [Ping timeout: 250 seconds]
<centrx>
karamazov, The main principle of object-oriented design is that each class represent a coherent thing with actual attributes and behaviors.
<centrx>
karamazov, For TicTacToe, you could have a Player class and a Tile class for example
robbyoconnor has joined #ruby-lang
<karamazov>
That's what I was leaning towards and the Player class would have Human and Computer as sub classes
<centrx>
karamazov, These are actual things in the real-world if you were to play TicTacToe in the real-world. You could even have a Writer/Pencil class, a StrategicThinking class for an AI player...
<centrx>
karamazov, exactly
<karamazov>
I should separate Player < Computer and the Thinking?
sferik has joined #ruby-lang
sferik has quit [Client Quit]
jlovick has quit [Quit: No Ping reply in 180 seconds.]
<centrx>
karamazov, I was just giving an example. It depends on how significant that portion of the program is. It's often more a practical issue whether to split a new class out.
Xzyx987X_ has joined #ruby-lang
davidfrey has quit [Ping timeout: 250 seconds]
sferik has joined #ruby-lang
<karamazov>
Sure - Sandi talks about that in the book. Deciding whether or not to break out and comparing the cost of it.
sferik has quit [Client Quit]
jlovick has joined #ruby-lang
<centrx>
karamazov, One could make classes for every minute component of program, or make one monolithic class without differentiation, at the extremes.
sferik has joined #ruby-lang
seamon has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
<centrx>
karamazov, This may be where the TRUE comes in. You want your class architecture/design to be Transparent -- both easily understandable and matching up with the "real" object with as little extra or confusing added on
<karamazov>
I found an example online (done by the company I'm interviewing for) and the guy had a position class and a TTT class. Didn't really seem OOD.
Xzyx987X has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby-lang
<centrx>
karamazov, TicTacToe is ultimately a simple game, so it does not necessarily warrant many classes. I would probably do it with a Player and Tile class as the main engines
<centrx>
maybe a Referee/RuleSystem
monees has joined #ruby-lang
<karamazov>
centrx: You're correct - it can be done in less than 200 lines of code. I think I'll go for Player and Tile (or Board)
<centrx>
yeah, Player and Board, even better
<karamazov>
It's weird - I know the fundamentals of Ruby but am struggling with this simple game. Most of my time is spent trying to figure out how to test the console output correctly.
Cakey has quit [Ping timeout: 264 seconds]
<workmad3>
karamazov: I'd keep the console UI separated from the board and have it able to take an Input object and an Output object
momomomomo_ has joined #ruby-lang
<workmad3>
karamazov: oh, and a board or somesuch for it to print
<karamazov>
workmad3: I'm not sure I follow
<workmad3>
karamazov: then you can pass in StringIO instances for testing and verify the right stuff is added to them with the board in certain states
<workmad3>
karamazov: rather than testing output on STDOUT
<karamazov>
workmad3: $STDOUT and $STDIN are variables that are part of console, correct?
<workmad3>
karamazov: $STDIN and $STDOUT are your input and output pipes
<workmad3>
karamazov: if you run the app in a terminal, they'll be connected up to the terminals stdin and stdout
apeiros has joined #ruby-lang
<karamazov>
workmad3: Gotcha - so the console_printer should be separate from the actual board and game logic?
<workmad3>
karamazov: that's how I'd do it
<karamazov>
The actual console_printer will be pretty simple if I understand correctly?
<workmad3>
karamazov: yeah... it takes a board and prints it out to the provided output :)
<workmad3>
karamazov: you may also want a PlayerInput class that also takes a board and asks the player for their next move (and an AIInput class that does the same but doesn't need to get user input)
<karamazov>
workmad3: Thanks for the help! I had trouble figuring out what the STDOUT and STDIN actually were. A lot of the answers were a bit over my head.
|jemc| has quit [Ping timeout: 264 seconds]
<karamazov>
workmad3: Ah, so reprinting the board for each turn?
<workmad3>
karamazov: when it comes to testing, it's useful to recognise that STDIN and STDOUT are global variables... so relying on them in the guts of your app makes a hidden dependency :)
<workmad3>
karamazov: sure... you could later on create something like an NCursesPrinter that uses curses to redraw the board
<workmad3>
karamazov: but for starters, I'd just reprint each time ;)
<karamazov>
workmad3: Which is why you've using StringIO.new in the testing? To rid that dependency?
<workmad3>
karamazov: having the printer take an output object makes the dependency explicit
<workmad3>
karamazov: and then StringIO looks like an IO object (which is what STDOUT also is), so you can then replace the dependency in your tests
<workmad3>
karamazov: it's a very simple form of dependency injection ;)
<karamazov>
workmad3: I can't quite wrap my head around that being dependency injection but I'll keep staring at it till it makes sense
<workmad3>
karamazov: dependency injection == passing in dependencies rather than relying on globals or creating them in an object
<workmad3>
karamazov: in a very simple sense
<karamazov>
workmad3: I understand the idea of dependency injection I think it's just feeling abstract because of the global variables.
diegoviola has quit [Quit: WeeChat 0.4.3]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<karamazov>
workmad3: I think I get it though. If I didn't have the print and just had the board then the board would know far too much about the output. All the board needs is the output and it doens't need to know how that output is created?
sferik has joined #ruby-lang
<workmad3>
karamazov: that's more single-responsibility principle
<karamazov>
Oi :(
<workmad3>
karamazov: and if you'll note, in the gist the board doesn't need to know anything about output, or even to know that output is possible :)
K3dare has quit [Ping timeout: 250 seconds]
<workmad3>
karamazov: it's the printer that needs to know about the board, not the board about the printer ;)
sepp2k has joined #ruby-lang
<karamazov>
hmm.
K3dare has joined #ruby-lang
stamina has quit [Ping timeout: 260 seconds]
ironhide_604 has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby-lang
_`_ has joined #ruby-lang
toastynerd has joined #ruby-lang
toastyne_ has joined #ruby-lang
bin7me has quit [Quit: Leaving]
toastynerd has quit [Ping timeout: 245 seconds]
RobertBirnie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
karamazov has quit []
davidfrey has joined #ruby-lang
saarinen has quit [Quit: saarinen]
davidfrey has quit [Client Quit]
toastyne_ has quit [Remote host closed the connection]
skade has joined #ruby-lang
davispuh has quit [Ping timeout: 245 seconds]
karamazov has joined #ruby-lang
ender|dkm has joined #ruby-lang
wallerdev has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
stamina has joined #ruby-lang
davispuh has joined #ruby-lang
sferik has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
_`_ has left #ruby-lang ["('_')/"]
mistym has joined #ruby-lang
__butch__ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
kek has joined #ruby-lang
ender|dkm has quit [Ping timeout: 240 seconds]
loincloth has quit [Ping timeout: 260 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
arBmind has joined #ruby-lang
shinnya has joined #ruby-lang
kek_ has quit [Ping timeout: 272 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kek has quit [Ping timeout: 264 seconds]
tomkadwill has quit []
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has quit []
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby-lang
ta has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby-lang
rippa has joined #ruby-lang
flak has joined #ruby-lang
seamon has quit [Quit: seamon]
monees has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
monees has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
brianpWins has joined #ruby-lang
dangerou_ has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
mbj has joined #ruby-lang
nino is now known as [spoiler]
mistym has joined #ruby-lang
Cakey has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
Cakey has quit [Ping timeout: 240 seconds]
ItSANgo has quit [Quit: Leaving...]
vintik has joined #ruby-lang
djbkd has joined #ruby-lang
AKASkip has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
ssam2 has quit [Quit: Leaving]
ItSANgo has joined #ruby-lang
David_ has joined #ruby-lang
David_ has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
yfeldblum has joined #ruby-lang
mbj has quit [Quit: leaving]
torrieri has quit [Quit: Leaving...]
robmiller has quit [Quit: Leaving.]
shinnya has quit [Ping timeout: 272 seconds]
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yfeldblum has quit [Ping timeout: 255 seconds]
stamina has quit [Quit: WeeChat 0.4.3]
arBmind has joined #ruby-lang
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weems|mac has joined #ruby-lang
queue has quit [Ping timeout: 245 seconds]
JohnFord has joined #ruby-lang
toastynerd has quit [Ping timeout: 245 seconds]
jbardin has joined #ruby-lang
hahuang65 has joined #ruby-lang
fullybaked has joined #ruby-lang
apofis has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
QuintinAdam has quit [Remote host closed the connection]
QuintinAdam has joined #ruby-lang
queue has joined #ruby-lang
tbuehlmann has joined #ruby-lang
QuintinAdam has quit [Ping timeout: 240 seconds]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby-lang
malconis has quit [Remote host closed the connection]
malconis has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
riffraff has joined #ruby-lang
danijoo has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sferik has joined #ruby-lang
yfeldblum has joined #ruby-lang
relix has joined #ruby-lang
vikasyaligar has quit []
r0bby_ has quit [Ping timeout: 240 seconds]
malconis has joined #ruby-lang
dik_dak has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
momomomomo has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
skade has joined #ruby-lang
momomomomo has quit [Client Quit]
saarinen has joined #ruby-lang
skade_ has joined #ruby-lang
chouhoul_ has joined #ruby-lang
malconis has quit [Ping timeout: 240 seconds]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
skade_ has quit [Client Quit]
SpeakerToMeat has joined #ruby-lang
<SpeakerToMeat>
No
SpeakerToMeat has left #ruby-lang [#ruby-lang]
SpeakerToMeat has joined #ruby-lang
chouhoulis has quit [Ping timeout: 256 seconds]
loincloth has joined #ruby-lang
djbkd has joined #ruby-lang
MichD is now known as michd
agarie has quit [Remote host closed the connection]
malconis has joined #ruby-lang
jgpawletko has joined #ruby-lang
ikrima has joined #ruby-lang
monees has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
bin7me has joined #ruby-lang
JohnFord has joined #ruby-lang
mcantor has joined #ruby-lang
<mcantor>
When I run 'gem rdoc --all', WHERE is the HTML placed?
<mcantor>
How do I acces it?
enkristoffer has joined #ruby-lang
symm- has joined #ruby-lang
elia has joined #ruby-lang
havenwood has joined #ruby-lang
<Mon_Ouie>
If you run "gem server" you can access it at the url it gives you
momomomomo has quit [Quit: momomomomo]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 255 seconds]
<mcantor>
Mon_Ouie: Isn't there a way to just spit out the HTML? I don't fully understand why a server is necessary
michd is now known as MichD
<mcantor>
Mon_Ouie: Plus, if I want to view ALL docs in one place--gems AND stdlib--then the server approach is rather broken. (In fact, I think that yardoc server and gem server both try to use the same port by default)
momomomomo has joined #ruby-lang
<Mon_Ouie>
I just don't know where they're located
r0bby_ has joined #ruby-lang
<mcantor>
seems like they're in #{RbConfig::CONFIG["prefix"]}/lib/ruby/gems/#{RbConfig::CONFIG["ruby_version"]}/doc/#{GEM}/rdoc
alekst has quit [Quit: Computer has gone to sleep.]
alekst has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby-lang
momomomomo has joined #ruby-lang
vintik has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ascarter has quit [Client Quit]
vintik has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Read error: No route to host]
ascarter has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
vintik has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
r0bby_ is now known as robbyoconnor
torrieri has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
djbkd has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby-lang
AKASkip has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
elia has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
_ht has quit [Remote host closed the connection]
apt-get_ has joined #ruby-lang
sarkyniin has quit [Ping timeout: 255 seconds]
postmodern has joined #ruby-lang
<darix>
mcantor: wrong
<darix>
mcantor: ask rubygems for the path
<darix>
mcantor: it has options for this too
araujo has quit [Ping timeout: 264 seconds]
fowlduck has joined #ruby-lang
<mcantor>
darix: What did I say that's wrong, specificaly?
<mcantor>
*specifically
<fowlduck>
I'm working on a fix for some SSL issues with zencoder.com's ruby client and I happened upon a solution for adding the default openssl ca bundle paths to the cert store but I'm not entirely certain about the security implications
<fowlduck>
is anyone here familiar enough with net/https to know if there are any issues with this approach?
bin7me has quit [Read error: Connection timed out]
djbkd has joined #ruby-lang
bin7me has joined #ruby-lang
<fowlduck>
the change is essentially to manually build a OpenSSL::X509::Store and add the default paths. that seems like something the default cert store should be doing, though...
<_sillymarkets>
instead of creating 4 separate functions to find the worst numbers in the array and names, I figured I could do one function and iterate through it?
agarie has joined #ruby-lang
<_sillymarkets>
names[index_for_names] fails
<wallerdev>
that code seems really weird lol
<wallerdev>
why not just ary.sort[0, 4]
<_sillymarkets>
I'm sure it is, I'm a beginner
<_sillymarkets>
Well, I have one columnn of names, and I want to print the worst 4 percentages, along with their names
<_sillymarkets>
those exist in two different cells. So if i sort the array with percentages, it won't align up to the correct name
jbardin has joined #ruby-lang
<wallerdev>
wel your while loop doesnt really run does it?
<_sillymarkets>
I figured, i could pull the index value of the array in sort, and then use that index_for_names to print the name related to that index
<wallerdev>
it starts at x = 0
<wallerdev>
and runs while x is less than -4
<wallerdev>
so itd have to be -5 or -6 etc
havenwood has quit [Remote host closed the connection]
<_sillymarkets>
and im subtracting 1 from x, everytime
<_sillymarkets>
so shouldnt i run till x is -3 ?
<_sillymarkets>
it*
<wallerdev>
no lol
<wallerdev>
the first run through, you subtract 1 from x and get x = -1
<wallerdev>
then it checks is -1 < -4
<wallerdev>
which is false
<wallerdev>
and it exits the loop
molgrew has quit [Quit: leaving]
agarie has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby-lang
<_sillymarkets>
ok, so i got the loop to run, switched it to > -4
riffraff has quit [Quit: This computer has gone to sleep]
<_sillymarkets>
but "puts @names[index_for_names] still fails
<_sillymarkets>
no implicit conversion of Array into integer
<wallerdev>
well
<wallerdev>
index_for_names is an array
<wallerdev>
what do you expect it to output?
<wallerdev>
if you had x = [1, 2, 3, 4]; and did x[[7, 2, 8, 9]] im not sure what you expect to get from that
<_sillymarkets>
I want index_for_names to save the values of top 4, so it'll be like [3, 2, 5, 6] and then i wanted puts @names[index_for_names
<_sillymarkets>
to iterate through and print the names associated with the names array, but using the index_for_names values
stevednd has quit [Quit: Leaving]
<wallerdev>
you probably need to loop through index_for_names
<wallerdev>
like index_for_names.each { |i| puts @names[i] }
stevednd has joined #ruby-lang
<_sillymarkets>
hmm, okay. I was thinking along that path too
<fowlduck>
drbrain: copied more or less for how the default cert store is setup in openssl in ruby 2.1.2
<fowlduck>
drbrain: and thanks :)
<drbrain>
fowlduck: yep, looks good
<fowlduck>
I need to check previous ruby versions to make sure this is sane, too
<fowlduck>
awesome, thanks!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo_ has joined #ruby-lang
<_sillymarkets>
that works too drbrain , but i don't follow the logic as well. I'll have to read through passing * arrays again
<drbrain>
_sillymarkets: values_at accepts an arbitrary number of indices to extract values from
<drbrain>
not an array of indices
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
<drbrain>
the * converts an array of indices into arguments for the method
<wallerdev>
* is magic
<_sillymarkets>
very interesting
<_sillymarkets>
thanks
ender|dkm has quit [Ping timeout: 255 seconds]
fullybaked has quit []
MichD is now known as michd
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
elia has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
ender|dkm has joined #ruby-lang
chouhoulis has joined #ruby-lang
Soilent_ has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mark06 has joined #ruby-lang
araujo has joined #ruby-lang
araujo has joined #ruby-lang
<mark06>
how can I compile ruby code native to windows/linux?
<mark06>
or maybe compile to c
djbkd has quit [Remote host closed the connection]
<_sillymarkets>
wallerdev, another quick question. How can I use the "end while" condition to end when it matches a value in the cell ? The value would be a string.