adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
Rounin has quit [Ping timeout: 248 seconds]
grokify has quit [Remote host closed the connection]
jpn has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
wand has quit [Ping timeout: 255 seconds]
wand has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
barak has quit [Ping timeout: 260 seconds]
jpn has quit [Ping timeout: 246 seconds]
reset has joined #ruby
jpn has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
glider has quit [Read error: Software caused connection abort]
glider has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
jpn has quit [Ping timeout: 252 seconds]
slothby has quit [Read error: Software caused connection abort]
slothby has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
peirik_ has joined #ruby
reset has quit [Ping timeout: 260 seconds]
perrierjouet has quit [Quit: WeeChat 3.7.1]
peirik_ has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
perrierjouet has joined #ruby
reset has joined #ruby
comet23 has joined #ruby
pandabot has quit [Read error: Software caused connection abort]
pandabot has joined #ruby
repo has quit [Read error: Software caused connection abort]
repo has joined #ruby
sagax has joined #ruby
Linux_Kerio has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
invisiblemonki has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<invisiblemonki> wow, this room's bangin.
invisiblemonki has quit [Quit: Konversation terminated!]
Sankalp has quit [Ping timeout: 260 seconds]
jpn has quit [Ping timeout: 252 seconds]
Sankalp has joined #ruby
peirik_ has joined #ruby
peirik_ has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
jtperreault has quit [Read error: Software caused connection abort]
wra1th has left #ruby [#ruby]
wra1th has joined #ruby
jtperreault has joined #ruby
wra1th has quit [Quit: wra1th]
jpn has quit [Ping timeout: 252 seconds]
comet23 has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
perrierjouet has quit [Ping timeout: 260 seconds]
barak has joined #ruby
sixpiece has quit [Remote host closed the connection]
swaggboi has quit [Ping timeout: 260 seconds]
perrierjouet has joined #ruby
jpn has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
D_A_N has quit [Quit: leaving]
grokify has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
sagax has quit [Read error: Connection reset by peer]
sagax has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
jpn has joined #ruby
otisolsen70 has joined #ruby
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
barak has quit [Quit: Leaving]
sam113101 has quit [Remote host closed the connection]
sam113101 has joined #ruby
aindilis_ has joined #ruby
aindilis has quit [Ping timeout: 268 seconds]
peirik_ has joined #ruby
kaivai has quit [Ping timeout: 272 seconds]
kaivai has joined #ruby
peirik_ has quit [Ping timeout: 246 seconds]
Linux_Kerio has quit [Ping timeout: 248 seconds]
peirik_ has joined #ruby
teclator has joined #ruby
peirik_ has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
grokify has quit [Remote host closed the connection]
otisolsen70 has quit [Read error: Connection reset by peer]
otisolsen70 has joined #ruby
Furai has quit [Quit: WeeChat 3.7.1]
sagax has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
peirik_ has joined #ruby
peirik_ has quit [Ping timeout: 246 seconds]
sagax has joined #ruby
Furai has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
nmollerup has quit [Quit: Leaving]
nmollerup has joined #ruby
kerunaru has joined #ruby
dionysus69 has joined #ruby
bhaak has quit [Ping timeout: 248 seconds]
grokify has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
teclator has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
bhaak has joined #ruby
jpn has joined #ruby
barak has joined #ruby
gr33n7001 has quit [Quit: WeeChat 3.7.1]
kerunaru has quit [Ping timeout: 260 seconds]
kerunaru has joined #ruby
gr33n7007h has joined #ruby
reset has quit [Quit: reset]
walez has joined #ruby
jpn_ has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
infinityfye has joined #ruby
Nowaker has quit [Remote host closed the connection]
grokify has joined #ruby
Nowaker has joined #ruby
bhaak has quit [Ping timeout: 260 seconds]
bhaak has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #ruby
D_A_N has joined #ruby
jpn_ has quit [Ping timeout: 246 seconds]
Na_Klar has joined #ruby
<Na_Klar> Okay, I have a very complicated issue: I need to understand how executing code from "ruby --" is exactly different from calling "ruby file.rb". I have some bytecode which I load to the interpreter and that very weird issue appeared, that when I load the bytecode from a file X.rb, like "ruby X.rb", then this code runs fine. It all runs within a console and my code system()'s another program which writes to the framebuffer and then gets
<Na_Klar> terminated; afterwared my console program is showed again. .. but: when I load the X.rb loader not directly but via "ruby -- < X.rb" it all works fine BUT that when the other program is called and writes to the framebuffer, it is not able to free the framebuffer again and its output is stuck over my console program. The only difference is just how I call the bytecode. "ruby X.rb" is fine "ruby -- < X.rb" is not. How can that even be??
<Na_Klar> ah, forget the bytecode. Even when I call the script as script (not bytecode) with "ruby script.rb" it runs fine (the other program can free the framebuffer) but when I call it via "ruby -- < script.rb" the framebuffer is stuck. So, it is not related to bytecode at all. What can that be with "ruby --" that hinders a system call to free the framebuffer?
<Na_Klar> I also have an error message from the program which gets called and is stuck: "can't manage access.nd / other processes can write to display / can't clean up". .. ofc this warnings do not appear when calling the script (which calls that error returning program) with "ruby script.rb".
<Na_Klar> s/access.nd/access/
<wnd> I'm guessing having Ruby read the script from stdin affects fd 0/1/2 of whatever you run from Ruby
<Na_Klar> wnd: I guess you mean fb 0/1..?
<wnd> stdin, stdout, stderr
<Na_Klar> ah file descriptor .. but how is that related to the fb gets stuck?
<Na_Klar> every other i/o operation works fine.
<wnd> Too many unknowns (to me). Maybe the application calls fcntl and expects it to behave like true stdin.
TomyWork has joined #ruby
<wnd> by true stdin I mean that of your terminal, or whatever it is
<Na_Klar> wnd: the other program just reads a file from the disk and displays its contents. no user interaction.
<wnd> all that I'm saying is that the fds of Ruby are probably set up differently between "ruby foo.rb" and "ruby <foo.rb", and that could make all the difference
<Na_Klar> wnd: that could be ofc.
<wnd> To be honest I don't know how an application gains access to the framebuffer, not to mention the application you use. For all I know, it could involve stdin/stdout to get some details like fb dimensions, and control its features.
<wnd> ok sure, there might be /dev/fb#, but you get my point
<wnd> Also might be that this isn't actually related to framebuffer at all but other other features that DO depends in stdin/out/err. Too many unknowns.
<Na_Klar> you can easliy reproduce the issue: test.rb -> a = `fbi somepicture.png`. call "ruby test.rb" and you can "q" to quit fbi, run "ruby -- < test.rb" and fbi crashes immediately after displaying the image.
kerunaru has quit [Ping timeout: 260 seconds]
kerunaru has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #ruby
Nowaker has quit [Ping timeout: 260 seconds]
Nowaker has joined #ruby
cartdrige has joined #ruby
<adam12> morning
kerunaru has quit [Ping timeout: 260 seconds]
grokify_ has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
<wnd> Crashing at the stage when input would be read sounds like a problem with the input fd, like stdin, perhaps. Maybe stdin is eof by the time Ruby finished reading the code from it, and fbi doesn't have a readable fd for input.
<Na_Klar> that sounds like a possible explanation .. but not solveable, I guess.
crax23 has joined #ruby
Linux_Kerio has joined #ruby
cartdrige has quit [Read error: Connection reset by peer]
jpn has joined #ruby
Y05hito__ has joined #ruby
<wnd> what if you open /dev/tty in Ruby for fbi?
crax23 has quit [Ping timeout: 252 seconds]
<wnd> something like pid = Process.spawn('fbi', 'somepicture.png', in: '/dev/tty'); Process.wait(pid)
swaggboi has joined #ruby
<Na_Klar> wow
<Na_Klar> that seems to work ..
<Na_Klar> I also tried `fbi somepicture.png &` with no success. how did you even come up with Process.spawn in dev/tty?
kerunaru has joined #ruby
<wnd> When you do "ruby <foo", you use stdin for code input (and have it eof by the time Ruby starts executing code), making it unsuitable for interactive use. The same fd is used for child processes, unless explicitly stated otherwise. You also wrote that executaion fails at stage when input would be expected. So, if default input is closed, lets try opening another.
<Na_Klar> ah I see .. that was good thinking. And it saved me a lot of trouble. So thank you very much. Much appreciated.
<wnd> you're welcome
<Na_Klar> Btw. can I catch stdout stderr from Process somehow?
<Na_Klar> Prcess.spawn('cmd', 'param', in: 'where', [:out, :err])?
<Na_Klar> nvm, got it
grokify_ has quit [Remote host closed the connection]
kerunaru has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
Sankalp has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
grokify has joined #ruby
sam113101 has quit [Ping timeout: 260 seconds]
kerunaru has joined #ruby
grokify has quit [Remote host closed the connection]
Sankalp has joined #ruby
kerunaru has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
Sankalp has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
grokify has quit [Remote host closed the connection]
walez has quit [Ping timeout: 246 seconds]
Sankalp has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
stirl has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
wra1th has joined #ruby
wra1th has left #ruby [#ruby]
wra1th has joined #ruby
wra1th has left #ruby [#ruby]
wra1th has joined #ruby
wra1th has left #ruby [#ruby]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
_ht has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
wand has quit [Ping timeout: 255 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
wand has joined #ruby
grokify has quit [Remote host closed the connection]
walez has joined #ruby
Na_Klar has left #ruby [https://quassel-irc.org - Komfortabler Chat. Überall. ]
redwr1 has joined #ruby
redwr1 has quit [Client Quit]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
willfish has joined #ruby
grokify has joined #ruby
crax23 has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
Y05hito__ has quit [Ping timeout: 248 seconds]
crax23 has quit [Ping timeout: 260 seconds]
willfish has quit [Ping timeout: 252 seconds]
sam113101 has joined #ruby
cxl has quit [Ping timeout: 248 seconds]
___nick___ has joined #ruby
cxl has joined #ruby
idkwtf has joined #ruby
<idkwtf> Sup y'all?
walez has quit [Ping timeout: 248 seconds]
howdoi has joined #ruby
<leftylink> I'm bad with social cues. when someone says "sup?", will they find it weird if you also say "sup?" instead of answering the question?
<leftylink> and/or, if you actually answer the question, do they expect you to thereafter ask them the same (or similar) question
__ht has joined #ruby
<idkwtf> heheh
<idkwtf> That's a good question!
_ht has quit [Ping timeout: 260 seconds]
__ht is now known as _ht
hightower3 has quit [Remote host closed the connection]
hightower3 has joined #ruby
barak has quit [Quit: WeeChat 3.7.1]
willfish has joined #ruby
<adam12> idkwtf: heyo
<adam12> leftylink: sup
<idkwtf> Howdy!
<idkwtf> Wait for it
crax23 has joined #ruby
<weaksauce> leftylink yeah it's just a generic greeting in america
cartdrige has quit [Ping timeout: 260 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
grokify has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
grokify has quit [Ping timeout: 260 seconds]
walez has joined #ruby
<idkwtf> adam12: Hoping https://bsdports.net/ can become OpenBSD's official ports index
<idkwtf> Would be awesome if I could make gemdocs.org in a similar fashion
<idkwtf> I picture using animejs.com to make the Gemdocs logo sparkle in a subtle manner. I think it could be really nice
<idkwtf> bsdports uses stimulusreflex (https://www.colby.so/posts/live-search-with-rails-and-stimulusreflex), just gotta fix this bug first
r3m has quit [Quit: WeeChat 3.8-dev]
<idkwtf> the end goal is to have the entire www.openbsd.org website using ruby.. which would be great publicity for us as well :fingers crossed:
r3m has joined #ruby
reset has joined #ruby
<idkwtf> if gemdocs and http://man.openbsd.org/ could share a similar layout, that would be so awesome
<idkwtf> it could also give huge amounts of traffic to your hosting biz
grokify has joined #ruby
<adam12> idkwtf: Cool that you got it launched.
ur5us has joined #ruby
sam113102 has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
<idkwtf> Cheers
___nick___ has quit [Ping timeout: 260 seconds]
sam113101 has quit [Ping timeout: 260 seconds]
cxl has quit [Ping timeout: 260 seconds]
sam113102 is now known as sam113101
___nick___ has joined #ruby
cxl has joined #ruby
TomyWork has quit [Remote host closed the connection]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
axsuul has quit [Quit: 👋]
axsuul has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 252 seconds]
___nick___ has quit [Ping timeout: 248 seconds]
idkwtf has quit [Changing host]
idkwtf has joined #ruby
_ht has quit [Quit: _ht]
stirl has quit [Quit: stirl]
crankharder has joined #ruby
crankharder has quit [Client Quit]
erGoline has joined #ruby
erGoline has quit [Client Quit]
erGoline has joined #ruby
infinityfye has quit [Quit: Leaving]
<erGoline> Hello :) I'm trying to rewrite in ruby this code https://github.com/nostr-protocol/nips/blob/master/04.md but I'm stuck with the shared cipher part, I tried to adapt this gist https://gist.github.com/sabril/8295895 but I'm facing a problem with the public key length: OpenSSL::PKey::EC::Point.new needs a 130byte key while mine is 64byte. Any help, please?
erGoline has quit [Remote host closed the connection]
willfish has quit [Ping timeout: 260 seconds]
<jdmark> ruby is just a simple language to manipulate databases correct?
erGoline has joined #ruby
<leah2> "just"?
<jdmark> entry level programming language, etc
<leah2> it's beginner friendly i guess, but you can write large apps with it
<jdmark> what is some good entry level learning material?
<jdmark> for people new to programming
<leah2> someone else will have to chime in, i'm not familiar with the current books
erGoline has quit [Read error: Connection reset by peer]
<weaksauce> jdmark why the lucky stiff wrote a book that is more story oriented and a lot of people like it
<weaksauce> it's free online http://poignant.guide/
<weaksauce> if that is too flowery the other one that is generally well received is programming ruby (aka the pickaxe book)
<weaksauce> more of a traditional programming book
<leah2> but more for people who can program i think
<weaksauce> i'll take a look at my copy... i thought it was from the basics
stirl has joined #ruby
otisolsen70 has quit [Quit: Leaving]
<weaksauce> yeah i guess it's a bit more advanced than complete, absolute beginner
crax23 has joined #ruby
<weaksauce> but you can test drive a few chapters of it
grokify has joined #ruby
Y05hito__ has quit [Ping timeout: 252 seconds]
<leah2> it's a good book for learning ruby, i learned ruby from it ;)
grokify has quit [Ping timeout: 260 seconds]
supay has quit [Quit: Connection closed for inactivity]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
<adam12> It will be nice when the new Pickaxe is out.
<adam12> Other than Jeremy's book, which is intermediate/advanced, I'm not sure of any newbie Ruby books out as of late. Hopefully pickaxe fills that. It's the one I learned Ruby from.
grokify has quit [Ping timeout: 248 seconds]
<weaksauce> it's not too hard of a language to pick up really
<weaksauce> at least the basics
<weaksauce> eloquent ruby is my favorite but it's a bit too terse for completely new programmers
<adam12> Eloquent Ruby is good. I think it's out of print?
<adam12> (which means nothing but some people prefer dead-tree)
walez has quit [Ping timeout: 260 seconds]
idkwtf has quit [Quit: leaving]
grokify has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
<weaksauce> yeah it's probably still available used though
Linux_Kerio has quit [Ping timeout: 248 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Y05hito__ has joined #ruby
wra1th has joined #ruby
crax23 has quit [Ping timeout: 260 seconds]
Y05hito__ has quit [Ping timeout: 248 seconds]
Rounin has quit [Ping timeout: 246 seconds]