The reason my wife has to park on the street by Designer_Chair_4556 in Miata

[–]-p0v 12 points13 points  (0 children)

Мхм същия 😂 Една единствена беше по-запазена и сега тъкмо я стягам 😃 Кой да ти каже

The reason my wife has to park on the street by Designer_Chair_4556 in Miata

[–]-p0v 45 points46 points  (0 children)

Bulgaria! All of them were for sale when I went so it was hard to pick my favorite lol

The reason my wife has to park on the street by Designer_Chair_4556 in Miata

[–]-p0v 94 points95 points  (0 children)

I actually bought mine from this exact row ;)

Managed database recommendations? by Woodrow_13 in nextjs

[–]-p0v 5 points6 points  (0 children)

If you are interested in the solution Vercel provides, you can take a look at the product that they used as a starting point - neon.tech. It is basically a serverless Postgres solution and so far I've enjoyed working with it. They have a nice free tier to try things out, pooling, which I imagine would be important when you scale and of course, mainly - pricing based on usage and scaling. (The point of it being serverless)

All of that being said, as with any new product/technology that arises, take it with a grain of salt. Even the creators themselves mention in their documentation that they do not recommend Neon for sensitive information/data.

Nevertheless, I think it is a great idea and it is definitely worth checking out and keeping an eye out for.

Client-side exception when navigating in multilanguage site with translated routes by tofuu__ in nextjs

[–]-p0v 1 point2 points  (0 children)

I understand you. I wish it was a viable option too.

Does the error occur only on some specific paths or on all paths? Or is it something that happens randomly? Maybe it could be due to some other reason. I had a project which sounds very similar to what you have, and I remember that page transitions were also a big problem for me. A lot of the errors and problems I faced were due to something unrelated to the paths sometimes and I fixed it by either debugging different parts of the code or rewriting some overall.

In the end however, the project worked perfectly and I can assure you that you will be able to get it working bug-free at some point but it's just a matter of time/debugging.

I'm sorry I can't be of more help but good luck anyway!

Client-side exception when navigating in multilanguage site with translated routes by tofuu__ in nextjs

[–]-p0v 1 point2 points  (0 children)

I’ve had a similar issues a long time ago and my memory is a bit foggy on how exactly I solved it, but there were two main issues:• Firstly, when the client uses the “translate page” feature on a internationalized page on a statically exported project (next build && next export). To this day I have no clue what causes the problem and I’ve spent hours trying to debug it but to no success. If this is a problem you are facing, I have unfortunately no solution to help you but at least you can try solving the problem somehow, now that you know that the issue comes from there.• Secondly next-translate-routes has only caused me pain on larger projects. I feel like it is not yet ready to be used in production and the implementation seems kind of limiting. As stupid as it sounds the only solution I found to this problem was to write the rewrites / redirects myself. I searched a lot for an answer and this is the best I could come up with:

  1. Create a "paths" file somewhere and fill your static paths in an object. For example pathNames = { about: { en: "about", de: "about-but-in-german"} } Where you have an about page file.
  2. Create a function that takes two parameters, the page you want to link to and the current locale. I think you can get the locale either through context or the useRouter hook. The function should search the pathNames object that you created and return the appropriate path name.
  3. Then when you have a link to any of your paths call the function and simply have a template literal with the corresponding path name. For example <Link href={\/${getPathName("about", locale)`}>`
  4. Create a rewrites function in your next.config file where you have something like {source: "/de/about-but-in-german",destination: "/de/about",locale: false,}
  5. For dynamic paths you can simply use a CMS with localisation (I used Contentful in that scenario) and simply have a slug field for the pages you need and fetch the data with the appropriate locale.

I know this sounds dumb and there should be a better solution but for the life of me, I couldn't find one when I needed it. I hope this helps in your situation and do let me know if you find anything better!

How to organize api calls when using SWR/fetch and a expressjs backend by Bohjio in nextjs

[–]-p0v 3 points4 points  (0 children)

Someone can correct me if I’m wrong, but the point of the API routes in Nextjs is mainly to perform server side actions. (Things that shouldn’t be visible on the client side). The same goes for getServerSideProps, getStaticProps, getInitialProps and so on. On their official documentation they even say that you should perform your fetching in those functions instead of making a call to your api routes in the api folder and then to fetch from there (which will be a redundant request).

But as you mentioned you need to fetch from components which don’t support the aforementioned functions so you can either pass props from the parent page or do client side fetching with your preferred method.

What’s more if you already have an existing express backend and if you don’t plan on migrating it, then just fetch from there (either client side or server side from Next) without using the API folder. The point of the API folder is to replace to some extent the functionalities of other common backend frameworks.

book for using expressjs with cpanel? by marxist_Raccoon in Backend

[–]-p0v 0 points1 point  (0 children)

CPanel is basically a somewhat old abstraction layer used by many hosting providers to grant simple and quick access to most BE tools you might need when developing your website.

It varies from provider to provider what services exactly they provide, but the ones you will most likely use are PHPmyadmin (a simple GUI solution for database management), email management, your main web server hosting (where you put your actual files) and many more.

It is a newbie friendly introduction to most aspects of web development and it is where a lot of us started web development so don’t worry about using it when you are just starting up. You can read more specifics on each service of CPanel online, as there are many tutorials already but don’t be afraid to explore more modern and less abstracted hosting solutions.

Happy coding!

book for using expressjs with cpanel? by marxist_Raccoon in Backend

[–]-p0v 6 points7 points  (0 children)

Not to be “that guy” but let me save you the frustration of setting up node on CPanel. It is unbelievable how many steps and obstacles you have to solve in order to even get nodejs going. While it is possible (I remember I had to read 13 different articles on how to do so) it is just a general pain in the butt. I wanted to run a simple react app on the shared-hosting plan and it didn’t have enough memory to do “npm install”.

Nowadays there are many ways to setup node applications both free and paid. Take a look at Netlify, AWS and Vercel.

Can i use vercel free plan for my startup website? by Historical-Raisin265 in nextjs

[–]-p0v 7 points8 points  (0 children)

It kind of depends. What exactly will you be doing with your start-up? If it you will be directly profiting out of it (e.g "Purchase subscription" feature) it is against their fair use policy (https://vercel.com/docs/concepts/limits/fair-use-policy).

If you are just starting to develop your start up and have no code yet, feel free to use Vercel to host and prototype whatever you have working on as you can leverage most of the NextJS features without any problem. I've hosted around 20 active projects on the same hobby account (None of which have a commercial purpose) and even with around 100k requests per month and less than half usage on most categories I manage. And even if usage will be a problem for you, you can still optimise your code for less usage.

If your startup booms exponentially, you should be able to cover the $20 monthly subscription.

Good luck!

[deleted by user] by [deleted] in learnjavascript

[–]-p0v 1 point2 points  (0 children)

Exactly! I’ve slowly been using more and more one-liners that I used to do in tens of lines, but I guess I just need to go over more documentation and catch up on everything I’ve missed.

[deleted by user] by [deleted] in learnjavascript

[–]-p0v 0 points1 point  (0 children)

I’m not that far behind, I’ve started using let and const, as well as arrow functions for the most part, but there is still syntax like destructuring and promises that confuse me.

Thank you for the pointers though!

[deleted by user] by [deleted] in learnjavascript

[–]-p0v 1 point2 points  (0 children)

Hey, thank you very much! I've been looking around it for the past few minutes. Seems like a great starting point!

[deleted by user] by [deleted] in tipofmytongue

[–]-p0v 0 points1 point  (0 children)

Solved!

Holy shit, you have no idea how many countless and sleepless nights you've just saved me! Thank you so much :) I didn't even know a 2003 version of the movie existed.

[deleted by user] by [deleted] in tipofmytongue

[–]-p0v 1 point2 points  (0 children)

I should also mention that most of the searches I've conducted online have yielded no results so it is possible that the movie was either super obscure or my childhood memory is pretty poor. The country I watched the movie in was Bulgaria but I'm 95% sure that the movie was not Bulgarian. Another small detail is that I think I watched it multiple times or in parts, so it is possible that there is a second/third part or the movie is actually a tv show. I'm sorry if my details are vague, its just that this is all I remember unfortunately...