#ruby - 17 May 2019
« Back 1 day Forward 1 day »
[00:02:04] 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.
[00:09:40] 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.
[00:11:52] adam12: leitz: Here's one of my configs for Circle. https://github.com/adam12/rack-server-timing/blob/master/.circleci/config.yml
[00:13:10] 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?
[00:17:27] 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.
[00:17:59] 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.
[00:18:40] leitz: adam12, I'm of the opinion that most anything in XML is a pain. Though Nokogiri really helps.
[00:19:28] leitz: Haven't looked at Oga, just getting back into Ruby. Like, as of a couple hours ago. :)
[00:21:41] 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.
[00:21:43] 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.
[00:23:33] 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.
[00:24:08] 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."
[00:25:06] adam12: libxml2 definitely has it security bugs. In competition with ImageMagick, I heard.
[00:26:07] leitz: I'm still in the "Apprentice Coder" stage of life, even after years of trying. Haven't gotten that deep into much.
[00:27:09] 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.
[00:28:10] leitz: plbbgh...my first linux came with the book "Slackware Unleashed" and a hand me down single speed Mitsumi cdrom on a 386.
[00:28:42] leitz: That was my advanced time, I trained on teletypes and 5 bit code for my military service.
[00:29:55] adam12: Well just remember: Not being able to read yesterdays Perl isn't a sign of sinility. It's just Perl.
[00:30:42] 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.
[00:37:01] 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.
[01:02:21] 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.
[03:32:02] 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
[07:24:06] 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. :(
[09:01:16] RougeRR: i dont have control over the @client code and it raises an exception when the client is not pingab;e
[09:46:43] 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`
[10:00:42] RougeRR: ta_, yeah ive seen that as well. and i know its not regarded as good style perse
[11:33:28] VSpike: Was there a change in the way forking processes or IO pipes worked between 2.4.x an 2.5.x?
[14:33:17] j`ey: hello, I have an array, and want to turn it into an array of arrays, with N elements in each
[15:29:19] havenwood: j`ey: I'm curious about the context. Seems it's already hex, so wouldn't just ljust suffice?
[15:36:17] Caerus: boi I went through a nasty rabbit hole. forgot I had installed the ubuntu rvm package and did rvm --implode
[15:37:03] Caerus: luckily stackoverflow came to the rescue again. In case anyone runs into it -> https://stackoverflow.com/questions/48431372/removing-broken-packages-in-ubuntu
[16:28:58] haxx0r53: Uploaded file: https://uploads.kiwiirc.com/files/0fd05cc8310c198c7c379cd36f6cf9e5/pasted.txt
[16:29:23] haxx0r53: Uploaded file: https://uploads.kiwiirc.com/files/8b61d579099157a45068915ce4e77593/pasted.txt
[16:29:45] haxx0r53: i'm not sure why this isn't working as expected. (i stole the code from thoughtbots blog post)
[17:13:45] 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.
[17:27:01] 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).
[17:28:46] 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
[17:53:12] havenwood: xco: I think `any?` would be nice here in place of `size.positive?`, which is pretty nice too
[18:02:27] 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. :)
[18:03:05] xco: havenwood: i wrote this without thininking https://gyazo.com/e779c9af45e5411b0f20949ee42f6b06
[18:12:19] 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
[18:16:39] 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
[18:19:09] havenwood: ah, you can pass the keyword the return value for the current iteration, and it'll go right onto the next
[20:05:25] 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.
[20:05:41] PettanShoutaKun: I feel like maybe I'm being super dumb or confused about what the RestClient actually is/does
[21:04:26] Iambchop: standardname: there's a list of books linked from the channel topic: https://goo.gl/wpGhoQ
[22:30:53] 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