Archive for May, 2008

mess with uptime… wtf?

hmmm… on my virutal machine (pld builder), i got sth like this

[root@builder ~]# date
Sat May 31 22:03:00 CEST 2008
[root@builder ~]# uptime
22:03:02 up 14994 days, 16:48, 2 users, load average: 0.25, 0.42, 0.44
[root@builder ~]# cat /proc/uptime
1295542137.91 7051085.16
[root@builder ~]#


i have no idea what happened :) but looks cool :)

Tags:

Saturday, May 31st, 2008 Linux, considers No Comments

some apache performance issues

I had some problems with apache… the php was very very slow. The system has linux gentoo with hardened profile, so me and x0ff believed that this was the main reason of poor apache performance. But recompiling php without “-pic” flag does no effect.

after

# ab -c 100 -n 10000 http://localhost/test.php

Benchmarking localhost (be patient)
Completed 1000 requests
apr_socket_recv: Connection reset by peer (104)
Total of 1810 requests completed

and in apache log:

[Fri May 30 19:40:54 2008] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 81
[Fri May 30 19:40:54 2008] [alert] Child 16566 returned a Fatal error… Apache is exiting!
[Fri May 30 19:40:54 2008] [emerg] (22)Invalid argument: couldn’t grab the accept mutex

So… it is not - the performance problem, because only 1810 requests were done.

Because system is hardened, i have a lot of limits in /etc/security/limits.conf. I was not sure if apache uses these vaules (because they are connected with PAM!!!!), but apache did ;(

http://bugs.gentoo.org/show_bug.cgi?id=64700

so the way to make it work was adding to
/etc/init.d/apache2 a line:

ulimit -u unlimited

the whole start section looks now like this

start() {
checkconfig || return 1
ebegin “Starting apache2″
[ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
ulimit -u unlimited
${APACHE2} ${APACHE2_OPTS} -k start
eend $?
}

to be sure that everything works fine a did a ab test one more time (with pic enabled).

# ab -c 100 -n 10000 http://localhost/test.php
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests

Server Software: Apache
Server Hostname: localhost
Server Port: 80

Document Path: /test.php
Document Length: 45361 bytes

Concurrency Level: 100
Time taken for tests: 48.260264 seconds
Complete requests: 10000
Failed requests: 100
(Connect: 0, Length: 100, Exceptions: 0)
Write errors: 0
Total transferred: 455159500 bytes
HTML transferred: 453609500 bytes
Requests per second: 207.21 [#/sec] (mean)
Time per request: 482.603 [ms] (mean)
Time per request: 4.826 [ms] (mean, across all concurrent requests)
Transfer rate: 9210.29 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 13 46.3 0 361
Processing: 9 466 200.4 472 4058
Waiting: 1 422 101.7 458 756
Total: 20 479 194.3 475 4058

Percentage of the requests served within a certain time (ms)
50% 475
66% 486
75% 498
80% 509
90% 546
95% 616
98% 708
99% 860
100% 4058 (longest request)

Without “pic” enabled i got:

Requests per second: 234.96 [#/sec] (mean)

so there is no big difference.

The test.php script consist of:

<?
phpinfo();
?>

niggle: note that there is no security problem with no limit - the apache has internal limiting functions

Tags: , , , , ,

Friday, May 30th, 2008 Linux, Security, Tips, considers No Comments

new toys arrived :)

Today I got some toys to configure… some of this is a really cool (sometimes just expensive :P ) stuff, some photos

DS3400

IBM DS3400 (dual fibre channel) with twelve 750GB dualport sata drives

DS3400

Back of DS3400, as we can see - two FC ports (per controller), management port, and drive expansion… at the bottom - redundant power supply

DS3400 controller

DS3400 controloller (one of dwo) with 512MB cache, work in active-active mode

HS21 memory

HS21 blade memory… two 2GB modules and two 1GB modules… looks nice in pairs

qlogic FC card for HS21

Qlogic fibre channel expansion card for IBM blade

nice mem

Feel out of memory?…

need power?

… or maybe out of power? :)

Tags: , , , , ,

Friday, May 30th, 2008 IBM, Personal No Comments

something about having job… [polish]

I found this text at goldenline.pl… it’s really interesting (but in polish :) (if sb would like to translate - do not hasitate :) ) )

Marek Grabka:

ktos wczesniej napisal, ze w ogloszeniach kazda firma jest rozwojowa i kazda praca ekscytujaca. tez to zauwazylem i jest to wg mnie bardzo zabawne. troche juz w branzy jestem, pare firm zwiedzilem, z paroma rozmawialem i mam kupe znajomych w korporacjach typu sabre, motka czy ibm. no i zawsze jest tak, ze HRy (i nie tylko, managerowie tez maja do tego sklonnosci) to roztaczaja wizje po prostu niemal obcowania z absolutem. nowe projekty, przelomowe technologie, miedzynarodowy zespol, wyzwania, cuda niewidy… a potem czlowiek przychodzi i przez 8 godzin dziennie gapi sie w terabajtowe logi wyplute przez jakiegos tajemniczego molocha stojacego gdzies tam i robiacego nie bardzo wiadomo co. albo po raz setny sledzi sie wylot po krzywym kliknieciu. albo po raz n-ty debugujesz rysowanie kontrolki bo u klienta glupio wyglada…
tak naprawde gros pracy programisty to poprawianie bledow po innych albo po sobie samym. taka jest smutna prawda i nie ma co sciemniac ze ta firma jest super bo oni ciagle wymyslaja cos nowego. nawet jesli firma wypluwa z siebie nowe technologie z predkoscia karabinu maszynowego to zaloze sie ze max 2% obsady opracowuje te nowosci, a pozostale 98% lata dziury w teoriach.

Michał Czapliński:

Moim zdaniem w sektorze IT płac jeszcze przez jakiś czas nie będzie się podawać widełek płac.
Pracownicy IT szczebla średniego i niższego są z reguły postrzegani jako pracownicy od wiedzy tajemnej niemożliwej do zweryfikowania przez pracodawcę, gdyż używa on IT ale nie jest to jego źródłem przychodów.
Często na takie stanowiska aplikują lamy, które myślą, że jak się naczytały Komputer Świata to są specami z sektora IT.
Stąd na rozmowach spotykają się “zaprawieni” w bojach szeroko pojęci “informatycy” i informatyczni “gringo”.
Dla potencjalnego pracodawcy nie będącego informatykiem odróżnienie tych dwóch “gatunków” jest dosyć ciężkie, więc podejmuje decyzję w stylu “po co przepłacać…”.
Specjaliści wąskich tematów w IT są poza klasyfikacją gdyż są zatrudniani po szczegółowej weryfikacji w firmach IT.
Tu także jeszcze przez jakiś czas nie będą podawane zarobki.
Polskie firmy IT póki co są na dorobku lub są oddziałami światowych koncernów. Oddziały koncernów czasami jadą na stratach i dzięki redukcji kosztów zatrudnienia przez minimalizację płac wykazują zyski w EMEA ratując wizerunek firmy. Polskie firmy mają polską filozofię: ” po co przepłacać jak można mieć “to samo” za mniej”.
Stąd ta licytacja ujemna.
Jeszcze upłynie sporo czasu, zanim zrozumieją, że jeden dobrze opłacony, identyfikujący się z firmą pracownik, potrafi pracować za dwóch kiepsko wynagradzanych, którzy w tym samym czasie szukają nowej pracy.

Tags: , ,

Sunday, May 25th, 2008 considers No Comments

hardlinks in linux - maybe a way to backup?

take a look:

marti@illusion ~/test_dir $ ls -al
total 8228
drwxr-xr-x 2 marti marti 4096 May 20 13:57 .
drwxr-x— 15 marti marti 4096 May 20 13:56 ..
-rw-r–r– 1 marti marti 8397824 May 20 13:58 pliczek

make some hardlinks:

ln pliczek plik1
ln pliczek plik2
ln pliczek plik3

marti@illusion ~/test_dir $ ls -ila
total 32876
5144802 drwxr-xr-x 2 marti marti 4096 May 20 14:01 .
5029890 drwxr-x— 15 marti marti 4096 May 20 13:56 ..
5144803 -rw-r–r– 4 marti marti 8397824 May 20 13:58 pliczek
5144803 -rw-r–r– 4 marti marti 8397824 May 20 13:58 plik1
5144803 -rw-r–r– 4 marti marti 8397824 May 20 13:58 plik2
5144803 -rw-r–r– 4 marti marti 8397824 May 20 13:58 plik3
marti@illusion ~/test_dir $ du .
8220 .

it means that - links does not consume disk space, and… after rm of oryginal file:

marti@illusion ~/test_dir $ rm pliczek
marti@illusion ~/test_dir $ ls -ail
total 24660
5144802 drwxr-xr-x 2 marti marti 4096 May 20 15:20 .
5029890 drwxr-x— 15 marti marti 4096 May 20 13:56 ..
5144803 -rw-r–r– 3 marti marti 8397824 May 20 13:58 plik1
5144803 -rw-r–r– 3 marti marti 8397824 May 20 13:58 plik2
5144803 -rw-r–r– 3 marti marti 8397824 May 20 13:58 plik3

files still exist and they still have same size:

marti@illusion ~/test_dir $ du -s .
8220 .

one strange thing is as expected, “ls” reports 24660 blocks in use, seeing each of the new hard linked files as new data. But… notice what “du” reports, since it actually looks deeper into the file system

way of backup - make hardlink to every file or desired file in another place (note that hardlinks can be done only in one partition), if you wan’t to find files which has more then one hardlink just execute:

find / ! -links 1 -type f

OK - note2 (thx to xoff) - you can only be safe in way of deleting the file… not modification, and it is the chipest way of backup - that not occupy additional disk space.

Tags: , ,

Tuesday, May 20th, 2008 Linux, Tips, considers No Comments

install ekg step by step

Some distracted users have problem with installing EKG (console GG client for unix and linux), because of the fact that libgadu has been separated form EKG project. So… for me :) , and some distracted users… step by step install:

background:

Symptom:
after ./configure and executing make you get sth like this:

cd src && /usr/bin/gmake all
gmake[1]: Entering directory `/root/zrodla/ekg-20080518/src’
gcc -MM -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” stuff.c commands.c events.c themes.c vars.c dynstuff.c userlist.c ekg.c xmalloc.c mail.c msgqueue.c emoticons.c configfile.c simlite.c ../compat/strlcat.c ../compat/strlcpy.c ui-ncurses.c ui-batch.c ui-none.c log.c comptime.c 1> .depend
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o stuff.o stuff.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o commands.o commands.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o events.o events.c
events.c: In function ‘print_message’:
events.c:150: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:155: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:177: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:292: warning: pointer targets in passing argument 5 of ‘last_add’ differ in signedness
events.c:338: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:338: warning: pointer targets in passing argument 1 of ‘xstrdup’ differ in signedness
events.c: In function ‘handle_msg’:
events.c:530: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:541: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:541: warning: pointer targets in passing argument 1 of ’strlcpy’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:621: warning: pointer targets in passing argument 1 of ’strncmp’ differ in signedness
events.c:666: warning: pointer targets in passing argument 3 of ‘event_check’ differ in signedness
events.c:680: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c: In function ‘handle_common’:
events.c:961: warning: pointer targets in assignment differ in signedness
events.c:986: warning: pointer targets in assignment differ in signedness
events.c:994: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:1006: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
events.c:1006: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
events.c:1006: warning: pointer targets in passing argument 2 of ‘__builtin_strcmp’ differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of ’strlen’ differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:1037: warning: pointer targets in passing argument 1 of ‘__builtin_strcmp’ differ in signedness
events.c:1038: warning: pointer targets in passing argument 3 of ‘event_check’ differ in signedness
events.c:1042: warning: pointer targets in passing argument 3 of ‘event_check’ differ in signedness
events.c:1044: warning: pointer targets in passing argument 3 of ‘event_check’ differ in signedness
events.c:1120: warning: pointer targets in passing argument 1 of ‘xstrdup’ differ in signedness
events.c:1152: warning: pointer targets in assignment differ in signedness
events.c: In function ‘handle_userlist’:
events.c:2144: warning: pointer targets in passing argument 1 of ‘cp_to_iso’ differ in signedness
events.c: In function ‘handle_dcc’:
events.c:2443: warning: pointer targets in passing argument 1 of ‘iso_to_cp’ differ in signedness
events.c:2483: warning: pointer targets in passing argument 1 of ‘xstrdup’ differ in signedness
events.c:2484: warning: pointer targets in passing argument 1 of ‘cp_to_iso’ differ in signedness
events.c: In function ‘handle_search50′:
events.c:2937: warning: pointer targets in passing argument 1 of ‘cp_to_iso’ differ in signedness
events.c:2938: warning: pointer targets in passing argument 1 of ‘cp_to_iso’ differ in signedness
events.c:2939: warning: pointer targets in passing argument 1 of ‘cp_to_iso’ differ in signedness
events.c:2940: warning: pointer targets in passing argument 1 of ‘cp_to_iso’ differ in signedness
events.c: In function ‘handle_image_reply’:
events.c:3069: warning: pointer targets in assignment differ in signedness
events.c:3074: warning: pointer targets in assignment differ in signedness
events.c:3076: warning: pointer targets in passing argument 1 of ‘xstrdup’ differ in signedness
events.c:3076: warning: pointer targets in assignment differ in signedness
events.c:3090: warning: pointer targets in passing argument 1 of ‘open’ differ in signedness
events.c:3098: warning: pointer targets in passing argument 1 of ‘unlink’ differ in signedness
events.c:3103: warning: pointer targets in passing argument 1 of ‘unlink’ differ in signedness
events.c:3111: warning: pointer targets in passing argument 1 of ‘unlink’ differ in signedness
events.c:3118: warning: pointer targets in passing argument 1 of ‘unlink’ differ in signedness
events.c:3126: warning: pointer targets in passing argument 3 of ‘event_check’ differ in signedness
events.c:3182: warning: pointer targets in passing argument 1 of ‘iso_to_cp’ differ in signedness
events.c: In function ‘handle_dcc7_new’:
events.c:3227: warning: pointer targets in passing argument 1 of ‘xstrdup’ differ in signedness
events.c:3228: warning: pointer targets in passing argument 1 of ‘cp_to_iso’ differ in signedness
events.c:3229: warning: pointer targets in passing argument 1 of ‘fix_filename’ differ in signedness
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o themes.o themes.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o vars.o vars.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o dynstuff.o dynstuff.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o userlist.o userlist.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o ekg.o ekg.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o xmalloc.o xmalloc.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o mail.o mail.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o msgqueue.o msgqueue.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o emoticons.o emoticons.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o configfile.o configfile.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o simlite.o simlite.c
simlite.c: In function ’sim_message_encrypt’:
simlite.c:341: warning: value computed is not used
simlite.c: In function ’sim_message_decrypt’:
simlite.c:408: warning: value computed is not used
simlite.c:471: warning: value computed is not used
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o ../compat/strlcat.o ../compat/strlcat.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o ../compat/strlcpy.o ../compat/strlcpy.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o ui-ncurses.o ui-ncurses.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o ui-batch.o ui-batch.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o ui-none.o ui-none.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o log.o log.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -c -o comptime.o comptime.c
gcc -I.. -g -O2 -Wall -DDATADIR=\”/usr/local/share/ekg\” -DSYSCONFDIR=\”/usr/local/etc\” -o ekg stuff.o commands.o events.o themes.o vars.o dynstuff.o userlist.o ekg.o xmalloc.o mail.o msgqueue.o emoticons.o configfile.o simlite.o ../compat/strlcat.o ../compat/strlcpy.o ui-ncurses.o ui-batch.o ui-none.o log.o comptime.o -lz -ljpeg -lssl -lcrypto -ldl -lncurses -lgadu
commands.o: In function `cmd_dcc’:
/root/zrodla/ekg-20080518/src/commands.c:3183: undefined reference to `gg_dcc7_send_file’
/root/zrodla/ekg-20080518/src/commands.c:3484: undefined reference to `gg_dcc7_reject’
/root/zrodla/ekg-20080518/src/commands.c:3486: undefined reference to `gg_dcc7_free’
/root/zrodla/ekg-20080518/src/commands.c:3445: undefined reference to `gg_dcc7_accept’
/root/zrodla/ekg-20080518/src/commands.c:3418: undefined reference to `gg_dcc7_free’
/root/zrodla/ekg-20080518/src/commands.c:3417: undefined reference to `gg_dcc7_reject’
events.o: In function `check_dcc_limit’:
/root/zrodla/ekg-20080518/src/events.c:2320: undefined reference to `gg_dcc7_free’
events.o: In function `handle_dcc7_new’:
/root/zrodla/ekg-20080518/src/events.c:3206: undefined reference to `gg_dcc7_reject’
/root/zrodla/ekg-20080518/src/events.c:3207: undefined reference to `gg_dcc7_free’
/root/zrodla/ekg-20080518/src/events.c:3253: undefined reference to `gg_dcc7_reject’
/root/zrodla/ekg-20080518/src/events.c:3254: undefined reference to `gg_dcc7_free’
events.o: In function `handle_dcc7′:
/root/zrodla/ekg-20080518/src/events.c:2632: undefined reference to `gg_dcc7_watch_fd’
/root/zrodla/ekg-20080518/src/events.c:2830: undefined reference to `gg_dcc7_free’
/root/zrodla/ekg-20080518/src/events.c:2785: undefined reference to `gg_dcc7_free’
events.o: In function `handle_dcc7_reject’:
/root/zrodla/ekg-20080518/src/events.c:3303: undefined reference to `gg_dcc7_free’
events.o: In function `handle_dcc7′:
/root/zrodla/ekg-20080518/src/events.c:2637: undefined reference to `gg_dcc7_free’
ekg.o: In function `ekg_wait_for_key’:
/root/zrodla/ekg-20080518/src/ekg.c:529: undefined reference to `gg_dcc7_free’
ekg.o:(.rodata+0×190): more undefined references to `gg_dcc7_free’ follow
collect2: ld returned 1 exit status
gmake[1]: *** [ekg] Error 1
gmake[1]: Leaving directory `/root/zrodla/ekg-20080518/src’
make: *** [ekg] Error 2

solution:

install libgadu

go into libgadu directory and do:

./configure
make && make install

there will be a very important line in make install output:

Libraries have been installed in:
/usr/local/lib

then do like this:

export CFLAGS=-I/usr/local/include/
export LDFLAGS=-L/usr/local/lib

(all depends at dir you have in output of make install)

then simply install the ekg by executing in ekg sources dir

./configure
make && make install

that’s all!

CAUTION:

  • be sure that you are doing this in the same terminal - export isn’t succeeded throught sessions
  • if this does not work, try to find where you have libgadu.h file (and this dir need to be set in CFLAGS), and libgadu.so (and this dir has to be set in LDFLAGS).

in any problems :) - just ask :)

Tags: ,

Monday, May 19th, 2008 Linux, Tips No Comments

KB949031 and Office 2007 with SP1

Hmm… today I was reviewing installed updates in my Windows Vista… and I noticed that I have both - SP1 to my Microsoft Office Enterprise 2007 and KB949031 update. The date of install sp1 was earlier that the critical security update that allow remote code execution in outlook, so… why microsoft distribute this patch even if Office 2007 SP1 is not affected by THIS critial vulnerability?

Maybe because it is Microsoft? :)

Tags: , ,

Friday, May 16th, 2008 Security, considers, vista, windows No Comments

jak ochrona łamie wszelakie przepisy drogowe

First I would like to apologize all english language readers for article in polish, the post is directed to polish spoken users :)

To, że policja krakowska niejednokrotnie łamie wszelkie możliwe przepisy począwszy od zakazów parkowania, parkowanie na skwerach i jazdę po pasach przeznaczonych dla autobusów to chyba wszyscy kierowcy jeżdżący po Krakowie doskonale wiedzą.

pas dla busow

Irytuje mnie natomiast fakt, iż wszelkiego rodzaju “justysy”, “solidni” itp. agencje ochrony notorycznie zachowują się jak pojazdy uprzywilejowane, nie dość, że łamią przepisy to jeszcze stwarzają zagrożenie dla ruchu.

Dziś natknąłem się na “Rutkowski Patrol” który to wyjeżdżając z ul. Czesława Miłosza (przedłużenie Wita Stwosza) na aleję 29 listopada skręcił niewiele przejmując się czerwonym światłem W LEWO, przecinając w międzyczasie dwie linie ciągłe.

Jak widać - stałem na czerwonym świetle na 29 listopada chcąc skręcić w lewo, podczas gdy mam czerwone światło na tym skrzyżowaniu jest tak - że samochody jadące z ul Czesława Miłosza również mają czerwone.

Rutkowski Patrol - pojazd nr 011 łamiący kilka przepisów jednocześnie (czerwone, nakaz jazdy w prawo, dwie ciągłe linie i przejazd po części wyłączonej z ruchu), przy czy nie miał włączonej żadnej syreny “policyjnej” czy nawet sygnalizacji świetlnej.

Obserwując to co się dzieje… czasem mam wrażenie że Ci co karzą często nie do końca winnych sami wykorzystują swoją pozycję do zwykłego wygodnictwa.

Poniżej miejsce zdarzenia na google maps.

Thursday, May 15th, 2008 Uncategorized No Comments

photos-fun

Cracow - my city :) take a look… (there was dull weather so sorry for dark colors)
camera: Panasonic DMC-FZ5
software: autostich for panorma and photoshop cs2 for modifications

original 12 photos merged in one panorama :)

Cracow panorama view

and some color modifications

cracow panorama

cracow panorama 2

cracow panorama 3

Tags: , ,

Thursday, May 15th, 2008 Personal No Comments

some funny stuff

Some time ago, when configuring HP switch i got sth like this :)

press any tab at hp switch

As far as i know, my keyboard has one “TAB” button, but maybe programmers has a little bit more ;)

Tags: ,

Thursday, May 15th, 2008 Personal, considers No Comments