понедельник, 31 января 2011 г.
To Watch
The Green Hornet 2011
Extraterrestrial 2011
Battle: Los Angeles 2011
White Wall 2010
Vanishing On 7th Street 2010
I am Number Four
Heartless
Priest 13 May 2011
Sanctum 2010
Never Let Me Go "Us release date : 15 september 2010"
Monsters "Us release date : 29 october 2010"
Mars 2010
Love 2010 A movie directed by William Eubank
Hybrid 2010
Hunter Prey 2010
Earthling 2010
Downstream 2010
Arctic Blast 2010
15 Till Midnight 2010 http://www.youtube.com/watch?v=qUncOZ_EHIs
Seventh Moon
Necromentia
Psych 9
7 Days
THE BLACKOUT (2010)
The Invited - Trailer HD (2010)
Office 2010: The Movie
суббота, 29 января 2011 г.
Pdf Print Server
PDF-Сервер на основе Samba.
Turn your Linux box into a PDF-making machine (CUPS-PDF)
+добавить random pass generation
+db pusher
вторник, 25 января 2011 г.
Qt + Berkley DB
http://forum.codeby.net/lofiversion/index.php/t18682.html
!!!!
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.vc/2005-04/msg00731.html
http://nwn.virusman.ru/trac/nwnx4/browser/trunk/lib/mysql/mysqlclient.lib?rev=90
http://yassl.com/forums/topic64-need-help-linking-simple-app-with-vs2008.html
http://www.eggheadcafe.com/forumarchives/platformsdknetworking/Feb2006/post25948687.asp
понедельник, 24 января 2011 г.
CMAKE TEST_BIG_ENDIAN Error
John Wakeman wrote:
I usually get round it by changing the following line in CMakeLists.txt (round about line 109) from :
# determine system endianess
include(TestBigEndian)
test_big_endian(OGRE_TEST_BIG_ENDIAN)
to:
# determine system endianess
#include(TestBigEndian)
#test_big_endian(OGRE_TEST_BIG_ENDIAN)
set(OGRE_TEST_BIG_ENDIAN FALSE)
Building MySQL Connector/C from the Source Code
Building MySQL Connector/C from the Source Code
Obtaining the Source Code
A TAR file containing the source code can be downloaded from the MySQL Developers site. You will need to select the source code package from the drop down list.
The source code for development releases of the connector can be found at Launchpad. The project home page can be found here.
The source code for the 1.0 branch can be found here.
To obtain the code you will need to have Bazaar installed and use the command bzr branch lp:libmysql
.
-
Building on Unix
Examples of supported Unix or Unix-like operating systems include:
Solaris
Linux
HP-UX
AIX
OS X
Compiler Tools
Ideally, the native compiler tool set for the target platform is used for compilation. This would be SunStudio for Solaris and aCC for HP-UX for example. However, the GNU tool-chain can be used across all platforms.
You also need CMake 2.6 or newer, which is available online.
To Build
If using GNU AutoTools change to the MySQL Connector/C source directory and follow the procedure below.
-
To generate the makefile enter:
shell> cmake -G "Unix Makefiles"
or for a Debug build enter:
shell> cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
-
Then build the project using:
shell> make
To Install
By default make install will install the MySQL Connector/C files in the
/usr/local
directory. You can change this behavior by specifying another directory when generating themakefile
:shell> cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/mypath
Now, in the root shell, enter the following to install the MySQL Connector/C libraries and tools:
root-shell> make install
At this point all of the MySQL Connector/C files will be in place.
-
Building on Microsoft Windows
Older versions of Microsoft Windows are not supported. Supported versions are Windows 2000, Windows XP, Windows Vista, Windows Server 2003, or Windows Server 2008.
Compiler Tools
Microsoft Visual Studio 8 and 9 are recommended. The Express Edition of Visual Studio and other compilers may work, but are untested.
You also need CMake 2.6 or newer, available at http://www.cmake.org
To Build
You need to have the environment variables set for the Visual Studio toolchain. Visual Studio includes a batch file to set these for you, and installs a shortcut into the Start menu to open a command prompt with these variables set.
Build MySQL Connector/C using the CMake command-line tool by entering the following from the source root directory in a command prompt window:
shell> cmake -G "Visual Studio 9 2008"
This produces a project file that you can open with Visual Studio or build from the command line with either of:
shell> devenv.com libmysql.sln /build Release
shell> devenv.com libmysql.sln /build RelWithDebInfo
For other versions of Visual Studio or
nmake
based build, run the following command:shell> cmake --help
to check the supported generators.
To compile the Debug build, you must run set the CMake build type so the correct version of external libraries are used:
shell> cmake -G "Visual Studio 8 2005" -DCMAKE_BUILD_TYPE=Debug
Followed by:
shell> devenv.com libmysql.sln /build Debug
To Install
To create a install package you can choose between two variants:
Creating a Zip package
Creating an MSI install package
-
Zip package
To create a Zip package, run the
cpack
command from the root of your MySQL Connector/C source directory. -
MSI Install package
The required tools include Windows XML Installer toolset (WIX), which is available online.
To create the MSI install package change to the subdirectory
win
and generate themakefile
:shell> cmake -G "NMake Makefiles"
Create the MSI install package by calling
nmake
:shell> nmake
Build Options
The following options can be used when building the MySQL Connector/C source code:
Build Option | Description |
---|---|
-DWITH_OPENSSL=1 | Enables dynamic linking to the system OpenSSL library. |
-DWITH_EXTERNAL_ZLIB=1 | Enables dynamic linking to the system Zlib library. |
воскресенье, 23 января 2011 г.
Qt project file
For my Qt project, I use this scheme in *.pro file:
HEADERS += src/dialogs.h
SOURCES += src/main.cpp \
src/dialogs.cpp
Release:DESTDIR = release
Release:OBJECTS_DIR = release/.obj
Release:MOC_DIR = release/.moc
Release:RCC_DIR = release/.rcc
Release:UI_DIR = release/.ui
Debug:DESTDIR = debug
Debug:OBJECTS_DIR = debug/.obj
Debug:MOC_DIR = debug/.moc
Debug:RCC_DIR = debug/.rcc
Debug:UI_DIR = debug/.ui
It`s simple, but nice! :)
MySql Static windows
libmysql.lib - динамическая библиотека
mysqlclient.lib - статическая
просто заменил libmysql.lib на mysqlclient.lib и все работает без зависимостей
Тема исчерпана
суббота, 22 января 2011 г.
Програмно выбрать элемент в QListView
#include QListView
#include QStringListModel
int main( int argc, char **argv )
{
QApplication app( argc, argv );
QListView list;
QStringListModel model;
QStringList strings;
strings << "foo" << "bar" << "baz";
model.setStringList( strings );
list.setModel( &model );
QModelIndex index =model.index(1);
list.selectionModel()->select(index, QItemSelectionModel::Select);
list.show();
return app.exec();
}
четверг, 20 января 2011 г.
IBM
http://www.ibm.com/developerworks/ru/library/au-googletestingframework/index.html
Автоматизация для программистов:
Автоматизированная миграция баз данных
http://www.ibm.com/developerworks/ru/library/j-ap08058/index.html
Параллельная разработка для простых смертных
http://www.ibm.com/developerworks/ru/library/j-ap10078/index.html
Работаем с Mono. Часть 1: Основные принципы Mono, инструменты, создание простейшего приложения
http://www.ibm.com/developerworks/ru/library/os_mono1/index.html
Communigate: Часть 3. Настройка почтового домена, учетных записей пользователей
http://www.ibm.com/developerworks/ru/library/l-communigate_3/index.html
Безопасный Linux: Часть 6. Система мандатного контроля доступа Smack
http://www.ibm.com/developerworks/ru/library/l-apparmor-6/index.html
Системы управления версиями для Linux
http://www.ibm.com/developerworks/ru/library/l-vercon/index.html
Mercurial: введение в распределённые системы контроля версий
http://www.developers.org.ua/lenta/articles/mercurial-step-by-step-dvcs-intro/
Mercurial: основы.
http://www.developers.org.ua/lenta/articles/mercurial-basics/
Mercurial: расширения.
http://www.developers.org.ua/archives/piranha/2008/10/06/mercurial-extensions/
Лекция «Введение в Subversion» + VIDEO
http://team.custis.ru/2009/09/subversion.html
Личный опыт разработки ПО
http://www.devexp.ru/2009/11/sistemy-upravleniya-versiyami-na-primere-subversion-vvedenie/
Managing Software Development with Trac and Subversion By David J Murphy
Publisher: Packt Publishing 2007 | 120 Pages | ISBN: 1847191665 | PDF | 2 MB
http://book-vl.ru/book/nauka_ucheba/12238-managing-software-development-with-trac.html
Организация совместной разработки ПО на базе SVN+DocBook+Mantis
- Часть 1. Особенности разработки ПО в коллективе, контроль версий, подготовка документации и взаимодействие всех участников проекта
- Часть 2. Subversion – установка сервера, создание хранилища и рабочих копий
- Часть 3. Subversion – работа с версиями проекта
- Часть 4. Subversion – клиенты для разных ОС
- Часть 5. DocBook – подготовка проектной документации
- Часть 6. MantisBT – средство общения пользователя, тестировщика и программиста
IBM To Read
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 1. Знакомство с окружением разработки. Разбор параметров командной строки, поддержка встроенной справки, "демонизация" программы.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 2. Полноценный разбор параметров командной строки.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 3. Работа с конфигурационным файлом, инициализация внутренних структур программы.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 4. Обзор методик ввода/вывода в применении к сетевым соединениям .
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 5. Способы параллельной обработки сетевых запросов (процессы, потоки и их комбинации).
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 6. Механизмы проверки подлинности.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 7. Проверка уровня полномочий. Поддержка сессий.
- Пример разработки простого многопоточного сетевого сервера с поддержкой пользовательских сессий на языке C в ОС GNU/Linux: Часть 8. Исполнение команд клиента.
To Read
Часть 1: Введение
Часть 2. Структура и философия Git
//--------------------------------------
Управление исходным кодом с помощью Git
IBM
Source Version Control GIT + QtCreator
Хочу описать процесс создания репозитория Git на удалённом сервере и прикручивания его к QtCreator'у на Windows и Linux машинах.
Данный пост может быть использован для создания не большого howto в wiki. Но требует дополниний..
Ну а в крайнем случае, это будет моей маленькой памяткой))
Устанавливаем на рабочую машину msysgit и прописываем новую переменную серды PERL со значением C:\Program Files\Git\bin
На сервере делаем:
useradd -m gituser
passwd gituser
cd /home/gituser
mkdir example.git
cd example.git
git init --bare
теперь идем на нашу рабочую машину и пишем:
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub remote-user@remote-host
cd mysources
git init
git remote add origin ssh://username@example.com/home/gituser/example.git
git add --all
git commit -a -m "Initital commit"
git push origin master
Это можно сделать в консольке msysgit'а.
Таким образом, мы залили на сервер наш исходник.
В креаторе создаём новый проект из репозитория git.
Всё! Можно пользоваться. Креатор склонирует репозиторий с сервера в тот каталог, который вы указали и загрузит проект. Можно работать с локальным репозиторием достаточно долго. И переодически синхронизировать его с репозиторием на сервере.
Таким образом я теперь могу писать и собирать программы как на машине с виндовсом так и с линуксом. А так же, появилась возможность коллективной работы над одним и тем же проектом.
ЗЫ: Утилиты ssh-copy-id нет в msysgit'е. Я сделал это с другой линуксовой машины. Но можно и составить файл авторизации вручную.
ЗЗЫ: Прошу сильно ногами не пинать. Это всего лишь черновик..
Source Version Control
TortiseSVN
TortiseHG
TortiseGit
For Visual Studio
VisualSVN
VisualHG
Git Extensions
For QtCreator
Slik-Subversion
Mercurial
Git
Perforce
Repositories Hostings
Perforce Public Depot
Mercurial or code.google.com
SVN
Gitorius
My Choice gitorius=)
вторник, 18 января 2011 г.
Qt Mysql Plugin
Вот для себя небольшую инструкцию написал.
Компиляция клиента MySql для студии QtCreator и компилятора Mingw32.
.1 переконфигурирование исходников Qt.
cd c:\Qt\2010.02.1\qt\
configure.exe -debug-and-release -confirm-license ^
-plugin-sql-sqlite -plugin-sql-mysql -plugin-sql-odbc -qt-libpng -qt-libjpeg -openssl ^
-opensource -no-incredibuild-xge -dont-process -no-qmake
Важный параметр -dont-process который говорит qmake не делать переконфигурирование, а только обновить кеш настоек. Значительно ускоряет этап конфигурирования. Основные настройки при которых была собрана Qt можно увидеть в файле configure.cache.
.2 Сборка плагина QMySQL
cd c:\Qt\2010.02.1\qt\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=c:/Qt/MySql/include" "LIBS+=c:/Qt/MySql/lib/opt/libmysql.lib" mysql.pro
mingw32-make
.3 Установка
Необходимо скопировать библеотеку libmysql.dll в папку c:\Qt\2010.02.1\qt\bin
вторник, 11 января 2011 г.
The Interview Framework (QListView)
Sharing a Model Between Views
In this example, we display the contents of a model using two different views, and share the user's selection between them. We will use the QDirModel supplied with Qt because it requires very little configuration, and provides existing data to the views.
The main() function for this example demonstrates all the principles involved in setting up a model and two views. We also share the selection between the two views:
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplitter *splitter = new QSplitter;
QDirModel *model = new QDirModel;
QTreeView *tree = new QTreeView(splitter);
tree->setModel(model);
tree->setRootIndex(model->index(QDir::currentPath()));
QListView *list = new QListView(splitter);
list->setModel(model);
list->setRootIndex(model->index(QDir::currentPath()));
QItemSelectionModel *selection = new QItemSelectionModel(model);
tree->setSelectionModel(selection);
list->setSelectionModel(selection);
splitter->setWindowTitle("Two views onto the same directory model");
splitter->show();
return app.exec();
}
source
понедельник, 10 января 2011 г.
qt +add dynamic widgets
//pushButton->setGeometry(QRect(310, 20, 75, 23));
QPushButton *button = new QPushButton(this);
button->setText("Hello");
button->setGeometry(QRect(31, 31, 31, 31));
this->ui->pushButton->setEnabled(false);
QObject::connect(button, SIGNAL(clicked()), this, SLOT(View_MSG()));
//button.parent(this->ui->DialogXX);
button->show();
return;
среда, 5 января 2011 г.
qt russian text on windows in console application
#ifdef Q_WS_WIN
setlocale( LC_ALL, ".1251" );
#endif