štvrtok 7. júna 2012

Gnome Shell add custom application


  1. su
  2. cd /usr/share/applications
  3. copy some .desktop file or create new one. f.ex. aptana.desktop
Example:

[Desktop Entry]
Name=Aptana
Comment=Aptana development studio
GenericName=Aptana-studio
Exec=/home/YOU/apps/Aptana_Studio_3/AptanaStudio3
Icon=/home/YOU/apps/Aptana_Studio_3/icon.xpm
StartupNotify=true
Terminal=false
Type=Application
Categories=Development;IDE;PHP;

save file and try search it :) new you can add yout application to favourites

streda 6. júna 2012

LAMP server on FEDORA 17

Install MySql server and client

yum install mysql mysql-server

Starting and enabling mysql


systemctl start mysqld.service
systemctl enable mysqld.service

Basic MySql setup

mysql_secure_installation

Install Apache and PHP

yum install httpd php php-common

service httpd start

chkconfig --levels 235 httpd on

yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

Install phpmyadmin

yum install phpmyadmin

or download and upack to /var/www/html/ from http://www.phpmyadmin.net/

service  httpd restart

How to change document root in fedora read here http://hafiz-khairina.blogspot.sk/2010/04/fedora-change-root-directory-of-httpd.html

TADAAAAA

utorok 10. januára 2012

Fedora SOAP and PHP establishing socket connections problem

If you have problem with host name or permission (error 13) on fedora system, you must enable outgoing network connection.

Run as ROOT:

setsebool -P httpd_can_network_connect 1

and

service httpd restart

nedeľa 24. apríla 2011

Iphone (ios 4.2) - ubuntu mount problem

If you see this: DBus error: MESSAGE DID NOT RECEIVE A REPLY (TIMEOUT MESSAGE BY BUS)

You can solve it easy:

sudo add-apt-repository ppa:pmcenery/ppa
sudo apt-get update
sudo apt-get dist-upgrade

štvrtok 9. decembra 2010

PHP - how to print response, close communication and continue by some function

After long search i found this and its works! :)

        ob_end_clean();
        //set header
        header("content-type: text/xml");
        header("Connection: close\r\n");
        ob_start();
        //print response
        $sMessage = '<?xml version="1.0" encoding="UTF-8"?>';
        $sMessage.= '<message><id>1</id></message>';
        echo $sMessage;     
        $iSize = ob_get_length();
        header("Content-Length: $iSize");
        ob_end_flush();
        flush();
        ob_end_clean();
       
        sleep(10);
        //call some function or method
        callMyFuncion();