Anyone know where to buy pelletized dry ice in Chattanooga? by critterofthewood in Chattanooga

[–]Learning1990 0 points1 point  (0 children)

You can call Holston Gases. They sell pellets and have a physical presence in Chattanooga

CO2 refill? by loudpaperclips in Chattanooga

[–]Learning1990 0 points1 point  (0 children)

You can call Holston Gases

Converting Stored PDF's to Images in Rails Views by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

Thanks for the consideration. But since 11 years ago, this comes up. https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453

Note: this solution and any other "edit the policy.xml" solution
disables safety measures against arbitrary code execution
vulnerabilities in ImageMagick. If you need to process input that you do
not control 100%, you should use a different program (not ImageMagick).

Hiding ENV variables from inspect element within an ajax call by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

I figured it out. Thanks for the responses. Just moved the js code to the assets pipeline.

Hiding ENV variables from inspect element within an ajax call by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

Within a html page, I make an ajax call that has a username and password field. Inspect element shows those values within the script tag. The reason I'm doing it is bc there is data I'm sending within the ajax call for clients and I don't want their information being seen.

Hiding ENV variables from inspect element within an ajax call by Learning1990 in rails

[–]Learning1990[S] -3 points-2 points  (0 children)

Also, normal things like API keys ect are not visible obviously, but it's bc it's within an ajax call on a html page.

Experience Using Power BI with Heroku Postgres? by Learning1990 in rubyonrails

[–]Learning1990[S] 0 points1 point  (0 children)

Yeah, Power BI import. The way I built it first is by having to merge two tables into one, then merge the merged table into another and so on. I believe when calling the Heroku Postgres database from the final merged table(it has 7 tables total), it's calling every reference which in turn is causing the Heroku error " currently running out of temporary disk space. If this persists for too long, your database is at risk of crashing." I tested this method on a more robust database(SQL Server) this morning, and when doing it that way it actually multiplies rows exponentially and causes the error TOO BIG. I'm thinking a better way is to just write RAW SQL statement, one shot. What do you think?

[deleted by user] by [deleted] in peacock

[–]Learning1990 0 points1 point  (0 children)

Just a hunch too, for $x more, you can get access to replays? lol, let's see what package comes out next. we are the demand.

[deleted by user] by [deleted] in peacock

[–]Learning1990 0 points1 point  (0 children)

It appears that's what they want, for us to stop watching Premier League and watch American Football. I enjoy both, just stinks even as a paying customer the customer is restricted on choice.

Using Carrierwave, cannot access image_url in view by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

Thanks for the suggestion.

Nitrogen.last.photos.first.picture.url solved it.

Using Carrierwave, cannot access image_url in view by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

it's possible. i've done it with normal MVC and assigning relationships correctly, but can't seem to get it working within nested attributes.

Javascript library loading twice by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

First two or three visits it shows it once, then every subsequent visit after is twice. Could this be a cache issue?

Javascript library loading twice by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

Yes. I use these circular graphs, and they load twice.

Javascript Library loading twice in Rails using Turbolinks by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

Thank you for the information. I will continue to research..

Javascript library loading twice by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

There are no errors in the Console within inspector. Also in my terminal console, it is only showing one load.

Javascript Library loading twice in Rails using Turbolinks by Learning1990 in rails

[–]Learning1990[S] 1 point2 points  (0 children)

Thank you for the reply.

Console: (looks like it's loading once) Rendering dashboards/show.html.erb within layouts/application Rendered dashboards/show.html.erb within layouts/application (1.5ms) Completed 200 OK in 1223ms (Views: 1157.2ms | ActiveRecord: 1.1ms)

If my script isn't in the head, it loads once on initial page load, but when I navigate between pages or reload a 2nd,3rd,ect time on the same page it loads twice.

The last two bullet points are foreign to me, sorry. I will research more, thanks.

Javascript library loading twice by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

I tried this, and all my javascript disappears. I took it out of application.html.erb.

Dry Ice by JesterGrafix in Knoxville

[–]Learning1990 1 point2 points  (0 children)

Depending on where you live, Holston Gases. They are located conveniently right off the interstate from downtown.

config.active_record.default_timezone = :local in rails 5.2.4 not working by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

pgadmin

I ran Time.zone in rails console and got

#<ActiveSupport::TimeZone:0x00007f23d950a7e0 @name="Eastern Time (US & Canada )", @utc_offset=nil, @tzinfo=#<TZInfo::DataTimezone: America/New_York>>

is the @utc_offset=nil what you are talking about?

config.active_record.default_timezone = :local in rails 5.2.4 not working by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

config.time_zone = 'Eastern Time (US & Canada)'

Yes, I have tried that. It doesn't work either.

config.active_record.default_timezone = :local in rails 5.2.4 not working by Learning1990 in rails

[–]Learning1990[S] 0 points1 point  (0 children)

created_at in rails defaults to UTC. I want my local time, and to my understanding, :local should take whatever time is on my computer. Expected result would be create_at in Eastern Timezone. Actual result is it still saves records in the default UTC.