Evgenii Legotckoi
Evgenii LegotckoiAug. 26, 2016, 3:56 a.m.

RubyUser Guide #28 - Ruby - Nuts and bolts

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

This chapter addresses a few practical issues.

Statement delimiters

Some languages require some kind of punctuation, often a semicolon (

;
), to end each statement in a program. Ruby instead follows the convention used in shells like
sh
and …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 26, 2016, 3:52 a.m.

RubyUser Guide #27 - Ruby - Object initialization

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

Our Fruit class from the previous chapter had two instance variables, one to describe the kind of fruit and another to describe its condition. It was only after writing a custom

inspect
method for the class that we realized it …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 26, 2016, 3:21 a.m.

RubyUser Guide #26 - Ruby - Accessors

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

What is an accessor?

We briefly discussed instance variables in an earlier chapter, but haven't done much with them yet. An object's instance variables are its attributes, the things that distinguish it from other objects of the same class. It …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 26, 2016, 3:18 a.m.

RubyUser Guide #25 - Ruby - Exception processing: ensure

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

There may be cleanup work that is necessary when a method finishes its work. Perhaps an open file should be closed, buffered data should be flushed, etc. If there were always only one exit point for each method, we could …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 26, 2016, 3:09 a.m.

RubyUser Guide #24 - Ruby - Exception processing: rescue

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

An executing program can run into unexpected problems. A file that it wants to read might not exist; the disk might be full when it wants to save some data; the user may provide it with some unsuitable kind of …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 25, 2016, 1 p.m.

LinuxTop 10 Developers and Companies contributing to the Linux kernel in 2015-2016

Linux, 25 лет, Linux Kernel

Сообщество ядра Linux закрыло год установлением нового рекорда по числу изменений влитых в один релиз, по сравнению с предыдущим отчётом разработки Linux Kernel .

В версии ядра 4.6 можно увидеть около 13,517 патчей влитых за 63 дня, что равно рекорду, …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 25, 2016, 11:47 a.m.

QtОт Visual Studio Add-In к Qt VS Tools (Beta)

Add-in, Qt VS Tools

It's been almost three years since the last official release of the Qt Visual Studio Add-in , but now the Qt developers are coming up with something new: Qt VS Tools. The beta version can be downloaded from Qt Downloads …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 25, 2016, 11:04 a.m.

QtQt/C++ - Lesson 053. Building IBASE SQL driver Qt 5.7 on openSUSE Leap 42.1

FireBird, SQL, Leap, Qt, IBASE, openSUSE

Installing Qt 5.7 on openSUSE Leap 42.1

Download the latest version of Qt in Linux:

wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run

Making the file executable

chmod +x qt-unified-linux-x64-online.run

Install gcc, make, and other necessary libraries:

sudo zypper install --type pattern devel_basis

Next, install the …

Read
Evgenii Legotckoi
Evgenii LegotckoiAug. 25, 2016, 3:05 a.m.

RubyUser Guide #23 - Ruby - Class constants

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

A constant has a name starting with an uppercase character. It should be assigned a value at most once. In the current implementation of ruby, reassignment of a constant generates a warning but not an error (the non-ANSI version of …

Read
Evgenii Legotckoi
Evgenii LegotckoiJuly 30, 2016, 12:03 p.m.

QtQt WinAPI - Lesson 004. QtIFW - Automation WinDeployQt and build installers with Qt Installer Framework

Qt, QtIFW, Qt Installer Framework, windeployqt

Correct programmer - it is a lazy programmer. If you can automate something, you definitely need to do this. For example, it can be run automatically with the collecting windeployqt online and offline installers, as well as the preparation of …

Read
Evgenii Legotckoi
Evgenii LegotckoiJuly 28, 2016, 11:40 a.m.

QtQt/C++ - Lesson 056. Connecting the Boost library in Qt for MinGW and MSVC compilers

Qt, MSVC, Boost, MinGW

Initial acquaintance with Boost on Windows start to build precompiled libraries and connecting them to the project on Qt. This code will use one of the Hello World-s from the Boost documentation, namely the installation locale using boost.

Building Boost …

Read
Evgenii Legotckoi
Evgenii LegotckoiJuly 14, 2016, 5:57 a.m.

QMLGame on QML - Lesson 1. Games arena and dynamic objects

JavaScript, QML, Qt, динамические объекты, игровая арена

After the first experience of writing games on Qt for Android, I want to share this experience together and offer to write a simple game in the style of "kill the mole." This is a game in which you need …

Read
B

C++ - Test 002. Constants

  • Result:16points,
  • Rating points-10
B

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

  • Result:46points,
  • Rating points-6
FL

C++ - Test 006. Enumerations

  • Result:80points,
  • Rating points4
Last comments
k
kmssrFeb. 9, 2024, 7: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, 11: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, 9: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, 10: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
AC
Alexandru CodreanuJan. 20, 2024, 12:57 a.m.
QML Обнулить значения SpinBox Доброго времени суток, не могу разобраться с обнулением значение SpinBox находящего в делегате. import QtQuickimport QtQuick.ControlsWindow { width: 640 height: 480 visible: tr…
BlinCT
BlinCTDec. 27, 2023, 9:57 p.m.
Растягивать Image на парент по высоте Ну и само собою дял включения scrollbar надо чтобы был Flickable. Так что выходит как то так Flickable{ id: root anchors.fill: parent clip: true property url linkFile p…
Дмитрий
ДмитрийJan. 10, 2024, 5:18 p.m.
Qt Creator загружает всю оперативную память Проблема решена. Удалось разобраться с помощью утилиты strace. Запустил ее: strace ./qtcreator Начал выводиться весь лог работы креатора. В один момент он начал считывать фай…
Evgenii Legotckoi
Evgenii LegotckoiDec. 12, 2023, 7:48 p.m.
Побуквенное сравнение двух строк Добрый день. Там случайно не высылается этот сигнал textChanged ещё и при форматировани текста? Если решиать в лоб, то можно просто отключать сигнал/слотовое соединение внутри слота и …

Follow us in social networks