Autonomous Machines & Society.

2022-11-27
Mastering Interactive Interfaces And Guis With Python

Live coding, hacking, media

I think hacking requires certain level of live coding, like fzf, interactive jq, interactive regex and repl, or my modded hy.

Interactive searching is one such kind of live coding. It can also be manual labeling, training a model.

on the other hand, media convey the idea of live coding, mostly by showing off the benefits, but hardly getting to the point when you really need it. media is not coding (requiring coding skill), it is just somehow interactive.

interactive interfaces

gui

custom tkinter

cli

rich

textual

the art of commandline

awesome jq

interactive tools

web based tools

xpath tester for html

explainshell

livegrep

cli tools

ijq interactive jq

jiq

[percol](https://github.com/mooz/percol] supports pinyin

ugrep use ugrep -Q for interactive tui

coding

python design patterns

Read More

2022-11-25
Hy Programming Language Enhancements For Automation And Ide Support

hy lisp embedded in python, resumeable exception

jython only supports upto python2.7. these libraries may need substantial changes to be compatible with jython:

1
2
3
4
5
hy
parse
hyrule
reloading

hy docs

hyrule docs

hy缺乏基本的补全 vscode目前没法用 我把hy改造成了可以自动reload 自动抓Uncaught exception的模式 如果要取消这些行为 需要加上flag 可以用于hy2py

1
2
3
4
5
6
7
8
9
-R
disable automatic insertion of reloading decorator
-T
disable toplevel try-except
-K
disable toplevel show stacktrace
-L
disable line-by-line try-except

一些未知的expression可能不允许被wrap到我们的macro里面 需要被加入到黑名单 已知的系列包括unpack-iterable之类的

hy的插件目前分为vim版本和EMACS版本 对spacevim spacemacs不怎么友好

vim syntax highlight

emacs hy-mode and jedhy

hyuga for neovim, with custom vim-lsp

hy的code autoindentation功能我做了 nelean 目前最新版本有待更新 主要是对字符串的正则进行了优化

Read More

2022-11-22
Introducing The Open-Source Chinese Font 'Lxgwwenkai' Based On Klee One

中文字体 open source chinese fonts

百度输入法造字?

https://github.com/lxgw/LxgwWenKai/

一款开源中文字体,基于 FONTWORKS 出品字体 Klee One 衍生。

感觉挺好看

Read More

2022-11-12
Lua Python Bridge

Read More

2022-11-12
Splash: Webpage Rendering Service

where’s the animation anyway?

splash doc

Read More

2022-11-11
Call Python In Clojure, Clojure-Python Bridge

libpython-clj deep python integration in clojure

embed clojure in python call clojure in python

Read More

2022-11-11
Call Ruby From Python

Read More

2022-11-09
Bdd Behavior Driven Development

Read More

2022-11-09
Generate Noise Image, Noise Video, Noise Audio With Ffmpeg For Test

simulating tv noise

1
2
3
4
ffmpeg -f lavfi -i nullsrc=s=1280x720 -filter_complex \
"geq=random(1)*255:128:128;aevalsrc=-2+random(0)" \
-t 5 output.mkv

1
2
3
4
ffmpeg -f rawvideo -video_size 1280x720 -pixel_format yuv420p -framerate 25 \
-i /dev/urandom -ar 48000 -ac 2 -f s16le -i /dev/urandom -codec:a copy \
-t 5 output.mkv

Read More

2022-11-09
Neo4J, Mindsdb, Milvus, Peewee

peewee

docs

official doc

milvus

docs

official doc

neo4j

OGM, object-graph mapping

activegraph

cypher

neomodel

neode

docs

graph data science

python driver doc

drivers

neo4j python driver

neo4j python graph data science driver

wrappers

pypher cypher builder in python intro

neopy

pygds a python wrapper to call Neo4j Graph Data Science procedures from python using the Neo4j python driver

mindsdb

since mindsdb is sql-based it is time to create monkey patches for sqlalchemy core?

1
2
3
4
5
from sqlalchemy import text
# write the SQL query inside the text() block
sql = text('SELECT * from BOOKS WHERE BOOKS.book_price > 50')
results = engine.execute(sql)

tools

Lightwood is an AutoML framework that enables you to generate and customize machine learning pipelines declarative syntax called JSON-AI doc

docs

official doc

wrappers

sqlalchemy 2.0 doc

pypika sql query builder

mindsdb native

mindsdb python sdk

Read More