Tools

Browse the Tools posts.

Status of current HDL generator

Recently, I’m trying out different HDL generator languages and tools, because Chisel is used heavily inside SiFive, and they have developed amount of IPs including very complicated CPUs, and a very well maintained …

shortcut.py A Command Line Script to Provide Macro

Typical usage# go to some directory use short alias# > pwd /home/jw > go prj0 cd /work/projects/design/master-branch/ > pwd /work/projects/design/master-branch/run a serial of commands use short alias# > run …

Static Site Generator

Trying to find the perfect static site generator. Used to use Pelican, because it’s written in Python. Also tried with Jekyll, the most popular candidate, because it’s used by Github. Their common problems are Not …

GCP (Google Cloud Platform)

Price of GCP# Persistance Disk# Can be used to put all the data/eda/os on it. Price (per month) Price (per GB per month) SSD 50GB $8.50 $0.17 SSD 1TB $174.08 $0.17 HDD 50GB $2.00 $0.04 HDD 200GB $8.00 $0.04 HDD 1TB …

Docker for EDA

Dockerfile# FROM ubuntu:16.04 COPY ./boot.sh /tmp COPY ./hello.sh /tmp RUN /bin/bash /tmp/boot.sh RUN /bin/bash /tmp/hello.shboot.sh# apt-get update; apt-get install -y make autoconf g++ flex bison wget cd /tmp wget …

Course Note of Python Design Patterns

The course is on Coursera understanding design patterns# what? well-known solutions for recurring problems why? don’t reinvent wheels reuse best practices characteristics language neutral dynamic incomplete by …

Scala First Look

Scala introduction course on LinkedIn. Not very useful, if not using it in real project. introduction# short for Scalable language object-oriented + functional programming everything is object including numbers and …

WSL (Windows Subsystem Linux) Tips

To start gnome-terminal on WSL (Windows Subsystem for Linux)# After upgrade to Windows 10 Creators Update, reinstall WSL will have Ubuntu 16.04.2 LTS on Windows. To reinstall WSL you should do: > lxrun /uninstall …

Install Python Offline

In general, things like Anaconda Server are designed to make this sort of workflow easier. Some suggested workarounds: Reproduce your install on another machine with internet (save conda list –export to a file and conda …

Python and Freemind ElementTree

我曾经自己用Python写过一个小工具来parse Freemind文件(XML格式)然后生成RestructureText和Latex格式。这个小工具的目的是为了实践我的“源文件唯一”的理念。因为我的简历(包括既往项目总结)需要保存为两种不同格式,一个为了放在个人网站上所以是HTML,另一个当然是PDF格式。 今天瞎琢磨的时候发现,其实Python对于XML文件格式支持的极好。The ElementTree XML API这个模块 …

Posts without dates

Monorepo vs. Microrepo (ByteByteGo)

All the credit goes to ByteByteGo.com Do you believe that Google, Meta, Uber, and Airbnb put almost all of their code in one repository? This practice is called a monorepo. Monorepo vs. Microrepo. Which is the best? Why …

Ceph on Raspberry Pi (2) Create Block Device

Taking my home lab Ceph distributed storage system on Raspberry Pi to the next level: make it useful by creating a block device interface so that Linux system can mount it and use it. Enable client# Install Ceph package …

A simple system metric collector

https://github.com/jimwang99/jimon While experimenting my little distributed storage system built with Raspberry Pi SBCs and Ceph, some Raspberry Pi machines die now and then. My suspicion is heat, because I built them …