Evgenii Legotckoi
Evgenii LegotckoiJune 18, 2016, 1:36 a.m.

RubyUser Guide #03 - Ruby - Simple examples

Ruby, ruby lesson, ruby уроки, user guide, руководство пользователя

Let's write a function to compute factorials. The mathematical definition of n factorial is:

n! = 1                (when n==0)
   = n * (n-1)!       (otherwise)

In ruby, this can be written as:

def fact(n)
  if n == 0
    1
  else
    n …
Read
Evgenii Legotckoi
Evgenii LegotckoiJune 17, 2016, 12:50 p.m.

RubyUser Guide #02 - Ruby - Getting Started

Ruby, ruby lesson, ruby уроки, user guide, руководство пользователя

First, you'll want to check whether ruby is installed. From the shell prompt (denoted here by "

%
", so don't type the
%
), type

% ruby -v

( -v tells the interpreter to print the version of ruby), …

Read
Evgenii Legotckoi
Evgenii LegotckoiJune 17, 2016, 12:47 p.m.

RubyUser Guide #01 - What is Ruby?

Ruby, ruby lesson, ruby уроки, user guide, руководство пользователя

Ruby is "an interpreted scripting language for quick and easy object-oriented programming"; what does this mean?

interpreted scripting language:

  • ability to make operating system calls directly
  • powerful string operations and regular expressions
  • immediate feedback during development

quick and easy:

  • variable …
Read
Evgenii Legotckoi
Evgenii LegotckoiJune 13, 2016, 1:35 p.m.

QtQt WinAPI - Lesson 009. SetWindowsHookEx - Logging mouse events via WinAPI

Hook, mouse, Qt, WinAPI, SetWindowsHookEx

Functional WinAPI allows by using hooks to monitor system events, such as mouse movement and clicks. This functionality based on callback functions, so if you want to use the Qt system of signaling and slots , you will need to …

Read
Evgenii Legotckoi
Evgenii LegotckoiJune 5, 2016, 12:43 p.m.

QMLQML - Lesson 025. Dynamic translation of multilanguage application on QML

QTranslator, перевод, Qt, QML, translation

Once we have learn how to make the translation of the application interface at Qt/C++ , it is time to research possibilities of dynamic translation application interface which is written in QML.

In developing the QML to have a couple …

Read
Evgenii Legotckoi
Evgenii LegotckoiJune 5, 2016, 8:28 a.m.

QtQt/C++ - Lesson 050. Logging Qt application events to a text file

log, qDebug, Логирование, qInfo, Logger, file, qWarning, qFatal

All developers uses macro qDebug() , when debugging an application written in the Qt, but there are also macros qInfo(), qWarning(), qCritical() and qFatal() (which, as of this writing has errors and did not work).

With these events, you can …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 30, 2016, 8:13 a.m.

QtQt/C++ - Lesson 049. QTranslator - dynamic translation of multilingual application to Qt

QTranslator, Qt, Linguist

Sooner or later, the developer of Qt applications meets the need multilanguage support of  his application. Then you can to use QTranslator class and Qt Linguist for creating of translations.

QTranslator object class is used to load translation from a …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 15, 2016, 7:11 a.m.

QtQt/C++ - Lesson 048. QThread — How to work with threads using moveToThread

QObject, потоки, moveToThread, Qt, QThread

In a previous article we are only a little touch to working with threads , and in the version that is more for the customization of thread, although it can be used to perform outside work not directly related to …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 15, 2016, 4:30 a.m.

RubyRuby on Rails - Generating resources

Ruby on Rails, Ruby, user, web, генерирование

Once managed to get in a previous article , a working version of the web application in Ruby, I went on to deal with the development and generation of resources, as well as with the study of architecture, Ruby on …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 15, 2016, 4:16 a.m.

RubyRuby on Rails - First start on the Windows

Rails, Ruby, Ruby on Rails, web, Wordpress

Working with Wordpress on hosting provider TimeWeb for almost a year, I start showing greater interest in web development. In particular it is also due to the fact that this is still sufficiently CMS voracious to resources, and also so …

Read
Evgenii Legotckoi
Evgenii LegotckoiMay 9, 2016, 1:12 p.m.

QtQt/C++ - Lesson 047. QThread – How to make threads in Qt

потоки, QThread, Qt

One of the most common ways to create a separate parallel threads in an application to Qt , and perform useful tasks in them is the inheritance of QThread class and override the method run() , which will be carried …

Read
Evgenii Legotckoi
Evgenii LegotckoiApril 16, 2016, 12:23 p.m.

QMLQML - Lesson 024. Custom QQuickItem – How to add QML object from C++

Custom QQuickItem, Qt, QQuickItem, QQuickPaintedItem, QML

QML objects in Qt is quite wonderful, easy to work with them, but what if it becomes standard objects is not enough? Then you can make your own object to program it in C++ and QML implement the logic layer. …

Read
d
  • dsfs
  • April 26, 2024, 2:56 p.m.

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:80points,
  • Rating points4
d
  • dsfs
  • April 26, 2024, 2:45 p.m.

C++ - Test 002. Constants

  • Result:50points,
  • Rating points-4
d
  • dsfs
  • April 26, 2024, 2:35 p.m.

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

  • Result:73points,
  • Rating points1
Last comments
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" Хоть убей, не могу понять в чём дел…
G
GvozdikDec. 19, 2023, 8:01 a.m.
Qt/C++ - Lesson 056. Connecting the Boost library in Qt for MinGW and MSVC compilers Для решения твой проблемы добавь в файл .pro строчку "LIBS += -lws2_32" она решит проблему , лично мне помогло.
Now discuss on the forum
G
GarApril 22, 2024, 3:46 p.m.
Clipboard Как скопировать окно целиком в clipb?
DA
Dr Gangil AcademicsApril 20, 2024, 5:45 p.m.
Unlock Your Aesthetic Potential: Explore MSC in Facial Aesthetics and Cosmetology in India Embark on a transformative journey with an msc in facial aesthetics and cosmetology in india . Delve into the intricate world of beauty and rejuvenation, guided by expert faculty and …
a
a_vlasovApril 14, 2024, 4:41 p.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Евгений, добрый день! Такой вопрос. Верно ли следующее утверждение: Любое Android-приложение, написанное на Java/Kotlin чисто теоретически (пусть и с большими трудностями) можно написать и на C+…
Павел Дорофеев
Павел ДорофеевApril 14, 2024, 12:35 p.m.
QTableWidget с 2 заголовками Вот тут есть кастомный QTableView с многорядностью проект поддерживается, обращайтесь
f
fastrexApril 4, 2024, 2:47 p.m.
Вернуть старое поведение QComboBox, не менять индекс при resetModel Добрый день! У нас много проектов в которых используется QComboBox, в версии 5.5.1, когда модель испускает сигнал resetModel, currentIndex не менялся. В версии 5.15 при resetModel происходит try…

Follow us in social networks