jquery ile css grafik oluşturma

http://www.workshop.rs/jqbargraph/

 

 

 

 

 

 

Faydalı olacağını düşündüğüm güzel bir plugin.

php

imap_open ile mail okuma sınıfı

Çok yakında

Bir görevi kontrol eden başka bir görev tanımı.shell script’i

Aşağıdaki kodları control olarak kaydedelim. /root/control.sh

#!/bin/sh
# description: gorev.php  görevini crontab ile 5 dakikada bir otomatik kontrol eder.
SERVICE=’gorev.php’
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
echo “$SERVICE service running, everything is ok”
else
php /usr/server/php/bin/php /var/www/gorev.php &
fi

Daha sonra ;

crontab -e yazarak aşağıdaki tanımı yapıyoruz

*/5 * * * * sh /root/control.sh

 

sendmail relayhost işlemi.

(sendmail’in başka sunucu üzerindeki smtp uygulaması üzerinden çalıştırılması)

apt-get install sendmail kurulacak.

/etc/mail/sendmail.mc içine aşağıdaki satırlar eklenecek.

define(`SMART_HOST’,`cloud’)dnl

define(`RELAY_MAILER’,`esmtp’)dnl

define(`RELAY_MAILER_ARGS’, `TCP $h 587′)dnl

smart_host olarak tanımladığımız cloud değeri

/etc/hosts altında yönleneceği ip’nin yer alması gerekiyor. Aşağıdaki gibi

x.x.x.x cloud

(x.x.x.x) sizin yönlendireceğiniz ip adresi.,

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

buradaki m4 komutu çalışmaz ise sendmail’in sendmail-cf paketinin kurulması gerekebilir.

 

Kolay gelsin.

 

Windows’ta UCMA Api’si ile Office Communicator bağlantısı

Aşağıdaki adresten indirerek kurabilirsiniz.Ben 2.0 versiyonunu kullandım. .Net örnek uygulamaları kurulumdan sonra inceleyebilirsiniz. Kurarken Visual Studio 2008 + Visual Studio 2008 Service Pack 1 yüklemeniz gerekmektedir.

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=10842

Kolay Gelsin.

php-phurple ile microsoft office communicator bağlantısı

php ile pidgin pluginlerini kullanarak msn,gtalk,yahoo hesaplarına bağlanmak.

Selam.

İlk olarak linux makinemize pidgin internet messenger uygulamasını kuruyoruz.

ubuntu software center’dan da kurabiliriz yada source kodlarından.

http://pidgin.im/download/source/ Bu adresten soruce kodlarını indirebilirsiniz.

configure etmeden önce.

sudo apt-get buildep pidgin komutunu çalıştırarak gerekli paketleri yüklememiz gerekiyor.

http://soad1982.blogspot.com/2010/01/installing-pidgin-from-source.html

sonra dizine girip configure ediyoruz. .confgiure dir=/usr

 

Daha sonra pidgin-sipe pluginini kurmamız gerekiyor.

http://sipe.sourceforge.net/

 

 

Php ile pidgin’i  kullanabilmek için  bir extension kurmamız ve bunu php ye göstermemiz gerekiyor.

Bu adresten http://sourceforge.net/projects/phurple/ php için gerekli olan extension paketinin source kodunu indiriyoruz.

Configure etmeden önce

/usr/include/glib-2.0/glib/gtypes.h doysası içinde ki

#include <glibconfig.h> satırını aşağıdaki satırla değiştiriyoruz.yada bu dosya neredeyse orayla.

#include </usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h>

Daha sonra indirdiğimiz paketi açıyoruruz.

tar xjf phurple-0.4.1-alpha.tar.bz2

cd phurple-0.4.1-alpha

phpize && ./configure --enable-phurple && make && make install

son olarak php.ini dosyasına aşağıdaki satırı ekliyoruz.

phurple.custom_plugin_path=”/usr/lib/purple-2″

extension=/usr/lib/php5/20090626/phurple.so


Installing PHP5 and Apache on Ubuntu

If you are doing any kind of PHP development, you’ll almost always be using Apache along with it. Here’s the quick and easy way to get PHP up and running on your Ubuntu box.

From a command shell, you will run the following commands:

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart

Note that if apache is already installed you can omit the first line. Your web files will now be found in /var/www/

apt-get install php5-mysql libapache2-mod-php5 php5-gd php-pear php5-imap php5-mcrypt php5-memcache php5-json php5-ldap

Install MySQL Server 5 on Ubuntu

Installing MySQL 5 Server on Ubuntu is a quick and easy process. It almost feels like it should be more difficult.

Open a terminal window, and use the following command:

sudo apt-get install mysql-server

If you are running PHP you will also need to install the php module for mysql 5:

sudo apt-get install php5-mysql

See, really easy!

Bir dizine erişecek ip’leri belirlemek

#dizin listeleme kapatılıyor
Options -Indexes

#<directory /var/www/localhost>
#order deny,allow
deny from all
allow from 1.2.3.4
#</directory>