I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| -- On Heroku: | |
| -- $ heroku pg:psql | |
| -- An explaination of the columns on the pg_stat_activity table: | |
| -- http://www.postgresql.org/docs/9.2/static/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW | |
| select | |
| pid, application_name, query, waiting, state, state_change | |
| from pg_stat_activity | |
| where usename = current_user | |
| order by state_change desc; |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
W3C Introduction to Web Components - explainer/overview of the technologies
One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.
Most workflows make the following compromises:
Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.
Use production SSL certificates locally. This is annoying
| # Sharing Django Users and Sessions Across Projects | |
| By Dustin Farris on 22 Feb 2012 | |
| This document describes how to share users created using Django's auth system with other | |
| Django projects. It is not a hack; it simply makes use of the database router and | |
| middleware system that Django comes with out of the box. | |
| ## Introduction |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| const int buttonPin = 2; // microswitch analog pin # | |
| const int ledPin = 11; // LED digital pin # | |
| const int pwPin = 10; // pulse width mod pin for sonic rangefinder | |
| int buttonState = 0; // is switch HIGH or LOW? | |
| int sonicRangeFinderDistance = 50; // see end of loop() | |
| // quantity of values to find the median (sample size). Needs to be an odd number | |
| int arraysize = 9; |
| var request = require('request') | |
| var fs = require('fs') | |
| var path = require('path') | |
| var oauth = { | |
| consumer_key: "consumer_key", | |
| consumer_secret: "consumer_secret", | |
| token: "token", | |
| token_secret: "token_secret" | |
| } |