dionysus69

Activity Graph

Page 1 of 68 | Next »

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

[09:12:44] dionysus69: Ping timeout: 268 seconds
[10:25:02] dionysus69: has joined #ruby
[10:25:02] dionysus69: has joined #RubyonRails-offtopic
[10:25:02] dionysus69: has joined #RubyOnRails
[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)

2019-03-18

[08:18:31] dionysus69: has joined #ruby
[08:18:31] dionysus69: has joined #RubyonRails-offtopic
[08:18:31] dionysus69: has joined #RubyOnRails

2019-03-17

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

2019-03-16

[09:31:52] dionysus69: has joined #RubyonRails-offtopic
[09:31:52] dionysus69: has joined #RubyOnRails
[09:31:52] dionysus69: has joined #ruby
[10:08:35] dionysus69: I found this way to attach images to existing images on object update while using active storage. is this an ok pattern? https://gist.github.com/webzorg/210b9e2bd63fcd58bba107bce6a02f71
[10:09:13] dionysus69: my goal is not to drop already attached images, I think this should be a default flow
[10:26:16] dionysus69: Ping timeout: 246 seconds
[10:33:46] dionysus69: has joined #RubyonRails-offtopic
[10:33:46] dionysus69: has joined #RubyOnRails
[10:33:46] dionysus69: has joined #ruby
[11:15:37] dionysus69: Ping timeout: 246 seconds
[11:37:11] dionysus69: has joined #RubyonRails-offtopic
[11:37:11] dionysus69: has joined #RubyOnRails
[11:37:11] dionysus69: has joined #ruby
[14:38:51] dionysus69: Ping timeout: 246 seconds
[17:58:41] dionysus69: has joined #RubyonRails-offtopic
[17:58:41] dionysus69: has joined #RubyOnRails
[17:58:41] dionysus69: has joined #ruby
[18:07:34] dionysus69: Ping timeout: 246 seconds
[19:17:34] dionysus69: has joined #RubyOnRails
[19:17:34] dionysus69: has joined #ruby
[19:17:35] dionysus69: has joined #RubyonRails-offtopic
[19:40:38] dionysus69: Ping timeout: 272 seconds
[20:00:39] dionysus69: has joined #RubyonRails-offtopic
[20:00:39] dionysus69: has joined #RubyOnRails
[20:00:39] dionysus69: has joined #ruby
[22:04:37] dionysus69: Ping timeout: 245 seconds

2019-03-15

[09:27:41] dionysus69: I have noticed one user had 50 thousand sign in attempts, using a bot obviously, that was before I added google robot check or fail2ban. What vulnerability was he/she trying to exploit? it doesn't make sense
[09:27:57] dionysus69: not attempts I mean, sign in counts, counted by devise
[14:08:47] dionysus69: Read error: Connection reset by peer
[18:00:57] dionysus69: has joined #RubyonRails-offtopic
[18:00:57] dionysus69: has joined #RubyOnRails
[18:00:57] dionysus69: has joined #ruby
[18:10:28] dionysus69: does the new jit compiler have noticeable performance improvements?
[18:21:58] dionysus69: I will see in time I guess :D
[20:00:27] dionysus69: Ping timeout: 245 seconds

2019-03-12

[10:04:08] dionysus69: Remote host closed the connection
[10:04:58] dionysus69: has joined #ruby
[10:04:58] dionysus69: has joined #RubyonRails-offtopic
[10:04:58] dionysus69: has joined #RubyOnRails

2019-03-11

[06:07:01] dionysus69: has joined #RubyOnRails
[06:07:02] dionysus69: has joined #ruby
[06:07:02] dionysus69: has joined #RubyonRails-offtopic
[07:10:25] dionysus69: emers2n: what tasks are you talking about? sidekiq-cron?
[09:19:35] dionysus69: is there a drier method to retry tag generation if duplicate is found? https://gist.github.com/webzorg/15c72655186119b568ab3b50469234c8
[09:20:09] dionysus69: I do have db index:unique on tag column but I somehow dont want to rely on exception/rescue, is this a good method?
[09:22:41] dionysus69: is race condition a threat in this situation?
[09:23:25] dionysus69: I didnt think of that cause the chance for collision is astronomically minimal anyway, chance of collision in race condition is astronomically minimal in power of two :D (in this situation)
[09:25:18] dionysus69: ok I also noticed this pattern on internet, rescue RecordNotUnique > retry, is that better?
[09:25:48] dionysus69: never used retry so not sure how it behaves exactly
[09:26:41] dionysus69: I just obfuscated the model and field names
[09:29:35] dionysus69: well, every user needs to have that tag for crypto address for ripple/stellar addresses ^.^ thats what happens when ledgers pretend to be blockchains
[09:31:04] dionysus69: I guess I will go with rescueing ActiveRecord::RecordNotUnique

2019-03-10

[11:12:44] dionysus69: Ping timeout: 250 seconds

2019-03-06

[09:36:57] dionysus69: I am generating this hex to assign one per user SecureRandom.hex(4) (generates 8 char string), the collision chance is quite low but still I want to handle it, does anyone have a DRY idea how do retry if it detects existing one?
[09:37:30] dionysus69: add a unique index to db column and rescue redo ?

2019-03-01

[08:23:45] dionysus69: Remote host closed the connection
[08:26:11] dionysus69: has joined #ruby
[08:26:11] dionysus69: has joined #RubyonRails-offtopic
[08:26:11] dionysus69: has joined #RubyOnRails

2019-02-22

[02:02:54] dionysus69: Read error: Connection reset by peer
[09:09:55] dionysus69: has joined #RubyOnRails
[09:09:56] dionysus69: has joined #ruby
[09:09:56] dionysus69: has joined #RubyonRails-offtopic

2019-02-19

[09:31:56] dionysus69: Read error: Connection reset by peer
[09:33:27] dionysus69: has joined #ruby
[09:33:27] dionysus69: has joined #RubyonRails-offtopic
[09:33:27] dionysus69: has joined #RubyOnRails
[10:48:18] dionysus69: how do I import this https://www.rubydoc.info/github/rubyworks/facets/Array:median ?
[10:48:22] dionysus69: i get method undefined
[11:21:56] dionysus69: I was in force majouaour :s

2019-02-18

[06:31:11] dionysus69: has joined #ruby
[06:31:11] dionysus69: has joined #RubyonRails-offtopic
[06:31:11] dionysus69: has joined #RubyOnRails

2019-02-16

[03:12:11] dionysus69: Ping timeout: 268 seconds
[10:15:11] dionysus69: has joined #RubyonRails-offtopic
[10:15:11] dionysus69: has joined #RubyOnRails
[10:15:11] dionysus69: has joined #ruby
[13:42:12] dionysus69: Ping timeout: 244 seconds
[14:52:48] dionysus69: has joined #RubyonRails-offtopic
[14:52:48] dionysus69: has joined #RubyOnRails
[14:52:48] dionysus69: has joined #ruby
[14:53:19] dionysus69: So I am using heroku and I am setting RAILS_ENV as usual, but I noticed heroku's use of RACK_ENV, do I need to set it? or it's just waste of line?
[15:01:24] dionysus69: ok thank you :)
[15:40:56] dionysus69: There's devise i18n and devise bootstrapped gem, installing one means I have to remove another, is there a solution for this?
[15:41:19] dionysus69: I mean the views, not the gems themselves
[19:20:29] dionysus69: does anyone know of lib/templates/slim/scaffold versions of something like this? https://github.com/excid3/jumpstart/blob/master/lib/templates/erb/scaffold/_form.html.erb I just want scaffold generator to output bootstrap 4 styling
[19:20:34] dionysus69: only in slim
[23:22:01] dionysus69: Ping timeout: 257 seconds

2019-02-15

[07:52:09] dionysus69: has joined #RubyonRails-offtopic
[07:52:09] dionysus69: has joined #RubyOnRails
[07:52:10] dionysus69: has joined #ruby

2019-02-14

[02:36:12] dionysus69: Ping timeout: 258 seconds
[07:00:20] dionysus69: has joined #ruby
[07:00:20] dionysus69: has joined #RubyonRails-offtopic
[07:00:20] dionysus69: has joined #RubyOnRails
[21:05:28] dionysus69: Ping timeout: 250 seconds

2019-02-13

[07:14:42] dionysus69: has joined #ruby
[07:14:42] dionysus69: has joined #RubyonRails-offtopic
[07:14:42] dionysus69: has joined #RubyOnRails

2019-02-12

[08:35:49] dionysus69: how do I write this consicely destination_address = operation["to"] || operation["account"], if one is nil the other value should be used and vice-versa
[08:35:57] dionysus69: this doesn't work
[08:55:57] dionysus69: baweaver: thanks!
[21:42:07] dionysus69: Ping timeout: 240 seconds

2019-02-07

[05:12:33] dionysus69: Remote host closed the connection
[05:13:55] dionysus69: has joined #ruby
[05:13:55] dionysus69: has joined #RubyonRails-offtopic
[05:13:55] dionysus69: has joined #RubyOnRails
[08:12:01] dionysus69: I noticed execjs is unmaintained, whats the modern way to execute js within ruby?
[08:12:15] dionysus69: I just have something implemented in js that I would exec in js and get the result, thats it
[13:21:15] dionysus69: catbusters: submit a gist online ^.^

2019-02-06

[13:21:54] dionysus69: I need to decode XDR envelope, I am unable to use this gem, it produces weird errors https://github.com/stellar/ruby-xdr the link to the the code http://paste.debian.net/1065634/
[13:22:24] dionysus69: I am sure the encoded message is correct, so far I was unable to find any other xdr library in ruby

2019-02-05

[07:07:39] dionysus69: Quit: ZNC 1.7.1+deb2+b3 - https://znc.in
[07:08:28] dionysus69: has joined #ruby
[07:08:28] dionysus69: has joined #RubyonRails-offtopic
[07:08:28] dionysus69: has joined #RubyOnRails
[08:11:34] dionysus69: I was wondering the other day, I want to become a contributor to some starter grade repo, does anyone know any repo that needs help? notice: I am beginner in this realm, haven't really worked with gems so far

2019-02-04

[10:37:47] dionysus69: liya: you can also join #ruby channel on freenode, if you want to learn rails and ruby at the same time I recommend https://www.railstutorial.org/
[10:47:22] dionysus69: I have to agree ^.^

2019-02-01

[13:03:41] dionysus69: Read error: Connection reset by peer
[13:06:08] dionysus69: has joined #ruby
[13:06:08] dionysus69: has joined #RubyonRails-offtopic
[13:06:08] dionysus69: has joined #RubyOnRails

2019-01-30

[10:24:02] dionysus69: kidPalooma: I would make a separate scope for distinct Fonts and it also would solve your error
[10:26:28] dionysus69: scope :distinct_fonts, -> { self.fonts.where(distrinct: true)where(published: true) }
[10:33:35] dionysus69: kidPalooma: sounds good ^.^

2019-01-28

[07:35:04] dionysus69: are there tools to profile memory usage of rails inside redis? I have 250mb redis instance and it is always full, I wonder which cache objects occupy largest space so I expire them accordingly, most likely they are stale
[10:36:16] dionysus69: xhoy: thanks I'll go with memory-usage, I knew about memory-stats which doesnt give me info I need

2019-01-25

[07:18:50] dionysus69: Ping timeout: 268 seconds
[07:53:13] dionysus69: has joined #ruby
[07:53:13] dionysus69: has joined #RubyonRails-offtopic
[07:53:13] dionysus69: has joined #RubyOnRails

2019-01-24

[06:17:53] dionysus69: has joined #ruby
[06:17:53] dionysus69: has joined #RubyonRails-offtopic
[06:17:53] dionysus69: has joined #RubyOnRails

2019-01-23

[06:58:29] dionysus69: has joined #ruby
[06:58:29] dionysus69: has joined #RubyonRails-offtopic
[06:58:29] dionysus69: has joined #RubyOnRails
[21:39:37] dionysus69: Ping timeout: 246 seconds

2019-01-22

[09:25:30] dionysus69: Ping timeout: 268 seconds
[10:13:18] dionysus69: has joined #RubyonRails-offtopic
[10:13:18] dionysus69: has joined #RubyOnRails
[10:13:19] dionysus69: has joined #ruby
[13:48:37] dionysus69: Ping timeout: 250 seconds

2019-01-11

[05:57:48] dionysus69: Ping timeout: 272 seconds
[07:13:44] dionysus69: has joined #RubyOnRails
[07:13:45] dionysus69: has joined #ruby
[07:13:45] dionysus69: has joined #RubyonRails-offtopic

2019-01-10

[07:43:40] dionysus69: anyone has experience with daemons gem?
[07:44:29] dionysus69: I am having trouble using Daemons.run command from the script, it works if I run it from bash like daemon.rb start or from rails, exec "ruby", "daemons.rb"
[07:45:26] dionysus69: my aim is to fork a ruby process from rails process which runs forever
[07:50:04] dionysus69: here are the files https://gist.github.com/webzorg/cbb6b37ec3c9c9357f6e16199437270e
[07:51:01] dionysus69: there are two scenarios, both calling the same file, one works another doesnt, they are commented
[10:46:13] dionysus69: fox_mulder_cp: I use sidekiq but sidekiq cron provides once per minute functionality as a lower bound. I need tasks running every 5 seconds or less

2019-01-09

[08:26:15] dionysus69: Ping timeout: 272 seconds
[09:22:45] dionysus69: has joined #RubyOnRails
[09:22:46] dionysus69: has joined #ruby
[09:22:46] dionysus69: has joined #RubyonRails-offtopic

2019-01-08

[06:41:03] dionysus69: has joined #ruby
[06:41:03] dionysus69: has joined #RubyonRails-offtopic
[06:41:03] dionysus69: has joined #RubyOnRails
[08:04:26] dionysus69: Ping timeout: 258 seconds
[10:04:23] dionysus69: has joined #RubyOnRails
[10:04:24] dionysus69: has joined #ruby
[10:04:24] dionysus69: has joined #RubyonRails-offtopic

2018-12-28

[14:54:21] dionysus69: happy new year everyone in advance, going on vacation ^.^
[22:09:49] dionysus69: Quit: ZNC 1.7.1+deb2+b1 - https://znc.in

2018-12-26

[14:05:48] dionysus69: I have a naming dillema, I have an object named Address, it should have couple fields, one of them is the address itself, how should I name that field? Address.first.address doesnt feel write
[14:19:45] dionysus69: its more like a bitcoin address, address has 2 values basically, the address and balance :)

2018-12-25

[07:10:09] dionysus69: thanks havenwood :) I have used spiped before when I was doing my own infrastructure but wasn't sure if heroku was doing its own thing to secure coms
[07:56:18] dionysus69: redis cloud addon doesn't support SSL as a heroku addon, I will need to make a subscription on their website.
[07:56:35] dionysus69: or Stunnel setup

2018-12-24

[09:34:27] dionysus69: does anyone here use heroku for production apps? if yes, what solution do you use for redis? I have questions particularly about Cloud Redis and the connection security