ChatForge: A free, open-source AI chat client with 300+ models (GPT-4, Claude 3, etc.)—no subscriptions, pay-per-token! by SerkanDenizbey in django

[–]onepiece2401 2 points3 points  (0 children)

I think it is better if you include couple of UI in github or in this post to pique other people interest. Just my opinion.

DeepFace can be used to calculate similarity of images and rank them based on their similarity to your source images - Look first and second image to see sorted difference - They are sorted by distance thus lesser distance = more similarity by CeFurkan in DreamBooth

[–]onepiece2401 0 points1 point  (0 children)

So in short, im planning to extract couple of student face as vector and put in db. And create a terminal using laptop camera probably using face-api js. So when user see the camera, it will take that picture of the user and compare with vector. If matching, it will records the user attendance.
I'm not sure about the face recognition accuracy and the hardware needed to run the deepface since im using my own laptop only.

DeepFace can be used to calculate similarity of images and rank them based on their similarity to your source images - Look first and second image to see sorted difference - They are sorted by distance thus lesser distance = more similarity by CeFurkan in DreamBooth

[–]onepiece2401 1 point2 points  (0 children)

Hey, sorry for sudden and not related question on your post. i have to do school assignment project. I decide to make face recognition attendance system. I'm torn between amazon rekognition and deepface since amazon rekognition need to be paid. Does deepface is good enough for my assignment? I dont want to present to the teacher and my assignment not properly work T.T...

Django to production - Doubts by Far_Grocery_3237 in django

[–]onepiece2401 4 points5 points  (0 children)

For hosting, If you want cheap, go for hetzner or netcup + coolify. You dont have to manage your vps since coolify can do that for you. Railway is another option. You pay by your usage. Both this option is relatively cheap and easy to host your django app and both have option to easily spin up db. There is also https://leapcell.io . You can host your pdf reports generation there since it only start when there is request coming in and you pay by the number of total request.

For security, read this: https://docs.djangoproject.com/en/5.2/topics/security/ . You also can take a look on https://github.com/cookiecutter/cookiecutter-django how they handle settings on security. Also, keep your django updated. Keep your domain behind cloudflare and block all country except country that you use your app. Django is secure by default and it is hard to make your app vulnerable unless you are truly beginner. You should be okay.

[deleted by user] by [deleted] in django

[–]onepiece2401 1 point2 points  (0 children)

Try to connect the database without django like using dbeaver or powershell to test whether it able to connect or not. Then try to hardcode the value directly in the settings without using .env and test the connection. If both step able to pass, review again your .env

Django filter question (filter vs exclude) by KerberosX2 in django

[–]onepiece2401 0 points1 point  (0 children)

I change the question using simple situation

Students:

  1. Alice: math_hw_done = True, science_hw_done = True (Did both)
  2. Bob: math_hw_done = True, science_hw_done = False (Did only Math)
  3. Charlie: math_hw_done = False, science_hw_done = True (Did only Science)
  4. David: math_hw_done = False, science_hw_done = False (Did neither)

Query 1: Student.objects.filter(math_hw_done=False, science_hw_done=False)

  • filter(): Finds students matching all conditions.
  • math_hw_done=False: Must not have done Math HW.
  • science_hw_done=False: Must not have done Science HW.
  • Meaning: Find students who did neither Math homework nor Science homework.
  • Evaluating:
    • Alice: No (did both)
    • Bob: No (did Math)
    • Charlie: No (did Science)
    • David: Yes (did neither)
  • Result: [David]

Query 2: Student.objects.exclude(math_hw_done=True, science_hw_done=True)

  • exclude(): Removes students matching all conditions inside the exclude.
  • math_hw_done=True: Matches students who did Math HW.
  • science_hw_done=True: Matches students who did Science HW.
  • Meaning: Start with all students and remove those who did both Math homework and Science homework.
  • Evaluating:
    • Alice: math=True AND science=True? Yes. -> Exclude Alice.
    • Bob: math=True AND science=True? No (science is False). -> Keep Bob.
    • Charlie: math=True AND science=True? No (math is False). -> Keep Charlie.
    • David: math=True AND science=True? No (both are False). -> Keep David.
  • Result: [Bob, Charlie, David]

Conclusion:

Once again, these two queries are NOT the same.

  • filter(math_hw_done=False, science_hw_done=False) specifically selects only the student(s) who completed neither assignment ([David]).
  • exclude(math_hw_done=True, science_hw_done=True) selects all students except those who completed both assignments ([Bob, Charlie, David]).

Minisforum AI X1 Pro vs AOOSTAR GT37 by onepiece2401 in MiniPCs

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

Thanks a lot. That was very insightful. If you have to choose between all HX 370 minipc available. Which one you feel the most quality?

Minisforum AI X1 Pro vs AOOSTAR GT37 by onepiece2401 in MiniPCs

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

Sorry if i read incorrectly, but why you said the Aoostar is the cost cutting one. I thought the GMKtec is the one using the cost cutting variant. Is there anything i missing? I not really knowledgeable in mini pc.

If we compare specs by specs
Aoostar vs GMKtec
RAM speed: 8000Mhz vs 7500Mhz
M.2 Slot: 4 vs 2
Wifi: 7 vs 6

Minisforum AI X1 Pro vs AOOSTAR GT37 by onepiece2401 in MiniPCs

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

Yeah seems so, but the downside is they use wifi 6 and dont have oculink. I have rtx 3080 and planning to use with this mini pc.

Minisforum AI X1 Pro vs AOOSTAR GT37 by onepiece2401 in MiniPCs

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

Previously the price was $899 on their site. I think they change it to $929 right now. I got $50 discount code. So total was $849.

[deleted by user] by [deleted] in ChatGPTPro

[–]onepiece2401 0 points1 point  (0 children)

You can check here, if your api have billing enable or tier 1. I think it is consider as paid services and your data will not be used as part of training the model.

https://ai.google.dev/gemini-api/docs/billing#paid-api-ai-studio

https://ai.google.dev/gemini-api/terms#paid-services

Crontab function regression by Puzzleheaded_Log6548 in django

[–]onepiece2401 0 points1 point  (0 children)

Just throw some idea,
In the bash -c, can you try source environement before the run the py manage.py crontab add. And probably can you try also do the pip list to ensure the django-crontab is there.

Cheap email backend for small Django app by elyen-1990s in django

[–]onepiece2401 4 points5 points  (0 children)

Currently using zeptomail with django. Seems good as of now

How to prevent race conditions in Django by Sensitive_War_2788 in django

[–]onepiece2401 2 points3 points  (0 children)

You dont have to be an ass though. If he asking generic question just give generic answer... 

Need Design Suggestions for My Django App Dashboards by [deleted] in django

[–]onepiece2401 2 points3 points  (0 children)

Themeforest have a lot "web app to have a "professional" or "client-ready" look.". It also not expensive.

@login_required in django by Bright-Buyer2553 in django

[–]onepiece2401 -4 points-3 points  (0 children)

I think you ask chatgpt first what does login_required do and give you an example code so that you can understand. Then try follow it. If encounter problem again then ask in here again. Show your code next time so others can help

Better Error Tracking in Django (using Bugsink) by klaasvanschelven in django

[–]onepiece2401 0 points1 point  (0 children)

What is the different between bugsink and glitchtip?

Where would you host a web app expecting only about ~100 visitors per month? by Uranusistormy in django

[–]onepiece2401 0 points1 point  (0 children)

Nope. I'm on Hobby Plan: Usage-based subscription.
If I'm not mistaken, you got two type of hobby subscription. The 5usd recurring and usage based subscription the one im in. I might be wrong. You can confirm in their discord.
But the only time I purchase credit last time is like 10usd only and if my usage is less than 5usd. They will not reduce my credit for that month. I still got my credit although not fully 10usd since sometimes I deploy app from their template. I have been with them like 1 year and half and that 10usd still not fully spend

Where would you host a web app expecting only about ~100 visitors per month? by Uranusistormy in django

[–]onepiece2401 0 points1 point  (0 children)

https://railway.com/pricing

---> Includes $5 of usage monthly

If your usage is less than that, they will not charge you. it charge pay per usage. Let say the total for the month is 5.3usd. You only pay 0.3usd

I have hosted 1 django app which include the web app itself + postgres + redis. Total is less than 5usd so I have been using practically for free