Qt is a cross-platform framework that encapsulates API across many Operating Systems but one always faces situations in which he/she needs to access and use OS specific capabilities. Windows API is a massive collection of interfaces that allow a programmer to use and include Windows features in their programs. Below is a simple example on how to use Windows API in Qt.
Let’s say we want to use GetSystemTime function in our Qt program. Searching Google for “GetSystemTime API” you’ll get the API Documentation from MSDN website. Parameters and return type values should be obvious:
How to get version number of an EXE file in Qt (Using Win32 API)
I use the function below to get the version of my Windows applications and show it on the title bar or about page programmatically. It uses Win32 API so it is not cross-platform.
Continue reading “How to get version number of an EXE file in Qt (Using Win32 API)”
Dying Deamer Dreamt Death
You dream of a beautiful house up on a calm and green hill. You don’t want to wake up but there it is on the corner of the big rock beside the beautiful wooden house. Staring right at your face with its disfigured face and body, with all its surreality, with all its ugly beauty, reminding you that it’s a dream. You take a bullet to the head. You are not awake. You feel the noises. It’s real and you’re on the edge. You are falling to the other side. You pass to the other side and there is no sound and that’s the sole difference. You are dead and it’s still staring.

Max Ernst. L’Ange du foyer ou Le Triomphe du surréalisme. 1937. Oil on canvas. 114 x 146 cm. Private collection.
OpenCV + Qt + Android, Adding Required Libraries and Includes
Another note to myself which I hope will be useful for others searching it.
Add the following lines to your PRO file in Qt, or create a PRI file using the following and include that in your PRO file.
Continue reading “OpenCV + Qt + Android, Adding Required Libraries and Includes”ISS Symphony – Timelapse of Earth from International Space Station | 4K
Compilation of timelapses from the International Space Station.
Suggestions: 4K, dark room and volume up.
Music: Ludovico Einaudi – Experience (Live At Fabric, London 2013)
Editor: Dmitry Pisanko
All post production: deflickering, stabilization, noise reduction and color corrections was done in Adobe Premiere Pro and After Effects.
Facebook: https://www.facebook.com/dmitry.pisanko
Instagramm: https://instagram.com/dmitrypisanko/
Livejournal: http://timon-timonich.livejournal.com
——————————-
Image Courtesy of the Image Science & Analysis Laboratory,
NASA Johnson Space Center, The Gateway to Astronaut Photography of Earth
Original data: 95 623 files, 109 Gigabytes downloaded from http://eol.jsc.nasa.gov
Qt 5.4.2 Static using MSVC2013
I was able to successfully build Qt 5.4.2 Static using Microsoft Visual C++ 2013 (MSVC2013)
It is almost the same as my post on Qt 5.4.0 Static using MSVC2010
Again, please keep in mind that these are NOT some exact steps and you can change the folders to another path that suits you.
How to convert date formats in SQLite
Date types are handled like a string in SQLite and below is an example of how to change the date format from MM/dd/yyyy to yyyy-MM-dd. With a little modification it can be used for other formats too.
select substr(column, 7, 4)||”-“||substr(column, 1,2)||”-“||substr(column, 4,2) from table
Introduction to Machine Learning 2nd Edition
Covering many practical methods in Artificial Intelligence and Machine Learning. This book by Ethem Alpaydın can be a life changer. I always come back to this book when I feel lost in the subject.
Continue reading “Introduction to Machine Learning 2nd Edition”
فرو ریخت
هر چه دیدیم و شنیدیم همه وهم شد از بیخ فرو ریخت
هرچه گشتیم و بدیدیم همان لحظه دیدار فرو ریخت
خاک بودیم و ندیدیم و پی یار به هر کوچه دویدیم
ولی اندوه که آتش پس هر کوچه این جهل فرو ریخت
Dad’s Roses
My dad grows some fat, beautiful, blood red roses in our house at Tabriz. The yard is full of beautiful flowers and plants. Packing my bags to leave home again (probably for a long time) I thought I should take a couple of photos of those beautiful roses. Here are two of them.
