adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
Rounin has quit [Ping timeout: 268 seconds]
gr33n7007h has quit [Ping timeout: 268 seconds]
perrierjouet has quit [Quit: WeeChat 3.2]
gggpkm has quit [Ping timeout: 260 seconds]
ur5us_ has quit [Ping timeout: 268 seconds]
ur5us_ has joined #ruby
niv has joined #ruby
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.
Na_Klar has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
fdan has joined #ruby
freeworld has joined #ruby
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
<fedorafan> i dont like that
<fedorafan> pseudo
<fedorafan> intellectual
roadie has quit [Ping timeout: 268 seconds]
motherr has quit [Quit: motherr]
fedorafan has left #ruby [Textual IRC Client: www.textualapp.com]
motherr has joined #ruby
<rapha> lol
<rapha> okay, i fell for a troll
<rapha> happens
* rapha moves on
roadie has joined #ruby
motherr has quit [Client Quit]
<MeowcatWoofWoofF> i lol'd
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
pwnd_sfw has quit [Ping timeout: 252 seconds]
roadie` has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
jetchisel has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
jetchisel has quit [Max SendQ exceeded]
jetchisel has joined #ruby
<rapha> hey, laughter is healthy :)
walez has quit [Ping timeout: 260 seconds]
roadie` has quit [Ping timeout: 268 seconds]
roadie` has joined #ruby
bit4bit has joined #ruby
fdan has joined #ruby
roadie` has quit [Ping timeout: 240 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<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.
roadie` has joined #ruby
bit4bit has quit [Ping timeout: 265 seconds]
mrkz_c has quit []
mrkz_c has joined #ruby
bit4bit has joined #ruby
menace has joined #ruby
menace has joined #ruby
menace has quit [Changing host]
menace is now known as Deknos
roadie` has quit [Ping timeout: 268 seconds]
bit4bit has quit [Ping timeout: 240 seconds]
roadie` has joined #ruby
bit4bit has joined #ruby
<nakilon> rapha "\u0630" => "ذ"
roadie` has quit [Ping timeout: 252 seconds]
danjo4 has joined #ruby
<nakilon> rapha 0x0630.chr("utf-8") =>"ذ"
danjo has quit [Ping timeout: 265 seconds]
danjo4 is now known as danjo
fdan has quit [Quit: Client closed]
<rapha> ooooh
fdan has joined #ruby
<rapha> ok, that's how that table works. also explains why the one on wikipedia didn't have the 0630
<rapha> puts 'd0'.to_i(16).chr('windows-1256') still doesn't give 'ذ' but i'm guessing that's down to the terminal or the font
<rapha> ah, 'd0'.to_i(16).chr('windows-1256').encode('utf-8') works
<rapha> think i'm getting the hang of it now
Deknos has quit [Quit: Deknos]
walez has joined #ruby
fef has joined #ruby
<fef> I'm getting following error
<fef> guide me
<fef> OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
<fef> but i have openssl installed
<rapha> how is your ruby installed?
<fef> from source
<fef> tar.gz
<rapha> then you're perhaps still missing your distro's development package for [the correct version of] openssl
<fef> how to know ruby installed or not?
<fef> ruby --version
<fef> ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
walez has quit [Ping timeout: 268 seconds]
<nakilon> now we at least know it's some linux
<rapha> what distro, fef?
<fef> Etiona
<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]
CrazyEddy has quit [Ping timeout: 260 seconds]
jpw has quit [Remote host closed the connection]
jpw has joined #ruby
roadie` has joined #ruby
roadie` has quit [Ping timeout: 260 seconds]
mrkz_c has joined #ruby