Jquery Gallery

http://webexpedition18.com/articles/20-jquery-image-gallery-for-your-next-project/

How to install Git on Ubuntu Lucid (10.04)

http://kibyegon.wordpress.com/2010/05/13/how-to-install-git-on-ubuntu-lucid-10-04/

The perfect automated MySQL backup

http://blog.siteplanb.com/the-perfect-automated-mysql-backup-solution-with-e-mail-notification/

Get view object in preDispatch Plugin

class Digitalus_Controller_Plugin_Contacts extends Zend_Controller_Plugin_Abstract
{
     public function preDispatch(Zend_Controller_Request_Abstract $request)
     {
     $view =  Zend_Controller_Action_HelperBroker::getStaticHelper(‘viewRenderer’)->view;
     $view->contact1 =  ’contact1′;
     $view->contact2 = ‘contact2′;
     }
}

Apache 2: Self-Signed Certificates

Apache 2: Self-Signed Certificates-ssl
Self-signed certificates are very useful when doing testing on your local machine. The following was tested using a unix based environment.
Generate the Key and Certificate First we generate the private key
openssl genrsa -des3 -out server.key 1024
Then we create a certificate signing request
openssl req -new -key server.key -out server.csr
We make sure that everytime we start the apache server, we don’t have to type the passphrase
cp server.key server.key.org openssl rsa -in server.key.org -out server.key
Lastly we self-sign the certificate
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Configure the Apache Server Edit your apache’s httpd.conf and uncomment the following lines (just search it in the file)
LoadModule ssl_module modules/mod_ssl.so #PATH MAY DIFFER TO YOUR SETUP
Include conf/extra/httpd-ssl.conf Next edit your apache’s httpd-ssl.conf,
search for the following configuration item:
SSLCertificateFile & SSLCertificateKeyFile, change it to where your server.crt and server.key files are located respectively (absolute path!)
Finally if you’re using VirtualHost it is important to declare two NameVirtualHost (one for port 80 and port 443). Example: NameVirtualHost 127.0.0.1:80
NameVirtualHost 127.0.0.1:443
ServerName local.example.com
DocumentRoot /path/to/your/example.com/www
ServerName local.example.com
DocumentRoot /path/to/your/example.com/www
SSLEngine on SSLCertificateFile /path/to/your/server.crt
SSLCertificateKeyFile /path/to/your/server.key
Save and restart your Apache server!
Return top

Svetoslav Stefanov Stefanov

Web Developer Svetoslav Stefanov