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 ./* 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 Read more

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 Read more

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 Read more

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 Read more

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 Read more

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 Read more