<ox1eef>
i'd probably prefer to do it in ruby because it essentially requires calling the rust compiler.
shokohsc4 has joined #ruby
shokohsc has quit [Ping timeout: 255 seconds]
shokohsc4 is now known as shokohsc
Rounin has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
maroloccio has quit [Quit: WeeChat 3.0]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
cocalero has quit [Read error: Connection reset by peer]
cocalero has joined #ruby
TrufflePump has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
ur5us has quit [Ping timeout: 244 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
_ht has joined #ruby
Sankalp has quit [Ping timeout: 244 seconds]
Sankalp has joined #ruby
typeof[panda] has joined #ruby
gproto23 has joined #ruby
_ht has quit [Remote host closed the connection]
Sankalp has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
Rounin has joined #ruby
Sankalp has joined #ruby
jpn has quit [Ping timeout: 258 seconds]
perrierjouet has quit [Ping timeout: 246 seconds]
seabre has quit [Ping timeout: 240 seconds]
typeof[panda] has quit [Quit: Client closed]
perrierjouet has joined #ruby
seabre has joined #ruby
legahc has quit [Quit: %bye%]
legahc has joined #ruby
jpn has joined #ruby
Sankalp has quit [Ping timeout: 244 seconds]
Sankalp has joined #ruby
dionysus69 has joined #ruby
papz has joined #ruby
TrufflePump has quit [Ping timeout: 272 seconds]
coolshaurya has quit [Quit: You have been kicked for being idle]
Guest72 has joined #ruby
<Guest72>
hello
<Guest72>
anyone on?
papz has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 250 seconds]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 258 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
jhawthorn_ has joined #ruby
jhawthorn has quit [Ping timeout: 260 seconds]
weaksauce has quit [Ping timeout: 240 seconds]
<Guest72>
hello?
<leftylink>
you already said that
<leftylink>
well, I understand I made a useless observation that provided no actionable information
<leftylink>
what I should say instead is that there is no need to repeat what was already said. instead it would be good to simply say one's ruby-related statement or question
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Sankalp has quit [Ping timeout: 258 seconds]
Sankalp has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 244 seconds]
<ox1eef>
good morning, how are you leftylink
Guest18 has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
<Guest18>
Hello
FetidToot2 has joined #ruby
<Guest18>
One question is why there is the project in github.com, they name Module , Kernel as a module name.
<Guest18>
I mean that those names are built in symbols. why they still name in that way.
FetidToot has quit [Ping timeout: 258 seconds]
FetidToot2 is now known as FetidToot
Guest18 has quit [Quit: Client closed]
Guest18 has joined #ruby
FetidToot5 has joined #ruby
FetidToot has quit [Ping timeout: 250 seconds]
FetidToot5 is now known as FetidToot
jpn has joined #ruby
Guest18 has quit [Ping timeout: 252 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
Guest72 has quit [Quit: Client closed]
weaksauce has joined #ruby
weaksauce has quit [Ping timeout: 246 seconds]
Ziyan has joined #ruby
<Ziyan>
Has anyone required to enable/disable the proxy of a Faraday connection dynamically on runtime?
<adam12>
Morning
<adam12>
Ziyan: No. Are you talking about Faraday detecting your system's proxy settings?
<Ziyan>
I am using the oAuth2 gem to wrap an API. I need some of the requests proxied through a service called VeryGoodSecurity (VGS). So it's like this. I want to get a token, I use it without a proxy. But I need to make a payment, then I need to make it through VGS proxy which in turn will use tokens in the request and replace it with lets say Credit Card Number.
<Ziyan>
adam12 good morning.
<adam12>
Ziyan: What does VGS use for proxy? Are they a SOCKS like proxy?
<Ziyan>
adam12 That is a good question. Give me a sec.
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
<Ziyan>
adam12 I think its just a HTTPS proxy.
<adam12>
Ziyan: I'm guessing it's SOCKS then.
<Ziyan>
So when using curl I would use some thing like `curl <url> -k -X POST -x $USERNAME:$PASSWORD@<vault>.sandbox.verygoodproxy.com:8080 -H ...`
<Ziyan>
I am thinking that the proxy can be set and unset dynamically. THere is a #proxy= method.
<Ziyan>
adam12 an unrelated question, have you noticed that the IRC channels for Ruby and Rails are low in activity? Where have the discussions moved? I remember these channels more active. May be on Reddit because IRCs are not cool for the new generations? 🤭
jpn has joined #ruby
<adam12>
Ziyan: I'm not in the Rails channel so I couldn't tell you. At least with IRC in general, the Freenode/Libera split last year didn't help things.
<adam12>
Ziyan: I find the conversation in here ebbs and flows. Some days it's hopping, some days it's radio silent.
<adam12>
Ziyan: There's a Discord as well, that is fairly active.
<rapha>
we're having good fun tho :)
<adam12>
Ziyan: I prefer IRC. When I look at the Discord server, there are a dozen channels with a bunch of noise. It's hard to follow conversation (IMHO) and I ignore it most of the time. IRC doesn't have that issue for me.
<adam12>
Ziyan: I find this channel to have higher quality conversations most of the time. I presume it's due to the age of users IRC attracts, and the "barrier of entry" for joining IRC in general.
<adam12>
rapha: We sure are ;P
<adam12>
the r/ruby subreddit is fine, but still low activity.
jpn has quit [Ping timeout: 240 seconds]
<Ziyan>
adam12 IRC is the best, sad to see them decline. But I think it was always focused on people with some experience. The CTO of Orpiva.ai asked me to always follow the IRC to learn new things. I think I need to do the same to my code-lings 🤭.
<Ziyan>
rapha we do have fun
<adam12>
I wish we stuck with IRC more. You can join with Matrix through the bridge and it could all be unified.
<adam12>
We used to have an IRC channel for my region back in the 90s-early 00's, and I met hundreds of people IRL off it. It was a great time, and I'm not sure anything since then has replaced it. Facebook was more for people you already knew.
<adam12>
Ziyan: Yeah! I I don't use it because I maintain my own Lounge client, but I think jhass[m] is using it.
jpn has joined #ruby
<adam12>
I use Matrix for other chats tho.
weaksauce has joined #ruby
<ox1eef>
IRC is great, the best "social media". every modern recarnation sucks.
<nebiros>
irc is the best thing for communities, specially since new communities choose slack over irc, like cloud foundation, and many others
<nebiros>
a disgrace
<ox1eef>
i have a theory that irc is so great because there is not really a personal identity between a few ascii chars, there's no photos, no celebrities, no popular and unpopular (eg follower counts), it's just focused dicussion for the most part.
<ox1eef>
s/between/besides/
<ox1eef>
where as irc revolves around topics, social media revolves around personalities
<nebiros>
agree
weaksauce has quit [Ping timeout: 256 seconds]
<rapha>
Ziyan: don't declare IRC dead yet. Same as Ruby ;-)
<rapha>
ox1eef: found some of my best friends on IRC. The lack of colourful, distracting images and what not also works to bring out the other people's characters a little more clearly sometimes.
<ox1eef>
yeah, and not once did i see race, gender, or anything else be an issue.
<ox1eef>
social media is so political
<ox1eef>
that's my last word on it :)
<Ziyan>
nebiros yah, many choose Slack, it can be public in an IRC 🤷♂️
<nebiros>
it should be libera, ofc, I remember the time where all open source and every other community was here
<Ziyan>
ox1eef Unix/Linux is easy, nobody gets it a problem. I think IRC is too simple for them. They want all the distractions in the world.
<Ziyan>
IRCs are efficient, green, save the planet type 🤭
<Ziyan>
We must get Greta Thunberg to market it 🧐
<ox1eef>
Linux is simple until a geek comes along, and makes it a complicated mess, after mastering the simple design he/she replaces it with one only they can understand, and i truly this is intentional.
<ox1eef>
truly believe*
<Ziyan>
ox1eef 😂
<ox1eef>
systemd is a really good example
<Ziyan>
ox1eef couldn't agree more
<Ziyan>
Guys, I will be signing off for now. I got a doctor's consult in 25min. I am in the parking lot. Got to go.
<Ziyan>
nice chatting
<ox1eef>
same to you
weaksauce has joined #ruby
weaksauce has quit [Ping timeout: 246 seconds]
nmollerup has quit [Quit: Leaving]
bit4bit has joined #ruby
bit4bit has quit [Ping timeout: 250 seconds]
micah has joined #ruby
<micah>
is there a way to install binary versions of gems, instead of having to build them each time?
Guest18 has joined #ruby
TrufflePump has joined #ruby
<adam12>
micah: If there's one shipped for your ruby version and platform, sure.
<adam12>
micah: see nokogiri for a good example of this.
<micah>
adam12: it seems i'm building nokogiri each time, and it takes forever
<micah>
its supposed to automatically use the binary version, if its available?
<adam12>
micah: what version of nokogiri? what version of ruby? what platform architecture?
<adam12>
Yes.
<micah>
adam12: this is a container based off of debian stable on an x86_64 architecture, using ruby2.7
<adam12>
IMHO, I'd separate the gem install nokogiri into it's own command.
<telenor>
lol
<telenor>
adam12: I did the same
<adam12>
And see if it's actually Building nokogiri. Because the messaging says it's installing the binary version.
<telenor>
Building Nokogiri should have a chapter of its own :/
weaksauce has quit [Ping timeout: 255 seconds]
Tomte has joined #ruby
<telenor>
Luckily though, in my experience, the Nokogiri devs are really forthcoming and will reply to your GitHub issues almost instantly :thumbsup:
<adam12>
telenor: building nokogiri has been a non-issue for me for a very long time. It usually just installs the binary version and go.
Tomte has quit [Remote host closed the connection]
<telenor>
Cool!
<adam12>
time sudo docker run --rm -it ruby:2.7 /usr/bin/env gem install nokogiri
<adam12>
real0m2.131s
bit4bit has joined #ruby
<adam12>
Does `gem install` work parallelly? I don't remember. I know bundler does, if given the option.
<adam12>
I'm still guessing the "Building extension" message is for another dependency.
Guest18 has quit [Ping timeout: 252 seconds]
Guest18 has joined #ruby
<telenor>
On OpenBSD, you just have to specify --use-system-libraries, and make sure you `pkg_add libiconv libxml libxslt` prior. I was fooled into thinking you had to build it from source :shrug:
<adam12>
micah: My guess is your building `racc`, not `nokogiri`.
<Guest18>
Is it the rexml lib old story?
<adam12>
Guest18: Slower than Nokogiri, but a stdgem so available without almost zero issue.
<adam12>
Guest18: Parsing XML is usually fraught with bugs (hence why nokogiri/libxml2 are a steady stream of cve reports), and I think rexml suffers the same.
<Guest18>
I have a ten year older of ruby book in my hand to go through.
<adam12>
micah: I confirmed this by installing a gem with --verbose. It says it's building extensions, _then_ says it successfully installed. In your logs, it says it Installed Nokogiri, then Installing extensions (for racc), then installing racc.
<adam12>
Guest18: rexml is still maintained.
<Guest18>
Okay. Thanks.
<micah>
adam12: ok, so there is probably not a binary version of racc available?
<adam12>
micah: That's correct.
<adam12>
bbl. lunch.
<micah>
adam12: huh, racc is written in ruby
<micah>
i guess maybe library bindings
Guest18 has quit [Quit: Client closed]
Guest72 has joined #ruby
<Guest72>
TracePoint.new(:call) { |tp| p [tp.path, tp.lineno, tp.event, tp.method_id] }
<Guest72>
Hello, so the p in this code redirects to stdout
<Guest72>
What other options for redirection are there?
<Guest72>
Pleas
<Guest72>
e
Guest18 has joined #ruby
Guest18 has quit [Quit: Client closed]
weaksauce has joined #ruby
polishdub has joined #ruby
weaksauce has quit [Ping timeout: 255 seconds]
<adam12>
Guest72: Write to the device directly. $stderr.puts
sagax has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
cocalero has joined #ruby
bit4bit has quit [Ping timeout: 276 seconds]
cocalero has quit [Ping timeout: 258 seconds]
<Guest72>
ohh ok thanks
Guest72 has quit [Quit: Client closed]
jpn has joined #ruby
jpn has quit [Ping timeout: 258 seconds]
jpn has joined #ruby
fef has joined #ruby
bit4bit has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
jpn has quit [Ping timeout: 276 seconds]
jpn has joined #ruby
_ht has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
jpn has joined #ruby
weaksauce has quit [Ping timeout: 256 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
weaksauce has joined #ruby
TomyWork has quit [Remote host closed the connection]