Skip to content

Instantly share code, notes, and snippets.

View hanslovsky's full-sized avatar

Philipp Hanslovsky hanslovsky

View GitHub Profile
@hanslovsky
hanslovsky / SimpleSceneryExampleGradientTextureJavaFX.java
Last active October 20, 2017 15:16
Simple example for scenery and javafx
import java.nio.ByteBuffer;
import java.util.concurrent.CountDownLatch;
import com.sun.javafx.application.PlatformImpl;
import cleargl.GLTypeEnum;
import cleargl.GLVector;
import graphics.scenery.Box;
import graphics.scenery.Camera;
import graphics.scenery.DetachedHeadCamera;
@hanslovsky
hanslovsky / hs_err_pid10115.log
Created October 20, 2017 18:41
jogl crashes everything. Or something.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f0963fc2235, pid=10115, tid=0x00007f09c49b0700
#
# JRE version: OpenJDK Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.144-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libnvidia-glcore.so.387.12+0x11f6235]
#
@hanslovsky
hanslovsky / hs_err_pid23919.log
Created December 15, 2017 15:36
scenery jvm crash
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fb821eeb470, pid=23919, tid=0x00007fb76b31d700
#
# JRE version: OpenJDK Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.144-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0xa75470]
#
@hanslovsky
hanslovsky / bigcat-from-python.py
Last active February 9, 2018 21:41
Use imglyb to display numpy dataset in BigCAT!
import h5py
import numpy as np
import threading
import time
import imglyb
from jnius import autoclass, JavaException, PythonJavaClass, java_method
class Runnable( PythonJavaClass ):
__javainterfaces__ = ['java/lang/Runnable']
@hanslovsky
hanslovsky / dt.ipynb
Last active February 9, 2018 21:04
Distance Transform example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

qualifying supermarkets

  • Albertsons
  • A&P
  • Food Lion
  • Fresh Direct
  • Foodtown
  • Gristedes
  • H-E-B
  • Hy-Vee
  • Kroger
@hanslovsky
hanslovsky / hs_err_pid3919.log
Created February 27, 2018 17:11
eclipse core dump wtf
 #
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f30aac0f3b8, pid=3919, tid=0x00007f30a8aba700
#
# JRE version: OpenJDK Runtime Environment (8.0_162-b12) (build 1.8.0_162-b12)
# Java VM: OpenJDK 64-Bit Server VM (25.162-b12 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x6b73b8]
#
@hanslovsky
hanslovsky / example1.java
Last active March 9, 2018 17:30
Java lambda/functional interface/method references issues
public static void main( String[] args )
{
ArrayImg< DoubleType, DoubleArray > data = ArrayImgs.doubles( 1, 2, 3 );
try
{
setOne( data );
}
catch ( BootstrapMethodError e )
{
System.out.println( "DID NOT WORK!" );
@hanslovsky
hanslovsky / DiskCacheAccessExample.java
Last active March 13, 2018 20:50
Delegate accesses and disk cached cell img
package net.imglib2;
import java.util.Arrays;
import java.util.stream.DoubleStream;
import net.imglib2.cache.img.DelegateAccessIo;
import net.imglib2.cache.img.DelegateAccessWrappers;
import net.imglib2.cache.img.DelegateAccesses;
import net.imglib2.cache.img.DiskCachedCellImg;
import net.imglib2.cache.img.DiskCachedCellImgFactory;
@hanslovsky
hanslovsky / auto.master
Created April 4, 2018 16:22
autofs arch linux janelia auto.master
/home /-
+auto.master
+dir:/etc/autofs/auto.master.d