This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prompt:/# kvm -version | |
QEMU emulator version 2.9.0 (v2.9.0-dirty) | |
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers | |
prompt:/# uname -a | |
Linux ThinkPad-P50 4.13.8-041308-generic #201710180430 SMP Wed Oct 18 08:33:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Recursive file convertion windows-1251 --> utf-8 | |
# Place this file in the root of your site, add execute permission and run | |
# Converts *.php, *.html, *.css, *.js files. | |
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
while read file | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace | |
{ | |
QImage applyEffectToImage(QImage src, QGraphicsEffect *effect) | |
{ | |
if(src.isNull()) return QImage(); // No need to do anything else | |
if(!effect) return src; // No need to do anything else | |
QGraphicsScene scene; | |
QGraphicsPixmapItem item; | |
item.setPixmap(QPixmap::fromImage(src)); | |
item.setGraphicsEffect(effect); |
OlderNewer