Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="author" content="" /> | |
<meta name="copyright" content="" /> | |
<meta name="robots" content="index, follow" /> |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
Lately, I have been looking into Python CMSs. There are many out there, but for some reason or another Mezzanine stuck out as one I should try. Installing it is easy enough, but getting it up on running on my new favorite host, Heroku, was a bit of a challege.
Below you will find the steps that I took to get Mezzanine up and running on Heroku. Please let me know in the comments below if anything didn't work for you.
Heroku is shortly depricating Django's standard DATABASES
dictionary in favor for a package which takes OS Environment Variables and builds the required dictionary for you. This is a good thing because it makes setting up a database on Heroku very easy. The package is called dj_database_url
and it makes short work of getting a PostgreSQL database up and running with Mezzanine. Below is the code that you want to put in Mezzanine's DATABASES
section:
import dj_database_url
DATABASES = {'default': dj_database_url.config(default='postgres://localhost')}
#!/usr/bin/python | |
""" | |
Playing around with slightly various ways to simulate uniq in Python. | |
The different strategies are timed. | |
Only m1() and m2() do not change the order of the data. | |
`in` is the input file, `out*` are output files. | |
""" | |
infile = 'in' # Change filename to suit your needs. |
-- a little flame in a functional style | |
function particle(step, style, t) | |
local newStyle = step(style, t) | |
return { | |
style = newStyle, | |
next = function() | |
return particle(step, newStyle, t + 1) | |
end | |
} |
This list now exists over at http://juliepagano.com/blog/2013/11/02/101-off-limits/ and will be updated there.
I keep saying that impromptu, unwanted feminism 101 discussions are exhausting and not a good use of my resources. Then people ask what I mean by 101, so I'm starting to make a list. This list will change over time - I recommend checking back.
I highly recommend checking this list before engaging with me about feminism if you're new to it. It'll save both of us a lot of time and frustration.
Nope. This argument is bad and the science does not support it. Unfortunately, every time you say this out loud, you are contributing to cultural problems that do decrease the number of women in tech.
<!DOCTYPE html> <!--Sets the document type to HTML--> | |
<html> <!--Now we begin describing the web page--> | |
<script> <!-- We are using inline javascript. That is Javascript inside HTML //--> | |
var note, html, timeout; <!-- Set the variables //--> | |
window.addEventListener('load', function() { | |
note = document.getElementById('note'); | |
html = document.getElementsByTagName('html')[0]; | |
html.addEventListener('keyup', function(ev) { | |
if (timeout) clearTimeout(timeout); | |
timeout = setTimeout(saveNote, 100); |
GitLab is open source software to collaborate on code (a GitHub clone to run on your own server). Clicking a blob (a file in a repository) in GitLab shows a nice rendering if GitLab supports the file type (e.g., images, Markdown documents), or its content as plain text otherwise. The patch described here adds support to GitLab for rendering IPython notebooks (.ipynb files).