iramaro has quit [Read error: Connection reset by peer]
Na_Klar has joined #ruby
<Na_Klar>
I start a Thread.new{}. Within that thread I start a process with system(). Now my main script may end and it .terminates the thread. But it does not kill the process which was started with system(). Is there a way to make that process a child of the thread, so it will be killed as well when the thread gets terminated?
<Na_Klar>
for the logs: I catched the pid with popen and killed it with a system call.
woink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Oxfuxxx has joined #ruby
fdan has quit [Ping timeout: 256 seconds]
goepsilongo has joined #ruby
goepsilongo has quit [Ping timeout: 268 seconds]
Oxfuxxx has quit [Quit: never underestimate the power of the atomic energy....booooom!]
jpw has quit [Remote host closed the connection]
jpw has joined #ruby
MeowcatWoofWoofF has joined #ruby
roadie has joined #ruby
gr33n7007h has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Quit: WeeChat 3.2]
roadie has joined #ruby
ur5us_ has quit [Ping timeout: 268 seconds]
<havenwood>
Na_, I'm surprised you report that killing thread by exiting doesn't kill the system call, since I'd expect it to and it appears to generally.
teclator has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
Rounin has joined #ruby
fdan has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
lunarkitty has joined #ruby
Milos has quit [Ping timeout: 268 seconds]
Milos has joined #ruby
moldorcoder7_ has quit [Ping timeout: 265 seconds]
goepsilongo has joined #ruby
Milos has quit [Ping timeout: 268 seconds]
goepsilongo has quit [Quit: Konversation terminated!]
Milos has joined #ruby
walez has joined #ruby
sagax has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
Oxfuxxx has quit [Client Quit]
roadie has joined #ruby
jposer has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
goepsilongo has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
roadie has joined #ruby
ur5us_ has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
darkxploit has joined #ruby
Guest74 has joined #ruby
roadie has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
ur5us_ has quit [Ping timeout: 240 seconds]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
Oxfuxxx has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
___nick___ has joined #ruby
moldorcoder7 has joined #ruby
motherr has joined #ruby
Oxfuxxx has quit [Quit: Never underestimate the power of the butt....ON. (Playst...i mean.. Pir@tA$$)]
roadie has joined #ruby
___nick___ has quit [Quit: No Ping reply in 180 seconds.]
roadie has quit [Ping timeout: 268 seconds]
___nick___ has joined #ruby
roadie has joined #ruby
___nick___ has quit [Quit: No Ping reply in 180 seconds.]
woink has joined #ruby
woink has quit [Client Quit]
fdan has quit [Quit: Client closed]
___nick___ has joined #ruby
roadie has quit [Ping timeout: 268 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
Guest74 has quit [Quit: Client closed]
<rapha>
i know there's python libs to determine the language of a string (i.e., English/French/Persian/whatever) ... do we have something like that for ruby, too?
fedorafan has joined #ruby
<fedorafan>
yo
<rapha>
oy
<rapha>
(no, i'm not british, but then, you might not be american, either)
<fedorafan>
what are you doing with ruby someone told me he likes it
<rapha>
in my case, at work i'm digitizing large collections of manuscript catalogues, starting with unscanned, mostly rectangularized, dead trees (aka "books") and ending in the extraction of normalized data. and at home, interfacing with microcontrollers, home automation, sometimes a website here or there.
<fedorafan>
puhhh
<fedorafan>
i cant follow
<fedorafan>
so you make ebooks?
roadie has joined #ruby
<rapha>
nope. i'm preparing data to be imported into a database made by someone else.
<rapha>
i guess you could call it natural language processing, even though only part of it is what the term as such applies to.
<fedorafan>
it seems as if you complicate easy stuff to me
<rapha>
hmm, according to https://www.charset.org/charsets/windows-1256, shouldn't ("0630".to_i(16)).chr(Encoding::Windows_1256) give me the letter 'ذ'? What am I misunderstanding about Integer#chr?
<rapha>
(or at least not give me an out-of-range exception)
mrkz_c has joined #ruby
<ccooke>
rapha: You're misreading the table. 0630 is the UTF-8 character ID, but the Windows_1256 codepage is an 8-bit character set. The relevant codepage address is d0.
<rapha>
okay, the better answer to that question would have been trisquel, but google knew anyhow
<rapha>
that's based on ubuntu, so debian
<rapha>
so what openssl package(s) did you install (via apt or whatever), fef?
<fef>
i didnt install openssl it was preexisting at /usr/bin/
<rapha>
okay, so in all likelyhood you are missing the development package for it
<rapha>
it seems you compiled ruby correctly, though
<rapha>
according to google, you should sudo apt-get install zlib1g-dev libssl-dev and then compile ruby again
<fef>
have done that earlier
<fef>
yes with help of google
<rapha>
you said "i didnt install openssl, it was preexisting" and then i said to install zlib1g-dev and libssl-dev, and now you're saying you did that earlier.
<rapha>
which is it? are zlib1g-dev and libssl-dev installed, or not?
<fef>
i have no clue how both related but SO said so to install and it worked , so i tried
<fef>
didnt install openssl as it was pre-existing earlier
<rapha>
sudo apt install zlib1g-dev libssl-dev ; cd ~/wherever/ruby-3.0.2/sources/are/ ; make clean ; ./configure --prefix=/usr/local/ ; make ; sudo make install ; /usr/local/bin/ruby -v
<rapha>
that should yield you a ruby that can make use of openssl
<fef>
ERROR: While executing gem ... (Gem::Exception)
<fef>
OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
fef has left #ruby [Leaving]
<nakilon>
maybe ruby-dev?
<nakilon>
or rbenv
<nakilon>
oh he's gone
<nakilon>
will become pythonist (
<adam12>
lol
<rapha>
o_O
roadie` has joined #ruby
bit4bit has quit [Read error: Connection reset by peer]
fdan has quit [Ping timeout: 256 seconds]
roadie` has quit [Ping timeout: 268 seconds]
roadie` has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
roadie` has joined #ruby
roadie` has quit [Ping timeout: 240 seconds]
roadie` has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
ur5us_ has joined #ruby
roadie` has joined #ruby
roadie` has quit [Ping timeout: 260 seconds]
freeworld has quit [Ping timeout: 252 seconds]
roadie` has joined #ruby
___nick___ has quit [Ping timeout: 252 seconds]
ur5us_ has quit [Ping timeout: 265 seconds]
ur5us_ has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
darkxploit has quit [Ping timeout: 268 seconds]
roadie` has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
pwnd_sfw has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]