Steps to get Capacitor working with SvelteKit
- Set up a SvelteKit project as usual.
npm create svelte@latest my-app
cd my-app
npm install
npm run dev -- --open
| // https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP | |
| // https://scotthelme.co.uk/content-security-policy-an-introduction/ | |
| // scanner: https://securityheaders.com/ | |
| const rootDomain = `your-domain.com`; // or your server IP for dev | |
| const directives = { | |
| 'img-src': [ | |
| "*", | |
| "'self'", |
| --- | |
| creation date: <% tp.file.creation_date() %> | |
| tags: DailyNote <% tp.file.title.split('-')[0] %> | |
| --- | |
| modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed. | |
| # <% tp.file.title %> | |
| << [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>> |
| export const chaosTestStrings = (): void => { | |
| const textNodes = getAllTextNodes(document.body); | |
| for (const node of textNodes) { | |
| const textNodeLength = node.textContent ? node.textContent.length : 0; | |
| if (node.textContent === null) { | |
| return; | |
| } | |
| if (node.parentElement instanceof Element) { | |
| if (node.parentElement.dataset.originalText === undefined) { |
| // Source for the https://www.youtube.com/watch?v=pp9AM5A1mDs | |
| // Written & tested on MacOS | |
| // To discuss or report issues, join https://discord.gg/KfR8E6wSds | |
| #include <arpa/inet.h> | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <netinet/in.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> |
Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.
If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of computing power, storage space, or video quality.