<havenwood>
Na_Klar: Ah, that makes way more sense, haha. Yeah, looks like IRC swallowed the last part.
<Na_Klar>
unheard of
greypack has joined #ruby
<havenwood>
Na_Klar: Show the code you have? I'm distracted at the moment, but on first read it wasn't clear to me why you're doing what you're doing or what exactly it is other than threading with I/O.
<havenwood>
Na_Klar: Or if you can't share code, can you say why you're threading with I/O?
<Na_Klar>
yes, it is complicated. Basically I start a thread with a ServerSocket and for some reasons I have to read nonblocking from the client. It would be the right direction for me, if I simply could implement that after a successful nonblocking read the ServerSocket could write back to the client. But the program just halts when I try to write() or puts() to the accepted client's object.
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
giorgian has quit [Ping timeout: 256 seconds]
henninb has quit [Quit: Lost terminal]
banisterfiend has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has quit [Read error: Connection reset by peer]
tpanarch1st has quit [Ping timeout: 256 seconds]
Na_Klar has quit [Quit: Leaving.]
GodFather has quit [Ping timeout: 260 seconds]
meinside has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
greypack has quit [Ping timeout: 265 seconds]
cahoots has quit [Ping timeout: 256 seconds]
greypack has joined #ruby
cagomez has joined #ruby
<cagomez>
IIRC in Java, when an object is no longer referenced, the GC cleans it up. I've seen code that explicitly removes references to an object so that this happens. Is this a concept in Ruby?
alexherbo2 has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
cliluw has quit [Ping timeout: 246 seconds]
cliluw has joined #ruby
troulouliou_dev has joined #ruby
cliluw has quit [Ping timeout: 250 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 265 seconds]
gix has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
greypack has quit [Quit: All your IRC are belong to ZNC]
cliluw has joined #ruby
greypack has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
ChmEarl has quit [Quit: Leaving]
brool has quit [Ping timeout: 260 seconds]
meowzus has joined #ruby
brool has joined #ruby
brool has quit [Ping timeout: 260 seconds]
jetchisel has quit [Read error: Connection reset by peer]
lesihctej has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
pandakekok9 has joined #ruby
brool has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
MrCrackPot has joined #ruby
cliluw has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
MadLamb has joined #ruby
cliluw has quit [Ping timeout: 256 seconds]
r3m has quit [Quit: WeeChat 2.9-dev]
sergioro has quit [Quit: leaving]
r3m has joined #ruby
r3m has quit [Client Quit]
r3m has joined #ruby
r3m has quit [Client Quit]
sergioro has joined #ruby
zacts has quit [Quit: WeeChat 2.7.1]
r3m has joined #ruby
zacts has joined #ruby
deimos_ has joined #ruby
r3m has quit [Quit: WeeChat 2.9-dev]
pandakekok9 has quit [Quit: leaving]
r3m has joined #ruby
comet23 has quit [Quit: Connection closed for inactivity]
r3m has quit [Client Quit]
r3m has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
mniip has joined #ruby
alexherbo2 has joined #ruby
donofrio has quit [Remote host closed the connection]
ur5us has joined #ruby
akem has quit [Ping timeout: 250 seconds]
xco has joined #ruby
kayront has left #ruby ["Leaving"]
giorgian has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
KindOne has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
Fridtjof has quit [Ping timeout: 260 seconds]
ua has joined #ruby
sergioro has quit [Quit: Lost terminal]
sergioro has joined #ruby
Fridtjof has joined #ruby
ua has quit [Read error: Connection reset by peer]
ua has joined #ruby
imode has quit [Ping timeout: 240 seconds]
cnsvc has joined #ruby
cnsvc has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roadie has joined #ruby
conta has joined #ruby
nullus has left #ruby [#ruby]
ur5us has joined #ruby
xco has joined #ruby
akem has joined #ruby
akem has quit [Max SendQ exceeded]
conta has quit [Quit: conta]
akem has joined #ruby
ldepandis has joined #ruby
brool has quit [Ping timeout: 260 seconds]
cisco has joined #ruby
Benett has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
akem has quit [Ping timeout: 265 seconds]
roadie has quit [Ping timeout: 258 seconds]
infinityfye has joined #ruby
ellcs has joined #ruby
akem has joined #ruby
cisco has quit [Ping timeout: 258 seconds]
snuz has joined #ruby
snuz has quit [Client Quit]
dionysus69 has joined #ruby
Ool has quit [Ping timeout: 260 seconds]
_aeris_ has joined #ruby
cd has quit [Quit: cd]
cisco has joined #ruby
<_aeris_>
Hello here!
<_aeris_>
i have a strange behavior on OpenSSL::SSL::SSLSocket#tmp_key
<_aeris_>
from ruby 2.3, it return OpenSSL::PKey::EC or OpenSSL::PKey::RSA accordingly to the negotiated key
<_aeris_>
from ruby 2.6, it return strange OpenSSL::PKey::PKey, despite unit test saying the opposite (and ok when running it)
royal_screwup219 has quit [Quit: Connection closed]
royal_screwup211 has joined #ruby
royal_screwup21 has joined #ruby
royal_screwup211 has quit [Client Quit]
duderonomy has joined #ruby
sergioro has joined #ruby
Milos has quit [Ping timeout: 240 seconds]
xco has joined #ruby
Milos has joined #ruby
conta has quit [Quit: conta]
lxsameer has quit [Quit: WeeChat 2.8]
KindOne has joined #ruby
lxsameer has joined #ruby
cisco has quit [Ping timeout: 250 seconds]
jobewan has joined #ruby
Milos has quit [Ping timeout: 256 seconds]
Milos has joined #ruby
giorgian has quit [Ping timeout: 250 seconds]
advorak has joined #ruby
giorgian has joined #ruby
<apotheon>
Too bad cagomez didn't stick around. I could've offered some kind of answer to that question.
Milos has quit [Ping timeout: 264 seconds]
Milos has joined #ruby
DTZUZU2 has joined #ruby
SeepingN has joined #ruby
alfiemax has joined #ruby
DTZUZU has quit [Ping timeout: 256 seconds]
caterfxo has quit [Quit: leaving]
giorgian has quit [Ping timeout: 256 seconds]
<xco>
apotheon how're you holding up with the virus thing?
<s_>
getting a cryptic build error building ruby 2.5.8 in ubuntu 18.04
<xco>
s_ what's that cryptic build error?
troulouliou_div2 has joined #ruby
<apotheon>
xco: not bad
<apotheon>
I'm an introvert with hermit tendencies who hasn't worked in a company office since 2016, so the lockdown is almost like normal life for me.
<apotheon>
I'd occasionally like a change of scenery, but don't really have any particular problem with not being able to go out and mingle with people.
alfiemax has quit [Ping timeout: 250 seconds]
<xco>
I'm an introvert with hermit tendencies who hasn't worked in a company office since 2016, so the lockdown is almost like normal life for me. << we're siblings!!! im' a hemit by profession for the past 10 years. i have no life hahahah. so i'm not affected much either
<xco>
I'd occasionally like a change of scenery, but don't really have any particular problem with not being able to go out and mingle with people. << you're talking like me nice to know :D
caterfxo has joined #ruby
<xco>
good to know you're doing well though ;)
alfiemax has joined #ruby
<apotheon>
xco: Same to you.
caterfxo has quit [Quit: leaving]
caterfxo has joined #ruby
dionysus69 has joined #ruby
postmodern has joined #ruby
zenspider has quit [Ping timeout: 258 seconds]
royal_screwup21 has quit [Quit: Connection closed]
hiroaki has joined #ruby
roadie has quit [Ping timeout: 258 seconds]
cliluw has joined #ruby
roadie has joined #ruby
zenspider has joined #ruby
cliluw has quit [Ping timeout: 246 seconds]
cliluw has joined #ruby
zapata has quit [Quit: WeeChat 2.8]
buckworst has quit [Quit: WeeChat 2.8]
giorgian has joined #ruby
houhoulis has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
<baweaver>
Ding
gitter1234 has joined #ruby
<apotheon>
Ding? Did you level up in Everquest?
<kaleido>
oh wow
<kaleido>
going old school
howdoi has joined #ruby
<apotheon>
Isn't that where the "ding"="level up" started?
<apotheon>
s/quest/Quest/
<apotheon>
damned CamelCase
houhoulis has quit []
<gitter1234>
Hi! I'm getting `invalid trailing UTF-8 octet` for a YAML translation file with foreign characters. Any idea how to clean this up? I did remove all trailing whitespace and CR/LF but to no avail. These foreign characters have also suddenly stopped displaying properly in Vim, becoming almost impossible to edit, as if there are invisible characters getting in the way.
<gitter1234>
I have `export LC_ALL=en_US.UTF-8` in my /etc/zshrc and normally this would to suffice, but I must have slipped up somewhere when editing the YAML back and forth between Windows and Unix. So is there a way to salvage this or would I be better off rewriting it from scratch, this time making sure it's Unix only?
<gitter1234>
* would suffice
akem has quit [Quit: Leaving]
Tempesta has quit [Quit: See ya!]
alfiemax has quit [Ping timeout: 240 seconds]
akem has joined #ruby
akem has quit [Max SendQ exceeded]
akem has joined #ruby
alfiemax has joined #ruby
caterfxo has quit [Ping timeout: 240 seconds]
<jhass>
gitter1234: sounds like invalid encoding. You could read the file in ASCII-8bit, https://devdocs.io/ruby~2.6/string#method-i-scrub and then write it back (I would write to a new file since this is a destructive action)
<gitter1234>
Thanks jhass!
Tempesta has joined #ruby
<jhass>
if you can figure out the byte index into the file where the invalid sequence is you could also pull up a hex editor and fix/remove it, but that'll require learning a bit of how UTF-8 encoding actually works to correctly identify the byte sequence to remove
TCZ has joined #ruby
mistergibson has joined #ruby
alfiemax has quit [Remote host closed the connection]
darkstardevx has quit [Read error: Connection reset by peer]
mistergibson has quit [Client Quit]
<gitter1234>
jhass: Amazing how many ways there are to skin a cat :)
<jhass>
for this problem there certainly is a ton
<jhass>
I could imagine iconv can do it too in some way
cnsvc has joined #ruby
TCZ has quit [Quit: Leaving]
bvdw has quit [Quit: bvdw]
infinityfye has quit [Ping timeout: 256 seconds]
darkstardevx has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
caterfxo has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
zapata has joined #ruby
TCZ has joined #ruby
<apotheon>
gitter1234: Maybe this is a dumb question, but . . . have you tried using dos2unix?
<jhass>
why you think it has to do with line endings?
<jhass>
for me the error message quite clearly says there's an extra byte for an UTF codepoint that shouldn't have it
<apotheon>
I don't, necessarily.
<apotheon>
It was just a question.
<apotheon>
The problem evidently arose because of switching between Unix and DOS file conventions, judging by what gitter1234 said.
<jhass>
I think they just got off the wrong path for the "trailing" in the error message
<apotheon>
okay
<jhass>
not many realize that UTF-8 is a variable byte length encoding or even what that means
<gitter1234>
I ended up force converting it inside Vim with :set fileencoding=utf-8.
<jhass>
mh, that probably did the same as scrub would do, replace the invalid byte with the replacement character
<havenwood>
Well, I guess Object to Class is a step easier, just straight: Object.class
infinityfye has joined #ruby
infinityfye has quit [Remote host closed the connection]
royal_screwup21 has joined #ruby
<TCZ>
&>> protected.class
<rubydoc>
stderr: -e:4:in `<main>': undefined local variable or method `protected' for main:Object (NameError)... check link for more (https://carc.in/#/r/8vsw)
TCZ has quit [Quit: Leaving]
dviola has quit [Quit: WeeChat 2.8]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bvdw has joined #ruby
TCZ has joined #ruby
<phaul>
hm. I'v never realized that protected was different in this way.
<rubydoc>
stderr: -e:4:in `<main>': undefined local variable or method `protected' for main:Object (NameError)... check link for more (https://carc.in/#/r/8vt6)
<openstruct>
I'm interesting in learning how Array() or Hash() work. I tried creating my own Object that would respond to being invoked like that, but I can't seem to figure out what's necessary. Is is a alias_method on the singleton class?
<havenwood>
openstruct: They're just methods!
<openstruct>
havenwood: Like `def self.()`?
<havenwood>
openstruct: They're defined on Kernel module, which is mixed into Object.
<havenwood>
openstruct: Note, the parens disambiguate.
<havenwood>
openstruct: But it's just a method.
<openstruct>
havenwood: Oh, wow. Thanks! I was trying to figure out how dry-monad did it and totally overlooked the part where they included a module on the Kernel.