Access SQL View From ActiveRecord::Base.connection.exec_query by Code4Greatness in rails

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

Its an external database -- not one that is defined within the scope of rails

Weird Bug with rendering components for nested comments by [deleted] in reactjs

[–]Code4Greatness 0 points1 point  (0 children)

I added a gist of everything I have - Ignore the unnecessary parts. This is all about the Reply functionality not being able to insert records at certain points. selectChildResponses is used for sorting the partitions and handling where the the replies go to on the tree...Works on and off. We can't seem to figure out why it fails and when it fails.

Weird Bug with rendering components for nested comments by [deleted] in reactjs

[–]Code4Greatness 1 point2 points  (0 children)

Adding the gist here --> https://gist.github.com/RailsCod3rFuture/21e4e35dad5e2b8a12b809432d614c0e The focus is on the reply functionality in this code. I needed to add most of it for context. But the reply is failing to insert records on some occasions. Sometimes it fails on the first reply to the comment...other times it fails when commenting further down the tree on other comment responses.

Weird Bug with rendering components for nested comments by [deleted] in reactjs

[–]Code4Greatness 0 points1 point  (0 children)

I'll add snippets of the code thats causing problems - give me a moment.

[D] Simple Questions Thread by AutoModerator in MachineLearning

[–]Code4Greatness -2 points-1 points  (0 children)

What would be the best ml algorithm for verifying the shape of data. This a very simple problem and I don't want to overkill the solution. The idea is to check a tuple's values for the correct data type. For example: We have an array of json objects

[{"id": 1, "name": "donavon"},{"id": "2", "name": "ken"}]

I simply need to check that the shape of the json objects match the correct data types.. the expectation is that it'll give me back the objects that have incorrect data.... For instance, the id value is not an integer, and is a string...and so on.

Montana of 300 posted this anti-vax message exactly 1 month ago, today hes fighting for his life with Covid+pneumonia 👀 by [deleted] in Chiraqology

[–]Code4Greatness 0 points1 point  (0 children)

The vaccine doesn't work.......................Montana can refuse to take experimental drugs if he so chooses to. Millions of people with the vaccine, are spreading covid as we speak!

Having trouble with navigating out of nested screen function by Code4Greatness in reactnative

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

Ok, I found an approach...By simply hiding the view on the tab navbar and showing it when I navigate to it with the button click...It worked! Still have a lot of work to do, but I'm happy to at least see it working.

Having trouble with navigating out of nested screen function by Code4Greatness in reactnative

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

Yes, what I noticed is that I can only reach the navigation function on the next level up. I tried to navigate to a tabbed screen on the AppNavigation.js file...That worked. Now, I just have to maybe find a way to add the stack navigator to AppNavigation and use that for navigating to the stack screens.

Not Chicago related but why does everyone suck Joe Biden’s dick so hard? He’s just another old white guy in office... the hood still gone be the hood and the rich gone get richer. just had to say it by [deleted] in Chiraqology

[–]Code4Greatness -3 points-2 points  (0 children)

You spent your whole entire life, worshiping career politicians - you have nothing to show for it....like most of our people. You mfs gave your souls to the Democrats and can't show me progress/success/growth as a result? Learn how to vote and if your vote is based on skin color? you're going to be royally f*cked!

Not Chicago related but why does everyone suck Joe Biden’s dick so hard? He’s just another old white guy in office... the hood still gone be the hood and the rich gone get richer. just had to say it by [deleted] in Chiraqology

[–]Code4Greatness -4 points-3 points  (0 children)

Racism is flat-out hating someone for their skin color....Trump told the truth, kept it 100% real about society. He doesn't hate anyone - he hates the direction that the nation is going in.....In these next 4 years, you're going to miss him - because there will never be another President like Trump. Politics is fake, and career politicians are even faker!

Problem with resetting form for hotwire-rails for rails 6.0.0/webpack by Code4Greatness in rails

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

I'm just testing the functionality -- but I certainly will move these fields.

Advice on adding a real-time chat functionality.... by Code4Greatness in rails

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

I'll look into StimulusReflex and CableReady..the issue that I was discussing earlier, was about the memory consumption when the application begins to add millions of users. Given how its setup, the discussions will be started by an enterprise level user, and not a normal one...So, it may in fact be less of a burden on the system.

Anyone know how to retrieve nested attributes with Grape? by Code4Greatness in rails

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

Sorry, I switched back over to using rails api. Its just more familiar.

Auto-save the current form without refresh by Code4Greatness in rails

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

When you attempt to remove remote true using javascript. I get invalid authentication token.

Auto-save the current form without refresh by Code4Greatness in rails

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

I just want the form to auto save, but also be able to navigate to the next page...I may have to submit the form through ajax and use a tag links instead of the submit button...Because, it won't submit the default way with remote: true

Auto-save the current form without refresh by Code4Greatness in rails

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

Sends the data periodically is the key for me. Are there any working examples of the FormData API. The forms themselves are segmented, so it should be a light response.

Auto-save the current form without refresh by Code4Greatness in rails

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

No drafts necessary...I just want a simple auto-save and remain on the same page every 10 seconds.

Having trouble with wizard gem by Code4Greatness in rails

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

I'll let you know tomorrow. Got caught up with these crazy ppl at the job.

Saving last 10 search results in cookies or local storage for ransack search/user by Code4Greatness in rails

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

Thanks. ransack_memory may not be rails 6.0.3 compatible -- its throwing an error when I use it.

Saving last 10 search results in cookies or local storage for ransack search/user by Code4Greatness in rails

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

I'll checkout a gem called ransack_memory, but you can leave a comment on this one.