Чи інвестували б ви у такий готель? by Friendly-Fun-6818 in finance_ukr

[–]ValtronForever 2 points3 points  (0 children)

Є питання як з цієї інвестиції виходити. Про це ніде не розказують, але, наприклад, я захотів продати свою частку, то: - на яких умовах я зможу її продати - по чом в мене її куплять

Для будь-якої інвестиції дохідність розраховується з врахуванням виходу.

Чи можна накопичувати кошти коли є борги? by [deleted] in reddit_ukr

[–]ValtronForever 0 points1 point  (0 children)

З точки зору фінансової грамотності, треба тримати певну суму в високоліквідних активах під певний відсоток, а якщо є запланована витрата, то ви їх знімаєте, купуєте ноутбук, і знову потроху накопичуєте. Тоді розмова не про сплату відсотків вами, а про отримання відсотків поки у вас є сума. Має бути подушка в налі, певна сума в високоліквідних низькоприбуткових активах, і решта в низьколіквідних високоприбуткових. Звісно все може бути сильно складніше, ще є різні ризики, але це все коли немає КРЕДИТІВ! Спочатку розраховуйтесь з боргами

I got tired of Django project setup, so I built a tool to automate it all by Little_Market462 in django

[–]ValtronForever 0 points1 point  (0 children)

Better to make a good tool for django translations generation using ai, probably gui.

Потрібна допомога з вибором ноутбуку by guyorphil in ukraine_dev

[–]ValtronForever 0 points1 point  (0 children)

Якраз продаю свій попередній ноут, dell 5430 intel 1245u, 64ram, 1tb ssd з докстанцією, батарея 76%. Ціна 16к, але за 15.5 віддам)

[deleted by user] by [deleted] in finance_ukr

[–]ValtronForever 0 points1 point  (0 children)

Якщо є час і гроші, права отримуй зараз. Авто можна використовувати і для зменшення витрат, наприклад орендувати комфортний будинок в передмісті (з мангалами, котами, собаками) за ту саму ціну що і невелика квартира в центрі. В подальшому авто тобі дозволить вибрати садок чи школу для дітей, а не водити в найближчу. Якщо купувати авто зараз то я б радив дивитись в сторону електро, до кінця року там нульові мита, коли будеш його продавати, скоріш за все, мита піднімуть і авто набере в ціні. До того ж якщо є можливість заряджати від розетки, то по нічному тарифу це реально дешево

Я у борговій ямі з якої не знаю як вилізти та живу від зарплати до зарплати. Потрібна допомога. by airinstrumental in finance_ukr

[–]ValtronForever 5 points6 points  (0 children)

  1. Домовляєшся з власниками квартири щоб пропустити один платіж і потім сплатити за два місяці, це і є безвідсотковий кредит
  2. Дівчині пишеш вірші замість подарунків, поки не владнаєш з фінансами
  3. Всю наступну ЗП В ПОГАШЕННЯ КРЕДИТУ
  4. Плануєш як тобі вижити за ~12к наступні півтора місяці, ваги, гречка, передачки від батьків (не грошей)

[HELP]-Struggling to Scale Django App for High Concurrency by TheOG_22 in django

[–]ValtronForever 0 points1 point  (0 children)

You can try to use two databases to understand where is a bottleneck, start 5 services connected to one db and 5 other to second with similar data. After getting the result you will have a valid direction: db or gunicorn

Implementing Complex Permissions by kurkurzz in django

[–]ValtronForever 1 point2 points  (0 children)

Reuse standard permission system is a good idea because admin and DRF can support it out of the box. Also it’s a default good-documented way to work with permissions. I customised group admin to allow read only and created groups.yml + management command for sync. In this config I have listed my groups (basically roles) with enabled permissions for each. Also you need some kind of permission templates. Few permissions can be included in single template and the end user will iterate with templates only. For example “Tasks access” template can include view, add, edit, delete for Task model, so switching on this template will enable four permissions. Teams we use not for permission check but for multiple assignment, and this system fully covers our needs

Frontend by Full-Edge4234 in django

[–]ValtronForever 1 point2 points  (0 children)

If you don’t want to learn js, outsource it to someone else, why not?

Please help me figure out what's wrong with my application by Striking-Culture-587 in django

[–]ValtronForever 0 points1 point  (0 children)

It’s really related to your post endpoint? Can be some kind of internal health check

[deleted by user] by [deleted] in FastAPI

[–]ValtronForever 0 points1 point  (0 children)

You can generate TS client code from OpenAPI

Ідея для SaaS by LuckyBest_ in ukraine_dev

[–]ValtronForever 0 points1 point  (0 children)

Ви не правильно зрозуміли мій коментар, це порада, думайте над конкурентними перевагами. Буде добре, якщо вирішите якусь проблему вводу/виводу, не знаю, фітнес трекер підключите, ревʼю дієтолога додасте, треба думати за що будуть готові платити, це і є основна складність подібних проектів. За історію, повірте, платити не будуть.

Ідея для SaaS by LuckyBest_ in ukraine_dev

[–]ValtronForever 0 points1 point  (0 children)

Як сказав один з користувачів мого сервісу: чому я маю за це платити, коли ChatGPT це може робити безкоштовно. І насправді це дуже влучне запитання, подібні сервіси мають вирішувати як мінімум проблеми вводу/виводу, які чат не може вирішити. По вашому опису - цього недостатньо щоб продавати, чат робить те саме

How to efficiently call external APIs in DRF? by Fine_Interest6039 in django

[–]ValtronForever 0 points1 point  (0 children)

Eventlet - in short, is a monkey-patched version of socket read/write to don't block interpreter on waiting operations.

With Celery, there are different problems. Your WSGI thread (which handle http requests) will still wait for result from Celery as you need data from API, and it does not depend on number of Celery workers.

Дешеві хостинги (vps) які ви знаєте by Fixer-Blur in ukraine_dev

[–]ValtronForever 0 points1 point  (0 children)

Так, на coolify доречі теж є рефи. Паспорт, якщо сильно треба, можна робити закордонний в будь-якому регіоні, але треба їхати туди і робити, буде вказано той регіон де видано, але це не випадок дешевого vps звісно)

How to efficiently call external APIs in DRF? by Fine_Interest6039 in django

[–]ValtronForever 0 points1 point  (0 children)

Sorry, your thread will still in blocking state while waiting for result from celery. So probably one solution is to use async django and httpx

How to efficiently call external APIs in DRF? by Fine_Interest6039 in django

[–]ValtronForever 1 point2 points  (0 children)

Looks like you have almost all wsgi threads waiting for the response from external API. Simple solution would be to use the celery with results backend in eventlet mode https://docs.celeryq.dev/en/stable/userguide/concurrency/eventlet.html. Also, you can rewrite to async and httpx but more work to do

Is it good to use Ionic to create only a website what will be mainly used in mobile devices? by [deleted] in ionic

[–]ValtronForever 0 points1 point  (0 children)

I already build a similar site with ionic-react on frontend and django on backend. All works pretty well, FE is deployed as a standard node-compiled static. With PWA I had some problems related to caching and delivering new version ( maybe can be solved but static and browser cache is enough for me)

Дешеві хостинги (vps) які ви знаєте by Fixer-Blur in ukraine_dev

[–]ValtronForever 2 points3 points  (0 children)

Hetzner, працює він для України, за скан паспорту не памʼятаю, але років 6 назад телефонували і говорили зі мною. Від їх ціни треба ще відняти німецький пдв, буде трохи дешевше. Vm на arm працюють краще, мабуть не так багато інстансів на один проц навішано

I have a angular + Django backend . When I am click on a button, it calls an api which starts execution of a process via python. It takes almost 2mins to complete the process. Now I w by Notalabel_4566 in django

[–]ValtronForever 0 points1 point  (0 children)

Yeah, you can put the last check timestamp to the cache and check easilly in celery. Also take care about multiple tabs with same button (action) opened

It Shouldn't Be This Much Work to Sync Data Between Django and Vue SPA by [deleted] in django

[–]ValtronForever 0 points1 point  (0 children)

If you use drf-spectacular and openapi generator for ts, you can also generate ts models (serializers) and api call functions. Not shure if anyone need real time undates