Skip to content

Instantly share code, notes, and snippets.

SQL*Plus: Release 10.2.0.4.0 - Production on Fri Dec 9 09:33:10 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
MapServer is now configured for
-------------- Compiler Info -------------
C compiler: gcc -I/usr/local/include -fPIC -Wall
C++ compiler: g++ -g -fPIC -Wall
Debug: -g
Generic NINT:
-------------- Renderer Settings ---------
OpenGL support:
diff --git a/fabfile/install/templates/GRiD.conf b/fabfile/install/templates/GRiD.conf
index f292f1b..9c60eba 100644
--- a/fabfile/install/templates/GRiD.conf
+++ b/fabfile/install/templates/GRiD.conf
@@ -1,5 +1,8 @@
# Make sure that we have the right libraries available for mod_wsgi.
SetEnv ORACLE_HOME %(oracle_home)s
+PassEnv ORACLE_HOME
+SetEnv LD_LIBRARY_PATH %(oracle_home)s:%(prefix)s/lib
+PassEnv LD_LIBRARY_PATH
@gadomski
gadomski / gist:1731943
Created February 3, 2012 19:35
can't import osgeo
>>> import osgeo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/gadomski/Envs/grid/lib/python2.6/site-packages/GDAL-1.9.0-py2.6-macosx-10.7-intel.egg/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/Users/gadomski/Envs/grid/lib/python2.6/site-packages/GDAL-1.9.0-py2.6-macosx-10.7-intel.egg/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: dlopen(/Users/gadomski/Envs/grid/lib/python2.6/site-packages/GDAL-1.9.0-py2.6-macosx-10.7-intel.egg/osgeo/_gdal.so, 2): Symbol not found: _DGifCloseFile
Referenced from: /Users/gadomski/Envs/grid/lib/python2.6/site-packages/GDAL-1.9.0-py2.6-macosx-10.7-intel.egg/osgeo/_gdal.so
Expected in: flat namespace
@gadomski
gadomski / gist:1904566
Created February 24, 2012 23:30
directory of the currently executing file
import os
os.path.dirname(os.path.abspath(__file__))
@gadomski
gadomski / gist:2306085
Created April 4, 2012 22:16
sublime text project configuration
{
"folders":
[
{
"path": "/Volumes/GRiD at mini/GRiD",
"folder_exclude_patterns": ["vendor", "virtualenv"]
}
],
"build_systems":
[
@gadomski
gadomski / gist:2363099
Created April 11, 2012 22:12
tda whitelist
model_names = tuple(model._meta.verbose_name for model in get_models(get_app('tda')))
for tda_name in tda_list
if tda_name not in model_names:
raise ImproperlyConfigured("Invalid tda name: %s" % tda_name)
@gadomski
gadomski / GRiD.sublime-project
Created April 24, 2012 18:19
sublime-project
{
"build_systems":
[
{
"cmd":
[
"nosetests",
"$file"
],
"name": "nosetests"
@gadomski
gadomski / gist:2788958
Created May 25, 2012 16:04
backtrace of a pcpipeline run
(gdb) backtrace
#0 0x00007ffff236a2d7 in __memcpy_ssse3 () from /lib64/libc.so.6
#1 0x00007ffff7ab648c in pdal::filters::Predicate::processBuffer (this=0xb40170, srcData=..., dstData=..., python=...)
at /home/gridusr/local/src/PDAL/src/filters/Predicate.cpp:121
#2 0x00007ffff7ab6896 in pdal::filters::iterators::sequential::Predicate::readBufferImpl (this=0xd243a0, dstData=...)
at /home/gridusr/local/src/PDAL/src/filters/Predicate.cpp:211
#3 0x00007ffff7a10e31 in pdal::StageIterator::readBuffer (this=0xd243a0, buffer=...) at /home/gridusr/local/src/PDAL/src/StageIterator.cpp:163
#4 0x00007ffff7a1efdf in pdal::Writer::write (this=0xb3e780, targetNumPointsToWrite=0) at /home/gridusr/local/src/PDAL/src/Writer.cpp:204
#5 0x0000000000459bef in PcPipeline::execute (this=0x7fffffffe230) at /home/gridusr/local/src/PDAL/apps/pcpipeline.cpp:130
#6 0x000000000045fbac in Application::innerRun (this=0x7fffffffe230) at /home/gridusr/local/src/PDAL/apps/Application.cpp:227
@gadomski
gadomski / gist:2933731
Created June 15, 2012 00:01
export_windowexport describe
Name Null? Type
----------------------------------------- -------- ----------------------------
EXPORT_PTR_ID NOT NULL NUMBER(11)
RETURNCODE NUMBER(11)
COMPRESSED NOT NULL NUMBER(1)
PIPELINE_XML CLOB
METADATA_XML CLOB
HSRS_ID NOT NULL NUMBER(11)
VSRS NUMBER(11)
INTENSITY NOT NULL NUMBER(1)