惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
N
News and Events Feed by Topic
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
The Cloudflare Blog
H
Heimdal Security Blog
Schneier on Security
Schneier on Security
Engineering at Meta
Engineering at Meta
Google Online Security Blog
Google Online Security Blog
宝玉的分享
宝玉的分享
AI
AI
The GitHub Blog
The GitHub Blog
MongoDB | Blog
MongoDB | Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
S
Security @ Cisco Blogs
H
Hacker News: Front Page
F
Fortinet All Blogs
博客园_首页
S
Secure Thoughts
N
News and Events Feed by Topic
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
Spread Privacy
Spread Privacy
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Hugging Face - Blog
Hugging Face - Blog
Hacker News: Ask HN
Hacker News: Ask HN
C
CXSECURITY Database RSS Feed - CXSecurity.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
L
LINUX DO - 最新话题
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Schneier on Security
Know Your Adversary
Know Your Adversary
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Scott Helme
Scott Helme
P
Privacy & Cybersecurity Law Blog
S
Securelist
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
O
OpenAI News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
PCI Perspectives
PCI Perspectives
L
LangChain Blog
雷峰网
雷峰网
Security Archives - TechRepublic
Security Archives - TechRepublic
V2EX - 技术
V2EX - 技术

Stonecharioteer on Tech

I Traced My Traffic Through a Home Tailscale Exit Node What Was I Reading Last? In Three Not-So-Easy Pieces Dogfooding Is Hard Code blocks in your books, finally GoForGo v0.9.0 Merrilin - We built an app to read books I use a Macbook now Data Structures & Algorithms - Preparing for Interviews Using a local DNS namespace for local service discovery Direction KOllector - Publishing KOReader Highlights gbt: branches touched in the last 24 hours A Soiree into Symbols in Ruby Some Smalltalk about Ruby Loops Ruby Blocks Returning from Ruby Blocks, Procs and Lambdas My Linux Laptop Finally Works: How Claude Helped Me Fix Years of Annoyances TIL: Watchexec - Modern File Watching for Development Workflows A Less Busy Mind GoForGo - Learn Go through live examples Migrating My Old Blog to Hugo with Claude The Qtile Window Manager: A Python-Powered Tiling Experience Read the RFCs that Built the Internet Py-x-Protobuf - Or How I Learned to Stop Worrying and Love Protocol Buffers Python Reverse a List New Beginnings Leaving ChainSafe Systems Screen Lock for Cinnamon Desktop using Zenity and Terminal Commands Crews Not Teams A System for Getting Better at LeetCode So Far So Rust Retrying HTTP Requests with Rust A Primer on Control Charts Learning Rust Explicit is Better than Implicit: Rust for Pythonistas Using Custom Delimiters in Jinja Templates TIL: Creating Fixed Length Iterables in Python Documentation Without Assumption Vagrant Python - A Reflection in 2022 Learning Golang No, A Virtual Machine Is Not Enough: Why Developers Need Native Linux Empathy in Tech For Those Who Came in Late A Weekend With PostgreSQL TIL: Gooey and Python Fire for Quick GUIs and CLIs TIL: 2ality - Dr. Axel Rauschmayer's JavaScript Blog TIL: MassDNS - High-Performance Bulk DNS Lookups TIL: Matomo Analytics, Google Tech Writing, Memory Programming, and NES TV Signals TIL: MontyDB - MongoDB Implemented in Python Returning to the Craft of Programming TIL: CPUFetch, OneFetch, and Learn CSS TIL: DNS Performance Testing and Pi-hole with Unbound TIL: Eli Bendersky's Blog, Awesome By Example, NoCoDB, and Martin Kleppmann TIL: CRDTs, Extreme HTTP Performance, and BYTEPATH Game TIL: AutoInvent, ASGI, Python Packaging, RAPIDS GPU Computing, and FlaskCon TIL: MangaDesk - Terminal Client for MangaDex TIL: McFly - Smart Shell History Search TIL: Siege Load Testing and Awesome FastAPI Resources TIL: Ventoy Bootable USB and Justniffer Network Analysis TIL: CLI Code Review, Git Split Diffs, and Internal Combustion Engine TIL: Benford's Law, Web Security Headers, Event Sourcing, and Mozilla Security Guidelines How to Write Documentation - The README.md File The Importance of Documentation TIL: NNgroup UX Research, SponsorBlock, and Labella Python Library TIL: The Little Book of Rust Macros and Rust Performance Book TIL: Git-Bug Distributed Issue Tracker and Omni Kubernetes Monitoring TIL: Zellij - Modern Terminal Multiplexer TIL: How Discord Handles 2.5 Million Concurrent Voice Users TIL: Volumio - The Audiophile Music Player TIL: Areopagitica - Milton's Defense of Free Speech TIL: Fast Node Manager, Zoxide Smart CD, Technical Writing, PyO3, and Qubes OS TIL: Slurm Workload Manager for HPC Clusters TIL: Data Visualization Guide and Oso Authorization Academy TIL: CORS Deep Dive, Piku Tiny PaaS, Rust Strings, and Deno Standard Library TIL: Raspberry Pi OS Development, Vim Beginner Guide, Password Management, and QueryBook TIL: uBlock Origin Performance Optimization on Firefox TIL: Breaking PostgreSQL at Scale and LeetCode Problem Patterns TIL: Awesome Tmux Resources for Terminal Multiplexing TIL: Grit - A Multitree-Based Personal Task Manager TIL: Lens 4.2 Kubernetes IDE, Shell Scripting Guide, and Dark HTTP Server Do The Job You Hate So You Won't Hate The Job You Love TIL: Innernet VPN Solution and NoteCalc Calculator App TIL: Argo CD for GitOps and Lens Kubernetes IDE TIL: Modern Rust CLI Tools - System Monitoring, HTTP Requests, and DNS TIL: tz - A Time Zone Helper Tool TIL: Distributed Systems Education, Fallacies, and Self-Hosted Internet Archiving TIL: Real-Time Voice Cloning Technology TIL: ChartMuseum for Helm, AMD's Corporate Journey, and Kubernetes Pod Scaling TIL: Docker and Kubernetes Tools - Whaler, Descheduler, and Dive TIL: Post-Mortem Collection, Terminal Plotting, and Technical Twitter TIL: Dark Mode Toggle Web Component by Google Chrome Labs TIL: Python eval(), exec(), and compile() Functions TIL: Camelot PDF Tables, PostgreSQL Row Level Security, Zerodha Varsity, and Write Yourself a Git TIL: fuser Command for Process and File Investigation TIL: i Hate Regex - The Ultimate Regex Cheat Sheet TIL: Dolt - Git for Data and Database Version Control TIL: x86 Assembly Programming and SafeEyes Break Reminder TIL: Comprehensive Distributed Systems Reading List TIL: Cosmopolitan C Library, Distributed Systems Book, High Performance Browser Networking, and Rust Roguelike Tutorial
TIL: Quiver Diagram Editor, MIT Computation Structures, Lisp Koans, and Python System Services
2020-11-29 · via Stonecharioteer on Tech

Today’s learning spanned mathematical visualization tools, foundational computer science education, functional programming, and system administration with Python.

Quiver - Web-Based Commutative Diagram Editor

Quiver is an innovative web-based tool for creating commutative diagrams, essential for category theory, abstract algebra, and mathematical research.

Key Features:

Mathematical Precision:

  • Category theory support: Proper handling of objects, morphisms, and composition
  • Commutative diagram validation: Automatic checking for diagram consistency
  • LaTeX integration: Seamless export to academic papers and presentations
  • Professional rendering: High-quality output suitable for publication

User Experience:

# Example usage workflow:
1. Create objects (categories, sets, groups)
2. Draw morphisms (functions, mappings, transformations)
3. Verify commutativity conditions
4. Export to TikZ, SVG, or direct LaTeX

Collaborative Features:

  • URL sharing: Share diagrams via links for collaboration
  • Version control: Track changes and iterations
  • Template library: Common diagram patterns and structures
  • Cross-platform: Works in any modern web browser

Applications:

  • Research mathematics: Category theory, algebraic topology, homological algebra
  • Computer science: Type theory, programming language semantics
  • Education: Teaching abstract mathematical concepts visually
  • Documentation: Illustrating complex system architectures and relationships

MIT 6.004: Computation Structures provides comprehensive coverage of digital systems from transistors to operating systems.

Curriculum Overview:

Hardware Foundations:

  • Digital abstraction: Boolean logic, combinational and sequential circuits
  • Computer arithmetic: Number representation, ALU design, floating-point
  • Processor design: RISC architecture, pipelining, hazard handling
  • Memory hierarchy: Caches, virtual memory, storage systems

Software Systems:

  • Assembly language: Machine instruction sets and programming
  • Operating systems: Processes, scheduling, memory management, I/O
  • Compilers: Translation from high-level languages to machine code
  • System performance: Analyzing and optimizing computer systems

Design Methodology:

  • Abstraction layers: How complex systems are built from simple components
  • Trade-offs: Performance vs. cost vs. power consumption
  • Testing and verification: Ensuring correctness in digital systems
  • Engineering design process: Requirements, implementation, validation

Educational Value:

  • Fundamental understanding: How computers work from first principles
  • Systems thinking: Understanding interactions between hardware and software
  • Design skills: Creating efficient and reliable digital systems
  • Practical experience: Labs with real hardware and software tools

Common Lisp Koans

Google’s Lisp Koans provide a structured learning path for Common Lisp through progressive exercises, following the proven koan methodology.

Learning Approach:

Progressive Skill Building:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
;; Example koan progression:
;; Basic forms
(assert-equal 5 (+ 2 3))

;; List manipulation
(assert-equal '(1 2 3) (cons 1 '(2 3)))

;; Higher-order functions
(assert-equal '(2 4 6) (mapcar (lambda (x) (* x 2)) '(1 2 3)))

;; Macros and metaprogramming
(defmacro when-not (condition &body body)
  `(unless ,condition ,@body))

Core Concepts Covered:

  • S-expressions: Uniform syntax for code and data
  • Functional programming: Pure functions, recursion, higher-order functions
  • Macros: Code generation and domain-specific languages
  • Object system (CLOS): Multiple inheritance, method dispatch, metaclasses

Benefits of Koan-Style Learning:

  • Immediate feedback: Broken tests guide learning progression
  • Hands-on practice: Learning through doing rather than passive reading
  • Gradual complexity: Each exercise builds on previous knowledge
  • Self-paced: Work through concepts at your own speed

Python systemd Services

Python systemd tutorial demonstrates how to create robust system services using Python with proper systemd integration.

Service Implementation:

Basic Service Structure:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3
import systemd.daemon
import time
import logging

def main():
    logging.basicConfig(level=logging.INFO)
    logger = logging.getLogger(__name__)

    # Notify systemd that service is ready
    systemd.daemon.notify('READY=1')

    while True:
        # Service main loop
        logger.info("Service running...")
        time.sleep(10)

        # Periodic status updates
        systemd.daemon.notify('STATUS=Processing requests')

if __name__ == '__main__':
    main()

Systemd Unit File:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
[Unit]
Description=My Python Service
After=network.target

[Service]
Type=notify
User=myservice
Group=myservice
WorkingDirectory=/opt/myservice
ExecStart=/opt/myservice/venv/bin/python /opt/myservice/service.py
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Best Practices:

  • Proper user isolation: Run services with dedicated system users
  • Virtual environments: Isolated Python dependencies
  • Logging integration: Use systemd’s journal for centralized logging
  • Graceful shutdown: Handle SIGTERM for clean service termination
  • Health monitoring: Implement status reporting and watchdog support

Additional Resources

Development Tools:

  • Digital File Management: Systematic approaches to organizing digital assets
  • ripgrep-all (rga): Search across PDFs, documents, and archives
  • GitPython: Programmatic Git repository manipulation

Historical Computing:

  • Ken Thompson’s 1976 Unix Shell Paper: Foundational document transcribed and redistributed
  • urllib3: Understanding HTTP client libraries and connection pooling

System Administration:

  • Process tree visualization: Using pstree for system debugging
  • Unix shell fundamentals: Understanding command-line interfaces and scripting

These discoveries represent the intersection of theoretical computer science, practical system administration, mathematical visualization, and programming language design - essential knowledge areas for comprehensive technical understanding.