mozzarella

Activity Graph

Page 1 of 18 | Next »

2019-06-14

[13:56:31] mozzarella: sagax: I don't understand your question
[14:00:00] mozzarella: I only use :: for constants
[14:08:33] mozzarella: https://rubystyle.guide/#double-colons

2019-06-13

[02:04:00] mozzarella: > 'hello my friend'[6..].start_with?('my')
[02:04:07] mozzarella: >> 'hello my friend'[6..].start_with?('my')
[02:04:50] mozzarella: 2.6.3>> 'hello my friend'[6..].start_with?('my')
[02:04:58] mozzarella: 2.6>> 'hello my friend'[6..].start_with?('my')
[02:05:04] mozzarella: 2.6.3> 'hello my friend'[6..].start_with?('my')
[02:07:07] mozzarella: >> 'hello my friend'[6..-1].start_with?('my')
[02:07:15] mozzarella: ^ for older rubies
[02:07:46] mozzarella: [6..] works here and I have 2.6.3
[02:27:53] mozzarella: LiamW: if you don't mind mutating your string or creating an iterator, you could do it using some methods from the standard library, otherwise I think you will have to create your own method
[02:42:48] mozzarella: LiamW: you could do that: i = 6; 'hello my friend'.index('my', i) == i
[02:42:58] mozzarella: obviously it won't be as efficient as it could be

2019-06-12

[23:32:18] mozzarella: Remote host closed the connection
[23:32:55] mozzarella: has joined #elixir-lang
[23:33:41] mozzarella: has joined #ruby

2019-06-07

[05:13:07] mozzarella: Read error: Connection reset by peer
[12:39:51] mozzarella: has joined #elixir-lang
[12:39:52] mozzarella: has joined #ruby

2019-06-02

2019-06-01

[01:40:14] mozzarella: garyserj: it probably is valid json, not 100% sure, but that's also the result to be expected
[03:39:26] mozzarella: Harlin: times2 on line 12 is a function call, not a function pointer to times2

2019-05-29

[20:41:38] mozzarella: Ping timeout: 258 seconds
[20:41:57] mozzarella: has joined #elixir-lang
[20:42:43] mozzarella: has joined #ruby

2019-05-27

[17:25:55] mozzarella: comet23: 2^5 = 2 * 2^4

2019-05-26

[01:16:39] mozzarella: if you make sure that every item is at the right place at insertion, you're not going to need to loop over it
[01:16:47] mozzarella: different tradeoffs
[01:19:51] mozzarella: btw, "every item" is the worst case scenario
[01:20:38] mozzarella: if the first two items are out of order, you don't have to check the entire list
[01:22:15] mozzarella: (assuming you didn't write your own sorting function, it's probably doing the smart thing already)
[01:22:44] mozzarella: we're gonna need more context, we don't know anything about your project

2019-05-23

[02:53:16] mozzarella: Talion: well, is mariadb installed?
[03:00:03] mozzarella: well, where is it installed?
[03:03:03] mozzarella: Talion: no I mean the library
[03:03:11] mozzarella: what does 'find / -name libmariadb.so 2>/dev/null' say?
[03:05:48] mozzarella: there's an extra d there
[03:07:10] mozzarella: no idea why it's called that way, it's properly called libmariadb.so here
[03:07:21] mozzarella: it doesn't have the right name
[03:08:31] mozzarella: I suggest you ask the centos people why that is, and maybe try creating symlinks or changing the makefile
[03:08:58] mozzarella: if you rename them it's probably going to break a bunch of stuff
[03:10:02] mozzarella: try this: ln -s /usr/lib64/libmariadb.so /usr/lib64/libmariadbd.so
[03:10:41] mozzarella: and check if you at least get a different error message when building the gem…
[03:13:26] mozzarella: of course I mixed it up
[03:13:54] mozzarella: I don't know, I suggest you ask them
[03:13:58] mozzarella: I don't use centos

2019-05-21

[11:09:43] mozzarella: Remote host closed the connection
[11:10:12] mozzarella: has joined #elixir-lang
[11:10:58] mozzarella: has joined #ruby

2019-05-18

[01:30:17] mozzarella: you can't assign to symbols

2019-05-13

[07:02:57] mozzarella: Ping timeout: 245 seconds

2019-05-12

[01:48:33] mozzarella: *.net *.split
[02:45:16] mozzarella: has joined #elixir-lang
[02:45:17] mozzarella: has joined #ruby

2019-05-10

[04:06:21] mozzarella: Remote host closed the connection
[04:07:19] mozzarella: has joined #elixir-lang
[04:08:05] mozzarella: has joined #ruby
[04:12:42] mozzarella: Remote host closed the connection
[04:14:30] mozzarella: has joined #elixir-lang
[04:15:16] mozzarella: has joined #ruby

2019-05-08

[03:48:43] mozzarella: Remote host closed the connection
[03:49:12] mozzarella: has joined #elixir-lang
[03:49:58] mozzarella: has joined #ruby
[22:01:17] mozzarella: Quit: WeeChat 2.4
[22:01:35] mozzarella: has joined #ruby
[22:01:35] mozzarella: has joined #elixir-lang

2019-05-02

[15:26:36] mozzarella: Quit: WeeChat 2.2
[16:01:15] mozzarella: has joined #ruby
[16:01:15] mozzarella: has joined #elixir-lang

2019-04-26

[05:55:29] mozzarella: Ping timeout: 255 seconds

2019-04-21

[05:39:01] mozzarella: Remote host closed the connection
[05:45:56] mozzarella: has joined #elixir-lang
[05:47:28] mozzarella: has joined #ruby
[05:47:38] mozzarella: Remote host closed the connection
[06:02:22] mozzarella: has joined #elixir-lang
[06:03:53] mozzarella: Remote host closed the connection
[06:31:39] mozzarella: has joined #elixir-lang
[06:32:25] mozzarella: has joined #ruby
[14:03:19] mozzarella: Quit: WeeChat 2.2
[14:04:46] mozzarella: has joined #ruby
[14:04:46] mozzarella: has joined #elixir-lang

2019-04-20

[20:00:52] mozzarella: Remote host closed the connection
[20:01:40] mozzarella: has joined #elixir-lang
[20:02:55] mozzarella: Remote host closed the connection
[20:02:55] mozzarella: has joined #ruby
[20:03:26] mozzarella: has joined #elixir-lang
[20:05:15] mozzarella: Remote host closed the connection
[20:05:15] mozzarella: has joined #ruby
[20:08:05] mozzarella: has joined #elixir-lang
[20:08:51] mozzarella: has joined #ruby

2019-04-18

[03:37:32] mozzarella: what's wrong with !=?
[03:37:46] mozzarella: am I missing something

2019-04-14

[02:46:23] mozzarella: has joined #ruby
[02:46:23] mozzarella: has joined #elixir-lang
[17:04:40] mozzarella: ferrrr: emacs

2019-04-13

[17:06:39] mozzarella: has joined #elixir-lang

2019-04-09

[01:21:57] mozzarella: Remote host closed the connection
[01:23:05] mozzarella: has joined #elixir-lang
[01:24:07] mozzarella: has joined #ruby

2019-04-08

[22:49:59] mozzarella: Remote host closed the connection
[22:51:00] mozzarella: has joined #elixir-lang
[22:52:02] mozzarella: has joined #ruby

2019-04-05

[22:01:15] mozzarella: Ping timeout: 255 seconds

2019-03-28

[07:29:37] mozzarella: Ping timeout: 245 seconds

2019-03-27

[10:58:47] mozzarella: Remote host closed the connection
[10:59:15] mozzarella: has joined #elixir-lang
[11:00:17] mozzarella: has joined #ruby

2019-03-24

[23:56:29] mozzarella: xco: cmd is like alt, right?
[23:58:22] mozzarella: xco: wait, you want to send a shortcut to the terminal or the app that's running inside the terminal?

2019-03-12

[21:43:23] mozzarella: Ping timeout: 245 seconds
[23:55:34] mozzarella: has joined #ruby
[23:55:34] mozzarella: has joined #elixir-lang

2019-03-08

[00:02:31] mozzarella: are you going to create a regex object with said string? is it a valid ruby regex?
[00:06:36] mozzarella: bjpenn: you could do something like this: https://www.honeybadger.io/blog/data-and-end-in-ruby/
[00:07:13] mozzarella: erb template at the end of the file
[00:09:20] mozzarella: I think I prefer this way, actually
[00:17:32] mozzarella: bjpenn: can't it be its own template, then, and then embedded in the parent template?
[00:17:38] mozzarella: shouldn't be too hard

2019-03-07

[23:51:52] mozzarella: bjpenn: you do it exactly like that
[23:54:44] mozzarella: bjpenn: I think he was trying to use the bot
[23:54:54] mozzarella: heredocs in ruby use <<
[23:56:44] mozzarella: I don't think so
[23:57:48] mozzarella: it actually is legitime syntax
[23:59:39] mozzarella: yeah but that won't do what you want

2019-03-06

[05:50:00] mozzarella: mjacob: Regexp.union
[05:50:52] mozzarella: so you want a literal concatenation?
[05:59:51] mozzarella: what's your use case mjacob? just curious
[19:59:47] mozzarella: Remote host closed the connection
[20:00:17] mozzarella: has joined #elixir-lang
[20:01:19] mozzarella: has joined #ruby

2019-03-04

[06:06:56] mozzarella: Ping timeout: 272 seconds
[06:07:17] mozzarella: has joined #ruby
[20:00:47] mozzarella: define "doesn't work"

2019-02-28

[15:44:14] mozzarella: it's certainly the most readable
[15:44:50] mozzarella: I'm not sure

2019-02-26

[06:16:39] mozzarella: Ping timeout: 246 seconds
[06:19:15] mozzarella: has joined #ruby
[12:30:24] mozzarella: Ping timeout: 246 seconds
[15:53:52] mozzarella: my text editor
[19:41:19] mozzarella: describe "weird result"
[19:42:31] mozzarella: >> str = "foo'bar'baz"; str.gsub("'", "\\'")
[19:49:42] mozzarella: you need 4 slashes
[19:49:58] mozzarella: "foo'bar'baz".gsub("'", "\\\\'")
[19:52:26] mozzarella: when in doubt, always add more slashes

2019-02-25

[20:57:53] mozzarella: what do you mean outside ruby?
[23:03:42] mozzarella: Read error: Connection reset by peer
[23:04:00] mozzarella: has joined #ruby

2019-02-22

[00:46:31] mozzarella: has joined #ruby
[09:30:39] mozzarella: Remote host closed the connection

2019-02-21

[21:00:05] mozzarella: Quit: WeeChat 2.2

2019-02-19

[04:00:13] mozzarella: marz_d`ghostman: not sure I understand the question
[04:12:23] mozzarella: marz_d`ghostman: you could probably do it using xpath, or just navigating the tree using ruby and a couple of css selectors
[04:32:21] mozzarella: that's assuming the input will always be the same
[04:32:26] mozzarella: doc.css('rra').select { |x| x.css('cf')[0].inner_text == 'AVERAGE' && x.css('pdp_per_row')[0].inner_text == '6' }
[04:34:32] mozzarella: I thought he meant the content?

2019-02-18

[01:19:13] mozzarella: Read error: Connection reset by peer
[01:19:41] mozzarella: has joined #ruby
[18:46:26] mozzarella: AndroidKitKat: yes

2019-02-15

[19:56:57] mozzarella: familiar vocabulary

2019-02-14

[15:29:06] mozzarella: catdude: it's not doing anything
[15:32:42] mozzarella: what is it part of? looks like some kind of templating language
[15:33:16] mozzarella: ruby interpolation is #{}, not ${}

2019-02-12

[01:10:33] mozzarella: Quit: WeeChat 2.2
[01:11:54] mozzarella: has joined #ruby

2019-02-01

[18:37:11] mozzarella: how do I unfreeze a frozen array?

2019-01-30

[18:43:49] mozzarella: josh_newbie: yes
[18:57:33] mozzarella: josh_newbie: what do you mean by "good way"?
[18:58:25] mozzarella: you can put your closing paren on the same line as the opnening one, but I'm not sure that's considered better

2019-01-27

2019-01-26

[00:25:04] mozzarella: has joined #ruby

2019-01-25

[20:32:16] mozzarella: Quit: WeeChat 2.2

2019-01-22

[19:46:07] mozzarella: Quit: WeeChat 2.2
[21:54:38] mozzarella: has joined #ruby

2019-01-20

[19:53:43] mozzarella: Quit: WeeChat 2.2
[20:17:15] mozzarella: has joined #ruby

2019-01-17

[02:46:15] mozzarella: *.net *.split

2019-01-15

[01:50:59] mozzarella: Quit: WeeChat 2.2
[05:51:55] mozzarella: has joined #ruby
[09:37:22] mozzarella: Remote host closed the connection
[09:38:53] mozzarella: has joined #ruby

2019-01-11

[04:29:45] mozzarella: adgtl: what does @window contain?
[04:42:02] mozzarella: adgtl: why not just use a regex instead?
[04:47:12] mozzarella: adgtl: something like that: @window.split(/[#{NORMAL_DASH}#{SPECIAL_DASH}]/)
[04:51:37] mozzarella: actually I think | would work in here
[04:51:44] mozzarella: @window.split(/#{NORMAL_DASH}|#{SPECIAL_DASH}/)
[18:17:36] mozzarella: You know, I wish 3 / 2 returned a float, just like it does in python. Rounding division is almost never what I want, and I end up with .to_f all over my code.
[18:19:07] mozzarella: I shouldn't have to
[18:23:35] mozzarella: al2o3-cr: // or .div (though rdiv would be a better name)
[18:25:39] mozzarella: such as what?

2019-01-10

[06:37:04] mozzarella: Remote host closed the connection
[06:39:18] mozzarella: has joined #ruby
[18:59:26] mozzarella: Remote host closed the connection
[19:03:13] mozzarella: has joined #ruby

2019-01-09

[17:58:24] mozzarella: do you guys use/like crystal?
[18:39:38] mozzarella: mspo: you mean syntactically?
[18:39:44] mozzarella: { comma: CommaPerson.new, dollar: DollarPerson.new }[key]
[18:40:43] mozzarella: I haven't been following the conversation so I'm not sure what you're doing
[18:57:25] mozzarella: Quit: WeeChat 2.2
[23:31:46] mozzarella: has joined #ruby

2019-01-07

[02:19:09] mozzarella: why do you w ant that?
[03:45:28] mozzarella: cthulchu: string interpolation?

2019-01-05

[16:54:23] mozzarella: Quit: WeeChat 2.2
[21:14:27] mozzarella: has joined #ruby

2019-01-04

[04:19:04] mozzarella: has joined #ruby
[04:19:13] mozzarella: how do you make a deep copy of an array?
[15:15:33] mozzarella: > (1..5).to_a
[15:15:46] mozzarella: >> (1..5).to_a
[15:16:08] mozzarella: comet23: is that what you want?

2018-08-19

[02:03:43] mozzarella: clorisu: they do different things…

2018-08-16

[16:10:05] mozzarella: Remote host closed the connection
[16:11:25] mozzarella: has joined #ruby

2018-08-14

[06:08:14] mozzarella: Ping timeout: 272 seconds

2018-08-13

[04:47:13] mozzarella: Remote host closed the connection
[04:48:38] mozzarella: has joined #ruby
[17:39:36] mozzarella: Read error: Connection reset by peer

2018-08-09

[06:17:05] mozzarella: Ping timeout: 248 seconds
[09:26:04] mozzarella: Remote host closed the connection
[09:27:24] mozzarella: has joined #ruby

2018-08-08

[23:02:48] mozzarella: *.net *.split

2018-08-03

[19:39:54] mozzarella: maryo: nuke the gem folder, probably?

2018-07-30

[06:02:24] mozzarella: Quit: WeeChat 2.0.1
[06:47:06] mozzarella: has joined #ruby
[15:53:39] mozzarella: where are you getting that string from

2018-07-23

[00:29:31] mozzarella: Quit: WeeChat 2.0.1
[00:30:54] mozzarella: has joined #ruby

2018-07-21

[15:45:39] mozzarella: Ping timeout: 260 seconds
[17:01:49] mozzarella: has joined #ruby
[17:09:16] mozzarella: Remote host closed the connection
[18:13:29] mozzarella: has joined #ruby