Skip to content

Instantly share code, notes, and snippets.

@tjstum
tjstum / gist:fdc96706cd5dfcffaddcb9f3b7aaf325
Created February 8, 2023 23:33
nanobind too-old eigen
/home/stum/remote/nanobind/include/nanobind/eigen/dense.h: In substitution of ‘template<class T> using tensor_for_eigen_t = nanobind::tensor<typename T::Scalar, nanobind::numpy, typename std::conditional<(T::NumDimensions == 1), nanobind::shape<(long unsigned int)(T::SizeAtCompileTime)>, nanobind::shape<(long unsigned int)(T::RowsAtCompileTime), (long unsigned int)(T::ColsAtCompileTime)> >::type, typename std::conditional<(T::InnerStrideAtCompileTime == Eigen::Dynamic), nanobind::any_contig, typename std::conditional<(T::IsRowMajor || (T::NumDimensions == 1)), nanobind::c_contig, nanobind::f_contig>::type>::type> [with T = Eigen::Matrix<int, 3, 1>]’:
/home/stum/remote/nanobind/include/nanobind/eigen/dense.h:63:11: required from ‘struct nanobind::detail::type_caster<Eigen::Matrix<int, 3, 1>, int>’
/home/stum/remote/nanobind/include/nanobind/nb_func.h:64:64: required from ‘PyObject* nanobind::detail::func_create(Func&&, Return (*)(Args ...), std::index_sequence<Is2 ...>, const Extra& ...) [with bool ReturnR
@tjstum
tjstum / getnode.py
Created February 28, 2016 23:19
getnode inspector
#!/usr/bin/env python2.7
"""
Inspect what each MAC address retrieval function would find
Useful for figuring out which subsystem is giving you the answer
"""
from __future__ import print_function
import uuid
import argparse

Keybase proof

I hereby claim:

  • I am tjstum on github.
  • I am stum (https://keybase.io/stum) on keybase.
  • I have a public key whose fingerprint is 050C 3EF9 B3E3 6F27 E134 AC25 37D8 BA90 B7AC 6220

To claim this, I am signing this object: