~ashie/blog

e6282f4e680b341d973102f14d1663507290b277 — Ash 5 months ago d04a3ef
fix: inconsistent semicolons
M content/blog/caching-promises-in-javascript.md => content/blog/caching-promises-in-javascript.md +6 -6
@@ 31,8 31,8 @@ async function getContent(key) {
            return v;
        } else {
            const content = expensiveFn(key);
            await redis.set(key, content)
            return content
            await redis.set(key, content);
            return content;
        }
    }
}


@@ 78,7 78,7 @@ async function cachedGetContent() {
        promise = getContent().finally(() => promise = null);
    }

    return await promise
    return await promise;
}
```



@@ 125,7 125,7 @@ Given a function that takes a single argument we can:
const store = new PromiseStore();

async function cachedAsyncFn(param: string) => {
    return await store.resolve(param, async () => await asyncFn(param))
    return await store.resolve(param, async () => await asyncFn(param));
}
```



@@ 165,8 165,8 @@ const getContent = promiseStoreFn(async (key) => {
            return v;
        } else {
            const content = expensiveFn(key);
            await redis.set(key, content)
            return content
            await redis.set(key, content);
            return content;
        }
    }
});

A content/blog/osis-definition-of-open-source-is-stupid/index.md => content/blog/osis-definition-of-open-source-is-stupid/index.md +7 -0
@@ 0,0 1,7 @@
---
title: "OSI's Definition of Open Source Is Stupid"
date: 2023-05-27 23:35:54 +0200
draft: true
syntax: true
---


A content/blog/qemu-folder-sharing-with-a-windows-guest/index.md => content/blog/qemu-folder-sharing-with-a-windows-guest/index.md +26 -0
@@ 0,0 1,26 @@
---
title: "QEMU Folder Sharing with a Windows Guest"
date: 2023-12-08 08:25:06 +0100
draft: true
syntax: true
---

'C:\Program Files\VirtViewer v5.0-256\bin\remote-viewer.exe'

https://www.spice-space.org/download/windows/spice-webdavd/
https://wiki.gentoo.org/wiki/QEMU/Windows_guest#Guest_2

https://www.guyrutenberg.com/2018/10/25/sharing-a-folder-a-windows-guest-under-virt-manager/

I finally managed to get the shared folder working by the combined help from a couple of posts here.

At first I got the 1067 error – but I actually had to go into Services and try to start it to see the error. This I fixed by installing guest tools (was a bit nervous about that one since I’m running gpu passthrough and didn’t want the virtual drivers to take over from my nvidia drivers and mess thing up)

Then I went about running the the shell script which did nothing – neither as a normal user or choosing to run it as administrator. Didn’t even get an error.

Finally I tried opening virt-viewer (as described in another post) and discovered that I actually had to tick a box to share the folder “public”.

Now everything seems to be working like it should.

Also – for you who suffer from the size limit when moving larger files between your OS’s – try this one:
https://answers.microsoft.com/en-us/ie/forum/all/error-0x800700df-the-file-size-exceeds-the-limit/d208bba6-920c-4639-bd45-f345f462934f