This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from django.contrib.flatpages.models import FlatPage | |
from cms.search.models import SearchKeyword | |
#class SearchKeywordAdmin(admin.ModelAdmin): | |
# """Provide the admin functions for the SearchKeyword model.""" | |
# pass | |
class SearchKeywordInline(admin.StackedInline): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-type: text/xml"); | |
include('XmlWriter.class.php'); | |
$data = file("/home/akraut/cablemodem/siglog.csv"); | |
$max = array(); | |
$min = array(); | |
$ldata = array(); | |
$dotx = $dorx = False; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
External Packages/Sources | |
Tagging http://code.google.com/p/django-tagging/ | |
Markdown https://sf.net/projects/python-markdown/ | |
pydelicious http://code.google.com/p/pydelicious/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from xorencdec import xorencdec | |
>>> xorencdec('creature_creature_creature',']VTYJQC]aGC]_PDJ[{RJ[EEMLA') | |
'>$18>$18>$18>$18>$18>$18>$' | |
>>> xorencdec('Smith','>$18') | |
'mIXLV' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt]{article} | |
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. | |
\geometry{letterpaper} % ... or a4paper or a5paper or ... | |
%\geometry{landscape} % Activate for for rotated page geometry | |
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent | |
\usepackage{graphicx} | |
\usepackage{amssymb} | |
\usepackage{epstopdf} | |
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png} | |
%\nopagenumbers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set an environment variable called ALTERNATE_EDITOR to point to this script. Then get in the habit of using emacsclient always. This will fire up emacs and wait for the server to start then fire up the file passed in via emacs client. | |
Right now it only works if your emacs will come up on your window manager, because that's primarily how I use it. | |
-Opie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SICP | |
==== | |
Book | |
---- | |
http://mitpress.mit.edu/sicp/ | |
Tutorial | |
-------- | |
http://icampustutor.csail.mit.edu/6.001-public/tutor.cgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
calllater.py | |
Created by Andrew Kraut on 2010-01-25. | |
""" | |
import sys | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2009 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-0.6.8.ebuild,v 1.4 2009/11/08 16:54:19 arfrever Exp $ | |
EAPI="2" | |
SUPPORT_PYTHON_ABIS="1" | |
inherit distutils eutils | |
MY_PN="distribute" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed Mar 10 07:40:01 2010] [notice] Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l Phusion_Passenger/2.2.9 PHP/5.2.11-pl0-gentoo configured -- resuming normal operations | |
[ pid=11617 file=ext/apache2/Hooks.cpp:727 time=2010-03-10 07:40:06.344 ]: | |
Unexpected error in mod_passenger: The ApplicationPool server unexpectedly closed the connection while we're reading a response for the 'get' command. | |
Backtrace: | |
(backtrace support disabled during compile time) | |
[Wed Mar 10 07:40:07 2010] [notice] child pid 11609 exit signal Segmentation fault (11) | |
[ pid=11618 file=ext/apache2/Hooks.cpp:727 time=2010-03-10 07:40:09.93 ]: | |
Unexpected error in mod_passenger: Could not connect to the ApplicationPool server: Broken pipe (32) | |
Backtrace: |
OlderNewer