This file contains 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
connect (&watcher, SIGNAL(finished()), this, SLOT(hidepar())); |
This file contains 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
1) включить ssh | |
2) бэкап MBR | |
dd if=/dev/sda bs=15728640 count=1 | bzip2 > /DataVolume/shares/Public/SDA_MBR_FREESPACE.bz2 | |
dd if=/dev/sda1 | bzip2 > /DataVolume/shares/Public/SDA1_IMAGE.bz2 | |
dd if=/dev/sda2 | bzip2 > /DataVolume/shares/Public/SDA2_IMAGE.bz2 | |
3) отключить twonky | |
/etc/init.d/twonky stop | |
4) Локализовать доступ через Putty | |
~/.profile | |
~/.bashrc |
This file contains 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
QImage scale(const QImage &image) | |
{ | |
qDebug() << "In thread" << QThread::currentThread(); | |
return image.scaled(QSize(100, 100), Qt::IgnoreAspectRatio, Qt::SmoothTransformation); | |
} | |
int main(int argc, char *argv[]) | |
{ | |
QApplication app(argc, argv); | |
This file contains 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
Переход по фрагментам | |
Win/Linux: CTRL+R | |
Mac: CMD+R | |
Вероятно, самое полезное сочетание клавиш для экономии вашего времени. Содержимое документа разбивается на определенные фрагменты (функции, HTML теги или CSS стили). Переход происходит при выборе соответствующего фрагмента во всплывающем окне. | |
Переход по файлам | |
Win/Linux: CTRL+P |
This file contains 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
# Sikuli is released under the MIT License. | |
# ======================================== | |
# Copyright (c) 2010-2011 Sikuli.org | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains 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
#include "widget.h" | |
#include "ui_widget.h" | |
const QString general_name_settings="config"; | |
const QString general_path_settings="/settings/"+general_name_settings+".ini"; | |
const QString sett_sql_name="SQL"; | |
const QString sett_base_name="Bases"; | |
Widget::Widget(QWidget *parent) : | |
QWidget(parent), |
This file contains 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
#include "database.h" | |
database::database(QString base_path) | |
{ | |
db = QSqlDatabase::addDatabase(QLatin1String("QODBC")); | |
dbpath = base_path; | |
} | |
void database::dbopen() | |
{ |
This file contains 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
Sub DeleteAllLines() | |
With ThisWorkbook.VBProject.VBComponents("Module1").CodeModule | |
.DeleteLines 1, .CountOfLines | |
End With | |
End sub |
This file contains 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
1) +0 и +1 а не +1 +2 | |
2) %7 incorrect type or incorrect read | |
3) size is not easy to use, crop form to fill information | |
4) settings date po don't save | |
5) sql text is bigger then 1/2 sheet |
This file contains 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
Function DativeCase(sSurname$, Optional sName$, Optional sPatronymic$) As String | |
' Функция формирует дательный падеж из ФИО | |
' Параметры: sSurname - фамилия, sName - имя, sPatronymic - отчество | |
Application.Volatile True ' автопересчёт формулы на листе | |
sSurname$ = Replace(sSurname$, " - ", "-"): sSurname$ = Replace(Replace(sSurname$, " -", "-"), "- ", "-") | |
On Error Resume Next | |
If sName$ = "" And sPatronymic$ = "" Then | |
arr = Split(Application.Trim(sSurname$)) |
NewerOlder