fryguy

Activity Graph

Page 1 of 18 | Next »

2019-02-25

[20:50:36] fryguy: Ping timeout: 252 seconds

2019-01-16

[16:07:46] fryguy: you are missing a lot of the error output
[16:46:01] fryguy: when you run asset precompilation locally, do you get the same behavior?

2019-01-15

[15:34:19] fryguy: has joined #RubyOnRails

2019-01-09

[07:12:07] fryguy: Ping timeout: 250 seconds

2018-12-30

[04:40:34] fryguy: depends what the rails app is. there's probably a readme with some more instructions

2018-12-14

[15:39:55] fryguy: has joined #RubyOnRails

2018-11-25

[05:31:33] fryguy: Ping timeout: 252 seconds

2018-11-23

[14:39:16] fryguy: has joined #RubyOnRails

2018-11-22

[23:22:52] fryguy: Ping timeout: 264 seconds

2018-11-21

[20:45:52] fryguy: it's possible, it usually doesn't end well
[21:35:02] fryguy: ls **/models/**/*.rb | wc -l
[21:35:24] fryguy: ACTION wishes he had 100

2018-11-14

[16:49:59] fryguy: has joined #RubyOnRails

2018-10-23

[15:09:11] fryguy: that seems like it's probably the wrong url to be POSTing to, assuming you are doing normal REST routes, you'd be GETting that (if you expect to see a form), or POSTing to /business/customers if you have already filled out the form and are actually trying to create the record
[15:12:19] fryguy: that is not the right way to be solving this problem
[15:17:30] fryguy: lines 25 and 26 verified what I said above
[15:21:21] fryguy: and then where does the form post to?
[15:21:32] fryguy: you specify it in the form tag

2018-10-20

[18:26:28] fryguy: has joined #RubyOnRails
[18:26:59] fryguy: anybody know of any terminals other than iterm (preferably linux) that support either of the values of RAILS_SYSTEM_TESTING_SCREENSHOT?

2018-10-07

[03:50:40] fryguy: has joined #RubyOnRails

2018-10-04

[05:59:33] fryguy: Ping timeout: 252 seconds

2018-08-31

[11:19:32] fryguy: Ping timeout: 252 seconds
[14:12:12] fryguy: has joined #RubyOnRails

2018-08-18

[01:26:36] fryguy: what's the code look like?
[01:46:08] fryguy: jeromelanteri: the code that drives the controller, or a console log of interacting with the controller via curl, or a failing test case in minitest or rspec
[01:55:02] fryguy: ok, and which view does this?
[02:02:58] fryguy: ok, and where do you call the js stuff?
[02:15:33] fryguy: i think you have a lot of problems here, one you are trying to mix and match coffee and javascript files, it seems like your js files aren't named correctly, they aren't being properly escaped, and you are also maybe confusing json and js as return types, and neither of these have the concept of layouts, so `render layout: false` doesn't make any sense. I'd take a step back and start to write some
[02:17:20] fryguy: depends on how the gem adds it, i'd guess it's .js.coffee, but see what the test tells you
[02:29:52] fryguy: i did not
[02:31:55] fryguy: not really
[02:33:04] fryguy: I have, yes
[02:35:05] fryguy: don't really have time to do a full code review right now
[02:38:29] fryguy: it's definitely your code, rails isn't released with some bug that's just like "oh, ajax doesn't work"

2018-08-01

[21:36:14] fryguy: if you specify change appropriately, it will be able to auto-rollback for you too. most methods to do ddl changes are `reversible`
[21:42:28] fryguy: hrmm, i guess not
[21:42:35] fryguy: nevermind me then, do it the way you suggested

2018-07-30

[04:23:19] fryguy: Ping timeout: 256 seconds
[04:32:50] fryguy: has joined #RubyOnRails

2018-07-29

[19:38:04] fryguy: sligthly more complicated than true/false, but yes
[19:38:13] fryguy: it does not check if it's defined, strictly speaking
[20:42:17] fryguy: wwalker: try to add `as: disown_booth` to the route definition
[20:42:59] fryguy: or, if you are doing restful routing, add your definition to the restful route instead of it being standalone
[20:43:49] fryguy: `resources :booths { member { get :disown } }` might name the route that too
[20:46:19] fryguy: also, i'm just guessing, but this route should probably be a post and not a get

2018-07-26

[20:13:49] fryguy: what are we looking at here
[20:13:52] fryguy: this isn't very descriptive
[20:25:19] fryguy: do your tests pass?

2018-07-25

[02:38:32] fryguy: Ping timeout: 256 seconds
[15:19:32] fryguy: has joined #RubyOnRails

2018-07-24

[14:25:43] fryguy: why do you have both relationships?
[14:26:57] fryguy: yoones: that doesn't really answer the question
[14:28:18] fryguy: you don't, they are separate relationships
[14:28:50] fryguy: write a new method on user that concatenates the results if that's what you want
[14:32:21] fryguy: wait, I thought you couldn't change things?
[16:15:24] fryguy: hkais: it's rake
[16:17:06] fryguy: rails uses rake
[16:17:28] fryguy: https://guides.rubyonrails.org/command_line.html#custom-rake-tasks

2018-07-23

[17:39:03] fryguy: has joined #RubyOnRails

2018-07-21

[15:36:58] fryguy: Ping timeout: 260 seconds

2018-07-20

[00:07:10] fryguy: *.net *.split
[00:15:27] fryguy: has joined #RubyOnRails
[03:29:55] fryguy: jerojasro: dotenv doesn't require files, it allows you to use files in conjunction with environment variables

2018-07-19

[15:33:08] fryguy: what has profiling with memory_profiler or stackprof told you?
[20:18:33] fryguy: jerojasro: take a look at dotenv. how you choose to inject environment variables into your application process is up to you

2018-07-17

[17:44:32] fryguy: theRoUS: consider inheritance
[17:57:41] fryguy: so then do it with mixins
[18:57:42] fryguy: s2013: upgrade or profile/optimize the action
[18:57:55] fryguy: axsuul: show us a situation
[19:00:39] fryguy: yes it is
[19:02:09] fryguy: no idea, don't use heroku
[19:21:03] fryguy: i'm going to guess something else is wrong

2018-07-16

[17:31:34] fryguy: HeyoRockbreaker: just ask
[17:36:47] fryguy: well what is making the 503 denial request, where is it coming from, where is it going to, and what is the rails logging showing you?
[17:39:22] fryguy: so rails isn't rendering the image? what is?
[17:40:15] fryguy: ok, so what does the log for that image request look like?
[17:42:00] fryguy: paste.ubuntu.com
[17:44:25] fryguy: ok, so 403, not 503
[17:44:34] fryguy: so you aren't pointing cloudfront at the right location
[17:45:05] fryguy: or your webserver requires vhosting and isn't compatible with the way you set up cloudfront
[17:46:58] fryguy: you can, few options: 1. if you are using ipv6, just use that, 2. get a public IPv4 address sending traffic to your machine, 3. using something like ngrok to reverse tunnel
[17:48:40] fryguy: what are you trying to accomplish by uploading the images to cloudfront?
[17:50:09] fryguy: HeyoRockbreaker: and what is wrong with using your rails server to do that?
[17:51:29] fryguy: wait, are we uploading images, or downloading images?
[17:51:32] fryguy: you are allllllll over the place here
[17:52:11] fryguy: uploading from where?
[17:52:34] fryguy: so, user uploads?
[17:52:58] fryguy: are you using activestorage?
[17:54:02] fryguy: so why are we talking about user uploads?
[17:54:05] fryguy: ACTION gives up

2018-07-15

[03:12:22] fryguy: how are you passing the local into the partial
[03:12:35] fryguy: oh nm missed the last line lol
[03:13:16] fryguy: change render to render partial:

2018-07-11

[01:43:05] fryguy: [ModelA, ModelB].map {|m| m.last(order: :updated_at, limit: 10)}.sort_by(:updated_at).take(10)
[02:59:52] fryguy: good thing there are lots of other languages that make a different set of tradeoffs that might be more appropriate for your needs and wants

2018-07-08

[16:05:52] fryguy: Pupeno: what does `rake routes` show you the name of that route is?
[16:10:57] fryguy: does `url_for(controller: :java_modules, action: show)` or similar do what you want?

2018-07-07

[14:02:55] fryguy: bootstrap is still fine

2018-07-05

[16:13:50] fryguy: ok, and what is the problem
[16:14:14] fryguy: how are you trying to do that?
[16:15:06] fryguy: ok, and how is this file getting loaded?
[16:15:52] fryguy: app/lib is not a standard location, so you'll need to add it to autoload_paths assuming you are relying on rails autoloading of modules
[16:16:21] fryguy: which relying on autoloading will be problematic because the autoloader won't look in this file for UnEpp::Domain
[16:21:17] fryguy: walidvb: what happens if you just type UnEpp in a rails console
[16:21:44] fryguy: and then UnEpp::Domain
[16:22:24] fryguy: is this module defined anywhere else in your application?
[16:23:06] fryguy: have you changed what this definition looked like while using spring?
[16:24:09] fryguy: try restarting spring
[19:53:08] fryguy: what kind of coverage?

2018-07-04

[17:49:47] fryguy: capistrano is pretty simple
[17:49:59] fryguy: what issues do you have with it that you are trying to solve potentialy with a different tool?

2018-07-03

[16:32:22] fryguy: ACTION just uses a giant thinkpad with a Xeon

2018-07-02

[14:15:32] fryguy: most db servers support some level of TLS connectivity as well. ipsec as a transport might be viable as well

2018-06-29

[06:32:41] fryguy: Ping timeout: 276 seconds
[17:45:23] fryguy: has joined #RubyOnRails

2018-06-28

[17:10:54] fryguy: go to ruby-lang.org and rubyonrails.org and see what's published/available

2018-06-24

[02:37:54] fryguy: look at the network tab
[02:41:20] fryguy: how do you typically load the js for your application?
[02:45:45] fryguy: you said you were only loading jquery in the network tab though
[02:45:49] fryguy: are you not loading the rest of your js?
[02:56:06] fryguy: are you running unicorn, or bundle exec unicorn?
[03:00:54] fryguy: try running bundle exec unicorn instead

2018-06-19

[14:02:32] fryguy: sort of depends what the "many ways" are
[14:07:49] fryguy: are you using strong_parameters?
[19:11:53] fryguy: `image_path('cover11.jpg')

2018-06-17

[20:59:31] fryguy: TvL2386: :expires_in

2018-06-15

2018-06-14

[19:26:27] fryguy: uh, what?
[19:26:36] fryguy: got an example to show?
[19:26:51] fryguy: i think I know what you are running into, but want to make sure
[19:53:11] fryguy: instead of 5/9 and to_f, you can also do 5/9.0
[19:56:43] fryguy: beingjohnm: ruby has no mechanism to do warnings like that in core, and you are providing no hints that would cause it to think you want floats. you specify 2 integers and ask to do division, it does integer division.
[19:58:00] fryguy: maybe in version 3 the default could be changed. a discussion in the ruby-lang mailing list might get some progress down that regard, or some more clear technical reasons why integer division is the default

2018-06-11

[15:18:05] fryguy: well, what does "complain" mean here?

2018-06-10

[18:11:31] fryguy: well, what are the permissions on the /tmp directory?
[18:13:41] fryguy: nate-^: is /tmp mounted noexec?
[18:15:11] fryguy: what's the output of `mount | grep tmp`
[18:18:07] fryguy: what what is the output of `ls -l /tmp`
[18:20:34] fryguy: please don't message me
[18:21:16] fryguy: try deleting the existing file that's there and try again
[18:22:56] fryguy: the existing (i'm guessing since you are changing the names of things) git-ssh*.sh file

2018-06-08

[17:55:38] fryguy: a 2d array you mean?
[17:56:22] fryguy: it's because it's an array of arrays, if you were to draw it out on a grid, it each element on would be a spot on a 2d grid

2018-06-05

[15:02:24] fryguy: how are you referring to the js? what url helpers are you using for example
[15:11:10] fryguy: huh? that's not how you refer to the js, that's where you put the js
[15:11:17] fryguy: in your layout or whatever, how are you loading the js
[15:12:04] fryguy: change assets/jqBootstrapValidation to `asset_path('jqBootstrapValidation.js') and see where that gets you
[15:23:52] fryguy: yah the next step was gonna be whether you were missing precompile stuff
[15:24:10] fryguy: btw, you'll want to consider adding all of this to application.js and loading a single file instead of a bunch of separate files
[19:34:51] fryguy: what does Rational(100,1) return?
[19:36:27] fryguy: and where is pct defined?
[19:38:15] fryguy: how is it included
[19:40:37] fryguy: and how does `MyRational` relate to the `Rational` returned by Rational(100,1)
[19:41:50] fryguy: ok, but that doesn't explain the presence/absence of a `pct` method on Rational
[19:44:12] fryguy: ok, and how is RationalModule added to Rational
[20:34:21] fryguy: what is the name of the file
[20:35:19] fryguy: try putting `MyRational` on it's own line in a setup block or similar in the test to cause it to autoload
[20:37:57] fryguy: ok, well where is `pct` being added to Rational
[20:39:37] fryguy: if you can't show us code, how are we supposed to help you?
[20:40:50] fryguy: is development mode set to eager load in config/environments/development.rb?
[20:41:07] fryguy: describe to us the code isn't very helpful
[20:46:15] fryguy: that's what eager loading is for
[20:46:23] fryguy: which you shouldn't turn on in non-prod usually
[20:49:24] fryguy: most of them are in config, some railties defined in gems can also change how the application loads

2018-06-01

[03:44:48] fryguy: *.net *.split
[07:47:38] fryguy: has joined #RubyOnRails
[16:26:39] fryguy: 1 sec for rails to respond, or 1 sec for your browser to render the page?
[16:26:54] fryguy: aka, how are you measuring this

2018-05-31

[17:49:35] fryguy: why are you trying to avoid prepared interviewees?
[17:51:12] fryguy: that's up to you to determine whether it's a boilerplate response or if they actually understand it or not
[17:51:22] fryguy: by asking reasonable follow-up questions
[18:10:26] fryguy: 2 options are app/services and lib/ depending on the specific nature of the code

2018-05-30

[19:40:01] fryguy: hrmm, trying to fix an issue in one of my environments where `bin/rails c` complains that rake isn't installed, but `bundle show rake` shows it as being installed, and `bundle install` doesn't do anything and lists it as already installed. Not sure where else to look for mixup
[20:11:48] fryguy: that results in the same behavior

2018-05-29

[02:47:16] fryguy: *.net *.split
[02:47:49] fryguy: has joined #RubyOnRails
[20:52:29] fryguy: process-based versus thread based

2018-05-22

[14:07:17] fryguy: it's remainder after division, aka modulus
[19:10:46] fryguy: charlielor: well, where are you calling `Connection`, which looks like it's capitalized and shouldn't be
[19:18:00] fryguy: MrCrackPotBuilde: probably stop using turbolinks unless you have a good reason to

2018-05-18

[18:25:39] fryguy: Dbugger: not by default, no
[18:26:00] fryguy: if you do `bundle install --deployment` it will do that, and there are other similar option sets that will do it as well.
[18:26:10] fryguy: --deployment does several other things as well
[18:47:14] fryguy: wherever your other gems are installed

2018-05-17

[13:54:15] fryguy: well what is the connection going to

2018-05-16

[02:11:51] fryguy: is there any best practice for getting useful recording of how long tests take to run when using time traveling in the test?

2018-05-15

[02:56:07] fryguy: depends on the rdbms and some access patterns
[02:56:18] fryguy: do some benchmarking and see which better suits your needs for your application

2018-05-03

[18:35:48] fryguy: is this a commonly used model?
[19:08:44] fryguy: did you change eager loading settings during the upgrade
[19:12:54] fryguy: eager loading definitely exists in 4.x, you should double check that

2018-05-01

[15:10:57] fryguy: there's very little reason to use rvm at this point
[15:32:06] fryguy: it's the one installed by your package manager

2018-04-30

[01:44:10] fryguy: memory consumption
[01:44:12] fryguy: most likely
[02:02:01] fryguy: GC.start shouldn't do anything, ruby will run the garbage collector as it goes
[02:02:15] fryguy: your loop might be holding onto records such that ruby can't garbage collect them

2018-04-28

[01:27:16] fryguy: thanks for the update
[01:29:18] fryguy: what issue..
[01:31:24] fryguy: ok, you said you solved the segfault earlier, now you didn't. i'm super confused now
[01:31:31] fryguy: why don't you try to actually describe what's going on
[01:36:00] fryguy: ok, and how are you gems installed?
[01:36:19] fryguy: and how is bundler installed
[01:36:40] fryguy: and how is the gem binary installed
[01:37:17] fryguy: lupine: yes, but that's not really the answer
[01:37:22] fryguy: ^^ is kind of the answer I was looking for
[01:37:31] fryguy: and did your rvm installation port over?
[01:38:27] fryguy: so when you "reinstalled gems" did you actually reinstall gems? or just reuse existing stuff from rvm?
[01:40:45] fryguy: try doing `bundle install --deployment` and seeing if that changes things
[01:41:01] fryguy: that'll stop using system installed gems and help eliminate causes
[01:45:45] fryguy: show the full stacktrace
[01:45:50] fryguy: and the contents of gemfile.lock
[02:06:15] fryguy: and did you recompile ruby after switching?
[02:06:24] fryguy: specifically to recompile this: ~/.rvm/rubies/ruby-2.3.0/lib/libruby.so.2.3(
[02:09:15] fryguy: any rvm specific errata for ubuntu? i know rvm does some special compilation for things
[20:18:19] fryguy: transactional fixtures handles that
[20:34:36] fryguy: most ci/cd setups start from an empty database each time
[20:34:47] fryguy: so that shouldn't be an issue
[20:52:36] fryguy: ok, so then the tests fail, and then you fix them...
[20:55:16] fryguy: can you cite an example? I'd like to see a situation with well-written tests that would behave this way
[21:00:09] fryguy: can you be more specific?
[21:03:52] fryguy: you are missing a test there then
[21:03:59] fryguy: that you CAN get boooks if you do have a premium subscription
[21:04:13] fryguy: if you change the fixutre, that test will now fail, clueing you in
[21:04:26] fryguy: at unit level, you need both negative and positive assertions for cases
[21:05:23] fryguy: here's some more information based on the theory of the testing pyramid: https://martinfowler.com/articles/practical-test-pyramid.html#WhatToTest
[23:22:23] fryguy: guess it depends on what is necessary business logic wise to generate the preview
[23:23:24] fryguy: if it's just a reification of the CSV file, then upload the CSV to some sort of centralized object store like S3. if you need to do a lot of processing, consider doing the same thing if you can stand the request overhead, or put the work into a background job with a status checker. alternatively create a temporary table to store the data.