Thursday, October 29, 2009

I have joined to #Alioth #Firebird #Debian project

Seems that i need alioth account to modify the firebird packages , in fact i will modify just the Git repository , maybe i will help with manual pages for firebird 2.5 and with packaging bugs

Tuesday, October 20, 2009

git insufficient permission for adding an object to repository database ./objects

this is a shared group repository
so i had to enter the repository dir and make sure group can write into it

ssh to server
cd repository.git

sudo chmod -R g+ws *
sudo chgrp -R mygroup *

git repo-config core.sharedRepository true

and the try to push origin master again

Sunday, October 18, 2009

#etckeeper is using #bzr by default in !ubuntu #karmic

sudo apt-get install etckeeper

grep VCS /etc/etckeeper/etckeeper.conf


to see the changes in a graphical way

sudo apt-get install bzr-gtk

cd /etc

olive-gtk &

wait a few seconds/minutes ....

Thursday, October 15, 2009

#qt 4.6 beta ppa for #ubuntu #karmic , soon I will upload #arora soon

Use it at your own risk

I used the qt preview tp1 and sometimes it crashed so needed the new beta ,
I  tested it on my kde desktop + I will upload arora recompiled with 4.6 version soon

The arora from karmic should work ok with 4.6 too but maybe a
recompile is needed
before you upgrade is better to save your list of pachages

dpkg --get-selections > installed-software.log

then you can reinstall qt/kde packages from console if you have problems with (revert to qt 4.5.3 if you want)

sudo dpkg --set-selections < installed-software.log
sudo dselect

and press I to install all the packages saved

On my sistem i had before qt tp1 packages and in deb name i had "tp1" > "beta1" if you think as a
package manager so i had to remove all qt packages and kde too and
reinstall them

sudo apt-get purge libqtcore4

Then i did the steps from above

Tuesday, October 06, 2009

#nginx and #wsgi on #ubuntu howto

I wanted to install mod_wsgi for nginx on ubuntu here are some basic steps for compiling it

tar -zxvf nginx-0.7.62.tar.gz
hg clone

see why you need that patch
cd mod_wsgi/
patch -p1 < ../mod_wsgi_patch.diff
cd ..

cd nginx-0.7.62/
./configure --add-module=../mod_wsgi/ --with-debug
sudo make install

How can i use linux low level/posix api with #qt ?

well i was searching the google about the above question and i remembered that you can use c api in c++ like any other function

you can see these posix linux threads examples that can be compiled with c++ like this $ g++ -lpthread pthread1.c

Next step was to create a simple example with qt creator 
something like get_pid.c example from advanced linux programming book 

so after an empty gui project is created do small modification like this and run it 

it should give you no errors and it should print in the console the pid 

Starting /home/mariuz/work/qtgetpid/qtgetpid/qtgetpid...
/proc/self reports process id 7977
getpid() reports process id 7977

Sunday, October 04, 2009

playing with powertop on my netbook

I know that this via netbook does have issues with powermanagement and i want to digg deeper
to get some sort of power/instructions trace
so i have installed powertop

sudo apt-get install powertop
what is interesting C3 state (sleep) is buggy on this cpu (cache incoherent)
and i see that is really used , it should be disabled by bios but i know that bios is buggy too.

Powertop suggested this
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

so i have added it in /etc/rc.local
before the exit 0