RougeR

Activity Graph

Page 1 of 11 | Next »

2019-01-19

[00:09:57] RougeR: Read error: Connection reset by peer

2019-01-18

[11:42:42] RougeR: has joined #ruby
[12:31:17] RougeR: does anyone know how to dynamically include modules in ruby
[12:31:21] RougeR: im doing some metaprogramming
[12:31:39] RougeR: i.e klass = Object.const_get(type)
[12:31:50] RougeR: klass.include(FooModule)
[12:31:55] RougeR: something like that
[12:38:15] RougeR: phaul, im not quite sure
[12:38:18] RougeR: is that the way of doing it.
[13:47:59] RougeR: yeah this is what i was doing
[13:48:02] RougeR: https://dpaste.de/ExhF
[13:48:36] RougeR: so i want to overwrite the initialize and configure methods with those from a module or class.
[13:48:45] RougeR: i.e CopyFromS3
[13:49:21] RougeR: so S3storage is just a middle class
[13:52:19] RougeR: yeah ive seen that.
[13:52:29] RougeR: i tried prepend as well. didnt seem to work in irb
[13:52:47] RougeR: also what do you reckon of this way of doing it?
[13:52:53] RougeR: as opposed to a typical factory
[13:58:19] RougeR: https://stackoverflow.com/questions/27542099/is-it-possible-to-include-module-per-object-in-rubyhttps://stackoverflow.com/questions/27542099/is-it-possible-to-include-module-per-object-in-ruby
[13:58:26] RougeR: trying to implement this in pry
[14:01:06] RougeR: https://dpaste.de/GnGo
[14:02:03] RougeR: and yeah see the example for what im trying to acomplish
[14:02:18] RougeR: or i could add them in to the class with metaprogramming, but would then have too remove them after
[14:02:34] RougeR: adding them into the instance of the class means i can just throw it away after the task is complete
[14:03:20] RougeR: okay thats interesting. let me undestand whats going on there n try it
[14:04:12] RougeR: i want the module method to overwrite the class methods
[14:07:37] RougeR: both seem to work
[14:07:42] RougeR: let me look at whats going on
[14:08:09] RougeR: ACTION nods
[14:16:19] RougeR: you want to see whats happening jarlopez or you want to add it to a test?
[14:16:22] RougeR: both can be done
[14:42:52] RougeR: Ping timeout: 250 seconds
[20:20:16] RougeR: has joined #ruby

2019-01-17

[11:40:10] RougeR: has joined #ruby
[12:02:59] RougeR: are multiple inline if statemtents bad practice
[15:15:34] RougeR: Ping timeout: 268 seconds

2019-01-12

[15:35:58] RougeR: has joined #ruby
[16:53:36] RougeR: Read error: Connection reset by peer

2019-01-11

[02:51:08] RougeR: Ping timeout: 250 seconds

2019-01-10

[23:16:11] RougeR: has joined #ruby

2019-01-09

[07:19:54] RougeR: Ping timeout: 246 seconds
[09:38:28] RougeR: has joined #ruby
[10:02:58] RougeR: Ping timeout: 268 seconds
[11:07:12] RougeR: has joined #ruby
[11:18:33] RougeR: can anyone explain why this doesnt work
[11:18:37] RougeR: result.dig(:work, :workers) += 1
[11:18:45] RougeR: the value its incrementing is an integer
[11:18:50] RougeR: it also works if i dont use dig
[15:26:34] RougeR: any resque/redis experts here?
[15:27:09] RougeR: trying to get a worker to register its queue as a key in redis when it is brought online
[18:19:25] RougeR: Ping timeout: 246 seconds
[20:04:35] RougeR: has joined #ruby
[20:54:10] RougeR: Ping timeout: 268 seconds

2019-01-08

[00:11:52] RougeR: has joined #ruby
[00:35:01] RougeR: Remote host closed the connection
[00:40:44] RougeR: has joined #ruby
[08:54:32] RougeR: Ping timeout: 272 seconds
[23:02:44] RougeR: has joined #ruby
[23:03:04] RougeR: hey, does anyone know how too create a time object that is HH:MM:SS but like a timer
[23:03:13] RougeR: and be able to use it too increment the time
[23:03:46] RougeR: i.e starts at 00:00:00 > 00:00:30 > 00:01:00
[23:03:55] RougeR: for 30 sec increments
[23:07:19] RougeR: its just for writing time to a file
[23:07:31] RougeR: trying to optimize by not converting to a new time object every loop
[23:07:39] RougeR: worst case ill just do that
[23:07:55] RougeR: current uses
[23:07:56] RougeR: Time.at(clipstart).gmtime.strftime('%H:%M:%S.%L')
[23:09:31] RougeR: ill look at that too uplime
[23:09:31] RougeR: ive had an idea
[23:09:40] RougeR: Remote host closed the connection
[23:10:15] RougeR: has joined #ruby
[23:10:22] RougeR: sorry disconned
[23:10:36] RougeR: unfortunately uplime i dont want to add a new gem just for this one line
[23:10:39] RougeR: ive had an idea
[23:10:57] RougeR: all i need is a counter. and ruby bases all time objects off of unix time
[23:11:06] RougeR: i could just use a normal time object
[23:11:12] RougeR: then use strftime to format it
[23:11:21] RougeR: and not care what the actual object says
[23:11:30] RougeR: bit hacky
[23:11:32] RougeR: but itll work
[23:11:49] RougeR: i dont think ill ever need longer than 24 hours...
[23:12:12] RougeR: its a fun issue im working on in ruby
[23:12:24] RougeR: https://support.jwplayer.com/articles/how-to-add-preview-thumbnails
[23:13:03] RougeR: basically this from scratch using ffmpeg commands to generate the thumbnail grid
[23:13:24] RougeR: dynamically resizes in ruby, then generate vtt in ruby
[23:16:46] RougeR: might be a hacky approach
[23:21:25] RougeR: uplime, well it works...
[23:21:29] RougeR: up to 24:00:00.000
[23:21:42] RougeR: time = Time.now(0)
[23:21:49] RougeR: time += 30
[23:22:10] RougeR: string_to_write = time.gmtime.strftime('%H:%M:%S.%L')

2019-01-07

[17:52:12] RougeR: Ping timeout: 252 seconds
[19:03:34] RougeR: has joined #ruby
[19:49:35] RougeR: Ping timeout: 268 seconds

2019-01-05

[00:07:23] RougeR: Read error: Connection reset by peer
[00:14:54] RougeR: has joined #ruby
[00:19:59] RougeR: Read error: Connection reset by peer
[07:56:19] RougeR: has joined #ruby
[11:59:41] RougeR: Read error: Connection reset by peer

2019-01-04

[02:37:06] RougeR: Ping timeout: 258 seconds
[23:25:50] RougeR: has joined #ruby

2019-01-03

[19:20:22] RougeR: has joined #ruby

2019-01-01

[15:41:27] RougeR: has joined #ruby
[15:53:38] RougeR: Ping timeout: 250 seconds

2018-12-31

[01:45:03] RougeR: Ping timeout: 245 seconds

2018-12-30

[06:23:16] RougeR: Ping timeout: 246 seconds
[17:01:03] RougeR: has joined #ruby
[17:02:20] RougeR: Max SendQ exceeded
[21:06:49] RougeR: has joined #ruby

2018-12-29

[07:47:41] RougeR: has joined #ruby
[09:55:52] RougeR: Ping timeout: 268 seconds
[15:06:43] RougeR: has joined #ruby
[15:26:03] RougeR: Ping timeout: 250 seconds
[15:56:19] RougeR: has joined #ruby
[17:06:18] RougeR: Ping timeout: 245 seconds
[17:49:39] RougeR: has joined #ruby
[17:50:15] RougeR: Max SendQ exceeded
[17:50:48] RougeR: has joined #ruby
[19:44:47] RougeR: Ping timeout: 268 seconds
[21:07:08] RougeR: has joined #ruby
[21:44:25] RougeR: Ping timeout: 268 seconds
[22:04:45] RougeR: has joined #ruby

2018-12-27

[01:47:26] RougeR: has joined #ruby
[02:45:27] RougeR: Ping timeout: 240 seconds

2018-12-26

[00:50:22] RougeR: has joined #ruby
[08:03:10] RougeR: Ping timeout: 272 seconds
[14:25:29] RougeR: has joined #ruby
[14:26:11] RougeR: Max SendQ exceeded
[14:26:44] RougeR: has joined #ruby
[16:35:28] RougeR: Ping timeout: 245 seconds
[17:09:15] RougeR: has joined #ruby
[19:18:52] RougeR: Read error: Connection reset by peer

2018-12-25

[01:22:49] RougeR: has joined #ruby
[04:24:47] RougeR: Ping timeout: 244 seconds

2018-12-24

[01:31:47] RougeR: has joined #ruby
[02:30:23] RougeR: Quit: Leaving

2018-12-21

[00:58:44] RougeR: Ping timeout: 250 seconds

2018-12-20

[11:40:14] RougeR: has joined #ruby
[12:14:10] RougeR: Ping timeout: 244 seconds
[17:36:37] RougeR: has joined #ruby
[23:02:13] RougeR: Ping timeout: 250 seconds
[23:06:07] RougeR: has joined #ruby
[23:35:03] RougeR: Ping timeout: 245 seconds
[23:54:42] RougeR: has joined #ruby

2018-12-19

[03:57:47] RougeR: Ping timeout: 240 seconds

2018-12-18

[00:59:05] RougeR: has joined #ruby
[04:54:10] RougeR: Ping timeout: 246 seconds
[21:00:24] RougeR: has joined #ruby
[23:47:42] RougeR: Ping timeout: 246 seconds
[23:49:23] RougeR: has joined #ruby

2018-12-17

[02:00:07] RougeR: Ping timeout: 240 seconds

2018-12-16

[02:47:47] RougeR: Ping timeout: 240 seconds
[08:09:03] RougeR: has joined #ruby
[15:35:13] RougeR: Ping timeout: 246 seconds
[21:10:56] RougeR: has joined #ruby

2018-12-15

[04:02:17] RougeR: Ping timeout: 250 seconds
[11:48:32] RougeR: has joined #ruby

2018-12-14

[14:58:33] RougeR: has joined #ruby
[15:02:29] RougeR: hey, can i get some advice on this
[15:02:30] RougeR: https://pastebin.com/qtpfNjbJ
[15:02:45] RougeR: yeah ruby bot i dont have my pw manager with me
[15:02:50] RougeR: so paste bin will do
[15:39:01] RougeR: yeah. im happy to use dpaste though
[15:43:09] RougeR: https://dpaste.de/ypNC
[15:43:15] RougeR: new n improved
[18:04:48] RougeR: Read error: Connection reset by peer
[21:02:03] RougeR: has joined #ruby

2018-12-12

[00:10:04] RougeR: Ping timeout: 250 seconds

2018-12-11

[00:51:57] RougeR: Quit: Leaving
[18:41:32] RougeR: has joined #ruby

2018-12-10

[22:12:52] RougeR: has joined #ruby

2018-12-08

[14:34:57] RougeR: has joined #ruby
[14:35:54] RougeR: Client Quit
[14:36:16] RougeR: has joined #ruby
[14:41:02] RougeR: Read error: Connection reset by peer

2018-12-07

[03:38:51] RougeR: Ping timeout: 246 seconds

2018-12-06

[08:21:25] RougeR: has joined #ruby
[08:24:32] RougeR: Read error: Connection reset by peer
[17:47:55] RougeR: has joined #ruby

2018-12-05

[00:55:57] RougeR: Ping timeout: 246 seconds

2018-12-04

[01:33:04] RougeR: Ping timeout: 272 seconds
[22:09:12] RougeR: has joined #ruby

2018-12-03

[17:43:02] RougeR: yeah, i dont know
[17:43:09] RougeR: im a jr dev, i dont get much say
[17:43:20] RougeR: i much prefer to have a small amount of comments in key complex areas
[17:43:36] RougeR: baweaver, is that a documentation/comment maintinence thing?
[17:43:41] RougeR: .g YARDoc
[17:44:35] RougeR: ahhh ive seen it before
[17:45:05] RougeR: mm i like that
[17:45:26] RougeR: baweaver, yeah i have had a 'fun' first job for a new dev
[17:45:44] RougeR: custom sinatra clusterfuck of a project
[17:45:55] RougeR: ACTION cries
[17:46:13] RougeR: yeah, its got easier
[17:46:29] RougeR: im past my probation, so cant be doing too bad haha
[17:47:23] RougeR: we use resque
[17:47:39] RougeR: but weve added workflow functionality and our own system on top
[17:47:55] RougeR: reduce is pretty good
[17:47:58] RougeR: not used it in a while
[17:48:25] RougeR: is it the same as inject?
[17:48:56] RougeR: yeah, i know it more as inject. just what i learnt
[17:49:19] RougeR: even (1..10).inject(:+) is quite nice
[17:49:43] RougeR: i did not
[17:49:49] RougeR: but i will add the talk you linked
[17:50:24] RougeR: thanks :)
[17:50:37] RougeR: ill check it our tommorow, just finishing up for the day. will ping you my thoughts :)
[17:50:54] RougeR: im still a bit shit with yielf
[17:51:07] RougeR: i know how it works, but i can never see when to use it
[17:51:18] RougeR: and i never see it used in other PRs
[17:56:50] RougeR: you just removed the brackets right?
[17:57:06] RougeR: im personally not a fan of removing brackets in ruby unless its a DSL
[17:58:08] RougeR: oh sorry i see the difference now
[17:58:36] RougeR: yeah the second way is nice, well spotted
[17:58:41] RougeR: if you add brackets!
[17:59:15] RougeR: curious what people here think about over usage of ternary and when it should be used.
[17:59:30] RougeR: al2o3-cr, yeah i do, or i follow the coding style for the project
[17:59:59] RougeR: i just dislike omitting brackets/braces/terminations n general
[18:00:06] RougeR: looking at you python...
[18:03:29] RougeR: catchya later
[18:37:52] RougeR: Ping timeout: 244 seconds
[19:33:25] RougeR: has joined #ruby
[19:36:21] RougeR: Remote host closed the connection
[19:36:46] RougeR: has joined #ruby
[21:12:18] RougeR: Read error: Connection reset by peer
[21:13:16] RougeR: has joined #ruby