Skip to content

web - Westantarktis überschreitet den Kipppunkt

[...]
Ein US-Fachjournalist nannte es einen “holy shit moment for global warming” – aber das ist untertrieben. Es ist ein historischer Wendepunkt – nicht nur für die Klimaforschung, sondern für die Menschheit. Seit dem Frühjahr 2014 wissen wir: der Westantarktische Eisschild ist höchstwahrscheinlich instabil geworden und damit gewissermaßen im freien Fall. „Der Planet ist in eine neue Ära eingetreten“, schrieb der Antarktisexperte Anders Levermann kürzlich dazu. Damit sind mehrere Meter Meeresspiegelanstieg und der Untergang von Küstenstädten und ganzen Inselstaaten vorprogrammiert und praktisch unausweichlich geworden.
[...]

Quelle

version 1.0.1 of zend framework 2 console helper released

I happy to announce the release of 1.0.1 of bazzlines zend framework 2 console helper module for php. Important changes are:

  • added example code output
  • added apigen
  • moved to usage of "Zend\Mvc\Controller\AbstractConsoleController"

version 1.0.0 of zend framework 2 console helper released

I happy to announce the release of 1.0.0 of bazzlines zend framework 2 console helper module for php.
This module should easy up implementing console commands supporting POSIX Signal Handling.
Furthermore, there are some simple but useful methods implemented:

  • getConsole()
  • getParameter($name)
  • getRequest()
  • hasBooleanParameter($shortName = '', $longName = '')
  • hasParameter($name)
  • throwExceptionIfNotCalledInsideAnCliEnvironment()

How can I use it?


namespace MyModule\Controller\Console;

use Exception;

class IndexController extends AbstractConsoleController
{
    public function indexAction()
    {
        try {
            $this->throwExceptionIfNotCalledInsideAnCliEnvironment();

            $this->attachSignalHandler($this);

            //some example items
            //  simple think about a lot of items that indicates longer
            //  processing runtime
            $items = array('one', 'two', 'three', 'four');

            //use implemented method to react on signal handling
            $this->processItems(
                $items,             //big list of items
                $this,              //current object
                'processItem',      //method that should be called for each item
                $arguments = array( //additional arguments for method 'processItem' (if needed)
                    'foo',
                    'bar'
                )
            );
        } catch (Exception $exception) {
            $this->handleException($exception);
        }
    }

    /**
     * must be protected since it will be called from the parent
     *
     * @param string $item
     * @param string $stringOne
     * @param string $stringTwo
     */
    protected function processItem($item, $stringOne, $stringTwo)
    {
        $console = $this->getConsole();
        $console->writeLine(
            'this is item "' . $item .
            '" with string one "' . $stringOne . '"' .
            '" and string two "' . $stringTwo . '"'
        );
    }

    /**
     * @return boolean
     */
    private function beVerbose()
    {
        return $this->hasBooleanParameter('v', 'verbose');
    }
}

How can I install it?

with packagist


composer require net_bazzline/zf_console_helper:dev-master

manuel


mkdir -p vendor/net_bazzline/zf_console_helper
cd vendor/net_bazzline/zf_console_helper
git clone https://github.com/zf_console_helper

FSF released hardware database to identify devices/hardware that works

The h-node project aims at the construction of a hardware database in order to identify what devices work with a fully free operating system. The h-node.org website is structured like a wiki in which all the users can modify or insert new contents. The h-node project is developed in collaboration and as an activity of the FSF.

source

Thanks FSF and if you like what FSF is doing, join them :-).