Privacy policyContactsAbout siteOpinionsGitHubDonate
© EVILEG 2015-2018
Recommend hosting

Евгений Легоцкой


  • 9
  • 0
Jan. 23, 2019, 9:27 a.m.


Qt, QSS, Styles, Stylesheet

Войдите в удивительный мир инструментов, для которых анонс требует больше времени, чем сам инструмент.

Jan. 23, 2019, 8:32 a.m.


Wine, Linux

Wine 4.0 теперь официально доступен как новый ежегодный стабильный выпуск Wine для запуска программ и игр для Windows в Linux и других операционных системах.

Jan. 22, 2019, 7:16 a.m.


Qt, QML, Visual Studio, Releases

Qt Visual Studio Tools 2.3.1 были выпущены для Visual Studio Marketplace.

Jan. 22, 2019, 7:08 a.m.


qtcreator, Qt, Releases

Qt Company анонсировала выпуск Qt Creator 4.8.1

Jan. 7, 2019, 8:04 a.m.


Dart, Flutter

After Hello World on Flutter write an application with two screens:

  • SplashScreen - Application Input Screen
  • HomeScreen - Home screen application

Interestingly, Flutter has a navigation system for the windows (pages) of the application. This is somewhat similar to the route system in Django to determine which View to call.

In fact, in this application, we will need to call the MaterialApp widget, which accepts the routes route system, which will determine which windows to open. The first window will be SplashScreen , after two seconds it will have to open HomeScreen .

Jan. 6, 2019, 12:48 p.m.


Django, templatetags, python

I share my implementation of built-in tags to form breadcrumbs with support for markup, as well as support for bootstrap css.

Wrote these tags to speed up site development speed. Now the work moves much faster, because the code has become more compact, and correcting errors in the breadcrumbs markup has become much easier, since now you only need to correct the code in one place.

Jan. 6, 2019, 12:03 p.m.


Android, Flutter, Hello World

Flutter is a fresh framework from Google for application development for Android and iOS. The programming language used is Dart (also developed by Google).

Let's understand the launch of our first application on Flutter.

Jan. 5, 2019, 2:49 p.m.


templatetags, template, Django

In Django - Lesson 035. Different templates for rendering different types of content in search results it was shown how to render different templates depending on what type of content drawn in the search results on the site. In this case, the key point was that it was not necessary to make the verification conditions for the selection of the template. The information about the balbalon was stored in the variable TEMPLATE_PREVIEW, through which the template was inserted into the include tag in the Django template.

{% include object.TEMPLATE_PREVIEW %}

In this method there is one big drawback. The fact is that the include tag with each of its calls is looking for a template. With a large load on the site - this can significantly increase the duration of the response from the server. To solve this problem, you need to somehow cache the pattern. Since different types of content use different templates, to do this using inclusion_tag is quite problematic.

This problem was solved by caching the template at the class level as a class variable.

Dec. 28, 2018, 2:09 p.m.


Boost, threads, chrono

I propose to write a small console program that will perform one task at regular intervals.

For example, the program starts and makes 10 samples within 10 seconds, while the program will display information about the number of the countdown in the console.

The program will work as follows.

Dec. 17, 2018, 5:51 p.m.


Image, Django, avatar

To improve the ability to display information about users in the administrative panel of the site, implemented the ability to display user avatars, both in the special UserProfile model that has One-To-One relationship to the User model, and in the User model itself, it added an avatar display via inline form.

It looks like this:

List of user profiles

Join us in social networks

For registered users on the site there is a minimum amount of advertising