al2o3-cr

Activity Graph

Page 1 of 65 | Next »

2019-08-22

[00:56:21] al2o3-cr: *.net *.split
[01:15:00] al2o3-cr: has joined #ruby
[01:15:02] al2o3-cr: has joined #ruby-offtopic

2019-08-20

[20:45:20] al2o3-cr: this seems interesting https://github.com/jellymann/mittsu

2019-08-17

[18:26:05] al2o3-cr: Quit: WeeChat 2.5
[18:28:31] al2o3-cr: has joined #ruby-offtopic
[18:28:31] al2o3-cr: has joined #ruby

2019-08-14

[09:49:01] al2o3-cr: &24>> require 'uri'; URI('some@email.com#s30823ufadafxx').path
[18:31:24] al2o3-cr: teardown: you're looking at documentation for netaddr 1.5.0, latest is 2.0.3 which doesn't have CIDR namespace.
[18:32:41] al2o3-cr: teardown: np

2019-08-13

[10:49:25] al2o3-cr: Ping timeout: 246 seconds
[16:24:47] al2o3-cr: has joined #ruby
[16:24:49] al2o3-cr: has joined #ruby-offtopic
[16:25:30] al2o3-cr: Client Quit
[16:26:52] al2o3-cr: has joined #ruby-offtopic
[16:26:52] al2o3-cr: has joined #ruby

2019-08-12

[07:33:10] al2o3-cr: Ping timeout: 246 seconds
[17:19:08] al2o3-cr: has joined #ruby
[17:19:10] al2o3-cr: has joined #ruby-offtopic
[17:20:00] al2o3-cr: Client Quit
[17:21:18] al2o3-cr: has joined #ruby-offtopic
[17:21:18] al2o3-cr: has joined #ruby

2019-08-11

[16:34:59] al2o3-cr: Quit: WeeChat 2.5
[16:45:44] al2o3-cr: has joined #ruby-offtopic
[16:45:44] al2o3-cr: has joined #ruby

2019-08-09

[08:23:06] al2o3-cr: 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.

2019-08-08

[06:49:29] al2o3-cr: &>> require 'fiddle'; Fiddle::Pointer[TrueClass.__id__ * 2][0,64] = Fiddle::Pointer[FalseClass.__id__ * 2][0,64]; [false == false, true == true, 0 == 0]
[06:49:55] al2o3-cr: just how much fun can we have with this today ;)
[06:59:19] al2o3-cr: &>> require 'fiddle'; include Fiddle; sc = Function.new Handle['sincos'], [TYPE_DOUBLE, *[TYPE_VOIDP] * 2], TYPE_VOID; s = [0].pack ?d; c = [0].pack ?d; sc.(34.5, s, c); [s,c].map { |v| v.unpack1 ?d }

2019-08-06

[05:59:20] al2o3-cr: 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.
[16:53:49] al2o3-cr: has joined #ruby-offtopic
[16:53:49] al2o3-cr: has joined #ruby

2019-08-01

[00:03:23] al2o3-cr: has joined #ruby-offtopic
[00:03:23] al2o3-cr: has joined #ruby

2019-07-31

[08:01:38] al2o3-cr: 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.
[15:18:01] al2o3-cr: has joined #ruby-offtopic
[15:18:01] al2o3-cr: has joined #ruby
[18:18:19] al2o3-cr: Technodrome: a for loop, yes.
[23:56:50] al2o3-cr: 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.

2019-07-30

[00:10:19] al2o3-cr: Ping timeout: 246 seconds
[10:40:39] al2o3-cr: has joined #ruby-offtopic
[10:40:39] al2o3-cr: has joined #ruby

2019-07-27

[13:04:28] al2o3-cr: 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.
[13:10:14] al2o3-cr: has joined #ruby-offtopic
[13:10:14] al2o3-cr: has joined #ruby
[15:49:05] al2o3-cr: that P should of been a C

2019-07-26

[10:36:19] al2o3-cr: 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.
[10:42:54] al2o3-cr: has joined #ruby-offtopic
[10:42:54] al2o3-cr: has joined #ruby

2019-07-24

[10:46:30] al2o3-cr: 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.
[10:55:44] al2o3-cr: has joined #ruby-offtopic
[10:55:44] al2o3-cr: has joined #ruby

2019-07-21

2019-07-17

[10:34:55] al2o3-cr: ZAJDAN: path has to exist first
[10:36:48] al2o3-cr: ZAJDAN: I mean it has to exist on the filesystem, literally.
[10:37:23] al2o3-cr: if it's not maybe consider FileUtils.mkdir/mkdir_p

2019-07-16

[09:12:06] al2o3-cr: 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.
[09:17:59] al2o3-cr: has joined #ruby-offtopic
[09:17:59] al2o3-cr: has joined #ruby
[22:36:06] al2o3-cr: 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.
[22:42:01] al2o3-cr: has joined #ruby-offtopic
[22:42:01] al2o3-cr: has joined #ruby

2019-07-13

[11:14:14] al2o3-cr: just made a cracking chicken curry YUMMY!
[14:34:23] al2o3-cr: leitz: elaborate
[14:38:06] al2o3-cr: leitz: you know what's better than coffee. BEER, then everything will become so much clearer :P
[14:39:59] al2o3-cr: well we all know that hehe
[14:41:22] al2o3-cr: american beer is like flag wash
[14:43:01] al2o3-cr: strong stuff that german beer
[14:43:29] al2o3-cr: get on the spirits ;P
[14:45:15] al2o3-cr: leitz: aye :)
[14:48:54] al2o3-cr: i had belgium beer once can't remember the name went home started washing the pots lol :p
[14:52:03] al2o3-cr: pumpkin spice beer doesn't sound nice :(
[18:59:55] al2o3-cr: &>> r = 1..20; [r.min(2), r.max(2)].map { |s| s.inject :+ }.sum
[19:04:30] al2o3-cr: f*ck, why didn't think of this?
[19:08:03] al2o3-cr: ytti: 86 / 2 was giving me one off
[19:09:39] al2o3-cr: &>> "2a".hex
[19:11:21] al2o3-cr: &>> "52".oct
[19:11:43] al2o3-cr: love the # 42
[19:19:49] al2o3-cr: &>> (-1.arg*13.42).round
[19:22:11] al2o3-cr: &>> $$-$$+"2a".hex
[19:24:00] al2o3-cr: i was born on the 42nd day
[19:39:34] al2o3-cr: &>> "*".unpack1('C')
[19:43:34] al2o3-cr: so many ways

2019-07-12

[10:33:24] al2o3-cr: &>> (1..9).each_slice(3).to_a
[10:52:27] al2o3-cr: drnerdius: use the block form of Array.new
[10:53:21] al2o3-cr: &>> a = Array.new(3) { Array.new(3, 0) }; a.each_with_index {|_val, i| a[i].each_with_index {|_val, j| a[i][j] = 3 * i + j}}
[10:54:30] al2o3-cr: drnerdius: well, it uses the same references
[10:55:20] al2o3-cr: with the block form you're creating individual objects
[11:00:41] al2o3-cr: &>> a = Array.new(3, Array.new(3, 'x')); a[0][0] = 'y'; a
[11:00:56] al2o3-cr: &>> a = Array.new(3) { Array.new(3) { 'x' } }; a[0][0] = 'y'; a
[11:05:55] al2o3-cr: if that makes sense drnerdius
[11:10:32] al2o3-cr: there is a transpose method and just save it to a another variable
[11:11:03] al2o3-cr: &>> [[1,2,3], [4,5,6], [7,8,9]].transpose
[11:12:11] al2o3-cr: oh, sorry yeah, there is not counter-part mutating method
[11:13:59] al2o3-cr: drnerdius: i'm not sure i understand what you mean?
[11:18:49] al2o3-cr: drnerdius: ah!
[11:19:21] al2o3-cr: you'd have to write your own method though.
[11:21:48] al2o3-cr: drnerdius: sure, np.
[12:03:35] al2o3-cr: NL3limin4t0r: nifty :)
[12:09:17] al2o3-cr: i suppose some methods don't warrant mutation.
[12:09:48] al2o3-cr: &>> Array.instance_methods(false).grep /!/
[12:11:06] al2o3-cr: NL3limin4t0r: true, like concat
[12:11:14] al2o3-cr: and clear :)
[12:13:56] al2o3-cr: but ones an operator the other a method
[13:21:58] al2o3-cr: AndreYuhai: https://carc.in/#/r/77wd
[13:27:56] al2o3-cr: AndreYuhai: np. :)
[14:52:00] al2o3-cr: Array.new(3) { |index| ...

2019-07-11

[09:17:53] al2o3-cr: 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.
[09:24:30] al2o3-cr: has joined #ruby-offtopic
[09:24:30] al2o3-cr: has joined #ruby

2019-07-09

[16:51:31] al2o3-cr: Scriptonaut: just out of interest what does this return: Net::HTTP.get_response URI('http://yoursite.com')
[16:54:36] al2o3-cr: so it it hangs using https?
[16:59:16] al2o3-cr: Scriptonaut: not sure

2019-07-08

[13:04:13] al2o3-cr: 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.
[13:10:08] al2o3-cr: has joined #ruby-offtopic
[13:10:08] al2o3-cr: has joined #ruby
[23:31:50] al2o3-cr: you need parens

2019-07-05

[15:05:06] al2o3-cr: ACTION is away with oberon today

2019-07-02

[00:34:41] al2o3-cr: i'd use rust than go lol
[00:36:42] al2o3-cr: but nothing, i mean nothing, beats ruby.
[01:00:17] al2o3-cr: this guy is a wrecking machine and he's hungry
[01:00:48] al2o3-cr: he'll knock you to tomorrow rock

2019-07-01

[16:37:04] al2o3-cr: Ping timeout: 246 seconds
[16:38:14] al2o3-cr: has joined #ruby
[16:38:16] al2o3-cr: has joined #ruby-offtopic
[17:35:52] al2o3-cr: Ping timeout: 246 seconds
[17:37:04] al2o3-cr: has joined #ruby
[17:37:06] al2o3-cr: has joined #ruby-offtopic

2019-06-28

[00:14:23] al2o3-cr: ellcs: it's a comment
[13:13:27] al2o3-cr: &>> 192.step(0, -8).each_with_object('') { |b, s| s << (529835950419149496931706216147869793156292345183471361352057 >> b & 0xff) }
[21:38:25] al2o3-cr: i've got more cash the 26 ** 16 ;P
[21:39:29] al2o3-cr: ACTION wishes ;)
[21:40:06] al2o3-cr: &>> [*1..26].repeated_permutation(16).size == 26 ** 16
[21:42:09] al2o3-cr: haxx0r: otherwise it'll be not base58
[21:43:58] al2o3-cr: haxx0r: 1 kudos point
[21:47:27] al2o3-cr: &>> [*?1..?9, *?a..?z, *?A..?Z] - [*?1..?9, *?a..?k, *?m..?z, *?A..?H, *?J..?N, *?P..?Z]
[21:59:44] al2o3-cr: havenwood: can you link me that config.ru you posted please?
[22:00:07] al2o3-cr: havenwood: thank you
[22:02:29] al2o3-cr: appreciated havenwood thanks
[22:11:24] al2o3-cr: havenwood: that's awesome
[22:14:15] al2o3-cr: so each connection it remembers it's state
[22:16:39] al2o3-cr: per a process bases
[22:19:32] al2o3-cr: i never really delve into much but the language itself. i should really because there are really good projects about :)
[22:22:09] al2o3-cr: havenwood: nice :) yes, the future of ruby looks promising indeed
[22:23:35] al2o3-cr: havenwood: who is it that is working on guilds can't remember off the top of my head?
[22:25:28] al2o3-cr: ah, yes. watching the rubygaigi about guilds and he was saying something about a complete redesign of the ffi implentation
[22:26:04] al2o3-cr: honestly, i'm excited about ruby 3!
[22:32:51] al2o3-cr: https://www.youtube.com/watch?v=PZDhXPgt98U good watch!
[22:37:38] al2o3-cr: guilds was a different video

2019-06-27

[09:09:40] al2o3-cr: haxx0r: basic auth
[09:11:38] al2o3-cr: &ri Net::HTTPHeader#basic_auth haxx0r
[09:15:13] al2o3-cr: here's an example: https://ruby-doc.org/stdlib-2.6.3/libdoc/net/http/rdoc/Net/HTTP.html#class-Net::HTTP-label-Basic+Authentication
[13:43:12] al2o3-cr: this works for me: system("mkdir -p foo/bar/{1..5}")
[13:46:36] al2o3-cr: it works too.
[13:55:10] al2o3-cr: ACTION wanders off to get some food
[15:00:26] al2o3-cr: ZAJDAN: system %Q(mkdir -p #{File.join("grandparents/parents/{1..6}")}) if you did want to use File.join
[15:02:00] al2o3-cr: infact just % will work there.
[15:05:51] al2o3-cr: &>> %(mkdir -p #{File.join('grandparents', 'parents', '{1..6}')})
[15:07:09] al2o3-cr: it's only 23 degrees here and i'm bloody roasting

2019-06-26

[12:35:23] al2o3-cr: 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.
[12:42:14] al2o3-cr: has joined #ruby-offtopic
[12:42:14] al2o3-cr: has joined #ruby
[14:31:57] al2o3-cr: &>> %w(. - ').tap { |c| 0.step(75) { |i| $> << c[(Math.sin(i) + 1).round] } }
[17:43:38] al2o3-cr: what's wrong with dig?
[17:53:31] al2o3-cr: rokra: obj.dig(0, 'interfaces', 0, 'ip_addresses', 0, 'value')
[23:06:50] al2o3-cr: ACTION thinks this year has flown by

2019-06-25

2019-06-24

[06:35:55] al2o3-cr: 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.
[06:45:16] al2o3-cr: has joined #ruby-offtopic
[06:45:16] al2o3-cr: has joined #ruby
[14:32:20] al2o3-cr: jokke: why do you want set REUSEPORT before binding?
[14:56:46] al2o3-cr: jokke: s = Socket.new(...); s.setsockopt(...); s.bind(...); s.listen(...) ...
[14:58:34] al2o3-cr: jokke: them methods work too.
[15:00:31] al2o3-cr: jokke: are you doing something like this: Celluloid::IO::TCPServer.new TCPServer.new(...) ?

2019-06-23

[19:53:26] al2o3-cr: 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.
[20:04:44] al2o3-cr: has joined #ruby-offtopic
[20:04:44] al2o3-cr: has joined #ruby

2019-06-21

[00:41:25] al2o3-cr: 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.
[07:53:51] al2o3-cr: has joined #ruby-offtopic
[07:53:51] al2o3-cr: has joined #ruby
[08:07:26] al2o3-cr: xco: numbered parameters

2019-06-20

[14:45:07] al2o3-cr: &>> $; = ?&; "foo&bar&baz".split
[14:50:48] al2o3-cr: TomyWork: not to that extent
[14:54:12] al2o3-cr: either gruff or gnuplot
[14:55:00] al2o3-cr: but maybe there is more, idk ;|(
[14:57:33] al2o3-cr: TomyWork: it's no way extensive like python's matplotlib.
[14:58:53] al2o3-cr: no where near infact
[14:59:20] al2o3-cr: use what you want dude
[15:00:41] al2o3-cr: TomyWork: might be best.
[15:03:40] al2o3-cr: TomyWork: ?
[15:05:26] al2o3-cr: gruff can graph. depends what they want
[15:06:23] al2o3-cr: or shell out to gnuplot and be done
[15:10:09] al2o3-cr: TomyWork: YOU CODE RUBY?
[15:11:47] al2o3-cr: oops caps on
[15:14:35] al2o3-cr: TomyWork: show me?
[15:23:05] al2o3-cr: TomyWork: ask python their input?

2019-06-18

[13:16:32] al2o3-cr: 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.
[13:25:05] al2o3-cr: has joined #ruby-offtopic
[13:25:05] al2o3-cr: has joined #ruby

2019-06-17

[12:21:55] al2o3-cr: &>> (1..10).map { |n| n.even? ? n * 2 : n }.sum / 2
[12:22:32] al2o3-cr: it's quiet in here lately
[14:40:23] al2o3-cr: &>> (->(n){})::(?\")
[14:42:42] al2o3-cr: and 'n' is nosey bastards
[14:56:27] al2o3-cr: haxx0r: there's no pseudo_bytes method on OpenSSL::Random
[15:02:27] al2o3-cr: haxx0r: FUGAZI
[15:04:19] al2o3-cr: &list pseudo
[15:04:39] al2o3-cr: &list pseudo_bytes
[15:10:29] al2o3-cr: haxx0r: ruby 2.4 +?
[15:10:59] al2o3-cr: haxx0r: yeah it's gone
[15:13:07] al2o3-cr: &>> require 'openssl'; OpenSSL::Random.method(:pseudo_bytes)
[15:15:10] al2o3-cr: haxx0r: i think it was replaced with urandom
[15:16:38] al2o3-cr: &>> require 'openssl'; OpenSSL::Random.singleton_methods
[15:24:19] al2o3-cr: haxx0r: that is puzzling me!
[15:28:52] al2o3-cr: haxx0r: just reading the source
[15:28:58] al2o3-cr: #if defined(HAVE_RAND_PSEUDO_BYTES)
[16:11:49] al2o3-cr: &>> class X def initialize(x) @x = x end end; X.new(42).instance_exec(99) { |n| @x = n << 1}
[16:15:36] al2o3-cr: no one going to find, a fine language like ruby!

2019-06-16

[03:04:07] al2o3-cr: Ping timeout: 246 seconds
[04:36:40] al2o3-cr: has joined #ruby-offtopic
[04:36:40] al2o3-cr: has joined #ruby
[12:55:12] al2o3-cr: sagax: Hash#slice

2019-06-15

[22:33:43] al2o3-cr: 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.
[22:40:55] al2o3-cr: has joined #ruby-offtopic
[22:40:55] al2o3-cr: has joined #ruby

2019-06-14

[07:45:30] al2o3-cr: has joined #ruby-offtopic
[07:45:30] al2o3-cr: has joined #ruby