Evgenii Legotckoi
Evgenii LegotckoiMay 9, 2020, 6:09 a.m.

DjangoDjango - Tutorial 054. How to create a polymorphic system of dynamic widgets

dynamic, django

The other day, I solved the problem of adding dynamic widgets on the site with the ability to add different types of widgets, as well as with the possibility of further unlimited expansion of the widget set by adding models …

Read
mafulechka
mafulechkaMay 6, 2020, 4:36 a.m.

QtBuilding Docker from QtCreator

Docker, Qt, QtCreator, build, cmake

On your development machine, press Ctrl+R (Run) in QtCreator to create and run your Qt application. If you want to run an application on an embedded system, then you must complete four tasks:

• Create a Qt cross-application for the …

Read
Said Py
Said PyMay 6, 2020, 3:37 a.m.

Python 3How to Hide Firefox [selenium] in python

selenium, python

In this tutorial, we’ll learn how to Hide selenium firefox in python.


Code:

#headless option
options.headless = True

Example:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options

options = Options()
options.headless = True
driver = webdriver.Firefox(executable_path='/path/to/geckodriver', …
Read
Evgenii Legotckoi
Evgenii LegotckoiMay 4, 2020, 2:21 p.m.

DjangoDjango - Tutorial 053. Adding Counters to Models in the Django Admin Panel

admin, Django, python

The other day, I started working on a content moderation application on the site and solved the problem of adding counters in the administrative panel.

It looks like this now

The task itself is trivial, but as it turned out …

Read
mafulechka
mafulechkaApril 30, 2020, 6:36 a.m.

QtIntroducing Qt Quick 3D Benchmarking App

3D, Quick, Qt, Benchmark

Why a benchmark app?

With the upcoming release of Qt 5.15 and the improved version of Qt Quick 3D, the developers wanted to offer their customers and other users the ability to easily test the capabilities of their hardware. Thus …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 26, 2020, 3:08 p.m.

DjangoDjango - Tutorial 052. Redefining a User Model

Model, QuerySet, Python, django

There are various options for working with a user model for creating a user profile and adding some specific information, for example, a profile photo. One way is to add a profile model with the OneToOneField field for the user. …

Read
mafulechka
mafulechkaApril 23, 2020, 4:56 a.m.

QtCMake versionless targets (Qt 5.15)

Qt, command, target, cmake

The Qt developers are working on porting Qt 6 to CMake as their internal build system. While Qt 6 is still a few months away, you can already see some of the benefits of this work in Qt 5.15. Christian …

Read
Said Py
Said PyApril 23, 2020, 2:50 a.m.

DjangoWorking with Django model ChoiceField

models, Django

Today we going to explore how to work with model ChoiceField in Django.
To better understand, let's see the following examples.


#models.py

#Django Models ChoiceField    
class Profile(models.Model):
    # Country Choices
    CHOICES = (
        ('US', 'United States'),
        ('FR', 'France'),
        ('CN', 'China'), …
Read
Evgenii Legotckoi
Evgenii LegotckoiApril 22, 2020, 5:15 p.m.

EVILEGRefusal of advertising networks online EVILEG (Google Adsense, YAN Yandex, etc.)

EVILEG

So, perhaps the most joyful moment has come for many users of the EVILEG website. Namely, disabling advertising networks on the site.
Perhaps you would like to know the reasons for such an interesting behavior of the site owner, who, …

Read
mafulechka
mafulechkaApril 14, 2020, 7:21 a.m.

QtQt Design Studio 1.5 Beta Released

Design Studio, Qt, release

Qt developers are happy to announce the beta version of Qt Design Studio 1.5

Qt Design Studio is a user interface design and development tool that allows designers and developers to rapidly prototype and develop complex user interfaces. Both designers …

Read
Said Py
Said PyApril 13, 2020, 9:10 a.m.

Python 3How to check list is empty in python

python3

Hello guys, today we going to learn how to check if a list is empty


#empty list
list_1 = []

#checking if list is empty by using len()
if not llist_1:
    print('yes! the list is empty.')

#output 
#yes! the list …
Read
ДК
Джон КофиApril 13, 2020, 8:38 a.m.

Career and business in IT fieldPath to Programmers (C ++)

стать программистом с нуля, C++, Qt, карьера в IT

Hello. I am with you. I liked boxing and long-distance running, and I only thought about sports, but I trained as a sailor. I worked in aviation and became a C++ programmer at 29. I'll tell you how it happened. …

Read
MB

Qt - Test 001. Signals and slots

  • Result:57points,
  • Rating points-2
MB

C++ - Test 001. The first program and data types

  • Result:60points,
  • Rating points-1
GK

C++ - Test 005. Structures and Classes

  • Result:0points,
  • Rating points-10
Last comments
J
JonnyJoJune 8, 2023, 12:14 p.m.
Qt/C++ - Lesson 019. How to paint triangle in Qt5. Positioning shapes in QGraphicsScene Евгений, здравствуйте! Решил поэкспериментировать немного с кодом из этого урока, нарисовать вместо треугольника квадрат и разобраться с координатами. В итоге, запутался. И ни документация,…
J
JonnyJoMay 25, 2023, 2:24 p.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Евгений, благодарю!
Evgenii Legotckoi
Evgenii LegotckoiMay 25, 2023, 4:49 a.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Код на строчка 184-198 вызывает перерисовку области на каждый 4-й такт счётчика. По той логике не нужно перерисовывать объект постоянно, достаточно реже, чем выполняется игровой слот. А слот вып…
J
JonnyJoMay 21, 2023, 10:49 a.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Евгений, благодарю! Всё равно не совсем понимаю :( Если муха двигает ножками только при нажатии клавиш перемещение, то что, собственно, делает код со строк 184-198 в triangle.cpp? В этих строчка…
Evgenii Legotckoi
Evgenii LegotckoiMay 21, 2023, 5:57 a.m.
How to make game using Qt - Lesson 2. Animation game hero (2D) Добрый день. slotGameTimer срабатывает по таймеру и при каждой сработке countForSteps увеличивается на 1, это не зависит от нажатия клавиш, нажатая клавиша лишь определяет положение ножек, котор…
Now discuss on the forum
T
TwangerJune 7, 2023, 11:12 a.m.
Ошибка при выполнении триггерной функции (GreenPlum) Есть 3 таблицы fact_amount со структурой: CREATE TABLE fact_amount ( id serial4 NOT NULL, fdate date NULL, type_activity_id int4 NULL, status_id int4 NULL, CONSTRAINT fact…
AR
Alexander RyabikovJune 6, 2023, 1:35 p.m.
Работа с QFileSystemModel Вопросик по теме QFileSystemModel в Linux. Он, как и положено, обновляется самостоятельно, если директория локальная. Но, вот, сетевая папка (у меня шара samba) не обновляется. Как её можно…
Evgenii Legotckoi
Evgenii LegotckoiApril 16, 2023, 4:07 a.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Да, это возможно. Но подобные вещи лучше запускать через celery. То есть drf принимает команду, и после этого регистрирует задачу в celery, котроый уже асинхронно всё это выполняет. В противном …
АБ
Алексей БобровDec. 14, 2021, 7:03 p.m.
Sorting the added QML elements in the ListModel I am writing an alarm clock in QML, I am required to sort the alarms in ascending order (depending on the date or time (if there are several alarms on the same day). I've done the sorting …

Follow us in social networks