Enterprise Architect 11/12 under Wine

To install EA under Linux with wine there are a few steps to take before it works and you are able to run EA plugins:

  • Install winetricks
  • Prepare a 32bit wine runtime with WINEARCH=win32 WINEPREFIX=~/.wine winecfg (just click ok in the dialog)
  • winetricks allfonts (this exited with an exit code on my machine, but this was no problem)
  • winetricks msxml3 mscml4 mdac28
  • winetricks dotnet40 corefonts (needed for plugins – not sure if corefonts is necessary)
  • After that you can install your .exe files with wine xyz.exe and .msi files with wine msiexec /i abc.msi

Infos taken from Sparx Systems and Wine.

Update gem behind proxy

I tried to update gem behind a proxy and got the following error message:

Though the http_proxy and https_proxy (also in upper case) was set it didn’t work.  Trying to set the proxy directly in the command did the trick:

Ubuntu 15.10 “error: symbol ‘grub_efi_find_last_device_path”

Updating to the latest grub version (at the moment 2.02~beta2-29ubuntu0.3) leads to “error: symbol ‘grub_efi_find_last_device_path’ not found” when I try to start Windows on my dual boot system having Ubuntu 15.10 next to Windows 10.

This can be fixed by downgrading to the version before the latest one in the ubuntu repository till this bug is fixed.

Here is how I downgraded my grub installation:

Without the hold line apt would install the latest version on the next upgrade. As soon as the bug is fixed you can remove the hold mark with

Configure Redis-Cache in Magento 2

To use redis for caching in magento2 I added the following part in app/etc/env.php:


Magento Update Script

To Update massive amounts of data in magento without going directly into the database I found an interesting piece of code under http://www.mydons.com/writing-custom-magento-shell-script/:

I adopted this file to simply print the sku of all products in the shop and count them:

These two examples show how to iterate over all products and how to get a specific product by sku. They have to be placed in ${magento_root}/shell

To speed up updates a bit magento provides the ability to update single fields instead of the whole product as in code snippet one:

Of course the fastest way is to write SQL queries. Therefor please read into the magento EAV model.

Disable Guest Session in Ubuntu 15.10

Ubuntu 15.10 is using lightdm desktop manager. man lightdm says that it is using /etc/lightdm/lightdm.conf for configuration. Ubuntu 15.10 does not include such a file. To disable the guest session create the file (/etc/lightdm/lightdm.conf) with following content:


Menu with icons in Fedora 22/23

To enable menu icons in gnome-shell this command does the trick:

Tested under Fedora 22 and 23.

docker as normal user under Fedora 23

See https://docs.docker.com/v1.6/installation/fedora/

“The docker command line tool contacts the docker daemon process via a socket file /var/run/docker.sock owned by root:root. Though it’s recommended to use sudo for docker commands, if users wish to avoid it, an administrator can create a docker group, have it own /var/run/docker.sock, and add users to this group.”

Don’t forget to relogin to make this change take effect.