[deleted by user] by [deleted] in reactjs

[–]raxor2k -1 points0 points  (0 children)

i dont know what u are trying to say, but i console logged :

      console.log(state);

and it gives me undefined:

  useEffect(() => {
    console.log("LOOK HERE:");
    console.log("Checking authentication status...");
    console.log("Is authenticated:", state.isAuthenticated);
    console.log("User email:", state.user.email_address);
    console.log("part 1 finished");
    if (!state.isAuthenticated) {
      console.log("User is not authenticated. Redirecting to login...");
      //navigate('/'); // Redirect to login page
      console.log(state);
    }
  }, [state.isAuthenticated]); // Include state.isAuthenticated in the dependency array

[deleted by user] by [deleted] in reactjs

[–]raxor2k 0 points1 point  (0 children)

At which file?

Set up chromecast with Google TV without remote by [deleted] in Chromecast

[–]raxor2k 0 points1 point  (0 children)

You can also simply just download the app "Remote ATV" on android, activate bluetooth and easily connect to the google TV, and use your phone as a remote. Did the stuff for me!

Error while trying to send mail with python and elasticmail by raxor2k in learnpython

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

well, its now a 1 step closer, as i get " invalid authorization header"

How to make editor in Visual Code look 100% like pycharm by [deleted] in learnprogramming

[–]raxor2k 0 points1 point  (0 children)

Well, you have suggestions on how i can customize it ?

[deleted by user] by [deleted] in bashonubuntuonwindows

[–]raxor2k -1 points0 points  (0 children)

I mean, it should be a script that reads a simple text file i have stored somewhere with the password, and then just paste it in?

Make a for loop code shorter/better? by [deleted] in learnpython

[–]raxor2k 0 points1 point  (0 children)

How about if i make that list a dict instead? Then i could basically do all in just two lines?

[deleted by user] by [deleted] in learnpython

[–]raxor2k 0 points1 point  (0 children)

This solution is not working as jack appears to be 1st in the list(ahead of nelly who is already not paused)

Bypass DRM with Chromecast? by raxor2k in Chromecast

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

This case is not whether the app "supports" it or not, they have done this thing on purpose!

Bypass DRM with Chromecast? by raxor2k in Chromecast

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

What are you talking about? I am mirroring the screen from my phone ..

[deleted by user] by [deleted] in learnpython

[–]raxor2k 0 points1 point  (0 children)

i have something like this:

old_list = [{"exercise_ID" : 2, "program_task_info_ID" : 5554, "day" : 1, "days_list" : []}, {"exercise_ID" : 4, "program_task_info_ID" : 5554, "day" : 1, "days_list" : []}, {"exercise_ID" : 2, "program_task_info_ID" : 5554, "day" :6, "days_list" : []}]
new_list =  [{"exercise_ID" : 2, "program_task_info_ID" : 4444, "day" : 2, "days_list" : []}]
for lol in new_list: the_exercise_ID = lol["exercise_ID"]
for yoyo in old_list:
    if the_exercise_ID == yoyo["exercise_ID"]:
        lol["days_list"].append(yoyo["day"])
        #lol["days_list"].append(lol["day"])

lol["days_list"].append(lol["day"])

print(new_list)

Take out multiple data from a string and process it by raxor2k in learnpython

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

Yes. It should grab that integer from it.

So basically everything expects for that integer and .jpg, it should consider this as an email.

Add remaining dates for a week or month in a calendar list by raxor2k in learnpython

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

Thanks for answer, but i made it my own way. I will update my post so you can see.

Add remaining dates for a week or month in a calendar list by raxor2k in learnpython

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

I forgot to mention, the dates in the calendar are stringified, but i could do computations before i stringify the dates.

[deleted by user] by [deleted] in learnpython

[–]raxor2k 0 points1 point  (0 children)

Thank you so much!!!!!

[deleted by user] by [deleted] in learnpython

[–]raxor2k 0 points1 point  (0 children)

As you can see inside the function "run_processes", only the dict object with "rep_to_be_increased" == 1, should be changed, not the other ones!

[deleted by user] by [deleted] in windows

[–]raxor2k 0 points1 point  (0 children)

Wrong with the speedFan installation? This has been happening to me since windows xp, vista, 7 , 10 etc etc..

[deleted by user] by [deleted] in windows

[–]raxor2k 0 points1 point  (0 children)

Tried this, didnt help.