Archive for the 'PHP' Category

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 »

Google language tools API ( PHP 5 class )

This PHP 5 class API is developed on the base of a tool that I wrote some years ago.
Simply works querying Google translation / language tools with the text and language pair choosen.
I find it useful because of Google haven’t released yet an API for its translation tools.

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 »