Evgenii Legotckoi
Evgenii LegotckoiMarch 19, 2023, 10:56 a.m.

DjangoDjango - Tutorial 061. Adding a Unique View Count

Django, Counter, Django 3, python, Django 4

At the very beginning of creating articles and questions on the forum, I added a simple counter of views on this content.
This counter was an ordinary field of integer type and each time a page was requested it was …

Read
Evgenii Legotckoi
Evgenii LegotckoiMarch 18, 2023, 4:09 p.m.

DjangoDjango - Lesson 060. Speeding up a website with caching templates

Django 3, model_cached_property, cache, Django 4, invalidate, Django

One of the ways to significantly speed up the speed of a Django site is to cache both individual parts of the site templates and cache the templates after they are compiled by the site. Therefore, we will study both …

Read
Дмитрий
ДмитрийDec. 10, 2022, 1:50 p.m.

QtHow to open image with correct orientation with Qt tools

QImageReader, поворот изображения при загрузке, QImageWriter, поворот изображения, метаданные jpg

Some popular image formats (like jpg) may contain metadata. One of them is rotation. If you create the file in a graphics editor, then rotate it in the viewer, and finally load it into your application using the QImage, QPicture, …

Read
Evgenii Legotckoi
Evgenii LegotckoiOct. 16, 2022, 3:58 p.m.

Djangodjango_model_cached_property - Caching property for individual model objects in Django

cache, model_cached_property, invalidate, redis, Python 3, Django

Introducing the release of the stable battery django_model_cached_property for caching property for individual model objects in Django.

I already said that evileg_core contains similar functionality, but now I decided to bring this caching into a separate package. This is due …

Read
Дмитрий
ДмитрийSept. 7, 2022, 2:40 p.m.

C++Engineering solution of a cubic equation using Vieta's trigonometric formula

кубическое уравнение, unique_ptr, компьютерная математика, полиномиальное уравнение, тригонометрическая формула Виета

As you know, the solution of the cubic equation has been known since the 16th century. However, even today, engineers can face a problem in solving it. This complexity is due to the need to extract the root from complex …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 5, 2022, 3:45 a.m.

DjangoAnalysis of errors in the development and promotion of a site on Django - Custom tag<cut>

development, Django, Custom

And now some thoughts on the topic of custom tags, and whether they should be introduced at all.

The short answer is NO.

Now let's think about this topic - "Why?" . There is such a well-known Russian-language resource Habr, …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 2, 2022, 6:06 a.m.

DjangoAnalysis of errors in the development and promotion of a site on Django - Multilingual forms

forms, Мультиязычноть, Django, Translations

With this publication, I would like to start sharing my observations after almost seven years of supporting the EVILEG project. So that every newbie could roughly understand and imagine whether it is worth doing a similar or different functionality or …

Read
sonia jessica
sonia jessicaJune 21, 2022, 3:34 a.m.

JavaJava Array Programs

Java, Interview

Arrays in java:

  • An array is the basic Data Structure that contains items of similar data types.
  • There is always an ordering amongst the position of the element.
  • It can be accessed with the help of the indices. Java supports …
Read
Evgenii Legotckoi
Evgenii LegotckoiJune 13, 2022, 5:15 a.m.

C++Leet Code Solutions - 003 - Longest Substring Without Repeating Characters

cpp, LeetCode, C++, C++17, string

Solution "Longest Substring Without Repeating Characters" on Leet Code


class Solution {
public:
    int lengthOfLongestSubstring(string s) {
        string candidate_str = "";
        string checking_str = "";
        size_t position = std::string::npos;
        for (auto& ch : s)
        {
            position = checking_str.find(ch);
            if (position …
Read
Evgenii Legotckoi
Evgenii LegotckoiJune 13, 2022, 4:13 a.m.

C++Leed Code Solutions - 002 - Add Two Numbers

LeetCode, cpp, C++

Solution "Add Two Numbers" on Leet Code


/**
 * Definition for singly-linked list.
 * struct ListNode {
 *     int val;
 *     ListNode *next;
 *     ListNode() : val(0), next(nullptr) {}
 *     ListNode(int x) : val(x), next(nullptr) {}
 *     ListNode(int x, ListNode …
Read
Evgenii Legotckoi
Evgenii LegotckoiJune 13, 2022, 3:58 a.m.

C++Leet Code Solutions - 001 - Two Sum

cpp, LeetCode, C++

Two Sum solution on Leet Code


The simple solution

class Solution {
public:
    vector<int> twoSum(vector<int>& nums, int target) {
        for (int i = 0; i < nums.size(); ++i)
        {
            for (int j = i + 1; j < nums.size(); ++j) …
Read
Evgenii Legotckoi
Evgenii LegotckoiJune 1, 2022, 4:30 a.m.

DjangoDjango - Lesson 059. Saving the selected language in user settings

python, language, django, translation

In this article, I would like to show an example of how you can make a link on the site so that the user can switch between languages on the site.

But I will show a more advanced version of …

Read
1
  • 12333
  • July 18, 2024, 3:34 p.m.

Qt - Test 001. Signals and slots

  • Result:63points,
  • Rating points-1
1
  • 12333
  • July 18, 2024, 3:25 p.m.

C++ - Test 005. Structures and Classes

  • Result:50points,
  • Rating points-4
AM

C++ - Test 005. Structures and Classes

  • Result:33points,
  • Rating points-10
Last comments
d
dblas5July 5, 2024, 9:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
k
kmssrFeb. 9, 2024, 5:43 a.m.
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
Qt WinAPI - Lesson 007. Working with ICMP Ping in Qt Без строки #include <QRegularExpressionValidator> в заголовочном файле не работает валидатор.
EVA
EVADec. 25, 2023, 9:30 p.m.
Boost - static linking in CMake project under Windows Ошибка LNK1104 часто возникает, когда компоновщик не может найти или открыть файл библиотеки. В вашем случае, это файл libboost_locale-vc142-mt-gd-x64-1_74.lib из библиотеки Boost для C+…
J
JonnyJoDec. 25, 2023, 7:38 p.m.
Boost - static linking in CMake project under Windows Сделал всё по-как у вас, но выдаёт ошибку [build] LINK : fatal error LNK1104: не удается открыть файл "libboost_locale-vc142-mt-gd-x64-1_74.lib" Хоть убей, не могу понять в чём дел…
Now discuss on the forum
F
FynjyJuly 22, 2024, 2:15 p.m.
при создании qml проекта Kits есть но недоступны для выбора Поставил Qt Creator 11.0.2. Qt 6.4.3 При создании проекта Qml не могу выбрать Kits, они все недоступны, хотя настроены и при создании обычного Qt Widget приложения их можно выбрать. В чем может …
BlinCT
BlinCTJune 25, 2024, 11 a.m.
Нарисовать кривую в qml Всем привет. Имеется Лист листов с тосками, точки получаны интерполяцией Лагранжа. Вопрос, как этими точками нарисовать кривую? ChartView отпадает сразу, в qt6.7 появился новый элемент…
Evgenii Legotckoi
Evgenii LegotckoiJune 25, 2024, 1:11 a.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
BlinCT
BlinCTMay 5, 2024, 3:46 p.m.
Написать свой GraphsView Всем привет. В Qt есть давольно старый обьект дял работы с графиками ChartsView и есть в 6.7 новый но очень сырой и со слабым функционалом GraphsView. По этой причине я хочу написать х…
Evgenii Legotckoi
Evgenii LegotckoiMay 3, 2024, 12:07 a.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Добрый день. По моему мнению - да, но то, что будет касаться вызовов к функционалу Андроида, может создать огромные трудности.

Follow us in social networks