Skip to content

Instantly share code, notes, and snippets.

View drussel's full-sized avatar

Daniel Russel drussel

  • Velo3D
  • Palo Alto, CA
View GitHub Profile
from conans import ConanFile, CMake, tools, RunEnvironment
from pathlib import Path
import MyPackage
class V3D(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
generators = ('visual_studio')
keep_imports = True
short_paths = True
from conans import ConanFile, CMake, tools, RunEnvironment
from pathlib import Path
dependencies = ('zlib/1.2.11@conan/stable',)
class MyPackage(ConanFile):
name = 'MyPackage'
_commit = 'xxxx'
_revision = '2'
@drussel
drussel / gist:8592347
Created January 24, 2014 05:06
VMD crash log
Info) VMD for MACOSXX86, version 1.9.1 (February 1, 2012)
Info) http://www.ks.uiuc.edu/Research/vmd/
Info) Email questions and bug reports to vmd@ks.uiuc.edu
Info) Please include this reference in published work using VMD:
Info) Humphrey, W., Dalke, A. and Schulten, K., `VMD - Visual
Info) Molecular Dynamics', J. Molec. Graphics 1996, 14.1, 33-38.
Info) -------------------------------------------------------------
Info) Multithreading available, 4 CPUs detected.
Warning) Detected a mismatch between CUDA runtime and GPU driver
Warning) Check to make sure that GPU drivers are up to date.
@drussel
drussel / gist:8592239
Created January 24, 2014 04:50
VMD crash with adding frames to molecule
Process: vmd_MACOSXX86 [70764]
Path: /Applications/VMD 1.9.1.app/Contents/MacOS/../Resources/VMD.app/Contents/MacOS/VMD
Identifier: vmd_MACOSXX86
Version: 0.0.1d1
Code Type: X86 (Native)
Parent Process: sh [70762]
Responsible: Terminal [166]
User ID: 501
Date/Time: 2014-01-23 18:16:28.993 -0800
@drussel
drussel / pthread include
Created October 25, 2013 20:09
Patch to add #include
diff --git a/Library/Formula/google-perftools.rb b/Library/Formula/google-perfto
index 6fb1434..928de56 100644
--- a/Library/Formula/google-perftools.rb
+++ b/Library/Formula/google-perftools.rb
@@ -11,6 +11,10 @@ class GooglePerftools < Formula
cause "Segfault during linking"
end
+ def patches
+ DATA
@drussel
drussel / subset filter patch
Created May 7, 2013 03:22
subset filter patch
diff --git a/modules/domino/src/subset_filters.cpp b/modules/domino/src/subset_filters.cpp
index d67b397..220acb9 100644
--- a/modules/domino/src/subset_filters.cpp
+++ b/modules/domino/src/subset_filters.cpp
@@ -81,21 +81,27 @@ MinimumRestraintScoreSubsetFilterTable
std::sort(rs_.begin(), rs_.end());
}
+namespace {
+ RestraintsTemp get_needed(RestraintCache rc, const Subset &s,
@drussel
drussel / RMF.cmake
Created April 14, 2013 04:32
RMF.cmake to download and build RMF
if(IMP_STATIC)
message(STATUS "RMF does not currently support static builds - skipping")
file(WRITE "${PROJECT_BINARY_DIR}/data/build_info/RMF" "ok=False")
else()
message(STATUS "Building internal RMF")
include(ExternalProject)
set(rmf_binary_dir ${PROJECT_BINARY_DIR}/dependency/RMF.build)
@drussel
drussel / rmf_win32_warn.t
Created March 11, 2013 22:17
Windows RMF build warnings
SRCDIR=`pwd` && cd /cygdrive/c/chimera-build/build/src && unzip -o $SRCDIR/rmf-src.zip
Archive: /e/chimera/trunk/foreign/rmf/rmf-src.zip
2146226d38672d838b3d81e4164fa835ed1548b8
creating: salilab-rmf-2146226/
inflating: salilab-rmf-2146226/.gitignore
creating: salilab-rmf-2146226/AvroCpp/
extracting: salilab-rmf-2146226/AvroCpp/AUTHORS
inflating: salilab-rmf-2146226/AvroCpp/CMakeLists.txt
inflating: salilab-rmf-2146226/AvroCpp/COPYING
extracting: salilab-rmf-2146226/AvroCpp/ChangeLog
@drussel
drussel / compilation_error_in_cgal
Created December 26, 2012 20:07
Fails to compile
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <utility>
int main(int, char*[]) {
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef std::pair<K::Point_3, double> Sp;
Sp(K::Point_3(1.0, 1.0, 1.0), 1.0);
return 0;
}
@drussel
drussel / cmake output
Created October 16, 2012 03:59
cmake output when trying to cross compiler from linux to windows
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for CL compiler version
CMakeTestNMakeCLVersion.cersion - 1600
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check for working C compiler: /usr/bin/cl
-- Check for working C compiler: /usr/bin/cl -- broken
CMake Error at /synth1/home/drussel/cmake-2.8.9-Linux-i386/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/cl" is not able to compile a simple test program.