sfmk

Activity Graph

Page 1 of 1

2016-05-25

[01:55:05] sfmk: Quit: Connection closed for inactivity

2016-05-24

[22:08:18] sfmk: has joined #ruby
[23:06:04] sfmk: is it against Ruby practice to create classes in separate files and then relative_require them in the main program?
[23:09:00] sfmk: I know it's common practice in Java development, but I'm not sure about Ruby
[23:14:08] sfmk: alright, awesome
[23:14:32] sfmk: yeah that's kind of a nuisance, but I don't really plan on moving anything much, so it should be fine

2016-05-23

[01:45:04] sfmk: Quit: Connection closed for inactivity
[16:57:14] sfmk: has joined #ruby
[20:35:04] sfmk: Quit: Connection closed for inactivity

2016-05-22

[06:15:04] sfmk: Quit: Connection closed for inactivity
[21:53:12] sfmk: has joined #ruby

2016-05-21

[00:09:13] sfmk: has joined #ruby
[02:35:04] sfmk: Quit: Connection closed for inactivity
[02:40:48] sfmk: has joined #ruby
[05:15:04] sfmk: Quit: Connection closed for inactivity
[17:05:00] sfmk: has joined #ruby
[21:05:04] sfmk: Quit: Connection closed for inactivity
[22:24:06] sfmk: has joined #ruby

2016-05-20

[00:16:38] sfmk: has joined #ruby
[00:19:20] sfmk: Could I get some fresh eyes? I've got an issue with my regex being "ambiguous"
[00:30:23] sfmk: working on that, and the error I'm getting
[00:31:45] sfmk: https://gist.github.com/aburgd/fe474df186d0fda4d54c5548815d0ebf here is the code, and the error I'm talking about is the first line
[00:35:05] sfmk: I'm using the Cinch framework, and am trying to add a command for using Ruby's Time class, but I cannot get the regex right, I guess
[00:36:01] sfmk: I've tried with parens before and after the /, without the parens, with a caret before the bang - all without luck
[01:13:34] sfmk: al2o3-cr: I did, it got rid of the ambiguous complaint
[01:14:23] sfmk: https://gist.github.com/aburgd/06ab3d0b540c06b9d85f316267ea6f4b
[04:15:04] sfmk: Quit: Connection closed for inactivity
[17:48:58] sfmk: has joined #ruby
[19:55:04] sfmk: Quit: Connection closed for inactivity
[20:11:41] sfmk: has joined #ruby
[22:55:04] sfmk: Quit: Connection closed for inactivity

2016-04-20

[01:26:43] sfmk: has joined #ruby
[01:30:14] sfmk: I'm having a bit of trouble with a project of mine and was wondering if I could get some fresh eyes
[01:32:59] sfmk: https://gist.github.com/aburgd/b554912594f1e121d92a38ba87a5752a
[01:37:24] sfmk: My problem is that nothing is being put
[01:41:28] sfmk: I added .chomp, but that didn't solve my original problem
[01:41:50] sfmk: I updated my gist with the command I'm running and the output, as well
[01:43:19] sfmk: fixed the double quotes
[01:47:59] sfmk: Okay so I found out that the program actually runs, both classes
[01:48:13] sfmk: but the prompts are only put after the termination of the program
[01:54:07] sfmk: aside from relocating the put statements, what else is wrong?
[01:56:12] sfmk: ah, right, yeah I noticed that when I tried to check the secret and edited that
[04:14:59] sfmk: Quit: Connection closed for inactivity

2015-12-03

[01:53:21] sfmk: has left #ruby: ()

2015-12-02

[23:53:29] sfmk: has joined #ruby

2015-12-01

[00:23:04] sfmk: So I'm trying to define a class method (publicKey) within class (Diffie) https://gist.github.com/aburgd/79c03a1534633882ba58
[00:26:10] sfmk: https://www.irccloud.com/pastebin/miD0pYiy/
[00:29:49] sfmk: jhass: Ah, alright. Well the error I was DHKE.rb:13:in `<main>': uninitialized constant Diffie (NameError)
[00:30:09] sfmk: *error I was thrown
[00:56:04] sfmk: I switched the class and method definitions, and now I'm thrown a NoMethodErrorhttps://gist.github.com/aburgd/a76ee10ed393fa7b4f3a
[00:56:25] sfmk: *NoMethodError https://gist.github.com/aburgd/a76ee10ed393fa7b4f3a
[00:58:55] sfmk: Ah, sorry, fixed that
[01:02:11] sfmk: Well jhass mentioned that I made an instance method, so I need to figure out how to define a class method for publicKey
[01:04:15] sfmk: which would be http://dpaste.com/1HQ5M7E
[01:05:38] sfmk: awesome, thank you guys
[01:08:23] sfmk: That's correct
[01:08:47] sfmk: It's weird how zenspider knew that's how I go through problems though
[01:09:56] sfmk: Yeah, I'm learning three languages at once and it gets a little jumbled
[01:10:01] sfmk: I do not recommend it
[01:11:15] sfmk: haha, thanks for the tip
[01:18:15] sfmk: Alright, so I've changed them to class methods, and when I puts the result of either method
[01:18:36] sfmk: It puts >> Share this with your contact: 4Share this with your contact:
[01:19:04] sfmk: I guess you need the gist huh
[01:21:31] sfmk: well, what zenspider said
[01:21:59] sfmk: https://gist.github.com/aburgd/a76ee10ed393fa7b4f3a but I guess I can eliminate the escape characters now
[01:22:20] sfmk: I see what I did
[01:23:41] sfmk: I had it print as part of the method, and had a puts in the if-elsif
[01:24:01] sfmk: aha, fixed it
[01:24:22] sfmk: I got rid of the puts in the method definition and now it's fine
[01:26:16] sfmk: Thank you for your help jhass and zenspider
[01:33:28] sfmk: has left #ruby: ()

2015-11-30

[23:20:52] sfmk: has joined #ruby
[23:23:31] sfmk: Could I get a set of eyes on my program?
[23:24:05] sfmk: Gist with code and terminal output https://gist.github.com/aburgd/a76ee10ed393fa7b4f3a
[23:25:13] sfmk: self documentation lmao
[23:35:33] sfmk: Quick question: if I pass nil to a constant, would that initialize it or not?
[23:49:58] sfmk: Ox0dea: Could you explain how this expression is read/works? >> Foo = nil; [defined?(Foo), defined?(Bar)]
[23:51:10] sfmk: So that explains why defined?(Bar) returns nil

2015-11-27

[01:55:28] sfmk: has joined #ruby

2015-11-26

[01:57:42] sfmk: has joined #ruby
[01:59:14] sfmk: Client Quit