Jian-Hong Pan

@starnight

Joined on Aug 29, 2016

  • Extract some text, pictures as the note from Godot Engine documentation's Step by step. Object-oriented design and composition Node All nodes have the following characteristics: A name. Editable properties. They receive callbacks to update every frame. => Time related. You can extend them with new properties and functions.
     Like  Bookmark
  • D-Bus is: a message bus system, a simple way for applications to talk to one another. a system for interprocess communication (IPC). Architecturally, it has several layers:A library, libdbus, that allows two applications to connect to each other and exchange messages. A message bus daemon executable, built on libdbus, that multiple applications can connect to. The daemon can route messages from one application to zero or more other applications. Wrapper libraries or bindings based on particular application frameworks. For example, libdbus-glib and libdbus-qt. There are also bindings to languages such as Python. D-Bus supplies both: System daemon (for events such as "new hardware device added" or "printer queue changed")
     Like  Bookmark
  • This includes examples to package applications as flatpak apps. Documents from Flatpak Basic concepts Building your first Flatpak Manifests Requirements & Conventions Sandbox Permissions Python
     Like  Bookmark
  • The snake of Theseus by Pablo Galindo Salgado NoGIL is most impressive! Fomal discussion starts from OCT.7 2021NOGIL Python targeting 3.11 JAN 9 2023 PEP 703 - tentatively accepted for Python 3.13 Challenges of NoGIL
     Like  Bookmark
  • Development Environment My host is an Arch Linux (x86_64) system. The target chip is an ARM Cortex-M4 MCU. Therefore, install the arm-none-eabi- toolchain packages:arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-newlib arm-none-eabi-gdb I prefer the Makefile tool. So, make is installed, too. Also, need OpenOCD to flash and debug.
     Like 2 Bookmark
  • PS. ~夜晚的星空~(StarNight) 原發表於 HiNet Xuite DATE: 06/16/2015 10:02:44 PM 原因 在拜讀完Mosky大大的分享後, 想說除寫 Cython 外,可不可以直接寫 C code 讓 Python 呼叫,畢竟還是慣C阿! 找到一些文章教如何寫 C extesions,例如:Python Extension Programming with C。 在 Python 2.7 的時候,這些教學是 work 的,但我的電腦預設是 Python3 就 GG 了!此時瞬間了解為什麼這麼多的 Python2 libraries 還未支援 Python3 XDD 話雖如此,我還是要在我的電腦上寫 C extensions 阿!所以再翻了一些 Python3 C extensions 的文章,做一下整理~
     Like  Bookmark
  • PS. ~夜晚的星空~(StarNight) 原發表於 HiNet Xuite DATE: 01/31/2017 08:28:18 PM 今年春節臺灣也出現了難得的公營交通機構的罷工,相較於歐美的鐵路罷工規模,臺鐵這次算是小意思了。但不管怎麼說,總算是為了爭取合理權益踏出了第一步。 為此,如果以我國最近狂導 ISMS 制度的角度來看,我們可以觀察到臺鐵局這個「組織」的幾件事: 對於一般民眾來說,臺鐵提供的運輸服務是很重要的,可以算是臺鐵局的「關鍵業務」,行政院長林全也說過:「鐵路還是非常重要。」(摘錄自:台鐵員工春節「依法休假」恐脫班 林全:鐵路很重要 2017-01-26 14:30聯合報 記者侯俐安╱即時報導) 依據長官的態度,臺鐵局做了以下的「政策」:「台鐵保證今天除夕『班班準點到開』。」(摘錄自:台鐵保證除夕班班準點 今估運輸量65萬人次 2017-01-27 10:26自由時報 記者林曉雲/台北報導) 有了臺鐵局的「關鍵業務」和「政策」,接著我們來盤點一下臺鐵局有哪些「資產」,雖然不可能列出完整的「資產清冊」,但一些應該還可以。
     Like  Bookmark
  • PS. ~夜晚的星空~ 原發表於 HiNet Xuite DATE: 08/09/2012 09:16:15 PM IPv6今年正式Lunch了! http://www.ipv6.hinet.net/IPv6_launch.htm 種花店也開始實際測試透過PPPoE發IPv6的IP,也因為台灣有很多IPv4的IP,就當然不可能短期內就放棄這些IP,因此就採用dual stack的方式,同時取得IPv4和6的IP。 一開始申請開通IPv6服務的時候,Windows 7 透過 PPPoE 可以直接同時取得兩種 IP,UNIX like的桌面環境常用工具 nm-applet (network-managet-applet) 的 DSL 就不像"有線"一樣,有 IPv6 的頁簽讓我設定,但我用我的 Archlinux 怎麼改設定,就是只能取到 IPv4,取不到 IPv6,這樣很痛苦!!! 經過了一個星期的Google和測試,成功了 Ya~
     Like  Bookmark
  • PS. ~夜晚的星空~ 原發表於 HiNet Xuite DATE: 05/31/2012 04:21:43 PM Data Language Data Definition Language (DDL) CREATE, ALTER, DROP Data Manipulation Language (DML) SELECT, INSERT, DELETE, UPDATE Data Control Language (DCL)
     Like  Bookmark
  • PS. ~夜晚的星空~ 原發表於 HiNet Xuite DATE: 04/24/2012 09:43:05 AM 準備 這次用的環境是 CentOS 6.2、Apache/2.2.15 先確認是否有裝上 mod_ssl 與 openssl 沒有的話就先 yum install mod_ssl openssl 憑證
     Like  Bookmark
  • PS. ~夜晚的星空~ 原發表於 HiNet Xuite DATE: 04/15/2012 04:52:28 PM 在上星期的春季電腦展買了一台 X220,終於阿! 雖然有些地方還不是很滿意,例如沒有 USB 3.0,多了視訊鏡頭、指紋辨識器和藍牙。 這些我不需要的功能,如果可以拿掉並折價會更好,認真的!!! 有了底層硬體,接下來就是上面的作業系統和應用軟體了。 之前我的電腦都是用 Ubuntu, 憑良心講,他真的是個不錯的 linux distribution, 我也用了很習慣,也是目前有 X 裡 tune 得相當好的系列,使用界面也非常人性化,相當受到歡迎。 但是,它也越來越肥大了,我是指它的Unity桌面環境,當然gnome版本也是。
     Like  Bookmark
  • PS. ~夜晚的星空~ 原發表於 HiNet Xuite DATE: 01/30/2012 10:46:58 AM 安裝與設定 http://www.squid-cache.org/ yum install squid (RH系列的linux可以這樣裝) 設定config:$ cat /etc/squid/squid.conf # Set the acl acl allowdomain dstdomain "/etc/squid/allowdomain.txt" acl allowip dst "/etc/squid/allowip.txt"
     Like  Bookmark
  • PS. ~夜晚的星空~ 原發表於 HiNet Xuite DATE: 02/02/2012 01:34:46 PM 這次是裝6.2-mini-install的版本。 載minimal的版本。 安裝完先用root身份登入,修改網卡設定,改為開機就啟動。 設定檔案 /etc/sysconfig/network-scripts/ifcfg-eth0,改 ONBOOT="yes" 網卡依照當時情況進行設定。例如要使用 dhcp、固定 IP 或是 PPPoE,IPv6 ...。 參考網址:http://linux.vbird.org/linux_server/0130internet_connect.php開機自動DHCP連線:DEVICE=eth0 HWADDR="08:00:27:71:85:BD"
     Like  Bookmark
  • https://www.computextaipei.com.tw/en/index.html Of course, Servers, Laptops, Graphic cards, Desktops, All-in-One, Powers, Sockets, USB Heads & Docks, SSDs, SD cards, Flashes, Cables, Connectors, Glasses, LEDs, Keyboards & Mice ..., and NVIDIA at COMPUTEX 2023 The Next AI Moment is Here PoS & Electronic Scale The PoS & electronic scales remind me that Endless laptop program coworking with Grameen Foundation helps the people open stores for small business. The balance sheets for buy and sell ..., etc
     Like  Bookmark
  • Note: This is a test report, not an official solution yet. Thanks to the ecosystem's effort. The pure Linux mainline kernel (not RPi OS kernel) works well on Raspberry Pi 4B 4GB, which I have on hands. System boots up, gets into GNOME desktop environment, has the VC4 DRM driver, connects to the HDMI (including HDMI audio). The ethernet & WiFi work as well. It is "almost" good to be a normal computer for daily usage now. Why it is "almost"??? Because, it lacks the driver to support the V3D GPU on BCM2711, which will make the UI acting more smoothly. Stefan has listed the supporting status at "Upstream Raspberry Pi 4 B support". In Febuaraury of this year, Nicolas sent out the patch series "[RFC/PATCH,00/11] Raspberry PI 4 V3D enablement". Following that, a few days later, there is the new patch series "[v3,00/15] Raspberry PI 4 V3D enablement".
     Like  Bookmark
  • 為了量測移動、轉動物體的相關數值,如果還要從待測物連接通訊線到外界設備,是件不切實際的事。因此使用無線通訊,將量測數值傳回就是不可或缺的技術。 在尋找合適的晶片/開發板過程中,有找到例如 ESP32/8266 等相關資源。但考量到它是中國晶片,便不選擇它。剛好之前運氣好,抽到一張 Linkit 7697 的開發板,搭載的晶片是臺灣在地公司聯發科 MediaTek 的 MT7697 控制器,是屬 Cortex-M4 MCU。寫個 Echo server 放到 Linkit 7697 上,來做網路通訊 PoC 好像不錯。 準備 Toolchain 工欲善其事,必先利其器! Linkit SDK 環境 相較於其他晶片商,MediaTek 的商業模式是較封閉的。不像許多晶片商,可以在公開的網路找到免費且詳細的技術資訊。如果要詳細資訊/支援,就必須要有商業往來(錢)。所以如果要在 Linkit 上開發一些應用,無法從零開始,必須使用 MediaTek 打包好的 Linkit SDK 環境,再往上發展。也可以從官網上看到,Linkit SDK 是採用 FreeRTOS 當作 kernel。 img
     Like  Bookmark
  • Unleashing Gaming Performance with the Arm Immortalis-G715 GPU arm annouces the new GPU Immortalis-G715, which has hardware-based Ray Tracing and Varaible Rate Shading support. This comes from the demand "Gaming is 'Mobile first'". More detail of the improvment: Ray Tracing Compare between disabled and enabled ray tracing:
     Like  Bookmark
  • Development Environment My host is an Arch Linux (x86_64) system. The target chip is a RISC-V 32 bits MCU. Therefore, install the riscv64-elf- toolchain packages:riscv64-elf-binutils riscv64-elf-gcc riscv64-elf-newlib riscv64-elf-gdb Here lists the supported architectures: $ riscv64-elf-gcc --print-multi-lib .;
     Like 1 Bookmark
  • FTDI FT2232H-56Q Mini Module 4K Bytes Tx and Rx data buffers per interface ftdi/minimodule.cfg in OpenOCDnSRST defined on pin CN2-13 of the MiniModule (pin ADBUS5 [AD5] on the FT2232H chip) => OpenOCD uses FT2232H's channel A Table 3.1 FT2232H Pin Configurations for 64-pin QFN and LQFP package of FT2232H Dual High Speed USB to Multipurpose UART/FIFO IC Datasheet: Table 3.13 FT2232H Pin Configurations for 56-pin VQFN package of FT2232H Dual High Speed USB to Multipurpose UART/FIFO IC Datasheet: Table 3.1 FT2232H-56Q Mini Module Connection–CN2 of FT2232H-56Q Mini Module Datasheet: Module connect pins:
     Like  Bookmark
  • Document VIM REFERENCE MANUAL - Debugging terminal-debug Debug C Application Have a C Code Example C source: $ cat main.c #include <stdio.h>
     Like  Bookmark