Professional blog


web

Posted in HowTo, Linux, work by Yordan Georgiev on the February 26th, 2008

web , . - Apache IIS. . Google GFE .

GFE . - open sorces . lighhtpd nginx. !

, . , .

, - Apache. - php support / /

-

Posted in HowTo, Linux, work by Yordan Georgiev on the February 23rd, 2008

, . , -! hint, , .

!

Touchpad on/off

Posted in HowTo, Linux by Yordan Georgiev on the February 12th, 2007

. , .
bash

#!/bin/bash

if [ "$(synclient -l | awk '$1=/TouchpadOff/ { print $3 }')" == "1" ] ; then    # Touchpad disabled

NEWSTATE="0"
 
MSG="Touchpad enabled"
 
else   # Touchpad enabled

NEWSTATE="1"
 
MSG="Touchpad disabled"
 
fi
 
synclient touchpadoff=${NEWSTATE}
 
[ "$(pidof dcopserver)" ] && dcop knotify default notify '' 'Touchpad' "${MSG}" '' '' 15 0

KDE. . :

[Desktop Entry]
Comment=
Comment[en_US]=
Encoding=UTF-8
Exec=’/home/dancho/bin/touch.bash’
GenericName=
GenericName[en_US]=
Icon=/usr/share/app-install/icons/ktouch.png
MimeType=
Name=touchpad on/off
Name[en_US]=touchpad on/off
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=none
X-KDE-SubstituteUID=false
X-KDE-Username=
X-Ubuntu-Gettext-Domain=desktop_kdebase