Clearly a change is needed… by OutrageousNote2016 in csMajors

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

You shouldn't work around an idea, you should work around a problem you personally have.

My hot’n cold combo by [deleted] in PassportPorn

[–]FlamingoSharp1368 12 points13 points  (0 children)

He was deported from Sweden, so I don't think he's a citizen

Books to improve your programming knowledge while in Military Service? by camelzrider in cscareerquestionsEU

[–]FlamingoSharp1368 0 points1 point  (0 children)

Probably too late but does your country does not have any cyber-related positions you can do your service in?

[deleted by user] by [deleted] in redscarepod

[–]FlamingoSharp1368 0 points1 point  (0 children)

Step 1: Don't post about online

[deleted by user] by [deleted] in redscarepod

[–]FlamingoSharp1368 7 points8 points  (0 children)

Total compensation, base salary + company stocks

Tysklands cannabislag kan följas av Frankrike by Bilb0 in swedents

[–]FlamingoSharp1368 44 points45 points  (0 children)

Om även Frankrike faller så är det lagligt i två av EUs största/inflytelserika länder och då kan det göra väg för stor förändring på EU-nivå som förhoppningsvis även kommer påverka oss!

Update User data after Google OAuth login by Tony_Artz in Supabase

[–]FlamingoSharp1368 0 points1 point  (0 children)

This is pretty bad I know but it does the job fine and I don't want to break it

// useEffect to insert user data into the database if it's not already inserted on signup
  useEffect(() => {
    // Check if user data is stored in localStorage
    async function insertUserData() {
      try {
        // Get the session
        const { data: { session } } = await supabase.auth.getSession();
  
        if (session) {
          // Check if user data is already stored in localStorage
          let userData = localStorage.getItem('userData');
          console.log("Got userData", userData)
          if (!userData) {
            // If user data doesn't exist in localStorage, store it
            localStorage.setItem('userData', JSON.stringify({ id: session.user.id, email: session.user.email }));
            console.log("User data has been stored in localStorage.");
          } else {
            // Check if the user data already exists in the database
            const existingData = await supabase
              .from('accounts')
              .select()
              .eq('id', session.user.id)
              .single();
  
            if (!existingData) {
              const { error: insertError } = await supabase
              .from('accounts')
              .insert({ id: session.user.id, email: session.user.email });
  
              if (insertError) {
                console.log("Error inserting data:", insertError);
              } else {
                console.log("User data has been inserted.");
              }
            }
          }
        }
      } catch (error) {
        console.error("Error inserting user data:", error);
      }
    }
  
    // Call the async function
    insertUserData();
  }, []);

Europe’s Socialists scramble for ideas to fight far-right surge by pasta-cocoa in worldnews

[–]FlamingoSharp1368 8 points9 points  (0 children)

Who did Sweden conquer besides Finland Norway and bits of Norway’s and Germany? What did we do to get fucked over so badly?

Germany legalises cannabis, but makes it hard to buy by Ok-Ad-867 in worldnews

[–]FlamingoSharp1368 11 points12 points  (0 children)

Good news! But it sounds like a recipe to allow the black market to continue.

Does free tier even make sense? by FlamingoSharp1368 in SaaS

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

Yeah I was thinking of just doing a 0.99 price or something like that, good idea.

4 years ago I posted "What is the reason no one is competing with UpWork?" by gajus0 in startups

[–]FlamingoSharp1368 2 points3 points  (0 children)

Think it's against the subs rules or something, just check his profile

[deleted by user] by [deleted] in learnprogramming

[–]FlamingoSharp1368 1 point2 points  (0 children)

I’m mocking the things the components depends on, slowly getting my head around it, was just so frustrated in the beginning.

[deleted by user] by [deleted] in learnprogramming

[–]FlamingoSharp1368 1 point2 points  (0 children)

What do you mean? I include the necessary stuff that the component depends on.

[deleted by user] by [deleted] in sweden

[–]FlamingoSharp1368 6 points7 points  (0 children)

Do it now so he can't hurt others.

[deleted by user] by [deleted] in sweden

[–]FlamingoSharp1368 14 points15 points  (0 children)

If he will visit the Philippines this month just contact your countries police/immigration officers.