kegster

Activity Graph

Page 1 of 1

2017-06-20

[00:17:10] kegster: *.net *.split
[00:23:06] kegster: has joined #ruby
[15:45:05] kegster: has left #ruby: ("Leaving")

2017-06-13

[00:08:30] kegster: Ping timeout: 240 seconds
[00:12:04] kegster: has joined #ruby

2017-06-12

[07:50:13] kegster: has joined #ruby

2017-06-11

[01:54:47] kegster: Quit: Shiner, TX makes good beer.
[01:57:38] kegster: has joined #ruby
[17:14:33] kegster: Remote host closed the connection

2017-06-09

[17:24:46] kegster: has joined #ruby

2017-06-08

[02:42:05] kegster: Ping timeout: 240 seconds
[02:43:54] kegster: has joined #ruby
[05:19:46] kegster: Ping timeout: 255 seconds
[05:26:12] kegster: has joined #ruby
[09:07:58] kegster: Ping timeout: 260 seconds
[09:09:44] kegster: has joined #ruby
[10:09:28] kegster: Ping timeout: 258 seconds
[10:10:46] kegster: has joined #ruby
[12:45:25] kegster: Ping timeout: 268 seconds
[12:51:52] kegster: has joined #ruby
[13:06:33] kegster: Ping timeout: 260 seconds
[13:14:10] kegster: has joined #ruby
[17:16:45] kegster: Ping timeout: 240 seconds
[17:17:55] kegster: has joined #ruby
[17:25:07] kegster: Ping timeout: 255 seconds
[17:27:11] kegster: has joined #ruby
[17:44:12] kegster: Ping timeout: 245 seconds
[17:51:34] kegster: has joined #ruby
[17:58:11] kegster: Ping timeout: 260 seconds
[18:01:29] kegster: has joined #ruby
[18:29:56] kegster: Ping timeout: 260 seconds
[18:31:48] kegster: has joined #ruby
[19:00:16] kegster: Ping timeout: 260 seconds
[19:01:14] kegster: has joined #ruby
[20:19:05] kegster: Ping timeout: 240 seconds
[20:29:50] kegster: has joined #ruby
[21:11:17] kegster: Read error: Connection reset by peer

2017-06-03

[03:01:44] kegster: has joined #ruby

2017-06-02

[00:16:03] kegster: Ping timeout: 268 seconds
[00:20:42] kegster: has joined #ruby
[02:02:07] kegster: Ping timeout: 245 seconds
[02:02:48] kegster: has joined #ruby
[04:50:57] kegster: Read error: Connection reset by peer

2017-05-30

[15:21:15] kegster: has joined #ruby

2017-05-26

[18:05:10] kegster: Ping timeout: 255 seconds
[18:18:38] kegster: has joined #ruby
[19:26:06] kegster: Ping timeout: 268 seconds
[19:26:28] kegster: has joined #ruby
[22:53:32] kegster: Read error: Connection reset by peer

2017-05-23

[08:48:03] kegster: Ping timeout: 240 seconds
[08:50:58] kegster: has joined #ruby

2017-05-21

[20:03:51] kegster: has joined #ruby

2017-05-20

[19:11:08] kegster: Quit: Shiner, TX makes good beer.

2017-05-19

[15:43:42] kegster: Ping timeout: 245 seconds
[15:47:30] kegster: has joined #ruby
[16:03:14] kegster: Read error: Connection reset by peer
[22:03:53] kegster: has joined #ruby

2017-05-18

[15:21:08] kegster: has joined #ruby

2017-05-17

[14:56:54] kegster: Read error: Connection reset by peer

2017-05-15

[14:25:25] kegster: Quit: Shiner, TX makes good beer.
[16:01:50] kegster: has joined #ruby

2017-05-08

[15:59:27] kegster: has joined #ruby
[16:01:16] kegster: I have a restful api that let's me run custom scripts, but everytime i run a function in the script, i need to check to make sure it doesn't error out, as only 1 script function can touch the db at a time-- so basically i need to wrap each function with something that checks the output to make sure it's not an error (json format)-- and keep retrying until it can get a valid response
[16:01:18] kegster: is this even possible?
[16:03:14] kegster: basically, i know it's an error only if there's some data in my json object
[16:04:12] kegster: i've tried begin rescue ensure, etc
[16:04:21] kegster: but i am not sure how to catch it based on the json output
[16:05:19] kegster: baweaver, so i guess i need to see if the "error" is throwing an exception OR if it's just json output huh
[16:05:30] kegster: sounds to me like it may actually be raising an exception, bc my code dies
[16:05:44] kegster: too much to explain what i mean by that, bc this is such a niche
[16:05:57] kegster: unfortunately no. i'm writing jruby for a scripting api for a 3rd party engine
[16:06:02] kegster: there is no "console"
[16:06:10] kegster: i have to manage my output, but if i get an error, it just dies on me lol
[16:06:15] kegster: so looks like ill need to do some trial/error ---
[16:06:25] kegster: can i jsut do begin, rescue, end, or do i need a resuce => something
[16:07:21] kegster: the problem is, i can only initiate the request via RESTFul api call--- and it then runs the script internally haha
[16:07:46] kegster: more specifically, NUIX -- i am not sure if i can coddle it from there
[16:07:51] kegster: i def am goign to try :)

2017-05-05

[09:26:24] kegster: Ping timeout: 260 seconds
[09:28:56] kegster: has joined #ruby
[15:10:10] kegster: Ping timeout: 240 seconds
[15:22:46] kegster: has joined #ruby
[18:49:12] kegster: Read error: Connection reset by peer

2017-05-04

[20:36:22] kegster: has joined #ruby
[20:37:23] kegster: I am using Ruby in a java environment, but one of the calls in the API returns a JAVA object or something--- how can i get this converted to a hash? i tried using this method and it didn't work: (http://stackoverflow.com/questions/5340977/bind-java-objects-to-ruby-hashes)
[20:41:03] kegster: ahhh yes i suppose so. they say "ruby" but i imagine it
[20:41:07] kegster: s jurby haha
[20:41:25] kegster: the sample code won't help- BUT i can provide the .to_json of the java object
[20:43:29] kegster: when i output the object that contains my debug data, there's a "family" key, shown here https://gist.github.com/anonymous/af9a7705a29e08ba97e23acd05159c12

2017-04-05

[07:32:00] kegster: Ping timeout: 260 seconds
[07:34:11] kegster: has joined #ruby
[07:34:13] kegster: has joined #ruby
[07:34:13] kegster: Changing host
[12:17:27] kegster: Ping timeout: 240 seconds
[12:18:15] kegster: has joined #ruby
[12:22:19] kegster: Read error: Connection reset by peer
[15:30:55] kegster: has joined #ruby
[22:56:13] kegster: has left #ruby: ("Leaving")

2017-04-02

[03:44:32] kegster: Ping timeout: 258 seconds
[03:45:42] kegster: has joined #ruby
[08:09:25] kegster: Ping timeout: 258 seconds
[08:10:02] kegster: has joined #ruby
[09:24:28] kegster: Ping timeout: 260 seconds
[09:26:36] kegster: has joined #ruby
[16:26:50] kegster: Ping timeout: 268 seconds
[16:29:26] kegster: has joined #ruby
[16:39:39] kegster: Ping timeout: 256 seconds
[16:40:26] kegster: has joined #ruby
[17:53:28] kegster: Ping timeout: 260 seconds
[17:55:55] kegster: has joined #ruby
[17:56:12] kegster: has joined #ruby
[17:56:12] kegster: Changing host
[18:14:56] kegster: Ping timeout: 260 seconds
[18:16:00] kegster: has joined #ruby
[19:28:46] kegster: Read error: Connection reset by peer
[19:31:16] kegster: has joined #ruby
[19:48:19] kegster: Quit: Shiner, TX makes good beer.
[19:53:18] kegster: has joined #ruby
[19:55:58] kegster: Client Quit
[19:57:07] kegster: has joined #ruby

2017-03-31

[07:06:19] kegster: has joined #ruby

2017-03-30

[22:18:25] kegster: Read error: Connection reset by peer

2017-03-29

[04:30:17] kegster: Ping timeout: 260 seconds
[04:33:17] kegster: has joined #ruby

2017-03-28

[16:13:32] kegster: Ping timeout: 256 seconds
[16:16:25] kegster: has joined #ruby
[19:37:17] kegster: Quit: Shiner, TX makes good beer.
[21:56:16] kegster: has joined #ruby

2017-03-26

[03:56:15] kegster: has joined #ruby
[04:03:58] kegster: Quit: Shiner, TX makes good beer.
[04:05:09] kegster: has joined #ruby

2017-03-24

[01:05:57] kegster: Ping timeout: 245 seconds

2016-07-28

[15:57:02] kegster: has joined #ruby
[15:57:35] kegster: hello. is there a way to create an object like... "foo = {}" but then to dynamically add an array like "foo.myArray = []"
[15:58:49] kegster: i basically just want to collect data into an object and then JSON it and send it off
[15:59:59] kegster: how can i do that? i don't know much about ruby BUT i have to write short scripts using an API that i'm already familiar with
[16:00:33] kegster: i tried to do some searching but it showed me how to create classes, etc, but i'm not looking for all that lol
[16:01:38] kegster: toretore, i'm looping through items and wanting to capture data from each item into a variable
[16:02:28] kegster: toretore, https://gist.github.com/kegster/ac6106fd72323481e1379d5224ee23ab
[16:02:34] kegster: understand :D
[16:03:15] kegster: ljarvis, was that to me?
[16:03:26] kegster: i just saw your link
[16:03:53] kegster: ljarvis, i see what you mean now. not sure how i missed your link heh
[16:05:41] kegster: toretore, well i want to manipulate har_output on the fly
[16:06:06] kegster: add and remove things to it
[16:06:45] kegster: right now i need har_output[:current_markups] as an array, but i may want to add to it later. like maybe :some_other_data
[16:07:01] kegster: i think i'm getting the hang of it though. i just wasn't used to ruby "shorthand" perhaps ---
[16:07:04] kegster: not sure if it's shorthand
[16:07:08] kegster: the Hash thing looks like it helps
[16:08:40] kegster: yeah i think i wasn't aware of what a 'hash' was lol
[16:12:52] kegster: toretore, how can i create har_output[:someVar] but whre someVar is an actual var>
[16:23:06] kegster: i would like to create a hash with a key that is a variable, not the actual "word' given -- for example current_markups -- what if that was a variable and not just the string current_markup
[16:23:11] kegster: not sure if that's better lol
[21:29:26] kegster: so this may be an odd question, but i'm running ruby scripts via an API through a console that doesn't allow including 3rd party modules, etc. If i pass the "data" var and log it, i get "{ itemGuid: 'ab659529-f163-4256-b269-5070412fe2d2' }" --- but I have tried data[:itemGuid] and data.itemGuid but get undefined each time. any ideas?
[21:31:15] kegster: i didn't think you could do data['itemGuid']
[21:31:19] kegster: backto the docs for me haha
[22:26:56] kegster: drbrain, yeah data['itemGuid'] is what i had to use lol. i barely started ruby not long ago, but barely use it. i just use it briefly to interact and extend an api. it's basic usage, however when i learned [:foo] i just figured ['foo'] didn't work with ruby lmao. crazy.
[22:27:17] kegster: what's the technical difference between doing 'foo' or :foo ?
[22:29:44] kegster: being new to ruby, how is that strange in ruby eyes?
[22:36:41] kegster: yeah it was sent from the API so who knows
[22:36:46] kegster: i see why the confusion now.
[22:36:54] kegster: it was more of a "i had to guess" heh
[22:37:16] kegster: is there a reason to use data['foo'] versus data[:foo] ?
[22:37:39] kegster: data['foo'] = 'kegster' vs. data[:foo] = 'kegster
[22:37:43] kegster: why have both? heh

2016-02-26

[17:01:18] kegster: Quit: Shiner, TX makes good beer.
[17:02:11] kegster: has joined #ruby
[17:04:46] kegster: has left #ruby: ()

2016-02-19

[05:55:47] kegster: if i have ng-model="" on a textarea, how can i prevent the line breaks from being removed?
[06:07:47] kegster: wrong channel :P
[22:09:03] kegster: Ping timeout: 240 seconds
[22:11:18] kegster: has joined #ruby

2016-02-09

[15:47:20] kegster: has joined #ruby