havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-rc2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
samort7 has quit [Read error: Connection reset by peer]
themsay has joined #ruby
davidw has quit [Ping timeout: 246 seconds]
akem has joined #ruby
masterasia has joined #ruby
jthomas1 has quit [Ping timeout: 250 seconds]
Inside has joined #ruby
<Inside> Heyo~ cross posting from the #RoR channel, but I am having issues with bundle bumping from one revision of rails to another: https://gist.github.com/Insood/d0a9df88f8ce2e0e1eee1fe8e70f2c46
<Inside> Like the first conflict makes no sense since it looks like actionpack & simple_form should be satisfied..
cthulchu has quit [Ping timeout: 244 seconds]
stooj has quit [Quit: ZNC 1.7.0 - https://znc.in]
nowhere_man has joined #ruby
cthulchu has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
davidw has joined #ruby
<Inside> Deprecation warnings galore~
<Inside> Turns out nuking a single gem from the gemfile that I didn't need anyway fixed everything D
<Inside> D:
cthulchu has quit [Ping timeout: 272 seconds]
jottr has quit [Ping timeout: 250 seconds]
moei has quit [Quit: Leaving...]
cpruitt has joined #ruby
go|dfish has joined #ruby
jottr has joined #ruby
<Eiam> !rails
<Eiam> > rails
<Eiam> bah, w.e
ramfjord has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 240 seconds]
hutch has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
<Inside> well
<Inside> it was more of a ruby question ;P
nchambers has joined #ruby
fluxAeon has quit [Ping timeout: 246 seconds]
cnsvc_ has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
cthulchu has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inside has quit [Quit: leaving]
<phaul> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<phaul> :)
akem has quit [Remote host closed the connection]
akem has joined #ruby
davidw has quit [Remote host closed the connection]
cnsvc_ has quit [Ping timeout: 256 seconds]
davidw has joined #ruby
dbz has quit [Ping timeout: 268 seconds]
coltkirk has quit [Remote host closed the connection]
stooj has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidw has quit [Ping timeout: 268 seconds]
Xenosine has quit [Quit: Leaving]
Exuma has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
cnsvc_ has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
sonne has left #ruby [#ruby]
themsay has joined #ruby
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nchambers> in %r{^exe/} is the / literal here?
Exuma has joined #ruby
darkhanb has joined #ruby
<nchambers> Iambchop: yeah, you were right. i was having a brainfart and forgot bash was doing things to build[release]
<nchambers> 'build[release]' of course fixed it
<bougyman> Yes.
<nchambers> thanks
orbyt_ has joined #ruby
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 250 seconds]
cpruitt has quit [Remote host closed the connection]
jthomas1 has joined #ruby
jthomas1 has quit [Ping timeout: 246 seconds]
Exuma has joined #ruby
Hoffman has quit [Quit: quit]
carbone5 has joined #ruby
fredolinhares has quit [Quit: WeeChat 1.9.1]
carbone5 has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
bambanx has quit [Quit: Leaving]
orbyt_ has joined #ruby
hutch has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Quit: bye]
darkhanb has joined #ruby
cd has quit [Quit: cd]
cnsvc_ has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
cschneid has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
ixti has quit [Quit: WeeChat 2.3]
gnufied has quit [Quit: Leaving]
mrush has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
dbz has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<mrush> finally got eloquent ruby
dbz has quit [Ping timeout: 240 seconds]
davidw has joined #ruby
braincrash has quit [Quit: bye bye]
lytol has quit [Remote host closed the connection]
dbz has joined #ruby
cnsvc_ has joined #ruby
braincrash has joined #ruby
darkhanb has quit [Ping timeout: 244 seconds]
davidw_ has joined #ruby
davidw has quit [Ping timeout: 246 seconds]
cschneid has quit [Ping timeout: 250 seconds]
\void has quit [Read error: Connection reset by peer]
mrush has left #ruby [#ruby]
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
roshanavand1 is now known as roshanavand
\void has joined #ruby
masterasia has joined #ruby
davidw_ has quit [Ping timeout: 250 seconds]
kapil____ has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
dellavg_ has joined #ruby
rippa has joined #ruby
yxhuvud has joined #ruby
s3nd1v0g1us has joined #ruby
Azure has joined #ruby
conta has joined #ruby
cnsvc_ has joined #ruby
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has joined #ruby
za1b1tsu has joined #ruby
conta has quit [Ping timeout: 250 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has quit [Remote host closed the connection]
zxq2 has quit [Remote host closed the connection]
conta has joined #ruby
cnsvc_ has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
cschneid has quit [Ping timeout: 244 seconds]
hutch has quit [Ping timeout: 250 seconds]
hutch has joined #ruby
brandonkal has joined #ruby
paranoicsan has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
paranoicsan has quit [Client Quit]
dinfuehr has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 268 seconds]
impermanence has quit [Ping timeout: 250 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
endemic has quit [Ping timeout: 250 seconds]
neuraload has joined #ruby
endemic has joined #ruby
Inline has quit [Quit: Leaving]
Guest31 has joined #ruby
Guest31 is now known as devpolish
cschneid has joined #ruby
reber has joined #ruby
reber has quit [Remote host closed the connection]
cnsvc_ has joined #ruby
CrazyEddy has quit [Ping timeout: 268 seconds]
aupadhye has joined #ruby
dbz has quit [Remote host closed the connection]
code_zombie has quit [Quit: Leaving]
ramfjord has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
aufi has joined #ruby
paranoicsan has joined #ruby
clemens3_ has joined #ruby
dbz has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
dinfuehr has quit [Ping timeout: 244 seconds]
dinfuehr has joined #ruby
paranoicsan has left #ruby [#ruby]
kapil____ has joined #ruby
BH23 has joined #ruby
paranoicsan has joined #ruby
themsay has quit [Ping timeout: 246 seconds]
zipace has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
dbz has quit [Remote host closed the connection]
Freshnuts has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 244 seconds]
jthomas1 has joined #ruby
jthomas1 has quit [Ping timeout: 250 seconds]
HailTheRobots has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
cnsvc_ has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
m0w has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
tjbp has quit [Remote host closed the connection]
tjbp has joined #ruby
paranoicsan has joined #ruby
ams__ has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Remote host closed the connection]
sleetdrop has joined #ruby
phaul has joined #ruby
saTchymoto has joined #ruby
MyMind has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
venmx has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
cnsvc_ has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
averna has joined #ruby
averna has quit [Read error: Connection reset by peer]
saTchymoto has quit [Read error: Connection reset by peer]
saTchymoto has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
averna has joined #ruby
averna has quit [Remote host closed the connection]
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
averna has joined #ruby
averna has quit [Read error: Connection reset by peer]
jottr has joined #ruby
paranoicsan has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
HailTheRobots has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
HailTheRobots has joined #ruby
keden has joined #ruby
teclator has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
TheBloke has quit [Read error: No route to host]
zapata has joined #ruby
TheBloke- has joined #ruby
jottr has joined #ruby
zipace has quit [Quit: Leaving]
conta1 has joined #ruby
lucasb has joined #ruby
nowhere_man has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
devpolish has quit [Ping timeout: 244 seconds]
coderphive has quit [Remote host closed the connection]
coderphive has joined #ruby
cnsvc_ has joined #ruby
m0w has quit [Remote host closed the connection]
m0w has joined #ruby
KeyJoo has joined #ruby
cpruitt has joined #ruby
conta1 has quit [Remote host closed the connection]
za1b1tsu has quit [Quit: Leaving]
HailTheRobots has quit [Remote host closed the connection]
cnsvc_ has quit [Ping timeout: 256 seconds]
crash_hacker has joined #ruby
crash_hacker has left #ruby ["catch you later"]
mostlybadfly has joined #ruby
cd has joined #ruby
neuraload has quit [Quit: Leaving]
keden has quit [Ping timeout: 250 seconds]
venmx has quit [Quit: leaving]
catphish has joined #ruby
<catphish> feature request (unless it already exists): the ability to defer signal handlers until the end of a block
<catphish> defer_signals {dont_interrupt_this; or_this};
<catphish> i assume one could create this manually by setting up and tearing down signal handlers as needed
<catphish> maybe not very thread safe :(
conta has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 250 seconds]
venmx has joined #ruby
troulouliou_div2 has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
venmx has quit [Client Quit]
keden has joined #ruby
GodFather has joined #ruby
keden has quit [Ping timeout: 244 seconds]
keden has joined #ruby
z4phod has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
DTZUZO has joined #ruby
krawchyk has joined #ruby
JoshS has quit [Remote host closed the connection]
alan_w has joined #ruby
JoshS has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
masterasia has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
masterasia has quit [Ping timeout: 246 seconds]
<darix> catphish: so what to do when the signal gets thrown in that block?
<darix> a signal that might indicate a serious error
ramfjord has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman> Any good gem that would make testing concurrency easy? Currently using concurrent-ruby gem in my script
<catphish> darix: defer processing of it until after the block :)
<catphish> it makes sense that the signals to defer would be selectable
ramfjord has quit [Ping timeout: 250 seconds]
paranoicsan has joined #ruby
<darix> catphish: imho signal usually means something important needs to be done now
conta has joined #ruby
brandonkal has quit [Quit: Textual IRC Client: www.textualapp.com]
<catphish> darix: i rarely find that to be the case
<catphish> the most common signal my applications will see is TERM, and i don't necessarily want a process to exit until it's finished something critical
<catphish> other signals are just used to trigger things, and again i may not want them to happen instantly
<darix> catphish: your signal handler could just set a variable and your event loop could check those variable at the beginning of the next iteration?
<catphish> darix: that's what i usually do, yes, but it would be nice to abstract that
<darix> that is a pretty small code already imho
paranoicsan has left #ruby [#ruby]
paranoicsan has joined #ruby
SeepingN has joined #ruby
ellcs has joined #ruby
cnsvc_ has joined #ruby
gnufied has joined #ruby
saTchymoto has quit []
Rapture has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
paranoicsan is now known as paranoicsan[Away
paranoicsan[Away has quit [Quit: paranoicsan[Away]
nchambers has quit [Quit: WeeChat 2.2]
aupadhye has quit [Ping timeout: 250 seconds]
linuxdaemon has quit [Quit: RIP.]
gigetoo has joined #ruby
paranoicsan has joined #ruby
ellcs has joined #ruby
linuxdaemon has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
polishdub has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
jthomas1 has joined #ruby
cschneid has joined #ruby
Inside has joined #ruby
<WA9ACE> Anyone have opinions on Marc-André's http://truthabouteventloops.com/ course?
jthomas1 has quit [Ping timeout: 250 seconds]
<WA9ACE> I'm thinking about buying the recorded sessions to go over this holiday season
jthomas1 has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
exchgr` has joined #ruby
exchgr has quit [Ping timeout: 252 seconds]
reber has joined #ruby
hutch has joined #ruby
cschneid has quit [Remote host closed the connection]
BH23 has quit [Ping timeout: 246 seconds]
<catphish> one should definitely learn event driven coding
<catphish> no idea about that course :)
troulouliou_div2 has quit [Remote host closed the connection]
akem has quit [Remote host closed the connection]
akem has joined #ruby
<havenwood> Update to RubyGems 3.0: gem update --system
davidw_ has joined #ruby
devpolish has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
maryo has joined #ruby
catphish has left #ruby ["Leaving"]
doubledup has joined #ruby
doubledup has quit [Remote host closed the connection]
Inline has joined #ruby
Inline has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 268 seconds]
aufi has quit [Remote host closed the connection]
Inline has joined #ruby
bmurt has joined #ruby
impermanence has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
Arkantos has joined #ruby
careta has joined #ruby
<careta> guys, I need too spawn a background process, then after some time "connect" to it and allow the user to interact with it. How can I achieve this?
phaul has quit [Ping timeout: 250 seconds]
rubydoc has quit [Ping timeout: 268 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
gnufied has quit [Ping timeout: 268 seconds]
akem__ has joined #ruby
devpolish has quit [Ping timeout: 246 seconds]
akem has quit [Ping timeout: 246 seconds]
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donofrio has joined #ruby
akem__ has quit [Ping timeout: 244 seconds]
venmx has joined #ruby
Arkantos has joined #ruby
Arkantos has quit [Client Quit]
d10n-work has joined #ruby
donofrio has quit [Ping timeout: 245 seconds]
keden has quit [Quit: WeeChat 2.3]
gix has joined #ruby
m0w has quit [Ping timeout: 246 seconds]
cnsvc_ has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
<havenwood> careta: inter-process communication by unix socket is one option
mikecmpbll has quit [Ping timeout: 240 seconds]
<Inside> careta: what kind of communication?
<Inside> you could setup a simple web server (ie: rack)
<Inside> Might be over kill
<Inside> Or you could setup a websocket server..
careta has quit [Ping timeout: 250 seconds]
<Inside> if the interaction & the process occur within the same application, you would use threads..
<Inside> and mutexes
dbz has joined #ruby
CrazyEddy has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
mikecmpbll has joined #ruby
donofrio has joined #ruby
careta has joined #ruby
davidw_ is now known as davidw
<Eiam> or you could use XPC or IPC if this is macOS
<Eiam> which is bsaically what havenwood said
<Eiam> there was a gem ages ago... it took ruby from one client, passed it over the wire, then ran it on another client
<havenwood> Eiam: reminds me of my old, deprecated ipc futures gem: https://github.com/havenwood/ifuture
<Eiam> it wasn't remote_ruby cause this was 7 years ago
<Eiam> well hell let me see if I have the repo still I can just look at the gemfile =o
<careta> havenwood, ok thanks for the tips, I'll look into that
<careta> it might be easier just to use expect or something like that and echo at the end of the output
<careta> since the other end is a shell
<havenwood> careta: How about use DRb? :)
<careta> I don't have control over the other end, I need to interact with a slimmed down shell, not even bash
<havenwood> careta: Both processes on the same machine?
<careta> nope
ramfjord has joined #ruby
<phaul> I was practising coding and I made a sudoku solver https://gist.github.com/phaul/1d36018bf925bd212c64671a5ca20217. I tried to write idiomatic Ruby, refactor, and write understandable code, rather than be the fastest. But I also tried to solve all puzzles in acceptable amount of time. Please give me suggestions on how the code could be improved
donofrio has quit [Ping timeout: 246 seconds]
<Eiam> hah past me trying to document his gemfile # Strictly for development for sane debugging & stepping behavior
<Eiam> gem "pry"
<Eiam> gem "pry-byebug"
<Eiam> gem "pry-remote"
<Eiam> havenwood: ahh yes it was DRB!!!
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
hiroaki has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
cpruitt has quit [Ping timeout: 250 seconds]
slima has left #ruby [#ruby]
cthulchu has joined #ruby
code_zombie has joined #ruby
d^sh has quit [Ping timeout: 250 seconds]
<Inside> phaul: looks pretty sexy
<Inside> hey so
<Inside> I'm gonna upgrade from ruby 2.4 to 2.5
<Inside> any pitfalls I should look out for?
\void has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<phaul> Inside: thanks
<Eiam> Inside: just use chruby and run your unit tests?
<Eiam> if it looks good, deploy to QA and verify then off to production?
jcarl43 has joined #ruby
maryo has quit [Quit: Leaving]
gnufied has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
m0w has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
kidosatori has joined #ruby
<phaul> posted on reddit. let's see what sort of responses I get..
sauvin has quit [Ping timeout: 250 seconds]
duckpuppy has joined #ruby
Scrooge has joined #ruby
<havenwood> phaul: Use `private_constant` instead of the @private comment: https://gist.github.com/phaul/1d36018bf925bd212c64671a5ca20217#file-sudoku-rb-L20
mostlybadfly has joined #ruby
<havenwood> phaul: I prefer `__method__` to `:rows` so you can change the method name without changing the symbol - but I could see not liking that too: https://gist.github.com/phaul/1d36018bf925bd212c64671a5ca20217#file-sudoku-rb-L26
nowhere_man has quit [Ping timeout: 252 seconds]
<phaul> havenwood: I am looking into those, thanks
lxsameer has joined #ruby
<phaul> &ri private_constant
Scrooge has quit [Remote host closed the connection]
akaiiro has quit [Ping timeout: 245 seconds]
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
<phaul> fixed
d^sh has joined #ruby
<phaul> I have to say I need to relearn what private means, as private_constant makes 0 sense to me atm.
<phaul> private is that you can;t put explicit receiver on it, right? So what does that mean for a constant
cpruitt has joined #ruby
hutch has quit [Ping timeout: 246 seconds]
tjarvis has joined #ruby
<phaul> hm. interesting.
<phaul> &>> module A; X = 1; private_constant :X; end; A::X
<rubydoc> # => private constant A::X referenced (NameError) (https://carc.in/#/r/5trk)
hutch has joined #ruby
cnsvc_ has joined #ruby
<havenwood> phaul: Yeah, it makes it inaccessible outside the class - unless you use metaprogramming, of course.
<havenwood> phaul: I'd say DRY these up with extract method: https://gist.github.com/phaul/1d36018bf925bd212c64671a5ca20217#file-sudoku-rb-L53
cthulchu has quit [Ping timeout: 245 seconds]
<havenwood> phaul: I'd say #size instead of #count, but you can just use #one? here: https://gist.github.com/phaul/1d36018bf925bd212c64671a5ca20217#file-sudoku-rb-L124
<havenwood> phaul: You can alias with #def_instance_delegator
<havenwood> phaul: #dup *just works*, so you don't need to implement it
<phaul> is that true for Set, Array instance vars too?
<phaul> if I need deep copy
venmx has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
<havenwood> phaul: good point
<havenwood> phaul: makes me wonder if you should marshal dump and load
<havenwood> phaul: yeah, never mind me on that one
<phaul> the gnarly stuff comes in IterativeDeepening, so based on your reaction so far, I'm expecting a heart attack :)
<havenwood> phaul: haha
tjarvis has quit [Quit: WeeChat 2.3]
akaiiro has joined #ruby
conta has quit [Quit: conta]
<havenwood> phaul: I'd say `.flatten` or `.flatten(1)` in place of `inject(:+)` here: https://gist.github.com/phaul/1d36018bf925bd212c64671a5ca20217#file-sudoku-rb-L438
<phaul> pushed
hutch has quit [Ping timeout: 245 seconds]
tjarvis has joined #ruby
nowhere_man has joined #ruby
tjarvis has quit [Client Quit]
hutch has joined #ruby
tjarvis has joined #ruby
dviola has joined #ruby
beaky has joined #ruby
dbz_ has joined #ruby
tjarvis has quit [Client Quit]
tjarvis has joined #ruby
tjarvis has quit [Client Quit]
tjarvis has joined #ruby
tjarvis has quit [Client Quit]
dbz has quit [Ping timeout: 244 seconds]
tjarvis has joined #ruby
tjarvis has quit [Client Quit]
themsay has joined #ruby
tjarvis has joined #ruby
tjarvis has quit [Client Quit]
careta has quit [Quit: Leaving]
dbz_ has quit [Remote host closed the connection]
dbz has joined #ruby
postmodern has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Inside> geez
<Inside> I should come here for code reviews too
<Eiam> hah
<Inside> I'm serious
<Inside> those are pretty good comments
<Eiam> considering I pay people on my team to do code reviews
<Inside> I should write a small gem or something that can be easily reviewed
<Eiam> I'd find it mildly offensive to request free code reviews as an actual task =)
<Inside> ehhh
<Inside> think of it as an internship
<Zarthus> Eiam: I think so long you're friendly, you keep your usecase small and their time valued, it's a completely valid question
<Zarthus> If people aren't up to it, they will simply not answer.
<Inside> you raise the general knowledge and skill level of the industry
<Zarthus> But reading other's code is a good way to train yourself too.
<Eiam> Zarthus: not disputing it as a random thing, but as an actual like ongoing action to just have all your code get reviewed here?
<Zarthus> if you get all of it reviewed here, you've got problems :)
<Eiam> yeah, probably legal ones =)
<Zarthus> just make sure your code is presentable. a 500 line gist with no indentation is the rude part.
<WA9ACE> a 500 line gist with no indentation asking "please make this totally not my homework run"
<phaul> Zarthus: you are not talking about my gist, or is the indentation gone??
<Zarthus> :')
<Zarthus> phaul: General stupidity I see on IRC, I haven't looked at your code yet.
lytol has joined #ruby
<phaul> ah ok. nm
<Zarthus> ha, it's almost 500 lines
<Inside> phaul: you're good <3
<Inside> it could also be homework :D
<WA9ACE> with things like slack communities and gitter I'm still surprised to see people making their way to IRC channels tbh
<Inside> IRC will be here long after slack
<WA9ACE> I hate both of those products with a passion
<Zarthus> Inline: Depends on if you mean "in popularity" or not.
<Inside> seriously slack..
<Inside> 1GB of RAM to.. run a chat app?!
<WA9ACE> Inline I pay for IRCCloud, they have an API level integration to Slack, and you can now connect to IRCCloud and treat it as a bouncer
<WA9ACE> so I'm connected to all my slacks from my IRC client again, even though they killed the IRC bridge
<Inside> inside c_C
<WA9ACE> yeah sorry, wrong ping
<Inline> lol
<Inline> np
nowhere_man has quit [Ping timeout: 252 seconds]
themsay has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Quit: ZNC 1.8.x-nightly-20180620-71ebbf4d - https://znc.in]
<Eiam> WA9ACE: when you go into an ios dev channel on slack its got 3000 people or more. good luck.
<Eiam> I know most the active people here and have seen and conversed with them off and on for years. hard to do that in slack groups that big
<WA9ACE> Eiam the go slack is 30k people
<WA9ACE> IRCCloud pooped itself
<Eiam> even ##javascript can get rough to follow, its 1111 people
<Inside> how is slack any different though?
<Zarthus> Eiam: the number'll grow smaller over the years :)
<Zarthus> FYI: irc is also being monopolized by a single entity.
<Eiam> whose that, Big OSS?
<Zarthus> PrivateInternetAccess
desnudopenguino has quit [Ping timeout: 268 seconds]
<Inside> is it?
<Inside> because the whole point of IRC is that it's a chat relay...
<Zarthus> they already fund development of kiwiirc, inspircd, and servers for freenode and snoonet. the rest of the free time OSS devs won't keep up
<Zarthus> and when they withdraw that funding things are gonna suck.
<Zarthus> not like ircv3.com is moving at any pace at all
<Inside> IRC is also used as a backend for some games as well
<Inside> didn't Wow use IRC servers?
<Inside> also.. eve online?
<Zarthus> wow doesn't use irc, at least not in recent decades
sameerynho has joined #ruby
<Zarthus> Osu! does, and runescape had a SwiftKit which integrated irc
sameerynho is now known as Guest49234
<WA9ACE> I'm pretty sure Twitch Chat is and IRCd written in Go
<WA9ACE> an*
<Zarthus> WA9ACE: it's a fork of unrealircd (c), afaik
<WA9ACE> it got rewritten in 2015
<Zarthus> nice
<Zarthus> anyway, most networks are shrinking a lot
<Zarthus> irc is not in the most healthy state, and it's not gonna become better.
cthulchu has quit [Remote host closed the connection]
cthulchu has joined #ruby
Guest49234 has quit [Ping timeout: 245 seconds]
duckpuppy has joined #ruby
Guest49234 has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
akaiiro has quit [Ping timeout: 250 seconds]
dbz_ has joined #ruby
Guest49234 has quit [Ping timeout: 240 seconds]
dbz has quit [Ping timeout: 244 seconds]
cpruitt has quit []
dbz_ has quit [Ping timeout: 244 seconds]
desnudopenguino has joined #ruby
holdenjd has joined #ruby
elphe has joined #ruby
Scrooge has joined #ruby
<havenwood> nice, did_you_mean now detects typos with keywords in version 1.3
<havenwood> gem update did_you_mean
<Zarthus> havenwood, ironic, that feature has a typo in it
<Zarthus> # +VariableNameChecker::RB_RESERVED_WORDS+, those reserved words reqquires
<havenwood> Zarthus: And require there should be singular ¯\_(ツ)_/¯
<Zarthus> :P
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
<Scrooge> is there something like arr1 & arr2, except it filters using a certain regex?
dbz has joined #ruby
<havenwood> Scrooge: arr1.grep(regex) & arr2.grep(regex)
<havenwood> Scrooge: or: (arr1 & arr2).grep(regex)
<Scrooge> the first one is perfect, thanks
<Scrooge> actually, i realized i asked my question wrong, but method 1 gave me an idea of how i can do it
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
orbyt_ has joined #ruby
SeepingN has joined #ruby
Puffball has quit [Remote host closed the connection]
nowhere_man has joined #ruby
reber has quit [Remote host closed the connection]
wolfshappen has quit [Quit: Waffs have technical problems too]
kapil____ has quit [Quit: Connection closed for inactivity]
<kspencer> So I'm pretty sure someone has already noticed this, but ruby-doc.org/core-2.5.*/Struct.html (I did put an asterisk in there because it affects 2.5.0-2.5.3)
<kspencer> But the documentation for Struct asks you to use a 'Customer' constant, which in affected versions of ruby will raise a Dynamic Constant Assignment Error
<kspencer> Which yes, I do know is not a bug, but a feature of 2.5.* but is a bug with the documentation documents. Just letting more people know
<miah> its not asking you to use a constant named Customer, its only using Customer as an example
<kspencer> right, but why show an example of it, if its going to cause an exception
<miah> i suspect you already have a Customer defined somewhere in your code. when I do this in pry it works fine.
<havenwood> kspencer: Which of the examples do you mean?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> kspencer: The ::new example?
cthulchu has quit [Ping timeout: 250 seconds]
wolfshappen has joined #ruby
<havenwood> kspencer: like miah said, that doesn't cause a warning
<havenwood> kspencer: (Unless you already have Customer defined.)
<havenwood> kspencer: Doing it twice in the same IRB session would cause a warning.
<havenwood> kspencer: There also shouldn't be anything 2.5-specific about it.
m0w has quit [Ping timeout: 250 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
<kspencer> lines 11-24
akaiiro has joined #ruby
<kspencer> my problem is not with the code I have, its that the docs say its allowed in 2.5 when its not, before with 2.3 i'd get a warning but with 2.5 I'm getting an exception, with the docs, that's a bit of a issue when it says it would be allowed and not saying anything about it causing an exception
orbyt_ has joined #ruby
<miah> can you show the exception?
dbz_ has joined #ruby
<havenwood> kspencer: it seems you're defining your struct but never initializing one
<havenwood> kspencer: Like: Account.new
themsay has joined #ruby
<miah> also any time #account is called its creating a new Account
<havenwood> kspencer: Note, Account is the struct, not an instance of it.
cthulchu has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
<havenwood> kspencer: each time you run that method, you redefine the constant - hence the error
<miah> you should define your struct outside of the #account method
dbz has quit [Ping timeout: 268 seconds]
<havenwood> kspencer: this wouldn't have worked in any version of Ruby though - it's not 2.5-specific
<miah> and then in your account method create a instance variable that holds a Account, eg `@account ||= Account.new`
<kspencer> pretty sure in 2.3 you'd get a warning but it would still work
<havenwood> kspencer: this wouldn't work in 2.3 ¯\_(ツ)_/¯
<havenwood> kspencer: try it!
<miah> oldest ruby i have installed is 2.4.0 so i cant validate =)
pwnd_nsfw has quit [Remote host closed the connection]
<kspencer> I only have 2.5.3 on my computer
pwnd_nsfw has joined #ruby
Azure has joined #ruby
<kspencer> and I don't use rvm or anything because it causes me too many problems with scope when i want something to use the full user etc.
<miah> (why i use chruby)
<havenwood> kspencer: It doesn't work on the 30 versions of Ruby I have on this computer. :P
<havenwood> (I also use chruby)
<kspencer> i may checkout chruby then
<miah> chruby + ruby-install
za1b1tsu has joined #ruby
<kspencer> will chruby play nice with rubymine?
<kspencer> ah WIP
<havenwood> kspencer: It does work. I'll remove the WIP: https://youtrack.jetbrains.com/issue/RUBY-14086
<havenwood> kspencer: Fixed
<miah> it should you just need to tell it the path to your ruby
<miah> i used it years back
<havenwood> now it should be automagical
<miah> nice
mostlybadfly has quit [Quit: Connection closed for inactivity]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
nowhere_man has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
marz_d`ghostman has quit [Ping timeout: 256 seconds]
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
haylon has joined #ruby
bungled has joined #ruby
Exuma has joined #ruby
lucasb has joined #ruby
cthulchu has quit [Ping timeout: 272 seconds]
ellcs has joined #ruby
akem has joined #ruby
druonysus has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
hutch has joined #ruby
coderphive has quit [Quit: coderphive]
blackmesa has joined #ruby
Puffball has joined #ruby
coderphive has joined #ruby
dbz_ has quit [Remote host closed the connection]
dbz has joined #ruby
cnsvc_ has joined #ruby
cow[moo] has quit [Read error: Connection reset by peer]
cthulchu has joined #ruby
dbz_ has joined #ruby
dbz_ has quit [Remote host closed the connection]
dbz_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0w has joined #ruby
dbz_ has quit [Remote host closed the connection]
dbz_ has joined #ruby
orbyt_ has joined #ruby
dbz has quit [Ping timeout: 250 seconds]
Scrooge is now known as nchambers
cnsvc_ has quit [Ping timeout: 256 seconds]
dbz has joined #ruby
dbz_ has quit [Ping timeout: 245 seconds]
za1b1tsu has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alan_w has quit [Ping timeout: 250 seconds]
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has quit [Remote host closed the connection]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
clemens3_ has quit [Ping timeout: 246 seconds]
cahoots has joined #ruby
bungled is now known as thismyspout
justache is now known as santastache
haylon has quit [Ping timeout: 245 seconds]
phaul has quit [Quit: bye]
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
eminencehc has quit [Ping timeout: 250 seconds]
cnsvc_ has joined #ruby
hutch has quit [Ping timeout: 250 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcarl43 has quit [Quit: WeeChat 2.3]
orbyt_ has joined #ruby
gix has quit [Ping timeout: 240 seconds]
<cahoots> hi, i want to get a base 2 number (as a string of 1's and 0's) approximating a decimal number (e.g. 0.1), with as many bits as i want. what's the easiest way to do this?
thismyspout has quit [Quit: Leaving]
hiroaki has quit [Ping timeout: 246 seconds]
hutch has joined #ruby
JoshS has quit [Ping timeout: 250 seconds]
Puffball has quit [Remote host closed the connection]
code_zombie has quit [Quit: Leaving]
za1b1tsu has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 245 seconds]
Arkantos has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
Arkantos has quit [Client Quit]
cahoots has quit [Ping timeout: 246 seconds]
Arkantos has joined #ruby
Arkantos has quit [Client Quit]