monopoly go dice monopoly go dice monopoly go dice monopoly go dice monopoly go dice
Discover gists
Note: This originates from: https://forum.synology.com/enu/viewtopic.php?f=258&t=107508&sid=78d911737c5ecea1f9087bdab13612bf&start=15#p478281
Here are steps that I have modified to work for me. This assumes you have a shared folder named "docker" in volume1
.
We need to Symlink /var/run/docker.sock
to /volume1/docker/docker.sock
, because Synology Docker GUI will not be able to run it when it's pointed directly to /var/run/docker.sock
. Also the symlink needs to persist after reboot. To make it do so, you will need to create an automated task in your Synology DSM via "Task Scheduler".
- Go to "Control Panel" > "Task Scheduler".
- Click "Create" > "Scheduled Task" > "User-defined Script".
- On the "Create Task: Window, make sure "User:" is selected as "root" and rename the "Task:" to whatever you like.
- Click "Schedule" tab. Under "Date - Run on the following days", select "Daily". Under "Time - Frequency", select "Every 1 hour(s)" (just to be on the safe side).
using System; | |
using UnityEngine; | |
public static class RandomExtension | |
{ | |
public static int ProceedValue(float random, RandomData[] data) | |
{ | |
var cumulativeSumArray = new float[data.Length]; | |
cumulativeSumArray[0] = data[0].chance; | |
for (int i = 1; i < cumulativeSumArray.Length; ++i) |
# ----------------------------------------------------------------------------- | |
# From https://en.wikipedia.org/wiki/Minkowski–Bouligand_dimension: | |
# | |
# In fractal geometry, the Minkowski–Bouligand dimension, also known as | |
# Minkowski dimension or box-counting dimension, is a way of determining the | |
# fractal dimension of a set S in a Euclidean space Rn, or more generally in a | |
# metric space (X, d). | |
# ----------------------------------------------------------------------------- | |
import scipy.misc | |
import numpy as np |
ovs-vsctl add-port <bridge name> <port name> | |
ovs-vsctl set interface <port name> type=patch | |
ovs-vsctl set interface <port name> options:peer=<peer name> |
تنظیمات فونت در لینوکس بر عهده برنامه fontconfig میباشد. این برنامه فونتهای سیستم را بر اساس الویت بندیهایی که قابل تنظیم میباشد مرتب میکند و در اختیار سایر برنامه ها قرار می دهد. مشکل اصلی که اکثر کاربران فارسی زبان لینوکس در ارتباط با fontconfig دارند عدم نمایش صحیح حروف فارسی می باشد که معمولا به دو دلیل زیر اتفاق میافتد:
- نصب نبودن فونت مناسب بر روی سیستم که حروف فارسی را ساپورت کند
- عدم وجود فایل تنظیمات fontconfig برای انتخاب فونت مناسب برای نمایش حروف فارسی
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
// Open (or create) the database | |
var open = indexedDB.open("MyDatabase", 1); | |
// Create the schema | |
open.onupgradeneeded = function() { | |
var db = open.result; | |
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
I've recently read about and discussed CSS Scroll Snapping so often that I felt like I should build a CSS-only carousel based on it.
Here are a few things to note:
Accessibility is in line with all other CSS-only experiments: it can only be considered mediocre in term of semantics and visual indicators. Don't do this in production.
The going forward and back is done via a combination of CSS Scroll Snap together with scroll-behavior: smooth
and moving the focus through the slides via anchor links.