PyCharm Testrunner configuration

PyCharm: Run All Unit Tests in a Folder/Package

My unit tests can be started individually from the context menu. I can also run all of them using something like nosetests ./*tests.py from within that specific folder containing the tests. I played around a while with PyCharm to find a run configuration that actually allows me to runn all […]

Setup bitbucket with PhpStorm or pyCharm

Get lastest connector from JetBrains and install as PhpStorm or PyCharm plugin. Then create and set up your git in the main directory of the project: It is a good idea to put down the things that should not be pushed to GIT, which is stored in a file called […]

Eloquent: Return Default Relation

Zum Beispiel: jeder User hat Rollen zugeordnet (unter Verwendung von Confide): For example: each User has a Role (using Confide): public function roles() { return $this->belongsToMany('Role', 'assigned_roles', 'user_id', 'role_id'); } Wenn keine Rolle definiert ist, wie kann man trotzdem eine Default-Rolle zurück geben? If no role is defined, how could […]

PHPstorm: Einrichten eines neuen Projekts mit ide-helper

Zunächst ein neues Projekt auf der Basis von composer erzeugen. Das Weitere nach barryvdh: Require this package with composer using the following command: composer require barryvdh/laravel-ide-helper After updating composer, add the ServiceProvider to the providers array in app/config/app.php ‘Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider’, You can now re-generate the docs yourself (for future updates) in […]

VirtualBox Ubuntu Guest: mount shares beim Booten

Ein einfacher Eintrag in die /etc/fstab sollte den Share <sharename> auf <zielverzeichnis> mounten: sharename /zielverzeichnis vboxsf rw,uid=1000,gid=1000 Allerdings stellt sich dann beim Booten heraus, dass das Kernel-Modul vboxsf just zum Zeitpunkt, wo die Laufwerke aus der /etc/fstab eingehängt werden sollen, noch nicht zur Verfügung steht. Lösung: in die Datei /etc/modules […]

DevExpress Move Focus on TAB Key Skipping Next Control

I have a UserControl containing a TextEdit and a CheckEdit; a row of these UCs are presented next to each other. TAB flow ist TextEdit to CheckEdit and then on to the next UC – but it wouldn’t make any difference if it was the other way round. Desired behaviour […]

DevExpress TextEdit LostFocus event fires twice

Well, if you look at it closely, it’s not really the TextEdit itself that fires twice, but it delegates the editing to a Windows system TextBox, so it fires when that happens – and later again, when it really loses focus (see explanation and a workaround here). I always use an _autoChange […]