Loading

Create Awesome Pie Charts From PHP Arrays Using Dojo Charting

In the previous articles I've written about using Dojo date pickers and filteringSelect widgets.


Concluding Bangalore MySQL User Group Meeting - Oct 11 2009

On 11 October, 2009 we, the members of the Bangalore MySQL User Group had a meeting in the Binary Vibes office. We had an informal talk on various topics. Overall, it was a good meeting. My presentation - MySQL Naming Conventions went well.


Create RESTful Applications Using The Zend Framework

The Zend Framework 1.9 release added a new feature - Zend_Rest_Controller. Zend_Rest_Controller and Zend_Rest_Route classes go hand in hand. In the previous versions of the Zend Framework, we have had the Zend_Rest_Server component. We still have. Since Zend_Rest_Server provides an RPC like component violating the REST architectural constraint, it is likely to be deprecated in the future versions of the Zend Framework.


Enable MySQL General Query And Slow Query Log

MySQL has a query logging feature. In order to use it you have to first enable it.

Enabling the general query log

Step 1: Set your log file in /etc/my.cnf

vi /etc/my.cnf

In the [mysqld] section specify the general log file name:

log=/var/log/mysqld.general.log

Step 2: Create the file and make sure it is owned by the system user mysql

touch /var/log/mysqld.general.log
chown mysql.mysql /var/log/mysqld.general.lo


Install Only Security Updates Using Yum

In a previous article we discussed how toinstall, remove, update and search for software packages using yum. In this post we discuss how to install only security updates using yum.


Attaching External SVN Repositories - svn:externals

The scenario:

  • You are using subversion as the version control software for your project
  • Your project depends on other projects, perhaps third party libraries
  • The other projects also use subversion as the version control software for their project

Using SMTP With Zend Framework - Solve Email Delivery Problem

What's the problem with PHP's mail() function?

PHP language provides the mail() function. But it requires properly configured mail server on the local machine. Developers often don't have the necessary infrastructure at their disposal. Sometimes sending emails from a PHP script becomes a frustrating experience.


Writing A PHP Script To Send SVN Commit Changeset Email Notification

If you are a

  • PHP programmer looking to write a script to send changelog email notification when a commit is made to the SVN server
  • SVN server admin looking for a script to send changelog email notification when a commit is made

you have come to the right place.

For the impatient, the script is posted at the end of the article.

Before we delve into writing the script, let us summarize the environment.

  • We have our SVN project at the path /var/svn/myproject/
  • The project name is myproject

Exploring svnlook


Making Code More Readable Using The Fluent Interface

From the Wikipedia
"In software engineering, a fluent interface (as first coined by Eric Evans and Martin Fowler) is a way of implementing an object oriented API in a way that aims to provide for more readable code."

Let us explore the fluent interface with the help of an example.

<?php
class Customer
{
    protected 
$_name;
    protected 
$_street;
    protected 
$_city;
    protected 
$_country;

    public function 
setName($name)
    {
        
$this->_name $name;
    }
?>


XML RPC Client Using PHP PEAR - A Real World Example: Ping Technorati

In a previpus blog post we discussed how to consume the Technorati ping web service using XML-RPC. The PEAR package XML_RPC2 provides convenient client and server objects. You can call the remote methods as if they were the methods of the client object.

In this post, let us accomplish the same using a PEAR package XML_RPC2. We will write a client script to update Technorati when there is new post in your blog site.


Syndicate content