macOS terminal
docker pull ubuntu:impish
docker run -it --name="ubuntu-impish" ubuntu:impish /bin/bash
docker
apt-get update
apt-get install librsvg2-bin
#include "ofApp.h" | |
void ofApp::setup(){ | |
ofBackground(54, 54, 54, 255); | |
//old OF default is 96 - but this results in fonts looking larger than in other programs. | |
ofTrueTypeFont::setGlobalDpi(72); | |
verdana14.load("verdana.ttf", 50, true, true); | |
//verdana14.setLineHeight(18.0f); | |
//verdana14.setLetterSpacing(1.037); |
func started | |
ffmpeg version n4.4-18-gc813f5e343 Copyright (c) 2000-2021 the FFmpeg developers | |
built with gcc 10-win32 (GCC) 20210408 | |
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libvmaf --enable-vulkan --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e -- |
macOS terminal
docker pull ubuntu:impish
docker run -it --name="ubuntu-impish" ubuntu:impish /bin/bash
docker
apt-get update
apt-get install librsvg2-bin
let rawSVG = `<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" width="512" height="640" viewBox="0 0 512 640"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" gradientUnits="userSpaceOnUse" id="SvgjsLinearGradient1000"><stop stop-color="#f6db3d" offset="0"></stop><stop stop-color="#233173" offset="1"></stop></linearGradient><linearGradient x1="0" y1="0" x2="0" y2="1" id="SvgjsLinearGradient1001"><stop stop-color="#233173" offset="0"></stop><stop stop-color="#007dba" offset="1"></stop></linearGradient><linearGradient x1="0" y1="0" x2="0" y2="1" id="SvgjsLinearGradient1002"><stop stop-color="#233173" offset="0"></stop><stop stop-color="#003c6b" offset="1"></stop></linearGradient><linearGradient x1="0" y1="0" x2="0" y2="1" id="SvgjsLinearGradient1003"><stop stop-color="#f6db3d" offset="0"></stop><stop stop-color="#003c6b" offset="1"></stop></linearGradient></defs><svg class="rect"><rect width="512" height="640" x="0" y=" |
// const { createSVGWindow } = require('svgdom') | |
// const window = createSVGWindow() | |
// const SVG = require('svg.js')(window) | |
// const document = window.document | |
// const canvas = SVG(document.documentElement) | |
const { Blob } = require('buffer'); | |
let rawSVG = `<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" width="512" height="640" viewBox="0 0 512 640"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" gradientUnits="userSpaceOnUse" id="SvgjsLinearGradient1000"><stop stop-color="#f6db3d" offset="0"></stop><stop stop-color="#233173" offset="1"></stop></linearGradient><linearGradient x1="0" y1="0" x2="0" y2="1" id="SvgjsLinearGradient1001"><stop stop-color="#233173" offset="0"></stop><stop stop-color="#007dba" offset="1"></stop></linearGradient><linearGradient x1="0" y1="0" x2="0" y2="1" id="SvgjsLinearGradient1002"><stop stop-color="#233173" offset="0"></stop><stop stop-color="#003c6b" offset="1"></stop></linearGradien |
const officeMachine = Machine( | |
{ | |
id: 'top', | |
initial: 'office', | |
context: { | |
stage: 1, | |
}, | |
states: { | |
office: { | |
on: { |
import { createMachine, actions } from 'xstate'; | |
const { log } = actions; | |
export const OfficeMachine = createMachine( | |
{ | |
id: 'Office', | |
initial: 'Office', | |
context: { | |
}, |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
When I send openFrameworks app to my frined, app does not find data folder. This is because of "translocation", known issue on openFrameworks forum. There are couple of solution to avoid translocation but here I tried different way by codesigning. But quesion is, is it possible to codesign wihout Apple Developer license? Looks like possible...? https://stackoverflow.com/questions/27474751/how-can-i-codesign-an-app-without-being-in-the-mac-developer-program/27474942
// | |
// MyClass.h | |
// | |
#pragma once | |
#include "ofxGui.h" | |
class MyClass{ |