Ruby → User 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:
Readdef fact(n) if n == 0 1 else n …
Ruby → User 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), …
ReadRuby → User 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 …
Qt → Qt 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 …
ReadQML → QML - 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 …
ReadQt → Qt/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 …
ReadQt → Qt/C++ - Lesson 049. QTranslator - dynamic translation of multilingual application to Qt
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 …
ReadQt → Qt/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 …
ReadRuby → Ruby 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 …
ReadRuby → Ruby 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 …
ReadQt → Qt/C++ - Lesson 047. QThread – How to make threads in 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 …
ReadQML → QML - 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- Akiv Doros
- Nov. 11, 2024, 10:58 p.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:50points,
- Rating points-4
- molni99
- Oct. 26, 2024, 8:37 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:80points,
- Rating points4
- molni99
- Oct. 26, 2024, 8:29 a.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:20points,
- Rating points-10