baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
ozcanesen has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
br0d1n has joined #ruby
agent_white has quit [Quit: bbl]
<allisio> Nah, you can still blame him.
<bg> i use 8 space indent when writing ruby
<allisio> You'll burn in hell.
<jhack> Hey!
<allisio> josh25: You wouldn't.
username1 has joined #ruby
<jhack> Are there any gems/resources out there that can help me understand the source code of a production application quicker? (Ex: Providing documentation based on the code/routes)
saneax is now known as saneax-_-|AFK
<allisio> josh25: If you can be sure that all the elements of `list` are unique, `list.delete prod` should work, but modifying a collection while you're iterating over it is generally a bad idea.
pulkit4tech has quit [Quit: Connection closed for inactivity]
hutch34 has quit [Ping timeout: 240 seconds]
<baweaver> &ri Enumerable#select
ColeHub has joined #ruby
<allisio> But then his body is gonna be some gross `if yada; false; else; mutate some state; true; end`.
evaleval has quit [Quit: Page closed]
sylario has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Ping timeout: 256 seconds]
ElDoggo has quit []
weaksauce has quit [Read error: Connection reset by peer]
TomyLobo has quit [Ping timeout: 240 seconds]
ruid_ has joined #ruby
marr has quit [Ping timeout: 260 seconds]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 268 seconds]
arescorpio has joined #ruby
hutch34 has joined #ruby
mwlang has joined #ruby
username1 has quit [Quit: Lost terminal]
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
mwlang has quit [Client Quit]
guacamol1 has quit [Quit: leaving]
guacamole has quit [Quit: Lost terminal]
guacamole has joined #ruby
ruid_ has quit [Quit: Leaving]
ruid has joined #ruby
jhack has quit [Quit: Leaving]
ResidentBiscuit has joined #ruby
morfin has quit []
toretore has quit [Ping timeout: 246 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
ColeHub has quit [Quit: Snooze.]
grant has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
nOwz has joined #ruby
ResidentBiscuit has joined #ruby
PaulCapestany has quit [Quit: .]
montanonic has quit [Ping timeout: 246 seconds]
AndBobsYourUncle has joined #ruby
PaulCapestany has joined #ruby
rkazak_ has quit [Quit: Sleep.....ing....]
PaulCapestany has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
teddysmoker has quit [Quit: Konversation terminated!]
nOwz has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
j2k has joined #ruby
montanonic has joined #ruby
PaulCapestany has joined #ruby
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j2k_ has joined #ruby
eclecticjohny has joined #ruby
j2k_ has quit [Read error: Connection reset by peer]
j2k_ has joined #ruby
j2k has quit [Ping timeout: 260 seconds]
montanonic has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
hxegon_afk has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
pilne has joined #ruby
biberu has quit []
grant has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
jhack has quit [Changing host]
j2k_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ColeHub has joined #ruby
rkazak_ has joined #ruby
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
viuo has quit [Quit: leaving]
abdulmugni has quit [Read error: Connection reset by peer]
raspado has quit [Remote host closed the connection]
abdulmugni has joined #ruby
raspado has joined #ruby
juggler has joined #ruby
hxegon_afk has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rolls is now known as tau
despai has joined #ruby
raspado has quit [Ping timeout: 260 seconds]
josh25 has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Semtex-h has quit []
pawnbox has quit [Ping timeout: 260 seconds]
br0d1n has quit [Quit: Leaving]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ColeHub has quit [Quit: Snooze.]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
ColeHub has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
ColeHub has quit [Quit: Bye.]
bmurt has quit [Client Quit]
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ramfjord_ has quit [Ping timeout: 260 seconds]
t-recx has quit [Quit: t-recx]
Trynemjoel has quit [Ping timeout: 245 seconds]
midacts has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
Trynemjoel has joined #ruby
gusrub has quit [Remote host closed the connection]
despai has left #ruby ["Leaving"]
duderonomy has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
juggler has quit [Ping timeout: 246 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
hutch34 has joined #ruby
willardg has quit [Quit: Textual IRC Client: www.textualapp.com]
marcdel has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
Derperperd has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
arescorpio has quit [Quit: Leaving.]
marcdel has joined #ruby
d^sh has joined #ruby
montanonic has joined #ruby
solocshaw has joined #ruby
tau has quit [Remote host closed the connection]
enterprisey has joined #ruby
ruid has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 has joined #ruby
Jackneill has quit [Remote host closed the connection]
rhyselsmore has joined #ruby
solocshaw1 has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
solocshaw has joined #ruby
solocshaw has quit [Client Quit]
skweek has quit [Ping timeout: 260 seconds]
bocaneri has joined #ruby
milardovich has joined #ruby
optiz0r has quit [Ping timeout: 260 seconds]
libastral has quit [Ping timeout: 240 seconds]
libastral has joined #ruby
elifoster has quit [Quit: out]
pawnbox has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
optiz0r has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
jhack has quit [Quit: Leaving]
enterprisey has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
xall has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
griffindy has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mula has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
<bg> folks
<bg> why isn't there #to_i on TrueClass and FalseClass
marcdel has joined #ruby
Bob8989|2 has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
hotpancakes has quit [Ping timeout: 258 seconds]
marcdel has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
hotpancakes has joined #ruby
petrichorx_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
marcdel has joined #ruby
hotpancakes has joined #ruby
chihhsin has quit [Quit: leaving]
chihhsin has joined #ruby
abdulmugni has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
SeepingN has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
mula has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 256 seconds]
<havenwood> >> class FalseClass; def to_i; 0 end end; !!false.to_i # it's confusing for `false` to become something truthy
<ruby[bot]> havenwood: # => true (https://eval.in/752673)
Tempesta has quit [Quit: See ya!]
grant has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
rhyselsmore has joined #ruby
balazs has quit [Quit: Ex-Chat]
eclecticjohny has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Tempesta has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagmz has quit [Quit: Leaving]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has quit [Ping timeout: 260 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
gix has quit [Ping timeout: 246 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
gix has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
gusrub has quit [Client Quit]
jameser has quit [Ping timeout: 240 seconds]
rhyselsmore has joined #ruby
rhyselsmore has quit [Client Quit]
rhyselsmore has joined #ruby
b4udv8 has joined #ruby
nOwz has joined #ruby
pilne has quit [Quit: Quitting!]
pulkit4tech has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Ping timeout: 240 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
Tempesta_ has joined #ruby
chouhoulis has joined #ruby
pabloh has quit [Quit: Leaving]
Tempesta has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
milardovich has quit [Remote host closed the connection]
cschneid_ has joined #ruby
b4udv8 has left #ruby ["WeeChat 1.4"]
cschneid_ has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
<matthewd> Also there would be people with fairly strong opinions both ways on whether true.to_i should be 1 or -1
jenrzzz has quit [Ping timeout: 268 seconds]
xall has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
Derperperd has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
shinnya has joined #ruby
bkxd_ has joined #ruby
jameser has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
rkazak_ has quit [Quit: Sleep.....ing....]
jameser has quit [Ping timeout: 240 seconds]
petrichorx_ has quit [Quit: Connection closed for inactivity]
elifoster has joined #ruby
ResidentBiscuit has joined #ruby
petrichorx_ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xen0fon has quit [Ping timeout: 240 seconds]
dstrunk has joined #ruby
<allisio> matthewd: No, there wouldn't.
<matthewd> allisio: Are you at least going to tell me which category you think everyone would be in? :P
<allisio> matthewd: That you could reasonably guess is my defense.
ramfjord has quit [Ping timeout: 260 seconds]
dstrunk has quit [Ping timeout: 264 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
djbkd has quit [Quit: Leaving...]
<matthewd> I genuinely don't know. I'm on team -1.
<elomatreb> A C programmer might say true/false should be 1/0
<matthewd> More accurately, I'm on team ~0
<matthewd> But yes, I think it's going to come down to your [potentially quite distant] background
<allisio> matthewd: What're some languages that use -1 for "true"?
<matthewd> In my case it's a BASICism
<matthewd> `False = 0; True = Not False`
<matthewd> It's always seemed so intuitively reasonable to me, I've just assumed it's a not-uncommon choice elsewhere. Maybe I'm more alone than I thought.
ss_much has quit [Quit: Connection closed for inactivity]
Channel6 has quit [Quit: Leaving]
Derperperd has quit [Ping timeout: 260 seconds]
xall has joined #ruby
ebcz has joined #ruby
jameser has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jameser has quit [Ping timeout: 256 seconds]
enterprisey has quit [Remote host closed the connection]
jamesaxl has joined #ruby
xall has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
_whitelogger has joined #ruby
nOwz has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
nOwz has quit [Client Quit]
montanonic has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
jgnagy has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
kernelPaniq has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
renchan has joined #ruby
pawnbox has joined #ruby
jameser has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
ResidentBiscuit has joined #ruby
dionysus69 has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
brent__ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
d0nn1e has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ruby
dlitvak has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
xall has joined #ruby
tildes_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
khaki has joined #ruby
TomyLobo has joined #ruby
pawnbox has quit [Remote host closed the connection]
jenrzzz has joined #ruby
petrichorx_ has quit [Quit: Connection closed for inactivity]
milardovich has joined #ruby
khaki has quit [Quit: WeeChat 1.7]
nofxxx has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 260 seconds]
bg has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
cschneid_ has joined #ruby
SuperLag_ has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
SuperLag_ has quit [Client Quit]
cschneid_ has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
SuperLag has joined #ruby
Qchmqs has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
xall has quit [Ping timeout: 258 seconds]
hotpancakes has joined #ruby
xall has joined #ruby
Jackneill has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
resin has quit [Quit: leaving]
Pumukel has joined #ruby
hogetaro has quit [Quit: Leaving...]
hotpancakes has joined #ruby
conta has joined #ruby
horst has quit [Quit: horst]
tildes_ has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
xall has joined #ruby
tomphp has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
TomyLobo has joined #ruby
Pumukel has joined #ruby
tildes_ has joined #ruby
TomyLobo has quit [Client Quit]
cschneid_ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
TomyLobo has joined #ruby
TomyLobo has quit [Client Quit]
TomyLobo has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Pumukel has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
certainty has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
jameser has joined #ruby
hogetaro has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
__main__ has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Pumukel has joined #ruby
jameser has quit [Ping timeout: 268 seconds]
hfp_work has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
Pumukel has joined #ruby
pawnbox has joined #ruby
jenrzzz has joined #ruby
certainty has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
__main__ has joined #ruby
ResidentBiscuit has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
pandaant has joined #ruby
Pumukel has joined #ruby
quaristice has joined #ruby
acalycine has quit [Quit: bye]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
Jackneill has quit [Quit: Leaving]
zeroDi has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
Pumukel has joined #ruby
xall has quit [Ping timeout: 256 seconds]
Arpanet69 has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
cfec0b8d has joined #ruby
hotpancakes has joined #ruby
brent__ has joined #ruby
d^sh has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
quaristice has quit [Remote host closed the connection]
lxsameer has joined #ruby
brent__ has quit [Ping timeout: 268 seconds]
Qchmqs has quit [Ping timeout: 246 seconds]
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
quaristice has joined #ruby
pawnbox has joined #ruby
JeanCarloMachado has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
makkuzin has joined #ruby
Pumukel has joined #ruby
nowhere_man has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
makkuzin has quit [Client Quit]
makkuzin has joined #ruby
makkuzin has quit [Client Quit]
Pumukel has quit [Ping timeout: 264 seconds]
Bounga has joined #ruby
loechel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
milardovich has joined #ruby
shinnya has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
Pumukel has joined #ruby
oetjenj has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
morfin has joined #ruby
<morfin> you can clone class and then add methods in it?
elifoster has quit [Ping timeout: 240 seconds]
tildes_ has quit [Ping timeout: 240 seconds]
Arpanet69 has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
Pumukel has joined #ruby
yusrideb has quit [Ping timeout: 258 seconds]
<matthewd> morfin: If that was a question.. yes.
yusrideb has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<dminuoso> morfin: Everything (well almost) is an object, even classes.
<dminuoso> morfin: And objects you can clone/dup
Pumukel has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
<matthewd> (well most objects)
nowhere_man has quit [Read error: Connection reset by peer]
<dminuoso> matthewd: Mmm right, you cant clone symbols. Anything else worth mentioning here?
nowhere_man has joined #ruby
<matthewd> Methods would be the relevant nearby one
<matthewd> (especially as immediates like symbols, integers, true/false/nil now [pretend to] support dup in 2.4)
<dminuoso> >> ObjectSpace.each_object.select { |o| begin; o.dup; false; rescue; true; end }.map(&:class).uniq
<ruby[bot]> dminuoso: # => [Class, Bignum, Encoding, Complex, RubyVM::Env, Thread, RubyVM, Float, Data, File] (https://eval.in/752862)
<dminuoso> matthewd: ^- easy.
Pumukel has quit [Ping timeout: 264 seconds]
<dminuoso> Well its not exactly comprehensive, but well
Pumukel has joined #ruby
<dminuoso> matthewd: Why can't you clone a thread?
<dminuoso> That's something I would have expected to work actually.
<matthewd> I'd guess related to the fact it has a C stack.. what would it even mean? Like a thread-level fork, that you could perform from the outside?
<matthewd> Class is in the above list because you can't dup a singleton class; regular ones you can
hotpancakes has joined #ruby
<dminuoso> take the whole iseq inside the block that defines the thread, and start a new one?
<matthewd> (and it obviously misses immediates, because each_object won't find any)
<dminuoso> Well and it will miss all the fancy things that are not constructed yet
<dminuoso> Let me run this in my uber sized Rails application, surely that's more generous in ObjectSpace
<dminuoso> NotImplementedError: need to define `__setobj__' from ...rubies/ruby-2.3.3/lib/ruby/2.3.0/delegate.rb:168:in `__setobj__'
<dminuoso> o_O
<dminuoso> That is un-rescueable.
<matthewd> It's not unrescueable, it just doesn't inherit StandardError
<dminuoso> Oh
<dminuoso> Curious
vuoto has joined #ruby
<matthewd> .. and it really shouldn't be used there, which is interesting, given it's stdlib
<dminuoso> [RubyVM::Env, Class, Encoding, Complex, Symbol, Bignum, Thread, RubyVM, Thread::ConditionVariable, Float, Data, Thread::Backtrace::Location, UnboundMethod, RubyVM::DebugInspector, NameError::message, ActiveSupport::Deprecation, FFI::Function, FFI::DynamicLibrary::Symbol, FFI::Pointer, PaperTrail::Config, Rational, Sprockets::LegacyTiltProcessor, Method, Thread::Queue, Mime::AllType]
<dminuoso> That's more like it.
<dminuoso> matthewd: So rescue without a filter just catches StandardError ?
<dminuoso> TIL.
<matthewd> c
<matthewd> "Things you should be able to recover from", vs.. other
<dminuoso> >> begin raise Class.new; rescue; puts "caught" end
<ruby[bot]> dminuoso: # => caught ...check link for more (https://eval.in/752863)
<dminuoso> matthewd: ^-
<matthewd> That's not rescuing what you think it is
szulak has joined #ruby
<dminuoso> >> begin raise Class.new; rescue; p $!; end
<ruby[bot]> dminuoso: # => #<TypeError: exception class/object expected> ...check link for more (https://eval.in/752864)
<j416> dminuoso: I think it's nice to explicitly say that you're rescuing StandardError; makes it more readable
<dminuoso> :S
<dminuoso> I see.
<dminuoso> matthewd: Not so long ago I tricked baweaver into this:
<j416> (and obvious, since perhaps StandardError is not what you want to rescue most of the time)
<matthewd> Thus NotImplementedError being a bit of a trap: it looks like you want it to mean "my method doesn't support this yet", but it's supposed to be used only for things the *runtime* hasn't implemented
Pumukel has quit [Ping timeout: 240 seconds]
<dminuoso> >> [{}, {}] == {[] => []} || true
<ruby[bot]> dminuoso: # => true (https://eval.in/752865)
<dminuoso> I still feel proud for tricking him with that.
<matthewd> haha
<j416> it's an array and a map how can they be equal
<j416> o_O
Pumukel has joined #ruby
<dminuoso> j416: ponder about it for a while, and it will become obvious
<j416> s/how can they be/what would make one think they are/
<j416> dminuoso: hmm
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<j416> >> [{}, {}] == {[] => []}
<ruby[bot]> j416: # => false (https://eval.in/752866)
oetjenj has joined #ruby
<j416> so not a true/true case
* j416 doesn't get it :/
oetjenj has quit [Client Quit]
<elomatreb> Precedence, false || true
oetjenj has joined #ruby
<j416> ah, the idea was that == has less precedence than ||
<j416> I see
oetjenj has quit [Client Quit]
<dminuoso> j416: That's what allows you to write code without it looking like LISP
<j416> I don't know lisp
<j416> ah, parentheses you mean
<elomatreb> And no precendence rules at all IIRC
<j416> interesting choice
<dminuoso> elomatreb: right because everything has to be an S-expression
milardovich has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<elomatreb> I'm currently in my second semester CompSci and I haven't seen a single line of LISP code yet
patarr has joined #ruby
Pumukel has joined #ruby
<j416> how'd that ruby image get there o_O https://dl.dropboxusercontent.com/u/3207594/30d/ruby.png I wonder if it's my chat client that puts it there just because of the channel name. Or is it some magic channel meta?
<dminuoso> elomatreb: That's a bummer. In particular because S-expressions give LISP a special property called homoiconicity.
jenrzzz has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
<dminuoso> elomatreb: Do they have self-modifying programs on your class schedule at any point?
nowhere_man has quit [Ping timeout: 258 seconds]
ddffg has joined #ruby
<elomatreb> I have a module next semester titled "Advanced Practical Programming" that is supposed be about functional languages, maybe they'll touch on such topics in there. Mostly just basics/framework so far
<elomatreb> I.e. first semester was learning how a CPU works, second how an OS works, etc
milardovich has quit [Ping timeout: 246 seconds]
sid_fules has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ddffg has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
jameser has joined #ruby
hotpancakes has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
DoubleMalt has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
hotpancakes has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
JeanCarloMachado has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
postmodern has quit [Quit: Leaving]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
sid_fules has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
esObe___ has quit [Remote host closed the connection]
pawnbox has joined #ruby
ddffg has joined #ruby
rolls has joined #ruby
rolls is now known as tau
esObe_ has joined #ruby
hotpancakes has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Jackneill has joined #ruby
conta has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
Qchmqs has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
pawnbox has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
millerti has joined #ruby
Pumukel has joined #ruby
spicerack has joined #ruby
nowhere_man has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
petrichorx_ has joined #ruby
raul782 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Xiti has quit [Quit: Xiti]
sid_fules has joined #ruby
patarr has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
vuoto has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
milardovich has quit [Ping timeout: 268 seconds]
Pumukel has joined #ruby
bg has joined #ruby
sagax has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
ruid has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
schickung has joined #ruby
Pumukel has joined #ruby
Guest24 has joined #ruby
jameser has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
griffindy has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
brent__ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
bg has quit [Ping timeout: 260 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
jameser has joined #ruby
hfp_work has joined #ruby
kotk has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
milardovich has joined #ruby
ruid has quit [Ping timeout: 260 seconds]
cfec0b8d has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 240 seconds]
jameser has quit [Max SendQ exceeded]
User458764 has joined #ruby
Guest24 has quit [Quit: Textual IRC Client: www.textualapp.com]
jameser has joined #ruby
cibs has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
milardovich has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<User458764> Hi, i would like to generate a 16 chars random string containing (A..Z )or (1..9) ?
Pumukel has joined #ruby
<User458764> How could I do that knowin the use case is for namin folders
<matthewd> User458764: What do you have so far?
<User458764> matthewd several ways to achieve this but too far complex IMO
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<User458764> I can do this with Array#sample method but I thought at a more low level way
<User458764> *solution
raul782 has quit [Remote host closed the connection]
bmurt has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
<matthewd> There's SecureRandom.hex, which could simplify your implementation at the cost of losing most of the alphabet
pilne has joined #ruby
<matthewd> rand(36).to_s(36) comes to mind too
nettoweb has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
<User458764> (0...8).map { (49 + rand(52)).chr }.join does this valid the ASCII 8bits alphabet?
<matthewd> >> (0...8).map { (49 + rand(52)).chr }.join
<ruby[bot]> matthewd: # => "R958A?RO" (https://eval.in/752916)
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
kotk has quit [Quit: Leaving...]
<elomatreb> You can use 8.times instead of the range, feels cleaner imo
Bounga has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<User458764> elomatreb yes thanks for the notice
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 240 seconds]
<apeiros> `Array.new(8) {` >> `(0...8).map {` IMO
sid_fules has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
Pumukel has joined #ruby
sid_fules has joined #ruby
sid_fules has quit [Remote host closed the connection]
<matthewd> User458764: If it wasn't clear from ruby[bot]'s output, the answer to your question was "no".
Pumukel has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Quit: Leaving.]
Jackneill has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
jameser has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
<ddffg> >> [*('A'..'Z'),*('0'..'9')].shuffle[0,8].join
bkxd_ has quit [Ping timeout: 256 seconds]
hfp_work has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
hfp_work has joined #ruby
conta has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Derperperd has quit [Ping timeout: 264 seconds]
<canton7> ddffg, that only gives you 1 of each letter
milardovich has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
milardovich has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AngryNorseMn has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddffg> canton7, for folder names is better to have distinct letters
<canton7> is it?
<ddffg> yeah
<canton7> on what basis?
<ddffg> more stable
<canton7> "stable"? Do your folders often fall ove?
<canton7> *over
jameser has joined #ruby
AngryNorsMan has quit [Ping timeout: 240 seconds]
AngryNorseMn has quit [Ping timeout: 240 seconds]
bg has joined #ruby
Derperperd has joined #ruby
lightheaded has joined #ruby
matju has joined #ruby
Arpanet69 has joined #ruby
fold4 has quit [Ping timeout: 264 seconds]
millerti has joined #ruby
jhack has joined #ruby
<matthewd> If the names are going to be seen anywhere (so not just local tempfiles -- and if they are, maybe you should be using Tempfile), there are other potential concerns with giving it the full alphabet to play with
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
conta has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
matthewd has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
Pumukel has joined #ruby
psychicist__ has joined #ruby
bg has quit [Ping timeout: 240 seconds]
raul782 has quit [Ping timeout: 256 seconds]
ruid has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
matthewd has joined #ruby
Pumukel has joined #ruby
Blaguvest has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
aesthetikx has joined #ruby
JoshS has joined #ruby
petrichorx_ has quit [Quit: Connection closed for inactivity]
Pumukel has joined #ruby
millerti has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ss_much has joined #ruby
User458764 has joined #ruby
millerti has quit [Client Quit]
cdg has joined #ruby
slackR has joined #ruby
bkxd has joined #ruby
schickung_ has joined #ruby
schickung has quit [Ping timeout: 240 seconds]
schickung_ is now known as schickung
bg has joined #ruby
<bg> ruby folks
<bg> why would you use #zero? instead of == 0?
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
<apeiros> mostly a matter of style, whether you consider it to express intent more clearly
millerti has joined #ruby
hotpancakes has joined #ruby
jameser has joined #ruby
minimalism has quit [Quit: minimalism]
Qchmqs has quit [Quit: Konversation terminated!]
Pumukel has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
teddysmoker has joined #ruby
jeffreylevesque has joined #ruby
<jeffreylevesque> one of my first ruby scripts - https://bpaste.net/show/62df0075b9a7
milardovich has quit [Remote host closed the connection]
<jeffreylevesque> is that array implementation ok?
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
<canton7> jeffreylevesque, 1) use File.join on line 7, 2) use `servers.map` instead of creating an array and when adding to it in that `each`
A124 has quit [Quit: '']
<bg> another question for you folks (i asked this last night but i fell asleep so i apologize if it was answered) -- what don't TrueClass and FalseClass have #to_i so i can get 1 or 0 from a boolean?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bg> why don't*
<jeffreylevesque> changed it with your recommendations - https://bpaste.net/show/d95367a0e1d8
<bg> you didn't use File.join where canton7 said you should have
<matthewd> bg: I claimed that 1 isn't necessarily the only reasonable answer for true.to_i
<slackR> jeffreylevesque, no need to push, you'll get back the array
<bg> and you missed the point of map
User458764 has joined #ruby
<bg> matthewd: certainly the most generally useful one. and it's better than not having #to_i at all
<matthewd> bg: But I think the fact `? 1 : 0` is basically the same length as `.to_i` would be a factor too
<matthewd> I can't think of many occasions where I've needed such a thing
<bougyman> bg: [4] pry(main)> true.to_i
A124 has joined #ruby
<bougyman> => 1
<bg> bougyman: what!!
<matthewd> .. and those I can think of have all involved golfing
<bougyman> (because I did ) [3] pry(main)> class TrueClass; def to_i; 1; end; end
<bougyman> => :to_i
<bougyman> if you want it, do it.
<bg> oh
<bougyman> ruby doesn't stop you, even when you want to do foolish shit like that.
<jeffreylevesque> slackR: so just `YAML.load_file("#{current_dir}/hiera/nodes/#{server}.mongodb.com.yaml"` in the map?
<jeffreylevesque> am i referencing the yaml correctly?
<bg> bougyman: how is it foolish?
<bougyman> bg: because you already have a real boolean.
<bougyman> and you're turning it into a fake one.
<bougyman> which is foolish.
<bg> it's not a fake boolean. it's an integer.
<bg> i want to do arithmetic with it.
<bougyman> ok, what's the use case for it?
jgnagy has quit [Remote host closed the connection]
<bougyman> if you want to do arithmetic why not just use 1 and 0 ?
jgnagy has joined #ruby
<matthewd> That sounds like a plan for obfuscating what should be a clearer ?: further up the expression
<slackR> jeffreylevesque, ye, will do.
quaristice has quit [Remote host closed the connection]
<bougyman> jeffreylevesque: you should use #join for your paths.
<bg> bougyman: that doesn't make any sense
<matthewd> bg: Do you have an actual example we can talk about?
quaristice has joined #ruby
<bg> i've got this boolean from somewhere else, where it *does* make sense as a boolean. then i want to get an integer i can do arithmetic with.
<bg> matthewd: yes, i did have one. i'm trying to remember what it was. i'm looking for it now.
<jeffreylevesque> bougyman: do i replace something by implementing `join`?
<matthewd> "do arithmetic with" == "multiply it by a number"?
Pumukel has quit [Ping timeout: 264 seconds]
<matthewd> `bool.to_i * 7 + 3` vs `bool ? 10 : 3`, I know which I prefer
hotpancakes has quit [Ping timeout: 246 seconds]
<bougyman> jeffreylevesque: wut?
<bougyman> [11] pry(main)> Pathname(current_dir).join('hiera', 'nodes', "#{server}.mongodb.com.yaml")
<bougyman> => #<Pathname:/here/hiera/nodes/theserver.mongodb.com.yaml>
<bg> matthewd: note that you can't simplify it like that if you don't know the number. what if it's a complex expression?
<bougyman> course you can just use File.join without requiring pathname.
<bougyman> I'm just a pathname fanatic since I was a common-lisper.
<matthewd> I generally wouldn't bother with File.join, fwiw
<bg> `bool.to_i * f(a[b], c) + 3` vs. `bool ? f(a[b], c) + 3 : 3`
<adam12> Is there a definitive guide to Ruby path handlng
DLSteve has joined #ruby
<adam12> I've been doing this a long time and I still can never remember expand_path, join, etc use cases.
<matthewd> `(bool ? f(..) : 0) + 3` ¯\_(ツ)_/¯
<matthewd> bg: I'd still argue you're hiding a conditional inside a multiplication, which feels... C-ish
<bg> it feels "C-ish" and that makes it bad?
<slackR> bougyman, would it be bad? if he used heira instead of current directory, as he's using it at multiple places.
<matthewd> Insofar as that implies it's unrubyish, yes
<bg> why can't it be both?
Pumukel has joined #ruby
<slackR> bg, because we are nice and we are not into language wars.
<matthewd> If it were, I wouldn't be describing it as C-ish
eclecticjohny has joined #ruby
<matthewd> `a * b` isn't both C-ish and ruby-ish, it.. just is.
<bg> i don't consider it "hiding" a conditional
<bg> actually i think it's the best way of expressing it, because it's strictly less powerful than general purpose branching structures like `?:` or `if`.
alan_w has joined #ruby
<bg> if you can express your branching with a multiplication, it says something about your program
<bougyman> It says: Screw the next guy who has to maintain this.
<matthewd> bg: This is the problem with "why" questions.
Pumukel has quit [Ping timeout: 264 seconds]
<bg> bougyman: no it doesn't.
<matthewd> bg: I can tell you why I, as a rubyist, would find that method to be odd... as a best-attempt approximation of why some other people might have chosen for it to not exist
Pumukel has joined #ruby
<matthewd> bg: But you trying to counter-argue that I'm wrong doesn't get us anywhere. Even if you managed to convince me, the best possible scenario is I agree with you the method should exist, while it continues to not be there.
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
hotpancakes has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bg> well the reason i asked is in case there were a really good reason that i hadn't considered
nettoweb has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<matthewd> Setting aside what such a "really good reason" could possibly look like... how would that help anyway?
<bg> i'd learn something
Pumukel has joined #ruby
naprimer_3 has joined #ruby
schickung has quit [Quit: schickung]
<slackR> bg, maybe you might be interested to look in here(if you haven't already -> https://bugs.ruby-lang.org/issues/7978)
Psy-Q has quit [Quit: ZNC - http://znc.in]
User458764 has joined #ruby
Psy-Q has joined #ruby
joelwallis has joined #ruby
naprimer_2 has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
nettoweb has quit [Max SendQ exceeded]
Pumukel has joined #ruby
nettoweb has joined #ruby
muelleme has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
_aeris_ has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
aesthetikx has quit [Ping timeout: 260 seconds]
_aeris_ has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
Bounga has joined #ruby
Pumukel has quit [Read error: Connection timed out]
<bg> slackR: wow i lost respect for Matz reading that
<matthewd> Were you expecting him to agree with you? :/
hotpancakes has joined #ruby
<bg> no, but his argument makes no sense
<slackR> bg, was just pointing the inconsistencies
psychicist__ has quit [Ping timeout: 260 seconds]
<bg> i feel like if _Bool were not an integer type in C, he'd be more open to the idea of #to_i on booleans. which doesn't really make sense. it seems like he just wants to distance ruby from C rather than making it the best it can be.
psychicist__ has joined #ruby
<canton7> in C, 0 is falsy. In ruby, 0 is truthy
<canton7> I agree with him
quaristice has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
<slackR> canton7, nil is falsy, nil.to_i is truthy isn't that funny?
cdg has quit [Remote host closed the connection]
<canton7> yeah, I'm not sure I agree with nil.to_i either :P
quaristice has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
<matthewd> bg: It's not an argument, it's an explanation. The argument presented was "1 and 0 are fairly common numeric values for false and true [in other, e.g. C-like, languages]". Matz explained why that argument was not persuasive to him.
raul782 has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
GodFather has joined #ruby
matthewd has quit [Quit: ZNC - http://znc.in]
hutch34 has joined #ruby
conta has quit [Ping timeout: 246 seconds]
szulak has joined #ruby
pawnbox has quit [Remote host closed the connection]
quaristice has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
quaristice has joined #ruby
fold4 has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
hotpancakes has quit [Ping timeout: 246 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
renchan has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
sid_fules has joined #ruby
hotpancakes has joined #ruby
MasterRex has joined #ruby
Pumukel has joined #ruby
matthewd has joined #ruby
quaristice has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 264 seconds]
psychici1t__ has joined #ruby
Bounga has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
muelleme has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
psychicist__ has quit [Read error: Connection reset by peer]
mula has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
Fernando-Basso has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: Leaving]
hotpancakes has joined #ruby
Qommand0r has quit [Quit: WeeChat 1.7]
SCHAAP137 has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 240 seconds]
renchan has joined #ruby
Pumukel has joined #ruby
Qommand0r has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
conta has joined #ruby
doublemalt_ has joined #ruby
SCHAAP137 has joined #ruby
mgorbach has quit [Remote host closed the connection]
govg has quit [Ping timeout: 260 seconds]
dar123 has joined #ruby
Bounga has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
mgorbach has joined #ruby
hotpancakes has joined #ruby
govg has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
joelwallis has quit [Quit: Leaving]
dcluna has quit [Ping timeout: 260 seconds]
dcluna has joined #ruby
_joes__ has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
_joes___ has joined #ruby
_joes___ has quit [Client Quit]
Pumukel has quit [Ping timeout: 264 seconds]
zeroDi has quit [Quit: WeeChat 1.7]
_joes__ has quit [Client Quit]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
<morfin> dminuoso, i know everything is an object )
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitz has joined #ruby
<leitz> Do you have to have Ruby on a machine to compile Ruby?
<havenwood> leitz: Nope.
<morfin> and i like this more than PHP principle - something is scalar, something is an object
<allisio> morfin: Almost everything.
Pumukel has joined #ruby
<leitz> havenwood, thanks! Watching the make messages scroll by...
hotpancakes has joined #ruby
<leitz> Well, seeing lots of errors, too.
szulak has joined #ruby
Bounga has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
cibs has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joes_ has joined #ruby
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
eclecticjohny has joined #ruby
eclecticjohny has quit [Client Quit]
cibs has joined #ruby
User458764 has joined #ruby
ramfjord has joined #ruby
hotpancakes has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
pandaant has quit [Remote host closed the connection]
<matthewd> There are plenty of things that aren't objects, if you get sufficiently pedantic. But everything you can store in a variable is an object.
hotpancakes has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<allisio> Is inheritance an object?
Pumukel has joined #ruby
<matthewd> Can you store it in a variable?
sepp2k has joined #ruby
<allisio> I think so?
shinnya has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
<bg> allisio: are you joking?
<allisio> bg: How do you mean?
<bg> how can you store inheritance in a variable
workmad3 has joined #ruby
<matthewd> Inheritance is a concept.. I don't know how you'd put it in a variable, or even what that means
jenrzzz has quit [Ping timeout: 256 seconds]
<bg> inheritance = Integer.ancestors; ^___^
<allisio> I can do better than that.
Pumukel has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
<matthewd> I was targeting the "blocks aren't objects" argument, but apparently we're getting all metaphysical up in here :P
Pumukel has joined #ruby
muelleme has joined #ruby
psychici1t__ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
mula has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.7]
hotpancakes has quit [Ping timeout: 246 seconds]
matju has quit [Quit: Leaving]
<allisio> Does this count as "storing inheritance in a variable"? https://eval.in/752955
psychicist__ has joined #ruby
<matthewd> Only if `a = 1 + 2` means we're storing addition in a variable (and that's not an object either!)
hotpancakes has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
muelleme has quit [Ping timeout: 240 seconds]
aesthetikx has joined #ruby
Pumukel has joined #ruby
vict83 has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Blaguvest has quit []
User458764 has joined #ruby
BTRE has quit [Changing host]
BTRE has joined #ruby
<morfin> blocks are weird things
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
sid_fules has quit [Read error: Connection reset by peer]
<allisio> How's that?
sid_fules has joined #ruby
dviola has joined #ruby
ebcz has quit [Quit: Bye]
Bounga has quit [Ping timeout: 240 seconds]
xenops has joined #ruby
eclecticjohny has joined #ruby
twistedpixels_ has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
<bg> allisio: they are funny things
Bounga has joined #ruby
hanmac has joined #ruby
<allisio> They're closures; that's hardly an otherworldly notion.
<bg> not just closures
<bg> >> [1, 2, 3].map { break 42 }
<ruby[bot]> bg: # => 42 (https://eval.in/752956)
sagax has joined #ruby
<bg> like what. i put 'break' in my block and it causes some kind of non-local return?
Pumukel has quit [Ping timeout: 264 seconds]
twistedpixels_ has joined #ruby
<morfin> wait a second
MasterRex has quit [Ping timeout: 264 seconds]
<allisio> >> [1, 2, 3].map &-> x { break 42 }
<ruby[bot]> allisio: # => [42, 42, 42] (https://eval.in/752957)
<morfin> but they do capture scope
<allisio> Just sayin'.
<morfin> right? i forgot
Pumukel has joined #ruby
<allisio> They do have an "environment" but, as bg pointed out, they also interact with the rest of Ruby in characteristically stateful ways.
mula has joined #ruby
BTRE has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
psychici1t__ has joined #ruby
joes_ has quit [Quit: Leaving]
joes_ has joined #ruby
<noan> dear santa: for christmas I want to know if the topleft pixel in rmagic is 0, 0, or 1, 1
Pumukel has quit [Ping timeout: 240 seconds]
joes_ has quit [Client Quit]
montanonic has joined #ruby
DARPA has joined #ruby
joes_ has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
joes_ has quit [Remote host closed the connection]
hongkongphooy has joined #ruby
enterprisey has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
twistedpixels_ has quit [Ping timeout: 240 seconds]
rkazak_ has joined #ruby
cfec0b8d has joined #ruby
bougyman has quit [Ping timeout: 258 seconds]
rkazak_ has quit [Client Quit]
twistedpixels_ has joined #ruby
_joes__ has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
rkazak_ has joined #ruby
_joes__ has quit [Client Quit]
bougyman has joined #ruby
bougyman has joined #ruby
<sparr> when I raise an exception inside a block being passed to a function, the outermost layer of my backtrace points to the line starting the function call, not the problematic line inside the block. Is there any way to augment that with more useful information?
tildes_ has joined #ruby
<sparr> sorry, I don't mean that my code intentionally raises an exception. I mean something further down in the call stack from my block raises it.
<aesthetikx> I find myself doing array_of_hashes.map { |h| h['name'] } like 100 times a day, is there any syntax sugar I am unaware of to shorten this, like .map(&:[], 'name') or similar
gk- has joined #ruby
<aesthetikx> til array_of_hashes.pluck('name'), nvm :)
gk- has quit [Excess Flood]
conta has quit [Ping timeout: 260 seconds]
gk- has joined #ruby
mula has quit [Remote host closed the connection]
gk- has quit [K-Lined]
jenrzzz has joined #ruby
<matthewd> sparr: Got an example? The backtrace should point to the actual line that's at fault, unless something's choosing to mangle it.
t-recx has joined #ruby
gk- has joined #ruby
ujjain has quit [Read error: Connection reset by peer]
<matthewd> aesthetikx: pluck is a Rails-ism, but yeah, a handy one
<sparr> unfortunately I don't have the exact code that person is running, but I generally know what it looks like
ujjain has joined #ruby
ujjain has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Arpanet69 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
psychici1t__ has quit [Ping timeout: 240 seconds]
<sparr> I don't I have encountered this behavior myself as well, but don't have a test case handy. What's ahppening is that some library code is raising an exception somewhere inside the code block attached to Decknew(), and then the backtrace just calls out the deck.new() call instead of the line inside the block where the problem was.
jenrzzz has quit [Ping timeout: 240 seconds]
<matthewd> So, the problem is the DSL implementation
<sparr> right, but what line inside Deck.new() leads to the call to the call to the call to the call to layout_parser.rb?
<matthewd> The line that's *causing* the problem is one of the lines inside the DSL
gk- has quit [K-Lined]
<matthewd> But the exception isn't occurring while that line is running
DARPA has quit [Ping timeout: 268 seconds]
<sparr> let me make a test case to ask my question better
joelwallis has joined #ruby
joelwallis has quit [Client Quit]
gk- has joined #ruby
<baweaver> dminuoso / matthewd: I am not me without coffee in the mornings. *curses 5AM wakeup*
Pumukel has joined #ruby
* matthewd looks at the clock
muelleme has joined #ruby
<baweaver> was replying to message from a while back
<sparr> damn, I can't reproduce it in a trivial test case
gk- has quit [K-Lined]
<sparr> https://gist.github.com/sparr/00faa4feb3fd443b90cd05b6e35af3b5 was my test case attempt, but in this situation the information I want is present, the trace DOES mention line 11.
<sparr> next time I encounter a trace that doesn't have that information, I'll try to reduce it to a test case
enterprisey has quit [Ping timeout: 240 seconds]
<matthewd> sparr: That's what I'm saying, though
<sparr> I keep encountering traces where only line 9 gets mentioned, not line 11 (relatively speaking)
joelwallis has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<matthewd> sparr: That's what the squib example boils down to
<sparr> I'll be back with a better example
<sparr> sorry
<matthewd> sparr: The exception points at line 3 (inside the library) then line 9 in the app code
Pumukel has joined #ruby
<matthewd> sparr: The line at *fault* is line 7, but it can't know that
pawnbox has quit [Remote host closed the connection]
User458764 has joined #ruby
psychicist__ has joined #ruby
pawnbox has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
JoshS has quit [Quit: Leaving]
hogetaro has quit [Quit: Leaving...]
vict83 has quit [Ping timeout: 260 seconds]
joelwallis has quit []
joelwallis has joined #ruby
joelwallis has quit [Client Quit]
szulak has joined #ruby
<jamesaxl> hi
conta has joined #ruby
MasterRex has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
gk- has joined #ruby
gk- has quit [Excess Flood]
Silthias has joined #ruby
jhack has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
Pumukel has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
aesthetikx has quit [Ping timeout: 264 seconds]
Bounga has joined #ruby
vuoto has joined #ruby
sid_fules has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
bestel has joined #ruby
sid_fules has joined #ruby
<bestel> Hello!
Bounga has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
<bg> hi bestel
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ujjain has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
MasterRex has quit [Ping timeout: 264 seconds]
<bg> bestel: how are you today
<bg> hi jamesaxl
<bestel> NIce, u?)
hotpancakes has joined #ruby
<bg> im ok
<jamesaxl> bg, hello
muelleme has joined #ruby
<bg> how are you jamesaxl
irc2000 has joined #ruby
<irc2000> Am I racist if I only have bad experience of black people where I've met 10 of them ever and 10 of them were serial killers? Does that make me a racist?
ujjain has joined #ruby
pawnbox has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
<bg> how could that possibly make you a racist
Pumukel has joined #ruby
<bg> your scenario didn't include any of your thoughts or actions
<bg> racists are characterized by their behavior and their beliefs
ujjain has quit [Changing host]
ujjain has joined #ruby
<bg> simply having something happen to you can't make you a racist
<bestel> bg: I'm newbie in ruby. How record a result every time a cycle is traversed?
<irc2000> bg: well, I beleive that 10 of those BLACK PEOPLE were serial killers (which has been proven). Am I a racist then?
<bg> if you hate black people because 100% of the black people you've met are serial killers, does that make you racist? that's a more interesting question
<bg> irc2000: are you a racist for believing something that has been proven? hardly
<bg> bestel: what is a cycle?
<bestel> loop
<irc2000> bg: well, matthewd seems to think that I'm racist
<irc2000> bg: he'll ban me for racism
<bg> well you're off-topic, that's for sure
<bg> bestel: what does it mean to record a result?
<irc2000> bg: if I was talking about how great is particular choice of religion is instead, he wouldn't ban me
User458764 has joined #ruby
<irc2000> I am black and you matthewd is a racist for banning me.
irc2000 has left #ruby [requested by matthewd (irc2000)]
tildes__ has joined #ruby
raul782 has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
tildes_ has quit [Ping timeout: 258 seconds]
raul782 has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
griffindy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
psychicist__ has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
<sparr> are there ruby libraries that can manipulate SVG files to the depth of being able to split a <path> or <polyline> in half?
mula has joined #ruby
Channel6 has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
houhoulis has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
jhack_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jhack has quit [Ping timeout: 240 seconds]
<bestel> bg: an array changes in my loop 3 times, [1,2,3], [2,1,3], [2,3,1]. How can I add this array in other array in every iteration?? result << [1,2,3], result << [2,1,3], result << [2,3,1]
jhack_ is now known as jhack
jhack has quit [Changing host]
jhack has joined #ruby
szulak has joined #ruby
nightfog has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<bg> bestel: it sounds like you already know how...
<bg> result << a every time a changes
<allisio> bestel: There's probably a much better way to do what you're trying to do.
<bg> looks like some kind of next_permutation algorithm
Pumukel has joined #ruby
millerti has joined #ruby
<bestel> bg: I know .permutation method, but need to do it without it(
mula has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
ss_much has quit [Quit: Connection closed for inactivity]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<matthewd> > need to do it without it
<matthewd> Is this homework?
<bestel> matthewd: no :)
<bg> bestel: result << arr.clone
nightfog has quit [Ping timeout: 256 seconds]
<bestel> bg: Thank you so much !!!!
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<bg> :3
Pumukel has quit [Ping timeout: 264 seconds]
<bestel> bg: I'm learning loops and algos and want to write own method like .permutation
Pumukel has joined #ruby
<bg> ok -- but you know that's not equivalent to generating permutations, right?
<bestel> bg: cheers;)
cfec0b8d has quit [Quit: Leaving.]
<bestel> bg: of course
<bg> ok
cfec0b8d has joined #ruby
<bestel> I like the open and friendly ruby community
<bg> i love this community too
<bg> i'm new to ruby but with the help of these lovely people i am improving
ResidentBiscuit has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
sid_fules has joined #ruby
nightfog has joined #ruby
JeanCarloMachado has quit [Read error: Connection reset by peer]
JeanCarloMachado has joined #ruby
enterprisey has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bestel> bg: I'm with ruby 5 month only, thanks for the mentoring
zeroDi has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
oetjenj has quit [Quit: Textual IRC Client: www.textualapp.com]
ResidentBiscuit has joined #ruby
Bounga has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
Pumukel has joined #ruby
eclecticjohny has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
Guest9 has joined #ruby
Guest32509 has quit [Changing host]
Guest32509 has joined #ruby
Guest32509 is now known as Nicmavr
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
mr_rich101 has quit [Quit: ZNC - http://znc.in]
hotpancakes has joined #ruby
mr_rich101 has joined #ruby
houhoulis has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
alan_w has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
sid_fules has quit [Read error: Connection reset by peer]
Derperperd has joined #ruby
mjolnird has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
jenrzzz has joined #ruby
ozcanesen has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
aesthetikx has joined #ruby
Pumukel has joined #ruby
mjolnird has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mjolnird has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<leitz> Since the actual code has /usr/bin/env ruby, why does this file use /usr/bin/ruby?
<matthewd> leitz: The better question would be: how did that file end up there? :/
<leitz> More to the point, how do I fix the gem to make it work properly.
tomphp has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<leitz> matthewd, I dunno. I copied it from /usr/bin/Chargen to toys to push it up to github. I'm new to gems, so it's probably operator error. Just not sure how to fix it.
<leitz> When I did the original install there was a /usr/bin/ruby. Now there's not. Does the gem install chose the first Ruby in the path?
<leitz> Wait, scratch that; i removed the old ruby before the gem install this time.
Pumukel has joined #ruby
workmad3 has joined #ruby
<matthewd> gem install will use the ruby it's running under
<matthewd> But you shouldn't be committing that file. It will, as you saw, get generated when the gem is installed.
ResidentBiscuit has joined #ruby
m_31 has joined #ruby
<leitz> Well, maybe it's supposed to... I removed old ruby versions and then installed the gem. The /usr/bin/Chargen may have been left over, but I removed it and removed the gem and reinstalled. /usr/bin/Chargen was not put back in place.
Pumukel has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Client Quit]
Pumukel has joined #ruby
<matthewd> It'll be put in the appropriate place depending on how rubygems is configured
vuoto has quit [Ping timeout: 260 seconds]
<matthewd> Point is, it's generated on install. It even has a comment describing that fact.
sid_fules has joined #ruby
ResidentBiscuit has joined #ruby
<leitz> I can edit the file and put it in place and things work.
<leitz> So the first hurdle is making sure the gem puts the file in place. Have a pointer to a tutorial on that?
<matthewd> `gem env` should tell you where it'll put it
Pumukel has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
Pumukel has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<leitz> Okay, cool. That's /usr/local/bin, and the Chargen is there. However, it's again using the hard coded ruby path.
<leitz> Is there a way to fix that?
<matthewd> It's working correctly
<matthewd> There's nothing to fix
<leitz> It's hard coding a path, no way to make it use "/usr/bin/env ruby"?
<matthewd> I'm not sure how else I can say it
<matthewd> It is doing the right thing. There is not a way for you to break it.
bestel has quit [Quit: Page closed]
<leitz> It is doing the expected thing. However, if someone wants to be able to use different ruby versions it is broken.
esObe_ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<Andrevan> Try rvm or rbenv
slackR has quit [Ping timeout: 240 seconds]
elomatreb has quit [Quit: mep mep]
Pumukel has quit [Ping timeout: 240 seconds]
<matthewd> If someone is using a ruby version switcher, they'll be managing their bin directories appropriately
<Arpanet69> Go up a notch and youre ready for a gang-!
<Arpanet69> owh wrong channel
Pumukel has joined #ruby
<Arpanet69> mi excusi
<allisio> That'll be three Hail Marys.
JeanCarloMachado has quit [Ping timeout: 268 seconds]
milardovich has quit [Ping timeout: 240 seconds]
<leitz> Ah, so use the E install option. That solves my problem.
quaristice has joined #ruby
zeroDi has quit [Ping timeout: 256 seconds]
<leitz> Yeah, this can be fun...
JeanCarloMachado has joined #ruby
<leitz> On to the next issue...
<havenwood> leitz: `gem install` takes a -E or --env-shebang flag
Pumukel has quit [Ping timeout: 264 seconds]
<leitz> havenwood, yup. Just found that, and I have to admit to some appreciation to the rubygems folks. Nice docs!
<havenwood> leitz: you can set it for all gem commands in your ~/.gemrc: gem: "--env-shebang"
Bounga has joined #ruby
<leitz> Ooohh...didn't know that.
Pumukel has joined #ruby
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
sid_fules has quit [Remote host closed the connection]
tildes__ has quit [Ping timeout: 258 seconds]
Bounga has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
elomatreb has joined #ruby
psychicist__ has joined #ruby
coatezy has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
zeroDi has joined #ruby
sid_fules has joined #ruby
elomatreb has quit [Client Quit]
Pumukel has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bkxd has joined #ruby
Pumukel has joined #ruby
Derperperd has quit [Quit: WeeChat 1.5]
<leitz> Okay, time for my next question. I've been saving them up while trying to do python at work.
sid_fules has quit [Remote host closed the connection]
Derperperd has joined #ruby
coatezy has joined #ruby
<leitz> In Ruby 1.8.7 (RHEL 6), this line returns a string. In Ruby 2.4.0 it returns a string that looks like an array.. Even trying to set a new variable fails. https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/Tools/Name.rb#L76
<leitz> Even though it's classed as a string, it looks like: ["Carli"] ["Ray"]
elomatreb has joined #ruby
<leitz> This has the same result: new_name = f_name + " " + l_name
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<leitz> Tried join but it failed.
<leitz> The string itself includes the brackets and quotes.
nightfog has quit [Ping timeout: 256 seconds]
<leitz> Is there a better solution than gsub?
psychicist__ has quit [Ping timeout: 264 seconds]
psychicist__ has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
<adam12> leitz: I bet it is a string, but your call to `to_s` was somehow mangled by SQLite3, which turned a single element array into a string that looked like a single element array
<adam12> leitz: Tho I don't use SQLite3 directly (normally through Sequel) so I'd say I'm guessing at this.
d0nn1e has joined #ruby
Pumukel has joined #ruby
Fernando-Basso has quit [Ping timeout: 240 seconds]
<darix> leitz: i am sure those are arrays.
conta has quit [Quit: conta]
jenrzzz has joined #ruby
<leitz> darix, if I "puts f_name.class" it comes back as a string. I can use /[[:alpha:]]+/.match(first_name(gender,species)) in line 74 to pull out the string.
<adam12> leitz: how about last_name[0].to_s (line 69)
<leitz> They *look* like arrays...
<adam12> or last_name.first.to_s
<leitz> adam12, you are too cool!
<leitz> the last_name[0] works.
<adam12> I bet to_s is calling inspect internally, which turns ["Some Name"] into "[\"Some Name\"]"
kalib has joined #ruby
<kalib> Hello guys. I am receiving the error: Could not find RedCloth-4.2.9 in any of the sources
<kalib> Run `bundle install` to install missing gems.
<kalib> but I do have RedCLouth:
<kalib> bundle-2.1 show RedCloth
<kalib> /opt/ruby2.1/lib/ruby/gems/2.1.0/gems/RedCloth-4.2.9
<adam12> kalib: What's the line in the Gemfile for `RedCloth`
Pumukel has quit [Ping timeout: 264 seconds]
millerti has quit [Ping timeout: 264 seconds]
<kalib> bundle-2.1 show RedCloth
<kalib> /opt/ruby2.1/lib/ruby/gems/2.1.0/gems/RedCloth-4.2.9
<kalib> ops..sorry
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
<kalib> gem 'RedCloth', '~> 4.2.9' adam12
Pumukel has joined #ruby
<matthewd> Are you running through bundle exec?
jenrzzz has quit [Ping timeout: 258 seconds]
Suslov has joined #ruby
<adam12> kalib: What's the source line at the top of the Gemfile look like
<kalib> matthewd: I am trying to run rake-21 generate
<kalib> my gemfile
<leitz> adam12, immortalized you in the commit statement and issue closure. :) BTW, I loved that show.
<adam12> leitz: Hah! Cheers.
bpmedley has joined #ruby
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<adam12> kalib: anything wrong when you run `bundle doctor`?
<kalib> bundle doctor or bundle-2.1 doctor ?
<adam12> I guess bundle-2.1. I use direnv and chruby so I am not 100% sure.
<kalib> $ bundle-2.1 doctor
<kalib> The Gemfile's dependencies are satisfied
<kalib> No issues found with the installed bundle
elomatreb has quit [Client Quit]
<adam12> And what command are you running when you experience the error? rake-2.1 generate?
<kalib> adam12: yes
elomatreb has joined #ruby
<kalib> $ rake-2.1 generate
<kalib> ## Generating Site with Jekyll
<kalib> Could not find RedCloth-4.2.9 in any of the sources
<kalib> Run `bundle install` to install missing gems.
<adam12> How about `bundle-2.1 exec rake generate`?
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
elifoster has joined #ruby
<kalib> adam12: tried with three ways... here it is: https://paste.ofcode.org/39s5GUcb4NwNrCUmmqHWdjT
hutch34 has quit [Ping timeout: 258 seconds]
<adam12> kalib: what OS are you using? And if Linux, what distro? Something seems janky. Do you run any other Ruby code on this machine?
<kalib> adam12: I don't run ruby projects.. The only thing I use ruby for is for octopress. It's an Arch Linux machine.
enterprisey has quit [Ping timeout: 246 seconds]
<adam12> Did you just install Ruby?
<kalib> adam12: giving you some context.. I didn't update my octopress site for the last 1 year or so..
<kalib> So I decided to update it now. And I couldn't.
Pumukel has quit [Ping timeout: 264 seconds]
<kalib> And I realized that it was because I only had ruby 2.4 here..
<kalib> But this would need ruby 2.1, because of the version of my rake, bundle and everything..
nightfog has joined #ruby
<kalib> so I installed ruby2.1-bundler and ruby2.1
<adam12> kalib: I'm just surprised that bundle-2.1 exec rake failed, as rake is a dependency in your Gemfile. Which is what makes me wonder.
Pumukel has joined #ruby
<adam12> kalib: Let's try this. `bundle-2.1 install --binstubs ; bin/rake generate`
<kalib> including the ` `
<kalib> ?
<adam12> Sorry no - that's just to indicate start/end of the command I want you to run
<kalib> ok, sorry.
Fernando-Basso has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
<adam12> kalib: My guess is this - the `generate` task is calling back out to another command, and it's not using the right version of Ruby.
<adam12> kalib: That's the only reason why I think you'd be seeing this funky error.
blackwind_123 has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<kalib> adam12: hum.. any idea on where I could check that?
<adam12> kalib: I'm looking at source of Jekyll now, but your version is ancient :P
<kalib> is it possible to update my version?
Pumukel has joined #ruby
<adam12> kalib: Probably. I'm not a Jekyll user so I am not sure.
<adam12> kalib: Do you have a Rakefile in your project folder?
workmad3 has joined #ruby
<kalib> adam12: yes..
<kalib> let me show you
<ruby[bot]> kalib: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<adam12> kalib: Kinda hacky, but on line 55 and 56, insert `bundle-2.1 exec` before the commands. so `system "bundle-2.1 exec original-string-here"`
Pumukel has quit [Ping timeout: 240 seconds]
<kalib> ok.. let me give it a try..
Pumukel has joined #ruby
enterprisey has joined #ruby
Rodya_ has joined #ruby
<kalib> adam12: did it and tried to run rake-2.1 generate
<kalib> I think on lines 55 and 56
<kalib> I need to give the full path for jekyll and compass
<kalib> since it's not finding it.
<kalib> let me try
millerti has joined #ruby
<adam12> kalib: Unfortunately I think you have some weird problems with your Ruby.
<adam12> But you might get lucky by changing to full path.
tenderlove has quit [Read error: Connection reset by peer]
<adam12> "NoMethodError: undefined method `activate_bin_path' for Gem:Module" <!-- this error stinks.
tenderlo_ has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<allisio> Is there some incantation to make String#unpack handle "leftovers"?
workmad3 has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<kalib> adam12: I tried giving /usr/bin/jekyll and the same for compass... didn't work.. than I trie dto give /opt/ruby2.1/bin/jekyll and the same for compass.. and got..
sid_fules has joined #ruby
<adam12> LOL
<adam12> Well I guess you're closer?
<adam12> My suggestion, albeit maybe unpopular, is to abandon that version of Jekyll for something much more recent - not something I can assist with tho.
<kalib> that's a valid point.. I'll check how can I do that.
JoshS has joined #ruby
Bounga has joined #ruby
<kalib> I think I can start removing this crap I installed today, right?! ruby-2.1 and ruby-bundle-2.1
<kalib> ruby --version
<kalib> ops
<adam12> kalib: Likely.
Pumukel has quit [Ping timeout: 264 seconds]
Suslov has quit [Quit: Leaving...]
Pumukel has joined #ruby
<kalib> but thanks for your time adam12 ;]
<adam12> kalib: yw.
workmad3 has joined #ruby
tau has quit [Remote host closed the connection]
Bounga has quit [Ping timeout: 240 seconds]
tau has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Quit: Leaving]
Silthias1 has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
Silthias has joined #ruby
tenderlo_ has quit [Remote host closed the connection]
tenderlove has joined #ruby
duderonomy has quit [Ping timeout: 264 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
esObe_ has quit [Read error: Connection reset by peer]
jhack_ has joined #ruby
esObe_ has joined #ruby
Pumukel has joined #ruby
Lord_of_Life has quit [Excess Flood]
sid_fules has quit [Read error: Connection reset by peer]
psychicist__ has quit [Ping timeout: 240 seconds]
aesthetikx has quit [Ping timeout: 256 seconds]
sid_fules has joined #ruby
jhack has quit [Ping timeout: 240 seconds]
whiteline has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
renchan has quit [Ping timeout: 240 seconds]
whiteline has joined #ruby
psychicist__ has joined #ruby
<kalib> adam12: It seems I received new versions when pulling from octopress.. Also removed the packages ruby2.1 and ruby-bundle2.1..
<kalib> now, When I try to run `bundle install`
<kalib> I get error with yajl-ruby
<kalib> An error occurred while installing yajl-ruby (1.1.0), and Bundler cannot continue.
<kalib> Make sure that `gem install yajl-ruby -v '1.1.0'` succeeds before bundling.
zapata has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
sid_fules has quit [Read error: Connection reset by peer]
esObe__ has joined #ruby
raul782 has joined #ruby
<kalib> and when tryin got install with gem install, I got error:
Pumukel has joined #ruby
<workmad3> kalib: looks like that gem won't work on ruby 2.4
<allisio> Not that version, anyway.
<allisio> They fixed it in 1.3.
<workmad3> kalib: as it's trying to use Fixnum in a C extension, and that class got removed in 2.4
<kalib> yes..when I run just gem install yajl-ruby
<kalib> it works..
<kalib> and I receive 1 gem installed
<kalib> how can I see which version I have installed?
esObe_ has quit [Ping timeout: 240 seconds]
<allisio> `gem -v foo`
<kalib> ok.. 2.6.8
<kalib> how can I tell to this project that that's the version I should look for?
<kalib> any idea?
psychicist__ has quit [Ping timeout: 240 seconds]
<workmad3> allisio: that gives the rubygems version, not the installed gem versions
<allisio> workmad3: Is `foo` not a placeholder anymore?
<workmad3> kalib: `gem list -l <foo>`
<workmad3> allisio: no, I mean `gem -v` only gives the rubygems version
<allisio> Oh, you're right. Sorry.
<workmad3> doesn't matter about the placeholder
<kalib> $ gem list -l yajl-ruby
<kalib> *** LOCAL GEMS ***
<kalib> yajl-ruby (1.3.0)
Pumukel has quit [Ping timeout: 240 seconds]
tenderlove has quit [Remote host closed the connection]
Pumukel has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
<workmad3> kalib: so, as expected, you have 1.3.0, which makes sense as 1.1.0 won't install on ruby 2.4.0
tenderlove has joined #ruby
__Yiota has joined #ruby
<kalib> workmad3: I just need this octopress project to work with it.
<workmad3> kalib: any reason you're trying to force it on ruby 2.4? Things would probably work easier on 2.3
<kalib> workmad3: no reason.. that's the default ruby version for my arch system
<kalib> that's why
ddffg has quit [Quit: Leaving]
<kalib> can I change that?
<workmad3> probably... not used arch much though
<allisio> kalib: I recomend chruby + ruby-install.
<kalib> don't get it
<workmad3> kalib: you could also try `bundle update yajl-ruby` in the project... but that runs the risk that the project won't work with the updated version
<workmad3> so YMMV
<havenwood> kalib: Here's a nice setup with archlinux and chruby: https://gist.github.com/jhass/8839655bb038e829fba1
<kalib> workmad3: bundle update yajl-ruby
<kalib> This Bundle hasn't been installed yet. Run `bundle install` to update and install the bundled gems.
<kalib> o.O what a fuck.. but we saw that it is installed
szulak has joined #ruby
<allisio> We saw that yajl-ruby was installed.
Pumukel has quit [Ping timeout: 264 seconds]
renchan has joined #ruby
Pumukel has joined #ruby
ruid has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
hutch34 has joined #ruby
<kalib> so I'm stuck.. I can't run bundle install, because it will give me the error saying that couldn't find yajl-ruby (1.1.0).
<allisio> You need to relax the restriction on that dependency.
<kalib> how can I do that?
<kalib> I may also consider trying chruby
<allisio> The project will have a Gemfile and/or a gemspec that explicitly forbids 1.3 from satisfying the dependency.
<allisio> Find that and change it. :)
<kalib> I have a GemFile
<kalib> already checked it..
quaristice has quit [Quit: Textual IRC Client: www.textualapp.com]
<kalib> but I can't find yajl-ruby there
<allisio> Then something else is asking for it and you're in dependency hell. :/
workmad3 has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
sid_fules has joined #ruby
Pumukel has joined #ruby
<kalib> havenwood: this link you provided is weird in this line: Edit your ~/.$SHELLrc and add:
<kalib> what file is that? it doesn't seem correct to me
<allisio> kalib: `echo $SHELL`
<havenwood> kalib: ~/.bashrc or ~/.zshrc are contemplated
<kalib> ok
jhack_ has quit [Quit: Leaving]
mula has joined #ruby
Fischmiep has joined #ruby
Mon_Ouie has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
zeroDi has quit [Quit: WeeChat 1.7]
DarthGandalf has quit [Remote host closed the connection]
Fischmiep has quit [Ping timeout: 264 seconds]
DarthGandalf has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
Pumukel has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marsjaninzmarsa has quit [Ping timeout: 260 seconds]
renchan has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<kalib> havenwood: ok, I have the chruby installed.. I don't see the difference. rake still seems to be trying to use the new version of ruby
elvin_ has joined #ruby
<kalib> although I created the .ruby-version file, as suggested on that link.
ruid has quit [Ping timeout: 260 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
marsjaninzmarsa has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<kalib> ok, got it working.. creating symlinks worked fine.
Bounga has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
esObe__ has quit [Remote host closed the connection]
esObe_ has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
ResidentBiscuit has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
esObe_ has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: WeeChat 1.4]
lxsameer has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
<leitz> I'm still learning class variables, I suppose. Could use some help. https://gist.github.com/LeamHall/618be95bed5e745d884e4b432aeaab75
aesthetikx has joined #ruby
sid_fules has quit [Ping timeout: 264 seconds]
Channel6 has quit [Quit: Leaving]
milardovich has joined #ruby
<elomatreb> leitz: Two things: You can't initialize instance (not class!) variables like that (See here: https://eval.in/753027)
mostlybadfly has joined #ruby
atmosx has joined #ruby
<elomatreb> Uh, I guess that's one thing. learn2countpls
kalib has quit [Quit: WeeChat 1.4]
<adaedra> There are 2 hard things in programming: naming things, cache invalidation, and off-by-one errors.
* leitz chuckles
milardovich has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> The second thing would be "don't use class variables".. but you're not, so that's okay :)
<leitz> Well, I'm trying to set the child class array and then call a parent class method using the child class array. Obviosly I'm missing something.
Pumukel has quit [Ping timeout: 264 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
hutch34 has joined #ruby
Pumukel has joined #ruby
* leitz erases the second @ before matthewd notices...
<allisio> leitz: You need a Firster#initialize.
<elomatreb> https://eval.in/753029 -- This shows why your attempt doesn't work as expected
<allisio> As it stands, you're setting an instance variable on the Firster class, not an instance thereof.
<leitz> Ah....that works.
<elomatreb> Ruby classes are objects too, instances of the class `Class` in fact
<matthewd> .. which seems like it might be what you intend. You just need to read it from the same place.
sid_fules has joined #ruby
<allisio> leitz: This is in line with what matthewd is suggesting: https://eval.in/753030
<allisio> You'd have to get your hands unnecessarily dirty if you really want it to be a class-level instance variable.
<elomatreb> I'd probably just define a method that just returns that array
<leitz> The entire process is to create an object that modified another object. So there are lots of variables to be set, depending on the sub-class.
DaleK5whr has joined #ruby
<leitz> The varaibles will only be used inside the class activities, if that makes sense.
DaleK5whr has left #ruby [#ruby]
<leitz> And porting the "def initialize" suggestion into the code works. Yay!
agent_white has joined #ruby
<allisio> It's not what you actually want, though.
<allisio> Why should all Firster instances use a different @skill_options Array that contains the same data?
acalycine has quit [Read error: No route to host]
Silthias has joined #ruby
<leitz> allisio, the Firster would only get initialized once, but another career like "Marine" might also get initialized. Both would have @skill_options, but they would be different.
<allisio> leitz: You're only gonna have a single Firster? Then why is it a Class?
Silthias1 has quit [Ping timeout: 240 seconds]
<leitz> So it can inherit from Career.
<leitz> As can the other classes.
milardovich has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
acalycine has joined #ruby
<leitz> "Firster" is the only career that works with the new stuff.
muelleme has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
sid_fules has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<leitz> This is a major re-work of code I started learning Ruby on over two years ago.
ahrs_ has joined #ruby
<leitz> Hence the "What the heck did he do that for?" factor.
Pumukel has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
ahrs has quit [Ping timeout: 268 seconds]
nightfog has quit [Quit: leaving]
elvin_ has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
Pumukel has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
ruid has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
grant has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
Bounga has joined #ruby
ahrs_ has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
teddysmoker has quit [Quit: Konversation terminated!]
ahrs has joined #ruby
Pumukel has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
mula has quit [Remote host closed the connection]
hogetaro has joined #ruby
mula has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
mula has quit [Remote host closed the connection]
mula has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
mula has quit [Remote host closed the connection]
mula has joined #ruby
mula has quit [Remote host closed the connection]
mula has joined #ruby
mula has quit [Remote host closed the connection]
mula has joined #ruby
mula has quit [Remote host closed the connection]
mula has joined #ruby
mula has quit [Remote host closed the connection]
ruid has quit [Ping timeout: 240 seconds]
mula has joined #ruby
mula has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
<allisio> How do I String#unpack a single 24-bit value?
sid_fules has quit [Ping timeout: 264 seconds]
Silthias has quit [Ping timeout: 264 seconds]
Silthias has joined #ruby
sid_fules has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
<allisio> The "problem": https://eval.in/753036
mula has joined #ruby
sid_fules has joined #ruby
<allisio> For 'notgood', 'L*SC' results in three values; is there some way to tell #unpack to combine them?
Pumukel has quit [Ping timeout: 240 seconds]
sid_fules has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
Rutix has quit []
sepp2k has joined #ruby
sid_fules has joined #ruby
<matthewd> I think your options would be ("\0" + x).unpack("N") or x.unpack("C3") and combine them yourself.
sid_fules has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
milardovich has joined #ruby