alexandernst

Activity Graph

Page 1 of 1

2018-02-28

[17:55:55] alexandernst: has left #RubyOnRails: ("Bye bye!")

2018-02-25

[16:02:45] alexandernst: has joined #RubyOnRails
[16:04:10] alexandernst: I'm trying to use pry in order to debug gitlab, but after I run "gitlab-rails console production" and "require 'pry'" irb says that it couldn't load such a file, but I know pry is installed
[16:04:15] alexandernst: what is happening?

2017-03-12

[03:44:30] alexandernst: has joined #ruby
[03:44:30] alexandernst: has joined #RubyOnRails
[03:44:30] alexandernst: Changing host
[03:44:30] alexandernst: has joined #RubyOnRails
[03:44:30] alexandernst: has joined #ruby
[13:24:19] alexandernst: has left #RubyOnRails: ("Bye bye!")
[13:24:20] alexandernst: has left #ruby: ("Bye bye!")

2016-06-28

[21:12:16] alexandernst: How would I convert "while not a and not b" to use "unless"? "unless a and not b"? "unless a and b"?
[21:13:01] alexandernst: ljarvis: ahh, yes, until
[21:14:43] alexandernst: yeah... seems silly, but this "new" keyword in ruby are crushing my brain
[21:15:34] alexandernst: I feel completely stupid googling "how to do until in ruby" having 15 years or C/C++ experience on my back...
[21:16:01] alexandernst: ljarvis: I'd avoid using until at all, but the linter I'm forced to use at work complains about "while not" ...
[21:16:26] alexandernst: ljarvis: not allowed to :P

2016-06-23

[00:55:00] alexandernst: Ping timeout: 260 seconds
[01:01:23] alexandernst: has joined #RubyOnRails
[01:01:23] alexandernst: has joined #ruby

2016-06-22

[13:43:40] alexandernst: what is myarr.try('[]', 'foobar') doing?

2016-06-17

[15:07:49] alexandernst: What is the difference between "has_many :services, :dependent => :destroy" and "has_many :services, dependent: :destroy" ?
[15:11:32] alexandernst: ok, thank you
[15:11:37] alexandernst: has joined #RubyOnRails
[15:14:29] alexandernst: What is the difference between "has_many :services, :dependent => :destroy" and "has_many :services, dependent: :destroy" ?
[15:16:32] alexandernst: chintanparikh: I see
[15:18:27] alexandernst: chintanparikh: What about " services.not_archived.all? { |s| s.archivable? } " and " services.not_archived.all?(&:archivable?) " ?

2016-06-13

[10:09:05] alexandernst: Remote host closed the connection
[10:09:12] alexandernst: has joined #ruby
[10:09:12] alexandernst: Changing host
[10:09:12] alexandernst: has joined #ruby
[10:24:45] alexandernst: Remote host closed the connection
[10:24:51] alexandernst: has joined #ruby
[10:32:17] alexandernst: Remote host closed the connection
[10:32:24] alexandernst: has joined #ruby
[10:32:24] alexandernst: Changing host
[10:32:24] alexandernst: has joined #ruby
[10:36:26] alexandernst: Remote host closed the connection
[10:36:33] alexandernst: has joined #ruby
[10:36:33] alexandernst: Changing host
[10:36:33] alexandernst: has joined #ruby
[10:36:34] alexandernst: Read error: Connection reset by peer
[10:36:40] alexandernst: has joined #ruby
[10:37:59] alexandernst: Remote host closed the connection
[10:38:05] alexandernst: has joined #ruby

2016-06-08

[21:21:35] alexandernst: has joined #ruby
[21:22:11] alexandernst: What is the difference between backtrace.select { |s| ! (s =~ /bundle/ || s =~ /gems/)} and backtrace.select { |s| s =~ /bundle/ || s =~ /gems/} ?
[21:23:12] alexandernst: yes, but what do both things do?
[21:23:32] alexandernst: I mean, in the first case the select will return only strings that don't have bundle or gems
[21:53:43] alexandernst: How is it possible that some random code is returning *foo*, but when I debug it line-by-line with proy debugger, I get *bar*?
[21:57:00] alexandernst: jenrzzz: checked, not the source of the problem :)
[21:57:06] alexandernst: jenrzzz: next idea!
[21:57:41] alexandernst: hmmm... I suspect that might not fix the problem but actually make it worse
[21:58:14] alexandernst: anyways, I just restart RoR and it seems now it's returning *bar*
[21:58:42] alexandernst: weird, I have all those no-cache and reload-classes-always options in my development env
[22:00:22] alexandernst: Synthead: no idea what that is, sorry
[22:00:55] alexandernst: Synthead: would that appear somewhere in the Gemfile ?
[22:01:49] alexandernst: Synthead: yup, spring here
[22:01:54] alexandernst: let me research how to disable that
[22:03:14] alexandernst: Synthead: can't touch the Gemfile nor modify gems. Work project, limited write perms, etc...
[22:04:15] alexandernst: maybe spring has some "scan and reload files on chages" option?
[22:05:18] alexandernst: Actually the file I'm woring on is in config/initializers/application.rb
[22:05:27] alexandernst: could be that spring just can't reload that file?
[22:06:44] alexandernst: Synthead: as I thought https://github.com/rails/spring/issues/378
[22:07:04] alexandernst: so... there's just nothing I can do about that, I should restart the app a few times until I patch the code