« Back to channel list

#ruby - 22 November 2018

« Back 1 day Forward 1 day »
[00:03:03] pep7: has joined #ruby
[00:10:19] paulscoder: has joined #ruby
[00:12:48] segy: has joined #ruby
[00:13:39] cliluw: has joined #ruby
[00:17:51] crankhar1er: has joined #ruby
[00:24:17] segy: has joined #ruby
[00:25:40] dbz: has joined #ruby
[00:37:16] hutch: has joined #ruby
[00:38:34] crankhar1er: has joined #ruby
[00:48:08] queip: has joined #ruby
[00:53:18] Arkantos: has joined #ruby
[00:58:26] keden: has joined #ruby
[00:59:15] crankhar1er: has joined #ruby
[01:19:59] crankhar1er: has joined #ruby
[01:21:21] Puffball: has joined #ruby
[01:31:23] dbz: has joined #ruby
[01:38:43] Puffball: has joined #ruby
[01:40:45] crankhar1er: has joined #ruby
[01:43:57] bmurt: has joined #ruby
[01:54:16] queip: has joined #ruby
[01:58:48] Arkantos: has joined #ruby
[02:01:18] dbz: has joined #ruby
[02:01:24] crankhar1er: has joined #ruby
[02:06:54] Arkantos: has joined #ruby
[02:09:39] arescorpio: has joined #ruby
[02:09:52] smutnysyn: has joined #ruby
[02:10:31] c0ncealed4: has joined #ruby
[02:18:53] Arkantos: has joined #ruby
[02:22:06] crankhar1er: has joined #ruby
[02:32:39] bambanx: has joined #ruby
[02:36:38] dbz: has joined #ruby
[02:37:00] dedavaic898: has joined #ruby
[02:41:08] dedavaic898: Hi everyone, first time here, is this a good place to ask a Ruby programming help question?
[02:42:03] bambanx: dedavaic sure
[02:42:16] bambanx: is ruby channel
[02:42:31] bambanx: and nice ppl too like me
[02:42:51] crankhar1er: has joined #ruby
[02:42:51] Arkantos: has joined #ruby
[02:43:56] dedavaic898: bambanx, thank you, I'm new to multi-threading on Ruby and need some help with a bit of code
[02:44:32] bambanx: i cant tell you the answer but for sure here someone can
[02:45:37] krma: has joined #ruby
[02:45:42] krma: has left #ruby: ()
[02:50:24] Arkantos: has joined #ruby
[02:52:36] jaddison: has joined #ruby
[02:54:23] queip: has joined #ruby
[02:58:00] tectonic: has joined #ruby
[02:59:17] keden: has joined #ruby
[03:03:36] crankhar1er: has joined #ruby
[03:09:13] dedavaic898: I need to have 2 threads that sort through the same array, with Thread 1 selecting and printing elements satisfying some condition, while Thread 2 prints the opposite (elements that fail the same condition). For example, imagine an array of letters `('a'..'z').to_a`, where the first thread prints only the vowels, while the 2nd thread prints only the consonants.
[03:09:21] dedavaic898: I'd like to also synchronize the threads so that the elements (letters) are printed in the same order as the array (i.e. "a" -> "b" -> ... -> "z")
[03:10:28] dedavaic898: I'm not sure how to approach this. Do I create two threads that call the selection method on the array? Do I loop through the array elements and call the thread within the loop?
[03:24:16] crankhar1er: has joined #ruby
[03:27:53] dymk: has joined #ruby
[03:28:41] dymk: Hi, does pack/unpack support a repeating pattern of multiple different things?
[03:29:48] dymk: E.g., can I pack an array of pairs of (byte, BER encoded number), and unpack it with something like my_arr.pack("Cw*")
[03:43:34] nickjj_: has joined #ruby
[03:44:59] crankhar1er: has joined #ruby
[03:50:12] crankhar1er: has joined #ruby
[03:52:28] queip: has joined #ruby
[04:07:30] brandonkal: has joined #ruby
[04:09:14] TvL2386: has joined #ruby
[04:09:19] braincrash: has joined #ruby
[04:11:00] crankhar1er: has joined #ruby
[04:14:56] hutch: has joined #ruby
[04:21:48] aupadhye: has joined #ruby
[04:22:03] jaddison: has joined #ruby
[04:31:34] crankhar1er: has joined #ruby
[04:31:51] asphyxia: has joined #ruby
[04:36:02] MoritaShinobu: has joined #ruby
[04:50:51] cliluw: has joined #ruby
[04:52:16] crankhar1er: has joined #ruby
[04:54:08] queip: has joined #ruby
[05:00:05] keden: has joined #ruby
[05:00:15] patr0clus: has joined #ruby
[05:03:27] mroutis: has joined #ruby
[05:08:55] hutch: has joined #ruby
[05:15:20] agrecascino: has joined #ruby
[05:15:56] sauvin: has joined #ruby
[05:19:29] aupadhye: has joined #ruby
[05:19:47] kapil____: has joined #ruby
[05:20:57] chris349: has joined #ruby
[05:21:49] chris349: I install RVM which installs the latest ruby version automaticall. Then I install the version I need and uninstall the one RVM initially installed
[05:21:59] chris349: How can I just install RVM with a specific Ruby version?
[05:22:40] luminous: has joined #ruby
[05:22:41] nchambers: `rvm install ruby-specific-version`
[05:22:55] chris349: nchambers, But I dont have RVM yet
[05:23:10] chris349: \curl -sSL https://get.rvm.io | bash -s stable --ruby
[05:23:17] chris349: How do I put the Ruby version into that command?
[05:24:02] nchambers: ah, --ruby= i think
[05:24:04] nchambers: sorry, misread
[05:24:19] nchambers: ie --ruby can take an argument
[05:26:13] chris349: Amazing, that works. Now if only they had documented that!
[05:32:16] nicesignal: has joined #ruby
[05:44:25] patr0clus: has joined #ruby
[05:45:01] sp3ncer: has joined #ruby
[05:58:16] nicesignal: has joined #ruby
[06:07:13] lomex: has joined #ruby
[06:15:23] Nicmavr: has joined #ruby
[06:33:05] elphe: has joined #ruby
[06:42:26] conta: has joined #ruby
[06:47:59] reber: has joined #ruby
[06:48:10] reber__: has joined #ruby
[06:50:47] queip: has joined #ruby
[06:53:03] crankhar1er: has joined #ruby
[06:59:30] za1b1tsu: has joined #ruby
[07:01:00] keden: has joined #ruby
[07:02:26] gix: has joined #ruby
[07:07:36] crankhar1er: has joined #ruby
[07:12:00] dminuoso: has joined #ruby
[07:12:11] dminuoso: has left #ruby: ("WeeChat 2.0.1")
[07:17:31] dbz: has joined #ruby
[07:17:42] Dbugger: has joined #ruby
[07:28:11] crankhar1er: has joined #ruby
[07:33:33] cnsvc: has joined #ruby
[07:35:28] nchambers: has joined #ruby
[07:36:56] FrankD: has joined #ruby
[07:37:21] clemens3_: has joined #ruby
[07:38:14] KevinSjoberg: has joined #ruby
[07:47:19] roshanavand: has joined #ruby
[07:48:55] crankhar1er: has joined #ruby
[07:49:33] keden: has joined #ruby
[08:01:32] elphe: has joined #ruby
[08:08:51] burgestrand: has joined #ruby
[08:09:45] crankhar1er: has joined #ruby
[08:15:55] clemens3_: has joined #ruby
[08:17:08] ikbenhet: has joined #ruby
[08:27:05] elphe: has joined #ruby
[08:30:23] crankhar1er: has joined #ruby
[08:31:23] chens: has joined #ruby
[08:43:45] keden: has joined #ruby
[08:46:45] cliluw: has joined #ruby
[08:47:07] Pisuke: has joined #ruby
[08:47:30] JamieD: has joined #ruby
[08:48:26] nowhere_man: has joined #ruby
[08:48:35] keden: has joined #ruby
[08:50:00] queip: has joined #ruby
[08:50:29] cnsvc: has joined #ruby
[08:51:12] crankhar1er: has joined #ruby
[08:51:56] phaul: has joined #ruby
[08:56:42] tdy: has joined #ruby
[08:57:48] nowhere_man: has joined #ruby
[09:00:05] dbz: has joined #ruby
[09:00:36] elphe: has joined #ruby
[09:08:22] dbz: has joined #ruby
[09:11:56] crankhar1er: has joined #ruby
[09:17:14] ellcs: has joined #ruby
[09:19:28] lxsameer: has joined #ruby
[09:19:31] elphe: has joined #ruby
[09:23:31] havenwood: chris349: It's open source, so open a PR if you'd like to document something!
[09:24:38] jetchisel: has joined #ruby
[09:30:08] venmx: has joined #ruby
[09:32:30] crankhar1er: has joined #ruby
[09:36:43] keden: has joined #ruby
[09:39:53] keden: has joined #ruby
[09:42:38] dbz: has joined #ruby
[09:45:35] sleetdrop: has joined #ruby
[09:54:34] dionysus69: has joined #ruby
[09:58:05] def_jam: has joined #ruby
[09:58:20] eb0t_: has joined #ruby
[10:02:23] strk: has joined #ruby
[10:02:29] strk: bundle exec rake install # bundler: command not found: rake
[10:02:53] LinuxKnight: has joined #ruby
[10:09:01] strk: how do I count elements of an array ?
[10:12:31] reber: has joined #ruby
[10:17:34] yohji: has joined #ruby
[10:22:39] kapil____: has joined #ruby
[10:23:59] paulscoder: has joined #ruby
[10:27:45] reber__: has joined #ruby
[10:32:33] jordila: has joined #ruby
[10:32:34] cd: has joined #ruby
[10:33:22] jhass: call .size on it
[10:38:09] thinkpad: has joined #ruby
[10:39:45] nowhere_man: has joined #ruby
[10:49:43] queip: has joined #ruby
[10:54:44] tuor: has joined #ruby
[10:56:44] tuor: hi, I did configure rvm and change my terminal to use bash --login instead of bash. But I can't change how my IDE RubyMine invokes bash. In my terminal rvm is working just right but in my IDE I'm getting a warning:
[10:56:57] tuor: Warning! PATH is not properly set up, /home/aaron/.rvm/gems/ruby-2.5.1/bin is not at first place.
[10:57:33] tuor: RubyMine 2018.2.5
[11:05:57] im0nde: has joined #ruby
[11:13:49] dbz: has joined #ruby
[11:27:14] apparition47: has joined #ruby
[11:32:01] luminous: has joined #ruby
[11:32:41] gregf_: has joined #ruby
[11:33:37] conta: has joined #ruby
[11:36:47] gix: has joined #ruby
[11:37:09] AJA4350: has joined #ruby
[11:45:10] bobdobbs: has joined #ruby
[11:46:29] bobdobbs: Hi all. Is rbenv still a highly recommended way to manage ruby versions?
[11:50:19] queip: has joined #ruby
[11:57:28] aupadhye: has joined #ruby
[12:01:27] bobdobbs: I'd like to install ruby 2.5.3 but it isn't listed as available within rbenv.
[12:07:17] smutnysyn: has joined #ruby
[12:11:52] brandonkal: has joined #ruby
[12:15:52] elphe: has joined #ruby
[12:17:02] smutnysyn: has joined #ruby
[12:21:47] nowhere_man: has joined #ruby
[12:24:00] fredmorcos: has joined #ruby
[12:24:13] TiglatePileser: has joined #ruby
[12:24:39] nickjj_: has joined #ruby
[12:25:33] yohji: has joined #ruby
[12:25:59] za1b1tsu: has joined #ruby
[12:26:06] burgestrand: has joined #ruby
[12:37:10] elphe: has joined #ruby
[12:41:27] Arkantos: has joined #ruby
[12:52:28] queip: has joined #ruby
[13:00:02] DTZUZO: has joined #ruby
[13:03:24] dbz: has joined #ruby
[13:08:28] bonhoeffer: has joined #ruby
[13:08:43] Azure: has joined #ruby
[13:11:40] lomex: has joined #ruby
[13:55:04] queip: has joined #ruby
[13:58:55] akem: has joined #ruby
[14:07:46] darthfork: has joined #ruby
[14:08:05] User458764: has joined #ruby
[14:26:12] lomex: has joined #ruby
[14:29:37] jordila: has joined #ruby
[14:40:44] elphe: has joined #ruby
[14:48:19] JamieD: has joined #ruby
[14:50:51] elphe: has joined #ruby
[15:02:19] AJA4350: has joined #ruby
[15:05:08] akem: has joined #ruby
[15:09:48] vondruch: has joined #ruby
[15:11:02] elphe: has joined #ruby
[15:19:37] Inline: has joined #ruby
[15:21:08] elphe: has joined #ruby
[15:32:44] Inline: has joined #ruby
[15:41:18] elphe: has joined #ruby
[15:41:27] conta: has joined #ruby
[15:48:15] jsc: has joined #ruby
[15:49:41] status402: has joined #ruby
[15:51:26] elphe: has joined #ruby
[15:54:24] hutch: has joined #ruby
[15:55:50] queip: has joined #ruby
[16:11:24] BH23: has joined #ruby
[16:11:34] elphe: has joined #ruby
[16:18:37] reber__: has joined #ruby
[16:22:08] elphe: has joined #ruby
[16:31:35] jaddison: has joined #ruby
[16:35:27] conta1: has joined #ruby
[16:42:14] elphe: has joined #ruby
[16:44:42] jordila: has joined #ruby
[16:52:27] queip: has joined #ruby
[16:53:28] Nicmavr: has joined #ruby
[17:02:05] elphe: has joined #ruby
[17:02:43] hutch: has joined #ruby
[17:11:33] Mike11: has joined #ruby
[17:12:13] elphe: has joined #ruby
[17:22:18] elphe: has joined #ruby
[17:22:19] houhoulis: has joined #ruby
[17:22:32] crankhar1er: has joined #ruby
[17:25:21] perique: has joined #ruby
[17:30:36] dbz: has joined #ruby
[17:35:03] lxsameer: has joined #ruby
[17:39:18] nchambers: has joined #ruby
[17:42:28] elphe: has joined #ruby
[17:52:33] elphe: has joined #ruby
[17:54:31] queip: has joined #ruby
[17:56:20] tectonic: has joined #ruby
[18:02:38] elphe: has joined #ruby
[18:09:09] agent_white: has joined #ruby
[18:09:58] rippa: has joined #ruby
[18:12:46] elphe: has joined #ruby
[18:13:51] BTRE: has joined #ruby
[18:16:08] chens: has joined #ruby
[18:20:35] ivanskie: has joined #ruby
[18:22:40] hutch: has joined #ruby
[18:25:34] lxsameer: has joined #ruby
[18:31:41] vdl: has joined #ruby
[18:32:57] elphe: has joined #ruby
[18:34:00] awkwords: has joined #ruby
[18:42:09] dviola: has joined #ruby
[18:42:56] havenwood: bobdobbs: Many folk these days use chruby, but rbenv is still popular as well.
[18:46:05] mroutis: has joined #ruby
[18:46:36] AJA4350: has joined #ruby
[18:46:54] OrangeManBad: has joined #ruby
[18:48:09] agent_white: has joined #ruby
[18:48:52] keden: has joined #ruby
[18:52:41] queip: has joined #ruby
[18:53:14] elphe: has joined #ruby
[19:08:09] Chew: has joined #ruby
[19:08:47] AJA4350: has joined #ruby
[19:09:32] dbz: has joined #ruby
[19:09:41] crankhar1er: has joined #ruby
[19:13:22] lomex: has joined #ruby
[19:13:24] elphe: has joined #ruby
[19:13:27] dbz: has joined #ruby
[19:13:58] ikbenhet: has joined #ruby
[19:21:11] conta1: has joined #ruby
[19:22:24] bambanx: has joined #ruby
[19:30:13] crankhar1er: has joined #ruby
[19:33:35] elphe: has joined #ruby
[19:38:51] Fr4n: has joined #ruby
[19:43:38] elphe: has joined #ruby
[19:50:52] crankhar1er: has joined #ruby
[19:51:50] hutch: has joined #ruby
[19:52:40] Dbugger: has joined #ruby
[19:54:43] queip: has joined #ruby
[19:55:54] bambanx: has joined #ruby
[19:59:27] AJA4350: has joined #ruby
[20:00:40] TheBloke: has joined #ruby
[20:03:50] elphe: has joined #ruby
[20:07:12] crankhar1er: has joined #ruby
[20:17:13] raulp: has joined #ruby
[20:19:25] hutch: has joined #ruby
[20:19:37] ur5us: has joined #ruby
[20:24:10] elphe: has joined #ruby
[20:27:49] crankhar1er: has joined #ruby
[20:32:09] jaddison: has joined #ruby
[20:38:11] nowhere_man: has joined #ruby
[20:39:53] akem: has joined #ruby
[20:44:23] elphe: has joined #ruby
[20:49:14] dr3wo: has joined #ruby
[20:50:00] DTZUZO: has joined #ruby
[20:57:07] keden: has joined #ruby
[21:00:21] clemens3_: has joined #ruby
[21:05:04] AJA4350: has joined #ruby
[21:06:55] Dbugger: has joined #ruby
[21:07:25] tdy: has joined #ruby
[21:27:57] jaddison: has joined #ruby
[21:28:41] Iambchop: bobdobbs: you have ruby-build installed as an rbenv plugin via git? update it to get the latest version defs: cd "$(rbenv root)"/plugins/ruby-build && git pull
[21:28:43] SeepingN: has joined #ruby
[21:29:06] RougeR: has joined #ruby
[21:29:40] Iambchop: 2.5.3 was added Oct. 18
[21:32:11] RougeR: has joined #ruby
[21:37:09] leitz: has joined #ruby
[21:37:29] smutnysy1: has joined #ruby
[21:38:49] venmx: has joined #ruby
[21:48:28] Emmanuel_Chanel: has joined #ruby
[21:48:41] darkhanb: has joined #ruby
[21:50:12] venmx: has joined #ruby
[21:50:16] roshanavand: has joined #ruby
[21:54:37] jordila: has joined #ruby
[21:57:11] akaiiro: has joined #ruby
[21:59:37] AJA4350: has joined #ruby
[22:02:19] hutch: has joined #ruby
[22:12:07] rubydoc: has joined #ruby
[22:16:08] mroutis: has joined #ruby
[22:16:23] phaul: has joined #ruby
[22:16:50] keden: has joined #ruby
[22:22:46] weaksauce: has joined #ruby
[22:23:18] venmx: has joined #ruby
[22:25:10] postmodern: has joined #ruby
[22:25:12] lomex: has joined #ruby
[22:33:32] bga57: has joined #ruby
[22:33:51] shenghi: has joined #ruby
[22:37:12] Mike111: has joined #ruby
[22:41:07] AJA4350: has joined #ruby
[22:42:40] venmx: has joined #ruby
[22:43:43] keden: has joined #ruby
[22:44:04] AJA4350: has joined #ruby
[22:50:03] queip: has joined #ruby
[22:52:14] akem: has joined #ruby
[23:07:02] AJA4350: has joined #ruby
[23:12:02] lypsis: has joined #ruby
[23:31:07] keden: has joined #ruby
[23:32:12] agent_white: has joined #ruby
[23:48:10] queip: has joined #ruby
[23:56:45] keden: has joined #ruby
[23:57:37] akem: has joined #ruby
[23:58:15] asphyxia: has joined #ruby