baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
<leitz> Anyone have insight into how Travis-CI the company is doing? I heard they were having issues. I love having code tested there but am pretty sure I can't keep them solvent.
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
fredolinhares has joined #ruby
<adam12> leitz: Haven't heard anything. I moved all my OSS Ruby to Circle, for no real reason other than using the Docker images vs Travis test matrix was easier.
<leitz> adam12, URL? Circle gives a lot of hits.
<leitz> And I loved that show, too.
<adam12> leitz: CircleCI. https://circleci.com/
<adam12> leitz: Here's one of my configs for Circle. https://github.com/adam12/rack-server-timing/blob/master/.circleci/config.yml
<adam12> I use Gitlab CI too, which is also great. I run my own worker.
<adam12> leitz: Most people don't get the show reference :)
<leitz> Yeah, GitHub being bought is a thing. I haven't built the energy or "want to" to move stuff to GitLab. Is GL still using Ruby?
<leitz> adam12, I'm old and watched some of the originals.
<adam12> leitz: Yeah, tho their worker/runner is in Golang.
<adam12> leitz: Pretty sure their frontend is Rails+Vue.
<leitz> Golang is pretty cool, just not as fun for me. I'd recommend people try it out.
<adam12> leitz: I write a mix of both, tho I definitely favour Ruby for a ton of stuff.
haivron has quit [Read error: Connection reset by peer]
<adam12> leitz: I'm sitting here staring at the ruby 2.0 shipped with CentOS7 and longing to write this tooling in Go to skip the dependency. But Go+XML parsing is pain and Ruby+XML is bliss.
<leitz> I finally found a programmer job (Perl) and have tried to get myself to like it. A friend recommended another look at Go for system programming and I was doing a little of that.
<leitz> adam12, I'm of the opinion that most anything in XML is a pain. Though Nokogiri really helps.
<adam12> leitz: I'm partial to Oga :)
<leitz> Being able to ship a binary and no dependencies is nerdvana.
<leitz> Haven't looked at Oga, just getting back into Ruby. Like, as of a couple hours ago. :)
fphilipe_ has joined #ruby
jenrzzz_ has joined #ruby
<adam12> leitz: wb.
<adam12> Oga has no dependency on libxml2, which admittedly has been less of an issue since nokogiri shipped with it, but it was a source of pain in the past.
<leitz> adam12, thanks. The other way to resolve dependencies seems to be "put it on a web page". I did that with some Go code and it was nice. Well, the effect was nice, the code leaves a lot to be desired. Someone on windows says it's broken but I don't have a Winderz box to test on.
jenrzzz has quit [Ping timeout: 245 seconds]
<leitz> Care for a funny non-Ruby story?
zacts has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<adam12> leitz: I'm all ears, lest the mods decide it's offtopic O_O
<leitz> They're usually pretty cool.
<leitz> I'm a Linux guy by trade. One day the security folks come in and require us to remove libxml2 from all RHEL boxes. I shook my head and said we didn't want to do that.
<leitz> Went back and forth but I was over ruled. Next time they told me to patch, I said. "Sorry, can't. Yum requires libxml2 and you made me remove it."
<leitz> They listened a little more after that.
nomoney4u has quit [Ping timeout: 252 seconds]
<adam12> LOL.
<adam12> libxml2 definitely has it security bugs. In competition with ImageMagick, I heard.
<leitz> I'm still in the "Apprentice Coder" stage of life, even after years of trying. Haven't gotten that deep into much.
<leitz> Most places I've worked wait for the vendor patches.
txdv has quit [Ping timeout: 245 seconds]
<adam12> Write some more Perl and then apply retroactively for your grey-beard, I used Linux when Slackware shipped on 14 floppies badge. Bonus points if it's a web app and you deploy it to cgi-bin.
<leitz> plbbgh...my first linux came with the book "Slackware Unleashed" and a hand me down single speed Mitsumi cdrom on a 386.
zacts has quit [Ping timeout: 246 seconds]
<leitz> That was my advanced time, I trained on teletypes and 5 bit code for my military service.
jenrzzz_ has quit [Ping timeout: 252 seconds]
joast has quit [Quit: Leaving.]
zacts has joined #ruby
<adam12> Well just remember: Not being able to read yesterdays Perl isn't a sign of sinility. It's just Perl.
bdonnahue has quit [Read error: Connection reset by peer]
<leitz> I...uh...won't say what crosses my mind. It makes others look bad. I'm just happy to realize Ruby is still there.
<leitz> It was funny seeing some of Ruby's roots, though.
tf2ftw has joined #ruby
jottr has joined #ruby
<adam12> The Perl portion definitely shows through in some parts.
<leitz> Yup. I was reading something else and I think some of the Smalltalk (?) roots showed as well. Of course, I could be off, it's been a while.
espinet has joined #ruby
espinet has quit [Client Quit]
zacts has quit [Quit: WeeChat 2.4]
jottr has quit [Ping timeout: 258 seconds]
doodlebug has quit [Quit: -a- Connection Timed Out]
doodlebug has joined #ruby
txdv has joined #ruby
fphilipe_ has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
zacts has joined #ruby
<leitz> My first big "get back into Ruby" project will be to break everything. I need to make some code into an actual module and convert it to a web based thingy. Last time I tried the module route ti took me two weeks to get all the tests to pass.
ur5us_ has joined #ruby
zacts has quit [Client Quit]
espinet has joined #ruby
espinet has quit [Client Quit]
skryking has joined #ruby
uplime is now known as Sherlime
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
espinet has joined #ruby
<baweaver> Yeah, it was ImageTragic
<leitz> While I'm breaking things, is "free_trader" a decent Gem/Module name?
<leitz> Hey baweaver!
Sherlime is now known as uplime
octos has quit [Read error: Connection reset by peer]
octos has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
haxx0r has joined #ruby
<leitz> Enjoy all. Nappy time for me.
leitz has quit [Quit: Leaving]
stryek has quit [Quit: Connection closed for inactivity]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
fphilipe_ has joined #ruby
digitalnomad91 has quit [Ping timeout: 258 seconds]
tdy has joined #ruby
esrse has joined #ruby
doodleb48 has joined #ruby
doodlebug has quit [Ping timeout: 245 seconds]
dsmythe has quit [Ping timeout: 246 seconds]
agent_white has quit [Quit: bbl]
Swyper has joined #ruby
fphilipe_ has quit [Ping timeout: 250 seconds]
regedit has quit [Quit: Connection closed for inactivity]
dsmythe has joined #ruby
jenrzzz has joined #ruby
tf2ftw has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jottr has joined #ruby
wald0 has quit [Quit: Lost terminal]
jottr has quit [Ping timeout: 268 seconds]
fphilipe_ has joined #ruby
scapegoa_ has joined #ruby
Swyper has quit [Remote host closed the connection]
Kestrel-029 has joined #ruby
scapegoa_ has quit [Client Quit]
Nicmavr has quit [Ping timeout: 245 seconds]
wald0 has joined #ruby
braincrash has quit [Quit: bye bye]
Guest46052 has joined #ruby
braincrash has joined #ruby
teej has quit [Quit: Connection closed for inactivity]
Guest46052 has quit [Quit: Bye for now!]
ramfjord_ has quit [Ping timeout: 244 seconds]
jmcgnh has joined #ruby
duderonomy has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
joast has joined #ruby
Swyper has joined #ruby
Swyper_ has joined #ruby
Swyper has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 246 seconds]
fphilipe has joined #ruby
fphilipe_ has quit [Ping timeout: 258 seconds]
moei has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
<syndikate> havenwood, I am creating a server of out of WebRick::HTTPServer, ( I will be looking into making use of unix sockets soon). So right now I want to write all the logs into a file. The logger should log things in detail like for example in rails app
brool has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
teej has joined #ruby
doodleb48 has quit [Read error: Connection reset by peer]
LtHummus has quit [Quit: ZNC 1.7.3 - https://znc.in]
LtHummus has joined #ruby
doodlebug has joined #ruby
fphilipe has joined #ruby
code_zombie has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 244 seconds]
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
noobineer has quit [Quit: Leaving]
ricekrispie2 has quit [Read error: Connection reset by peer]
Swyper_ has quit [Remote host closed the connection]
Swyper_ has joined #ruby
noobineer has joined #ruby
tdy has quit [Remote host closed the connection]
Swyper_ has quit [Ping timeout: 255 seconds]
noobineer has quit [Remote host closed the connection]
weteamsteve has quit [Read error: Connection reset by peer]
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
altigraph has joined #ruby
jenrzzz has joined #ruby
fredolinhares has quit [Quit: WeeChat 1.9.1]
jenrzzz has quit [Ping timeout: 246 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
tdy has joined #ruby
envex has quit [Ping timeout: 245 seconds]
espinet has quit [Read error: Connection reset by peer]
envex has joined #ruby
jottr has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 258 seconds]
haxx0r has quit [Remote host closed the connection]
mistym has quit [Quit: ZNC - http://znc.in]
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
altigraph has quit [Remote host closed the connection]
haxx0r has joined #ruby
Azure has quit [Quit: Oops.]
sauvin has joined #ruby
dellavg_ has joined #ruby
conta has joined #ruby
fphilipe has joined #ruby
houhoulis has quit [Remote host closed the connection]
ur5us_ has joined #ruby
conta has quit [Ping timeout: 258 seconds]
ur5us has quit [Ping timeout: 246 seconds]
conta has joined #ruby
ur5us_ has quit [Ping timeout: 252 seconds]
Swyper has joined #ruby
dsmythe has quit [Ping timeout: 246 seconds]
dsmythe has joined #ruby
Swyper has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
bamdads has joined #ruby
aupadhye has joined #ruby
bamdads has quit [Quit: bamdads]
bamdads has joined #ruby
bamdads has quit [Client Quit]
bamdads has joined #ruby
dionysus69 has joined #ruby
bamdads has quit [Remote host closed the connection]
kyrylo has joined #ruby
bamdads has joined #ruby
FancyEagle has quit [Ping timeout: 246 seconds]
bamdads has quit [Remote host closed the connection]
bamdads has joined #ruby
altigraph has joined #ruby
lightstalker has quit [Ping timeout: 245 seconds]
Dbugger has joined #ruby
lightstalker has joined #ruby
prestorium has joined #ruby
slackmare has joined #ruby
jenrzzz has joined #ruby
vondruch has joined #ruby
jottr has joined #ruby
dsmythe has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 255 seconds]
TomyWork has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
miskatonic has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
lxsameer has joined #ruby
Nebros has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
<Nebros> good morning guys! i'm really new on ruby and to be honestly, i need it now only for one thing, opal. now i have installed ruby for windowsn, but how to install opal? i really can't find the way. :(
Swyper has joined #ruby
jenrzzz has joined #ruby
bamdads has quit [Quit: bamdads]
bamdads has joined #ruby
bamdads has quit [Client Quit]
bamdads has joined #ruby
Swyper has quit [Ping timeout: 258 seconds]
bamdads has quit [Client Quit]
bamdads has joined #ruby
Dbugger has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
haxx0r53 has joined #ruby
blackmesa has joined #ruby
haxx0r has quit [Ping timeout: 246 seconds]
fphilipe has joined #ruby
bamdads has quit [Quit: bamdads]
bamdads has joined #ruby
altigraph has quit [Remote host closed the connection]
ovnimancer has joined #ruby
laaron has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Client Quit]
laaron has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Jonopoly has joined #ruby
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
michael_mbp has quit [Ping timeout: 244 seconds]
jefffrails35 has joined #ruby
kapilp has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
jefffrails35 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
michael_mbp has joined #ruby
relyks has joined #ruby
Ekho has quit [Quit: An alternate universe was just created where I didn't leave. But here, I left you. I'm sorry.]
Ekho has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Remote host closed the connection]
relyks has quit [Client Quit]
BH23 has joined #ruby
_joes_ has joined #ruby
alem0lars_ has joined #ruby
bamdads has quit [Quit: bamdads]
_joes_ has quit [Client Quit]
bamdads has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
tj_ has joined #ruby
dhaidhidh has quit [Ping timeout: 244 seconds]
DTZUZO has quit [Ping timeout: 255 seconds]
tj__ has joined #ruby
bamdads has quit [Quit: bamdads]
bamdads has joined #ruby
michael_mbp has quit [Ping timeout: 244 seconds]
tj_ has quit [Ping timeout: 258 seconds]
michael_mbp has joined #ruby
ellcs has joined #ruby
ur5us has joined #ruby
BH23 has quit [Ping timeout: 255 seconds]
BH23 has joined #ruby
RougeR has joined #ruby
<RougeR> hey
RougeR is now known as Guest62380
Guest62380 is now known as RougeRR
<RougeRR> can i ask if this is bas practice
<RougeRR> def ping
<RougeRR> ; @client.ping rescue false
<RougeRR> ; end
<RougeRR> bad*
<RougeRR> ignore the horrific styling, i was trying to show it on one line
Ai9zO5AP has joined #ruby
tj_ has joined #ruby
<RougeRR> i dont have control over the @client code and it raises an exception when the client is not pingab;e
jenrzzz has joined #ruby
tj__ has quit [Ping timeout: 258 seconds]
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
tj__ has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
bamdads has quit [Quit: bamdads]
tj_ has quit [Ping timeout: 268 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
fphilipe has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
silviu has quit [Remote host closed the connection]
silviu has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
conta has quit [Ping timeout: 255 seconds]
BH23 has quit [Ping timeout: 268 seconds]
agent_white has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
conta has joined #ruby
<ta> RougeRR: The ruby style guide thinks so - https://github.com/rubocop-hq/ruby-style-guide#dont-hide-exceptions - You can maybe use implicit begin-blocks instead... something like `def ping; @client.ping; rescue StandardError; false; end`
tj__ has quit [Ping timeout: 245 seconds]
ta is now known as ta_
arup_r has joined #ruby
arup_r has quit [Client Quit]
ta_ is now known as ta
<RougeRR> ta_, yeah ive seen that as well. and i know its not regarded as good style perse
<RougeRR> but what if its scoped within a block/method?
<RougeRR> most do seem to recommend the full block syntax, its just messy
Freshnuts has quit [Quit: Leaving]
tj__ has joined #ruby
BH23 has joined #ruby
noboruma has joined #ruby
DTZUZO has joined #ruby
tj__ has quit [Ping timeout: 255 seconds]
<ta> I've seen it used as a guard clause and it looks very clean
<ta> I'm personally a huge fan of the implicit begin-blocks
Ai9zO5AP has quit [Quit: WeeChat 2.4]
Ai9zO5AP has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
tj__ has joined #ruby
<RougeRR> ta, yeah i can see what you mean
<RougeRR> tbh i think its a mistake of whoever made these clients
<RougeRR> a ping request should raise an exception imo
<RougeRR> it should give a string response or true/false
esrse has quit [Ping timeout: 252 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
sagax has quit [Ping timeout: 246 seconds]
sagax has joined #ruby
quintasan has quit [Quit: quintasan]
quintasan has joined #ruby
quintasan has joined #ruby
quintasan has quit [Changing host]
quintasan is now known as Quintasan
tdy has quit [Ping timeout: 268 seconds]
zapata has quit [Quit: WeeChat 2.4]
mkroman has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
Swyper has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
fphilipe has joined #ruby
laaron has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
blackmesa has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
aupadhye has quit [Ping timeout: 248 seconds]
Nicmavr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
Nicmavr has joined #ruby
tj__ has quit [Remote host closed the connection]
blackmesa has quit [Quit: WeeChat 2.4]
aupadhye has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
nowhereman has joined #ruby
Swyper has quit [Remote host closed the connection]
fphilipe has joined #ruby
Kestrel-029 has joined #ruby
Inline has quit [Quit: Leaving]
Nicmavr has quit [Ping timeout: 245 seconds]
<VSpike> Was there a change in the way forking processes or IO pipes worked between 2.4.x an 2.5.x?
laaron has quit [Remote host closed the connection]
BH23 has quit [Ping timeout: 255 seconds]
laaron has joined #ruby
zapata has joined #ruby
laaron has quit [Remote host closed the connection]
BH23 has joined #ruby
laaron has joined #ruby
doodleb71 has joined #ruby
john_ has joined #ruby
<john_> hi
banisterfiend has joined #ruby
<john_> ddfs
doodlebug has quit [Ping timeout: 255 seconds]
nowhereman has quit [Ping timeout: 258 seconds]
john_ has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
nowhereman has joined #ruby
renich has quit [Ping timeout: 258 seconds]
laaron has joined #ruby
nowhereman has quit [Ping timeout: 258 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
doodleb71 has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
BH23 has quit [Ping timeout: 258 seconds]
doodlebug has joined #ruby
doodlebug has quit [Max SendQ exceeded]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
slackmare has quit [Ping timeout: 252 seconds]
duderonomy has quit [Ping timeout: 248 seconds]
duderonomy has joined #ruby
livcd has quit [Quit: Lost terminal]
jacksoow has quit [Quit: Saindo...]
jacksoow has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Ping timeout: 268 seconds]
tf2ftw has joined #ruby
doodleb22 has joined #ruby
kapilp has quit [Quit: Connection closed for inactivity]
tbuehlmann has quit [Remote host closed the connection]
leitz has joined #ruby
Dbugger has joined #ruby
ricekrispie has joined #ruby
Dbugger has quit [Client Quit]
Dbugger has joined #ruby
englishm has quit [Excess Flood]
conta has quit [Ping timeout: 246 seconds]
englishm has joined #ruby
Fusl has quit [Ping timeout: 256 seconds]
jcalla has joined #ruby
Fusl has joined #ruby
regedit has joined #ruby
BH23 has joined #ruby
jenrzzz has joined #ruby
doodleb22 has quit [Read error: Connection reset by peer]
BH23 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
doodleb8 has joined #ruby
doodleb8 has quit [Read error: Connection reset by peer]
BH23 has joined #ruby
doodleb77 has joined #ruby
ramfjord has joined #ruby
tj_ has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
SeepingN has joined #ruby
BH23 has quit [Ping timeout: 244 seconds]
matthewd has quit [Ping timeout: 250 seconds]
matthewd has joined #ruby
RougeRR has quit [Ping timeout: 252 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
iNs has quit [Remote host closed the connection]
cow[moo] has joined #ruby
iNs has joined #ruby
apparition has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bdonnahue has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
alem0lars_ has quit [Remote host closed the connection]
dsmythe has joined #ruby
jeremycw has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
zacts has joined #ruby
hays has quit [Ping timeout: 268 seconds]
tf2ftw has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tf2ftw has joined #ruby
mkroman has joined #ruby
tf2ftw_ has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
teclator is now known as teclator_virtual
TomyWork has quit [Remote host closed the connection]
zacts has quit [Quit: WeeChat 2.4]
j`ey has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<j`ey> hello, I have an array, and want to turn it into an array of arrays, with N elements in each
<j`ey> is there an easy way of doing that?
BH23 has joined #ruby
<j`ey> each_slice looks like it might be what I need
<ytti> [3] pry(main)> [1,2,3,4,5,6].each_slice(2).to_a
<ytti> => [[1, 2], [3, 4], [5, 6]]
jottr has quit [Quit: WeeChat 2.4]
zacts has joined #ruby
BH23 has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
<j`ey> lol what a horror: a.to_i(16).to_s(16).ljust(2, '0')
dionysus69 has joined #ruby
leman has quit [Remote host closed the connection]
leman has joined #ruby
Rapture has joined #ruby
thunderbirdtr_ has quit [Quit: ZNC 1.7.3 - https://znc.in]
powerbit has quit [Read error: Connection reset by peer]
hays has joined #ruby
dsmythe_ has joined #ruby
xco has joined #ruby
dsmythe has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
polishdub has joined #ruby
digitalnomad has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
<havenwood> j`ey: rjust?
<havenwood> ljust doesn't seem right (zeros on the right)
ramfjord has joined #ruby
sauvin has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Client Quit]
bdonnahue has quit [Read error: Connection reset by peer]
<j`ey> havenwood: oh, nice spot
bdonnahue has joined #ruby
jenrzzz has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
sauvin has joined #ruby
<havenwood> j`ey: I'm curious about the context. Seems it's already hex, so wouldn't just ljust suffice?
<havenwood> rjust*, haha
jenrzzz has quit [Ping timeout: 258 seconds]
<j`ey> yeah probably :D
<j`ey> oh no
<j`ey> it's "0xN"
<havenwood> ahhh
<havenwood> j`ey: you can do: s.hex
<havenwood> &>> '0xa'.hex
<rubydoc> # => 10 (https://carc.in/#/r/6xlx)
sauvin has quit [Excess Flood]
sauvin has joined #ruby
lxsameer has quit [Quit: out]
<havenwood> &>> '%02x' % '0xa'.hex
<rubydoc> # => "0a" (https://carc.in/#/r/6xly)
<havenwood> &>> format '%02x', '0xa'.hex
eddof13 has joined #ruby
<rubydoc> # => "0a" (https://carc.in/#/r/6xlz)
<j`ey> havenwood: ah hnice, thanks
Jonopoly has quit [Quit: WeeChat 2.4]
digitalnomad has quit [Ping timeout: 258 seconds]
sauvin has quit [Max SendQ exceeded]
<Caerus> boi I went through a nasty rabbit hole. forgot I had installed the ubuntu rvm package and did rvm --implode
<Caerus> luckily stackoverflow came to the rescue again. In case anyone runs into it -> https://stackoverflow.com/questions/48431372/removing-broken-packages-in-ubuntu
zacts has quit [Quit: WeeChat 2.4]
dsmythe_ has quit [Remote host closed the connection]
dsmythe has joined #ruby
hays has quit [Ping timeout: 246 seconds]
hays has joined #ruby
ricekrispie2 has joined #ruby
bamdads has joined #ruby
weteamsteve has joined #ruby
esp32_prog has joined #ruby
prestorium has quit [Quit: prestorium]
ricekrispie has quit [Ping timeout: 268 seconds]
bdonnahue1 has joined #ruby
bdonnahue has quit [Read error: Connection reset by peer]
regedit has quit [Quit: Connection closed for inactivity]
sauvin has joined #ruby
tdy has joined #ruby
doodlebug has joined #ruby
doodleb77 has quit [Ping timeout: 244 seconds]
hays has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
laaron has quit [Remote host closed the connection]
esp32_prog has quit [Ping timeout: 258 seconds]
ellcs has quit [Ping timeout: 250 seconds]
laaron has joined #ruby
bdonnahue1 has quit [Ping timeout: 258 seconds]
reber has joined #ruby
reber has quit [Read error: Connection reset by peer]
bamdads has quit [Quit: bamdads]
bamdads has joined #ruby
hays has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
Kestrel-029 has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nicmavr has joined #ruby
DTZUZO has joined #ruby
esp32_prog has joined #ruby
<haxx0r53> i have problems writing configuration object for my gem
<haxx0r53> XmrTo.configure do |config|
<haxx0r53> i'm not sure why this isn't working as expected. (i stole the code from thoughtbots blog post)
esp32_prog has quit [Ping timeout: 258 seconds]
<bougyman> https://github.com/imanel/websocket-rack that's super old.
<bougyman> It's a dep in an app I'm taking over. Any "standard" replacement for it?
bamdads has quit [Quit: bamdads]
orbyt_ has joined #ruby
bamdads has joined #ruby
duderonomy has joined #ruby
esp32_prog has joined #ruby
Iarfen has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esp32_prog has quit [Ping timeout: 244 seconds]
zacts has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
fphilipe has joined #ruby
doodlebug has quit [Read error: Connection reset by peer]
esp32_prog has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
esp32_prog has quit [Ping timeout: 244 seconds]
doodlebug has joined #ruby
ravenousmoose has joined #ruby
renich has joined #ruby
SebastianThorn2 has joined #ruby
SebastianThorn2 has quit [Client Quit]
aupadhye has quit [Quit: Leaving]
apparition has quit [Quit: Bye]
SebastianThorn2 has joined #ruby
<Nebros> i'm really new on ruby and to be honestly, i need it now only for opal. i have installed ruby for windows, but how to install opal? i really can't find the way.
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noboruma has quit [Remote host closed the connection]
dviola has joined #ruby
ravenousmoose has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
SebastianThorn2 has quit [Client Quit]
SebastianThorn2 has joined #ruby
SebastianThorn2 has quit [Client Quit]
SebastianThorn has joined #ruby
j`ey has left #ruby [#ruby]
sameerynho has joined #ruby
hays has quit [Ping timeout: 248 seconds]
hays has joined #ruby
<havenwood> Nebros: Opal is a gem. Once you've installed Ruby, you can: gem install opal
<havenwood> Nebros: On Windows, you can install Ruby with the RubyInstaller for Windows, with the Chocolatey package manager or with the Windows Subsystem for Linux (WSL).
<havenwood> Nebros: Opal does work from Windows.
<xco> i’m trying to find the number of ‘sets’ any element of an array is in. i have examples here that’d best explain what i need help with. https://gist.github.com/xcobar/fcdbcd49a26adcf574c2cf7a2a076852
<xco> i started implementing it. but sort of stuck at the moment
jefffrails35 has quit [Remote host closed the connection]
haxx0r53 has quit [Remote host closed the connection]
englishm has quit [Read error: Connection reset by peer]
englishm has joined #ruby
esp32_prog has joined #ruby
doodleb56 has joined #ruby
hays has quit [Ping timeout: 258 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlebug has quit [Ping timeout: 258 seconds]
Nicmavr has quit [Ping timeout: 245 seconds]
esp32_prog has quit [Ping timeout: 248 seconds]
Nicmavr has joined #ruby
SebastianThorn has quit [Remote host closed the connection]
Fusl has quit [Remote host closed the connection]
Fusl has joined #ruby
renich_ has joined #ruby
renich has quit [Ping timeout: 246 seconds]
renich_ is now known as renich
fredolinhares has joined #ruby
<havenwood> xco: I think you meant to invert one of the `array & set1`s!
<havenwood> They're the same order on both sides of the ||
<havenwood> xco: I think `any?` would be nice here in place of `size.positive?`, which is pretty nice too
<xco> havenwood: yeah i thought of any? not quite sure how it’ll play in here
<xco> let me check the documenation
<havenwood> I commented on your Gist with another approach.
<havenwood> I also renamed everything! :P
bamdads has quit [Quit: bamdads]
bamdads has joined #ruby
bamdads has quit [Client Quit]
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
<xco> hahaha i’ll look in a while. trying to force myself to use any?
salerace has joined #ruby
salerace has quit [Client Quit]
<havenwood> xco: I left another comment with a #sum alternative to #reduce
<xco> am i wasting my time trying to figure out how to do it with any? :D
<havenwood> xco: #any? / #include? is a common pattern
<xco> aaaa i’m on track
<Nebros> havenwood: thank u so much. i look now for the next step how to use, i prefer to read now first the manual before i ask how to. :)
<xco> hahaha
salerace has joined #ruby
<xco> havenwood: i wrote this without thininking https://gyazo.com/e779c9af45e5411b0f20949ee42f6b06
<xco> now i’ll do some thinking
<xco> that’s bad actually
<xco> havenwood: oh i see you also used any an include, but properly
<xco> :P
<xco> havenwood: thanks
<havenwood> np
doodleb56 has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
galeido has quit [Ping timeout: 246 seconds]
doodlebug has joined #ruby
<xco> havenwood: i have a few questions though
<havenwood> ask away!
<xco> i’m using your first method
<xco> this is what you did
<xco> CATAGORIES = [ANIMALS, FRUIT]
<xco> that’ll make it array of arrays
<havenwood> yup, exactly
<xco> which means #include? can work even on nested arrays and find elements right?
<havenwood> and the reason to extract it to a constant is to only create that array of arrays one time, when the class is initially defined
<havenwood> xco: #include? doesn't dig recursively, it only checks the top level
<havenwood> &>> [[42]].include? 42
<rubydoc> # => false (https://carc.in/#/r/6xms)
<xco> so then i’m confused
<xco> then you method shouldn’t work but it does
<xco> because the categories array looks like this
<xco> [["cat", "dog"], ["apple", "orange"]]
<xco> and you’re doing items.any? on the block
<havenwood> xco: But at that point it's `category` not `categories`.
<havenwood> &>> [[42]].first.include? 42
<rubydoc> # => true (https://carc.in/#/r/6xmt)
<xco> right
<xco> the above makes sense
<havenwood> &>> [[42]].any? { |n| n.include? 42 }
<rubydoc> # => true (https://carc.in/#/r/6xmu)
<xco> this is what’s tripping me :P
<havenwood> bad variable naming there ^, I meant `a` not `n`.
<xco> aaaaaa
<xco> got it!
<xco> ok got it
<havenwood> xco: The idea behind it being a list of lists is that you can add a new category to categories and it'll *just work* without changing any logic
salerace has quit [Quit: salerace]
<xco> right
<xco> the next question is about next :P
<havenwood> xco: you could alternatively write that: next(count + 1)
<xco> the next there is like “skip if the following condition is not true?”?
<xco> no no no
<havenwood> xco: yes, onto the next iteration
<xco> i’m talking about the keyword “next”
<xco> i know about Integer#next
<havenwood> ah, you can pass the keyword the return value for the current iteration, and it'll go right onto the next
sauvin has quit [Remote host closed the connection]
salerace_ has joined #ruby
salerace_ is now known as salerace
<xco> havenwood: i discovered something intereting
<xco> “next” is being called on “dog”
jenrzzz has joined #ruby
deepredsky has joined #ruby
hanmac has joined #ruby
orbyt_ has joined #ruby
salerace has quit [Quit: salerace]
salerace has joined #ruby
salerace has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
<havenwood> xco: "doh" not "dog" :P
<xco> 😂
nowhere_man has joined #ruby
buzzy has joined #ruby
buzzy is now known as buzzzzzzzy
buzzzzzzzy is now known as buzzzzzzy
buzzzzzzy has quit [Client Quit]
buzzzzzzy has joined #ruby
buzzzzzzy is now known as buzzzzzzzy
buzzzzzzzy has quit []
buzzy has joined #ruby
buzzy is now known as buzzbuzzy
lalit has joined #ruby
lalit is now known as lalitmee
gix has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has quit [Quit: eddof13]
teclator_home has quit [Remote host closed the connection]
nowhereman has joined #ruby
arup_r has joined #ruby
nowhere_man has quit [Ping timeout: 255 seconds]
gr33n7007h has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
eddof13 has joined #ruby
arup_r has quit []
Inline has joined #ruby
al2o3-cr has joined #ruby
Iarfen has quit [Remote host closed the connection]
jenrzzz has joined #ruby
PettanShoutaKun has joined #ruby
<PettanShoutaKun> I open a connection with the RestClient::get() method and stuff.... but I noticed it like... doesn't close? Do I manually have to close it? Can I? I just want to make sure this connection doesn't stay open.
<PettanShoutaKun> I feel like maybe I'm being super dumb or confused about what the RestClient actually is/does
zacts has joined #ruby
tj_ has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
standardname has joined #ruby
<standardname> Hey... I'm inheriting a large project that was written in Ruby
<standardname> I've never used Ruby
<standardname> What resources do you all recommend to get up to speed
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
kyrylo has quit [Client Quit]
jenrzzz has joined #ruby
tj_ has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has quit [Quit: WeeChat 2.4]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
jenrzzz has quit [Ping timeout: 255 seconds]
salerace has joined #ruby
salerace has quit [Client Quit]
salerace has joined #ruby
laaron- has joined #ruby
laaron has quit [Remote host closed the connection]
salerace has quit [Client Quit]
salerace has joined #ruby
ur5us has joined #ruby
fredolinhares has quit [Quit: WeeChat 1.9.1]
Nebros has quit [Quit: Page closed]
cow[moo] has joined #ruby
dellavg_ has quit [Ping timeout: 258 seconds]
lalitmee has quit [Quit: Leaving]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SuperLag has joined #ruby
Sina has joined #ruby
laaron has joined #ruby
<Iambchop> standardname: there's a list of books linked from the channel topic: https://goo.gl/wpGhoQ
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
renich has quit [Ping timeout: 245 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zacts has joined #ruby
cow[moo] has joined #ruby
wald0 has quit [Quit: Lost terminal]
renich has joined #ruby
renich has quit [Remote host closed the connection]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlebug has quit [Quit: -a- Connection Timed Out]
tj_ has quit [Remote host closed the connection]
tj_ has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
doodlebug has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
rsmith31415 has joined #ruby
rsmith31415 has left #ruby [#ruby]
rsmith31415 has joined #ruby
renich has joined #ruby
doodleb66 has joined #ruby
doodlebug has quit [Ping timeout: 255 seconds]
altious has quit [Ping timeout: 268 seconds]
deepredsky has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
salerace has quit [Quit: salerace]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
ur5us has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
rsmith31415 has left #ruby ["WeeChat 1.4"]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw_ has quit [K-Lined]
dsmythe has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
dar123 has joined #ruby
dar123 has quit [Client Quit]
jeremycw has quit [Ping timeout: 246 seconds]
tj_ has quit [Ping timeout: 252 seconds]
cthulchu has quit [Ping timeout: 258 seconds]
rsmith31415 has joined #ruby
zacts has joined #ruby
rsmith31415 has quit [Quit: WeeChat 1.4]
altious has joined #ruby
dar123 has joined #ruby
<Iambchop> PettanShoutaKun: under the hood rest-client get uses the block form of net-http start: https://github.com/rest-client/rest-client/blob/f450a0f086f1cd1049abbef2a2c66166a1a9ba71/lib/restclient/request.rb#L722
ur5us has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
moei has quit [Quit: Leaving...]
xco has quit [Quit: xco]
standardname has quit [Ping timeout: 258 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
polishdub has quit [Quit: leaving]
zacts has joined #ruby
Exuma has joined #ruby
Dbugger has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 246 seconds]
eddof13 has quit [Quit: eddof13]
zacts has quit [Ping timeout: 268 seconds]
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
doodleb66 has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
miskatonic has joined #ruby
salerace has joined #ruby
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exuma has joined #ruby
tj_ has joined #ruby
ellcs has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has quit [Ping timeout: 248 seconds]
standardname has joined #ruby
jenrzzz has joined #ruby
standardnamee has joined #ruby
tj_ has quit [Remote host closed the connection]
renich has quit [Remote host closed the connection]
standardname has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
banisterfiend has joined #ruby
standardnamee has quit [Ping timeout: 255 seconds]
tj_ has joined #ruby
renich has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]