Skip to content

Instantly share code, notes, and snippets.

View tonosaman's full-sized avatar

Optional Exit of T.Ono tonosaman

View GitHub Profile
@tonosaman
tonosaman / README.md
Created June 25, 2024 08:04
Lion Clash - Code Tour

『単一サイクル遅延』となるように注意してClash上で実現する必要があるのでしょうか? Lionコアで『単一サイクル遅延』を実現している具体的な記述箇所をおしえてください。

ソフトウェアベースの演算器(Soft)とハードウェアベースの演算器(Hard)の違いをメリットとデメリットが明確になるようにおしえてください。


Pipe.hs の execute() 関数内において使用されている fromRS1 について質問です。 fromRS1 自体は data ToPipe から makeLenses ''ToPipe でアクセッサとして生成されたものであることは把握しています。 この fromRS1 と命名された関数のfromが示す意図についてよく分かっていないので、どういう意味合いで使用されているのか設計者の意図を教えて下さい。

AI人物検出を用いた自動入退出記録の設計と実装

AI-Inference, IoT

方針

  • Nvidia DLI(Deep Learning Institute) Dockerイメージを使用
    • libargus でCSIカメラをコンテナ内から操作
  • OpenCV with CUDA + cudaMallocManaged による zero-copy
@tonosaman
tonosaman / README.md
Created May 12, 2023 02:40 — forked from manuelbl/README.md
ESP32 as Bluetooth Keyboard

ESP32 as Bluetooth Keyboard

With its built-in Bluetooth capabilities, the ESP32 can act as a Bluetooth keyboard. The below code is a minimal example of how to achieve it. It will generate the key strokes for a message whenever a button attached to the ESP32 is pressed.

For the example setup, a momentary button should be connected to pin 2 and to ground. Pin 2 will be configured as an input with pull-up.

In order to receive the message, add the ESP32 as a Bluetooth keyboard of your computer or mobile phone:

  1. Go to your computers/phones settings
  2. Ensure Bluetooth is turned on
@tonosaman
tonosaman / README.md
Last active March 7, 2023 02:47
MongoDB: Synchronize collections on different databases

MongoDB: Synchronize collections on different databases

Create shell script step by step.

Step1: Use mongoexport(1) to export target documents as line-by-line JSON

  • Extract target documents according to the cyclic synchronization.
    • In this sample case, we assume that cron(8) trigger every hour.
    • Have 5 minutes as a margin to avoid omissions.
  • Query with ISO 8601 date format made by date(1)
@tonosaman
tonosaman / README.md
Last active December 6, 2023 06:45
Kria KV260 zynqmp_dpsub(=zynqmp-display@fd4a0000) device tree overlay

KV260 zynqmp-display@fd4a0000 linux driver initialization sequence(1/2)

The following is a summary of the device tree settings to enable zynqmp-display@fd4a0000.

Xilinx Kria KV260 Vision AI Starter Kit Development board system certified with Ubuntu ⇒ device tree overlay

@tonosaman
tonosaman / kv260_pmod_xdc.md
Last active November 2, 2022 00:40
kv260 pmod pin assign
@tonosaman
tonosaman / Linuxifying Windows.md
Created March 30, 2020 23:51 — forked from slikts/Linuxifying Windows.md
Linuxifying Windows

nelabs.dev

Linuxifying Windows for development

This guide is for 'linuxing-up' Windows as a development environment; it focuses on setting up [WSL], an Ubuntu Hyper-V virtual machine, [wsltty] (a nice terminal emulator) and various tweaks.

Rationale

@tonosaman
tonosaman / README.md
Last active July 31, 2019 12:47
Web2py sample application - SalesLog

Setup

  1. Create new web application on Web2py

  2. replace below files

  • models/db.py
  • controllers/default.py
  • views/default/grid.html

Usage

Summary of contacts

@tonosaman
tonosaman / README.md
Last active April 25, 2019 18:22
Xvisor Development › [PATCH] CORE: blockdev: Fix stack frame corruption

CORE: vmm_blockdev: Fix stack frame corruption

This patch fixes stack frame corruption caused by a race condition between issuer and worker on the request queue.

Patch

diff --git a/core/block/vmm_blockdev.c b/core/block/vmm_blockdev.c
index 0c8b488..d32d768 100644
@tonosaman
tonosaman / .gitignore
Last active July 19, 2018 09:11
vagrant + FreeBSD-11.2-STABLE + crochet RaspberryPi3 = clang 6.0.1(aarch64-unknown-freebsd11.2)
crochet
ports
FreeBSD-11.2-STABLE
FreeBSD-ports
.vagrant