deepu

Activity Graph

Page 1 of 1

2015-12-03

[05:24:44] deepu: has joined #ruby
[05:26:41] deepu: I'm a student of ruby and wanted to learn how to create .to_<something>. I'm trying to search for .to_<something>
[05:26:53] deepu: but not sure what to search for
[05:27:16] deepu: what do you call .to_someting. It is a method correct?
[05:33:12] deepu: baweaver: but you call a method like method() correct?
[05:34:00] deepu: so I can do def to_hi; puts hi; end
[05:34:41] deepu: baweaver: ok thank you...
[05:37:44] deepu: baweaver: def to_hello(name); puts "hello {name}"; end
[05:38:02] deepu: baweaver: deepu.to_hello NameError: undefined local variable or method `deepu' for main:Object
[05:38:57] deepu: baweaver: ok.. just trying to understand
[06:07:27] deepu: Ping timeout: 252 seconds

2015-11-30

[04:18:48] deepu: has joined #ruby
[04:20:16] deepu: hi, I'm a newbie .. I see a code like this Squares.new(2).square_of_sums. Is 'Square' a class and 'new' is a method inside that class? What is 'square_of_sums"?
[04:27:31] deepu: Ox0dea: yes
[04:27:59] deepu: Ox0dea: ys
[04:29:32] deepu: Ox0dea: ok.. I am reading about it now... you pointed me to correct direction.. thank you
[04:32:20] deepu: Class.foo?
[04:34:30] deepu: Ox0dea: Class.new.foo
[04:34:32] deepu: Ox0dea: Class.new.foo/
[04:35:05] deepu: Ox0dea: thank you sir
[04:36:20] deepu: Ox0dea: yes...
[05:03:48] deepu: Ping timeout: 246 seconds

2015-10-14

[14:19:11] deepu: has joined #ruby
[15:23:56] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-10-13

[14:17:16] deepu: has joined #ruby
[23:13:50] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-10-09

[18:19:12] deepu: has joined #ruby
[18:19:32] deepu: has anyone use sys-proctable to measure memory usage?
[18:19:52] deepu: https://github.com/djberg96/sys-proctable
[21:54:50] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[22:38:09] deepu: has joined #ruby
[22:47:25] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-12

[03:42:18] deepu: has joined #ruby
[03:48:06] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[14:06:22] deepu: has joined #ruby
[15:16:29] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[15:47:27] deepu: has joined #ruby
[19:16:58] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-11

[03:55:05] deepu: has joined #ruby
[04:23:10] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[04:23:33] deepu: has joined #ruby
[04:31:43] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[04:32:08] deepu: has joined #ruby
[04:37:24] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[04:37:35] deepu: has joined #ruby
[04:46:49] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[04:49:46] deepu: has joined #ruby
[05:15:04] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[14:03:55] deepu: Client Quit
[14:03:55] deepu: has joined #ruby
[14:04:16] deepu: has joined #ruby
[15:17:15] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[15:42:59] deepu: has joined #ruby
[21:43:01] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[22:03:44] deepu: has joined #ruby
[22:03:52] deepu: Client Quit
[22:04:23] deepu: has joined #ruby
[23:10:39] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-10

[14:08:50] deepu: has joined #ruby
[19:35:23] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-09

[01:02:22] deepu: has joined #ruby
[01:04:28] deepu: Client Quit
[05:04:40] deepu: has joined #ruby
[05:04:45] deepu: Client Quit
[05:05:07] deepu: has joined #ruby
[05:07:59] deepu: Client Quit
[15:00:12] deepu: has joined #ruby
[15:05:49] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[15:43:53] deepu: has joined #ruby
[15:49:10] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-08

[00:16:52] deepu: has joined #ruby
[00:41:06] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[02:17:08] deepu: has joined #ruby
[03:15:02] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[03:37:48] deepu: has joined #ruby
[05:00:21] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[13:14:07] deepu: has joined #ruby
[13:20:07] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[15:02:26] deepu: has joined #ruby
[15:02:30] deepu: Client Quit
[15:02:54] deepu: has joined #ruby
[15:05:37] deepu: Client Quit
[16:54:59] deepu: has joined #ruby
[16:56:14] deepu: Client Quit
[19:06:27] deepu: has joined #ruby
[19:06:32] deepu: Client Quit

2015-08-07

[14:46:20] deepu: has joined #ruby
[22:58:45] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-06

[14:51:30] deepu: has joined #ruby
[19:23:18] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[19:26:25] deepu: has joined #ruby
[19:27:29] deepu: Client Quit
[19:27:41] deepu: has joined #ruby
[23:29:30] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-05

[14:17:10] deepu: has joined #ruby
[23:13:20] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-08-04

[21:33:54] deepu: has joined #ruby
[23:34:44] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-07-29

[14:34:21] deepu: has joined #ruby
[20:53:25] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-07-28

[00:00:49] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[04:34:32] deepu: has joined #ruby
[06:27:58] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[14:08:14] deepu: has joined #ruby
[16:02:34] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[16:02:48] deepu: has joined #ruby
[20:08:42] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[20:08:57] deepu: has joined #ruby
[20:09:21] deepu: Client Quit
[20:09:32] deepu: has joined #ruby
[20:15:54] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[20:16:20] deepu: has joined #ruby
[20:19:09] deepu: Client Quit
[20:19:29] deepu: has joined #ruby
[20:24:12] deepu: Client Quit
[20:24:28] deepu: has joined #ruby
[20:28:10] deepu: Client Quit
[20:28:31] deepu: has joined #ruby
[21:20:16] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[21:20:30] deepu: has joined #ruby
[23:26:35] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-07-27

[04:01:39] deepu: has joined #ruby
[05:51:23] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[14:27:14] deepu: has joined #ruby
[23:28:24] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[23:28:49] deepu: has joined #ruby

2015-07-24

[14:47:15] deepu: has joined #ruby
[22:47:53] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-07-23

[03:20:20] deepu: has joined #ruby
[04:41:02] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
[14:27:24] deepu: has joined #ruby
[16:03:27] deepu: I asked this yesterday and read class:ERB but still no idea how to do this. Can someone please help? https://dpaste.de/MJji
[16:05:37] deepu: darix: can you please tell me how?
[16:05:51] deepu: I'm new to ERB
[16:09:51] deepu: darix: I already have "<%= hostname %>"
[17:17:48] deepu: I admit I'm so clueless.. Can someone please help me with this? https://dpaste.de/MJji#L
[17:22:45] deepu: wmoxam: I am not sure how to call the ERB inside my loop
[17:23:30] deepu: thats where I need help.. how to call it from my loop and pass hostname and IP address to the template
[17:26:43] deepu: wmoxam: ?
[17:28:54] deepu: wmoxam: Can you please show me how?
[17:29:39] deepu: wmoxam: I have added this inside my loop renderer = ERB.new(resource_template)
[17:30:40] deepu: wmoxam: thank you.. let me take a look at it
[17:40:34] deepu: wmoxam: Thank you that is exactly what I needed... One quick question.. How do I add a new line at the end after username="test"/>
[17:42:32] deepu: wmoxam: ok
[23:29:50] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-07-22

[18:52:14] deepu: has joined #ruby
[18:58:44] deepu: can you please tell me how I can get this info? https://dpaste.de/ofCH
[19:01:25] deepu: havenwood: I want to get Ip address
[20:44:07] deepu: can someone please tell me how I can achieve this? https://dpaste.de/7cvc haven't used ERB yet
[20:49:03] deepu: can someone please tell me how I can achieve this? https://dpaste.de/7cvc haven't used ERB yet
[23:36:00] deepu: Quit: http://www.kiwiirc.com/ - A hand crafted IRC client

2015-03-10

[20:52:34] deepu: Can someone please tell me how I can do this? http://pastie.org/10017014
[21:29:41] deepu: Can someone please tell me how I can do this? http://pastie.org/10017014
[21:31:11] deepu: jhass: would you mind giving me an .each example?
[21:33:01] deepu: havenwood: thank you

2015-02-13

[19:10:53] deepu: gem env is pointing :sources => ["http://rubygems.org/"] but when I try to install a gem it is looking at another repository. Any idea where that repository coming from?
[19:41:59] deepu: I figured out what I was doing wrong
[19:42:11] deepu: my .gemrc had wrong info
[19:43:03] deepu: I'm using hipchat gem. anyone knows how to add userid/password? I'm getting access denied

2015-02-10

[00:23:40] deepu: can someone please tell me how I can achieve this? http://pastie.org/private/rtbnsio8evh5xhq64ngaa

2015-02-09

[21:25:40] deepu: can someone please tell me how I can get this result? http://pastie.org/private/eclumntevdpz174h83vq7g
[21:30:02] deepu: weaksauce: http://pastie.org/private/kkwlovliuv1z4agr2qhvq
[21:33:00] deepu: weaksauce: the port # changes (2004 & 2104)
[21:35:22] deepu: weaksauce: i need to hard code port # and "a" or "b"
[21:41:35] deepu: weaksauce: what i am struggling with is adding ports 2004:a, 2004:b, 2104:a and 2104:b at the end. Your example only add 2004:a at the end
[21:43:23] deepu: weaksauce: yes.. it add the value to the array
[21:51:03] deepu: weaksauce: like this? http://pastie.org/9931108
[21:52:35] deepu: weaksauce: thank you

2015-02-04

[21:04:29] deepu: Can someone please tell me how I can achieve this? http://pastie.org/private/xaqao4olby01dwdbktbw
[21:05:03] deepu: I want to add some string (rabbit@) to the result
[21:07:13] deepu: tobiasvl: let me try that
[21:08:20] deepu: Thanks guys
[21:08:21] deepu: that worked

2015-02-03

[00:02:37] deepu: Senjai: I'm trying to convert string to symbol
[00:03:01] deepu: Senjai: do you know how I can do with with Oj?
[00:03:26] deepu: helpa: ok will try to do that
[00:03:51] deepu: trying to convert keys to symbols
[00:03:56] deepu: @event = Oj.load(event_json)
[00:05:42] deepu: wallerdev: I could but I don't want to re-write the script if Oj can easily convert it keys symbols
[00:06:15] deepu: I see this in the doc.. :symbol_keys (true|false|nil) ??? convert hash keys to symbols
[00:06:37] deepu: but how do I add this as a option?
[00:06:56] deepu: http://ohler.com/oj/Oj.html#default_options-class_method

2015-02-02

[18:32:09] deepu: I have inherited this script. I'm getting "level":"info","message":"handler extension output","extension":{"type":"extension","name":"gtm-mail-handler"},"output":"undefined method `fetch' for nil:NilClass"}" Can someone tell me why this error? http://pastie.org/private/axuivsiw5oqemad0nii9q
[18:36:38] deepu: havenwood: Sensu (monitoring tool) is trying to load the extention and showing this error "{"timestamp":"2015-02-02T18:26:54.059977+0000","level":"info","message":"handler extension output","extension":{"type":"extension","name":"gtm-mail-handler"},"output":"undefined method `fetch' for nil:NilClass"}"
[18:40:26] deepu: havenwood: thank you.. would you please tell me how you would fix it?
[18:42:11] deepu: havenwood: ok thanks I will give that a try
[18:44:16] deepu: havenwood: still same error
[18:46:52] deepu: havenwood: ok let me try that
[20:51:29] deepu: havenwood: I'm still trying to figure this out.. new to Ruby ... the event data json it is trying to parse is similar to this http://sensuapp.org/docs/latest/event_data.. code is here .. http://pastie.org/private/x6hknqyi5uw969yk95jya
[20:52:34] deepu: havenwood: not sure why line 227 would be nil
[23:48:35] deepu: has anyone use oj gem?
[23:54:16] deepu: wallerdev: load json files

2015-01-20

[03:13:16] deepu: can someone please tell me what this error means? http://pastie.org/private/rvulopr9jdjkwvws7jghw
[03:14:35] deepu: sevenseacat: "provider" is uninitialized
[03:16:10] deepu: Xnfu: ok thanks

2014-11-22

[09:46:38] deepu: What is the difference between scan and match