Category: Code Recipes

Page:  
May
5

ce – Certificate Examiner

This is a quick command-line utility for displaying information contained in an SSL certificates. It is faster and easier to remember than the OpenSSL commands. . .

Apr
14

A Command-line Utility & Library to Fetch Revoked Serial Numbers from a Certificate Revocation List (CRL)

This functionality is not available in openssl’s comand line utility, so I cooked this up to do the job. The library function returns a Python. . .

Sep
18

Calculating BMI in Python

If you ever need to calculate Body Mass Index (BMI) in Python, here’s how… -acv

Aug
25

Get the Latest Object or a 404 in Django : get_latest_object_or_404

The get_object_or_404 is a handy Django shortcut. It keeps my views shorter. In my case however, I had the need to get the latest object.. . .

Jul
28

Fun with Framingham

Hot off the presses is an open source implementation of the Framingham 10 Year Heart Attack Risk Calculator. This software package consists of a command-line. . .

Jun
10

Useful Tip for Port Forwarding Apache (or other Web Server)

Problem You are working on a remote web server where you do not have have access to view the web server’s content on port 80.. . .

May
8

How to get SASS going on Ubuntu 10.04

I found that “Ruby 1.8″, packaged with Ubuntu 10.04, does not seem to run SASS out of the box. This is my recipe, cobbled together. . .

May
3

How to Delete a Remote Branch on Github

Sometimes git is hard. An example is deleting a remote branch. Its hard to understand and remember so that’s why this blogpost. It literary means. . .

Apr
30

Exploring DocNPI.com’s API

DocNPI is a website and webervice for searching information in the National Provider Index (NPI) Registry. The NPI Registry is maintained by HHS and is. . .

Jul
20

Django Production Deployment: How to Make Apache2 mod_wsgi and virtualenv for Python Play Nice

Problem: You are a good little Python developer and you use virtualenv in your Python development.  If you aren’t using virtualenv you’re doing it wrong.. . .

Page: