- install
sudo apt install apparmor-profiles
| """ | |
| buffer flushing logic using python asyncio Queue and Event | |
| """ | |
| import numpy as np | |
| import asyncio | |
| entire_list = [] | |
| async def flusher(queue, max_queue_size, interval, flush_event, pool): | |
| while True: |
| import time | |
| import sys | |
| import pandas as pd | |
| import numpy as np | |
| import SimpleITK as sitk | |
| def foobar_np(source_nifti_file,source_csv_file,target_nifti_file): | |
| df = pd.read_csv(source_csv_file) # columns,x,y,z,foo |
--
notes
| docker swarm | kubernetes |
|---|---|
| docker node ls | kubectl get nodes |
| docker stack deploy -c $YAMLFILE | kubectl apply -f $YAMLFILE |
| docker service create ... | kubectl create deploy -n $NAMESPACE $PODNAME ... |
| docker service inspect $SERVICENAME | kubectl describe pod -n $NAMESPACE $PODNAME |
| log |
| FROM pytorch/pytorch:2.2.2-cuda11.8-cudnn8-runtime | |
| ARG GROUPID | |
| ARG USERID | |
| ARG USERNAME | |
| RUN groupadd -g $GROUPID developer | |
| RUN useradd --no-log-init -u $USERID -g $GROUPID -s /bin/bash $USERNAME |
below hola.py with itk(simpleitk) not working AT ALL.
TODO: please replace with Simple Elasix
https://simpleelastix.readthedocs.io/AffineRegistration.html
| ``` | |
| link https://www.reddit.com/r/Swimming/comments/1afzr77/personal_recipe_to_enhance_feel_of_water/ | |
| As a recreational swimmer (swimming on and off for 20+ years), here is my recipe to enhance/regain the feel of water. | |
| + (optional) 1 hr prior swimming, drink warm water with 5g creatine. | |
| + (optional) 40 min prior swimming, drink 16oz warm 50% diluted (sugar free) gatorade. | |
| + pick pool with water temp (77 to 82F, opt for an indoor pool if outdoor temp is > 80F). | |
| + 20-30 min aerobic - freestyle. | |
| + 5-10 min freestyle with pedals. | |
| + 5-10 min norma/side dolphin kicks with fins. |