Setup New Python Project with pyscaffold

This guide shows you how to setup a new Python project. This package can then be uploaded to PyPI to make it available to everyone.

The examples used in this guide were run and tested on Ubuntu 14.04 with Python 3.4.0. If you're using a different platform you may have to tweak the instructions accordingly.

This guide was possible thanks to How to Setup a new Python Project.

Read more …

pkgsrc on Linux - Quickstart Guide [DEPRECATED]

WARNING This is an old and unmaintained post. It has been superseded by Essential pkgsrc - The Missing Mini Handbook. I highly encourage you to read the updated post. This post has not been removed so links from other sites don't break.

Do you want to try out pkgsrc on Linux? Here’s a quickstart guide (tested on Ubuntu 14.04). Of course, always refer to the pkgsrc guide for accurate information.

Read more …

Code Ghar Blog's New Home

You may be more familiar with Code Ghar blog over at WordPress. I will continue that blog at this location now. The old blog will remain available to minimize deadlinks from other parts of the www.

Edit (2015-02-24): I have started migrating most of the posts from WordPress. It's a slow process because html2rest created reST files that were about 95% working. Fixing them manually is taking time.

Install Nikola in virtualenv

Nikola is a static website/blog generator written in Python. You can install it in a virtualenv. Although it supports Python 2 and Python 3 I had trouble using Nikola version 7.1 with Python 3.4. Python 2.7 (tested on Ubuntu 14.04) and Python 3.3 (tested on Mac OS X Mavericks) worked fine.

Read more …

gevent Quickstart Guide

This is a simple list of steps on how to get started with installing gevent on openSUSE (tested on openSUSE 13.1 with gevent 1.0.1). We'll use virtualenv instead of a system-wide install.

Read more …

SSH Cookbook: Temporarily Disable Security Message on Connection to a Remote Server

First off, DO NOT do this all the time. ONLY do this when you have evaluated the risks and decided to risk a security breach anyways. I usually do this in my testing environment where I get to work with a lot of new or changing VMs.

When you connect for the first time to a server you are prompted to verify its fingerprint. It is then added to your ~/.ssh/known_hosts file so when you connect the next time and the fingerprint matches you are not prompted again. For example:

The authenticity of host '192.168.1.22 (192.168.1.22)' can't be established.

RSA key fingerprint is 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00.

Are you sure you want to continue connecting (yes/no)?

Read more …