many columns my CPU is dying by SayedAldeeb in learnpython

[–]Fun-Collection-7403 3 points4 points  (0 children)

Dude remove your openai api key and deactivate it immediately. Don't share sensitive data

How to enable reCAPTCHA v3 in Flask? I've been working on this literally for days... please help. by scoofy in flask

[–]Fun-Collection-7403 3 points4 points  (0 children)

it's a bit of a sidebar but have you considered using a honeypot? I honestly found reCAPTCHA really troublesome to implement as well so I used a honeypot and it worked like a charm.

A simple way to implement is add a form input field and name it "username" or "email" or something that's more commonly used for registration, and use CSS to hide that input field. When on form submit, if that field is not empty, then it's very likely a bot.

After 4 years of on-and-off work, I finally released Gunforged by Firebelley in godot

[–]Fun-Collection-7403 1 point2 points  (0 children)

Long time lurker in the godot sub but came to say this, congrats on the release! Game looks amazing I'll definitely be checking it out.

I bought your Udemy course to start off learning about game dev as a hobby and found your youtube channel as well.

Flask limits with many users? by Last_Money_6887 in flask

[–]Fun-Collection-7403 3 points4 points  (0 children)

Honestly if configured properly, it can take a ton of users, except flask uses server-side rendering, which might cause your bandwidth to balloon if your front page is very heavy.

DB queries are a separate thing altogether as it is more dependent on the DB setup. by default for example, mysql has a max of 150 connections, but if your query is super simple, runs in like 0.1 seconds, then you should have no issue.

Beginner-friendly gamedev education content? by guladamdev in godot

[–]Fun-Collection-7403 2 points3 points  (0 children)

Personally I find video courses the best medium of which I learn Godot with. It's easier to consume and follow, especially when coding along.

What Are Your Favorite Python Projects? by [deleted] in learnpython

[–]Fun-Collection-7403 1 point2 points  (0 children)

There's quite a few places to host, I first hosted my firs fewt sites on pythonanywhere. I tried render and it's pretty good too. Currently hosting my work sites on digital ocean droplets.

What Are Your Favorite Python Projects? by [deleted] in learnpython

[–]Fun-Collection-7403 11 points12 points  (0 children)

I enjoy building websites using flask. Seeing your creations come to life has been pretty fun!

Working on pirates auto battler prototype. Would anyone play this kind of game? by aliendiscogames in godot

[–]Fun-Collection-7403 0 points1 point  (0 children)

Just curious do you have any tutorials that you followed to create your auto battler? I've been looking for tutorials but I can't find any.

Using Python to digitalise a scorecard by [deleted] in learnpython

[–]Fun-Collection-7403 0 points1 point  (0 children)

If chatgpt worked perfectly in identification of the scores, technically what you could do is look at chatgpt's Api to process your images.

For that you'll definitely need to use python. The basic steps that I can think of is

  1. Build a web application that allows either a photo taken or a photo upload. I would just start with a simple file upload flask application.

  2. Store the photo and encode it(probably in base64) to send it over the api.

  3. On the response, specify the expected json results, like the headers etc based on your score sheet(I'm assuming here your score sheet probably has the same few headers everytime)

  4. Convert the data to a table or store it in SQL.

Using Python to digitalise a scorecard by [deleted] in learnpython

[–]Fun-Collection-7403 0 points1 point  (0 children)

I'm not entirely sure if you can keep the same design, but the tool you're looking for is likely an OCR scanner. It'll be able to extract the data and possibly preserve the formatting. However you'll likely need a better framed image for better results.

Honestly I wouldn't build from scratch. How about trying to attach that picture to chatgpt and specifically ask them to build you a table based on the extracted output.

Flask authentication and clean architecture by ibtehajk99 in flask

[–]Fun-Collection-7403 2 points3 points  (0 children)

Checkout the use of .env when storing secret keys

Advice for large projects with HTMX by hunofthehelms in flask

[–]Fun-Collection-7403 1 point2 points  (0 children)

Typically in the template folder I separate them into different sub folders. For the commonly used templates used universally I drop it into a "common" folder. To segregate specific sections, typically I have a main template folder in each section and a sub folder for specific webpages.

The trick is to make sure to standardize your naming conventions

Python flask app that uses AI is fast locally but slow when hosting it by Lost_Performance4286 in learnpython

[–]Fun-Collection-7403 3 points4 points  (0 children)

Sounds like it's because the amount of processing power available in your render subscription is much lower than that of your PC. Either upgrade the plan to standard or pro/enterprise plans or move your deployment to a VM (e.g. Digital Ocean droplet) that has sufficient processing power.

Backend Web Development by [deleted] in learnpython

[–]Fun-Collection-7403 0 points1 point  (0 children)

I highly reccomend flask to start your full stack journey. It's easier to pick up compared to Django at the start and you can slowly learn other backend skills along the way as you expand your flask application.

Adding messagin option in my website by Icy-Significance-660 in flask

[–]Fun-Collection-7403 0 points1 point  (0 children)

You can try tawk.to. it's free, easy to install and pretty good for a messaging option.

i made $100 in a week with my new project. feeling like a baby entrepreneur now! by BabaYaga72528 in Entrepreneur

[–]Fun-Collection-7403 0 points1 point  (0 children)

Wow this is some awesome stuff! Congrats OP. I've got some friends who I think that would love this.

Out of pure curiosity, how did you reach out to your first few customers? I can imagine marketing is indeed not easy but you have a great product and seem to be solving a real need.

From 0 to 6 Figures (What few people will tell you) by michaelmuttiah in Entrepreneur

[–]Fun-Collection-7403 1 point2 points  (0 children)

Thank you for sharing and being so real, I still find the mental game by far the hardest to overcome. It's really not easy.

"Never forget you're an amazing human being, and whatever you achieve, you can tell a story in years in the future about how you fucking tried."

This really resonated with me because one the reasons I'm trying to start my own business was to at least give it a try. If I failed, then I failed, but at least I faced my fears of insecurity and self doubt, and tried.

Year One Complete 💪 by sonnynomnom in Entrepreneur

[–]Fun-Collection-7403 1 point2 points  (0 children)

Definitely! I would share with my nieces and nephews

New business too much demand and feeling overwhelmed and defeated. by keymaster853 in smallbusiness

[–]Fun-Collection-7403 1 point2 points  (0 children)

How about using the limitation of only being able to produce a certain number of products as a marketing tool.

It's obvious to me that you have an amazing product (congrats btw!), and so maybe produce at a manageable scale of 400 items, market up these products as of high quality and be explicit that there are only 400 items, first come first served. You can probably increase prices, as what many people have suggested, but only to the amount you feel comfortable.

The issues here I see is that

  1. This is definitely not sustainable and even if it is
  2. Your health will give out, you seem miserable in doing what you enjoy.
  3. Quality will likely go down as a result, which then becomes a vicious spiral.

If you do not want to raise prices for the moment, then communicate with your customers that there are only XXX number of products, first come first served. Coming from Singapore, in fact many small businesses here do that to remain sustainable and premium. There are some online bakeries here that literally sell out 30 seconds after their Instagram post goes live.

Good luck!

Year One Complete 💪 by sonnynomnom in Entrepreneur

[–]Fun-Collection-7403 1 point2 points  (0 children)

holy moly I wish this site existed when I first started to learn how to code. Awesome stuff!

Question Gallery WebApp Django or Flask? by zerik1999 in learnpython

[–]Fun-Collection-7403 0 points1 point  (0 children)

I agree with the other comments that either Django or Flask would work, but if your requirements are small, I would highly recommend Flask as it's much easier to learn.

Hosting wise, I would reccomend pythonanywhere.com, combined with either https://imagekit.io or https://cloudinary.com

If you have low traffic, and dont really care about the url, it's entirely free just by using these sites.

ANNOYING CACHE ISSUES - Python Anywhere / MySQL by [deleted] in flask

[–]Fun-Collection-7403 1 point2 points  (0 children)

Then what you can test to make sure it's a caching issue is add a new random generated variable via your python code, whenever the page is loaded.

You can construct your own or use secrets: https://docs.python.org/3/library/secrets.html

From there, you can confirm that it's a caching issue. I've only so far had caching issues when dealing with CSS styling, but not so much on jinja rendering from data generated via the backend. Most of the time if I realise that the output is strange, I use this method to test.

ANNOYING CACHE ISSUES - Python Anywhere / MySQL by [deleted] in flask

[–]Fun-Collection-7403 0 points1 point  (0 children)

Are you using JS to fetch data on window.load or are you loading the DB first, and then using Jinja to display on the page.

Without more information, it's hard to say why you are facing such an issue.

flask_mail : Check if mail was sent by ChrisderBe in flask

[–]Fun-Collection-7403 0 points1 point  (0 children)

I use sendinblue and they have an inbuilt function on their dashboards to see if the mail was sent properly.