Skip to content

Instantly share code, notes, and snippets.

View fish2000's full-sized avatar
👉
My Python work is on the Mars helicopter, and ubiquitous on earth, and more!!!!

Alexander Böhn fish2000

👉
My Python work is on the Mars helicopter, and ubiquitous on earth, and more!!!!
  • Objects in Space and Time, LLC
  • Baltimore, MD
  • 04:48 (UTC -04:00)
  • X @fish2000
View GitHub Profile
@fish2000
fish2000 / halide-resize-local-edits.mk
Created April 15, 2015 23:44
Halide resize app Makefile, after having been made to work though heavy-handed and non-portable edits
include ../support/Makefile.inc
CXXFLAGS += -g -Wall
.PHONY: clean
# $(MAKE) -C ../../ $(LIB_HALIDE)
resize: resize.cpp
$(CXX) -std=c++11 -stdlib=libc++ -I/usr/local/opt/halide/include -I../support -g -Wall resize.cpp -o resize -lpthread -ldl -lz -lHalide -L/usr/local/opt/halide/lib $(PNGFLAGS) $(LDFLAGS)
@fish2000
fish2000 / halide-resize-app-makefile-build.log
Created April 15, 2015 23:25
Working with the Halide resize app’s Makefile
asio-otus:~$ cd ~/Dropbox/Halide/
asio-otus:Halide[master •]$ cd apps/
asio-otus:apps[master •]$ cd resize/
asio-otus:resize[master •]$ make
/bin/sh: llvm-config: command not found
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../../ bin/libHalide.a
bash: llvm-config: command not found
bash: llvm-config: command not found
bash: llvm-config: command not found
bash: llvm-config: command not found
@fish2000
fish2000 / two-libraries-one-linkjob.log
Created April 13, 2015 02:27
I never heard of linking to both the libc++ and libstdc++ libraries but hey who am I to make assessments
cf.dylib libcf.a src/ test_cf test_cf.cc test_cf.o test_cf.run
asio-otus:textmate[master •]$ yoyo build/Frameworks/cf/cf.dylib
+ `file -z` results for build/Frameworks/cf/cf.dylib
build/Frameworks/cf/cf.dylib: Mach-O 64-bit dynamically linked shared library x86_64
+ `otool -L` results for build/Frameworks/cf/cf.dylib
build/Frameworks/cf/cf.dylib:
@rpath/cf.dylib (compatibility version 1.0.0, current version 1.0.1)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 48.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1153.18.0)
@fish2000
fish2000 / blaaaagh.log
Last active August 29, 2015 14:19
Verbose output from SWIG trying to generate Python bindings for Halide
asio-otus:python_bindings[master •]$ rm -rf build/
asio-otus:python_bindings[master •]$ python setup.py build_ext --verbose --inplace
running build_ext
building 'halide/_cHalide' extension
creating build
creating build/temp.macosx-10.10-x86_64-2.7
creating build/temp.macosx-10.10-x86_64-2.7/halide
/usr/local/opt/llvm/bin/clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/fish/Dropbox/Halide/build/include -Ihalide/ -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c halide/cHalide_wrap.cxx -o build/temp.macosx-10.10-x86_64-2.7/halide/cHalide_wrap.o -ffast-math -O3 -msse -std=c++11 -stdlib=libc+
@fish2000
fish2000 / halide-generator-test-cmake-build-error.log
Created April 2, 2015 17:26
Halide generator test cmake build error
[ 97%] Built target performance_vectorize
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f test/CMakeFiles/exec_generator_acquire_release_acquire_release.dir/build.make test/CMakeFiles/exec_generator_acquire_release_acquire_release.dir/depend
cd /tmp/halide20150402-23388-1iio4iu/Halide-release_2015_02_25/build && /usr/local/Cellar/cmake/3.2.1/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/halide20150402-23388-1iio4iu/Halide-release_2015_02_25 /tmp/halide20150402-23388-1iio4iu/Halide-release_2015_02_25/test /tmp/halide20150402-23388-1iio4iu/Halide-release_2015_02_25/build /tmp/halide20150402-23388-1iio4iu/Halide-release_2015_02_25/build/test /tmp/halide20150402-23388-1iio4iu/Halide-release_2015_02_25/build/test/CMakeFiles/exec_generator_acquire_release_acquire_release.dir/DependInfo.cmake --color=
Linking CXX executable ../bin/warning_double_vectorize
Scanning dependencies of target exec_generator_acquire_release_acquire_release
cd /tmp/halide20150402-23388-1iio4iu/Halide-release_2015_02_25/build/t
@fish2000
fish2000 / Ibid.maxpat
Last active August 29, 2015 14:16
Really Old Kramer Serial Patches
max v2;
#N vpatcher 650 405 1366 898;
#P origin 0 -5;
#P button 198 45 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 313 50 40 196617 t l b b;
#P inlet 313 30 15 0;
#P newex 122 108 78 196617 prepend append;
#P outlet 122 370 15 0;
#P newex 218 149 55 196617 delay 100;
@fish2000
fish2000 / kramer.py
Created March 2, 2015 22:02
Putative Kramer A/V Switch Control In Python
# pAVGrid
#
# Python Audio/Video grid controller
#
# (c) 2003 Jerome Alet - <alet@unice.fr>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
@fish2000
fish2000 / 01.cmake
Last active August 29, 2015 14:14
Output from running `brew tap fish2000/praxa && brew -v install --HEAD vpp` – see also: https://github.com/fish2000/homebrew-praxa/blob/master/vpp.rb, https://github.com/matt-42/vpp
2015-01-31 10:09:24 -0500
cmake
..
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/vpp/HEAD
-DCMAKE_BUILD_TYPE=None
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
@fish2000
fish2000 / embedded-internal.py
Created July 15, 2014 14:50
Embedded PyObjC app bundle internal sys.path leapfrog
# rather than hijacking PYTHONPATH in the .m loader, add the module directory now
sys.path.insert(0,
'%s/Contents/Resources/python' % abspath(
Foundation.NSBundle.mainBundle().bundlePath()))
@fish2000
fish2000 / erm-yes-absolutely.m
Created July 15, 2014 14:44
OUTPUTREP CGIMAGE MOTHERFUCKER!!!!!!!!!!!
NSBitmapImageRep *outputRep = [[[NSBitmapImageRep alloc]
initWithBitmapDataPlanes:NULL
pixelsWide:w
pixelsHigh:h
bitsPerSample:8
samplesPerPixel:1
hasAlpha:NO
isPlanar:NO
colorSpaceName:NSCalibratedWhiteColorSpace