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
AD

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

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

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

  • Result:80points,
  • Rating points4
m

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

  • Result:20points,
  • Rating points-10
Last comments
Evgenii Legotckoi
Evgenii LegotckoiOct. 31, 2024, 9:37 p.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 3:19 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 2:51 p.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 6:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
k
kmssrFeb. 9, 2024, 2:43 a.m.
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
Now discuss on the forum
m
moogoNov. 22, 2024, 3:17 p.m.
Mosquito Spray System Effective Mosquito Systems for Backyard | Eco-Friendly Misting Control Device & Repellent Spray - Moogo ; Upgrade your backyard with our mosquito-repellent device! Our misters conce…
Evgenii Legotckoi
Evgenii LegotckoiJune 24, 2024, 10:11 p.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 2:04 p.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
NSProject
NSProjectJune 4, 2022, 10:49 a.m.
Всё ещё разбираюсь с кешем. В следствии прочтения данной статьи. Я принял для себя решение сделать кеширование свойств менеджера модели LikeDislike. И так как установка evileg_core для меня не была возможна, ибо он писался…

Follow us in social networks