2018 Entries

Emacs & Python: My Setup 2018
Posted by Hristos T. on 2018-11-27, under the category Emacs
Tag: python

Earlier this year I did an expansion to my entries on MPD, sort of a state of my setup piece, and I've decided to do the same thing for my Emacs and Python setups as well. If you write Python code and use Emacs, or are interested in either, read on!

Read more here ...
Emacs daemon as a runit service
Posted by Hristos T. on 2018-06-08, under the category Emacs
Tag: runit

So, you want to run an Emacs daemon as a runit service - and you also want to connect to it in your desktop session. Thanks to the new --fg-daemon option in Emacs 26.x you now can! I'm going to describe how to set up the service, as well as sudo rules for managing it without requiring a password each time. Read on for the exciting details!

Read more here ...
MPD: My Setup 2018
Posted by Hristos T. on 2018-04-20, under the category GNU/Linux
Tags: music, mpd

UPDATE 2018-04-27: Of course not even a week after I posted this, I've made yet another tweak -- see the Bonus section at the end of the entry for more details.

I figured it was time for a follow-up to my previous entries on MPD that describes the current state of my setup with all of its evolutions. Here we go!

Read more here ...
Selenium testing with a Django application - locally and in CI
Posted by Hristos T. on 2018-01-24, under the category GNU/Linux
Tags: testing, selenium, python, django, buildbot

Updated 2018-04-09 - check out the end of this entry to see how I solved chrome driver instability!

It's great to have unit tests in any piece of software, but for web applications they aren't enough to ensure funcitonality. To fully ensure things work, you need to actually open each page in a web browser and use it, which is of course something that's not even remotely doable by hand. Selenium allows you to automate the process of using your web application in a real browser, and it has a fantastic Python library that's easy to integrate into a Django project. With a good suite of Selenium tests, you could have full confidence that your application fully works without manually using any part of it yourself. Join me as I discuss adding Selenium tests to a Django project that are ran both locally and in a CI environment on a headless server.

Read more here ...