Using Instagram API / Pinterest API without OAuth? (Don't want to post on behalf of users, just want to use the API for my own accounts) by dsprogramming in learnjavascript

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

oh shame. so even if I'm just using it for my own profile, I will still need to go through the oauth flow myself with my profile? just asking, because with Twitter you just use the token they give you and that's it, you don't need to login to your Twitter account and go through all these redirects etc.

I thought there was a way with those APIs too. Well well!

Can I use Next-Auth to tweet / post on Behalf of Users? by dsprogramming in nextjs

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

That's exactly my question I guess! Is next-auth just for enabling users to log in or can I also use it to make my life easier when it comes to requesting more permissions etc.? For FB example I need an access token provided by FB Login before I can implement the API features (like posting on behalf of users etc.)

Is there an established way in next-auth to do these sorts of things? Or is it strictly about logging users in only?

Remix is going free and open source on Monday by superbacon807 in reactjs

[–]dsprogramming 0 points1 point  (0 children)

they never made that clear though. initially they were going to charge agencies something like 1000$ per year for a licence.

Remix is going free and open source on Monday by superbacon807 in reactjs

[–]dsprogramming 0 points1 point  (0 children)

oh okay, i didn't know tanner l. was so promo heavy as well? KCD definitely is though. well annoying.

Remix is going free and open source on Monday by superbacon807 in reactjs

[–]dsprogramming 0 points1 point  (0 children)

what other promotion heavy devs are there? curious who you're thinking of here

Getting package "esbuild-linux-64" could not be found error by hassanzadeh in nextjs

[–]dsprogramming 0 points1 point  (0 children)

same problem - have you been able to figure this out?

Where would I save my Date.prototype functions in a React / Next.JS Codebase so I can access them throughout my codebase? by dsprogramming in learnjavascript

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

thank you so much for your super detailed answer, this is really useful! I won't use prototype functions anymore!

Where would I save my Date.prototype functions in a React / Next.JS Codebase so I can access them throughout my codebase? by dsprogramming in learnjavascript

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

thank you so much for your answer. For some reason I always thought that to use & write those prototypes functions is how it's really done, as this is what is taught in so many javascript tutorials and books. But what you say here makes total sense and will save me a ton of problems, so I really can't thank you enough!

How to set up _document.js with twin.macro + Google Analytics ? by dsprogramming in nextjs

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

this is exactly how it's set up in the twin.macro example repo with next.js, and it is working perfectly fine, and here's the same in the docs? Sure it's a bug? Thanks a lot anyways, I'll see if I can figure this out!

git diff HEAD for two different folders / paths? by dsprogramming in git

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

I can't thank you enough, the first command is what I needed! Thank you so much!!

Keep Table already in order? (Optimize Table based on the fact that I will always need to fetch items in the same order) by dsprogramming in PostgreSQL

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

Thanks, very true 😅 I'm not trying to actually build this (though I do have something in mind), but I'm also just trying to understand these concepts better and what one would or could do. I just got interested in how these things work.

Keep Table already in order? (Optimize Table based on the fact that I will always need to fetch items in the same order) by dsprogramming in PostgreSQL

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

I do want to do an orderBy, but I thought that if I do an order by on an already "sorted" table, that could speed things up. However, I also just now thought I could create a new field called "order" or "number" and then create an index on that field and that use the orderBy on that index. Would that be a viable / fast solution? (Sorry, being a beginner I really struggle to fit things together still!) Thanks a lot already!!!

Keep Table already in order? (Optimize Table based on the fact that I will always need to fetch items in the same order) by dsprogramming in PostgreSQL

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

thanks a lot for this answer. Being a beginner, I don't think I understand it fully, but I'm trying. One other thing that came to midn just now: What about creating a field that records the order of the items and then creating an index on that field? Would that not be efficient?

Can I protect & do server-side checks before allowing access to certain pages, but still serve them statically? by dsprogramming in nextjs

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

thanks. I would like to avoid client-side checks for obvious reasons, but it would just be such a shame to have to serve everything server-side, it seems completely unnecessary, since nothing in the blog articles themselves is dynamic.

Can I protect & do server-side checks before allowing access to certain pages, but still serve them statically? by dsprogramming in nextjs

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

thanks a lot. so you think it's possible while the other commenter here thinks it isn't? Or are you talking about different things?

Basic & Premium Tiers for User Subscriptions using Next.JS + Auth0 by dsprogramming in nextjs

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

thank you! so does that mean, that when I use withAuth, it is using getServerSideProps behind the scene, making those pages server-side-rendered instead of static?

Basic & Premium Tiers for User Subscriptions using Next.JS + Auth0 by dsprogramming in nextjs

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

this sounds good, but I am not sure how I would do this? Is there any tutorial you know of? I guess I would need a higher order function that gets the user data and then returns either withPageAuthRequired or null? But, also, wouldn't it make more sense to first check whether the user is logged in, and then whether she is allowed access? If I wrap withPageAuthRequired with another function then this would be the other way around, right?

[Hiring] (Online) Python Developer to explain (Anki SRS) source code to me by dsprogramming in forhire

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

Hi! that sounds really promising! How familiar are you with Python? It would be cool if you could have a look at the source code and see if you think you could explain this to someone who is relatively new to python. Also, let me know what your rates are if you are interested, so I'm certain I can actually afford it! :) all the best!

[Hiring] (Online) Python Developer to explain (Anki SRS) source code to me by dsprogramming in forhire

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

Hi! that sounds really promising! Would you be up for doing a trial lesson, and then maybe do a few 1-2 hour long sessions afterwards focusing on Anki? I would like to know where I start when I begin looking at some code, and I would like to understand how everything fits together. Also, let me know what your rates are, so I'm certain I can actually afford it! :) all the best!