Arahael

Activity Graph

Page 1 of 4 | Next »

2019-06-28

[23:32:20] Arahael: has left #ruby: ("WeeChat 2.2")

2019-06-16

[00:35:00] Arahael: Ping timeout: 244 seconds
[00:38:12] Arahael: has joined #ruby
[00:42:57] Arahael: Ping timeout: 245 seconds

2019-06-15

[04:20:48] Arahael: has joined #ruby
[22:15:01] Arahael: Ping timeout: 246 seconds
[22:21:15] Arahael: has joined #ruby

2019-06-14

[10:28:54] Arahael: has joined #ruby
[12:54:48] Arahael: Quit: "Relocating the machine..."
[13:01:18] Arahael: has joined #ruby
[13:54:08] Arahael: Ping timeout: 248 seconds

2019-06-12

[04:39:20] Arahael: has joined #ruby
[04:52:07] Arahael: Ping timeout: 245 seconds
[04:54:24] Arahael: has joined #ruby
[05:04:12] Arahael: Ping timeout: 245 seconds
[05:06:00] Arahael: has joined #ruby
[05:14:03] Arahael: Ping timeout: 248 seconds
[05:17:29] Arahael: has joined #ruby
[05:22:07] Arahael: Ping timeout: 245 seconds
[05:30:46] Arahael: has joined #ruby
[06:06:13] Arahael: Ping timeout: 264 seconds
[06:09:08] Arahael: has joined #ruby
[06:27:07] Arahael: Ping timeout: 248 seconds
[06:29:05] Arahael: has joined #ruby
[06:37:07] Arahael: Ping timeout: 268 seconds
[06:39:54] Arahael: has joined #ruby
[06:48:59] Arahael: Ping timeout: 248 seconds
[06:52:28] Arahael: has joined #ruby
[07:01:15] Arahael: Ping timeout: 248 seconds
[07:06:16] Arahael: has joined #ruby
[07:13:30] Arahael: Ping timeout: 268 seconds

2019-06-11

[03:59:48] Arahael: has joined #ruby
[04:07:28] Arahael: Ping timeout: 248 seconds
[04:12:22] Arahael: has joined #ruby
[05:07:47] Arahael: Ping timeout: 268 seconds
[05:11:59] Arahael: has joined #ruby
[05:31:12] Arahael: Ping timeout: 248 seconds
[05:35:19] Arahael: has joined #ruby
[06:51:38] Arahael: Ping timeout: 272 seconds
[06:53:15] Arahael: has joined #ruby
[07:03:40] Arahael: Ping timeout: 272 seconds
[07:12:21] Arahael: has joined #ruby
[07:53:04] Arahael: Ping timeout: 272 seconds
[11:25:43] Arahael: has joined #ruby
[11:33:49] Arahael: Ping timeout: 268 seconds
[11:45:01] Arahael: has joined #ruby
[11:50:29] Arahael: Ping timeout: 258 seconds
[11:56:49] Arahael: has joined #ruby
[12:05:28] Arahael: Ping timeout: 245 seconds
[12:14:16] Arahael: has joined #ruby
[12:37:34] Arahael: Ping timeout: 246 seconds
[13:03:45] Arahael: has joined #ruby
[13:11:15] Arahael: Ping timeout: 268 seconds
[13:17:20] Arahael: has joined #ruby
[13:26:24] Arahael: Ping timeout: 248 seconds
[13:53:09] Arahael: has joined #ruby
[14:00:44] Arahael: Ping timeout: 244 seconds
[16:42:10] Arahael: has joined #ruby
[17:14:12] Arahael: Ping timeout: 245 seconds

2019-06-10

[10:41:32] Arahael: has joined #ruby
[10:47:02] Arahael: Ping timeout: 268 seconds
[10:51:53] Arahael: has joined #ruby
[10:57:53] Arahael: Ping timeout: 244 seconds
[10:59:28] Arahael: has joined #ruby
[11:06:09] Arahael: Ping timeout: 244 seconds
[11:12:20] Arahael: has joined #ruby
[11:35:48] Arahael: Ping timeout: 272 seconds
[11:38:26] Arahael: has joined #ruby
[11:48:20] Arahael: Ping timeout: 258 seconds
[11:55:24] Arahael: has joined #ruby
[12:10:54] Arahael: Ping timeout: 268 seconds
[12:14:46] Arahael: has joined #ruby
[12:30:53] Arahael: Ping timeout: 244 seconds
[12:38:11] Arahael: has joined #ruby
[12:45:52] Arahael: Ping timeout: 244 seconds
[18:29:16] Arahael: has joined #ruby
[18:47:18] Arahael: Ping timeout: 258 seconds

2019-06-09

[04:53:10] Arahael: Ping timeout: 244 seconds
[05:01:06] Arahael: has joined #ruby
[05:07:12] Arahael: Ping timeout: 248 seconds
[05:10:43] Arahael: has joined #ruby
[05:16:25] Arahael: Ping timeout: 246 seconds
[08:10:35] Arahael: Ping timeout: 248 seconds
[08:13:44] Arahael: has joined #ruby
[09:26:24] Arahael: Ping timeout: 272 seconds
[09:35:32] Arahael: has joined #ruby
[09:41:47] Arahael: Ping timeout: 248 seconds

2019-06-05

[09:48:12] Arahael: Ping timeout: 258 seconds
[09:51:19] Arahael: has joined #ruby

2019-06-01

[07:21:02] Arahael: Ping timeout: 258 seconds
[07:23:31] Arahael: has joined #ruby

2019-05-31

[01:10:56] Arahael: Ping timeout: 248 seconds

2019-05-29

[04:32:10] Arahael: Ping timeout: 252 seconds

2019-05-28

[11:59:11] Arahael: Quit: WeeChat 2.2
[12:21:05] Arahael: Quit: WeeChat 2.2
[12:27:16] Arahael: has joined #ruby

2019-04-11

[03:11:54] Arahael: Remote host closed the connection
[04:49:21] Arahael: has joined #ruby
[04:49:25] Arahael: Client Quit
[04:49:47] Arahael: has joined #ruby

2019-03-30

[11:19:01] Arahael: has joined #ruby

2019-03-27

[02:57:09] Arahael: has joined #ruby
[02:57:36] Arahael: I've been rather confused, I thought if I specify an environment to IO.popen, it should use that environment? Eg: IO.popen(env, cmd)
[02:58:00] Arahael: However, I have the suspicion that it's still inheriting the parent environment, especially when I use env={}
[02:58:18] Arahael: How do I ensure that the environment truely is empty?
[03:08:11] Arahael: adam12: Hmm, thanks, that does help actually.
[03:08:42] Arahael: Helps explain that I'm not going crazy: "This command works differently in the script, but fails on the command line"! :)
[03:08:53] Arahael: ACTION might still be crazy, none-the-less.

2019-02-24

[22:03:59] Arahael: has left #ruby: ("WeeChat 2.0.1")

2019-02-22

[15:43:50] Arahael: Ping timeout: 244 seconds
[17:36:27] Arahael: has joined #ruby

2019-02-01

[04:24:27] Arahael: I'm attempting to use bundler, however I have a problem where `require 'xmlrpc/client'` causes a LoadError - cannot load such file, on windows. HOw can I resolve this?
[04:24:42] Arahael: (I'm testing using `bundler exec irb`)
[04:26:43] Arahael: I'm confused because isn't this part of ruby?
[04:33:34] Arahael: D'oh. It's a gem.
[05:02:15] Arahael: ACTION steps on out.

2019-01-17

[02:46:16] Arahael: *.net *.split
[02:54:14] Arahael: has joined #ruby

2019-01-16

[05:26:01] Arahael: has joined #ruby
[05:26:24] Arahael: I'm hoping to query zeroconf from ruby, however I'm a bit lost. Can anyone recommend a library that works with a recent ruby?
[05:35:20] Arahael: I seem to have it working fine in go and python, but not ruby.
[05:43:59] Arahael: Blegh, turns out I can't use zeroconf anyway in this network topography.

2018-09-04

[00:45:29] Arahael: has left #ruby: ("WeeChat 2.0.1")

2018-08-29

[02:42:51] Arahael: *.net *.split
[08:51:09] Arahael: has joined #ruby

2018-08-02

[06:56:53] Arahael: zenspider: Lost, are you? :)

2018-08-01

[12:48:58] Arahael: *.net *.split
[12:58:37] Arahael: has joined #ruby

2018-07-27

[06:27:28] Arahael: I'm trying to run some ruby code, and it say: Ignoring ffi-1.9.21 because its extensions are not built. Try: gem pristine ffi --version 1.9.21
[06:27:33] Arahael: But when I do, nothing changes.
[06:28:48] Arahael: I'm on a fairly old ruby (2.3.3, actually), but I expect to be able to *install* ffi, and then to be able to *use* ffi, or to have a different error.

2018-07-20

[00:07:26] Arahael: *.net *.split
[00:15:40] Arahael: has joined #ruby

2018-07-11

[01:43:10] Arahael: thats an old ruby, isnt it?
[01:51:18] Arahael: Ah, indeed. Well, why not grab the docs, then?
[01:51:42] Arahael: Eg, here: https://ruby-doc.org/stdlib-2.5.1/

2018-07-10

[02:19:25] Arahael: Ping timeout: 260 seconds
[02:31:49] Arahael: has joined #ruby

2018-05-29

[02:47:05] Arahael: *.net *.split
[02:48:07] Arahael: has joined #ruby

2018-05-07

[13:11:10] Arahael: *.net *.split
[13:17:34] Arahael: has joined #ruby

2018-05-03

[00:12:01] Arahael: While we're talking about scopes... Blocks introduce own scopes as well. What about if conditions?
[00:12:25] Arahael: And begin/rescue blocks.

2018-05-02

[07:04:37] Arahael: has joined #ruby
[07:05:03] Arahael: So I've got a callable in a local variable. I can 'puts' it fine, but I can't actually call it. Ruby asays: "Undefined method".
[07:05:12] Arahael: Does ruby have a separate scope for functions?
[07:07:51] Arahael: I'm trying to essentially use this code: https://stackoverflow.com/a/17389823
[07:10:24] Arahael: The actual code I'm attempting to use is as follows: https://paste.debian.net/hidden/2d0ab128/
[07:16:19] Arahael: dminuoso: Sorry - just worked it out: I had to use getCursorPos.Call(point), rather than just getCursorPos(point)
[07:16:31] Arahael: It does appear that methods have a different scope.
[07:22:23] Arahael: dminuoso: Well, I worked it out that I effectively had: blah = lambda {|x| }; blah(1)
[07:22:47] Arahael: dminuoso: Confusingly, the error message is "undefined method `blah' for main:Object". But I just defined it!
[07:23:14] Arahael: If I puts it, it outputs perfectly:#<Proc:0x00000004a601e0@foo.rb:1 (lambda)>
[07:24:08] Arahael: havenwood: Yeah - the methods do seem to be a different scope.
[07:26:06] Arahael: havenwood: That was a test case... I'm actually calling a win32api function.
[07:26:14] Arahael: havenwood: So, lambda's are different again?
[07:36:29] Arahael: dminuoso: Effectively, it's a lisp2?
[07:39:04] Arahael: havenwood: Right - it seems to be more of a LISP-2, rather than LISP-1, as I somehow originally thought
[07:47:00] Arahael: dminuoso: "puts foo" uses variable-scope, so it probably puts that function definition.
[07:49:54] Arahael: "define function foo; 42; end".
[07:50:08] Arahael: aka "def".
[07:53:03] Arahael: Wait... So "foo" is different to "foo()"?
[07:53:14] Arahael: The parens aren't *completely* optional?
[07:53:48] Arahael: With the default reciever, which is the current object...
[07:53:55] Arahael: Which has so far been the main:Object?
[07:54:00] Arahael: That makes a lot more sense now. :)
[07:57:05] Arahael: Lexographically, probably that first foo, but /not/ 42.
[07:57:40] Arahael: A variable, that's the best lexographic understanding of it.
[07:59:11] Arahael: dminuoso: That's absolutely confusing!
[07:59:21] Arahael: Right, so that's a LISP-2, then.
[07:59:55] Arahael: Except, as it turns out, it lexographically determines wether the name is a variable, or a function/method.
[08:01:28] Arahael: dminuoso: And by "hoisted", you mean that nearly in the javascript sense of the word?
[08:03:47] Arahael: dminuoso: Interesting.
[08:16:16] Arahael: dminuoso: Yeah... Too much magic. :(
[08:17:16] Arahael: dminuoso: That code example (997995) is awful!
[09:43:33] Arahael: Bish: Regular expressions and dark magic. (No, don't do that).
[09:44:32] Arahael: Frankly, with most scripting languages, I'd just get the http response, shove it into an XML parser, and use it as-is. Manually.
[09:44:47] Arahael: And fix it whenever it breaks.
[09:45:54] Arahael: Bish: Did it stop working because of some weird subtlety in SOAP, or because the soap library was buggy?
[09:47:20] Arahael: dminuoso: Bonus points when it doesn't work with stock .NET, and you require a week of consultancy just to connect it, but it DOES work in SoapUI! :(
[09:47:53] Arahael: Bish: It's just configuration as code.
[09:52:27] Arahael: I'm sure that someone could figure out how to do that.
[10:02:59] Arahael: It's not Javascript.
[10:05:30] Arahael: Experienced developers need to be able to see, at a glance, the *shape* of the program.
[10:08:43] Arahael: Bish: When an op gives a clear warning, you should just stop.
[10:11:27] Arahael: ACTION gets back to Lost In Space.
[10:19:58] Arahael: I'm not an op on freenode, but I'd tend not to like permanent bans. Besides, they could evade.
[10:20:49] Arahael: Heh - I'm too lazy to do whackamole. It's why I avoid being an OP. :)
[10:21:50] Arahael: zenspider: Heh. I haven't been in a channel constantly for 10 years. :)

2018-03-12

[21:49:34] Arahael: Ping timeout: 260 seconds
[21:52:39] Arahael: has joined #ruby

2018-02-28

[01:03:50] Arahael: Where is the documentation for writing files?
[01:04:08] Arahael: I'm looking at: https://ruby-doc.org/core-2.1.4/File.html <-- However, it appears that the 'write' method is not documented there.
[01:06:39] Arahael: havenwood: Hmm, what I was really after, was how to figure that out for myself. How should I know that it's part of IO.write?
[01:06:45] Arahael: Ah, you read my mind.
[01:07:31] Arahael: It will do - thans.

2018-02-22

[00:49:51] Arahael: I'm trying to use ruby-lint in an attempt to improve the quality of the code, for the rake files.
[00:50:31] Arahael: However, it has a ton of warnings, related to things like: "Undefined constant Rake", or "Undefined constant FileList", both of which exist in Rake. Writing 'include Rake' does not make any difference.
[00:50:42] Arahael: How do I get ruby-lint to recognise these?
[00:51:28] Arahael: Alternatively, what should I use instead of ruby-lint?
[00:55:21] Arahael: havenwood: Isn't that just a *style* checker, though?
[00:55:49] Arahael: Ah, nice, I'll have to check that, then.
[00:58:09] Arahael: Does it do any type checking?
[01:06:37] Arahael: havenwood: I think I'll just have to live with that.
[01:22:09] Arahael: Why does rubocop prefer %r, %i, and %I for regexps and lists of strings?
[01:33:46] Arahael: Eiam: Right, but why does it prefer it? What's wrong with ["my", "array"]?
[01:34:33] Arahael: Eiam: In this case, it's a list of symbols.
[01:35:48] Arahael: Fair enough. Perhaps I should probably set up my own rules file.
[01:36:14] Arahael: Yeah... But paths aren't a regex!
[01:36:36] Arahael: I notice I have a 'setter' function in this file.
[01:36:49] Arahael: ie: def set_foo
[01:37:26] Arahael: It's not easy to rename it, it sets something deep in the build system, can I use a 'def foo=(...)' method instead and would that magically work?
[01:48:39] Arahael: Eiam: Actually, %r does simplify them.
[01:48:43] Arahael: Just made those changes. :)
[02:01:11] Arahael: Hmm, can I squash a particular rubocop warning for a particular line?
[02:02:12] Arahael: Yep, I can. Neat.

2017-11-29

[08:31:50] Arahael: It's doable, for sure.
[08:32:05] Arahael: Hell, people have brought entire distros into it.
[23:25:34] Arahael: has left #ruby: ("WeeChat 1.4")

2017-11-27

[00:09:35] Arahael: has joined #ruby
[00:09:43] Arahael: What's a good tool for auto-formatting ruby code?
[00:11:12] Arahael: What's a good tool for auto-formatting ruby code?
[00:19:22] Arahael: zanoni: Yes, but I want it to automatically fix the crap.
[00:22:47] Arahael: Radar: Awesome.
[00:22:57] Arahael: zanoni: Trouble is, we don't have a standard editor in the team.
[00:23:58] Arahael: Radar: Git's -w to the rescue. But yes, we're introducing style guides to reduce just this from happening.
[00:24:28] Arahael: It's still manually triggered though, on a per-file / proejct basis, whenever appropriate, for the moment. :)

2017-08-07

[23:00:43] Arahael: has left #ruby: ("WeeChat 1.4")

2017-08-02

[00:45:49] Arahael: Incidentially, in C++, that type is unsigned, whereas in Ruby, it's signed.
[00:55:40] Arahael: nofxxx: Btw, c++ has for loops.
[00:56:20] Arahael: nofxxx: While loops are relatively unusual to see, but as you know, they do still work. Regarldes, I'd normally have done that usin ga for loop.
[01:26:08] Arahael: ar1a: You were clearly joking, so I'll also respond in turn: "Lol".
[04:03:58] Arahael: The equivalent of a js callback is probably just a callable.
[04:04:51] Arahael: ar1a: Why do you want to rewrite it in ruby anyway?
[04:07:04] Arahael: ar1a: No reason you couldn't do the same in Ruby, but my question remains: Why rewrite it?
[04:08:32] Arahael: ar1a: You could embed it, then?
[04:08:49] Arahael: ar1a: Embed node in ruby.
[04:09:39] Arahael: ar1a: rewriting is a lot of work, generally.
[04:10:02] Arahael: ar1a: And you will have new bugs.
[04:10:45] Arahael: (I do'nt have any on hand)
[04:13:43] Arahael: ar1a: On the other hand, your libraries are already running in the most absurdely optimised dyanmic runtime known to man.
[04:45:27] Arahael: bougyman: Concurrency doesn't mean multithreaded.
[04:45:37] Arahael: bougyman: And indeed, node's concurrency is *not* multithreaded.

2017-07-27

[09:40:13] Arahael: ACTION usually goes straight to logging.
[23:53:17] Arahael: So, to answer the question, it is 1, 2, and 3.
[23:53:27] Arahael: ACTION did well at school tests.