Projects
aSOS Android app: protect yourself in risk and danger situations
php-google-backup: backup Google Apps data with PHP and Zend Framework GData
Kernel Socks Bouncer: Linux 2.6 kernel module that that redirects tcp connection through socks 5 chains
WBUs (Web Bus)
WP interests: generate a chart of your interests
Articles
Be Quick Or Be Dead: singleplayer javascript browsergame
Javascript online massive social password cracking?

Archive for the 'PHP' Category

php-google-backup v1.0 released : backup Google Apps data (docs) with PHP and Zend GData

In these days I was setting up my new backup system (based on Netgear WGT634U with a pair of USB hard disk as external storage) and I needed a command line script to backup all my Google Apps data.
My priority was to backup GMail and Google Docs (Documents) data. For emails I found a very useful tool called getmail4 but I had not the same luck for documents so I wrote a very simple php command line script based on Zend Framework GData API.
Now I release first version of php-google-backup only with this feature but I’m planning to extend it to GMail, Google Calendar and Google Reader.
Get the script!

Wordpress plugin, WP interests : generate a chart of your interests

Wp interests screenshot 1

This is a very simple wordpress plugin that uses Google Chart API to create and display a chart of your interests on the basis of blog’s categories and posts.

Version : 0.1

Download : http://ardoino.com/pub/wordpress/wp-interests.zip

Installation

1. Unzip into your `/wp-content/plugins/` directory..
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Edit your current theme adding the few lines below (for example in siderbar.php)

<?php
    $wp_interests = new wp_interests();
    $wp_interests->wpi();
?>

3.1. Defining size of the chart

<?php
    // Chart width: 300px , height: 200px
    $wp_interests = new wp_interests();
    $wp_interests->wpi(array("size" => "300x200"));
?>

3.2. Defining excluded categories from chart

<?php
    // Excluding 'Humor' and 'General' categories from chart
    $wp_interests = new wp_interests();
    $wp_interests->wpi(array("size" => "300x200", "exclude_cats" => array("Humor", "General")));
?>

3.3. Renaming long categories names in chart

<?php
    // Renaming 'Ajax/Javascript' in 'Ajax/JS' and 'Crypto/Security' in 'Crypt/Sec'
    $wp_interests = new wp_interests();
    $wp_interests->wpi(array(
       "size" => "300x200",
       "exclude_cats" => array("Humor", "General"),
       "rename_cats" => array("Ajax/Javascript" => "Ajax/JS", "Crypto/Security" => "Crypt/Sec")
     ));
?>

3.4. For more options visit http://ardoino.com
4. That’s it!

Changelog :

  • 0.1 -> initial release

PHP class, pvox : Festival text-to-speech client

University of Edinburgh’s Festival Speech Synthesis Systems is a free software multi-lingual speech synthesis workbench that runs on multiple-platforms offering black box text to speech, as well as an open architecture for research in speech synthesis. It designed as a component of large speech technology systems.

Since I had problems with clients included in Speech Tools ( part of Festival software ),
I wrote Pvox .

Pvox is a PHP 5 client for the Festival Speech Synthesis Systems. It connects to a festival server, sends commands and the string to process and receives a wave file. It could be used as a command line script or to play spoken audio on a browser.

Read more »

PHP and Wget sitemap generator for search engines

Sitemaps are of primary importance in Search Engine Optimization ( SEO for friends :) )

PHP Wget Sitemap Generator class takes advantage of wget to get a local mirror of the target site and then generates the url list for the sitemap via local directory listing.
Wget is highly configurable so read the man page of best options to use (replace exec function argument).

The code:
Read more »

PHP class : socks 4, socks 5 and proxy lists validation (based on curl lib)

Anonymity is one of my favourites’ interests :) (try ksb26) .

This simple PHP 5 class validates Socks4 , Socks5 and Proxy lists.
Read more »