Wednesday, August 30, 2017

Kicking off processes from a web interface

In a previous job I had, we did a lot of work with Django as a front end for the control of our analytical system.  In the process, someone used cron to track the system frequently in order to be able to pick up toggles input through the UI.  I wasn't the biggest fan of this approach, but that's a story for another day, because the reality is that I couldn't think of a better approach.  Enter my recent discovery of Celery.  I have been wanting to try this out, because it might be exactly what I'm looking for when it comes to this, and I want to save this tutorial on just a proof of concept:


So, I'll have to have a follow-up blog with my experience with using it.

P.S. He also has a thorough Flask tutorial as well:



Wednesday, August 9, 2017

Keyword Arguments in Calculating Distance Matrix

One of the challenges I had when writing up my RREML package in R was how to handle the coordinates as a keyword argument to my rreml function.  Well, I've pretty much abandoned my R package at this point in time, and would eventually like to implement the approach in Python.  I just stumbled across this very brief Reddit discussion:


And I found the scipy documentation referred to in the response to be a great reference for how to setup my new keyword argument.

Convolution History

Back in my grad school days, one of the more useful techniques in deriving distributions was using the Convolution Operation.  I found this article extremely interesting and want to save it for future reference.

Friday, September 9, 2016

Setting anaconda as pyvenv for elpy

Per this discussion:

https://github.com/jorgenschaefer/elpy/issues/285

In order to set the elpy environment, you type:

M-x pyven-activate <path to environment (note not the bin)>

Thursday, June 2, 2016

Guest Account on Windows 10

My girlfriend's daughter absolutely loves my Surface Pro 3 (well, almost as much as me), but she recently bjorked up my whole setup.  That's on me, because I should never let someone, especially a child, have the ability to mess around with my work machine.  I just couldn't seem to find a way to create an account for her without setting up an email address.  It took me a while to find it, but I finally found the best way to create a "Guest" account Windows 10:

Create a local user account in Windows 10