phoo1234567

Activity Graph

Page 1 of 1

2018-05-14

[06:03:07] phoo1234567: Quit: Gotta go

2018-05-10

[22:50:27] phoo1234567: Ping timeout: 240 seconds
[22:50:46] phoo1234567: has joined #ruby

2018-05-06

[21:53:20] phoo1234567: *.net *.split
[21:54:08] phoo1234567: has joined #ruby

2018-04-27

[21:04:07] phoo1234567: has joined #ruby

2017-07-26

[11:54:58] phoo1234567: has joined ##new2ruby
[11:54:58] phoo1234567: has joined #ruby
[14:20:42] phoo1234567: Quit: Gotta go

2017-04-20

[03:31:15] phoo1234567: Quit: Gotta go

2017-04-19

[13:39:19] phoo1234567: has joined ##new2ruby
[13:39:19] phoo1234567: has joined #ruby

2017-04-18

[01:07:54] phoo1234567: Quit: Gotta go

2017-04-17

[17:40:33] phoo1234567: has joined ##new2ruby
[17:40:33] phoo1234567: has joined #ruby

2017-04-07

[00:07:17] phoo1234567: Quit: Gotta go

2017-04-06

[17:20:20] phoo1234567: has joined ##new2ruby
[17:20:20] phoo1234567: has joined #ruby

2017-04-05

[17:13:20] phoo1234567: has joined #ruby
[17:13:21] phoo1234567: has joined ##new2ruby
[23:15:17] phoo1234567: Quit: Gotta go

2017-04-01

[12:16:08] phoo1234567: has joined ##new2ruby
[12:16:08] phoo1234567: has joined #ruby
[22:37:11] phoo1234567: Quit: Gotta go

2017-03-27

[14:09:39] phoo1234567: has joined ##new2ruby
[14:09:39] phoo1234567: has joined #ruby
[22:31:58] phoo1234567: Quit: Gotta go

2017-03-19

[22:42:38] phoo1234567: Quit: Gotta go

2017-03-18

[13:34:36] phoo1234567: has joined ##new2ruby
[13:34:36] phoo1234567: has joined #ruby

2016-06-22

[16:04:51] phoo1234567: has joined ##new2ruby
[16:04:51] phoo1234567: has joined #ruby
[22:54:13] phoo1234567: Quit: Gotta go

2016-06-19

[17:24:09] phoo1234567: has joined ##new2ruby
[17:24:09] phoo1234567: has joined #ruby
[23:02:59] phoo1234567: Quit: Gotta go

2016-06-18

[11:09:50] phoo1234567: has joined ##new2ruby
[11:09:50] phoo1234567: has joined #ruby
[14:24:51] phoo1234567: Quit: Gotta go
[17:43:00] phoo1234567: has joined ##new2ruby
[17:43:00] phoo1234567: has joined #ruby
[23:55:17] phoo1234567: Quit: Gotta go

2016-06-17

[22:03:12] phoo1234567: has joined ##new2ruby
[22:03:12] phoo1234567: has joined #ruby
[22:43:10] phoo1234567: Quit: Gotta go

2016-06-02

[10:10:45] phoo1234567: has joined ##new2ruby
[10:10:45] phoo1234567: has joined #ruby
[23:15:45] phoo1234567: Quit: Gotta go

2016-05-31

[00:23:41] phoo1234567: Quit: Gotta go

2016-05-30

[18:24:01] phoo1234567: has joined ##new2ruby
[18:24:01] phoo1234567: has joined #ruby

2016-05-01

[01:34:00] phoo1234567: Quit: Leaving
[18:34:17] phoo1234567: has joined #ruby
[22:57:54] phoo1234567: Quit: Gotta go

2016-04-30

[18:41:16] phoo1234567: has joined #ruby
[20:05:21] phoo1234567: Quit: Leaving
[21:51:41] phoo1234567: has joined #ruby

2016-04-28

[00:03:33] phoo1234567: Quit: Leaving

2016-04-27

[00:13:54] phoo1234567: Quit: Leaving
[15:31:36] phoo1234567: has joined #ruby

2016-04-26

[14:02:54] phoo1234567: has joined #ruby
[16:51:03] phoo1234567: Is there a better pasting site than pastebin.com for Ruby code?
[16:52:04] phoo1234567: Thanks, toretore.
[17:08:11] phoo1234567: I've been trying to learn the CSV capabilities in ruby and I can't seem to figure out how to get back to a CSV:Table from an array of CSV:Rows.
[17:08:21] phoo1234567: Here is a gist: https://gist.github.com/anonymous/de677118f02945fb6107767697af92ee
[17:08:56] phoo1234567: For me, this all stems from the fact that there is no sort_by! method.
[17:09:10] phoo1234567: And sort_by returns an array of CSV::Rows.
[17:09:41] phoo1234567: No, it's really not that, ruby[bot].
[17:10:06] phoo1234567: I'm trying to learn how to get back to a CSV::Table from an array of CSV:Rows.
[17:10:48] phoo1234567: Oh, neha-, thanks.
[17:10:52] phoo1234567: Sorry for the noise.
[17:12:24] phoo1234567: toretore: I'm trying to import a CSV file, sort it and then work with it.
[17:12:41] phoo1234567: Yes, toretore, beginner.
[17:13:56] phoo1234567: Well, eventually, manipulate based on field contents, calculate means, standard deviations, ...
[17:14:19] phoo1234567: If I could just get past the CSV::Table hump, I can continue reading.
[17:14:41] phoo1234567: I'm sorry if this was to silly and I'm sorry for the noise.
[17:14:45] phoo1234567: Thanks for trying.
[17:16:24] phoo1234567: It was pretty easy to use the symbols to access the columns, but OK. I'll try another approach.
[17:16:42] phoo1234567: The data I have is in a tab delimited file, Mon_Ouie.
[17:17:25] phoo1234567: OK, toretore, thanks for your help.
[17:23:58] phoo1234567: I'm afraid that was my fault...
[17:24:33] phoo1234567: Oh, simple: csv3=CSV::Table.new(csv2).
[17:24:39] phoo1234567: Thanks for the nudge, smathy.
[17:25:23] phoo1234567: I still wish I could sort the imported CSV in place.
[17:25:32] phoo1234567: Maybe toretore's suggestion is best.
[17:26:13] phoo1234567: No, smathy, I wasn't pointing fingers and I'm sorry if it appears that way.
[17:26:29] phoo1234567: Boy, *rough* channel.
[17:26:57] phoo1234567: Is there a kindergarten ruby channel?
[17:27:51] phoo1234567: I didn't see it in /list but I'll look again.
[17:30:06] phoo1234567: I've got pretty thick skin. Not a problem. I just don't like to generate too much noise.
[17:31:20] phoo1234567: Oh, I was completely unaware of my faux pas.
[17:31:35] phoo1234567: I didn't intend to resist anything but thanks for the heads up.
[17:31:54] phoo1234567: Thanks very much havenwood!
[17:32:33] phoo1234567: Yes, I see that now. It was your nudge that made me understand that.
[17:33:48] phoo1234567: Meh... I've been around IRC for a long time. I understand the nuances.
[17:33:57] phoo1234567: And thanks again for the help.
[17:34:23] phoo1234567: I'll check out the kindergarten havenwood suggested.
[17:35:33] phoo1234567: Yes, I'm already on that path. I thought the CSV stuff was the right way to go based on the web reading I did.
[17:35:55] phoo1234567: It did seem to solve the header interpretation.
[17:36:09] phoo1234567: Lunch time over. Back to the grind.
[17:40:19] phoo1234567: Yes, that's how I got to this point and I couldn't see the forest through the trees.
[17:40:58] phoo1234567: Thanks for taking the extra time to help me out, toretore.
[17:42:53] phoo1234567: Sweet! No more temp variable csv3.

2016-01-16

[14:57:46] phoo1234567: has joined #ruby
[18:45:38] phoo1234567: Quit: Leaving

2015-07-25

[17:32:07] phoo1234567: has joined #ruby
[17:38:44] phoo1234567: Max SendQ exceeded
[17:39:08] phoo1234567: has joined #ruby
[19:59:41] phoo1234567: Quit: Leaving

2015-07-24

[13:25:15] phoo1234567: has joined #ruby
[13:31:49] phoo1234567: Max SendQ exceeded
[13:32:13] phoo1234567: has joined #ruby
[23:46:51] phoo1234567: Quit: Leaving

2015-07-23

[01:15:37] phoo1234567: Quit: Leaving

2015-07-22

[16:59:05] phoo1234567: has joined #ruby
[17:05:46] phoo1234567: Max SendQ exceeded
[17:06:08] phoo1234567: has joined #ruby

2015-07-21

[17:12:57] phoo1234567: has joined #ruby
[17:19:10] phoo1234567: Max SendQ exceeded
[17:19:35] phoo1234567: has joined #ruby
[23:17:22] phoo1234567: Quit: Leaving

2015-07-15

[18:38:58] phoo1234567: has joined #ruby
[18:45:10] phoo1234567: Max SendQ exceeded
[18:45:33] phoo1234567: has joined #ruby
[18:48:14] phoo1234567: I'm sure I'm being silly but is there a way to get CSV to ignore the first line of a .csv file and force :headers => :second_row?
[18:50:02] phoo1234567: I've tried "a=CSV.read("./TEST-03.EXP", {:headers => :first_row, :col_sep => "\t"} ).drop(1)"
[18:51:27] phoo1234567: Hi jhass, not yet but it will be eventually. I'm a hardware engineer manipulating netlist files.
[18:51:40] phoo1234567: (of course, netlist files never get _big_, really)
[18:52:14] phoo1234567: I just assumed that there was a "second_row" method somewhere.
[18:52:45] phoo1234567: Just some stupid OrCAD output.
[18:53:26] phoo1234567: Thanks, Ox0dea, I think that's most elegant.
[18:54:36] phoo1234567: Yes, jhass. Also a good solution.
[18:55:34] phoo1234567: Ox0dea, funny handle. I thought my tab completion was broken until I realized it was "Ox" not "0x".
[18:57:38] phoo1234567: Why should you? It makes you unique.
[23:39:55] phoo1234567: Quit: Leaving

2015-07-14

[16:03:24] phoo1234567: has joined #ruby
[16:09:33] phoo1234567: Max SendQ exceeded
[16:09:56] phoo1234567: has joined #ruby
[17:58:56] phoo1234567: Quit: Leaving

2015-06-30

[00:18:39] phoo1234567: Quit: Leaving

2015-06-29

[18:15:44] phoo1234567: has joined #ruby
[18:21:56] phoo1234567: Max SendQ exceeded
[18:22:20] phoo1234567: has joined #ruby

2015-06-06

[00:33:19] phoo1234567: Quit: Leaving

2015-06-05

[12:44:07] phoo1234567: has joined #ruby
[12:50:11] phoo1234567: Max SendQ exceeded
[12:50:34] phoo1234567: has joined #ruby

2014-05-16

[16:27:24] phoo1234567: Hi All, I have a really crappy CSV file with no control over its creation that I'm trying to include multiline columns in.
[16:27:34] phoo1234567: Are there any tricks I can use?
[16:27:51] phoo1234567: My google-fu seems weak today.
[16:28:37] phoo1234567: I've tried CSV and FasterCSV.
[16:28:48] phoo1234567: I keep getting malformed CSV errors.
[16:29:03] phoo1234567: But I can't seem to find a regex to match all of the corner cases.
[16:29:54] phoo1234567: http://rubydoc.info/stdlib/csv/CSV
[16:31:56] phoo1234567: I think I'll just have to parse the CSV file prior acutually using CSV to parse it.
[16:32:33] phoo1234567: yes, require 'csv' and can't figure out how to use a regex as the row_sep.
[16:33:39] phoo1234567: Oh. Yes, I suppose it does...
[16:34:06] phoo1234567: I will pre-massage the file prior to using the CSV lib on it.
[16:34:12] phoo1234567: It will be very fragile.
[16:34:18] phoo1234567: Thanks, csmrfx.
[16:34:54] phoo1234567: I was hoping there was a link describing multiline matching.
[16:35:02] phoo1234567: I can't seem to find one.
[16:35:25] phoo1234567: Umm. I _thought_ it could contain newlines.
[16:36:29] phoo1234567: Am I confused somehow?
[16:37:26] phoo1234567: csmrfx, Thanks. Just looking for a google link on common row_sep handling.
[16:37:32] phoo1234567: Thanks, though.
[16:41:43] phoo1234567: Yes, I saw that.
[16:42:15] phoo1234567: Unfortunately, some of my "columns" have newlines contained in them.
[16:42:39] phoo1234567: I'm just trying to find the right regexp to "create" a new row_sep.
[16:42:47] phoo1234567: I'll find it soon engouh.
[16:43:04] phoo1234567: It will be very fragile, though.
[16:43:46] phoo1234567: Oooh.. Mabe .flatten.
[16:44:56] phoo1234567: Something's not right, for sure.
[16:45:13] phoo1234567: I maybe need a break.
[16:46:02] phoo1234567: Thanks for listening, csmrfx.
[16:46:23] phoo1234567: I have no control over the creation of the source.
[16:46:53] phoo1234567: I'm just trying to come up with a magic regex to match the _real_ boundaries.
[16:47:12] phoo1234567: Clearly not _sanctioned_ CSV.
[16:47:25] phoo1234567: newlines and Windows contained in one of the fields.
[16:47:42] phoo1234567: I just know of CSV and FasterCSV.
[16:47:46] phoo1234567: What's the third?
[16:48:01] phoo1234567: Oh, let me google.
[16:48:40] phoo1234567: (Windows newlines)

2014-05-14

[14:57:32] phoo1234567: Hi All, any CSV experienced Ruby users here?
[14:58:09] phoo1234567: I'm having an issue defining row_sep
[14:58:39] phoo1234567: One of my data fields contains newlines in addition to the _real_ row_sep.