Magento2 ObjectManager preferences

When developing with Magento2 you have maybe come to the question were is my logger for example. This was the way in Magento before.

Mage::log('Some log message', null, 'file.log');

Maybe you have already found the logger here for example in the class Magento\Backup\Controller\Adminhtml\Index\Rollback.

$this->_objectManager->get('Psr\Log\LoggerInterface')->info($e->getMessage());

Today I don't want to show you the logger. More interesting for me are the shared instances inside of the Objectmanager that you can use with the fucntion get.

Continue reading ...

Magento2 extension development with Travis CI

If you have started developing a Magento2 shop with Composer you should have noticed that you will need some authentication keys. Alan Kent is explaining in his post Magento 2 and Composer Authentication why Magento thinks this is necessary. It doesn't make much sense to me why it is necessary also to store the open source extensions and modules in a protected repository, but I guess Magento is a control freak.

This protection is really a problem for maintaining open source extensions with Composer in a public continous integration. Today I would like to show how to use Travis CI for open source extensions with the password protected repository repo.magento.com from Magento2.

Continue reading ...

Magento2 maintenance mode

I use a small Docker image for the development with Magento2. But unfortunately I got a 503 error after every start of the container.

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

The problem was really homemade. My setup script tries to install Magento on every start of the container. But that leads me to the point to take a small look at the maintenance mode of Magento2.

Continue reading ...

Installing ownCloud 8.1 on a Raspberry Pi

Finally I'm at the end. These are the tings I have done before I now can start installing ownCloud on my Raspberry Pi.

  1. Change default users on Raspberry Pi
  2. Mount ext4 USB flash drive to Raspberry Pi
The current version of ownCloud is 8.2.2 and this version would be better, cause it has full PHP7 support. But I will now install 8.1, cause there are some problems with 8.2.2 and the calendar app does not support PHP7 at the moment. But ownCloud 9 will come soon in 2016. The last time I have installed ownCloud is a while ago and so I will start with Manual Installation on Linux.

Continue reading ...

Exhibition "Wer-nie-sah, der kann doch fühlen"

The artist Lesti (not me) will give his first exhibition with the title Wer-nie-sah, der kann doch fühlen in Berlin Neukölln.

Anticlimacus - Lesti

Continue reading ...

Unix timestamp to date tool

One more common tool that is fun to write and that I use pretty offen. A tool that converts timestamp to date.

Continue reading ...

Mount ext4 USB flash drive to Raspberry Pi

This is just a shameless translation of the german post Raspberry Pi: USB-Stick und USB-Festplatte einbinden from Jan Karres. Jan is also mounting ntfs and fat drives, but I just need ext4 so we will skip his first step. I have also changed some small other things.

Continue reading ...

Change default users on Raspberry Pi

The default user on a fresh Raspbian is pi with the password raspberry. To feel a little bit more save I would like to delete the user pi and change the default root user password.

Continue reading ...

Network error - Download - Windows virtual machine

When downloading a virtual machine at https://dev.windows.com/en-us/microsoft-edge/tools/vms/ I'm always getting a Unknown network error from my browser, in this case chromium. But I had the same experience with iceweasel.

Continue reading ...

Linux user management commands

This post will contain a list of common unix commands for user management that I didn't use that often, but that are pretty common for others. And just to prevent me from searching again in the web I will collect them here for myself.

Continue reading ...

Newer Older