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.
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.
MySQL has a query logging feature. In order to use it you have to first enable it.
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
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.
The scenario:
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.
If you are a
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.
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;
}
?>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.
Recent comments
7 weeks 2 days ago
10 weeks 3 days ago
13 weeks 16 hours ago
13 weeks 16 hours ago
14 weeks 2 days ago
14 weeks 6 days ago
17 weeks 1 day ago
17 weeks 6 days ago
36 weeks 2 days ago
37 weeks 2 days ago