dionysus69

Activity Graph

Page 1 of 69 | Next »

2019-07-15

[02:02:12] dionysus69: has joined #ruby
[02:02:12] dionysus69: has joined #RubyonRails-offtopic
[02:02:12] dionysus69: has joined #RubyOnRails
[05:01:42] dionysus69: Ping timeout: 244 seconds
[08:46:45] dionysus69: has joined #ruby
[08:46:45] dionysus69: has joined #RubyonRails-offtopic
[08:46:45] dionysus69: has joined #RubyOnRails

2019-07-14

[08:11:20] dionysus69: has joined #ruby
[08:11:20] dionysus69: has joined #RubyonRails-offtopic
[08:11:20] dionysus69: has joined #RubyOnRails
[08:17:38] dionysus69: Ping timeout: 248 seconds
[10:54:28] dionysus69: has joined #ruby
[10:54:28] dionysus69: has joined #RubyonRails-offtopic
[10:54:28] dionysus69: has joined #RubyOnRails
[11:03:56] dionysus69: Ping timeout: 244 seconds
[12:36:11] dionysus69: has joined #RubyonRails-offtopic
[12:36:11] dionysus69: has joined #RubyOnRails
[12:59:09] dionysus69: Ping timeout: 244 seconds
[13:03:25] dionysus69: has joined #RubyonRails-offtopic
[13:03:25] dionysus69: has joined #RubyOnRails
[13:16:50] dionysus69: Ping timeout: 248 seconds
[15:36:18] dionysus69: has joined #RubyonRails-offtopic
[15:36:18] dionysus69: has joined #RubyOnRails
[15:56:49] dionysus69: Ping timeout: 258 seconds
[16:06:53] dionysus69: has joined #RubyonRails-offtopic
[16:06:53] dionysus69: has joined #RubyOnRails
[16:08:09] dionysus69: has joined #ruby
[16:13:23] dionysus69: Ping timeout: 245 seconds
[19:15:24] dionysus69: has joined #ruby
[19:15:24] dionysus69: has joined #RubyonRails-offtopic
[19:15:24] dionysus69: has joined #RubyOnRails
[21:37:33] dionysus69: Ping timeout: 245 seconds

2019-07-13

[14:22:08] dionysus69: Ping timeout: 245 seconds
[14:31:27] dionysus69: has joined #RubyOnRails
[14:31:28] dionysus69: has joined #ruby
[14:31:28] dionysus69: has joined #RubyonRails-offtopic
[15:22:48] dionysus69: Ping timeout: 272 seconds
[18:21:24] dionysus69: has joined #ruby
[18:21:24] dionysus69: has joined #RubyonRails-offtopic
[18:21:24] dionysus69: has joined #RubyOnRails
[18:58:10] dionysus69: Ping timeout: 248 seconds
[20:49:57] dionysus69: has joined #ruby
[20:49:57] dionysus69: has joined #RubyonRails-offtopic
[20:49:57] dionysus69: has joined #RubyOnRails
[21:07:32] dionysus69: Ping timeout: 245 seconds
[21:28:59] dionysus69: has joined #ruby
[21:28:59] dionysus69: has joined #RubyonRails-offtopic
[21:28:59] dionysus69: has joined #RubyOnRails
[21:34:34] dionysus69: Ping timeout: 272 seconds
[21:51:37] dionysus69: has joined #ruby
[21:51:37] dionysus69: has joined #RubyonRails-offtopic
[21:51:37] dionysus69: has joined #RubyOnRails
[22:24:34] dionysus69: Ping timeout: 248 seconds

2019-07-12

[10:33:17] dionysus69: << ruby 1 + 2
[10:33:59] dionysus69: drnerdius says thanks al2o3-cr

2019-07-11

[11:11:14] dionysus69: xco you are running in production, you need to config.consider_all_requests_local to true in production.rb, but of course you should not do that if your server is really in production
[11:20:35] dionysus69: yea that's not ruby pretty, but I fear even jedies have to write like that
[11:36:33] dionysus69: nil and empty obj both

2019-07-04

[13:39:29] dionysus69: Quit: ZNC 1.7.2+deb3 - https://znc.in
[13:41:44] dionysus69: has joined #ruby
[13:41:44] dionysus69: has joined #RubyonRails-offtopic
[13:41:44] dionysus69: has joined #RubyOnRails

2019-07-03

[06:28:11] dionysus69: Remote host closed the connection
[06:29:03] dionysus69: has joined #ruby
[06:29:03] dionysus69: has joined #RubyonRails-offtopic
[06:29:03] dionysus69: has joined #RubyOnRails
[07:27:37] dionysus69: Quit: ZNC 1.7.2+deb3 - https://znc.in
[07:32:06] dionysus69: has joined #ruby
[07:32:06] dionysus69: has joined #RubyonRails-offtopic
[07:32:06] dionysus69: has joined #RubyOnRails

2019-07-02

[07:15:02] dionysus69: Ping timeout: 245 seconds
[07:21:40] dionysus69: has joined #ruby
[07:21:40] dionysus69: has joined #RubyonRails-offtopic
[07:21:40] dionysus69: has joined #RubyOnRails

2019-07-01

[07:29:50] dionysus69: has joined #ruby
[07:29:50] dionysus69: has joined #RubyonRails-offtopic
[07:29:50] dionysus69: has joined #RubyOnRails

2019-06-28

[10:24:01] dionysus69: Ping timeout: 248 seconds

2019-06-23

[21:38:47] dionysus69: Ping timeout: 245 seconds
[22:16:40] dionysus69: has joined #ruby
[22:16:40] dionysus69: has joined #RubyonRails-offtopic
[22:16:40] dionysus69: has joined #RubyOnRails

2019-06-18

[08:22:54] dionysus69: Quit: ZNC 1.7.2+deb3 - https://znc.in
[08:24:07] dionysus69: has joined #ruby
[08:24:07] dionysus69: has joined #RubyonRails-offtopic
[08:24:07] dionysus69: has joined #RubyOnRails

2019-06-17

[15:11:13] dionysus69: Quit: ZNC 1.7.2+deb2 - https://znc.in
[15:15:44] dionysus69: has joined #ruby
[15:15:44] dionysus69: has joined #RubyonRails-offtopic
[15:15:44] dionysus69: has joined #RubyOnRails

2019-06-11

[06:19:12] dionysus69: Ping timeout: 248 seconds
[06:38:37] dionysus69: has joined #ruby
[06:38:37] dionysus69: has joined #RubyonRails-offtopic
[09:00:55] dionysus69: Ping timeout: 246 seconds

2019-06-10

[11:41:43] dionysus69: Quit: ZNC 1.7.2+deb2 - https://znc.in
[11:55:55] dionysus69: has joined #ruby
[11:55:55] dionysus69: has joined #RubyonRails-offtopic

2019-06-07

[12:27:07] dionysus69: Remote host closed the connection

2019-06-06

[12:32:27] dionysus69: Is there anyone here working for Heroku?

2019-05-31

[07:35:16] dionysus69: has joined #ruby
[07:35:16] dionysus69: has joined #RubyonRails-offtopic
[07:35:16] dionysus69: has joined #RubyOnRails

2019-05-30

[09:36:58] dionysus69: Model has_one other_model, Model.create_other_model second time causes the object to be deleted, which doesn't obey any sense of logic or intuitition
[21:29:04] dionysus69: Ping timeout: 248 seconds

2019-05-29

[10:25:48] dionysus69: lessless: just remove it from the Procfile ?

2019-05-28

[08:23:29] dionysus69: Is it effective to build fully async forms with stimulus js? so the data is sent with keystrokes, with 1 second debounce perhaps
[08:23:47] dionysus69: if any other js framework would be better suited for this task please let me know

2019-05-27

[07:06:11] dionysus69: has joined #ruby
[07:06:11] dionysus69: has joined #RubyonRails-offtopic
[07:06:11] dionysus69: has joined #RubyOnRails
[08:43:39] dionysus69: need help with this not so pretty query situation everything is in gist https://gist.github.com/webzorg/fb77cb141e9ee01a017886681ed2d3dd
[08:44:22] dionysus69: that last query.count should return one user with missing wallet
[08:59:05] dionysus69: Hmm, not really getting which model would be polymorphic
[08:59:59] dionysus69: and what kind of validations do you mean?
[09:01:13] dionysus69: in my real app I have after_create hook on user so it wallets for all currencies
[09:01:37] dionysus69: but I am building an integrity check functionality for admin panel
[09:04:04] dionysus69: making that big of a refactor for my app is unrealistic :) it is like this for year or two already :s
[09:05:20] dionysus69: yea db is pretty big, over 100k wallets
[09:05:41] dionysus69: don't wanna deal with that, can't wrap my head around it
[09:07:32] dionysus69: ok thanks :)
[09:11:46] dionysus69: oh well yea, you mentioned "wasn't authenticated properly" I don't have such controller actions :P

2019-05-26

[13:07:32] dionysus69: has joined #RubyonRails-offtopic
[13:07:32] dionysus69: has joined #RubyOnRails
[13:07:32] dionysus69: has joined #ruby
[14:18:31] dionysus69: Quit: dionysus69

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: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?