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
Ua

Qt - Test 001. Signals and slots

  • Result:84points,
  • Rating points4
Ua

Qt - Test 001. Signals and slots

  • Result:42points,
  • Rating points-8
ОК

Qt - Test 001. Signals and slots

  • Result:47points,
  • Rating points-6
Last comments
ИМ
Игорь МаксимовNov. 23, 2024, 12:51 a.m.
Django - Tutorial 017. Customize the login page to Django Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
Evgenii Legotckoi
Evgenii LegotckoiNov. 1, 2024, 2:37 a.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 8:19 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 7:51 p.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 11:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
Now discuss on the forum
NW
Nayo WaiJan. 30, 2025, 10:22 p.m.
не запускается компьютер!!! Не запускается компьютер (точнее работает блок , но сам монитор вообще жесть)В общем я ничего с интернета не скачивала в последнее время. На компе никаких левых пр…
n
nklyJan. 3, 2025, 3:52 p.m.
Нужно запретить перемещение только некоторых итемов, остальные перемещать можно. Вопрос решен. Узнать QModelIndex элемента на который мы перетаскиваем другой элемент, можно с помощью функции indexAt(event->position().toPoint()) представления QTreeViev вызываемой в переопр…
M
MarselAug. 17, 2023, 2:26 a.m.
OAuth2.0 через VK, получение email Спасибо большое за помощь и простите за то что отнял время своей невнимательностью.
Evgenii Legotckoi
Evgenii LegotckoiJune 25, 2024, 3:11 a.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 7:04 p.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]

Follow us in social networks