SeepingN

Activity Graph

Page 1 of 9 | Next »

2019-03-19

[05:55:02] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[07:25:31] SeepingN: has joined #ruby

2019-03-18

[15:43:13] SeepingN: has joined #ruby

2019-03-17

[00:46:56] SeepingN: Quit: The system is going down for reboot NOW!

2019-03-16

[01:02:35] SeepingN: Quit: The system is going down for reboot NOW!
[19:23:52] SeepingN: has joined #ruby

2019-03-15

[04:11:16] SeepingN: Quit: The system is going down for reboot NOW!
[19:03:33] SeepingN: has joined #ruby

2019-03-14

[01:00:31] SeepingN: Quit: The system is going down for reboot NOW!
[15:21:39] SeepingN: has joined #ruby

2019-03-13

[00:58:21] SeepingN: Quit: The system is going down for reboot NOW!
[14:25:49] SeepingN: has joined #ruby
[16:06:26] SeepingN: Ping timeout: 250 seconds
[16:37:05] SeepingN: has joined #ruby

2019-03-12

[01:02:43] SeepingN: Quit: The system is going down for reboot NOW!
[20:29:41] SeepingN: has joined #ruby
[22:54:05] SeepingN: Quit: The system is going down for reboot NOW!
[23:01:46] SeepingN: has joined #ruby

2019-03-11

[19:33:53] SeepingN: has joined #ruby

2019-03-09

[02:34:01] SeepingN: Quit: The system is going down for reboot NOW!

2019-03-08

[02:07:10] SeepingN: Quit: The system is going down for reboot NOW!
[06:08:29] SeepingN: has joined #ruby
[20:43:32] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:01:26] SeepingN: has joined #ruby

2019-03-07

[01:48:38] SeepingN: ugh damnit. I'm trying to find all Devices of a certain type. That type is referred to as Device.product, which is a lookup from another table. We want to match all part_numbers with a certain string in them. Device.where(:product =~ /IQ6/).last.product ...does not give me "IQ6". It seems the where filters out nothing and I can put almost any garbage in there and get back the full Device list
[01:52:00] SeepingN: activerecord. mysql backend.
[01:52:30] SeepingN: .. the events table is in a separate database that I can't access, otherwise I'd be done with an SQL query :\
[01:53:25] SeepingN: Devices.product is defined simply as: PartNumber.product_for_part_num(part_num)
[01:55:54] SeepingN: from /enphase/enlighten/shared/bundle/ruby/2.2.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
[01:55:54] SeepingN: Unknown column 'product' in 'where clause': SELECT `devices`.* FROM `devices` WHERE (product LIKE '%IQ6%') ORDER BY `devices`.`id` DESC LIMIT 1
[01:56:05] SeepingN: it's unfortunately not a column of Device
[01:57:32] SeepingN: it's defined in PartNumber as PartNumber.product_for_part_num(part_num)
[01:58:29] SeepingN: part_numbers is a table with id, part_num, product (the english desc of the product), and 2 unrelated columns
[01:59:39] SeepingN: Device.part_num... but that part_num is a longer form. THe ones in the lookup table "part_numbers" are truncated to the first 9 characters... no subversions
[02:00:59] SeepingN: I want all devices marked as "IQ7" qhich may include "IQ7+" and "IQ7 vartiation 9482". ie: regex. or I could just list them all in the query aqnd do an "IN" equiv
[02:01:16] SeepingN: I have no code. I'm trying to start a query to build a data report
[02:01:42] SeepingN: I usually do this in SQL. Maybe I should try to get that to work and just pass a full query to the connection
[02:01:56] SeepingN: hmmmm ok thanks
[02:03:18] SeepingN: well they'll all match. need to filter to a specifci substring
[02:03:29] SeepingN: every Device will have a matchin in that lookup table
[02:05:36] SeepingN: but the substring is not from part_num, it's from the table "part_numbers", column "product".
[02:05:46] SeepingN: that's the part that's tripping me up
[02:06:05] SeepingN: but I think I can modify that last line to work
[02:10:09] SeepingN: I gotta head home, will be looking at this more later. thanks havenwood
[02:16:17] SeepingN: Ping timeout: 245 seconds
[05:31:33] SeepingN: has joined #ruby
[08:05:53] SeepingN: Ping timeout: 245 seconds
[14:33:06] SeepingN: has joined #ruby
[16:23:39] SeepingN: sure it's equal. but is it realy REALLY equal?
[16:25:33] SeepingN: entire_ruby_app ===== other_ruby_app ?
[19:19:57] SeepingN: Quit: The system is going down for reboot NOW!
[20:41:02] SeepingN: has joined #ruby

2019-03-06

[02:47:13] SeepingN: Quit: The system is going down for reboot NOW!
[20:12:27] SeepingN: has joined #ruby

2019-03-05

[01:56:03] SeepingN: Quit: The system is going down for reboot NOW!
[17:22:31] SeepingN: has joined #ruby

2019-03-04

[17:45:05] SeepingN: has joined #ruby
[18:36:19] SeepingN: Quit: The system is going down for reboot NOW!
[20:20:44] SeepingN: has joined #ruby

2019-03-03

[17:10:31] SeepingN: has joined #ruby
[17:25:06] SeepingN: Quit: The system is going down for reboot NOW!

2019-03-01

[05:59:35] SeepingN: Ping timeout: 255 seconds
[14:43:04] SeepingN: has joined #ruby
[23:15:19] SeepingN: Quit: The system is going down for reboot NOW!

2019-02-28

[02:53:49] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:10:17] SeepingN: has joined #ruby
[07:24:39] SeepingN: Quit: The system is going down for reboot NOW!
[15:35:35] SeepingN: has joined #ruby
[17:33:44] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:34:13] SeepingN: has joined #ruby

2019-02-27

[01:52:31] SeepingN: Quit: The system is going down for reboot NOW!
[15:41:51] SeepingN: has joined #ruby

2019-02-26

[02:07:32] SeepingN: Ping timeout: 245 seconds
[03:53:48] SeepingN: has joined #ruby
[07:58:37] SeepingN: Quit: The system is going down for reboot NOW!
[19:45:27] SeepingN: has joined #ruby

2019-02-25

[18:36:59] SeepingN: has joined #ruby
[22:08:56] SeepingN: Disconnected by services

2019-02-23

[01:49:02] SeepingN: Quit: The system is going down for reboot NOW!

2019-02-22

[00:10:10] SeepingN: you have macbook written all over you
[00:41:52] SeepingN: yall ain't serious enough yet
[02:01:10] SeepingN: Quit: The system is going down for reboot NOW!
[19:50:00] SeepingN: has joined #ruby

2019-02-21

[05:54:54] SeepingN: Quit: The system is going down for reboot NOW!
[20:33:23] SeepingN: has joined #ruby
[20:56:07] SeepingN: unknown protocol, not even unsupported. something is wacky
[21:15:05] SeepingN: I've had a hell of journey with ruby and ssh but a lot of it was with crappy libraries back in 1.8.7 era. 2.0 era seems to be doing ok. I'm not sure what version my server is sitting on right now, it's nothing super recent :\
[21:19:04] SeepingN: nice. I'd like to be up to date but just moving out of 1.8.7 to 2.0 was such a big deal, esp around ssh type things. the libraries got drastically better but the calls also worked differently. Ended up having to touch dozens of scripts
[23:36:05] SeepingN: "Note much of the advice that follows is now outdated due to the magnificent efforts of the RubyInstaller team in bringing stability, compatibility and performance to Ruby on Windows"

2019-02-20

[15:01:11] SeepingN: has joined #ruby
[20:08:04] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:08:31] SeepingN: has joined #ruby
[20:08:43] SeepingN: Remote host closed the connection
[20:12:33] SeepingN: has joined #ruby

2019-02-16

[00:00:14] SeepingN: has joined #ruby
[05:41:25] SeepingN: Excess Flood
[05:45:41] SeepingN: has joined #ruby
[08:07:24] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:33:40] SeepingN: has joined #ruby
[19:45:51] SeepingN: Quit: The system is going down for reboot NOW!

2019-02-15

[01:51:07] SeepingN: Quit: The system is going down for reboot NOW!
[21:29:05] SeepingN: has joined #ruby
[22:31:43] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:32:07] SeepingN: has joined #ruby
[22:32:21] SeepingN: Remote host closed the connection
[22:40:47] SeepingN: has joined #ruby
[23:53:25] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:53:53] SeepingN: has joined #ruby
[23:54:03] SeepingN: Remote host closed the connection

2019-02-14

[22:03:17] SeepingN: has joined #ruby

2019-02-13

[01:58:25] SeepingN: Quit: The system is going down for reboot NOW!
[15:32:22] SeepingN: has joined #ruby
[22:48:57] SeepingN: Disconnected by services

2019-02-12

[01:20:53] SeepingN: Quit: The system is going down for reboot NOW!
[20:34:32] SeepingN: has joined #ruby
[22:46:45] SeepingN: but you do have a blog?
[22:46:59] SeepingN: add tag: ruby and viola! you have started a ruby blog

2019-02-11

[18:54:44] SeepingN: has joined #ruby
[20:07:10] SeepingN: sounds like you meant --install and hit the space bar and borked your command
[22:05:01] SeepingN: Ping timeout: 246 seconds
[22:07:57] SeepingN: has joined #ruby

2019-02-09

[01:12:29] SeepingN: Quit: The system is going down for reboot NOW!
[01:40:59] SeepingN: has joined #ruby
[03:44:20] SeepingN: Quit: The system is going down for reboot NOW!

2019-02-07

[01:55:40] SeepingN: Quit: The system is going down for reboot NOW!
[19:04:58] SeepingN: has joined #ruby

2019-02-06

[01:57:16] SeepingN: Quit: The system is going down for reboot NOW!
[20:11:24] SeepingN: has joined #ruby
[21:35:42] SeepingN: I do that in irb/console but haven't bothered dealing with pry

2019-02-05

[01:04:14] SeepingN: Quit: The system is going down for reboot NOW!
[20:48:47] SeepingN: has joined #ruby
[22:03:07] SeepingN: Ping timeout: 240 seconds
[22:06:57] SeepingN: has joined #ruby

2019-02-04

[15:16:24] SeepingN: has joined #ruby
[15:30:48] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:31:25] SeepingN: has joined #ruby
[15:31:26] SeepingN: Remote host closed the connection
[17:38:17] SeepingN: has joined #ruby
[18:09:55] SeepingN: Ping timeout: 244 seconds
[18:36:05] SeepingN: has joined #ruby
[19:19:26] SeepingN: right. which is option 2
[19:19:53] SeepingN: raise an exception or return nil or false etc
[22:41:05] SeepingN: &fake ElectricalComponents.quote

2019-02-02

[08:21:00] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…

2019-02-01

[02:13:26] SeepingN: Quit: The system is going down for reboot NOW!
[16:49:27] SeepingN: has joined #ruby

2019-01-31

[01:49:14] SeepingN: Quit: The system is going down for reboot NOW!
[21:27:17] SeepingN: has joined #ruby

2019-01-30

[02:04:34] SeepingN: Ping timeout: 250 seconds
[20:10:20] SeepingN: has joined #ruby

2019-01-29

[01:35:22] SeepingN: Quit: The system is going down for reboot NOW!
[21:19:36] SeepingN: has joined #ruby

2019-01-28

[21:10:33] SeepingN: has joined #ruby

2019-01-25

[01:49:56] SeepingN: Quit: The system is going down for reboot NOW!

2019-01-24

[01:59:56] SeepingN: Quit: The system is going down for reboot NOW!
[20:43:21] SeepingN: has joined #ruby

2019-01-23

[02:00:11] SeepingN: Quit: The system is going down for reboot NOW!
[15:34:59] SeepingN: has joined #ruby
[16:33:11] SeepingN: exec("env ruby /path/to/same/script.rb")
[16:33:36] SeepingN: I believe exec replaces the current environment with a new one
[18:31:02] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:31:30] SeepingN: has joined #ruby
[18:31:42] SeepingN: Remote host closed the connection
[18:35:45] SeepingN: has joined #ruby
[18:50:24] SeepingN: Quit: The system is going down for reboot NOW!
[18:56:58] SeepingN: has joined #ruby
[20:30:10] SeepingN: Quit: The system is going down for reboot NOW!
[21:06:44] SeepingN: has joined #ruby
[22:10:59] SeepingN: highly competitive field, that is

2019-01-22

[20:45:02] SeepingN: has joined #ruby
[22:40:54] SeepingN: oh man, don't do that

2019-01-19

[01:30:13] SeepingN: Quit: The system is going down for reboot NOW!

2019-01-18

[02:14:11] SeepingN: Ping timeout: 268 seconds
[18:04:01] SeepingN: has joined #ruby
[18:09:50] SeepingN: Quit: The system is going down for reboot NOW!
[18:10:11] SeepingN: has joined #ruby
[19:06:33] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:07:01] SeepingN: has joined #ruby
[19:07:11] SeepingN: Remote host closed the connection
[19:08:06] SeepingN: has joined #ruby
[19:37:00] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:37:34] SeepingN: has joined #ruby
[19:37:37] SeepingN: Remote host closed the connection
[19:56:45] SeepingN: has joined #ruby
[20:08:48] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:09:22] SeepingN: has joined #ruby
[20:09:26] SeepingN: Remote host closed the connection
[21:10:28] SeepingN: has joined #ruby
[21:59:53] SeepingN: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:02:20] SeepingN: has joined #ruby
[22:02:25] SeepingN: Remote host closed the connection
[22:03:00] SeepingN: has joined #ruby
[22:07:34] SeepingN: Ping timeout: 272 seconds
[22:20:11] SeepingN: has joined #ruby

2019-01-17

[02:23:30] SeepingN: Quit: The system is going down for reboot NOW!
[20:10:42] SeepingN: has joined #ruby

2019-01-16

[01:33:22] SeepingN: Ping timeout: 258 seconds
[21:24:56] SeepingN: has joined #ruby
[21:38:06] SeepingN: I like the rubyness of the 2nd, but like the similarity in the two possible outcomes for the 1st snip
[21:39:01] SeepingN: Q you have to wonder was consdiered or expected implicitly: if @instance << x fails somehow, then what does it do
[21:40:00] SeepingN: something wonkyh happens to @instance and you fail to append "...", you get an exception.
[21:45:47] SeepingN: ahead = false
[21:47:59] SeepingN: "else" what
[21:48:28] SeepingN: returns nil, though more likely crashes with exception
[21:48:39] SeepingN: I assumed it did matter
[21:55:35] SeepingN: and correct
[22:02:26] SeepingN: &>> nil << '...'
[22:02:35] SeepingN: nil. gets you every time
[22:03:11] SeepingN: but that may or may not be a concern depending on the code and it's accessability by outside things
[23:03:05] SeepingN: look, answer, code for 10 minutes, repeat

2019-01-15

[01:40:50] SeepingN: ah, push it
[02:22:37] SeepingN: Ping timeout: 246 seconds
[15:21:20] SeepingN: has joined #ruby
[16:03:21] SeepingN: Ping timeout: 258 seconds
[16:54:59] SeepingN: has joined #ruby
[17:49:18] SeepingN: Quit: The system is going down for reboot NOW!
[17:49:38] SeepingN: has joined #ruby

2019-01-14

[19:24:40] SeepingN: has joined #ruby

2019-01-12

[02:21:05] SeepingN: Quit: The system is going down for reboot NOW!

2019-01-11

[02:01:36] SeepingN: Quit: The system is going down for reboot NOW!
[20:48:42] SeepingN: has joined #ruby

2019-01-10

[06:57:49] SeepingN: Quit: The system is going down for reboot NOW!
[16:06:45] SeepingN: has joined #ruby
[18:40:22] SeepingN: Ping timeout: 258 seconds
[19:08:44] SeepingN: has joined #ruby
[21:06:53] SeepingN: So my issue with the console not returning numeric values is something to do with "wirb"

2019-01-09

[23:50:05] SeepingN: irb(main):016:0> "wow"
[23:50:33] SeepingN: 2.2.3 according to RUBY_VERSION
[23:52:06] SeepingN: conf.echo is true... thinking maybe someone else in engineering changed it
[23:52:24] SeepingN: well there's that too, yes. we just switched our team to india too, so
[23:52:32] SeepingN: ..going to be old for a while I imagine
[23:56:46] SeepingN: it will print out objects too, such as User.last