I hereby claim:
- I am scienceopen on github.
- I am michaelhirsch (https://keybase.io/michaelhirsch) on keybase.
- I have a public key whose fingerprint is 8761 AE12 C085 981A 367D F3DC 05F2 BD2A 5250 07DF
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
""" for use from shell, returns on STDOUT a free port number. | |
Yes, there is a slight race condition where between end of this program and start of your shell program, | |
another program could grab this port. | |
Useful for scripts with SSH port forwarding for example, where you have one or more hops before the final host. | |
reference: http://stackoverflow.com/questions/1365265/on-localhost-how-to-pick-a-free-port-number | |
Michael Hirsch |
! split a string into 2 either side of a delimiter token | |
function split(instr, delm) | |
implicit none | |
CHARACTER(len=80),intent(in) :: instr,delm | |
INTEGER :: idx | |
idx = scan(instr,delm) | |
split = instr(1:idx-1) | |
END function split |
I hereby claim:
To claim this, I am signing this object:
Octave is now configured for x86_64-unknown-linux-gnu | |
Source directory: . | |
Installation prefix: /opt/octave4.0 | |
C compiler: gcc -pthread -fopenmp -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 | |
C++ compiler: g++ -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 | |
Fortran compiler: gfortran -O | |
Fortran libraries: -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -lgfortran -lm -lquadmath | |
Lex libraries: | |
LIBS: -lutil -lm |
hyperlink: Here is `my website <https://scivision.co>`_ | |
code: two ways to do this: | |
easy way: just indent each line of code with a tab, leaving one blank line above and below each line of code | |
better way with syntax highlighting: | |
here is my python code | |
.. code:: python |
Loading ISR data and AVI video at the same times from disk | |
Michael Hirsch | |
My first thought on finding the nearest neighbor in time between instruments | |
is to use interp1(). | |
Let's say I have a radar that samples once every three seconds, and a camera that samples | |
once per second. The code below is done in Matlab/Octave. | |
``` |
https://www.virtualbox.org/ticket/12746 | |
``` | |
pci id for fd 4: 80ee:beef, driver (null) | |
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table | |
OpenGL Warning: glVertexArrayRangeNV not found in mesa table | |
OpenGL Warning: glCombinerInputNV not found in mesa table | |
OpenGL Warning: glCombinerOutputNV not found in mesa table | |
OpenGL Warning: glCombinerParameterfNV not found in mesa table | |
OpenGL Warning: glCombinerParameterfvNV not found in mesa table | |
OpenGL Warning: glCombinerParameteriNV not found in mesa table |
On Ubuntu 16.04 | |
https://scivision.co/anaconda-python-opencv3/ | |
$ cmake -DBUILD_TIFF=ON -DBUILD_opencv_java=OFF -DWITH_CUDA=OFF -DENABLE_AVX=ON -DWITH_OPENGL=ON -DWITH_OPENCL=ON -DWITH_IPP=ON -DWITH_TBB=ON -DWITH_EIGEN=ON -DWITH_V4L=ON -DWITH_VTK=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -DPYTHON3_EXECUTABLE=$(which python3) -DPYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON3_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. | |
-- The CXX compiler identification is GNU 5.3.1 | |
-- The C compiler identification is GNU 5.3.1 | |
-- Check for working CXX compiler: /usr/bin/c++ | |
-- Check for working CXX compiler: /usr/bin/c++ -- works | |
-- Detecting CXX compiler ABI info |