baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.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
cagomez has joined #ruby
joe_from_maine has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
John_Ivan has quit [Read error: Connection reset by peer]
emilford has joined #ruby
willmichael has quit [Ping timeout: 276 seconds]
InfinityFye has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
logoscoder has quit [Read error: Connection reset by peer]
emilford has quit [Client Quit]
emilford has joined #ruby
logoscoder has joined #ruby
<lupine> badly, one assumes
<lupine> just like the rest of every language ever
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
logoscoder has quit [Read error: Connection reset by peer]
logoscoder has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli|afk is now known as marxarelli
naprimer has quit [Ping timeout: 256 seconds]
naprimer has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
shinnya has joined #ruby
jenrzzz has joined #ruby
<zenspider> !conn dmitriy
bmurt has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
<zenspider> !conn dmitriy
<gizmore> self.extend GDO::UI::WithHTML
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<zenspider> hrm
<zenspider> !connection dmitriy
<ruby[bot]> zenspider: Could not find user with nick "dmitriy"
<zenspider> !connection ~dmitriy@208.184.154.83
<ruby[bot]> zenspider: Could not process command, usage: !connection nick [channel]
<zenspider> bite me
fba has joined #ruby
AJA4350 has quit [Quit: AJA4350]
Puffball has quit [Read error: No route to host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 268 seconds]
AxelAlex has quit [Ping timeout: 260 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 252 seconds]
emilford has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
<mikhael_k33hl> How to handle Thread.kill?
Mr_Tea has joined #ruby
hahuang61 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
starseed0000 has joined #ruby
hahuang65 has joined #ruby
workmad3 has joined #ruby
emilford has joined #ruby
bigblind has joined #ruby
<Mr_Tea> I'm sure there's an idiomatic way of making this chip8 emulator here's what I have so far https://gist.github.com/76755345c2660dc6426cc01e6a164283 some guidence would be awesome
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit []
banisterfiend has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<gizmore> mikhael_k33hl: this should silently kill the thread and fulfil waits?
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guacamole has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<mikhael_k33hl> gizmore: I'm using concurrent-ruby and I want my threads to invoke a method before getting killed
<gizmore> how do you kill them?
<gizmore> wrap your run in a try catch and use finally?
<gizmore> hmm
<gizmore> remember to treat kills differently
willmichael has quit [Ping timeout: 245 seconds]
willmichael has joined #ruby
<mikhael_k33hl> gizmore: https://github.com/ruby-concurrency/concurrent-ruby/blob/master/doc/thread_pools.md, it says here that when I shutdown the pool, it calls Thread.kill to its threads
<havenwood> Mr_Tea: Avoid `for` in Ruby.
<havenwood> Mr_Tea: Use `each` instead.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> Mr_Tea: I take it this doesn't work yet? It's something of pseudocode?
<havenwood> Mr_Tea: Consider making `fontset` a constant with: FONT_SET = ...
<havenwood> Mr_Tea: In #initialize you define a bunch of local variables, and I suspect you actually want instance variables for at least some of those.
<Mr_Tea> yeah there's some pseudocode in there
<havenwood> Mr_Tea: Use `warn` instead of `puts` to print to stderr instead of stdout.
<havenwood> (And also respect warning flags.)
<havenwood> I'm not sure what all you're using curses for, but if it's just the screen size and getch from the script you can do it with just IO::Console and no gem.
<Mr_Tea> I suspect the local variables are why the linter was yelling at me about unused variables
<havenwood> Mr_Tea: Aye, that makes sense.
<havenwood> They are unused.
<Mr_Tea> the graphics are simple so I was just gonna use curses to display what I needed
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<havenwood> >> require 'io/console'; $stdout.winsize
<ruby[bot]> havenwood: # => Inappropriate ioctl for device (Errno::ENOTTY) ...check link for more (https://eval.in/966170)
<havenwood> Mr_Tea: yeah, no problem with that
<Mr_Tea> do I need self.memory and so on if I wanna use instance variables
<havenwood> Mr_Tea: @memory =
<Mr_Tea> thanks
<havenwood> Mr_Tea: From other methods you can access that variable with: @memory
<havenwood> Mr_Tea: Local variables are local to the method in which they were defined.
orbyt_ has joined #ruby
<Mr_Tea> ruby is just modern smalltalk I love it
<havenwood> Mr_Tea: Instance variables are visible from other methods in the same instance.
<havenwood> Mr_Tea: Indeed! :-D
hahuang61 has quit [Ping timeout: 252 seconds]
cagomez has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
Puffball has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
konsolebox has joined #ruby
marxarelli is now known as marxarelli|afk
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
hahuang65 has joined #ruby
Mr_Tea has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bodgix has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bodgix has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
TLAXKIT has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: WeeChat 2.0.1]
marr has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
hahuang65 has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
apparition has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
Yzguy has quit [Read error: Connection reset by peer]
starseed0000 has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
yokel has joined #ruby
LiamW has joined #ruby
<LiamW> im setlocal_OP__WC__0 what does WC stand for?
konsolebox has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
joe_from_maine has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
konsolebox has joined #ruby
\void has quit [Ping timeout: 252 seconds]
joe_from_maine has quit [Ping timeout: 245 seconds]
jcarl43 has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
DTZUZO has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
netherwolfe has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
netherwolfe has quit [Ping timeout: 276 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kapil___ has quit [Quit: Connection closed for inactivity]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
GotHyper has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GotHyper has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dinfuehr has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dinfuehr_ has quit [Ping timeout: 256 seconds]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
emilford has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
n0m4d1c has joined #ruby
workmad3 has joined #ruby
mikhael_k33hl has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
darkhanb has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
n0m4d1c has quit [Remote host closed the connection]
johnny56 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
kies has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
herbmillerjr has joined #ruby
mikhael_k33hl has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
bigblind has quit [Ping timeout: 265 seconds]
marxarelli|afk is now known as marxarelli
<LiamW> thanks for all the help...
<mikhael_k33hl> I'm trying to debug my ruby script which uses concurrent-ruby. I'm setting brekapoints via `binding.pry` but it's gibing me an error "before_session hook failed: ThreadError: can't be called from trap context /usr/share/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/monitor.rb:187:in `lock' (see _pry_.hooks.errors to debug)"
bigblind has joined #ruby
mikhael_k33hl has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sylario has quit [Quit: Connection closed for inactivity]
discopatrick has quit [Quit: Connection closed for inactivity]
bmurt has joined #ruby
keithy has quit [Quit: keithy]
govg has joined #ruby
hahuang61 has joined #ruby
orbyt_ has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
arescorpio has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
bigblind has quit [Ping timeout: 245 seconds]
joe_from_maine has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
karapetyan has quit [Remote host closed the connection]
soniya29 has joined #ruby
soniya29_ has joined #ruby
kies has joined #ruby
fba has quit [Ping timeout: 268 seconds]
raynold has quit [Ping timeout: 265 seconds]
chromis has quit [Ping timeout: 256 seconds]
nadir has quit [Ping timeout: 256 seconds]
bweston92 has quit [Ping timeout: 252 seconds]
chromis has joined #ruby
bweston92 has joined #ruby
nadir has joined #ruby
raynold has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lunarkitty7 has quit [Ping timeout: 240 seconds]
lunarkitty7 has joined #ruby
DTZUZO has joined #ruby
syndikate_ has quit [Ping timeout: 252 seconds]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
syndikate has joined #ruby
apparition has quit [Quit: Bye]
TLAXKIT has quit [Quit: Leaving]
joe_from_maine has joined #ruby
bigblind has joined #ruby
shinnya has joined #ruby
joe_from_maine has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
ski7777 has quit [Read error: Connection reset by peer]
mahlon_ has joined #ruby
ski7777 has joined #ruby
mahlon has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 265 seconds]
konsolebox has joined #ruby
rippa has joined #ruby
xenops has joined #ruby
karapetyan has joined #ruby
joe_from_maine has joined #ruby
Gnut has quit [Ping timeout: 260 seconds]
pastorinni has joined #ruby
arescorpio has quit [Quit: Leaving.]
joe_from_maine has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
joe_from_maine has joined #ruby
mikhael_k33hl has joined #ruby
hahuang61 has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
cdg has quit [Ping timeout: 276 seconds]
konsolebox has joined #ruby
joe_from_maine has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
logoscoder has quit [Ping timeout: 265 seconds]
joe_from_maine has joined #ruby
starseed0000 has joined #ruby
joe_from_maine has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
joe_from_maine has joined #ruby
jamesaxl has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
DTZUZO has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
pastorinni has quit [Remote host closed the connection]
Yzguy has quit [Ping timeout: 268 seconds]
bigblind has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
joe_from_maine has joined #ruby
DTZUZO has joined #ruby
joe_from_maine has quit [Ping timeout: 260 seconds]
antoniobeyah has joined #ruby
[reed] has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
nadir has joined #ruby
milardovich has joined #ruby
[reed] has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
LocaMocha has joined #ruby
joe_from_maine has joined #ruby
soniya29 has quit [Ping timeout: 256 seconds]
_aeris_ has quit [Ping timeout: 255 seconds]
soniya29_ has quit [Ping timeout: 268 seconds]
_aeris_ has joined #ruby
karapetyan has joined #ruby
soniya29 has joined #ruby
soniya29_ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 240 seconds]
soniya29_ has quit [Remote host closed the connection]
soniya29 has quit [Remote host closed the connection]
starseed0000 has quit [Ping timeout: 265 seconds]
karapetyan has quit [Ping timeout: 265 seconds]
joe_from_maine has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
joe_from_maine has quit [Ping timeout: 256 seconds]
troys has quit [Quit: Bye]
joe_from_maine has joined #ruby
sameerynho has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
workmad3 has quit [Ping timeout: 268 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
joe_from_maine has quit [Ping timeout: 240 seconds]
bigblind has joined #ruby
joe_from_maine has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
cadillac_ has quit [Ping timeout: 268 seconds]
conta has joined #ruby
cadillac_ has joined #ruby
hahuang61 has joined #ruby
morfin has joined #ruby
joe_from_maine has quit [Ping timeout: 265 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
joe_from_maine has joined #ruby
oleo has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has joined #ruby
ledestin has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
bijan_ has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
MyMind has joined #ruby
alex`` has joined #ruby
shpoont has joined #ruby
amatas has joined #ruby
mtkd has joined #ruby
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 240 seconds]
amatas has quit [Ping timeout: 260 seconds]
bijan_ has joined #ruby
joe_from_maine has joined #ruby
schneider has joined #ruby
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
bigblind has quit [Ping timeout: 265 seconds]
hahuang61 has quit [Ping timeout: 276 seconds]
joe_from_maine has quit [Ping timeout: 256 seconds]
joe_from_maine has joined #ruby
bijan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Gnut has joined #ruby
joe_from_maine has quit [Ping timeout: 276 seconds]
joe_from_maine has joined #ruby
mtkd has quit []
n008f4g_ has joined #ruby
milardovich has quit [Remote host closed the connection]
joe_from_maine has quit [Ping timeout: 268 seconds]
marr has joined #ruby
conta has quit [Remote host closed the connection]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
cdg has joined #ruby
shpoont has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 260 seconds]
apeiros_ is now known as apeiros
Fusselgesicht has joined #ruby
Fusselgesicht has quit [Client Quit]
joe_from_maine has joined #ruby
mynameisdebian has joined #ruby
<mynameisdebian> How can I insert a NULL value with the sequel gem?
Fusselgesicht has joined #ruby
<apeiros> mynameisdebian: DB[:some_table] << {col: nil}
<apeiros> basically, null maps to nil
<mynameisdebian> so if I specify a nil variable to insert into a field, and the field allows NULL, it will insert nothing?
sidx64 has joined #ruby
<apeiros> it will insert null
<mynameisdebian> thank you
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigblind has joined #ruby
sidx64_ has joined #ruby
sidx64 has quit [Ping timeout: 245 seconds]
joe_from_maine has quit [Ping timeout: 252 seconds]
joe_from_maine has joined #ruby
sidx64_ has quit [Read error: Connection reset by peer]
bigblind has quit [Ping timeout: 276 seconds]
joe_from_maine has quit [Ping timeout: 248 seconds]
sidx64 has joined #ruby
amatas has joined #ruby
sidx64 has quit [Client Quit]
phaul has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amatas has quit [Quit: amatas]
wojnar has joined #ruby
amatas has joined #ruby
shpoont has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
jamesaxl has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
joe_from_maine has joined #ruby
seanh has quit [Read error: Connection reset by peer]
Mutsuhito has quit [Read error: Connection reset by peer]
colstrom has quit [Read error: Connection reset by peer]
seanh has joined #ruby
colstrom has joined #ruby
Mutsuhito has joined #ruby
joe_from_maine has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 256 seconds]
Xiti` has joined #ruby
sirecote_ has joined #ruby
hlmjr has joined #ruby
nrk has joined #ruby
plexigras2 has joined #ruby
sirecote has quit [Ping timeout: 256 seconds]
sirecote_ is now known as sirecote
ikopico has quit [Ping timeout: 256 seconds]
herbmillerjr has quit [Excess Flood]
plexigras has quit [Ping timeout: 256 seconds]
JoL1hAHN has quit [Ping timeout: 256 seconds]
Xiti has quit [Ping timeout: 256 seconds]
gbailey- has quit [Ping timeout: 256 seconds]
aviraldg has quit [Ping timeout: 256 seconds]
dyyylan has quit [Ping timeout: 256 seconds]
aviraldg has joined #ruby
iceskins[m] has quit [Ping timeout: 256 seconds]
iceskins[m] has joined #ruby
mtkd has joined #ruby
hahuang61 has joined #ruby
gbailey has joined #ruby
dyyylan has joined #ruby
willmichael has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
Gnut has quit [Ping timeout: 240 seconds]
syndikate has quit [Ping timeout: 260 seconds]
syndikate has joined #ruby
Gnut has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
joe_from_maine has joined #ruby
mtkd has quit []
joe_from_maine has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
\void has joined #ruby
claudiuinberlin has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
envex has quit [Remote host closed the connection]
envex has joined #ruby
AJA4350 has joined #ruby
fba has joined #ruby
<zenspider> exponential growth in did_you_mean based on object graph size. :/
fba has quit [Remote host closed the connection]
fba has joined #ruby
anisha has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
ryzokuken has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
ts__ has joined #ruby
ams__ has joined #ruby
<mynameisdebian> With sequel insert(), can I insert a formula as a string, like "DATE_FORMAT(\"#{data_array[14]}\", \"%b %c, %Y\")"
hahuang61 has joined #ruby
desperek has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
ta__ has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 245 seconds]
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 248 seconds]
tekk has quit [Quit: ZNC - http://znc.in]
Zaab1t has joined #ruby
drewmcmillan has joined #ruby
tekk has joined #ruby
ta_ has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
InfinityFye has joined #ruby
paraxial has joined #ruby
InfinityFye has left #ruby [#ruby]
willmichael has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
Papierkorb has joined #ruby
tomphp has joined #ruby
Gnut has quit [Ping timeout: 248 seconds]
ski7777 has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Remote host closed the connection]
willmichael has quit [Ping timeout: 256 seconds]
wojnar has quit [Remote host closed the connection]
milardovich has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
joe_from_maine has joined #ruby
ski7777 has joined #ruby
conta has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joe_from_maine has quit [Ping timeout: 256 seconds]
n008f4g_ has quit [Ping timeout: 268 seconds]
keithy has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
banisterfiend has joined #ruby
drewmcmillan has joined #ruby
hackeron has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
hahuang61 has joined #ruby
rwb has quit [Ping timeout: 268 seconds]
goatish has joined #ruby
tcopeland has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
karapetyan has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
rrutkowski has joined #ruby
karapetyan has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
karapetyan has joined #ruby
sylario has joined #ruby
iNs has quit [Quit: probably fiddling... x)]
iNs has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
iNs has quit [Quit: probably fiddling... x)]
iNs has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
mtkd has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
schneider has joined #ruby
aguestuser has quit [Remote host closed the connection]
jnollette has quit [Read error: Connection reset by peer]
_aeris_ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Remote host closed the connection]
jnollette has joined #ruby
AJA4350 has joined #ruby
_aeris_ has joined #ruby
fba has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
mtkd has quit []
mtkd has joined #ruby
sameerynho has joined #ruby
rikkipitt has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
keithy has quit [Quit: keithy]
rikkipitt has quit [Client Quit]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
GotHyper has quit [Quit: Leaving]
logoscoder has joined #ruby
prutheus has joined #ruby
Emmanuel_Chanel has joined #ruby
<prutheus> I want to use talib-ruby .... I am on windows with 64bit ruby .... however, I need to install the talib c bindings first ... so i downloaded sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-msvc.zip/download , extracted it to C:\ta-lib and want to build my ruby gem now with gem install talib_ruby -- --with-talib-include=C:\ta-lib\c\include --with-talib-lib=C:\ta-lib\c\lib
<prutheus> Problem: I get errors: talib.o:talib.c:(.text+0x43): undefined reference to `TA_CallFunc' (and some more)
<prutheus> any ideas?
willmichael has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
shpoont has joined #ruby
za1b1tsu has joined #ruby
hahuang61 has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
aguestuser has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
bigblind has joined #ruby
prutheus has quit [Quit: Page closed]
John_Ivan has joined #ruby
kapil___ has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
shpoont has joined #ruby
LiamW has left #ruby ["WeeChat 2.0.1"]
willmichael has quit [Ping timeout: 256 seconds]
ts__ has quit [Quit: Leaving]
willmichael has joined #ruby
postmodern has quit [Quit: Leaving]
joe_from_maine has joined #ruby
zapata has quit [Read error: Connection reset by peer]
ams__ has quit [Quit: Connection closed for inactivity]
zapata has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
RougeR has quit [Ping timeout: 260 seconds]
joe_from_maine has quit [Ping timeout: 260 seconds]
memo1 has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
Mike11 has joined #ruby
ta_ has quit [Remote host closed the connection]
amatas_ has joined #ruby
amatas_ has quit [Remote host closed the connection]
memo1 has quit [Ping timeout: 256 seconds]
shpoont has joined #ruby
RougeR has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
karapetyan has quit []
wojnar has joined #ruby
ta_ has joined #ruby
willmichael has quit [Ping timeout: 256 seconds]
sammi`_ has joined #ruby
hahuang61 has joined #ruby
drewmcmillan has joined #ruby
milardovich has joined #ruby
konsolebox has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
memo1 has joined #ruby
hahuang61 has quit [Ping timeout: 265 seconds]
sammi` has quit [Quit: Lost terminal]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower has joined #ruby
tomphp has joined #ruby
tomphp has quit [Ping timeout: 256 seconds]
mynameisdebian has quit [Ping timeout: 245 seconds]
n13z has quit [Quit: leaving]
ta_ has quit [Remote host closed the connection]
tomphp has joined #ruby
Mike111 has joined #ruby
zapata has quit [Read error: Connection reset by peer]
Mike111 has quit [Max SendQ exceeded]
Mike11 has quit [Ping timeout: 256 seconds]
zapata has joined #ruby
mtkd has quit []
tomphp has quit [Client Quit]
ta_ has joined #ruby
tomphp has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willmichael has joined #ruby
naftilos76 has joined #ruby
giraffe has joined #ruby
tpendragon has joined #ruby
stormpack has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
suukim has joined #ruby
shpoont has joined #ruby
r3m has quit [Quit: ZNC - http://znc.in]
schneider has quit [Ping timeout: 240 seconds]
noobineer has joined #ruby
ta_ has joined #ruby
orbyt_ has joined #ruby
hahuang61 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
Ishido has joined #ruby
sagax has quit [Ping timeout: 256 seconds]
r3m has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 260 seconds]
desperek has quit [Ping timeout: 256 seconds]
<ule> Hey guys
<ule> I'm trying to think a way to transoform this: ["A/B/C/", "A/B/D/", "A/B/E/", "A/F/G/"] to "A": {"B": {"C", "D", "E"}, "F": {"G"}}
<ule> basically, path to tree
workmad3 has joined #ruby
<apeiros> ule: ok. what code do you have so far?
schneider has joined #ruby
<ule> The code I have so far makes some magic to create that: ["A/B/C/", "A/B/D/", "A/B/E/", "A/F/G/"]
<ule> :/
<ule> I'm trying to think on this next step
<lupine> I scent recursion
<ule> lupine: exactly, assuming that my input will change dinamically
<ule> man, I feel so stupid for getting stuck at algorithms like this. It must be basic stuff from CC courses no?
starseed0000 has joined #ruby
banisterfiend has joined #ruby
<apeiros> ule: maybe start at how you'd transform "A/B/C" on its own
<lupine> so you've got a function, f, that takes a hash and a string. it removes the leftmost element from the string and either adds it to the hash, or adds an empty hash to the hash and calls itself with teh remainder, if there is more to do
<apeiros> also note that {"A": {"B": {"C", "D", "E"}}} is not really ruby. assuming you meant {"A": {"B": ["C", "D", "E"]}}, consider{"A": {"B": {"C": {}, "D": {}, "E":{}}}} as a first step
workmad3 has quit [Ping timeout: 248 seconds]
<apeiros> so: transform "A/B/C" to {"A" => {"B" => {"C" => {}}}
<ule> apeiros: right, let me start easy
<ule> lupine: right
<ule> I guess I need to group by levels
<ule> using .split will give me this level, 0,1,2
<ule> then I need to create this hash based on levels
oroborous has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
<lupine> which gets me {"A"=>{"B"=>{"C"=>{}, "D"=>{}, "E"=>{}}, "F"=>{"G"=>{}}}}
<ule> lupine: dammit, you were fast
<ule> let me study your code
<ule> :)
* apeiros has a different solution
<lupine> lots of ways to do it
* havenwood has a different solution as well
<ule> lol
<apeiros> too sad there's only #dig, no #bury
<lupine> I probably wouldn't actually use recursion if this came up in real life
<apeiros> would make it even easier.
<ule> lupine: why not?
karapetyan has joined #ruby
<apeiros> I didn't use recursion. in languages like ruby it's usually better to avoid it.
<lupine> ule: because deep stack traces are nasty
<ule> apeiros lupine havenwood whats the secret to mastering on problems like this?
<lupine> stepwise thinking
<apeiros> ule: dunno. I've had ~30y of training.
<lupine> as long as you can see the first step, you can come up wiht a solution eventually
<ule> Can I get to your level or it is something just for people with IQ > 160
<apeiros> but yeah, divide and conquer
<lupine> just keep bashing on it
<lupine> if nothing else, apply a genetic approach and change things randomly each step until you get what you want out of the other end
<apeiros> cut big problems you can't solve into smaller problems until you have a problem you can solve. then reassemble the partial solutions.
phaul has quit [Ping timeout: 240 seconds]
<ule> persiscense
<apeiros> since I'm going afk and a solution has already been posted (which I wanted to avoid), here's mine: https://gist.github.com/apeiros/0b241060c4faca420c97ef21ef124c7b
<apeiros> could also use a self-initializing hash instead of that ugly ||= part
<apeiros> but I tend to be lazy and omit the .default_proc = nil part at the end :D
<ule> this is awesome, thank you very much guys
ta_ has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
mtkd has joined #ruby
<ule> tree data structure
ta_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
<ule> I know there are some websites with some trick questions like that so people can solve
<ule> then they compare each algorithm based on efficiency
<ule> I don't remember which website though, but I remember seeing something like that
hahuang61 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
upinspace__ has joined #ruby
<apeiros> ule: project euler
<havenwood> inputs = %w[A/B/C/ A/B/D/ A/B/E/ A/F/G/]
<havenwood> h = Hash.new { |h, k| h[k] = Hash.new(&h.default_proc) }
<havenwood> oops
tom__ has joined #ruby
<ule> havenwood: O_o
<havenwood> didn't mean to paste that here >.>
* havenwood needs coffee
naftilos76 has quit [Quit: Αποχώρησε]
upinspace__ has quit [Quit: Mutter: www.mutterirc.com]
<tom__> dose anyone know why i get an unexpected identifyer error with this code?http://paste.debian.net/1012933/
<tom__> i think it might be to do with using brackets when calling methods, i still have not got my head around the rules for calling methods...
<havenwood> tom__: You just need brackets with `sum(arr, i+1)` for syntax.
<havenwood> >> [1, 2, 3, 4, 5].sum
<ruby[bot]> havenwood: # => undefined method `sum' for [1, 2, 3, 4, 5]:Array (NoMethodError) ...check link for more (https://eval.in/966288)
<havenwood> tom__: ^ that works in the most recent Ruby
<tom__> thanks
<havenwood> tom__: You'll see that your recursive version runs into trouble when the Array gets too big.
<havenwood> sum [*1..100000] #!> SystemStackError: stack level too deep
<tom__> ule: ty
bigblind has quit [Ping timeout: 268 seconds]
<havenwood> >> [].reduce 0, :+
<ruby[bot]> havenwood: # => 0 (https://eval.in/966289)
<havenwood> >> [1, 2, 3, 4, 5].reduce 0, :+
<ruby[bot]> havenwood: # => 15 (https://eval.in/966290)
<ule> O_o
upinspace__ has joined #ruby
<havenwood> In Ruby 2.4+: [1, 2, 3, 4, 5].sum #=> 15
shinnya has quit [Ping timeout: 248 seconds]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
salih has joined #ruby
hahuang61 has joined #ruby
shpoont has joined #ruby
cdg has joined #ruby
karapetyan has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
pastorinni has joined #ruby
salih has quit [Quit: Mutter: www.mutterirc.com]
banisterfiend has joined #ruby
plexigras2 is now known as plexigras
govg has quit [Ping timeout: 256 seconds]
xenops has quit [Ping timeout: 240 seconds]
yokel has quit [Remote host closed the connection]
schneider has joined #ruby
rwb has joined #ruby
govg has joined #ruby
yokel has joined #ruby
upinspace__ has quit [Remote host closed the connection]
nowhere_man has joined #ruby
ts__ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 256 seconds]
willmichael has quit [Ping timeout: 256 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guille-moe has joined #ruby
ta_ has joined #ruby
nicesignal has joined #ruby
alex`` has joined #ruby
logoscoder has quit [Read error: Connection reset by peer]
logoscoder_ has joined #ruby
coderphive has joined #ruby
memo1 has quit [Ping timeout: 268 seconds]
bigblind has joined #ruby
willmichael has joined #ruby
Bilge- is now known as Bilge
Bilge has left #ruby [#ruby]
pastorinni has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
mahlon_ is now known as mahlon
upinspace has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
cdg has quit [Ping timeout: 240 seconds]
drewmcmillan has joined #ruby
hahuang61 has joined #ruby
coderphive has quit [Quit: coderphive]
schneider has quit [Ping timeout: 260 seconds]
pastorinni has joined #ruby
coderphive has joined #ruby
tom__ has quit [Quit: Lost terminal]
schneider has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 276 seconds]
pastorinni has quit [Remote host closed the connection]
ta_ has joined #ruby
workmad3 has joined #ruby
coderphive has quit [Client Quit]
guille-moe has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 248 seconds]
n008f4g_ has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
nowhereman_ has joined #ruby
Dimik has joined #ruby
dviola has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
mrush has quit [Ping timeout: 268 seconds]
upinspace has quit [Ping timeout: 240 seconds]
\void has quit [Ping timeout: 256 seconds]
\void has joined #ruby
karapetyan has quit [Remote host closed the connection]
hahuang61 has joined #ruby
karapetyan has joined #ruby
anisha has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
mtkd has quit []
upinspace has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stormpack has quit [Quit: Leaving]
ta_ has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shpoont has joined #ruby
phaul has joined #ruby
upinspace has quit [Quit: Mutter: www.mutterirc.com]
upinspace__ has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has quit [Remote host closed the connection]
ta_ has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
John__ has joined #ruby
hahuang61 has joined #ruby
logoscoder_ is now known as logoscoder
phaul has quit [Ping timeout: 248 seconds]
John_Ivan has quit [Ping timeout: 256 seconds]
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
sammi` has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
sammi`__ has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
suukim has quit [Quit: Konversation terminated!]
sammi`_ has quit [Quit: Lost terminal]
sammi` has quit [Quit: Lost terminal]
nadir has quit [Quit: Connection closed for inactivity]
hlmjr has quit [Quit: Konversation terminated!]
herbmillerjr has joined #ruby
upinspace__ has quit [Quit: Mutter: www.mutterirc.com]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 240 seconds]
desperek has joined #ruby
willmichael has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
ta_ has joined #ruby
raynold has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wojnar has quit [Remote host closed the connection]
drewmcmillan has joined #ruby
upinspace__ has joined #ruby
nicoulaj has quit [Quit: quit]
PMS has joined #ruby
nicoulaj has joined #ruby
upinspace__ has quit [Client Quit]
mtkd has quit []
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
bigblind has joined #ruby
TinkerTyper has quit [Quit: ZNC 1.7.x-nightly-20180214-1b69373b - https://znc.in]
TinkerTyper has joined #ruby
NightMonkey has quit [Ping timeout: 260 seconds]
antoniobeyah has joined #ruby
Joufflu has joined #ruby
nicoulaj has quit [Quit: quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nicoulaj has joined #ruby
hahuang61 has joined #ruby
gr33n7007h1 has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
conta has quit [Remote host closed the connection]
NightMonkey has joined #ruby
workmad3 has joined #ruby
goatish has quit [Quit: Hibernating]
bigblind has quit [Ping timeout: 268 seconds]
Ishido has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
GodFather has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
RougeR has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
noobineer has quit [Ping timeout: 260 seconds]
bigblind has joined #ruby
amatas has quit [Quit: amatas]
Azure|dc is now known as Azure
n008f4g_ has joined #ruby
<weaksauce> interesting it took ruby of all languages that long to get sum on an array
<apeiros> I'm more surprised it actually got it
<apeiros> it's a very specific operation on a generic datastructure
<weaksauce> i suppose but ruby has always had programmer happiness as a goal
<apeiros> yeah, but…
<apeiros> >> Array.instance_methods(false).size
<ruby[bot]> apeiros: # => 93 (https://eval.in/966316)
<apeiros> method overload can hurt happiness
<weaksauce> depends. in this case inject or reduce is a somewhat odd thing to pull out when all you want to do is sum up the numbers in an array.
<apeiros> dunno. I didn't feel that way about it.
<apeiros> don't feel like that about it either for factorials
<apeiros> though factorials I'll use a range
PMS has quit [Ping timeout: 252 seconds]
shpoont has joined #ruby
<weaksauce> the case could be made having it as a separate method because they might be able to eek out some performance optimizations
<weaksauce> but :shrug:
<apeiros> :)
<apeiros> don't get me wrong. I don't mind it being there
<apeiros> as for performance: I'd love narray/nvector/nmatrix to be stdlib
hahuang61 has joined #ruby
PMS has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
ta_ has quit [Ping timeout: 268 seconds]
shpoont has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has joined #ruby
DTZUZO has joined #ruby
leitz has joined #ruby
phaul has joined #ruby
<leitz> Anyone have a short explination of the dry-rb stuff. Seems interesting but the introduction assumes you know what it does and why you want it.
bigblind has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
<leitz> Hrmph...not sure this is a good idea. bundle install asks for sudo password. However, no idea what is being done with the password if i give it. Running sudo bundle install says bundle shouldn't be run as root.
mtkd has quit []
DTZUZO has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
PMS has quit [Quit: • IRcap • 8.72 •]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<leitz> And installing 40 some gems that an app now depends on seems shaky.
bigblind has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
<leitz> And not having a "-y" option to uninstall seems unkind.
<leitz> Sorry for grumping.
ta_ has quit [Ping timeout: 240 seconds]
bigblind has quit [Ping timeout: 240 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
hahuang61 has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.0.1]
ta_ has joined #ruby
bigblind has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
hahuang61 has quit [Ping timeout: 265 seconds]
bigblind has quit [Ping timeout: 265 seconds]
bigblind has joined #ruby
orbyt_ has joined #ruby
workmad3 has joined #ruby
ResidentBiscuit has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ts__ has quit [Quit: Leaving]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has quit [Ping timeout: 260 seconds]
upinspace__ has joined #ruby
phaul has joined #ruby
konsolebox has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
konsolebox has joined #ruby
ta_ has joined #ruby
nadir has joined #ruby
upinspace__ has quit [Remote host closed the connection]
noobineer has joined #ruby
upinspace__ has joined #ruby
Puffball has quit [Remote host closed the connection]
upinspace__ has quit [Client Quit]
tcopeland has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
hahuang61 has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ElFerna has quit [Client Quit]
aguestuser has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 256 seconds]
aguestuser has joined #ruby
Puffball has joined #ruby
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 256 seconds]
arkymad has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
orbyt_ has joined #ruby
shortdudey123 has quit [Ping timeout: 260 seconds]
tcopeland has joined #ruby
shortdudey123 has joined #ruby
tcopeland has quit [Ping timeout: 240 seconds]
tcopeland has joined #ruby