Skip to content

Instantly share code, notes, and snippets.

$ python setup.py build
running build
running build_py
copying overviewer_core/overviewer_version.py -> build/lib.linux-x86_64-2.6/overviewer_core
running build_ext
building 'overviewer_core.c_overviewer' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I. -I/usr/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 -c overviewer_core/src/main.c -o build/temp.linux-x86_64-2.6/overviewer_core/src/main.o -Wno-unused-variable -Wno-unused-function -Wdeclaration-after-statement -Werror=declaration-after-statement
In file included from overviewer_core/src/main.c:18:
overviewer_core/src/overviewer.h:33:21: error: Imaging.h: No such file or directory
In file included from overviewer_core/src/main
@paimoe
paimoe / gist:1236851
Created September 23, 2011 06:24
Canonical Blogger redirects, should imitate a 301 redirect from blogger
<head>
<title><$BlogPageTitle$></title>
<Blogger><ItemPage><link rel="canonical" href="http://www.example.com/index/reverse_g/?s=<$BlogItemPermalinkURL$>" /></ItemPage></Blogger>
<MainPage><link rel="canonical" href="http://www.example.com/" /></MainPage>
<Blogger><ArchivePage><link rel="canonical" href="http://www.example.com/index/reverse_g/?s=/<$BlogItemArchiveFilename$>" /></ArchivePage></Blogger>
<script type="text/javascript">
rd_path = window.location.pathname + window.location.search
print("Hello World")