Intel NUC as a backend for development

A comprehensive story on how I started using Intel NUC as a backend for local or remote development, while my code editor (on any machine) is used as a thin client. Table of contents Rationale Hardware Software Initial Setup Disk Network Static IP DHCP Wi-Fi Wake-on-LAN Avahi CPU Frequency Scaling Usage Overview Daily Routine Conclusion Pros Cons Rationale There were 2 problems, using a dedicated machine for development, I thought I might solve. ...

March 9, 2021

Django local development with nginx on OSX

Installing nginx using brew is quite easy: $ brew install nginx Post install instruction explains how to run nginx on starup by adding it’s launchd config to ~/Library/LaunchAgents/ and it will run nginx on port 8080. If you need to run nginx on port 80 you have to run it as root: $ sudo nginx But I want to have nginx running on port 80 when system starts. To accomplish that, I copy nginx launchd config to /Library/LaunchDaemons/ (so it runs even before any user is logged in): $ sudo cp /usr/local/Cellar/nginx/1.0.6/org.nginx.nginx.plist /Library/LaunchDaemons/ # nginx version number may vary ...

September 9, 2011

Django development environment on OSX

This post is mostly about how I install development environment for Python and Django on OS X and my experience. If you want just a quick installation guide, follow this link, there is a really great tutorial about OSX Developer System installation. ...

September 6, 2011

Setting up django settings environment within a python script

Found at softwaremaniacs.org import settings from django.core.management import setup_environ setup_environ(settings) NOTE: Deprecated in Django 1.4 (“Release notes”)

March 14, 2011

Redmine: sending email using google apps

I was facing the next error with a config variant created using Redmine documentation: 530 5.7.0 Must issue a STARTTLS command first ...

March 13, 2011

Some useful git tips

Here will be useful git tips and just repeating commands I often use but can’t remember. ...

March 9, 2011

Creating a public rsa key when you already have a private one

To create a public rsa key using a private one, simply type: $ ssh-keygen -y -f /path/to/private_rsa > /path/to/public_rsa Note that it is not adding user@hostname, so if you need it, add this in the end of public_rsa file with a leading space symbol

December 9, 2010

Ubuntu Python virtual environments pitfalls

I always face several pitfalls, while creating isolated python environment on my laptop, where i’m running Ubuntu. So decided to make a memory note how to fight them, probably it can be helpful to anyone else. ...

December 4, 2010

Ubuntu PIL JPEG support

Got an IOError exception, while trying to process image using PIL, with a next error message: encoder jpeg not available PIL is installed within python virtual environment. Figured out, I have no development files for libjpeg installed, so PIL compiles without JPEG support. ...

October 13, 2010

Python virtual environment on Ubuntu

I had some mess around the process of installing those tools on my laptop running Ubuntu, so my decision was to write and explain everything step by step just in a case for the memo and probably a useful post for anyone as well. Who are those lads? virtualenv virtualenvwrapper pip If you are not an Ubuntu user, you should better read this Presentation: pip and virtualenv. ...

October 8, 2010