« Back to channel list

#ruby - 22 October 2018

« Back 1 day Forward 1 day »
[00:02:37] pharma_joe: has joined #ruby
[00:20:47] pharma_joe: has joined #ruby
[00:25:29] xfbs: has joined #ruby
[00:35:39] kies: has joined #ruby
[00:44:37] k0mpa: has joined #ruby
[00:52:14] ansraliant: has joined #ruby
[01:02:57] marmotini_: has joined #ruby
[01:12:32] mangold: has joined #ruby
[01:33:09] graphene: has joined #ruby
[01:44:12] graphene: has joined #ruby
[01:51:31] pharma_joe: has joined #ruby
[02:13:19] marmotini_: has joined #ruby
[02:25:01] skwurl: has joined #ruby
[02:25:06] skwurl: hey guys!
[02:25:38] skwurl: Question! tried the #rubyonrails channel, no response yet.
[02:26:29] skwurl: in a rails app could i use a controller to reference a textfile and display random content?
[02:26:51] skwurl: say generate a random name from a textfile and show it in the view.
[02:33:05] jic: has joined #ruby
[02:37:17] Robdgreat: has joined #ruby
[02:37:50] skwurl: nvm got it! thx
[02:40:17] uplime: has joined #ruby
[02:40:40] esrse: has joined #ruby
[02:43:26] gnufied: has joined #ruby
[03:08:38] braincrash: has joined #ruby
[03:33:32] Nicmavr: has joined #ruby
[03:33:37] i8igmac: is there a way to use nokogiri to parse a url and get variables from list?=VAR
[03:35:20] Radar: i8igmac: Parse a URL? Use the in-built URI library.
[03:37:43] i8igmac: oh, that makes sense
[03:38:12] i8igmac: site,com/?list=value
[03:38:34] i8igmac: oh thanks got it
[04:08:00] mangold: has joined #ruby
[04:10:42] danguita: has joined #ruby
[04:26:39] kurko__: has joined #ruby
[04:35:06] aupadhye: has joined #ruby
[04:41:21] tdy: has joined #ruby
[04:51:05] kapil____: has joined #ruby
[04:55:59] petemoore: has joined #ruby
[05:05:59] Tempesta: has joined #ruby
[05:11:11] eckhardt_: has joined #ruby
[05:26:47] qolq3: has joined #ruby
[05:33:49] RougeR: has joined #ruby
[05:37:27] Arkaniad: has joined #ruby
[05:45:33] nadir: has joined #ruby
[05:46:53] reber: has joined #ruby
[05:58:24] Fr4n: has joined #ruby
[05:58:29] Furai: has joined #ruby
[06:10:27] MoritaShinobu: has joined #ruby
[06:10:47] johnny56: has joined #ruby
[06:19:57] jetchisel: has joined #ruby
[06:35:43] snickers: has joined #ruby
[06:36:33] francisco: has joined #ruby
[06:48:35] ch3ss: has joined #ruby
[06:50:03] venmx: has joined #ruby
[06:51:38] ch3ss: has left #ruby: ("WeeChat 2.2")
[06:55:53] Emmanuel_Chanel: has joined #ruby
[07:01:58] tuor: has joined #ruby
[07:03:30] ellcs: has joined #ruby
[07:05:48] clemens3: has joined #ruby
[07:12:49] za1b1tsu: has joined #ruby
[07:18:04] tAn: has joined #ruby
[07:28:26] solocshaw: has joined #ruby
[07:37:20] lypsis: has joined #ruby
[08:06:08] RedNifre: has joined #ruby
[08:13:49] mikecmpbll: has joined #ruby
[08:13:53] lxsameer: has joined #ruby
[08:14:41] johnny56: has joined #ruby
[08:25:56] darkxploit: has joined #ruby
[08:28:27] darkxploit: Hello, i get the following error with the script test_key.rb --> could not settle on compression_client algorithm . Here is the script and the full output on https://pastebin.com/Z6sRunsp
[08:28:28] ruby[bot]: darkxploit: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[08:33:12] darkxploit: Hello, i get the following error with the script test_key.rb --> could not settle on compression_client algorithm . Here is the script and the full output on https://paste.linux.community/view/0711a0f7
[08:38:05] blackmesa: has joined #ruby
[08:39:18] venmx: has joined #ruby
[08:39:22] phaul: has joined #ruby
[08:39:35] vondruch: has joined #ruby
[08:45:15] al2o3-cr: darkxploit: what happens if you set compression to "zlib@openssh.com" ?
[08:53:06] al2o3-cr: failing that try true/false
[08:55:30] DarthGandalf: has joined #ruby
[08:59:35] blackmesa: has joined #ruby
[09:02:27] whysthatso: has joined #ruby
[09:02:43] darkxploit: al2o3-cr: the error changed to process_cache_miss: fingerprint sha256xxxx does not match for <IP>
[09:04:27] darkxploit: al2o3-cr: true or false produce initial error encountered
[09:05:33] cd: has joined #ruby
[09:13:12] whysthatso: has joined #ruby
[09:14:44] blackmesa: has joined #ruby
[09:16:20] whysthatso: has joined #ruby
[09:17:29] whysthatso: has joined #ruby
[09:18:55] whysthatso: has joined #ruby
[09:33:53] darkxploit: al2o3-cr: i emptied the known_hosts file and launch anew, Now it prompt me the password each time
[09:40:53] TheBloke: has joined #ruby
[09:49:59] TheBloke: has joined #ruby
[09:51:33] arup_r: has joined #ruby
[09:55:45] danguita: has joined #ruby
[09:58:46] TheBloke: has joined #ruby
[10:00:20] blackmesa: has joined #ruby
[10:03:09] Bish: has joined #ruby
[10:03:21] Bish: how do i paginage 0..10000 in 512er steps?
[10:03:34] Bish: >> (0....2000000).each_slice(512).map(&:first)
[10:03:39] ruby[bot]: Bish: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[10:03:49] Bish: >> (0..2000000).each_slice(512).map(&:first)
[10:03:54] ruby[bot]: Bish: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[10:04:07] Bish: like this, or is there a better way?
[10:04:30] TheBloke: has joined #ruby
[10:05:18] TheBloke: has joined #ruby
[10:15:37] blackmesa: has joined #ruby
[10:18:56] MoritaShinobu: has joined #ruby
[10:34:28] rubydoc: I found 3 entries matching method step. Use &list step if you would like to see a list
[10:34:34] phaul: &list step
[10:34:34] rubydoc: Numeric#step, Range#step, Date#step
[10:34:45] phaul: ri Range#step
[10:34:52] phaul: &ri Range#step
[10:34:52] rubydoc: https://ruby-doc.org/core-2.5.1/Range.html#method-i-step
[10:36:25] xfbs: has joined #ruby
[10:36:28] rkoller: has joined #ruby
[10:43:12] kapil____: has joined #ruby
[10:43:13] Cthulu201: has joined #ruby
[10:48:31] apparition47: has joined #ruby
[10:51:48] pavelz: has joined #ruby
[10:51:57] pavelz: hi anyone good and strong with rspec here?
[10:52:25] phaul: pavelz: ask away, and we will see :)
[10:52:26] pavelz: i tried putting definition of double objects in before block but there is an error
[10:52:46] pavelz: says I can't rspec-mock outside of exmaples
[10:53:01] pavelz: so q is where can I put repetitive blocks of mocks?
[10:53:25] phaul: you can put them in let
[10:54:07] phaul: let (:blah) { double('blah') }; decribe Blah { before { allow(blah).to receive ...
[10:54:32] pavelz: ah ok thaks!
[11:09:41] pavelz: it seems to work if I do allow in let block what is the second part?
[11:10:20] pavelz: describe is for describleing blah class?
[11:11:01] phaul: yes. I just don't tend to put more than assignments in let, but stylistic difference only
[11:15:32] phaul: not the greatest example but something like this https://github.com/phaul/yarr/blob/master/spec/yarr/config_file_spec.rb
[11:15:35] wojnar: has joined #ruby
[11:17:37] pavelz: that cleared it up 100% thanks!
[11:19:46] clemens3: has joined #ruby
[11:29:27] AJA4350: has joined #ruby
[11:29:39] whysthatso: has joined #ruby
[11:50:06] infernix: has joined #ruby
[11:58:43] x0F: has joined #ruby
[12:10:09] djellemah_: has joined #ruby
[12:25:31] xfbs: has joined #ruby
[12:33:29] djellemah_: has joined #ruby
[12:55:57] jottr: has joined #ruby
[13:03:17] fribmendes: has joined #ruby
[13:07:17] jcalla: has joined #ruby
[13:08:06] bak1an: has joined #ruby
[13:15:24] GodFather: has joined #ruby
[13:17:35] NL3limin4t0r: has joined #ruby
[13:22:35] zipace: has joined #ruby
[13:27:43] fribmendes: has joined #ruby
[13:28:11] jetchisel: has joined #ruby
[13:28:43] donofrio: has joined #ruby
[13:31:07] GodFather: has joined #ruby
[13:39:46] eb0t_: hey when doing a sitemap...do you inclde everythig on the site including login forms and enquiry forms
[13:40:22] gregf_: has joined #ruby
[13:40:35] cd: has joined #ruby
[13:41:27] Rapture: has joined #ruby
[13:42:29] akaiiro: has joined #ruby
[13:56:58] beefjoe: has joined #ruby
[13:59:30] snowy: has joined #ruby
[14:03:18] qolq3: has joined #ruby
[14:07:18] mostlybadfly: has joined #ruby
[14:08:01] whysthatso: has joined #ruby
[14:13:46] Nicmavr: has joined #ruby
[14:16:59] blackmesa: has joined #ruby
[14:17:33] gnufied: has joined #ruby
[14:21:32] marmotini_: has joined #ruby
[14:24:16] alem0lars: has joined #ruby
[14:27:09] fnskdjfnsd: has joined #ruby
[14:29:15] fnskdjfnsd: Hey. What's a good / easy way to package a ruby script and its (gem) dependencies together so it can be executed on a bare ruby installation without any further dependencies (like bundler and the like)?
[14:29:15] ziprar: has joined #ruby
[14:31:07] GodFather: has joined #ruby
[14:32:09] graphene: has joined #ruby
[14:32:10] al2o3-cr: darkxploit: specify :password => "yourpass" in the initializer.
[14:36:34] al2o3-cr: or modify you sshd_config file to use key only and login from root.
[14:37:01] uplime: has joined #ruby
[14:40:58] Dbugger: has joined #ruby
[14:43:11] graphene: has joined #ruby
[15:00:24] GodFather: has joined #ruby
[15:01:07] snickers: has joined #ruby
[15:02:22] orbyt_: has joined #ruby
[15:03:44] al2o3-cr: has joined #ruby
[15:05:39] tdy: has joined #ruby
[15:09:36] marmotini_: has joined #ruby
[15:10:02] jic: has joined #ruby
[15:10:51] nowhere_man: has joined #ruby
[15:16:17] marmotini_: has joined #ruby
[15:18:20] conta1: has joined #ruby
[15:21:41] SimonNL: has joined #ruby
[15:23:51] SimonNL: has left #ruby: ("Leaving (Channel)___If I have said something clever. my apologies \o")
[15:42:48] rsh: has joined #ruby
[15:46:04] lesihctej: has joined #ruby
[15:48:17] beefjoe: has joined #ruby
[15:49:07] lesihctej: has joined #ruby
[15:50:53] lesihctej: has joined #ruby
[15:52:50] lesihctej: has joined #ruby
[15:57:39] icarus: has joined #ruby
[15:58:08] jcarl43: has joined #ruby
[15:58:50] Inline: has joined #ruby
[16:00:12] Inline: has joined #ruby
[16:01:40] conta1: has joined #ruby
[16:02:34] gregf_: has joined #ruby
[16:04:30] zipace: has joined #ruby
[16:11:38] jottr: has joined #ruby
[16:15:15] Eiam: has joined #ruby
[16:16:53] graphene: has joined #ruby
[16:17:59] rippa: has joined #ruby
[16:18:51] ziprar: has joined #ruby
[16:18:53] cthulchu_: has joined #ruby
[16:28:01] GodFather: has joined #ruby
[16:38:13] jetchisel: has joined #ruby
[16:41:03] icarus: has joined #ruby
[16:42:19] orbyt_: has joined #ruby
[16:47:02] drale2k_: has joined #ruby
[16:53:14] wojnar_: has joined #ruby
[16:55:29] snowy: has joined #ruby
[16:56:38] aufi: has joined #ruby
[17:00:45] fluxAeon: has joined #ruby
[17:12:26] beefjoe: has joined #ruby
[17:12:55] nowhere_man: has joined #ruby
[17:13:24] cd: has joined #ruby
[17:21:19] snowy: has joined #ruby
[17:23:45] sameerynho: has joined #ruby
[17:24:10] armatechnicos: has joined #ruby
[17:35:22] beefjoe: has joined #ruby
[17:41:37] graphene: has joined #ruby
[17:48:24] akaiiro: has joined #ruby
[17:54:48] cliluw: has joined #ruby
[17:58:34] dviola: has joined #ruby
[18:02:38] sameerynho: has joined #ruby
[18:05:32] remi: has joined #ruby
[18:06:05] johnny56: has joined #ruby
[18:10:03] juri_: has joined #ruby
[18:11:00] GodFather: has joined #ruby
[18:11:21] graphene: has joined #ruby
[18:11:29] juri_: i have a strange error in a ruby program: i'm trying to get conjur-cli to function, but it's failing to ssl negotiate against my certificate. i've created a CA, imported it into the trusts of the system, and openssl s_connect can verify it just fine, yet this ruby app is giving me (error 1) when trying to verify the cert.
[18:13:02] havenwood: juri_: What version of Ruby?
[18:13:33] graphene: has joined #ruby
[18:13:54] juri_: 2.5.1p57.
[18:14:15] havenwood: juri_: What error are you getting?
[18:14:51] juri_: using strace, i see it pulling in the system's certificate store..
[18:15:43] juri_: error: SSL_connect returned=1 errno=0 state=error: certificate verify failed (error number 1).
[18:15:53] wojnar: has joined #ruby
[18:16:08] juri_: meanwhile, openssl s_connect can verify just fine.
[18:18:14] desperek: has joined #ruby
[18:23:44] jic: has left #ruby: ("Leaving")
[18:34:20] GodFather: has joined #ruby
[18:51:29] trif: has joined #ruby
[18:51:53] whysthatso: has joined #ruby
[18:51:54] dhollinger: has joined #ruby
[18:51:59] brainslug: has joined #ruby
[18:57:27] alex88: has joined #ruby
[18:58:01] venmx: has joined #ruby
[19:00:06] lytol_: has joined #ruby
[19:00:23] alex88: Hello everyone, I'm trying to run rails c from a ruby 2.3.7p456 docker container, I've installed dependencies while building it using `bundle install --deployment`, if I do `bundle install` I see `Using rake 10.5.0` but when I try to do `bundle exec rails c` I get `Could not find rake-10.5.0 in any of the sources` `Run `bundle install` to install missing gems.`
[19:00:29] alex88: what should I try?
[19:01:41] SeepingN: has joined #ruby
[19:04:14] havenwood: alex88: Sanity check that `which bundle` and `gem which bundler` are as expected?
[19:04:17] havenwood: alex88: Could you gist your: bundle config
[19:04:17] alex88: `bundle show | grep rake` shows rake 10.5.0 too
[19:04:58] juri_: ok, i figgured it out. my certificate did not have a CNAME that matched the DNS name i was using.
[19:05:18] havenwood: juri_: ahhhh
[19:05:43] alex88: havenwood: https://gist.github.com/alex88/e74ddff14c5e70bcce7736e056f8359e
[19:06:45] alex88: btw I've added the dockerfile I'm using in the gist
[19:07:35] havenwood: alex88: Hmm, one suspicious thing is that it appears you're using --deployment for vendor/bundle but also have a BUNDLE_PATH: https://gist.github.com/alex88/e74ddff14c5e70bcce7736e056f8359e#file-bundle_config-L9-L10
[19:08:52] havenwood: alex88: I'm not sure how that ^ resolves. Do you mean to have BUNDLE_PATH set?
[19:09:09] alex88: oh ok, that's set by default from the official docker image, let me try to unset that env variable
[19:09:30] alex88: however, the `bundle exec rails server -b 0.0.0.0` works fine, it's just the console that doesn't
[19:10:56] alex88: same after unsetting https://gist.github.com/alex88/e74ddff14c5e70bcce7736e056f8359e#file-after_unset
[19:11:35] havenwood: alex88: Any results from: bundle doctor
[19:11:46] alex88: I'll try to use /usr/src/app as workdir first
[19:11:50] havenwood: alex88: You might want to also unset: BUNDLE_APP_CONFIG
[19:11:50] alex88: The Gemfile's dependencies are satisfied No issues found with the installed bundle
[19:12:08] LiftLeft: has joined #ruby
[19:12:14] alex88: after unsetting that I get `bundler: command not found: rails`
[19:12:21] alex88: let me try to change the workdir one sec
[19:12:29] GodFather: has joined #ruby
[19:17:19] Rapture: has joined #ruby
[19:21:06] alex88: ok well, changing workdir didn't work, using `bundle install` without `--deployment` worked :) thanks havenwood!
[19:21:59] havenwood: alex88: ah, nice - you're welcome!
[19:23:57] jottr: has joined #ruby
[19:29:55] bak1an: has joined #ruby
[19:32:56] ua_: has joined #ruby
[19:35:53] luckyruby: has joined #ruby
[19:43:48] samort7: has joined #ruby
[19:44:38] cloaked1: has joined #ruby
[19:51:25] graphene: has joined #ruby
[20:00:01] orbyt_: has joined #ruby
[20:00:33] yokel: has joined #ruby
[20:03:52] wojnar: has joined #ruby
[20:33:41] jottr_: has joined #ruby
[20:43:08] xuanrui: has joined #ruby
[20:48:58] jottr_: has joined #ruby
[20:53:48] tdy: has joined #ruby
[21:03:25] phaul: _ari: hello there
[21:03:44] orbyt_: has joined #ruby
[21:15:21] pharma_joe: has joined #ruby
[21:19:09] graphene: has joined #ruby
[21:30:09] graphene: has joined #ruby
[21:30:24] Dimik: has joined #ruby
[21:31:13] LiftLeft: has joined #ruby
[21:32:45] GodFather: has joined #ruby
[21:35:44] luckyruby: has joined #ruby
[21:47:20] tdy: has joined #ruby
[21:52:13] graphene: has joined #ruby
[21:55:14] jottr: has joined #ruby
[22:08:03] phaul: havenwood: I think _ari is gone. how are things that side of the pond
[22:08:51] havenwood: phaul: i'm about to pond-hop
[22:09:09] havenwood: phaul: heading to London tomorrow
[22:09:24] phaul: rly? wow.
[22:09:50] phaul: first time or regular?
[22:10:04] havenwood: phaul: And speaking of pond-hopping, baweaver and I just met with Chris Seaton, who'd in town for a conf.
[22:10:16] havenwood: He reminded me about The Ruby Bibliography. Some great reading!: https://rubybib.org/
[22:11:17] havenwood: phaul: I was at Cambridge for a bit in law school, and I visit from time to time - but this'll be my first time back in years.
[22:12:23] havenwood: That reminds me, I should check for Ruby meetups. :)
[22:16:53] xuanrui: has joined #ruby
[22:21:41] Xeago: has joined #ruby
[22:37:51] ruby[bot]: -b *!*@c-76-23-234-152.hsd1.ct.comcast.net$#ruby-banned
[22:38:00] beowuff: has joined #ruby
[22:38:48] graphene: has joined #ruby
[22:38:56] bak1an: has joined #ruby
[22:43:01] mikecmpbll: has joined #ruby
[22:55:51] RougeR: has joined #ruby
[22:56:57] fluxAeon: has joined #ruby
[22:57:35] mochiyoda: has joined #ruby
[23:00:35] chongtxtx: has joined #ruby
[23:01:25] cthulchu_: ruuuuuubyyyy
[23:02:33] orbyt_: has joined #ruby
[23:03:26] FrankyCyborg: has joined #ruby
[23:09:14] Azure|dc: has joined #ruby
[23:23:43] shoogz: has joined #ruby
[23:35:51] bak1an: has joined #ruby
[23:42:01] tdy: has joined #ruby
[23:43:17] luckyruby: has joined #ruby
[23:47:44] kurko_: has joined #ruby
[23:57:53] Hanmac1: has joined #ruby
[23:59:17] nchambers: has joined #ruby