2024-07-27
Proxmox Cluster Setup

either use gui or command line

1
2
3
4
5
6
7
# run on master device
pvecm create <cluster_name>
# run on slave device
pvecm add <cluster_ip>
# check on master device
pvecm status

reference:

https://www.howtoforge.com/tutorial/how-to-configure-a-proxmox-ve-4-multi-node-cluster/

https://pve.proxmox.com/wiki/Cluster_Manager

Read More

2023-11-27
Gooey: Argparse As Gui

Directly convert commandline programs as GUI programs.

This goofy name “Gooey“ is so strange that even ChatGPT and search engine like Bing have both failed to retrieve.

Yet we manage to recover it from our legacy codebase AGI/AutoUP/generator/transcribe by rg -g *.cmd pyinstaller36 and find . | rg time | rg tracker.

Is this fate?

Is this the end, or the new beginning?

Read More

2022-10-16
Agi Playground, A Place For Agi To Act/Code Freely

search for “artificial general intelligence” in github and hit many results.

some article says deep neural networks are t2 level, human are t3 level (connected dnns) and to train a t3 level intel you need t4 level intel (like the earth, or a group of t3 intels, you can’t be 1-to-1 now, you must be forgiving). this proves my provision of putting agi into gui or human interfaces.

to train a t2 level intel, you need t3 intel, such as yourself or your users.

you must setup this playground then you begin to learn stuff and libraries of AGI. but once you have one, don’t move around, stick to it! you need time to develop the general adaptor and make clear and achievable goals!

terminal, GUI, program, API, network

please check my previous efforts on building AGI, namely: AGI, lazero, metalazero

nsjail with docker

firejail

Read More

2022-09-17
Javascript Python Bridge

jspybridge

javascript in python:

1
2
pip3 install javascript

1
2
3
4
5
from javascript import require, globalThis
chalk, fs = require("chalk"), require("fs")
print("Hello", chalk.red("world!"), "it's", globalThis.Date().toLocaleString())
fs.writeFileSync("HelloWorld.txt", "hi!")

access python from javascript:

1
2
npm i pythonia

1
2
3
4
5
6
7
8
9
10
11
import { python } from 'pythonia'
// Import tkinter
const tk = await python('tkinter')
// All Python API access must be prefixed with await
const root = await tk.Tk()
// A function call with a $ suffix will treat the last argument as a kwarg dict
const a = await tk.Label$(root, { text: 'Hello World' })
await a.pack()
await root.mainloop()
python.exit() // Make sure to exit Python in the end to allow node to exit. You can also use process.exit.

Read More

2022-07-27
Macos Window Click-Through

use cmd-click to operate the inactive window without activating it.

linux/windows not having this feature. might need custom hot key for this.

Read More