Steps with explanations to set up a server using:
- virtualenv
- Django
- nginx
- uwsgi
.input-recaptcha { | |
width:172px; | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Bootstrap, from Twitter</title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | |
<!--[if lt IE 9]> |
<?php | |
/** | |
* | |
* Author: Mauro Marano | |
* eMail: http://www.mauromarano.it/contact.php | |
* Date: 13/11/2012 | |
* | |
* Prima di iniziare | |
* ================= |
virtualenv --no-site-packages . | |
source bin/activate | |
bin/pip install Django psycopg2 django-sentry | |
bin/pip freeze > requirements.txt | |
bin/django-admin.py startproject mysite | |
cat >.gitignore <<EOF | |
bin/ | |
include/ | |
lib/ | |
EOF |
<!-- You are probably already familiar with the possibility of hosting static websites on Amazon S3. | |
If not you should read this great tutorial by Chad Thompson: http://chadthompson.me/2013/05/06/static-web-hosting-with-amazon-s3/. | |
One common problem is that while being static your website still needs a contact form. | |
Here's a solution for this problem using Newman API (http://www.newmanapi.com). --> | |
<html> | |
<body> | |
<!-- First we set the 'action' attribute of <form> to point to Newman API --> | |
<form method="post" action="http://submit.newmanapi.com/" > | |
<!-- Now we create our input elements as we would in any other form --> |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
function foo(n::Integer) | |
x::Int = 0 | |
t1::Float64 = @elapsed for i in 1:n | |
x = x + 1 | |
end | |
@printf "Int: %f\n" t1 | |
y::BigInt = BigInt(0) | |
t2::Float64 = @elapsed for i in 1:n | |
y = y + BigInt(1) |
from fabric.api import env, local, require | |
def deploy(): | |
"""fab [environment] deploy""" | |
require('environment') | |
maintenance_on() | |
push() | |
syncdb() | |
migrate() |