Monthly Archives: April 2019

Icons

App Icon Redesign
The Big App Icon Redesign
The Big GNOME Icon Revamp – Are You a Fan?

How to get SVG thumbnails in Windows Explorer?
SVG Viewer Extension for Windows Explorer v0.1.1

FAMFAMFAM SILK ICONS
Category:Gartoon icons
GNOME Desktop icons
Tango icons
Category:Tango project/apps
Category:Software icons by theme
Category:GNOME Desktop icons
Category:GNOME Desktop icons, apps
Category:Antu icons
Category:KDE icons
Category:Crystal Project Actions Icons
Category:Human SVG apps
Category:Oxygen icons apps
Category:Oxygen icons actions
Category:Crystal Clear app icons
Category:Crystal 128 apps
Category:Crystal Project App Icons

Inkscape icons
gnome-icon-theme-yasis – YASIS (Yet Another Scalable Icon Set)

vpopmail Aliasing with valias

$ cd /usr/local/vpopmail/bin¨

$ ./valias -s domain.com
info@domain.com -> alice@xyz.org
info@domain.com -> bob@xyz.org

$ ./valias -i carol@xyz.org info@domain.com

$ ./valias -s domain.com
info@domain.com -> alice@xyz.org
info@domain.com -> bob@xyz.org
info@domain.com -> carol@xyz.org

$ ./valias -d info@domain.com

$ ./valias -i alice@xyz.org info@domain.com
$ ./valias -i carol@xyz.org info@domain.com

$ ./valias -s domain.com
info@domain.com -> alice@xyz.org
info@domain.com -> carol@xyz.org

Sublime Editor

12 Most-Wanted Sublime Text Tips and Tricks

Column Selection

Column Selection

Windows
Right Mouse Button + Shift
OR: Middle Mouse Button

Add to selection: Ctrl
Subtract from selection: Alt

Linux
Right Mouse Button + Shift

Add to selection: Ctrl
Subtract from selection: Alt

Whitespace

How to show whitespace in Sublime Text

{
    "draw_white_space": "all",
    "translate_tabs_to_spaces": true
}

Find all / Replace all

Find/Replace panel in Sublime Text disappears after Replace All
“replace all” closes the replace-bar
Don’t hide find/replace panels
How to keep the replace box remain after a replace all

Original:
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true},
		 "context": [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true},
		"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": true},
		 "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},

Modified:
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": false},
		 "context": [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": false},
		"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},
	{ "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": false},
		 "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
	},

Regex

Search and Replace – Regular Expressions

Capture Group

Regular expressions and Sublime Text
Regular expression search replace in Sublime Text 2
Capturing Groups and Backreferences

CLion with MSYS2 and Qt

MinGW-w64

How to run CLion with msys2 on windows

$ pacman -S mingw-w64-x86_64-toolchain

( 1/43) installing mingw-w64-x86_64-libiconv
( 2/43) installing mingw-w64-x86_64-gmp
( 3/43) installing mingw-w64-x86_64-mpfr
( 4/43) installing mingw-w64-x86_64-mpc
( 5/43) installing mingw-w64-x86_64-libwinpthread-git
( 6/43) installing mingw-w64-x86_64-gcc-libs
( 7/43) installing mingw-w64-x86_64-bzip2
( 8/43) installing mingw-w64-x86_64-zlib
( 9/43) installing mingw-w64-x86_64-binutils
(10/43) installing mingw-w64-x86_64-headers-git
(11/43) installing mingw-w64-x86_64-crt-git
(12/43) installing mingw-w64-x86_64-isl
(13/43) installing mingw-w64-x86_64-windows-default-manifest
(14/43) installing mingw-w64-x86_64-winpthreads-git
(15/43) installing mingw-w64-x86_64-gcc
(16/43) installing mingw-w64-x86_64-gcc-ada
(17/43) installing mingw-w64-x86_64-gcc-libgfortran
(18/43) installing mingw-w64-x86_64-gcc-fortran
(19/43) installing mingw-w64-x86_64-gcc-objc
(20/43) installing mingw-w64-x86_64-expat
(21/43) installing mingw-w64-x86_64-libffi
(22/43) installing mingw-w64-x86_64-mpdecimal
(23/43) installing mingw-w64-x86_64-gettext
(24/43) installing mingw-w64-x86_64-libtre-git
(25/43) installing mingw-w64-x86_64-libsystre
(26/43) installing mingw-w64-x86_64-ncurses
(27/43) installing mingw-w64-x86_64-libtasn1
(28/43) installing mingw-w64-x86_64-p11-kit
(29/43) installing mingw-w64-x86_64-ca-certificates
(30/43) installing mingw-w64-x86_64-openssl
(31/43) installing mingw-w64-x86_64-tcl
(32/43) installing mingw-w64-x86_64-tk
(33/43) installing mingw-w64-x86_64-xz
(34/43) installing mingw-w64-x86_64-termcap
(35/43) installing mingw-w64-x86_64-readline
(36/43) installing mingw-w64-x86_64-sqlite3
(37/43) installing mingw-w64-x86_64-python3
(38/43) installing mingw-w64-x86_64-gdb
(39/43) installing mingw-w64-x86_64-libmangle-git
(40/43) installing mingw-w64-x86_64-make
(41/43) installing mingw-w64-x86_64-pkg-config
(42/43) installing mingw-w64-x86_64-tools-git
(43/43) installing mingw-w64-x86_64-winstorecompat-git
C:\Qt\Tools\mingw730_64

"C:\Program Files\JetBrains\CLion 2019.1.2\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\andreas\CLionProjects\abc
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: C:/Qt/Tools/mingw730_64/bin/gcc.exe
-- Check for working C compiler: C:/Qt/Tools/mingw730_64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Qt/Tools/mingw730_64/bin/g++.exe
-- Check for working CXX compiler: C:/Qt/Tools/mingw730_64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/andreas/CLionProjects/abc/cmake-build-debug
[Finished]

CLion Qt Support

CLion answers frequently asked questions
Support Makefile projects
Support Qt Projects
Support Autotools-based projects

CMake and Qt

Linking Qt on CLion
CMake Manual
How to use Qt in CLion
github.com/pbek/QOwnNotes/src/CMakeLists.txt
Lion + Qt

CMAKE_PREFIX_PATH

using CLion with QT

set(CMAKE_PREFIX_PATH C:/Qt/5.12.3/mingw73_64)

Verbose

Show full build output in CLion

set(CMAKE_VERBOSE_MAKEFILE ON)

DLL not found

Undefined Qt5 references in C++ using CMake (mingw) in Windows with CLion

Qt Widgets

Qt5 tutorial
Advanced Services – Qt
Advanced Services – Basic Qt

YouTube

Qt Tutorials For Beginners

Signals, Slots, Threads

How Qt Signals and Slots Work
How Qt Signals and Slots Work – Part 2 – Qt5 New Syntax
How Qt Signals and Slots Work – Part 3 – Queued and Inter Thread Connections
QMetaType knows your types
QThread: You were not doing so wrong.
Introduction to Lock-free Programming with C++ and Qt
Internals of QMutex in Qt 5
QWaitCondition: Solving the Unavoidable Race

Data initialization in C++
Can Qt’s moc be replaced by C++ reflection?
Verdigris: Qt without moc

QString

Ignore unused args in QString::arg

QMainWindow

Auto resizing qt application. (main window)
Qt: Set size of QMainWindow
How to add a custom widget to the main window in Qt Creator

QToolBar

Menus and toolbars in Qt5
QToolBar position (How to make it stay at a fixed position)
Add a QLineEdit to a qtoolbar in qtcreator (designer)

Icons

Setting the Application Icon
Create ico files (Windows Icons) – GIMP 2.8 Tutorial
How to set application icon in a Qt-based project?
QIcon::fromTheme uses GTK+’s icon cache in Qt 5.7
Yet another new set of Qt icons

Convert PNG to ICNS on Mac OS
How to manually create icns files using iconutil?
Application Icon not shown in Mac OS X Dock
cmake: set icon for a Mac OS X app
Setting the application icon for OSX in Qt Creator

Layout

Spacing and Margin

Qt Tutorial: Unit 7, Margin and Spacing
Adjust Spacing and Margins between Widgets in Layout
Set fixed margin/spacing/padding between Widgets/Layouts

Stylesheet

Customizing Qt Widgets Using Style Sheets

Button

Difference between QPushButton and QToolButton

Splitter

Customize QSplitter handle color
QSplitter – change the color of the grabbable area to make it more visible