zdman135

Activity Graph

Page 1 of 1

2016-07-22

[02:22:01] zdman135: has joined #ruby
[03:22:46] zdman135: Quit: Leaving...

2016-07-21

[20:47:10] zdman135: has joined #ruby
[21:59:26] zdman135: Remote host closed the connection
[21:59:59] zdman135: has joined #ruby
[22:04:25] zdman135: Ping timeout: 252 seconds

2016-02-10

[16:59:31] zdman135: has joined #ruby
[17:12:29] zdman135: Read error: Connection reset by peer
[17:13:07] zdman135: has joined #ruby
[17:14:15] zdman135: Remote host closed the connection
[17:14:49] zdman135: has joined #ruby
[17:16:33] zdman135: Read error: Connection reset by peer
[17:17:16] zdman135: has joined #ruby
[17:18:00] zdman135: Remote host closed the connection
[17:19:38] zdman135: has joined #ruby
[17:27:11] zdman135: Read error: Connection reset by peer
[17:27:30] zdman135: has joined #ruby
[17:45:23] zdman135: Read error: Connection reset by peer
[17:45:42] zdman135: has joined #ruby
[17:51:27] zdman135: Read error: Connection reset by peer
[17:52:01] zdman135: has joined #ruby
[18:04:59] zdman135: Ping timeout: 264 seconds
[18:05:46] zdman135: has joined #ruby
[18:12:06] zdman135: Remote host closed the connection
[18:12:46] zdman135: has joined #ruby
[18:18:00] zdman135: Ping timeout: 245 seconds
[18:19:41] zdman135: has joined #ruby
[18:26:10] zdman135: Remote host closed the connection
[18:26:47] zdman135: has joined #ruby
[18:33:21] zdman135: Remote host closed the connection
[18:33:55] zdman135: has joined #ruby
[18:38:45] zdman135: Ping timeout: 260 seconds
[18:43:27] zdman135: has joined #ruby
[19:02:43] zdman135: Read error: Connection reset by peer
[19:03:05] zdman135: has joined #ruby
[19:11:15] zdman135: Ping timeout: 240 seconds
[19:23:05] zdman135: has joined #ruby
[19:44:15] zdman135: Ping timeout: 245 seconds
[19:47:07] zdman135: has joined #ruby
[20:07:40] zdman135: Ping timeout: 250 seconds
[20:11:00] zdman135: has joined #ruby
[20:14:59] zdman135: Read error: Connection reset by peer
[20:15:22] zdman135: has joined #ruby
[20:33:40] zdman135: Ping timeout: 260 seconds
[20:39:45] zdman135: has joined #ruby
[20:53:49] zdman135: Remote host closed the connection
[20:54:31] zdman135: has joined #ruby
[21:19:56] zdman135: Ping timeout: 240 seconds
[21:24:25] zdman135: has joined #ruby
[21:25:15] zdman135: Remote host closed the connection
[21:25:58] zdman135: has joined #ruby

2015-12-29

[02:19:35] zdman135: Quit: Leaving...

2015-12-28

[18:19:45] zdman135: has joined #ruby
[22:25:51] zdman135: Remote host closed the connection
[22:29:19] zdman135: has joined #ruby

2015-12-23

[16:29:03] zdman135: has joined #ruby
[17:16:02] zdman135: Remote host closed the connection
[18:08:05] zdman135: has joined #ruby
[18:15:24] zdman135: Remote host closed the connection
[18:18:42] zdman135: has joined #ruby
[18:28:38] zdman135: Read error: Connection reset by peer
[18:29:26] zdman135: has joined #ruby
[18:38:56] zdman135: Remote host closed the connection
[18:54:32] zdman135: has joined #ruby
[18:59:24] zdman135: Read error: Connection reset by peer
[19:00:00] zdman135: has joined #ruby
[20:32:21] zdman135: Ping timeout: 250 seconds

2015-12-22

[00:39:22] zdman135: has joined #ruby
[06:43:41] zdman135: Remote host closed the connection

2015-12-21

[16:06:20] zdman135: has joined #ruby
[16:07:52] zdman135: oh the hate towards nano, lol
[16:08:50] zdman135: oh the hate towards nano, lol
[18:06:02] zdman135: Read error: Connection reset by peer
[20:15:08] zdman135: has joined #ruby
[20:48:38] zdman135: Ping timeout: 265 seconds

2015-12-14

[18:44:36] zdman135: has joined #ruby
[20:38:34] zdman135: Quit: Leaving...

2015-09-24

[15:36:09] zdman135: has joined #ruby
[16:24:22] zdman135: Ping timeout: 244 seconds
[16:57:00] zdman135: has joined #ruby
[22:00:13] zdman135: Remote host closed the connection

2015-08-27

[21:56:00] zdman135: has joined #ruby
[22:49:20] zdman135: Remote host closed the connection

2015-07-10

[15:09:17] zdman135: has joined #ruby
[18:51:02] zdman135: Read error: Connection reset by peer

2015-07-09

[14:40:58] zdman135: has joined #ruby
[21:27:15] zdman135: Remote host closed the connection

2015-07-08

[17:49:02] zdman135: has joined #ruby
[18:10:56] zdman135: codewars is fun for like 20 min and then the novelty wears off
[18:11:15] zdman135: especially when you constantly get beat by people that are better than you
[18:11:48] zdman135: yeah improved me some
[18:12:00] zdman135: if I cared to actually look into it
[18:12:05] zdman135: if it was ok I got beat whatever
[18:12:16] zdman135: then no i didn't learn a damn thing
[21:18:54] zdman135: Remote host closed the connection

2015-06-10

[19:36:12] zdman135: has joined #ruby
[21:17:04] zdman135: Remote host closed the connection

2015-06-05

[17:44:59] zdman135: has joined #ruby
[19:07:10] zdman135: Remote host closed the connection

2015-06-04

[19:05:47] zdman135: has joined #ruby
[20:59:09] zdman135: Remote host closed the connection

2015-05-27

[15:50:42] zdman135: has joined #ruby
[22:21:14] zdman135: Remote host closed the connection

2015-04-30

[17:10:29] zdman135: is there an easy way to automatically populate a hash?
[17:13:47] zdman135: toretore: I have a json of arrays of arrays with hash values inside
[17:18:59] zdman135: sorry back, i had to type out some sample code so you'll understand what I was talking about. So in this sample code snippet: https://gist.github.com/zdman135/23960f995685739a55b8
[17:19:09] zdman135: you will see i am trying to create a hash from the output of an array
[17:19:23] zdman135: i just don't know what it would be
[17:21:14] zdman135: [k-: yeah that was a typo the last [0] element should be [i]
[17:22:31] zdman135: [k-: so the output of that array makes a 'string' and I want to place that into a hash { name => 'string' }
[17:22:35] zdman135: from that output
[17:23:01] zdman135: so basically that while loop will iterate through an array grabbing a bunch of strings. and i want to populate a hash automatically
[17:23:21] zdman135: toretore: sure give me a sec
[17:23:37] zdman135: [k-: name is constant
[17:24:09] zdman135: [k-: but i will probably do name1 name2 name3 creating it dynamically
[17:28:16] zdman135: toretore: here is the json data that i am trying to parse different pieces out of: https://gist.github.com/zdman135/5db58025f540368e0498
[17:30:50] zdman135: the array[0]['name']
[17:31:43] zdman135: array[0]['elements'[0]['name']
[17:32:01] zdman135: toretore: I have to iterate through the thing grabbing every name and scenario
[17:33:01] zdman135: toretore: I need a hash, i'll put in the gist comment and repost link what i need
[17:36:26] zdman135: toretore: I need to parse the json and find my test_name and test scenarios rough example: https://gist.github.com/zdman135/5db58025f540368e0498
[17:37:10] zdman135: toretore: unless there is an easier way in parsing json
[17:38:08] zdman135: toretore: yes I want a hash for just that one json array
[17:38:22] zdman135: toretore: but I want to be able to build an array of hashes
[17:39:18] zdman135: toretore: yeah, damn i didn't mean for it to get complicated, i thought it should be simple
[17:39:54] zdman135: [k-: some elements in the current json array are unnecessary, i guess i'm just trying to grab what I want and rebuild the thing
[17:40:38] zdman135: [k-: so .select method can help me pick what i want in the current json array?
[17:40:52] zdman135: let me play in irb and try it out
[17:41:29] zdman135: [k-: shit this is life changing
[17:41:40] zdman135: toretore: pretty much
[17:42:01] zdman135: toretore: and rebuild it into a new array i guess or pass it to an http request
[17:42:30] zdman135: thanks i have to give this all a shot
[17:42:38] zdman135: i was sorta going about this the hard way
[17:43:08] zdman135: toretore: so will it automatically iterate through the entire array?
[17:43:26] zdman135: cause i was doing a while loop before forcing it to go through each element in the array
[17:44:28] zdman135: toretore: I am learning ruby basics
[17:44:49] zdman135: toretore: I'm a beginner just trying to do some basic stuff
[17:55:01] zdman135: toretore: how do i take your example and make everything inside the steps array to .map into a value inside of feature_array?
[17:55:24] zdman135: toretore: with your current example its good it just makes a bunch of arrays but I won't be able to tell what is what
[18:03:20] zdman135: so one last question, I updated my gist - https://gist.github.com/zdman135/5db58025f540368e0498 I now have 2 elements in my array and not one, how do I do a .map to iterate on the array but keeping the 2 elements apart? I need to iterate through one and then iterate through the 2nd element