havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: 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!
poro has quit [Quit: Leaving]
xco has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
NGC3982 has quit [Ping timeout: 260 seconds]
cnsvc_ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
NGC3982 has joined #ruby
Blacink has joined #ruby
mac_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
Blacink has quit [Quit: Leaving]
_whitelogger has joined #ruby
lightstalker has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
bruce_lee has quit [Ping timeout: 258 seconds]
bruce_lee has joined #ruby
lightstalker has joined #ruby
lesha_ has quit [Ping timeout: 272 seconds]
jinmiaoluo has joined #ruby
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
pwnd__ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Leaving]
eggbean has left #ruby ["WeeChat 2.8"]
mac_ has quit [Quit: Leaving]
jinmiaoluo has quit [Ping timeout: 265 seconds]
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
cliluw has quit [Ping timeout: 264 seconds]
cliluw has joined #ruby
belak0 has joined #ruby
impermanence has joined #ruby
ljarvis_ has quit [Ping timeout: 260 seconds]
Hien_ has joined #ruby
TheBrayn2 has joined #ruby
<xco> is there a way to rescue LoadError on a line that does `require_relative 'bla'`?
<xco> i tried the rescue LoadError in another file that depends on the file doing the require_relative, but the LoadError still comes through
<havenwood> xco: Show the code?
jinmiaoluo has joined #ruby
<havenwood> xco: If you wrap it in a rescue, it should rescue.
<xco> havenwood sec
<xco> that's what i expected but it's not working
Spitfire_ has joined #ruby
Spitfire_ has quit [Changing host]
Spitfire_ has joined #ruby
Jello_Raptor_ has joined #ruby
e has quit [Ping timeout: 608 seconds]
ruby[bot] has quit [*.net *.split]
haylon[m] has quit [*.net *.split]
stan has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
Hien has quit [*.net *.split]
Jello_Raptor has quit [*.net *.split]
Spitfire has quit [*.net *.split]
belak has quit [*.net *.split]
Jello_Raptor_ is now known as Jello_Raptor
belak0 is now known as belak
Hobbyboy has quit [Quit: The BNC has broken!]
<havenwood> xco: private at the moment?
<havenwood> nvm
<havenwood> xco: The begin block is around the wrong thing.
<havenwood> xco: Wrap the #require_relative not the Alice.new.
<havenwood> xco: begin; require_relative 'lib/alice'; ...
turt2live has quit [Ping timeout: 252 seconds]
sepp2k1 has quit [Ping timeout: 240 seconds]
mbarbar has quit [Ping timeout: 260 seconds]
linuus[m] has quit [Ping timeout: 244 seconds]
execat[m] has quit [Ping timeout: 256 seconds]
batisi[m] has quit [Ping timeout: 256 seconds]
olavx200 has quit [Ping timeout: 240 seconds]
claw has joined #ruby
<xco> havenwood nice
hsiktas[m] has quit [Ping timeout: 252 seconds]
<xco> havenwood is there a way to exit program execution right after the rescue?
<havenwood> xco: exit
<havenwood> xco: you mean if the file isn't present?
<xco> yes
<havenwood> xco: abort
<havenwood> xco: abort 'this is a warning message'
<havenwood> xco: either exits with an error status
<havenwood> xco: the latter warns to stderr while exitinng
<havenwood> xco: Replace `$stderr.puts` with `abort`.
<xco> working good havenwood
ChmEarl has quit [Quit: Leaving]
linuus[m] has joined #ruby
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arkantos has joined #ruby
Arkantos has quit [Client Quit]
mbarbar has joined #ruby
sepp2k1 has joined #ruby
batisi[m] has joined #ruby
olavx200 has joined #ruby
execat[m] has joined #ruby
haylon[m] has joined #ruby
stan has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
Arkantos has joined #ruby
jinmiaoluo has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
hsiktas[m] has joined #ruby
gavlee has quit [Excess Flood]
gavlee has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ljarvis_ has joined #ruby
Hobbyboy has joined #ruby
xco has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edk_ has joined #ruby
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
xco has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
<deimos_> is there an easy way to recsue ArgumentError or handle this error better? "in `===': invalid byte sequence in UTF-8 (ArgumentError)"
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Rudd0 has quit [Ping timeout: 258 seconds]
ThisGeekChick has joined #ruby
ThisGeekChick has left #ruby ["#moi {overflow: hidden;}"]
polishdub has quit [Quit: leaving]
donofrio has quit [Remote host closed the connection]
<Fire-Dragon-DoL> deimos_: what about `valid_encoding?`? Returns false if the string is incorrectly encoded
fuDwitc has joined #ruby
fuDwitc has quit [Ping timeout: 246 seconds]
cacheeror has joined #ruby
howdoi has joined #ruby
nixy37179 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37179 has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has joined #ruby
envex has quit []
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 260 seconds]
jinmiaoluo has quit [Ping timeout: 258 seconds]
cliluw has quit [Ping timeout: 240 seconds]
gavlee has quit [Excess Flood]
jinmiaoluo has joined #ruby
gavlee has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
cliluw has joined #ruby
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
lesha_ has joined #ruby
guardianx has joined #ruby
andi has joined #ruby
lesha_ has quit [Ping timeout: 265 seconds]
cassolas has joined #ruby
cassolas has quit [Ping timeout: 260 seconds]
gitter1234 has joined #ruby
Archenoth has quit [Read error: Connection reset by peer]
robotmay has quit [Quit: Be excellent to each other]
guardianx has quit [Quit: Konversation terminated!]
imode has quit [Ping timeout: 260 seconds]
cadeskywalker has joined #ruby
alexherbo2 has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
cd has quit [Quit: cd]
ur5us has joined #ruby
vondruch has joined #ruby
ur5us has quit [Quit: Leaving]
robotmay has joined #ruby
sarna has joined #ruby
schne1der has joined #ruby
fuDwitc has joined #ruby
fuDwitc_ has joined #ruby
fuDwitc has quit [Ping timeout: 256 seconds]
cassolas has joined #ruby
giorgian has joined #ruby
cassolas has quit [Ping timeout: 264 seconds]
greengriminal has joined #ruby
giorgian has quit [Quit: restart emacs]
giorgian has joined #ruby
lesha_ has joined #ruby
buckworst has quit [Quit: WeeChat 2.8]
fuDwitc_ has quit [Quit: suckah....]
Rudd0 has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
donofrio has joined #ruby
teclator has joined #ruby
ruby[bot] has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
ellcs1 has joined #ruby
tvw has joined #ruby
vondruch has joined #ruby
TCZ has joined #ruby
conta has joined #ruby
jinmiaoluo has quit [Ping timeout: 256 seconds]
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
edk_ is now known as e
vondruch has quit [Quit: vondruch]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
tvw has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
bsdbandit-01 has joined #ruby
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
cassolas has joined #ruby
drincruz has joined #ruby
gitter1234 has joined #ruby
cassolas has quit [Ping timeout: 258 seconds]
GodFather has quit [Remote host closed the connection]
TCZ is now known as DoomSlayer2020
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
GodFather has joined #ruby
cnsvc_ has joined #ruby
avoo22 has quit [Ping timeout: 272 seconds]
cnsvc_ has quit [Ping timeout: 240 seconds]
<gitter1234> I'm trying to build a Rails app with WebRTC video support so groups of friends or students/lecturers can gather. As of now there are only JS solutions available for Rails, but which one would you guys recommend? https://github.com/feross/simple-peer, https://github.com/ianramzy/decentralized-video-chat, https://github.com/dondido/webrtc-video-room, https://github.com/stephenlb/webrtc-sdk,
<gitter1234> So frustrating, but also a great time to be a pioneer!
akem_ has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
xco has joined #ruby
akem has quit [Ping timeout: 246 seconds]
MadLamb has joined #ruby
FastJack has quit [Ping timeout: 246 seconds]
<MadLamb> Im not very experienced on RoR and I am with an app that is using skip_digest: true on the cache for some partial... This partial has a different behavior depending on the query params, but since the key seems to be the same, this cache is being embedded in urls without considering the param. Is there an easy way I can solve this? Make it consider the URL, the params?
jinmiaoluo has joined #ruby
DoomSlayer2020 has quit [Quit: Leaving]
Technodrome has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
burningserenity has joined #ruby
cassolas has joined #ruby
Archenoth has joined #ruby
Arkantos has joined #ruby
jinmiaoluo has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
troulouliou_dev has joined #ruby
CrazyEddy has quit [Ping timeout: 265 seconds]
<gitter1234> havenwood: Battery died, just got back. thanks!
cnsvc_ has joined #ruby
xco has quit [Ping timeout: 256 seconds]
cnsvc_ has quit [Ping timeout: 240 seconds]
xco has joined #ruby
<xco> i want to do something like `system("say 'hello'")` how do i check if the system can actually #say?
<xco> working on a mac and not sure if it'll work for windows and linux
<xco> what should `system_can_say` be? 
<xco> so i want to do something like `system("say 'hello'") if system_can_say?`
ho0po3 has joined #ruby
<gitter1234> havenwood: Amazing yo!!!!
ho0po3 has quit [Quit: Leaving]
alexherbo2 has quit [Ping timeout: 256 seconds]
sarna has quit [Quit: Connection closed]
ho0po3_1 has joined #ruby
ho0po3_1 has quit [Client Quit]
ho0po3 has joined #ruby
teclator has quit [Ping timeout: 264 seconds]
<al2o3-cr> xco: system('ping', [:out, :err] => '/dev/null'); $?.exitstatus.zero?
<al2o3-cr> => true
<xco> al2o3-cr so if it can't do "say" it'll be true?
<xco> it says false on my machine
<al2o3-cr> no scrap that it can return 1
<al2o3-cr> well 0, 1 or 2
<al2o3-cr> is it just for the program `say`?
<xco> al2o3-cr yes
<al2o3-cr> you do know say is mac osx specific.
<xco> si
<xco> that's why in my README for this project i have stated "i'm assuming you're doing this on a Mac" :D
<al2o3-cr> xco: system(say_command, [:out, :err] => '/dev/null'); Process.last_status.exitstatus.zero? should suffice then.
<xco> i wanted to check how "say" can be checked, and possibly find clues not to do "say" on other systesm
ho0po3 has quit [Quit: Leaving]
<xco> al2o3-cr aaaaha! nice. thanks
<al2o3-cr> actually...
lucasb has joined #ruby
<al2o3-cr> check status for 127.
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cassolas has quit []
<al2o3-cr> xco: system(command, [:in, :out, :err] => '/dev/null'); Process.last_status.exitstatus != 127 this will work on unix like OS not sure how check for windows.
burningserenity has quit [Quit: Leaving.]
Arkantos has joined #ruby
<xco> al2o3-cr perfect i can use this one
jinmiaoluo has joined #ruby
<al2o3-cr> xco: sure, glad to help.
hansol has joined #ruby
greengriminal has joined #ruby
howdoi has joined #ruby
teclator has joined #ruby
rippa has joined #ruby
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burningserenity has joined #ruby
conta has quit [Ping timeout: 264 seconds]
teclator has quit [Ping timeout: 265 seconds]
teclator has joined #ruby
conta has joined #ruby
Arkantos has joined #ruby
TCZ has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
<deimos_> Fire-Dragon-DoL: thanks. i tried that and it seems really slow. i ended up using open3 to call out to grep -v -p [^{;ascii:]] which is somehow faster than .valid_encoding? on a billion log lines
teclator has joined #ruby
teclator has quit [Client Quit]
SeepingN has joined #ruby
conta has quit [Quit: conta]
FastJack has joined #ruby
turt2live has joined #ruby
burningserenity has quit [Ping timeout: 260 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
burningserenity has joined #ruby
orbyt_ has joined #ruby
DaRock has quit [Ping timeout: 260 seconds]
gix has joined #ruby
gix- has quit [Ping timeout: 256 seconds]
schne1der has quit [Ping timeout: 256 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChmEarl has joined #ruby
SeepingN has joined #ruby
lesha__ has joined #ruby
lesha_ has quit [Ping timeout: 240 seconds]
rhe has quit [Quit: ZNC - https://znc.in]
rhe has joined #ruby
imode has joined #ruby
TCZ has quit [Quit: Leaving]
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
<gitter1234> havenwood: slight bad news about WebRTC. got a response from that driftingruby.com guy and he said:
<gitter1234> "I dislike the smoke approach. I have been reading the action-cable-signaling-server later last week and it does seem to be the more promising approach. However, it would take a lot of rework to get it into a nice format. "
xco has joined #ruby
* gitter1234 needs video confering for his dating app, and for his new alternative to irc. research shows that when people can actually see each other, they treat each other a lot better
jinmiaoluo has quit [Remote host closed the connection]
<havenwood> gitter1234: In the case of palava, they moved their efforts to Elixir. This is the Ruby repo: https://github.com/palavatv/palava-machine
<havenwood> gitter1234: And Elixir: https://github.com/palavatv/signaltower/
tvw has joined #ruby
tvw has quit [Client Quit]
<havenwood> gitter1234: Maybe there will be more interest in WebRTC with everyone sheltering in place.
<havenwood> ¯\_(ツ)_/¯
cliluw has joined #ruby
<adam12> I wonder if WebRTC could be supported through Iodine.
drincruz_ has joined #ruby
<gitter1234> I don't see any mentioning :/
drincruz has quit [Read error: Connection reset by peer]
drincruz_ has quit [Read error: Connection reset by peer]
drincruz_ has joined #ruby
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
<adam12> gitter1234: Nah; I mean to adapt it to support Iodine, since Iodine supports other services in-process and can upgrade connections.
<adam12> I've never looked at WebRTC tbh, so I have no idea. But I use Iodine for websocket support and it works well.
<gitter1234> ill check it out thanks
greengriminal has joined #ruby
sauvin has quit [Ping timeout: 256 seconds]
cliluw has quit [Ping timeout: 256 seconds]
chalkmonster has quit [Quit: WeeChat 2.8]
duckpuppy has quit [Read error: Connection reset by peer]
greengriminal has quit [Quit: This computer has gone to sleep]
duckpuppy has joined #ruby
Secret-Fire has joined #ruby
sagax has quit [Remote host closed the connection]
Jonopoly has joined #ruby
alexherbo2 has joined #ruby
batisi[m] has quit [*.net *.split]
mbarbar has quit [*.net *.split]
linuus[m] has quit [*.net *.split]
lxsameer has quit [Ping timeout: 256 seconds]
cliluw has joined #ruby
stan has quit [Ping timeout: 240 seconds]
hsiktas[m] has quit [Ping timeout: 252 seconds]
execat[m] has quit [Ping timeout: 246 seconds]
olavx200 has quit [Ping timeout: 260 seconds]
haylon[m] has quit [Ping timeout: 246 seconds]
sepp2k1 has quit [Ping timeout: 244 seconds]
turt2live has quit [Ping timeout: 260 seconds]
batisi[m] has joined #ruby
linuus[m] has joined #ruby
mbarbar has joined #ruby
lightstalker has quit [Ping timeout: 264 seconds]
hansol has quit [Ping timeout: 264 seconds]
batisi[m] has quit [Ping timeout: 244 seconds]
linuus[m] has quit [Ping timeout: 244 seconds]
mbarbar has quit [Ping timeout: 244 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
lightstalker has joined #ruby
hansol has joined #ruby
mydog2 has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mydog2 has joined #ruby
SeepingN has joined #ruby
cnsvc_ has joined #ruby
davispuh has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
apotheon is now known as apo3on
batisi[m] has joined #ruby
xco has joined #ruby
apo3on is now known as apotheon
nomenkun has joined #ruby
schne1der has joined #ruby
akem_ is now known as akem
linuus[m] has joined #ruby
hsiktas[m] has joined #ruby
execat[m] has joined #ruby
sepp2k has joined #ruby
mbarbar has joined #ruby
haylon[m] has joined #ruby
turt2live has joined #ruby
olavx200 has joined #ruby
stan has joined #ruby
plutes has joined #ruby
NODE has quit [Remote host closed the connection]
NODE has joined #ruby
roadie has joined #ruby
nomenkun has quit [Quit: Leaving...]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
hansol has quit []
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Arkantos has quit [Quit: Textual IRC Client: www.textualapp.com]
gdonald has quit [Remote host closed the connection]
bsdbandit-01 has quit [Read error: Connection reset by peer]
vondruch_ has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
vondruch_ is now known as vondruch
jenrzzz has joined #ruby
burningserenity has quit [Quit: Leaving.]
roadie has quit [Remote host closed the connection]
Jonopoly has quit [Quit: WeeChat 2.8]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Frogging101 has quit [Quit: Close the World, Open the nExt]
cow[moo] has joined #ruby
Frogging101 has joined #ruby
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
bvdw has joined #ruby
sphex has joined #ruby
orbyt_ has joined #ruby
xco has quit [Read error: Connection reset by peer]
tau has joined #ruby
tau has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has quit [Ping timeout: 265 seconds]
Xiti has joined #ruby
lesha__ has quit [Ping timeout: 258 seconds]
jetchisel has joined #ruby
ellcs1 has quit [Ping timeout: 260 seconds]
schne1der has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
evert_ has joined #ruby
evert has quit [Read error: Connection reset by peer]
evert_ is now known as evert
chalkmonster has joined #ruby
gd___ has joined #ruby
gd___ is now known as gdonald
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lesha has joined #ruby
cow[moo] has joined #ruby
lesha has quit [Ping timeout: 256 seconds]
sagax has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 272 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has quit [Ping timeout: 256 seconds]
prkn8[m] has joined #ruby
<phaul> 1
drincruz_ has quit [Ping timeout: 265 seconds]
Technodrome has joined #ruby
cow[moo] has joined #ruby
darkstardevx has joined #ruby
cow[moo] has quit [Ping timeout: 258 seconds]
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
inradius has joined #ruby
darkstardevx has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
Arkantos has joined #ruby
imode has quit [Quit: WeeChat 2.8]