Friday, September 9, 2011

add scritp to init.d on redhat

To add script with chkconfig, add line how this #chkconfig: 3 59 52 (yes with #) to your
/etc/init.d/filename

then

chkconfig --add filename

Wednesday, August 31, 2011

find and mv

for to move files with find and xargs
find . -name your_path_name | xargs -I '{}' mv {} your_directory

Monday, May 9, 2011

oracle connection timeout

If you want detect connection timeout set SQLNET.RECV_TIMEOUT=your sec value in sqlnet.ora in your oracle client

Wednesday, February 2, 2011

Add item to QDeclarativeView

QDeclarativeComponent component(viewer->engine());
component.loadUrl(QUrl("your_element.qml"));
QDeclarativeItem *item = qobject_cast(component.create());
item->setParentItem(qobject_cast(viewer->rootObject()));

Wednesday, January 26, 2011

QPushButton change color on focus

QPushButton:focus { background-color:green; } set this with stylesheet

Wednesday, August 18, 2010

compile Qt 4.7 beta2

If you want to compile Qt 4.7 beta2 on kubuntu and you have this error: "libXrender not found"; create symbolic link: sudo ln -s /usr/lib/libXrender.so.1 /usr/lib/libXrender.so

Sunday, July 4, 2010

running MeeGo Touch libraries inside MeeGo SDK

zypper install doxygen git
zypper install libgconf2-dev GConf-dbus-devel
zypper install libXdamage-devel
zypper install graphviz

Get the meegotouch source:

git clone git://gitorious.org/meegotouch/libmeegotouch.git
git clone git://gitorious.org/meegotouch/meegotouch-theme.git


cd libmeegotouch
./configure
make
make install (before export correct DISPLAY)
make doc

cd ../meegotouch-theme
qmake
make install