Discover gists
# coding: utf-8 | |
import logging | |
import re | |
from collections import Counter | |
import numpy as np | |
import torch | |
from sklearn.datasets import fetch_20newsgroups | |
from torch.autograd import Variable |
by Danny Quah, Jan 2022
This gist describes using Obsidian on iPad while syncing to other Obsidian platforms. The procedure uses git
in iSH
on iOS
, and thus differs from using either Obsidian Sync
or Working Copy
as described in Obsidian/iOS+app.
(To be clear, Obsidian
is one of my favourite Apps, and I'm all for supporting the team financially. Moreover, everything I've heard suggests the paid Obsidian Sync
is excellent. However, I don't want my syncing processes to proliferate --- each service using a different client sync flow --- so I keep my systems minimal: just syncthing
and git
. After writing this I found an Obsidian Forum writeup which uses the same tools I do to achieve the same goal, but you'll want to read that with its accumulated contributions dispersed across the comments. So at least I was thinking
<?php | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
import {Duration, Stack, StackProps} from "aws-cdk-lib"; | |
import {Construct} from "constructs"; | |
import {Repository} from "aws-cdk-lib/aws-ecr"; | |
import {Function, LayerVersion, Runtime} from "aws-cdk-lib/aws-lambda"; | |
import {ArnPrincipal, Effect, ManagedPolicy, PolicyStatement} from "aws-cdk-lib/aws-iam"; | |
import {PythonFunction} from "@aws-cdk/aws-lambda-python-alpha"; | |
import {DockerImageAsset} from "aws-cdk-lib/aws-ecr-assets"; | |
import * as path from "path"; | |
import * as ecrdeploy from 'cdk-ecr-deployment'; | |
import {Secret} from "aws-cdk-lib/aws-secretsmanager"; |
Note: this was originally several Reddit posts, chained and linked. But now that Reddit is dying I've finally moved them out. Sorry about the mess.
URL: https://www.reddit.com/r/ProgrammingLanguages/comments/up206c/stack_machines_for_compilers/i8ikupw/ Summary: stack-based vs register-based in general.
There are a wide variety of machines that can be described as "stack-based" or "register-based", but not all of them are practical. And there are a lot of other decisions that affect that practicality (do variables have names or only address/indexes? fixed-width or variable-width instructions? are you interpreting the bytecode (and if so, are you using machine stack frames?) or turning it into machine code? how many registers are there, and how many are special? how do you represent multiple types of variable? how many scopes are there(various kinds of global, local, member, ...)? how much effort/complexity can you afford to put into your machine? etc.)
- a pure stack VM can only access the top elemen
- Get a copy of socat source code here http://www.dest-unreach.org/socat/
- Make sure to install gcc-core, libssl-devel, make
- In your Cygwin terminal, run
./configure --enable-openssl-base --enable-openssl-method
make
optionallymake install
- Get a copy of lumen.abda.nl's certificate here https://abda.nl/lumen/hexrays.crt
- Change PATH_TO_IDA in
ida_abda.nl_lumen.bat
then run it - Go to Options -> General -> Lumina, set server addr to 127.0.0.1, port 1234, Username guest, Password guest