为 SQLAlchemy Model 添加 type hint 和 type check

<h2 id="tldr">TL;DR</h2> <p>Use <code>from typing import dataclass_transform</code></p> <h2 id="motivation">Motivation</h2> <p>其实动机很简单,众所周知对

2024/3/4
阅读更多

Boot an Arch Linux RISC-V using qemu-system

<h2 id="caution">CAUTION</h2> <p>We (distro packagers) decided to <a href="https://github.com/felixonmars/archriscv-packages/blob/ae724a145a

2023/3/7
阅读更多

关于基于机器学习的多目标对象追踪算法的文献综述

<p><strong>问题描述</strong></p> <p>多目标对象追踪(Multi-Object Tracking, MOT)一直是计算机视觉(Computer Vision,CV)领域中非常重要的研究对象,其核心是通过分析输入的图像序列,构建出不同帧的物体间的对应关系。

2022/10/8
阅读更多

RV64 板子更换 rootfs 指南

<blockquote> <p>XieJiSS, revision 3</p> <p>本文可能不会及时更新,请以<a href="https://github.com/felixonmars/archriscv-packages/wiki/RV64-%E6%9D%BF%E5%AD

2022/8/25
阅读更多

ACTF2022 safer-tg-bot-{1,2} WP

<h3 id="safer-telegram-bot-1">safer-telegram-bot-1</h3> <ol type="1"> <li>Search for <code>flag1</code> in the source code</li> </ol> <figur

2022/7/23
阅读更多

A RISC-V gcc pitfall revealed by a glibc update

<p><strong>UPDATE 2023-05-11:</strong> Finally we have builtin inline subword atomic support in GCC!</p> <ul> <li>[PATCH] riscv: Don't add -

2022/4/7
阅读更多

Setup an Arch Linux RISC-V Development Environment

<blockquote> <p>This is a frequently updating doc, and you can find its latest version <a href="https://github.com/felixonmars/archriscv-pac

2022/3/22
阅读更多

解构赋值踩坑:神秘失踪的数据

<p>话说在我们 PLCT ArchRV 组,基础设施都是我们自己搭出来的,分工、打标记、追踪状态全部靠 <code>gh: XieJiSS/plct-archrv-pkg-bot</code>、<code>gh: cubercsl/archrv-pkg-notification

2022/3/15
阅读更多

How's the GDPR (used to) related to my blog

<blockquote> <p>Felix: they say that EU readers are blocked from your blog</p> <p>me: wtf really? how?</p> <p>also me (3 yrs ago): Haha GDPR

2022/3/11
阅读更多

Rust is incompatible with LLVM, at least partially

<p>Lately we've been compiling rust 1.59.1 on <code>riscv64gc</code> (will be referred to as <code>rv64</code> in this article). We are pack

2022/3/11
阅读更多

python-mtrpacket 在 riscv64 上编译测试不通过

<p><a href="https://archlinux.org/packages/community/any/python-mtrpacket/" target="_blank" rel="noopener"><code>python-mtrpacket</code></a>

2022/1/30
阅读更多

快速获得 RISC-V 开发环境

<p>注意:这里说的是基于 <code>QEMU</code> 的开发环境,不是真的 <code>riscv64</code> 机器,买真机请找 SiFive 下单 HiFive Unmatched 板子。</p> <hr /> <p>首先,你要有一台 Arch Linux 的机

2022/1/23
阅读更多

在 RISC-V 上编译 Node.js 16

<p>最近因为实习原因经常和 RISC-V 打交道,迫于需要,尝试在 <code>riscv64gc</code> 环境下编译运行 njs 16 并大获成功,记录一下流程步骤。</p> <p>当前 njs 16(gallium LTS)主线版本是 <code>v16.13.1</

2022/1/21
阅读更多

Redmi AirDots 3 Pro 连接电脑后蓝牙类别不正确的解决方案

<ol type="1"> <li><p>控制面板&gt;硬件和声音&gt;设备和打印机</p></li> <li><p>在「未指定」栏找到 Redmi AirDots 3 Pro,如下图所示</p> <figure> <img src="https://i.loli.net/2

2021/8/26
阅读更多

为什么 ArrowFunction 不能 new

<h1 id="x00-tldr">0x00 TL;DR</h1> <p>因为 Lexical <code>this</code> 导致没有 <code>[[Construct]]</code>,所以不能 <code>new</code>。</p> <h1 id="x01-详细版

2020/10/28
阅读更多

Bilibili 2020-10-24 CTF WriteUp

<h1 id="x00-前言">0x00 前言</h1> <blockquote> <p>重拾半年多没更新的博客。毕竟此前写博客很大程度上是为了排解学业上每天机械性重复学习那点少到可怜的知识带来的烦闷,近来一则生活充实,于是便无甚更新博客之动力;二则生活充实,入了许多新坑,甚少有

2020/10/25
阅读更多

对于又一种对SS流式加密的攻击(奇虎团队)的详细分析

<h2 id="x00-tldr">0x00 TL;DR</h2> <p>论文:<a href="https://drive.google.com/file/d/1nQTF95y9_jAhY60PRnwdKZvkA7eIicqy/view?usp=sharing" target=

2020/2/12
阅读更多

在MacOS上配置dnscrypt-proxy(免分流)

<h2 id="导语">导语</h2> <p>中国大陆的互联网服务提供商经常劫持部分域名,转到自己指定的 IP,以强行插入自己的广告。<code>dnscrypt-proxy</code> 支持 DNSCrypt 协议和 DoH 方案等,可以避免受到 DNS 污染。</p> <p

2020/2/4
阅读更多

市县中心点坐标(经纬度)

<blockquote> <p>参考:</p> <p>ECharts.js 范例 <a href="https://www.echartsjs.com/examples/en/editor.html?c=effectScatter-bmap" target="_blank" re

2020/1/29
阅读更多

二项式定理及其推广公式的一种简单理解办法

<h2 id="x00-二项式定理">0x00 二项式定理</h2> <blockquote> <p>写在最前:<span class="math inline">\(\mathrm{C}_n^k=\binom{n}{k}=\frac{n!}{(n-k)! \cdot k!}\)

2020/1/11
阅读更多