« Back to channel list

#ruby - 23 February 2019

« Back 1 day Forward 1 day »
[00:02:20] agent_white: has joined #ruby
[00:07:37] sonofentropy: has joined #ruby
[00:11:17] venmx: has joined #ruby
[00:24:52] al2o3-cr: &>> %w(C S L Q).map { |p| -[-1].pack('Q').send(:unpack1, p) >> 1 }
[00:24:54] rubydoc: # => [-128, -32768, -2147483648, -9223372036854775808] (https://carc.in/#/r/6c8r)
[00:29:39] tdy1: has joined #ruby
[00:31:21] al2o3-cr: &>> %w(C S L Q).map { |p| [-1].pack('Q').send(:unpack1, p) >> 1 }
[00:31:23] rubydoc: # => [127, 32767, 2147483647, 9223372036854775807] (https://carc.in/#/r/6c8s)
[00:35:12] al2o3-cr: &>> require 'rbconfig/sizeof'; RbConfig::LIMITS.values_at(*%w(CHAR_MIN SHRT_MIN INT_MIN LONG_MIN)) == %w(C S L Q).map { |p| -[-1].pack('Q').send(:unpack1, p) >> 1 }
[00:35:13] rubydoc: # => true (https://carc.in/#/r/6c8u)
[00:36:29] hahuang65: has joined #ruby
[00:37:02] tdy1: has joined #ruby
[00:44:34] tdy1: has joined #ruby
[00:50:06] hahuang65_: has joined #ruby
[00:55:29] bruul: has joined #ruby
[00:56:15] Renich: has joined #ruby
[00:59:42] al2o3-cr: &>> [Float::MAX].pack('D').unpack1('B*')
[00:59:42] rubydoc: # => "1111111111111111111111111111111111111111111111111110111101111111" (https://carc.in/#/r/6c8w)
[01:02:50] al2o3-cr: &>> Integer::GMP_VERSION
[01:02:50] rubydoc: # => "GMP 6.1.2" (https://carc.in/#/r/6c8x)
[01:03:46] alnk: has joined #ruby
[01:06:51] al2o3-cr: numbers are amazing!
[01:10:18] hahuang65: has joined #ruby
[01:12:01] Swyper: has joined #ruby
[01:13:04] darix: has joined #ruby
[01:13:30] hahuang65: has joined #ruby
[01:17:01] hahuang65: has joined #ruby
[01:29:21] duderonomy: has joined #ruby
[01:37:46] alnk: has joined #ruby
[01:44:34] al2o3-cr: &>> require "fiddle/import"; extend Fiddle::Importer; RBasic = struct ["unsigned long flags", "unsigned long klass"]; ptr = Fiddle::Pointer[Class.__id__ << 1]; RBasic.new(ptr).flags ^= (1 << (12+0)); Class.class
[01:44:35] rubydoc: # => Module (https://carc.in/#/r/6c8y)
[02:01:10] al2o3-cr: &>> require 'fiddle'; (Fiddle::Pointer["brexit sucks"] + 0x7).to_s
[02:01:11] rubydoc: # => "sucks" (https://carc.in/#/r/6c8z)
[02:01:38] cthulchu_: has joined #ruby
[02:08:33] def_jam: has joined #ruby
[02:15:16] fluxAeon: has joined #ruby
[02:29:24] apparition: has joined #ruby
[02:33:17] blackmesa: has joined #ruby
[02:33:51] moei: has joined #ruby
[02:34:43] blackmesa1: has joined #ruby
[02:45:11] _whitelogger: has joined #ruby
[02:51:29] tdy: has joined #ruby
[03:04:18] \void: has joined #ruby
[03:16:08] orbyt_: has joined #ruby
[03:20:58] v01d4lph4: has joined #ruby
[03:42:15] mangold: has joined #ruby
[04:02:41] wolfshappen: has joined #ruby
[04:10:07] braincrash: has joined #ruby
[04:13:44] SuperLag: has joined #ruby
[04:28:37] Autolycus: has joined #ruby
[04:57:18] cagomez: has joined #ruby
[05:03:42] dtzuzu: has joined #ruby
[05:04:22] DTZUZO: has joined #ruby
[05:23:49] laaron: has joined #ruby
[05:30:15] skyikot: has joined #ruby
[05:30:18] cagomez: has joined #ruby
[05:32:39] cagomez: has joined #ruby
[06:02:30] idiocrash: has joined #ruby
[06:39:32] sonofentropy: has joined #ruby
[06:43:33] sauvin: has joined #ruby
[06:49:29] dellavg__: has joined #ruby
[06:54:14] rippa: has joined #ruby
[07:04:51] Nicmavr: has joined #ruby
[07:27:46] apparition: has joined #ruby
[07:28:52] AndroidKK: has joined #ruby
[07:28:55] skyikot: has joined #ruby
[07:31:08] gigetoo_: has joined #ruby
[07:31:12] leftylin1: has joined #ruby
[07:32:46] hahuang65_: has joined #ruby
[07:37:30] FrostCandy: has joined #ruby
[07:41:02] xlued: has joined #ruby
[07:41:07] braincrash: has joined #ruby
[07:41:10] sauvin: has joined #ruby
[07:41:16] jordanm: has joined #ruby
[07:41:52] fribmendes: has joined #ruby
[07:45:44] Jello_Raptor: has joined #ruby
[07:45:47] Psy-Q: has joined #ruby
[07:46:12] Dreamer3: has joined #ruby
[07:46:40] FrostCandy: has joined #ruby
[07:47:11] FrostCandy: has joined #ruby
[08:03:38] Pisuke: has joined #ruby
[08:13:32] jordanm: has joined #ruby
[08:15:39] tpanarch1st: has joined #ruby
[08:21:44] tpanarch1st_: has joined #ruby
[08:23:51] tpanarch1st: has joined #ruby
[08:27:32] mikecmpbll: has joined #ruby
[08:33:23] tpanarch1st_: has joined #ruby
[08:38:37] ua: has joined #ruby
[08:41:03] alem0lars: has joined #ruby
[08:52:36] rockyh: hello again :)!
[08:53:42] tpanarch1st: has joined #ruby
[08:55:55] rockyh: I have some gems installed in $HOME/.gem/ruby/2.4 (and $HOME/.gem/ruby/2.4/bin included in $PATH). I would like to update the gems used in a git repository to their latest available version with `bundle update', but I would like bundle to use, for the updates, only the user home directory $HOME/.gem/ruby/2.4, not the system-wide /usr/local/lib/ruby/gems/2.4. How to do this? `bundle config bin', `bundle config
[08:55:58] rockyh: path', or both...?
[09:05:22] blackmesa1: has joined #ruby
[09:09:40] conta: has joined #ruby
[09:16:13] sonofentropy: has joined #ruby
[09:21:10] sameerynho: has joined #ruby
[09:21:59] gix: has joined #ruby
[09:43:13] conta: has joined #ruby
[10:01:23] dhollin3: has joined #ruby
[10:01:59] wolfshappen_: has joined #ruby
[10:06:16] rockyh: ok: `bundle update' can not be given a `--path' option. So, maybe a handy way is to perform first a `bundle install --path $HOME/something' and then run a `bundle update', which will automatically use `$HOME/something' as directory for gems
[10:33:40] sonofentropy: has joined #ruby
[10:53:03] Dbugger: has joined #ruby
[10:56:56] reber: has joined #ruby
[11:03:31] conta: has joined #ruby
[11:08:41] ravenousmoose: has joined #ruby
[11:20:31] Sembei: has joined #ruby
[11:21:49] catbusters: has joined #ruby
[11:24:30] conta1: has joined #ruby
[11:28:29] sonofentropy: has joined #ruby
[11:47:12] dionysus70: has joined #ruby
[11:55:36] lucasb: has joined #ruby
[11:57:09] c-c: has joined #ruby
[12:02:46] Fusl: has joined #ruby
[12:05:10] c-c: Hello! Time to return to the little game engine stub I started on last spring!
[12:06:34] c-c: Currently its just bunch of methods, that spawn 3 processes with game loop. Next, I'm looking at abstracting the inter-process messaging in a class (as opposed to copypaste).
[12:08:32] c-c: So somehow, this https://gist.github.com/csmr/5c0da68094e8112c4624f457f180be24 class instaces in a process would use these https://gist.github.com/csmr/31639d9172274841edc7e528e2351998
[12:21:15] c-c: I added some ideas about the implementation to comments before the class
[12:26:21] ravenousmoose: has joined #ruby
[12:53:26] blackmesa1: has joined #ruby
[13:00:55] apparition: has joined #ruby
[13:09:21] mikecmpbll: has joined #ruby
[13:09:21] sonofentropy: has joined #ruby
[13:21:46] ravenousmoose: has joined #ruby
[13:41:02] ravenousmoose: has joined #ruby
[13:58:37] Fernando-Basso: has joined #ruby
[13:59:43] AJA4350: has joined #ruby
[14:24:02] sonofentropy: has joined #ruby
[14:39:51] volkov: has joined #ruby
[14:42:13] volkov: So it's definitely necessary to break out Emacs and modify that Ruby script.
[14:45:19] Inline: has joined #ruby
[14:56:04] c-c: Ok, I updated the wanna be inter-process message box class https://gist.github.com/csmr/5c0da68094e8112c4624f457f180be24
[14:56:13] c-c: it actually instantiates that class
[14:56:37] c-c: - but actual ipc is not written yet
[14:59:06] c-c: I wonder if the Utils module is a good approach to reusing those methods... hmm, would a class have its parent module methods visible (inside the MessageBox)
[15:00:31] jcalla: has joined #ruby
[15:04:29] agent_white: has joined #ruby
[15:05:47] fuzzface: has joined #ruby
[15:29:14] code_zombie: has joined #ruby
[15:35:41] Menteb: has joined #ruby
[15:38:14] knight33: has joined #ruby
[15:45:30] ravenousmoose: has joined #ruby
[15:55:51] xrexeon: has joined #ruby
[16:02:14] wolfshappen: has joined #ruby
[16:02:49] tdy: has joined #ruby
[16:16:12] KeyJoo: has joined #ruby
[16:18:46] orbyt_: has joined #ruby
[16:23:59] conta: has joined #ruby
[16:26:29] rockyh: has joined #ruby
[16:32:40] mikecmpbll: has joined #ruby
[16:33:14] tdy1: has joined #ruby
[16:34:02] hiroaki: has joined #ruby
[16:35:33] KeyJoo: has joined #ruby
[16:35:53] awkwords: has joined #ruby
[16:43:48] blackmesa1: has joined #ruby
[16:53:36] Dreamer3: has joined #ruby
[17:03:25] sonofentropy: has joined #ruby
[17:18:28] bjpenn: has joined #ruby
[17:29:15] tdy2: has joined #ruby
[17:31:05] orbyt_: has joined #ruby
[17:45:01] Nicmavr: has joined #ruby
[17:55:24] \void: has joined #ruby
[18:03:00] Renich: has joined #ruby
[18:03:49] planigan: has joined #ruby
[18:24:49] knight33: has joined #ruby
[18:31:39] Renich: has joined #ruby
[18:35:34] truenito: has joined #ruby
[19:05:47] houhoulis: has joined #ruby
[19:05:51] AndroidKitKat: has joined #ruby
[19:06:15] AndroidKitKat: has joined #ruby
[19:06:46] AndroidKitKat: has joined #ruby
[19:09:32] Inline: has joined #ruby
[19:11:18] blackmesa1: has joined #ruby
[19:11:31] AndroidKitKat: has joined #ruby
[19:21:37] alnk: has joined #ruby
[19:22:37] AndroidKitKat: has joined #ruby
[19:33:07] AndroidKitKat: Sorry for the join spam
[19:36:34] conta: has joined #ruby
[19:40:50] ravenousmoose: has joined #ruby
[19:43:49] adgtl: has joined #ruby
[19:48:12] shortdudey123: has joined #ruby
[19:52:17] cd: has joined #ruby
[19:55:56] Furai: has joined #ruby
[20:02:50] LenPayne: has joined #ruby
[20:15:57] ravenousmoose: has joined #ruby
[20:19:48] tdy2: has joined #ruby
[20:20:41] conta: has joined #ruby
[20:20:53] al2o3-cr: has joined #ruby
[20:29:00] cagomez: has joined #ruby
[20:30:46] laaron: has joined #ruby
[20:38:40] dviola: has joined #ruby
[21:00:06] mangold: has joined #ruby
[21:11:41] Inline: has joined #ruby
[21:23:16] reber: has joined #ruby
[22:02:31] wolfshappen: has joined #ruby
[22:04:47] noobineer: has joined #ruby
[22:11:11] laaron: has joined #ruby
[22:11:32] sagax: has joined #ruby
[22:18:05] venmx: has joined #ruby
[22:19:56] fluxAeon: has joined #ruby
[22:26:00] venmx: has joined #ruby
[22:27:30] fluxAeon: has joined #ruby
[22:38:45] fluxAeon: has joined #ruby
[22:40:20] conta: has joined #ruby
[22:53:39] alnk: has joined #ruby
[22:54:59] skyikot: has joined #ruby
[22:56:56] segy: has joined #ruby
[23:15:50] conta: has joined #ruby
[23:17:28] dante: has joined #ruby
[23:30:34] alnk: has joined #ruby
[23:41:28] orbyt_: has joined #ruby
[23:48:35] alnk: has joined #ruby
[23:51:13] rafadc: has joined #ruby