havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.1, 3.1.3, 3.0.5, 2.7.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
r3m has quit [Quit: WeeChat 3.9-dev]
r3m has joined #ruby
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
tuxcrafter74 has quit [Quit: Client closed]
moldorcoder7 has quit [Ping timeout: 246 seconds]
tuxcrafter74 has joined #ruby
nicholas_ has joined #ruby
nicholas_ has quit [Client Quit]
hd1 has joined #ruby
Linux_Kerio has quit [Ping timeout: 252 seconds]
aestheti1 has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
hd1 has quit [Quit: Connection closed]
<sam113101> is ruby on rails still being used?
<weaksauc_> yes
<myappie> sam113101: hell yeah
<ox1eef_> myappie: Cinch is not maintained anymore, and is probably not compatible with Ruby3.
<myappie> hmmm
<adam12> sam113101: What makes you think it wouldn't be?
<weaksauc_> shopify is going big on rails still
<weaksauc_> and pouring a lot of money into it
<weaksauc_> with hotwire i think there will be a resurgence of rails stuff
<myappie> dontforget stimulusreflex.com
<weaksauc_> full fix
<myappie> oooh nice cheers
<weaksauc_> there might be one more commit before that on that person's repo
<myappie> excellent
<ox1eef_> I guess that means Ruby doesn't have an IRC library that's actively maintained anymore :(
<weaksauc_> yeah there is rbot
<weaksauc_> but i don't know how it compares
<myappie> hmmm
<weaksauc_> the maintainer is a go person now
<myappie> im mainly trying to get some conversational AI going
<myappie> irc, snapchat, tinder etc.
<myappie> its aim is to be silly and flirty
<ox1eef_> lol
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
<adam12> ox1eef_: I always felt the libraries for IRC bots in Ruby were always super heavy. That said, I never actually _used_ one in anger, so maybe I was off base?
<ox1eef_> Yeah, rbot appears heavy. Cinch was good, and light but similar to rbot the developer left for Go.
caedmon has joined #ruby
<weaksauc_> isaac is light but also abandoned a long time ago
<weaksauc_> definitely way more barebones than cinch
<ox1eef_> Indeed. IIRC cinch was born from isaac.
<weaksauc_> ah would make sense
<weaksauc_> realistically cinch is fine too as it is
<weaksauc_> just needs to be forked
<ox1eef_> Yep, it should be usable through a fork.
<myappie> any idea how to integrate cinch with this nlpcloud.io chatbot? https://pastebin.com/EyR9qJxE
<ruby[bot]> myappie: as I told you already, please use https://gist.github.com
<myappie> i dont understand its syntax...%{...} wut
<myappie> i got a nice def transform_to_slang(sentence, slang) to plug into it afterwards though
ua_ has quit [Read error: Connection reset by peer]
ua_ has joined #ruby
aestheti1 has quit [Ping timeout: 246 seconds]
razetime has joined #ruby
aestheti1 has joined #ruby
<weaksauc_> myappie %{} is just shorthand for ["each", "argument", "space", "delimited"]
<weaksauc_> oh i thought it was %w{}
caedmon has quit [Ping timeout: 255 seconds]
<myappie> hmmm
<weaksauc_> %{} is string
<weaksauc_> %w{} is the above
<adam12> Could always email Dom if you wanted to take over Cinch fork maybe...
<adam12> Oh, nevermind.
<weaksauc_> ?
<adam12> Last commit mentions forking and not accepting new maintainers. I presume that means that cinchrb/cinch wouldn't be transferred to someone willing to maintain it.
gr33n7007h has quit [Ping timeout: 268 seconds]
<myappie> i probably could..
<weaksauc_> seems like a curious move
<weaksauc_> i guess they fear scammer taking it over?
<adam12> I guess. Maybe it's reputation based.
gr33n7007h has joined #ruby
<adam12> I'd be worried about giving ownership to a gem and then being flamed for stealing credentials or something else nefarious.
<weaksauc_> yeah
<weaksauc_> understandable
<weaksauc_> a shame it was done without any ceremony and search for a suitable maintainer with some credibility
<weaksauc_> but understandable
<weaksauc_> maybe it's time to fork it and make cinchcinchcinch
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
<myappie> ooooooooooook u guys are gonna love this
<myappie> https://clbin.com/yywga thoughts? :)
RapBot4000 has joined #ruby
<myappie> RapBot4000: hi
<myappie> is your brain working?
<weaksauc_> it does not seem so
<myappie> :(
<myappie> ah, the method must be defined beforethe botstuff
<myappie> also, have a funny idea
RapBot4000 has quit [Remote host closed the connection]
RapBot4000 has joined #ruby
<myappie> hey RapBot4000
RapBot4000 has quit [Remote host closed the connection]
RapBot4000 has joined #ruby
<myappie> RapBot4000: test
* myappie uses the power of pry
RapBot4000 has quit [Remote host closed the connection]
RapBot4000 has joined #ruby
<myappie> getting there
goldfish has quit [Ping timeout: 252 seconds]
eddof13 has joined #ruby
RapBot4000 has quit [Remote host closed the connection]
RapBot4000 has joined #ruby
<myappie> hey
<RapBot4000> What can I do for you?
<myappie> can u talk more
<RapBot4000> What can I do for you?
<myappie> hellooo?
<RapBot4000> How can I help you today?
<myappie> RapBot4000: tell me a nice story
<RapBot4000> What can I help you with today?
eddof13 has quit [Client Quit]
RapBot4000 has quit [Remote host closed the connection]
RapBot4000 has joined #ruby
<myappie> now do your thing!
<myappie> RapBot4000?
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
<myappie> i gave it a huge list of cheesy pickup lines, with 50% chance it'll say them (after rephrasing them and slanging them)
niv has joined #ruby
RapBot4000 has quit [Remote host closed the connection]
Al2O3 has quit [Remote host closed the connection]
<myappie> btw, wouldnt it be nice with aliases like "gem delete", "gem remove", "gem uninstall" - i always forget the correct one
Al2O3 has joined #ruby
RapBot4000 has joined #ruby
<myappie> RapBot4000: ok
RapBot4000 has quit [Remote host closed the connection]
RapBot4000 has joined #ruby
<myappie> let me know if its too much
RapBot4000 has quit [Remote host closed the connection]
Al2O3 has quit [Quit: Al2O3]
<myappie> `JSON::ParserError: 859: unexpected token at ''` at https://clbin.com/L1AFT any chance you guys know what's wrong?
Al2O3 has joined #ruby
razetime has quit [Ping timeout: 255 seconds]
RapBot4000 has joined #ruby
<myappie> RapBot4000: what
RapBot4000 has quit [Remote host closed the connection]
RapBot4000 has joined #ruby
<myappie> ill make it join elsewhere, sorry for the noise
razetime has joined #ruby
caedmon has joined #ruby
RapBot4000 has quit [Remote host closed the connection]
razetime has quit [Ping timeout: 255 seconds]
sagax has quit [Excess Flood]
xhhux has joined #ruby
dviola has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
xhhux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
caedmon has quit [Ping timeout: 255 seconds]
jhass has quit [Ping timeout: 246 seconds]
jhass has joined #ruby
razetime has joined #ruby
polishdub has quit [Ping timeout: 260 seconds]
xhhux has joined #ruby
xhhux has quit [Client Quit]
Al2O3 has quit [Quit: Al2O3]
Al2O3 has joined #ruby
razetime has quit [Ping timeout: 252 seconds]
razetime1 has joined #ruby
razetime1 is now known as razetime
razetime has quit [Ping timeout: 268 seconds]
razetime has joined #ruby
razetime1 has joined #ruby
razetime has quit [Ping timeout: 248 seconds]
razetime1 is now known as razetime
teclator has joined #ruby
Linux_Kerio has joined #ruby
tuxcrafter74 has quit [Quit: Client closed]
teclator has quit [Ping timeout: 246 seconds]
xhhux has joined #ruby
xhhux has quit [Client Quit]
gonix has joined #ruby
teclator has joined #ruby
razetime has quit [Ping timeout: 248 seconds]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
dviola has quit [Ping timeout: 268 seconds]
dviola has joined #ruby
shokohsc67 has joined #ruby
shokohsc6 has quit [Ping timeout: 252 seconds]
razetime has joined #ruby
shokohsc67 is now known as shokohsc6
dviola has quit [Client Quit]
dviola has joined #ruby
_ht has joined #ruby
ule has quit [Ping timeout: 255 seconds]
ule has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
infinityfye has joined #ruby
dionysus69 has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
graywolf has joined #ruby
gr33n7007h has joined #ruby
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp has joined #ruby
teclator has joined #ruby
Sankalp has quit [Ping timeout: 248 seconds]
Sankalp has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
dionysus69 has quit [Quit: dionysus69]
KaitoDaumoto has joined #ruby
dionysus69 has joined #ruby
razetime has quit [Quit: See You Space Cowboy]
reset has quit [Quit: reset]
ule has joined #ruby
ule has quit [Changing host]
_aeris_ has joined #ruby
aeris has quit [Remote host closed the connection]
_aeris_ is now known as aeris
hightower2 has quit [Ping timeout: 255 seconds]
kinduff has quit [Remote host closed the connection]
kinduff has joined #ruby
kinduff has quit [Remote host closed the connection]
kinduff has joined #ruby
fibroc29 has joined #ruby
roshanavand has joined #ruby
hightower2 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
olspookishmagus has quit [Ping timeout: 246 seconds]
olspookishmagus has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #ruby
<ox1eef_> myappie: I guess that's why reason for pkg_add, pkg_info. They can be easily aliased to something else.
fibroc29 has quit [Ping timeout: 260 seconds]
polishdub has joined #ruby
szkl has joined #ruby
<myappie> ox1eef_: yep
razetime has joined #ruby
<sam113101> why am I getting "Your user account isn't allowed to install to the system RubyGems."?
<sam113101> I thought gems were installed in one's home folder by default
<myappie> yeah i always have to specify --user-install
<myappie> oughta be default no doubt
build58 has joined #ruby
<myappie> bundle config set path $HOME/.bundle/ too
roshanavand has quit [Ping timeout: 252 seconds]
<sam113101> did the default change at some point?
caedmon has joined #ruby
<sam113101> ooh I think I understand what changed
<myappie> good good
fercell has quit [Ping timeout: 255 seconds]
razetime has quit [Remote host closed the connection]
build58 has quit [Ping timeout: 246 seconds]
gonix has quit [Ping timeout: 246 seconds]
<ox1eef_> You can get GEM_HOME, and GEM_PATH. GEM_HOME will be where gems are installed, and GEM_PATH will be where Ruby looks for gems at runtime.
<ox1eef_> cat /home/0x1eef/.kshrc | grep GEM
<ox1eef_> export GEM_HOME="$HOME/.gems/"
<ox1eef_> export GEM_PATH="$GEM_PATH:$GEM_HOME"
<ox1eef_> This is what I use.
eddof13 has joined #ruby
hightower2 has quit [Ping timeout: 255 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
<myappie> ox1eef_: i remember a lot of back and forth with those paths but lately i haven't needed them. Here's my current setup: https://gist.github.com/basicfeatures/b73366006561af81ffbe35da4f8615a1
<myappie> (bundle config set path $HOME/.bundle/ etc. is in my main README)
<myappie> have you managed to setup ruby-pledge yet? that stuff is too advanced for me
<ox1eef_> Looks good, and probably makes more sense for a host environment. For general development I think GEM_HOME / GEM_PATH are easier to work with.
<ox1eef_> Negative. Most of the time I'm developing on FreeBSD.
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
<ox1eef_> I'm curious if pf_badhost could work on FreeBSD's implementation as well. Worth a try.
_aeris_ is now known as aeris
<ox1eef_> Do you use list_vpns to block all VPNs ? Why ?
<myappie> No I put that idea to the side for a while, as it ended up blocking all my Vultr IPs too
<myappie> It's just that i run a bunch of local sites where you'd only need VPN if you were to stalk my dating users or commit fraud on the marketplace
<myappie> FreeBSD good ol' memories
<ox1eef_> Alright. Makes sense.
<myappie> My gist btw misses those juicy relayd.conf, httpd.conf, rc.d/myapp etc. I'll let you know when I've had time to update
r3m has quit [Quit: WeeChat 3.9-dev]
r3m has joined #ruby
<myappie> looks like im gonna have to take up a loan to afford consulting from the falcon author, but that should benefit all of us. Async pg, websockets, redis etc. <3 falcon
<ox1eef_> Falcon is from the same guy who created async right?
<myappie> yup!
dionysus69 has joined #ruby
ox1eef_ has quit [Quit: WeeChat 3.7]
ox1eef_ has joined #ruby
<ox1eef_> myappie: I'm sure it is solid then. Haven't tried it myself.
<CharleyBates> which is the book here?
infinityfye has quit [Quit: Leaving]
gonix has joined #ruby
<adam12> CharleyBates: ?
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
<CharleyBates> adam12: Hello?
<CharleyBates> adam12: I was asking, if there is a book about ruby used by the channel.
<adam12> CharleyBates: Ah. There's a few. What's your experience level with Ruby?
<CharleyBates> adam12: 0
<adam12> CharleyBates: You can't go wrong with the Eloquent Ruby book.
<CharleyBates> adam12: I'm thinking of 'Everyday Scripting with Ruby
<adam12> CharleyBates: There's a new version of the Programming Ruby book (aka Pickaxe book) that's coming out. If you're interested in pre-releases of books, you can get it from pragprog.com.
<adam12> CharleyBates: That's a good one too, if it's the one I think it is.
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<CharleyBates> adam12: by Brian Marick
<CharleyBates> adam12: It looks very practical
<adam12> CharleyBates: I agree. I went through it a few years ago and there's some useful tidbits.
eddof13 has joined #ruby
<CharleyBates> adam12: Thank you.
<adam12> CharleyBates: Cheers.
donofrio has quit [Ping timeout: 255 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
donofrio has joined #ruby
eddof13 has joined #ruby
ur5us has joined #ruby
reset has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
roshanavand_ has joined #ruby
roshanavand_ has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 246 seconds]
<sphex> Pretty annoying how NoMethodError can create absolutely huge exception messages by inspecting the receiver. The program can hang for a long time and not produce any error messages when it's killed or trying to log too much, etc.
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
dionysus70 is now known as dionysus69
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
_ht has quit [Quit: _ht]
caedmon has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
<ox1eef_> sphex: Is this in IRB ? IRB.conf might be useful. I think Pry solves the problem with Pry.view_clip().
eddof13 has joined #ruby
eunjum has joined #ruby
<sphex> ox1eef_: it's with everything that prints the exception really. by calling #message or #to_s. if the objects in the instance variables are huge (or any inspectable objects they refer to because this is recursive), then the error message is huge. at least circular references seem to be eliminated though.
shokohsc62 has joined #ruby
shokohsc6 has quit [Ping timeout: 255 seconds]
shokohsc62 is now known as shokohsc6
<sphex> it's not that it's not useful to have the inspect output in the exception message but it can really grow out of control...
Demi_ is now known as Demi
teclator has quit [Ping timeout: 248 seconds]
roshanavand has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
roshanavand has quit [Remote host closed the connection]
infernix has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
roshanavand has joined #ruby
graywolf has quit [Ping timeout: 246 seconds]
roshanavand has quit [Client Quit]
PaulW2U has joined #ruby
tomtmym has quit [Quit: Gone.]
quazimodo has joined #ruby
eunjum has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ox1eef_> sphex: Indeed.
RapBot4000 has joined #ruby
<myappie> Howdy! Anybody mind helping RapBot4000 a little? https://gist.github.com/basicfeatures/d52cbcb073251ee3b1577669a4243952 -- when using nlpcloud-ruby's `chatbot()` to generate a respose to users, I get `wrong number of arguments (given 3, expected 1)` despite the documentation saying it's supposed to be 3: https://docs.nlpcloud.com/#chatbot-and-conversational-ai
<myappie> * response
<weaksauc_> myappie the api might want that but the ruby function is expecting one argument
<weaksauc_> where's the ruby api docs?
PaulW2U has left #ruby [WeeChat 3.9-dev]
gonix has quit [Ping timeout: 255 seconds]
<weaksauc_> pretty low quality library
<weaksauc_> no tests and the docs don't match the actual api
<weaksauc_> when in doubt read the source code though myappie
<weaksauc_> you'll see the correct usage
<ox1eef_> The method does take 3 arguments, but the last two are keyword arguments.
<ox1eef_> chatbot(m.message, context:, history: dialog_history) should do it. Assuming Ruby 3.1+.
<myappie> Guys, group hug. Thank you so much :-)
<ox1eef_> =]
roshanavand has joined #ruby