TomyWork

Activity Graph

Page 1 of 11 | Next »

2019-08-23

[07:01:30] TomyWork: has joined #ruby
[15:43:28] TomyWork: Ping timeout: 246 seconds

2019-08-22

[06:53:40] TomyWork: has joined #ruby
[17:04:04] TomyWork: Ping timeout: 246 seconds

2019-08-21

[07:38:30] TomyWork: has joined #ruby
[15:34:34] TomyWork: Ping timeout: 246 seconds

2019-08-20

[06:57:41] TomyWork: has joined #ruby
[15:43:31] TomyWork: Remote host closed the connection

2019-08-19

[06:52:22] TomyWork: has joined #ruby
[15:48:25] TomyWork: Ping timeout: 246 seconds

2019-08-16

[06:56:50] TomyWork: has joined #ruby
[13:36:04] TomyWork: Ping timeout: 246 seconds

2019-08-15

[06:54:25] TomyWork: has joined #ruby
[15:01:34] TomyWork: Ping timeout: 246 seconds

2019-08-14

[07:15:32] TomyWork: has joined #ruby
[15:02:01] TomyWork: Ping timeout: 246 seconds

2019-08-13

[06:52:28] TomyWork: has joined #ruby
[07:06:28] TomyWork: Ping timeout: 246 seconds
[08:43:32] TomyWork: has joined #ruby
[10:30:10] TomyWork: Ping timeout: 246 seconds
[11:07:37] TomyWork: has joined #ruby
[15:53:13] TomyWork: Ping timeout: 246 seconds
[15:53:34] TomyWork: has joined #ruby
[17:04:16] TomyWork: Ping timeout: 246 seconds

2019-08-12

[07:02:27] TomyWork: has joined #ruby
[07:51:01] TomyWork: Ping timeout: 246 seconds
[08:14:06] TomyWork: has joined #ruby
[16:45:28] TomyWork: Ping timeout: 246 seconds

2019-08-10

[04:58:10] TomyWork: has joined #ruby
[10:16:00] TomyWork: Remote host closed the connection
[10:30:37] TomyWork: has joined #ruby
[10:52:40] TomyWork: Remote host closed the connection

2019-08-09

[06:54:48] TomyWork: has joined #ruby
[13:45:46] TomyWork: Remote host closed the connection

2019-08-08

[06:56:24] TomyWork: has joined #ruby
[16:26:16] TomyWork: Ping timeout: 246 seconds

2019-08-07

[06:58:01] TomyWork: has joined #ruby
[16:24:16] TomyWork: Ping timeout: 246 seconds

2019-08-06

[09:43:21] TomyWork: has joined #ruby
[16:05:28] TomyWork: Ping timeout: 246 seconds

2019-08-05

[07:01:47] TomyWork: has joined #ruby
[07:48:55] TomyWork: Ping timeout: 246 seconds
[07:50:33] TomyWork: has joined #ruby
[08:11:47] TomyWork: Remote host closed the connection
[08:12:18] TomyWork: has joined #ruby
[08:17:44] TomyWork: Remote host closed the connection
[08:25:00] TomyWork: has joined #ruby
[15:29:31] TomyWork: Ping timeout: 246 seconds

2019-08-02

[07:07:48] TomyWork: has joined #ruby
[13:12:24] TomyWork: I'm looking for something that is roughly equivalent to backticks or IO.popen(...).read but that will throw an exception or something when the exit status is nonzero
[13:22:30] TomyWork: >> IO.popen('false') { |io| x = io.read; io.close; throw 'nonzero!' unless $?.success?; x } # this works, but it's kinda verbose. any idea how to shorten it significantly?
[13:23:01] TomyWork: works on my machine *shrug*
[13:27:52] TomyWork: >> IO.popen('echo foo') { |io| begin io.read; ensure io.close; throw 'Fehler!' unless $?.success?; end } # Got it a little shorter using an "ensure" for the error handling
[13:28:24] TomyWork: actually it's longer, drat
[13:29:51] TomyWork: is there some kind of "assert" function?
[13:40:00] TomyWork: &>> IO.popen('echo foo; exit 1') { |io| x = io.read; io.close; $?==0?x:fail }
[13:40:12] TomyWork: &>> IO.popen('echo foo; exit 0') { |io| x = io.read; io.close; $?==0?x:fail }
[13:43:04] TomyWork: ok at least this works
[13:45:26] TomyWork: i don't see that being a very effective security measure though
[13:46:12] TomyWork: a bit like blocking the context menu in windows explorer :)
[13:47:06] TomyWork: &>> `echo $$`
[13:47:18] TomyWork: &>> `echo \$\$`
[13:47:41] TomyWork: oh well enough hacking the bot :)
[13:51:50] TomyWork: http://ideone.com/WSSVPk this one works
[14:14:33] TomyWork: anyone wanna play code-golf? :) IO.popen('echo foo; exit 0/1'){|p|x=p.read.chomp;p.close;$?==0?x:My_Error_Message_Here} # conditions are: 1. if the command exits with status zero, return the result as a string, minus the newline at the end. 2. if the command exits with a nonzero status, abort the program with a somewhat identifiable message containing "My Error Message Here" or something close.
[14:21:19] TomyWork: IO.popen('echo foo; exit 0/1').readlines[0].chop # this works if we assume that the command outputs nothing if it fails and a single terminated by a newline if it succeeds.
[14:29:26] TomyWork: Remote host closed the connection

2019-08-01

[06:55:18] TomyWork: has joined #ruby
[16:18:13] TomyWork: Ping timeout: 246 seconds

2019-07-31

[07:00:25] TomyWork: has joined #ruby
[09:19:20] TomyWork: Remote host closed the connection
[15:34:34] TomyWork: Ping timeout: 246 seconds

2019-07-30

[07:40:47] TomyWork: has joined #ruby
[15:29:46] TomyWork: Ping timeout: 246 seconds

2019-07-29

[08:04:12] TomyWork: has joined #ruby
[17:03:56] TomyWork: Remote host closed the connection

2019-07-26

[06:43:57] TomyWork: has joined #ruby
[16:35:32] TomyWork: Remote host closed the connection

2019-07-25

[06:59:33] TomyWork: has joined #ruby
[15:55:28] TomyWork: Ping timeout: 246 seconds
[16:42:40] TomyWork: has joined #ruby
[19:21:37] TomyWork: Ping timeout: 246 seconds

2019-07-24

[07:16:38] TomyWork: has joined #ruby
[15:26:31] TomyWork: Ping timeout: 246 seconds

2019-07-23

[06:40:37] TomyWork: has joined #ruby
[16:01:58] TomyWork: Ping timeout: 246 seconds

2019-07-22

[08:16:22] TomyWork: has joined #ruby
[08:55:36] TomyWork: Remote host closed the connection
[09:00:36] TomyWork: has joined #ruby
[15:13:46] TomyWork: Ping timeout: 246 seconds

2019-07-19

[06:56:51] TomyWork: has joined #ruby
[13:50:22] TomyWork: Remote host closed the connection

2019-07-18

[07:05:25] TomyWork: has joined #ruby
[15:25:01] TomyWork: Ping timeout: 246 seconds

2019-07-17

[06:53:01] TomyWork: has joined #ruby
[10:13:22] TomyWork: Remote host closed the connection
[10:30:22] TomyWork: has joined #ruby
[14:48:01] TomyWork: Ping timeout: 246 seconds
[14:50:16] TomyWork: has joined #ruby
[16:41:05] TomyWork: Remote host closed the connection

2019-07-16

[06:58:13] TomyWork: has joined #ruby
[17:04:37] TomyWork: Ping timeout: 246 seconds

2019-07-15

[06:54:26] TomyWork: has joined #ruby
[15:52:50] TomyWork: Remote host closed the connection

2019-07-12

[07:22:34] TomyWork: has joined #ruby
[15:46:49] TomyWork: Remote host closed the connection

2019-07-11

[07:11:31] TomyWork: has joined #ruby
[16:21:11] TomyWork: Remote host closed the connection
[16:21:36] TomyWork: has joined #ruby
[16:26:37] TomyWork: Ping timeout: 246 seconds

2019-07-10

[06:53:08] TomyWork: has joined #ruby
[17:25:31] TomyWork: Ping timeout: 246 seconds

2019-07-09

[06:58:31] TomyWork: has joined #ruby
[15:05:52] TomyWork: Remote host closed the connection

2019-06-28

[07:13:15] TomyWork: has joined #ruby
[15:25:10] TomyWork: Remote host closed the connection

2019-06-27

[06:58:04] TomyWork: has joined #ruby
[12:58:09] TomyWork: Remote host closed the connection
[12:58:33] TomyWork: has joined #ruby
[15:34:49] TomyWork: Ping timeout: 246 seconds

2019-06-26

[07:06:53] TomyWork: has joined #ruby
[17:33:34] TomyWork: Ping timeout: 246 seconds

2019-06-25

[07:01:13] TomyWork: has joined #ruby
[12:03:49] TomyWork: Remote host closed the connection
[12:05:30] TomyWork: has joined #ruby
[14:14:10] TomyWork: Ping timeout: 246 seconds

2019-06-24

[07:03:26] TomyWork: has joined #ruby
[08:06:41] TomyWork: Remote host closed the connection
[08:07:08] TomyWork: has joined #ruby
[10:07:52] TomyWork: Ping timeout: 246 seconds
[10:11:21] TomyWork: has joined #ruby
[15:20:25] TomyWork: Ping timeout: 246 seconds

2019-06-22

[07:08:57] TomyWork: has joined #ruby
[07:53:40] TomyWork: Ping timeout: 246 seconds
[10:48:14] TomyWork: has joined #ruby
[11:05:59] TomyWork: Remote host closed the connection

2019-06-21

[07:04:41] TomyWork: has joined #ruby
[11:07:27] TomyWork: Remote host closed the connection
[11:28:12] TomyWork: has joined #ruby
[15:37:00] TomyWork: Remote host closed the connection
[20:49:02] TomyWork: has joined #ruby
[21:03:15] TomyWork: Remote host closed the connection

2019-06-20

[07:10:18] TomyWork: has joined #ruby
[14:47:46] TomyWork: is there something like python's matplotlib, except in ruby?
[14:48:04] TomyWork: i.e. 2d graph plotting
[14:52:43] TomyWork: well i need to plot a bunch of stuff, but first i need to grab some data from a database, then do ungodly things with the data and then plot that. i'd probably hate doing the ungodly things with python
[14:54:13] TomyWork: maybe i should do the data wrangling with ruby and then save it as a json and invoke python
[14:55:51] TomyWork: https://github.com/mrkn/matplotlib.rb
[14:57:50] TomyWork: it's a wrapper
[15:00:19] TomyWork: maybe I'll just figure out how to do the data wrangling part in python
[15:00:31] TomyWork: or write really pedestrian code for that
[15:18:31] TomyWork: i havent written anything yet
[15:18:40] TomyWork: will do that tomorrow
[15:19:38] TomyWork: still some technology decisions to be made
[15:19:49] TomyWork: like, whether to use ruby/python at all
[15:20:13] TomyWork: and not just dump the whole thing in excel and use HLOOKUP :D
[15:20:35] TomyWork: hmm, that could actually be an option
[15:53:01] TomyWork: Ping timeout: 246 seconds

2019-06-19

[07:32:14] TomyWork: has joined #ruby
[14:55:43] TomyWork: Ping timeout: 246 seconds

2019-06-18

[07:03:02] TomyWork: has joined #ruby
[13:20:26] TomyWork: Remote host closed the connection
[13:33:05] TomyWork: has joined #ruby
[15:43:25] TomyWork: Ping timeout: 246 seconds

2019-06-17

[15:19:39] TomyWork: has joined #ruby
[15:48:46] TomyWork: Ping timeout: 246 seconds

2019-05-29

[07:00:41] TomyWork: has joined #ruby
[15:35:25] TomyWork: Remote host closed the connection

2019-05-28

[06:53:25] TomyWork: has joined #ruby
[07:07:10] TomyWork: Ping timeout: 246 seconds
[07:12:16] TomyWork: has joined #ruby
[08:00:22] TomyWork: Ping timeout: 246 seconds
[09:59:27] TomyWork: has joined #ruby
[14:37:35] TomyWork: Remote host closed the connection
[14:38:00] TomyWork: has joined #ruby
[14:46:01] TomyWork: Ping timeout: 246 seconds

2019-05-27

[07:07:51] TomyWork: has joined #ruby
[10:12:46] TomyWork: Ping timeout: 246 seconds
[10:15:08] TomyWork: has joined #ruby
[10:21:36] TomyWork: Remote host closed the connection
[10:21:58] TomyWork: has joined #ruby
[10:45:07] TomyWork: Remote host closed the connection
[10:45:31] TomyWork: has joined #ruby
[14:53:49] TomyWork: Ping timeout: 246 seconds

2019-05-24

[06:52:51] TomyWork: has joined #ruby
[14:13:18] TomyWork: Remote host closed the connection

2019-05-23

[06:51:35] TomyWork: has joined #ruby
[10:12:08] TomyWork: Remote host closed the connection
[10:12:34] TomyWork: has joined #ruby
[15:26:04] TomyWork: Ping timeout: 246 seconds

2019-05-22

[06:40:39] TomyWork: has joined #ruby
[16:59:37] TomyWork: Ping timeout: 246 seconds

2019-05-21

[06:50:45] TomyWork: has joined #ruby
[07:35:18] TomyWork: Remote host closed the connection
[07:35:45] TomyWork: has joined #ruby
[16:46:04] TomyWork: Ping timeout: 246 seconds

2019-05-20

[06:45:12] TomyWork: has joined #ruby
[16:20:37] TomyWork: Ping timeout: 246 seconds

2019-05-17

[06:54:38] TomyWork: has joined #ruby
[14:31:02] TomyWork: Remote host closed the connection

2019-05-16

[11:42:15] TomyWork: has joined #ruby
[15:40:46] TomyWork: Ping timeout: 246 seconds

2019-05-13

[09:18:05] TomyWork: has joined #ruby
[14:37:34] TomyWork: Remote host closed the connection

2019-05-10

[06:51:37] TomyWork: has joined #ruby
[14:34:24] TomyWork: Remote host closed the connection

2019-05-09

[05:36:02] TomyWork: has joined #ruby
[14:30:22] TomyWork: Remote host closed the connection

2019-05-08

[08:17:55] TomyWork: has joined #ruby
[11:55:11] TomyWork: Read error: Connection reset by peer
[11:59:31] TomyWork: has joined #ruby
[16:08:46] TomyWork: Remote host closed the connection

2019-05-07

[08:38:31] TomyWork: has joined #ruby
[14:30:15] TomyWork: Remote host closed the connection

2019-04-12

[07:10:00] TomyWork: has joined #ruby
[18:04:34] TomyWork: Quit: Leaving

2019-04-11

[07:24:59] TomyWork: has joined #ruby
[14:16:46] TomyWork: Ping timeout: 246 seconds

2019-04-10

[07:04:43] TomyWork: has joined #ruby
[15:02:43] TomyWork: Ping timeout: 246 seconds

2019-04-09

[07:09:13] TomyWork: has joined #ruby
[18:38:46] TomyWork: Ping timeout: 246 seconds

2019-04-08

[09:15:21] TomyWork: has joined #ruby
[16:24:49] TomyWork: Ping timeout: 246 seconds

2019-04-05

[07:11:20] TomyWork: has joined #ruby
[14:11:13] TomyWork: Remote host closed the connection

2019-04-04

[08:02:01] TomyWork: has joined #ruby
[08:09:35] TomyWork: Remote host closed the connection
[08:13:33] TomyWork: has joined #ruby
[16:15:04] TomyWork: Ping timeout: 246 seconds

2019-04-03

[07:17:04] TomyWork: has joined #ruby
[16:17:37] TomyWork: Ping timeout: 246 seconds

2019-04-02

[09:37:45] TomyWork: has joined #ruby
[14:34:07] TomyWork: Ping timeout: 246 seconds

2019-04-01

[07:21:32] TomyWork: has joined #ruby
[15:39:26] TomyWork: Remote host closed the connection

2019-03-29

[08:51:23] TomyWork: has joined #ruby
[17:09:07] TomyWork: Remote host closed the connection

2019-03-28

[08:38:04] TomyWork: has joined #ruby
[18:09:10] TomyWork: Ping timeout: 246 seconds

2019-03-27

[08:14:46] TomyWork: has joined #ruby
[17:46:52] TomyWork: Ping timeout: 246 seconds

2019-03-26

[08:17:28] TomyWork: has joined #ruby
[14:50:34] TomyWork: Ping timeout: 246 seconds