dionysus69

Activity Graph

Page 1 of 69 | Next »

2019-05-25

[17:42:55] dionysus69: Ping timeout: 248 seconds

2019-05-24

[12:38:41] dionysus69: Have you ever heard of such controller pattern? to have only single action in controller and determine action by passed in param, it could potentially make development faster by eliminating need for extra routes and stuff, all params like action_id, http_method_sym and params could be sent to this one action
[12:39:42] dionysus69: well yea, it does :D

2019-05-23

[07:26:17] dionysus69: Ping timeout: 250 seconds
[07:26:36] dionysus69: has joined #RubyOnRails
[07:26:37] dionysus69: has joined #ruby
[07:26:37] dionysus69: has joined #RubyonRails-offtopic
[08:38:17] dionysus69: Couldn't really find a straightforward answer online, does AR has method like this? Model has_relationship? would be better if it looked for through relationships too
[08:53:13] dionysus69: Model.reflect_on_all_associations.find { |a| a.name.to_s.include?("the model name I am looking for") }
[08:53:37] dionysus69: if you have better idea on this, lemme know ^.^
[08:53:44] dionysus69: also this method doesnt look for through associations
[08:58:56] dionysus69: ok to make it short, as we already discussed earlier, I am making my custom admin more modular, so I am trying to build one universal partial that will allow me to filter all admin index pages with scopes, but there are models like user and couple others, i would check conditionally if they exist, I would let the admin filter based on them too, only if the model on current page has belongs to or has_many
[08:58:58] dionysus69: relationships to it
[09:00:54] dionysus69: so ? :D that's it? :D
[09:03:05] dionysus69: I am using metaprogramming approach, I know there's a second approach, if I save relationships in db and then generate based on them, but it would require manual maintenance
[09:04:04] dionysus69: Model.where().present?; well this Model.has_relationship? is similar, would be great if such helper existed :P if not I will make my custom one
[09:04:48] dionysus69: one check is AR collection exists, other checks if model has relationship/s
[09:07:12] dionysus69: I understand it will require recursive search
[09:07:26] dionysus69: but it may accept param like, go only 3 level deep
[09:07:30] dionysus69: won't kill the admin side
[09:08:18] dionysus69: ok but reflections do show first level relationships
[09:09:44] dionysus69: that usually is not the case for me :\
[09:10:42] dionysus69: I pay huge attention to naming :S

2019-05-21

[06:18:44] dionysus69: has joined #ruby
[06:18:44] dionysus69: has joined #RubyonRails-offtopic
[06:18:44] dionysus69: has joined #RubyOnRails
[12:29:15] dionysus69: Read error: Connection reset by peer
[12:30:21] dionysus69: has joined #ruby
[12:30:21] dionysus69: has joined #RubyonRails-offtopic
[12:30:21] dionysus69: has joined #RubyOnRails
[14:06:09] dionysus69: *.net *.split

2019-05-18

[06:34:03] dionysus69: Quit: ZNC 1.7.2+deb2 - https://znc.in

2019-05-17

[05:46:43] dionysus69: Ping timeout: 246 seconds
[05:57:56] dionysus69: has joined #ruby
[05:57:56] dionysus69: has joined #RubyonRails-offtopic
[05:57:56] dionysus69: has joined #RubyOnRails
[06:08:17] dionysus69: is it possible to allocate certain number of threads to the sidekiq queues? I have scenarios where I need multiple single threaded queues, but obviously I don't want to launch separate processes for a single thread
[14:39:28] dionysus69: Ping timeout: 252 seconds
[14:40:38] dionysus69: has joined #ruby
[14:40:38] dionysus69: has joined #RubyonRails-offtopic
[14:40:38] dionysus69: has joined #RubyOnRails
[14:58:49] dionysus69: Remote host closed the connection
[15:00:47] dionysus69: has joined #RubyOnRails
[15:00:48] dionysus69: has joined #ruby
[15:00:48] dionysus69: has joined #RubyonRails-offtopic

2019-05-16

[11:30:19] dionysus69: Ping timeout: 258 seconds
[11:36:55] dionysus69: has joined #ruby
[11:36:55] dionysus69: has joined #RubyonRails-offtopic
[11:36:55] dionysus69: has joined #RubyOnRails

2019-05-14

[13:31:36] dionysus69: what do you recommend, should I make webpacker handle css and image icons too or just stick to good old asset pipeline
[13:32:11] dionysus69: FrankDW: sidekiq?
[13:49:33] dionysus69: if you want cron-like scheduling https://github.com/ondrejbartas/sidekiq-cron
[13:49:45] dionysus69: if you schedule programmatically https://github.com/mperham/sidekiq/wiki/Scheduled-Jobs
[13:50:26] dionysus69: FrankDW: there's a slack channel too, I am in both

2019-05-13

[06:22:29] dionysus69: has joined #RubyOnRails
[06:22:30] dionysus69: has joined #ruby
[06:22:30] dionysus69: has joined #RubyonRails-offtopic

2019-05-07

[10:10:27] dionysus69: Ping timeout: 245 seconds
[12:24:34] dionysus69: has joined #ruby
[12:24:34] dionysus69: has joined #RubyonRails-offtopic
[12:24:34] dionysus69: has joined #RubyOnRails
[14:18:31] dionysus69: Quit: ZNC 1.7.2+deb2 - https://znc.in

2019-05-03

[05:37:11] dionysus69: Read error: Connection reset by peer
[05:37:56] dionysus69: has joined #ruby
[05:37:56] dionysus69: has joined #RubyonRails-offtopic
[05:37:56] dionysus69: has joined #RubyOnRails
[06:02:07] dionysus69: these are equivalent right? single_line = ->(arg) { ... }; multi_line = lambda { |arg| ... }
[06:04:32] dionysus69: ok thanks :) before now I thought lambda(arg) would work the same

2019-05-02

[07:29:12] dionysus69: is anyone interested in a hobby project to create blockchain from scratch? including its decentralized nature of course
[07:34:38] dionysus69: one more question, since binance has the payment_id thing I have to also implement it... boss's orders I guess, so when I read the payment id can be a 32 or 64 bit string, what does it mean?
[07:35:14] dionysus69: lol wrong channel, ozzloy pm I guess :P

2019-05-01

[08:02:10] dionysus69: I get IOError: stream closed in another thread in sidekiq job for the first time ever while contacting a locally hosted RPC server
[08:02:58] dionysus69: one solution is to queue jobs after a fixed delay which is a dirty fix. any other cleaner ideas? I have over 5 other rpc servers and never encountered such error before
[08:06:44] dionysus69: this error too IOError: HTTP session not yet started

2019-04-30

[06:16:24] dionysus69: has joined #ruby
[06:16:24] dionysus69: has joined #RubyonRails-offtopic
[06:16:24] dionysus69: has joined #RubyOnRails

2019-04-29

[14:51:42] dionysus69: has joined #RubyonRails-offtopic
[14:51:42] dionysus69: has joined #RubyOnRails
[14:51:42] dionysus69: has joined #ruby
[14:57:52] dionysus69: Remote host closed the connection
[14:58:12] dionysus69: has joined #RubyonRails-offtopic
[14:58:12] dionysus69: has joined #RubyOnRails
[14:58:12] dionysus69: has joined #ruby
[15:10:58] dionysus69: Ping timeout: 246 seconds
[18:57:58] dionysus69: Ping timeout: 245 seconds

2019-04-28

[08:34:01] dionysus69: has joined #RubyonRails-offtopic
[08:34:01] dionysus69: has joined #RubyOnRails
[08:34:01] dionysus69: has joined #ruby
[09:01:36] dionysus69: Remote host closed the connection
[09:01:52] dionysus69: has joined #RubyonRails-offtopic
[09:01:52] dionysus69: has joined #RubyOnRails
[09:01:52] dionysus69: has joined #ruby
[11:24:58] dionysus69: Ping timeout: 246 seconds
[14:07:32] dionysus69: has joined #RubyonRails-offtopic
[14:07:32] dionysus69: has joined #RubyOnRails
[14:07:32] dionysus69: has joined #ruby
[15:51:55] dionysus69: Remote host closed the connection
[15:52:13] dionysus69: has joined #RubyonRails-offtopic
[15:52:13] dionysus69: has joined #RubyOnRails
[15:52:13] dionysus69: has joined #ruby
[19:07:20] dionysus69: Ping timeout: 250 seconds

2019-04-27

[19:14:31] dionysus69: Remote host closed the connection
[19:18:59] dionysus69: has joined #RubyonRails-offtopic
[19:18:59] dionysus69: has joined #RubyOnRails
[19:18:59] dionysus69: has joined #ruby
[22:02:27] dionysus69: Ping timeout: 244 seconds

2019-04-24

[06:24:37] dionysus69: thanks adam12 that will kinda help, but thing is, I will still have to investigate other edge cases before I implement this, I could even PR on that gem with the following approach
[08:00:01] dionysus69: does it make sense when I am wondering why module methods aren't class methods by default?
[08:00:06] dionysus69: wouldn't it make more sense?
[08:01:06] dionysus69: if OOP structure makes more sense for module, then I would use class instead in the first place

2019-04-23

[07:27:05] dionysus69: adam12: I will post a snippet one sec
[07:33:02] dionysus69: adam12: so here it is https://gist.github.com/webzorg/e4f5ca2dc9d54be25e8d92186a21e4aa
[07:36:26] dionysus69: line 60, json['params'], = *args so I assume this works like the following: we are dealing with mass assignment but only with one variable, first element of the array args gets assigned to json["params"], I just dont get why I cant just assign splatted array to the params as hash
[07:42:49] dionysus69: I also have one more question to everyone about monkey patching. So I am monkey patching a gem which pretty much has a single file and I am just changing this line 60, so I am basically only monkey patching method_missing method on line 37 in the link I posted. but when I insert this code RPC > JSON > Client > def method_missing other methods do not get inherited from the gem, so I am forced to copy all methods
[07:42:52] dionysus69: in the file just to monkey patch single method
[07:43:26] dionysus69: AFAIK, it is supposed to inherit everything else from the gem, and just shadow/override the monkey patched method
[11:39:38] dionysus69: what's the benefit of freezing? just for protection against accidental mutation?

2019-04-22

[06:56:32] dionysus69: has joined #ruby
[06:56:32] dionysus69: has joined #RubyonRails-offtopic
[06:56:32] dionysus69: has joined #RubyOnRails
[13:18:37] dionysus69: so I had to do weird hack to achieve passing hash into method args and then converting back to hash
[13:18:39] dionysus69: json['params'], = *args
[13:18:57] dionysus69: method({a: 1, b: 2})
[13:19:21] dionysus69: any ideas why I Had to use comma there? splat args didnt work without comma

2019-04-20

[09:06:28] dionysus69: Ping timeout: 246 seconds

2019-04-19

[10:41:04] dionysus69: Ping timeout: 250 seconds
[11:12:24] dionysus69: has joined #ruby
[11:12:24] dionysus69: has joined #RubyonRails-offtopic
[11:12:24] dionysus69: has joined #RubyOnRails

2019-04-18

[08:17:40] dionysus69: Ping timeout: 246 seconds
[08:23:34] dionysus69: has joined #RubyonRails-offtopic
[08:23:34] dionysus69: has joined #RubyOnRails
[08:23:35] dionysus69: has joined #ruby
[09:09:42] dionysus69: Ping timeout: 268 seconds
[09:18:20] dionysus69: has joined #RubyonRails-offtopic
[09:18:20] dionysus69: has joined #RubyOnRails
[09:18:21] dionysus69: has joined #ruby

2019-04-17

[08:11:48] dionysus69: has joined #RubyonRails-offtopic
[08:11:48] dionysus69: has joined #RubyOnRails
[08:11:49] dionysus69: has joined #ruby
[09:04:04] dionysus69: Ping timeout: 250 seconds
[09:08:39] dionysus69: has joined #ruby
[09:08:39] dionysus69: has joined #RubyonRails-offtopic
[09:08:39] dionysus69: has joined #RubyOnRails

2019-04-08

[05:52:13] dionysus69: has joined #ruby
[05:52:13] dionysus69: has joined #RubyonRails-offtopic
[05:52:13] dionysus69: has joined #RubyOnRails
[12:44:55] dionysus69: any good resources where I can play with interfacing ruby with C or Rust? let's say I write hello_world method in either of them, just dont know where to start
[13:13:39] dionysus69: thanks will try that
[13:19:26] dionysus69: thanks mnemon just found this too https://www.youtube.com/watch?v=Ms3EifxZopg&t=1796s
[13:52:33] dionysus69: Quit: ZNC 1.7.2+deb1 - https://znc.in

2019-04-05

[07:01:56] dionysus69: I have some free time, does anyone have any project that would need contribution? plus I would like to gain experience in FOSS contribution flow
[07:43:20] dionysus69: I have some free time, does anyone have any project that would need contribution? plus I would like to gain experience in FOSS contribution flow
[15:07:13] dionysus69: Ping timeout: 268 seconds

2019-04-04

[05:59:35] dionysus69: has joined #ruby
[05:59:35] dionysus69: has joined #RubyonRails-offtopic
[06:05:49] dionysus69: Quit: ZNC 1.7.2+deb1 - https://znc.in
[06:08:21] dionysus69: has joined #ruby
[06:08:21] dionysus69: has joined #RubyonRails-offtopic
[06:13:42] dionysus69: has joined #ruby
[06:13:42] dionysus69: has joined #RubyonRails-offtopic
[06:30:47] dionysus69: Quit: ZNC 1.7.2+deb1 - https://znc.in
[06:31:47] dionysus69: has joined #RubyonRails-offtopic
[06:31:48] dionysus69: has joined #ruby

2019-04-03

[06:10:04] dionysus69: has joined #RubyonRails-offtopic
[06:10:04] dionysus69: has joined #ruby
[07:08:00] dionysus69: Ping timeout: 246 seconds
[07:35:51] dionysus69: has joined #ruby
[07:35:51] dionysus69: has joined #RubyonRails-offtopic
[21:36:18] dionysus69: Ping timeout: 245 seconds

2019-04-02

[21:17:28] dionysus69: Ping timeout: 268 seconds

2019-03-29

[14:19:00] dionysus69: Ping timeout: 246 seconds
[14:21:32] dionysus69: has joined #ruby
[14:21:32] dionysus69: has joined #RubyonRails-offtopic
[14:21:32] dionysus69: has joined #RubyOnRails

2019-03-27

[09:58:40] dionysus69: why is there no to_sym! method :\
[09:58:56] dionysus69: var = var.to_sym
[10:03:08] dionysus69: dunno, i would expect it would change object type to symbol too
[10:03:14] dionysus69: https://gist.github.com/webzorg/d66931fa9e6036f440e8ce72e5a06800
[10:03:19] dionysus69: how would you optimize this?
[10:04:20] dionysus69: I guess I didnt know that pretty important detail xD
[10:06:56] dionysus69: I know I could just know what I will pass in
[10:07:06] dionysus69: just trying to overengineer a bit
[10:09:03] dionysus69: was there a precompilation step before 2.6's new JIT compiler? as I now know, the new JIT compiler compiles code and then runs

2019-03-26

[08:49:39] dionysus69: YAML.dump(hash) is equivalent to hash.to_yaml right?

2019-03-25

[06:55:03] dionysus69: has joined #ruby
[06:55:03] dionysus69: has joined #RubyonRails-offtopic
[06:55:03] dionysus69: has joined #RubyOnRails
[14:15:26] dionysus69: Read error: Connection reset by peer
[14:16:47] dionysus69: has joined #ruby
[14:16:47] dionysus69: has joined #RubyonRails-offtopic
[14:16:47] dionysus69: has joined #RubyOnRails

2019-03-24

[08:00:16] dionysus69: has joined #RubyonRails-offtopic
[08:00:16] dionysus69: has joined #RubyOnRails
[08:00:16] dionysus69: has joined #ruby
[14:02:41] dionysus69: Ping timeout: 250 seconds
[15:42:47] dionysus69: Ping timeout: 250 seconds
[17:58:21] dionysus69: has joined #RubyonRails-offtopic
[17:58:21] dionysus69: has joined #RubyOnRails
[17:58:21] dionysus69: has joined #ruby
[18:35:16] dionysus69: Ping timeout: 250 seconds
[18:48:25] dionysus69: has joined #RubyonRails-offtopic
[18:48:25] dionysus69: has joined #RubyOnRails
[18:48:25] dionysus69: has joined #ruby
[21:10:21] dionysus69: Remote host closed the connection
[21:10:40] dionysus69: has joined #RubyonRails-offtopic
[21:10:40] dionysus69: has joined #RubyOnRails
[21:10:40] dionysus69: has joined #ruby
[21:29:19] dionysus69: Ping timeout: 268 seconds

2019-03-23

[10:22:30] dionysus69: has joined #RubyonRails-offtopic
[10:22:30] dionysus69: has joined #RubyOnRails
[10:22:30] dionysus69: has joined #ruby
[10:23:38] dionysus69: maybe the answer is obvious but, should I add public/packs to gitignore? since I see there are lots of files. rails webpacker:clobber before push also pretty much does the same right? or is there more to it?
[13:59:46] dionysus69: Ping timeout: 246 seconds
[14:10:09] dionysus69: Ping timeout: 246 seconds
[14:41:35] dionysus69: has joined #ruby
[14:41:36] dionysus69: has joined #RubyonRails-offtopic
[14:41:36] dionysus69: has joined #RubyOnRails
[19:36:42] dionysus69: Ping timeout: 250 seconds
[19:42:27] dionysus69: has joined #RubyonRails-offtopic
[19:42:27] dionysus69: has joined #RubyOnRails
[19:42:27] dionysus69: has joined #ruby
[20:46:04] dionysus69: Ping timeout: 255 seconds

2019-03-22

[01:18:51] dionysus69: Ping timeout: 246 seconds
[05:45:31] dionysus69: has joined #RubyonRails-offtopic
[05:45:31] dionysus69: has joined #RubyOnRails
[05:45:32] dionysus69: has joined #ruby
[06:40:15] dionysus69: Ping timeout: 268 seconds
[06:49:18] dionysus69: has joined #ruby
[06:49:18] dionysus69: has joined #RubyonRails-offtopic
[06:49:18] dionysus69: has joined #RubyOnRails
[13:18:51] dionysus69: any plans to replace sass-rails gem with sassc-rails in new application, since sass-rails is depracated in 6 days as the warning says
[13:19:09] dionysus69: rails 6 beta 3 still has sass-rails
[21:27:20] dionysus69: Ping timeout: 252 seconds

2019-03-21

[07:03:45] dionysus69: which is normally a convention, I have a spec with parent and 2 children, should I test all 3 in parent spec or should I maximize division between the specs?

2019-03-20

[11:45:21] dionysus69: any ideas how BigDecimal "0.00626962" can become "0.006269620000000001" stored in rails pg decimal column?
[13:47:22] dionysus69: Cork: meaning? I didn't really understand what is it caused by
[13:48:37] dionysus69: ahh, I thought BigDecimal converted the input to string by default
[13:48:59] dionysus69: I didnt know BigDecimal(0.1) and BigDecimal("0.1") were different
[13:50:03] dionysus69: just checked with factory bot just now, if I save dec as a string, it doesn't get that trailing dust
[13:50:18] dionysus69: the type is decimal, scale is 16
[13:50:32] dionysus69: precision 32
[13:52:17] dionysus69: ok I ll find pg one, thanks!
[13:53:41] dionysus69: oh, decimal is name in rails, pg col type turns out is numeric(32,16)