Skip to content

Instantly share code, notes, and snippets.

View xulman's full-sized avatar

Vladimír Ulman xulman

View GitHub Profile
@xulman
xulman / gist:31e8d251e0c4f4334968faf63c8507cf
Last active March 4, 2024 14:39
testing new folder-DnD in ImageJ2/Fiji
================================================================================================
variant for
a) near future (when image-legacy master makes it into scijava/parent-pom)
b) for apps that harvest an image their own way (here somehow from a given folder)
================================================================================================
git clone [email protected]:xulman/imagej-legacy.git
cd imagej-legacy
mvn -Dmaven.test.skip=true clean install
cd ..
@xulman
xulman / BdvIoPlugin.java
Created February 6, 2022 12:31
drag&drop handler of BDV's xml (should be part of BDV-core distro)
package cz.ulman.dnd;
import org.scijava.Priority;
import org.scijava.io.IOService;
import org.scijava.io.location.FileLocation;
import org.scijava.io.location.Location;
import org.scijava.plugin.Plugin;
import org.scijava.io.IOPlugin;
import org.scijava.io.AbstractIOPlugin;
@xulman
xulman / MastodonIoPlugin.java
Created February 5, 2022 19:53
starting Mastodon with Drag&Drop onto Fiji window
package cz.ulman.dnd;
import org.scijava.plugin.Plugin;
import org.scijava.io.IOPlugin;
import org.scijava.io.AbstractIOPlugin;
import org.scijava.io.location.FileLocation;
import org.scijava.io.location.Location;
import java.io.IOException;
import java.util.ArrayList;
@xulman
xulman / gist:23f08764fe76cc6b95d70bce36fc3788
Created March 24, 2021 16:08
C++ example code how to submit http comm using the Poco project
$ more *.*
::::::::::::::
CMakeLists.txt
::::::::::::::
cmake_minimum_required (VERSION 3.5)
project (poco-VladoClientTest)
find_package (Poco REQUIRED Net)
add_executable (clientTest main.cpp)
@xulman
xulman / gist:07fbaa26108cc5fa90568f805005513e
Last active March 7, 2021 17:34
How to compile EmbryoGen on IT4I's supercomputers
# plan:
# -----
# 1) get EmbryoGen source code
# 2) set up the environment
# a) with: module add git, then GCC/10.2.0, CMake, OpenMPI/4.0.5-GCC-10.2.0
# b) calling a script from EmbryoGen's repo
# 3) download, compile and install locally all necessary libs
# 4) setup & compile EmbryoGen
@xulman
xulman / gist:b47b789daef93f7431e0db55dec3b450
Created February 25, 2021 08:51
How to compile CBIA's viewer4d on a Linux system
The official web page : https://cbia.fi.muni.cz/software/viewer4d/main.html
with the offical howto: https://cbia.fi.muni.cz/software/viewer4d/main-compiling.html
(with official DL-page: https://cbia.fi.muni.cz/software/viewer4d/main-download.html)
install into your OS the following packages:
i3dlibs, glew-devel, wxWidgets-devel, gcc, cmake
i3dlibs : https://cbia.fi.muni.cz/software/i3d-library.html
glew-devel: reported working with version 2.1
# create 20 runX folders
for i in `seq 1 20`; do mkdir -p run${i}; done
# submit 20 jobs, each in its own folder
for i in `seq 1 20`; do
cd run${i}
. /some/path/to/qsub/script mitogen params.....
cd ..
done
@xulman
xulman / gist:deece254470b8375f5813f099118e6fb
Created February 2, 2021 08:48
how to compile and run MitoGen on IT4I cluster
# once on a cluster, say after `ssh salomon`
# --------------- prepare and compile ---------------
# add necessary dev modules
. /scratch/work/project/open-19-3/simulators_libs/addModulesAtIT4I
# get sources and prepare env
git clone ...daPath...
cd $clonedFolder
mkdir BUILD