Skip to content

Instantly share code, notes, and snippets.

C++ version:
pixel at 0 0 is r = 255 g = 0 b = 0
pixel at 1 0 is r = 0 g = 255 b = 0
pixel at 0 1 is r = 0 g = 0 b = 255
pixel at 1 1 is r = 0 g = 0 b = 128
Python version:
pixel at 0,0 is r = 0, g = 0, b = 0
(venv) dirac:dist insight$ main.app/Contents/MacOS/main
Exception: [Errno 2] No such file or directory: '/support/signature/loader.py'
Traceback (most recent call last):
File "pyscript", line 23, in bootstrap
FileNotFoundError: [Errno 2] No such file or directory: '/support/signature/loader.py'
AttributeError: module 'signature_loader' has no attribute 'pyside_type_init'
SystemError: could not initialize part 2
The above exception was the direct cause of the following exception:
@estan
estan / enabled.txt
Last active January 11, 2019 23:20
ENABLED MODULES
Accelerators/ Interaction/ [X] ParallelLIC
[ ] Vtkm [ ] Image [X] Parallel
Charts/ [X] Style [X] PythonContext2D
[X] Core [X] Widgets [ ] Qt
Common/ IO/ [X] SceneGraph
[X] Color [X] ADIOS [X] Tk
[ ] ComputationalGeometry [X] AMR [X] VolumeAMR
[X] Core [X] Asynchronous [X] VolumeOpenGL2
@estan
estan / lambda.diff
Created December 1, 2018 17:27
QtConcurrent mapped lambda
diff --git a/src/concurrent/qtconcurrent_global.h b/src/concurrent/qtconcurrent_global.h
index b02abd63ea..f5c77f00ba 100644
--- a/src/concurrent/qtconcurrent_global.h
+++ b/src/concurrent/qtconcurrent_global.h
@@ -54,6 +54,110 @@ QT_BEGIN_NAMESPACE
# define Q_CONCURRENT_EXPORT
#endif
+template <typename F>
+struct return_type_impl;
@estan
estan / Info.plist
Created November 21, 2018 12:30
Snippet from our Info.plist
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>insight</string>
</array>
<key>CFBundleTypeName</key>
<string>Orexplore Insight Hole File</string>
@estan
estan / wrong_compiler.txt
Created August 19, 2018 09:56
CMake picking wrong (host x86) compiler instead of 64-bit native
C:\Users\Elvis\Dev\tst\build>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26726 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
C:\Users\Elvis\Dev\tst\build>type ..\CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(tst)
TEST test_l5_dataset_open_succeeds_correctly()
{
l5_file *file = l5_open(TEST_DATA_DIR "/basic-3x3-32bit-int.hdf5");
ASSERT_FALSE(NULL == l5_dataset_open("/foo", file));
l5_close(file);
SKIPm("TODO");
}
@estan
estan / lddtree.out.txt
Created May 26, 2018 15:57
lddtree output on main executable
orexplore-insight => src/orexplore-insight (interpreter => /lib64/ld-linux-x86-64.so.2)
libinsightview.so => /home/buildbot/insight/build/src/view/libinsightview.so
libQt5Concurrent.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Concurrent.so.5
libvtkChartsCore-8.1.so.8.1 => /opt/VTK8/lib/libvtkChartsCore-8.1.so.8.1
libvtkInfovisCore-8.1.so.8.1 => not found
libvtkCommonColor-8.1.so.8.1 => not found
libvtkFiltersGeneral-8.1.so.8.1 => not found
libvtksys-8.1.so.8.1 => not found
libvtkRenderingContextOpenGL2-8.1.so.8.1 => /opt/VTK8/lib/libvtkRenderingContextOpenGL2-8.1.so.8.1
libvtkglew-8.1.so.8.1 => not found
@estan
estan / out.txt
Created May 26, 2018 15:49
lib runpath
buildbot@2bacfe02d16b:~/insight/build$ readelf -d src/view/libinsightview.so | grep RUNPATH
0x000000000000001d (RUNPATH) Library runpath: [/opt/VTK8/lib:/home/buildbot/insight/build/src/model:/usr/lib/x86_64-linux-gnu/hdf5/serial:]
buildbot@2bacfe02d16b:~/insight/build$ ldd src/view/libinsightview.so | grep "not found" | head -n 1
libvtkInfovisCore-8.1.so.8.1 => not found
buildbot@2bacfe02d16b:~/insight/build$ ls -l /opt/VTK8/lib/libvtkInfovisCore-8.1.so.8.1
lrwxrwxrwx 1 root root 30 May 26 08:20 /opt/VTK8/lib/libvtkInfovisCore-8.1.so.8.1 -> libvtkInfovisCore-8.1.so.8.1.1
buildbot@2bacfe02d16b:~/insight/build$ export | grep LD_LIBRARY_PATH
buildbot@2bacfe02d16b:~/insight/build$
@estan
estan / strangeness_with_runpath.txt
Created May 26, 2018 15:40
Strangness with RUNPATH
buildbot@2bacfe02d16b:~/insight/build$ ldd src/orexplore-insight | grep "not found" | head -n 1
libvtkFiltersExtraction-8.1.so.8.1 => not found
buildbot@2bacfe02d16b:~/insight/build$ readelf -d src/orexplore-insight | grep RUNPATH
0x000000000000001d (RUNPATH) Library runpath: [/opt/VTK8/lib:/home/buildbot/insight/build/src/view:/home/buildbot/insight/build/src/model:/usr/lib/x86_64-linux-gnu/hdf5/serial:]
buildbot@2bacfe02d16b:~/insight/build$ ls -l /opt/VTK8/lib/libvtkFiltersExtraction-8.1.so.8.1
lrwxrwxrwx 1 root root 36 May 26 08:20 /opt/VTK8/lib/libvtkFiltersExtraction-8.1.so.8.1 -> libvtkFiltersExtraction-8.1.so.8.1.1
buildbot@2bacfe02d16b:~/insight/build$ export | grep LD_LIBRARY_PATH
buildbot@2bacfe02d16b:~/insight/build$ uname -a
Linux 2bacfe02d16b 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
buildbot@2bacfe02d16b:~/insight/build$ cmake --version