Open Source Archive

Pulseaudio with built-in system-wide equalizer in Archlinux

Long time no see… :< It’s being some time I’ve being looking for a system-wide equalizer for linux, but never really searched if there is really an option for it. In ArchLinux, as usual, it’s quite simple. You only have to install the package pulseaudio-equalizer-ladspa

yaourt pulseaudio-equalizer

Execute the next command to enable de dbus module in pulseaudio:

echo "load-module module-dbus-protocol"| sudo tee -a /etc/pulse/default.qa

Then you only have enable the equalizer sink in the Sound panel of gnome-control-center

Screenshot from 2017-03-25 00-46-16

And finally you will see the next window where you can tune each band or use the presets available from the dropdown at the right part of the window.

Screenshot from 2017-03-25 00-47-12

Easy way to install PHP QA tools

If you need an easy and quick way to install your PHP QA tools, you can use the next bash snippet.

# Install composer based tools
cat > ~/.composer/composer.json <<EOF
{
    "require": {
        "halleck45/phpmetrics": "@dev",
        "squizlabs/php_codesniffer": "*",
        "phpunit/phpunit": "*",
        "sebastian/phpcpd": "*",
        "sebastian/phpdcd": "*",
        "phpmd/phpmd" : "@stable",
        "pdepend/pdepend" : "@stable",
        "phploc/phploc": "*",
        "sebastian/hhvm-wrapper": "*",
        "theseer/phpdox": "*"
    }
}
EOF
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
/usr/local/bin/composer global install
chown -R $SUDO_USER.$SUDO_USER ~/.composer

And all your required tools (phpunit, phploc, phpmd, pdepend, …) are now located at ~/.composer/vendor/bin, so set your $PATH environment variable to include it.

If you find it useful please share it.

Pingback-php: a library for performing Pingback calls in an easy-way

Today I’m pleased to announce another library that I made. Pingback-php is a library for performing Pingback requests in a simple way. Pingback-PHP is compliant with the Pingback 1.0 standard specification.

A quick example:

If you want to inform to this article that you have referenced it from one of your posts by using the Pingback protocol, you can do it with this code:

// Prepare the Pingback client
$requestHandler = new Pingback\RequestHandler();
$client = new Pingback\Client($requestHandler);

// Perform the pingback call
try {

    $client->ping(
        "http://www.mabishu.com/blog/2012/12/14/get-better-performance-and-life-from-your-ssd-in-linux-based-systems/",
        "http://www.mabishu.com/blog/2012/12/14/object-calisthenics-write-better-object-oriented-code/";
    );

} catch (Pingback\Exception $e) {
  printf("Exception raised with code (%d) : %s\n", $e->getCode(), $e->getMessage());
}

Slides of our last lecture at the University of Coruña

Tower of BabelThis Wednesday, November 24th, we made a lecture at the University of Coruña to tech and linguistic people, related with the projects that our galician opensource community are managing and what are their states, and for the other hand how to improve translations by using different techniques we are currently applying in GNOME and Ubuntu.

This lecture was part of two weeks of course, where the more proficient people of open source community of Galicia have explained how they work and how anyone could colaborate with them doing tasks as translations, managing projects or reviewing.
You can find more information about all the lectures at the webpage of Trasno Association[in galician]. This course was sponsorized by our regional gobernment (Xunta de Galicia).

These are our 5 presentations for the lecture, but you can read them at slideshare [in galician]:

Page 1 of 2